From a1081ade5d21fc9598b94e40b60c35cf9d95f855 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 4 Aug 2011 14:25:18 +0000 Subject: added tabs on the description entry - updated jquery ui library --- h-source/Application/Include/languages.php | 10 + h-source/Application/Include/myFunctions.php | 42 ++- h-source/Application/Include/vendors.php | 1 + h-source/Application/Views/Help/index_it.php | 2 +- h-source/Application/Views/header.php | 14 +- .../ui-bg_diagonals-small_25_c5ddfc_40x40.png | Bin 0 -> 157 bytes .../ui-bg_diagonals-thick_20_e69700_40x40.png | Bin 0 -> 257 bytes .../ui-bg_diagonals-thick_22_1484e6_40x40.png | Bin 0 -> 259 bytes .../ui-bg_diagonals-thick_26_2293f7_40x40.png | Bin 0 -> 259 bytes .../images/ui-bg_flat_0_e69700_40x100.png | Bin 0 -> 181 bytes .../images/ui-bg_flat_0_e6b900_40x100.png | Bin 0 -> 181 bytes .../ui-bg_highlight-soft_100_f9f9f9_1x100.png | Bin 0 -> 88 bytes .../images/ui-bg_inset-hard_100_eeeeee_1x100.png | Bin 0 -> 91 bytes .../excite-bike/images/ui-icons_0a82eb_256x240.png | Bin 0 -> 4369 bytes .../excite-bike/images/ui-icons_0b54d5_256x240.png | Bin 0 -> 4369 bytes .../excite-bike/images/ui-icons_5fa5e3_256x240.png | Bin 0 -> 4369 bytes .../excite-bike/images/ui-icons_fcdd4a_256x240.png | Bin 0 -> 4369 bytes .../excite-bike/images/ui-icons_ffffff_256x240.png | Bin 0 -> 4369 bytes .../ui/css/excite-bike/jquery-ui-1.8.14.custom.css | 328 +++++++++++++++++++++ .../Js/jquery/ui/js/jquery-ui-1.8.14.custom.min.js | 141 +++++++++ 20 files changed, 533 insertions(+), 5 deletions(-) create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0a82eb_256x240.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0b54d5_256x240.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_5fa5e3_256x240.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_fcdd4a_256x240.png create mode 100755 h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_ffffff_256x240.png create mode 100644 h-source/Public/Js/jquery/ui/css/excite-bike/jquery-ui-1.8.14.custom.css create mode 100644 h-source/Public/Js/jquery/ui/js/jquery-ui-1.8.14.custom.min.js diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 5dd3858..b9ed55a 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -33,6 +33,16 @@ class Lang 'de' => 'de.png,Deutsch', ); + public static function getLabel($langCode) + { + if (array_key_exists($langCode,self::$complete)) + { + $all = explode(',',self::$complete[$langCode]); + return $all[1]; + } + return $langCode; + } + public static $i18n = array( 'it' => array ( diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 2ed9942..5603c97 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -267,9 +267,49 @@ function decodeWikiText($string) $string = preg_replace('/(\[h3\])(.*?)(\[\/h3\])/s', '
${2}
',$string); + $string = preg_replace_callback('/(\[tab )(lang=)([^\s]+)(\s*\])(.*?)(\[\/tab\])/s', 'createTabs',$string); + $string = preg_replace('/(\[lang\])(.*?)(\[\/lang\])/s', '
${2}
',$string); - return $string; + return Tabs::render()."\n\n".$string; +} + +//create the list of the tabs in the description entry +function createTabs($match) +{ + $label = Lang::getLabel($match[3]); + Tabs::$tabList[] = "
  • ".$label."
  • \n"; + Tabs::$htmlList[] = "
    ".$match[5]."
    \n"; + return null; +} + +//create the HTMLof the tats in the description entry +class Tabs +{ + public static $tabList = array(); + public static $htmlList = array(); + + public static function render() + { + $html = null; + if (count(self::$tabList) > 0) + { + $html .= "
    \n"; + $html .= "\n"; + foreach (self::$htmlList as $content) + { + $html .= $content; + } + $html .= "
    "; + } + return $html; + } + } function checkUrl($url) diff --git a/h-source/Application/Include/vendors.php b/h-source/Application/Include/vendors.php index e33e701..93f8f46 100644 --- a/h-source/Application/Include/vendors.php +++ b/h-source/Application/Include/vendors.php @@ -302,6 +302,7 @@ class Vendors '10e8' => 'Applied-Micro-Circuits-Corp.', '10e9' => 'Alps-Electric-Co.-Ltd.', '10ea' => 'Integraphics', + '10ec' => 'Realtek', '10eb' => 'Artists-Graphics', '10ed' => 'Ascii-Corporation', '10ee' => 'Xilinx-Corporation', diff --git a/h-source/Application/Views/Help/index_it.php b/h-source/Application/Views/Help/index_it.php index e3cd0b2..fa644b6 100644 --- a/h-source/Application/Views/Help/index_it.php +++ b/h-source/Application/Views/Help/index_it.php @@ -278,7 +278,7 @@
    lsusb -v > FILENAME          # l'output del comandi un file digitando
    -
    Otterrai la lista di tutti i dispositivi USB, simile a quella sxcritta sotto
    +
    Otterrai la lista di tutti i dispositivi USB, simile a quella scritta sotto
     Bus 001 Device 002: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
     Device Descriptor:
    diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php
    index a785023..d8cbcbb 100644
    --- a/h-source/Application/Views/header.php
    +++ b/h-source/Application/Views/header.php
    @@ -52,15 +52,23 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
     	
     	
     
    -	
    -	
    -	
    +	
    +	
    +	
     	
     	
     	
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png
    new file mode 100755
    index 0000000..82524ab
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png
    new file mode 100755
    index 0000000..6aed97a
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png
    new file mode 100755
    index 0000000..f11ca67
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png
    new file mode 100755
    index 0000000..68306d1
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png
    new file mode 100755
    index 0000000..f567c28
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e69700_40x100.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png
    new file mode 100755
    index 0000000..29e9965
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_flat_0_e6b900_40x100.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png
    new file mode 100755
    index 0000000..9a46d19
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png
    new file mode 100755
    index 0000000..f811f30
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0a82eb_256x240.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0a82eb_256x240.png
    new file mode 100755
    index 0000000..755fe99
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0a82eb_256x240.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0b54d5_256x240.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0b54d5_256x240.png
    new file mode 100755
    index 0000000..98705f9
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_0b54d5_256x240.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_5fa5e3_256x240.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_5fa5e3_256x240.png
    new file mode 100755
    index 0000000..2179078
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_5fa5e3_256x240.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_fcdd4a_256x240.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_fcdd4a_256x240.png
    new file mode 100755
    index 0000000..de76ce2
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_fcdd4a_256x240.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_ffffff_256x240.png b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_ffffff_256x240.png
    new file mode 100755
    index 0000000..42f8f99
    Binary files /dev/null and b/h-source/Public/Js/jquery/ui/css/excite-bike/images/ui-icons_ffffff_256x240.png differ
    diff --git a/h-source/Public/Js/jquery/ui/css/excite-bike/jquery-ui-1.8.14.custom.css b/h-source/Public/Js/jquery/ui/css/excite-bike/jquery-ui-1.8.14.custom.css
    new file mode 100644
    index 0000000..dc3c9bc
    --- /dev/null
    +++ b/h-source/Public/Js/jquery/ui/css/excite-bike/jquery-ui-1.8.14.custom.css
    @@ -0,0 +1,328 @@
    +/*
    + * jQuery UI CSS Framework 1.8.14
    + *
    + * Copyright 2011, 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/Theming/API
    + */
    +
    +/* Layout helpers
    +----------------------------------*/
    +.ui-helper-hidden { display: none; }
    +.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
    +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
    +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
    +.ui-helper-clearfix { display: inline-block; }
    +/* required comment for clearfix to work in Opera \*/
    +* html .ui-helper-clearfix { height:1%; }
    +.ui-helper-clearfix { display:block; }
    +/* end clearfix */
    +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
    +
    +
    +/* Interaction Cues
    +----------------------------------*/
    +.ui-state-disabled { cursor: default !important; }
    +
    +
    +/* Icons
    +----------------------------------*/
    +
    +/* states and images */
    +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
    +
    +
    +/* Misc visuals
    +----------------------------------*/
    +
    +/* Overlays */
    +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    +
    +
    +/*
    + * jQuery UI CSS Framework 1.8.14
    + *
    + * Copyright 2011, 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/Theming/API
    + *
    + * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=segoe%20ui,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=3px&bgColorHeader=f9f9f9&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=100&borderColorHeader=cccccc&fcHeader=e69700&iconColorHeader=5fa5e3&bgColorContent=eeeeee&bgTextureContent=06_inset_hard.png&bgImgOpacityContent=100&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=0a82eb&bgColorDefault=1484e6&bgTextureDefault=08_diagonals_thick.png&bgImgOpacityDefault=22&borderColorDefault=ffffff&fcDefault=ffffff&iconColorDefault=fcdd4a&bgColorHover=2293f7&bgTextureHover=08_diagonals_thick.png&bgImgOpacityHover=26&borderColorHover=2293f7&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=e69700&bgTextureActive=08_diagonals_thick.png&bgImgOpacityActive=20&borderColorActive=e69700&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=c5ddfc&bgTextureHighlight=07_diagonals_small.png&bgImgOpacityHighlight=25&borderColorHighlight=ffffff&fcHighlight=333333&iconColorHighlight=0b54d5&bgColorError=e69700&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=20&borderColorError=e69700&fcError=ffffff&iconColorError=ffffff&bgColorOverlay=e6b900&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=e69700&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=20&thicknessShadow=0px&offsetTopShadow=6px&offsetLeftShadow=6px&cornerRadiusShadow=3px
    + */
    +
    +
    +/* Component containers
    +----------------------------------*/
    +.ui-widget { font-family: segoe ui, Arial, sans-serif; font-size: 1.1em; }
    +.ui-widget .ui-widget { font-size: 1em; }
    +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: segoe ui, Arial, sans-serif; font-size: 1em; }
    +.ui-widget-content { border: 1px solid #aaaaaa; background: #eeeeee url(images/ui-bg_inset-hard_100_eeeeee_1x100.png) 50% bottom repeat-x; color: #222222; }
    +.ui-widget-content a { color: #222222; }
    +.ui-widget-header { border: 1px solid #cccccc; background: #f9f9f9 url(images/ui-bg_highlight-soft_100_f9f9f9_1x100.png) 50% 50% repeat-x; color: #e69700; font-weight: bold; }
    +.ui-widget-header a { color: #e69700; }
    +
    +/* Interaction states
    +----------------------------------*/
    +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #ffffff; background: #1484e6; font-weight: bold; color: #ffffff; }
    +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #ffffff; text-decoration: none; }
    +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #2293f7; background: #2293f7 url(images/ui-bg_diagonals-thick_26_2293f7_40x40.png) 50% 50% repeat; font-weight: bold; color: #ffffff; }
    +.ui-state-hover a, .ui-state-hover a:hover { color: #ffffff; text-decoration: none; }
    +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #e69700; background: #e69700; font-weight: bold; color: #ffffff; }
    +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; text-decoration: none; }
    +.ui-widget :active { outline: none; }
    +
    +/* Interaction Cues
    +----------------------------------*/
    +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #ffffff; background: #c5ddfc url(images/ui-bg_diagonals-small_25_c5ddfc_40x40.png) 50% 50% repeat; color: #333333; }
    +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #333333; }
    +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #e69700; background: #e69700 url(images/ui-bg_diagonals-thick_20_e69700_40x40.png) 50% 50% repeat; color: #ffffff; }
    +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
    +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
    +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
    +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
    +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
    +
    +/* Icons
    +----------------------------------*/
    +
    +/* states and images */
    +.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_0a82eb_256x240.png); }
    +.ui-widget-content .ui-icon {background-image: url(images/ui-icons_0a82eb_256x240.png); }
    +.ui-widget-header .ui-icon {background-image: url(images/ui-icons_5fa5e3_256x240.png); }
    +.ui-state-default .ui-icon { background-image: url(images/ui-icons_fcdd4a_256x240.png); }
    +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
    +.ui-state-active .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
    +.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_0b54d5_256x240.png); }
    +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
    +
    +/* positioning */
    +.ui-icon-carat-1-n { background-position: 0 0; }
    +.ui-icon-carat-1-ne { background-position: -16px 0; }
    +.ui-icon-carat-1-e { background-position: -32px 0; }
    +.ui-icon-carat-1-se { background-position: -48px 0; }
    +.ui-icon-carat-1-s { background-position: -64px 0; }
    +.ui-icon-carat-1-sw { background-position: -80px 0; }
    +.ui-icon-carat-1-w { background-position: -96px 0; }
    +.ui-icon-carat-1-nw { background-position: -112px 0; }
    +.ui-icon-carat-2-n-s { background-position: -128px 0; }
    +.ui-icon-carat-2-e-w { background-position: -144px 0; }
    +.ui-icon-triangle-1-n { background-position: 0 -16px; }
    +.ui-icon-triangle-1-ne { background-position: -16px -16px; }
    +.ui-icon-triangle-1-e { background-position: -32px -16px; }
    +.ui-icon-triangle-1-se { background-position: -48px -16px; }
    +.ui-icon-triangle-1-s { background-position: -64px -16px; }
    +.ui-icon-triangle-1-sw { background-position: -80px -16px; }
    +.ui-icon-triangle-1-w { background-position: -96px -16px; }
    +.ui-icon-triangle-1-nw { background-position: -112px -16px; }
    +.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
    +.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
    +.ui-icon-arrow-1-n { background-position: 0 -32px; }
    +.ui-icon-arrow-1-ne { background-position: -16px -32px; }
    +.ui-icon-arrow-1-e { background-position: -32px -32px; }
    +.ui-icon-arrow-1-se { background-position: -48px -32px; }
    +.ui-icon-arrow-1-s { background-position: -64px -32px; }
    +.ui-icon-arrow-1-sw { background-position: -80px -32px; }
    +.ui-icon-arrow-1-w { background-position: -96px -32px; }
    +.ui-icon-arrow-1-nw { background-position: -112px -32px; }
    +.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
    +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
    +.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
    +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
    +.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
    +.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
    +.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
    +.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
    +.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
    +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
    +.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
    +.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
    +.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
    +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
    +.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
    +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
    +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
    +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
    +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
    +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
    +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
    +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
    +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
    +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
    +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
    +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
    +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
    +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
    +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
    +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
    +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
    +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
    +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
    +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
    +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
    +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
    +.ui-icon-arrow-4 { background-position: 0 -80px; }
    +.ui-icon-arrow-4-diag { background-position: -16px -80px; }
    +.ui-icon-extlink { background-position: -32px -80px; }
    +.ui-icon-newwin { background-position: -48px -80px; }
    +.ui-icon-refresh { background-position: -64px -80px; }
    +.ui-icon-shuffle { background-position: -80px -80px; }
    +.ui-icon-transfer-e-w { background-position: -96px -80px; }
    +.ui-icon-transferthick-e-w { background-position: -112px -80px; }
    +.ui-icon-folder-collapsed { background-position: 0 -96px; }
    +.ui-icon-folder-open { background-position: -16px -96px; }
    +.ui-icon-document { background-position: -32px -96px; }
    +.ui-icon-document-b { background-position: -48px -96px; }
    +.ui-icon-note { background-position: -64px -96px; }
    +.ui-icon-mail-closed { background-position: -80px -96px; }
    +.ui-icon-mail-open { background-position: -96px -96px; }
    +.ui-icon-suitcase { background-position: -112px -96px; }
    +.ui-icon-comment { background-position: -128px -96px; }
    +.ui-icon-person { background-position: -144px -96px; }
    +.ui-icon-print { background-position: -160px -96px; }
    +.ui-icon-trash { background-position: -176px -96px; }
    +.ui-icon-locked { background-position: -192px -96px; }
    +.ui-icon-unlocked { background-position: -208px -96px; }
    +.ui-icon-bookmark { background-position: -224px -96px; }
    +.ui-icon-tag { background-position: -240px -96px; }
    +.ui-icon-home { background-position: 0 -112px; }
    +.ui-icon-flag { background-position: -16px -112px; }
    +.ui-icon-calendar { background-position: -32px -112px; }
    +.ui-icon-cart { background-position: -48px -112px; }
    +.ui-icon-pencil { background-position: -64px -112px; }
    +.ui-icon-clock { background-position: -80px -112px; }
    +.ui-icon-disk { background-position: -96px -112px; }
    +.ui-icon-calculator { background-position: -112px -112px; }
    +.ui-icon-zoomin { background-position: -128px -112px; }
    +.ui-icon-zoomout { background-position: -144px -112px; }
    +.ui-icon-search { background-position: -160px -112px; }
    +.ui-icon-wrench { background-position: -176px -112px; }
    +.ui-icon-gear { background-position: -192px -112px; }
    +.ui-icon-heart { background-position: -208px -112px; }
    +.ui-icon-star { background-position: -224px -112px; }
    +.ui-icon-link { background-position: -240px -112px; }
    +.ui-icon-cancel { background-position: 0 -128px; }
    +.ui-icon-plus { background-position: -16px -128px; }
    +.ui-icon-plusthick { background-position: -32px -128px; }
    +.ui-icon-minus { background-position: -48px -128px; }
    +.ui-icon-minusthick { background-position: -64px -128px; }
    +.ui-icon-close { background-position: -80px -128px; }
    +.ui-icon-closethick { background-position: -96px -128px; }
    +.ui-icon-key { background-position: -112px -128px; }
    +.ui-icon-lightbulb { background-position: -128px -128px; }
    +.ui-icon-scissors { background-position: -144px -128px; }
    +.ui-icon-clipboard { background-position: -160px -128px; }
    +.ui-icon-copy { background-position: -176px -128px; }
    +.ui-icon-contact { background-position: -192px -128px; }
    +.ui-icon-image { background-position: -208px -128px; }
    +.ui-icon-video { background-position: -224px -128px; }
    +.ui-icon-script { background-position: -240px -128px; }
    +.ui-icon-alert { background-position: 0 -144px; }
    +.ui-icon-info { background-position: -16px -144px; }
    +.ui-icon-notice { background-position: -32px -144px; }
    +.ui-icon-help { background-position: -48px -144px; }
    +.ui-icon-check { background-position: -64px -144px; }
    +.ui-icon-bullet { background-position: -80px -144px; }
    +.ui-icon-radio-off { background-position: -96px -144px; }
    +.ui-icon-radio-on { background-position: -112px -144px; }
    +.ui-icon-pin-w { background-position: -128px -144px; }
    +.ui-icon-pin-s { background-position: -144px -144px; }
    +.ui-icon-play { background-position: 0 -160px; }
    +.ui-icon-pause { background-position: -16px -160px; }
    +.ui-icon-seek-next { background-position: -32px -160px; }
    +.ui-icon-seek-prev { background-position: -48px -160px; }
    +.ui-icon-seek-end { background-position: -64px -160px; }
    +.ui-icon-seek-start { background-position: -80px -160px; }
    +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
    +.ui-icon-seek-first { background-position: -80px -160px; }
    +.ui-icon-stop { background-position: -96px -160px; }
    +.ui-icon-eject { background-position: -112px -160px; }
    +.ui-icon-volume-off { background-position: -128px -160px; }
    +.ui-icon-volume-on { background-position: -144px -160px; }
    +.ui-icon-power { background-position: 0 -176px; }
    +.ui-icon-signal-diag { background-position: -16px -176px; }
    +.ui-icon-signal { background-position: -32px -176px; }
    +.ui-icon-battery-0 { background-position: -48px -176px; }
    +.ui-icon-battery-1 { background-position: -64px -176px; }
    +.ui-icon-battery-2 { background-position: -80px -176px; }
    +.ui-icon-battery-3 { background-position: -96px -176px; }
    +.ui-icon-circle-plus { background-position: 0 -192px; }
    +.ui-icon-circle-minus { background-position: -16px -192px; }
    +.ui-icon-circle-close { background-position: -32px -192px; }
    +.ui-icon-circle-triangle-e { background-position: -48px -192px; }
    +.ui-icon-circle-triangle-s { background-position: -64px -192px; }
    +.ui-icon-circle-triangle-w { background-position: -80px -192px; }
    +.ui-icon-circle-triangle-n { background-position: -96px -192px; }
    +.ui-icon-circle-arrow-e { background-position: -112px -192px; }
    +.ui-icon-circle-arrow-s { background-position: -128px -192px; }
    +.ui-icon-circle-arrow-w { background-position: -144px -192px; }
    +.ui-icon-circle-arrow-n { background-position: -160px -192px; }
    +.ui-icon-circle-zoomin { background-position: -176px -192px; }
    +.ui-icon-circle-zoomout { background-position: -192px -192px; }
    +.ui-icon-circle-check { background-position: -208px -192px; }
    +.ui-icon-circlesmall-plus { background-position: 0 -208px; }
    +.ui-icon-circlesmall-minus { background-position: -16px -208px; }
    +.ui-icon-circlesmall-close { background-position: -32px -208px; }
    +.ui-icon-squaresmall-plus { background-position: -48px -208px; }
    +.ui-icon-squaresmall-minus { background-position: -64px -208px; }
    +.ui-icon-squaresmall-close { background-position: -80px -208px; }
    +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
    +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
    +.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
    +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
    +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
    +.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
    +
    +
    +/* Misc visuals
    +----------------------------------*/
    +
    +/* Corner radius */
    +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 3px; -webkit-border-top-left-radius: 3px; -khtml-border-top-left-radius: 3px; border-top-left-radius: 3px; }
    +.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 3px; -khtml-border-top-right-radius: 3px; border-top-right-radius: 3px; }
    +.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 3px; -webkit-border-bottom-left-radius: 3px; -khtml-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px; }
    +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 3px; -webkit-border-bottom-right-radius: 3px; -khtml-border-bottom-right-radius: 3px; border-bottom-right-radius: 3px; }
    +
    +/* Overlays */
    +.ui-widget-overlay { background: #e6b900 url(images/ui-bg_flat_0_e6b900_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
    +.ui-widget-shadow { margin: 6px 0 0 6px; padding: 0px; background: #e69700 url(images/ui-bg_flat_0_e69700_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }/*
    + * jQuery UI Dialog 1.8.14
    + *
    + * Copyright 2011, 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/Dialog#theming
    + */
    +.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
    +.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative;  }
    +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 
    +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
    +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
    +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
    +.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
    +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
    +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
    +.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
    +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
    +.ui-draggable .ui-dialog-titlebar { cursor: move; }
    +/*
    + * jQuery UI Tabs 1.8.14
    + *
    + * Copyright 2011, 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/Tabs#theming
    + */
    +.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
    +.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
    +.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
    +.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
    +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
    +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
    +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
    +.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 0.6em 0.4em; background: none; }
    +.ui-tabs .ui-tabs-hide { display: none !important; }
    diff --git a/h-source/Public/Js/jquery/ui/js/jquery-ui-1.8.14.custom.min.js b/h-source/Public/Js/jquery/ui/js/jquery-ui-1.8.14.custom.min.js
    new file mode 100644
    index 0000000..78ae1d6
    --- /dev/null
    +++ b/h-source/Public/Js/jquery/ui/js/jquery-ui-1.8.14.custom.min.js
    @@ -0,0 +1,141 @@
    +/*!
    + * jQuery UI 1.8.14
    + *
    + * Copyright 2011, 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
    + */
    +(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.14",
    +keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();
    +b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,
    +"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
    +function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,
    +outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);
    +return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=
    +0;e0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
    +false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
    +;/*
    + * jQuery UI Position 1.8.14
    + *
    + * Copyright 2011, 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/Position
    + */
    +(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY,
    +left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+=
    +k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-=
    +m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=
    +d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+=
    +a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b),
    +g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
    +;/*
    + * jQuery UI Dialog 1.8.14
    + *
    + * Copyright 2011, 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/Dialog
    + *
    + * Depends:
    + *	jquery.ui.core.js
    + *	jquery.ui.widget.js
    + *  jquery.ui.button.js
    + *	jquery.ui.draggable.js
    + *	jquery.ui.mouse.js
    + *	jquery.ui.position.js
    + *	jquery.ui.resizable.js
    + */
    +(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,
    +position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ +b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), +h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", +e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); +a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== +b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+= +1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== +f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, +function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", +handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, +originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", +f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): +[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); +if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): +e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= +this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- +b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.14",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), +create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(), +height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); +b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& +e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= +d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| +(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); +this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= +this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); +if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); +this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ +g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", +function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; +this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= +-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; +d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= +d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, +e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); +j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); +if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, +this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, +load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, +"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, +url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.14"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k