diff options
| author | David Cramer | 2012-02-27 15:35:12 -0800 | 
|---|---|---|
| committer | David Cramer | 2012-02-27 15:35:12 -0800 | 
| commit | 2fb1e415c6032c1087ed17e848806d146b04252a (patch) | |
| tree | ec54d068e116b0d1726ff77ea73d976f17bd450c | |
| parent | 4d26b991c381b9316d6b9b033e43cdb7311738ab (diff) | |
| parent | 837dcf4b97ddbbb2eec9b38c3b2f05c170ed639c (diff) | |
| download | django-debug-toolbar-2fb1e415c6032c1087ed17e848806d146b04252a.tar.bz2 | |
Merge branch 'master' of github.com:django-debug-toolbar/django-debug-toolbar
| -rw-r--r-- | debug_toolbar/media/debug_toolbar/css/toolbar.min.css | 2 | ||||
| -rw-r--r-- | debug_toolbar/media/debug_toolbar/js/jquery.js | 8598 | ||||
| -rw-r--r-- | debug_toolbar/media/debug_toolbar/js/toolbar.min.js | 20 | ||||
| -rw-r--r-- | debug_toolbar/panels/sql.py | 2 | 
4 files changed, 5905 insertions, 2717 deletions
| diff --git a/debug_toolbar/media/debug_toolbar/css/toolbar.min.css b/debug_toolbar/media/debug_toolbar/css/toolbar.min.css index aa30728..15bd2be 100644 --- a/debug_toolbar/media/debug_toolbar/css/toolbar.min.css +++ b/debug_toolbar/media/debug_toolbar/css/toolbar.min.css @@ -1 +1 @@ -.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{display:inline-block;}/* Hides from IE-mac \*/ .clearfix{display:block;}* html .clearfix{height:1%;}/* end hide from IE-mac */ #djDebug{color:#000;background:#FFF;}#djDebug,#djDebug div,#djDebug span,#djDebug applet,#djDebug object,#djDebug iframe,#djDebug h1,#djDebug h2,#djDebug h3,#djDebug h4,#djDebug h5,#djDebug h6,#djDebug p,#djDebug blockquote,#djDebug pre,#djDebug a,#djDebug abbr,#djDebug acronym,#djDebug address,#djDebug big,#djDebug cite,#djDebug code,#djDebug del,#djDebug dfn,#djDebug em,#djDebug font,#djDebug img,#djDebug ins,#djDebug kbd,#djDebug q,#djDebug s,#djDebug samp,#djDebug small,#djDebug strike,#djDebug strong,#djDebug sub,#djDebug sup,#djDebug tt,#djDebug var,#djDebug b,#djDebug u,#djDebug i,#djDebug center,#djDebug dl,#djDebug dt,#djDebug dd,#djDebug ol,#djDebug ul,#djDebug li,#djDebug fieldset,#djDebug form,#djDebug label,#djDebug legend,#djDebug table,#djDebug caption,#djDebug tbody,#djDebug tfoot,#djDebug thead,#djDebug tr,#djDebug th,#djDebug td{margin:0;padding:0;border:0;outline:0;font-size:12px;line-height:1.5em;color:#000;vertical-align:baseline;background:transparent;font-family:sans-serif;text-align:left;}#djDebug #djDebugToolbar{background:#111;width:200px;z-index:100000000;position:fixed;top:0;bottom:0;right:0;opacity:.9;}#djDebug #djDebugToolbar small{color:#999;}#djDebug #djDebugToolbar ul{margin:0;padding:0;list-style:none;}#djDebug #djDebugToolbar li{border-bottom:1px solid #222;color:#fff;display:block;font-weight:bold;float:none;margin:0;padding:0;position:relative;width:auto;}#djDebug #djDebugToolbar li>a,#djDebug #djDebugToolbar li>div.contentless{font-weight:normal;font-style:normal;text-decoration:none;display:block;font-size:16px;padding:10px 10px 5px 25px;color:#fff;}#djDebug #djDebugToolbar li a:hover{color:#111;background-color:#ffc;}#djDebug #djDebugToolbar li.active{background-image:url(../img/indicator.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgFJREFUeNqUlE1LAmEQx11fesNeDLt08hZ4KcgvIF7EgxcR9CT4IQwErx47WhFBdvPgwUNQeOiogiLRQSQUQaKD6Vpba7ar20izMe4+bjTwY5/Zl//OMzPPcCaTaRUwAxbTjynAdAHq84XGARuADQXN+MGEIJG1QmCaOZVK7WKUdmCdYMf7K/hDKwagwjRLPp9/cLvdzUKh8Ab+GgosExGz5hvFSJAbDAYKmFSpVM4DgUABX57l6wsYAR/AO64/MQUyyauiE1SdTqdTC4fDZ61W6x0FRUAAXvEqElGJCP5qzG3H5XIdFovFdCgUOgB3B3AC28AmyekSKSDH3LL2piRJcjabvU4kEnfg8sAL0Me1GulYE+ViQdWq1ep9NBrN9vv9J3B7KPyKOf3EtNAe1VVwzjwez36pVDoKBoMu3KpNs13dlg0FZ+ZwOJx+v3+PHATO6H2r0UOe54fJZPIil8vVSLtMjE7LQsFGo/EYiUSuut3uM/aimjPJSFQnCE0+hVNzE4/Hb1FoyOjBCasHdYKiKPLpdPo0k8k0GY1NKyvTyjIFe71eLRaLHZfLZYFx9AS8jhgR6gXb7faJ1+u9FATBglWU8cMxRjki0RmOMmu9Xo/4fL4y9pmVzEMZBcakGPJfw3YWzRY2rA19dWLLBMNCaAXXNHNPIVFO/zOtZ/YtwADKQgq0l7HbRAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:left center;background-color:#333;padding-left:10px;}#djDebug #djDebugToolbar li.active a:hover{color:#b36a60;background-color:transparent;}#djDebug #djDebugToolbar li small{font-size:12px;color:#999;font-style:normal;text-decoration:none;font-variant:small-caps;}#djDebug #djDebugToolbarHandle{position:fixed;background:#fff;border:1px solid #111;top:30px;right:0;z-index:100000000;opacity:.75;}#djDebug a#djShowToolBarButton{display:block;height:75px;width:30px;border-right:none;border-bottom:4px solid #fff;border-top:4px solid #fff;border-left:4px solid #fff;color:#fff;font-size:10px;font-weight:bold;text-decoration:none;text-align:center;text-indent:-999999px;background:#000 url(../img/djdt_vertical.png) no-repeat left center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABLCAYAAAACnsWZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAATCSURBVGiB7ZlvSBtnHMe/sckZY5aMw06r7aTLjGOwTKOMEWYs7M2EaaUdjG6+GDoQ9mIyupUxGIONwVZfDHwxg2E4igym24s5sFB0oDRq1yi1G0RijTjhjJBI86fR/LvbC+nFs7ncXR7jMsgXDp67e57vffI8v/s9z3NRAeBQxCr7rwGkVAIkVQmQVCVAUpUASVX0gGqxGxaLBTabDVqtFn6/H5OTk4jFYifJxovLdgwNDXGH1dDQkLVeoY+iH+KiBxSNwaOy2+0wmUyKzH0+H7xer2Koo5IVg/loZGSkuGOwtraW2KOggHt7e8QesmMwEomAZVlF5uvr64qBjko2YEtLC9bW1ogfqFRFn2b+v4CpVIovsyyrOP6OSyrksS8uKysDTdNQq9XY3d1FIpEoAFpGshJma2sr53A4OI/Hw7EsK0jIDMNw4+PjXFdXVyEWDLkr6PV6bmJiQvbs4XK5uJqampMBpCiKW1hYUDzF+Xw+zmAwFB5wcHBQMdxjDQ8PHwug6EtC0zS2trag0+kE16enp7G4uAiv14tUKgWz2Qyr1YrOzk6oVCq+XjweR11dHYLBYDZ7RcpK3tvbK+iRcDjMdXR0iP5Sm83GMQwjaNPX11e4IR4dHRU8bGBgQNKsp6dH0MbpdBYO0OVyCR5mNBolzTQaDZdOp/k2c3NzxICiMwlN03x5e3sboVBIrCqvZDIJhmH4c6PRKNlGSqKrGYqi+HJFRQX6+/tlGWq12qxlEmXt2pWVlbxTzGMtLS0VbogjkQjxLw+Hw8QeooA7OzvE5n6/n9hDNAbdbrfibeZRLS8vE7UH8lxunaSKfkUte9MEAAa6EhrqVNZ7HAc8DETBpo935a1oiJ1zH6O5rUH0fmI/iQ2PH1Nji/jpuxlwHHn0KOpBKVFaDRqbz6Gx+RysdjOudn9P7FmwGGy/+DLa3rQQ++QNmEykEA3t8UcsGn+izhvvvEIEBxAM8c2xO/iy74bgWu35KjhmPkLt+SoAwFnTaTI6HPMQMxsBLM1mvgdqdVSO2vKkqAdvXL+FuzOrYFkOd/9YzVqHfsbAlze95NNlnht3FQx0JU6pyxDejSGZyHyFOGs6DWu7GVVnjLh3+wGWZ8m+sMoGfLG1Ht3vvwZruxn1jdWCDVJgO4R7tx9gauwO5iZXiIAUA+r05fhi9D28/pZVluH9+XV8ctmBoJ98qQVIAGooNUZmr+KlV59TZMpsBHCl6Ss8Cu+T8uV+iz/4+qJiOOAg3Xz47eW8oQ5LtAcNdCWmtr55IlX8Oe3BX4sb2PTuIJ1Ko95cjResz6Kt0yKIy0Q8hY66awgFHxEBiqaZC91NArhYZB+fvu3E/M2/s9a32Ey4/ks/qs4c7OSocjUudDfhtx9cRICiQ9zc9rzgfPjzSVE44ODlGLr2q+BaPuFxVKKA9eZqwfnvP85Lmt362Q2WzURMfWN1jtryJApooCv5cmA7hGhI+j+PVDKNAPOQP9cbKwjxcsSghsrcKq/Q4FK/XZYhpdVk2h0q5ytRwFg0k8OeelqHzxzvKjbPtgRTKtEhjkXIzQuaqIM75FNV0C/9wUlKokPscW8SLzhXl/8hag+UNu7kKgGSqgRIqhIgqUqApCp6wH8B9cAOKo9Os8wAAAAASUVORK5CYII=);opacity:.5;}#djDebug a#djShowToolBarButton:hover{background-color:#111;padding-right:6px;border-top-color:#FFE761;border-left-color:#FFE761;border-bottom-color:#FFE761;opacity:1.0;}#djDebug code{display:block;font-family:Consolas,Monaco,"Bitstream Vera Sans Mono","Lucida Console",monospace;white-space:pre;overflow:auto;}#djDebug tr.djDebugOdd{background-color:#f5f5f5;}#djDebug .panelContent{display:none;position:fixed;margin:0;top:0;right:200px;bottom:0;left:0;background-color:#eee;color:#666;z-index:100000000;}#djDebug .panelContent>div{border-bottom:1px solid #ddd;}#djDebug .djDebugPanelTitle{position:absolute;background-color:#ffc;color:#666;padding-left:20px;top:0;right:0;left:0;height:50px;}#djDebug .djDebugPanelTitle code{display:inline;font-size:inherit;}#djDebug .djDebugPanelContent{position:absolute;top:50px;right:0;bottom:0;left:0;height:auto;padding:5px 0 0 20px;}#djDebug .djDebugPanelContent .scroll{height:100%;overflow:auto;display:block;padding:0 10px 0 0;}#djDebug h3{font-size:24px;font-weight:normal;line-height:50px;}#djDebug h4{font-size:20px;font-weight:bold;margin-top:.8em;}#djDebug .panelContent table{border:1px solid #ccc;border-collapse:collapse;width:100%;background-color:#fff;display:block;margin-top:.8em;overflow:auto;}#djDebug .panelContent tbody td,#djDebug .panelContent tbody th{vertical-align:top;padding:2px 3px;}#djDebug .panelContent thead th{padding:1px 6px 1px 3px;text-align:left;font-weight:bold;font-size:14px;}#djDebug .panelContent tbody th{width:12em;text-align:right;color:#666;padding-right:.5em;}#djDebug .djTemplateHideContextDiv{background-color:#fff;}#djDebug .panelContent .djDebugClose{text-indent:-9999999px;display:block;position:absolute;top:4px;right:15px;height:40px;width:40px;background:url(../img/close.png) no-repeat center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA7dJREFUeNqsWM1PE0EU3+7ShdJKoTRA8UYgIUKM3rmaEI0euXsw0YMHIZEbxBijEiIHLkb/A44SDYlXzkYPGBM+ri1NWz7aUmhp6+9tps10mLfdfrzkl2535r39zc77mvUdHh4abUoUCAD3xP/fQAFItWJkYmLC+e1p8eGPgQcC08ycf8BPgW2vhr0SeQa8AWIe5k4LvATiwCrwtZmS2WT8IfAL+OKRhCoxoftH2GqLyBLwHbhvdC53ha2lVrfmE/DKzbLP5yubplnt7e310f+rq6tqpVLxVatVy0VtHbgNLHohsupGIhQKFQG7v79f+8CLiwsjl8sVAZsxQbYTwFrDwpTwpaj4ptPu6+vLDw4OBkHA014QobOzs3yhUAgyUx4BP2rhq/rIe53GwMBAeXx83DMJEpobi8WCpMtMWeOc9TkwoyMRjUattrMedBkyM+KZN4isqDMDgUCuExIyGbKlGVpRiSzo8kQ4HA4ZXRLGVuzo6GhBJjKviw6dT5TLZSOTyRinp6cGQrV+n67hnEY6nTaur6+1PkM2NWTm5fCd0xDRhh89CKHpXCMijLGxMef6+PjYiRSSUqlUv6/arOlKMlcjQlV0qsGDTZPehpYIxurXRCSRSFByq5NQ56hvhWwj8cm2p7A9UdKYVBX8fn+F2+tIJGIgmzaQkUnYtm0MDw+zvsLYniQiEc2q/WxxwmqRHxrISA9xxiyLDzTGdsRsJwJoK3QPo3vctnhpAzLqTexhiVOg6JAdU5bLy0vHZ+Ro8mg7Q0QO1LvwenZZJycnN3yCIPsMRRYnjO0DU/SY+wprW7fiWmjKJMgnUIcafEaeoxZCJWJI9lH4UjV2u6pSPp/XJR9jaGiIKrERDAbrjllzYOQJZ4zm6ISxuSsntB3gqTyazWZtMowa0aBFb4HegC6aRkZG2C2hLSObmqEdOcVvUdJUZyBlZ7tVa1ASdEUvjW3ZUqvvO82e3kqlUuVOSZANvBFd0fugawM2VKclOT8/tzohQ7pkgzn/rHNdvLbLJkPxeDzHRRIXIaTDkCB57XacoJPZW8bZQpSskslk0Y0QjdEcmstsB8myegrsYbqmENfJU3dOpZyOEwjdCqLIWUyxWKygVzHFccJ2eVkbar/qdq5ZFC3/R5dUb6EBsqQmyEtLuawj0eykRwpPgL0uRO+esLXW7tmX9nEWeAEk2yCQFLqzzb4MeK3Zn4FRsapNEXqGy2eJTTF3VOh27bOE/Ia2pQ81YeCO+P+XknGrH2pq8l+AAQDv/n2Gmq99BgAAAABJRU5ErkJggg==);}#djDebug .panelContent .djDebugClose:hover{background-image:url(../img/close_hover.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABCVJREFUeNqsWG1IU1EYfjfd0i1bTc2WFTW3tG2aFWlEf4KkMIrCvhH6U9DnjxTyV0ZEXxIVGBH1JyKIPiBK8kf1syCKwu8M3VQsK7OV6ba2udZ7bmd6d+85827zhYftnnPe5z73nvc95z1X5XQ6IUHLQqQjiul1E8KHGIqHxGw2C7+pcd58E6KMooAzphPxnKJBKbFSIfsRpxAmBWMLKI4iviBOIm5O5qSepL8c8R5xQ6EIqZmobzPlSkhINeIpYhkkb0WUqzreqbmEOBaTOjQGf/0+CHz7Klxqc+aAehrGbkrM2b6IyEVUKRFyMpYI38dW8HS0gc/5kdmfnpcPepsD0vMLeRSEm6ivEzeqJOlLsuIJyzs40Au/Xr+CP64uRXORZraCoXQ1aHMX8YZsRDRG0lcqpA1hl3p4mt+C+/nThILDWLYR9EtXsrraEY6IEHGwHmCJGG16k7AIYsTX0/KO1WWn95QJqZWODHxyws8XjUmnjPtZg8DFsFqpkB2sdWL4zWuYKuNwmVwu1w6xkA2s7GAFpnaGAcxbd8H8snJQa7QTUZ+aCrlr10NexR5Iy8yW+REuwsmwDeL0XSOLjfYW5pNZtldC9orS/4FoK4LWa5cgHP4L9n1HILNoudCuM82F1qsXgcXJSOs1ESFkF7WKe8JBfxifQMVMY8/o+P+Z+TYoPFwNoYAfMh3FE2udz8d8CPJWCLdKM03MbcXpySJTY5EtmsNuFW+uex4/gJFe14SYxUuiRHi/fIaue7f5CzKb20KEGKWtYx4Pl2jM54WW+joY6euR9Xm/DkDT5bMQHB3h+7O5jepEMiAUDDBvRtpCfn9CWUWEuGUbkF7PdSDZQQLTaC+S9Rks+VB4qCoqmxRyu4mQbmlrisEY5hEtLN8ynh2RmBjt74sK4LyK3VwhHO5uNa0xoxYMEtVk02KZbk7uxB400C/ERPOVc1EBrMsxcTdCScYQ68L9ZiiyjryUprC+wM5c0PoaH4EmIwMCv4eh6+6t8VghAWzdtVdYzHoaHjKFEE6GvRTvvmSZvScd8f3hHfjT2z0lS3zaQgtkb6tkde3EN3I/kjX3ET9kwVdSOmV7jaF0Fav5BxEh3X3PyPaVBVaYta48aRGkJtHOt7C6zrPKgMvSoCU2vbhEIEpGBKcw6qQ1LLNmrWaVioRIk2kUtvK4SsWSVaCdl8cbcjxW8UxOZqcRJ2TThITZCO+HZvB2dsQsnnUFNtAtWRpLZ430FKjinH0VHSdCXg8EhwaFS03WbEjR6Sc7TkRCoErp2beKlvwX+EtkKqRkGATEYTXSY4SSkx5x2Eyr7WStnXLVJXr2JfPoQBxEDCYgYJD6Oib7MqC0DLiOyKFPVU9TD2J8lqinY3Oo75R9lhC/oQbRhxoSIDZ63UGK9Xg/1ETsnwADAJrrTk7nZiozAAAAAElFTkSuQmCC);}#djDebug .panelContent .djDebugClose.djDebugBack{background-image:url(../img/back.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA7FJREFUeNrMWM1PE0EU3+7S7bZdKSFNSIFgJJAgINE7VxOi0SP/gYkePAiJ3CDGGJUQOXAx+h9wlGhIvHI2fgQ08mEkkjZNIZR2+7Httr63zMoyOzPdthx8yS+bnZn3m9/OvDcfG9jd3ZVatDggDLhO3j8DioBMMySDg4P2s6PJzu8AbhKMcNr8AHwkWPNL7FfIPcATQMJH2xGCh4AkYAHwtpGT3KD+FuAT4I1PEbQliO8XwtWSkFnAe8ANqX2bIFyzzU7NK8AjEXMgELBkWa6HQqEAvpfL5XqtVgvU63VF4LYE6APM+BGyIBKh67oJUCORCLPDQqEg5fN5E6ByKJA7BVg892FU+mJWvGN5a5pmdHV1RUGAr7lAQdls1igWi1FOk9uAD0760jHynOXR2dlp9fb2+haBhm0TiUQUfTlNFnnBeh8wxhIRj8eVllc98OWIGSN9eoTM0y3D4XC+HRFuMcjFqJqnhUyz1olYLKa730uVCrMjXrmIy1ln9vb2pt1CpljZQcdE1ihIW/sHHrayWbHLq1ZNGDPIyaiacguZZAhhph+K+fpr39Ppqcg/wtHhcE46QnAXHT4XwbJssjJECwbtp1EqS99AjNNpSD0r//77wH7yRgW5qeJhmJ44ChmiHYLBIHOMY9GINDrQ9y8uHDEoEMs7FNl+x5HhieFwD6GQbs8GJMtBbtCBmIkrA3anOD0YH2ci+21RWJ4vldibG5u7W5b+E8O95oguhM0LP1PhBauTOfj1Tnxg+c+DpD0aOFq6pjE75HAfoZAdunGlUpH9iLh6uc9+nsaFt5xlHO4dmZwxtynVKm5avIUrqoWkaxAnTmdOnGC5SARyIjdVvA0bX8ZRt0E7GYZhNgpWb0b1c0UIODfcC9o6XZvL5VTYwrnp6zaMEyd9eYZcyMmoWncLWQUcemIim82xFjTeQiey4+Nj1qZ3CNOySu++zxhzeimTyVjtpiZywIiwNr0XrGPAMh20aCcnJ0o7YtAXOTj3nyXeKZ55ykaiZDKZZ2WS6KiIPhwRaI9F1wm8mT3lBJueSqWkdDptigRhHbbBtpzpQJujb4EdnFOTzjvJ4+kcYF8nFEWpqapqf4xpmjXLsmRynVAFg7VMn1dF95oZcuR/yWPDDqvVKsIp8nOknGOJaHTTQ4e7gM0L2NM2Cddiq3dfnMdxwANAugUBaeI73ujPgN9jwGtAD/mqFZJ6kuC3xApp20N8L+y3hHuE1lw/amKAUfK+hYtxsz9qHPsrwACHs5P9Qys/0AAAAABJRU5ErkJggg==);}#djDebug .panelContent .djDebugClose.djDebugBack:hover{background-image:url(../img/back_hover.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA6hJREFUeNrMWF1Ik1EYPtt0pkuGa/aDJTY3nNvSfkglvEwQpa7CbrosKAghBedNikKgEgVe1m03SVeJXmSXBmIozpxpuiUS/eicSc75m73vx/nGt7Nzvm8/BR14+Pjec85znp297znv++kCgQBJs1kBuYDz9H0KEAWEUiGx2WzSMyvFxa8B6iicgjFzgBGKwWSJdUnuyB1AF+BUisK/AToBz7V2RK9B1ACYBDxLQwShc3Cuj3IJm5qQVsAQ4ALJvFVQrlbRAJGPPAE8UKU+2Ce/d6Jk98d36dV44iTR54DvGlTd7jGgCNCSjJBONRHR+Q8kMjtDooF5bn9uaRkxuTwkt+yciAK5UX2fmrNiVLzmzd77ukR+jr0j28GFpP6LIzYHMVdfIcais6IhjYBh2VlZITMANzsj4ntPwiNDaTmHpa6RmCov87r8AA8vau7yRGxOjactAhvOjUxP8LrcdM0EIR3syN0vAbL+djjjkAm/GZS4OK2DFdLEOyc2xsfi/3frcb4/COxqXPI5EwwGm5RC6nnRwTpmgdNNKpq9iZFiLZTsWXkmoRDkQk5Oq1cKqU3wDf80lxDFXGzvTlhUFqm2OwLOWlkI3qIOZc/h3s4hL0y3QyvSM7+4hFxq74otGg2txuyVzW3SU7QryM2YHfD3WFGIPeHQ3AjreETrc34y3d8b8wtZDApE+/5WRHrHnRGJEXDbUYiFte5HIsLtRTGTPR3Sovj3oH8oRaIotB8t5h9kAm6LnvwnDe+acILRJPZ+ZeTgr5f9A+2u2/el3cDd2lz+zF+Qzx1GIYus1WC2oEPptET4+vukp+wXrJ3XBNyLeppjxoWILjtHh5eW6OD6tbxEJno6Y4vJfoJ2NRHIidyMeQHum5DsI6PsJJPTremsvIgSiVDhHFXevnjMvmRHrL56QbaXFuN2hLeQyB43psROCm/c4nXdhB0ZkHdkALDGjjBXVXMPNNFBp9bM1TU88xqKYG/fR+woY7GDFFxtyDg0MScxnrHzunpEGdon9rj/h4kR1j/logKrlZcqIlH2MYt0laeUKlbVEOPpUtGQNq0CqxvwUDR766OPbM3NqibPeU4XySuvVNPplZNnUc6aUjlxACG8Rx01GyLHgKmBQbOKfaosJ7Rq3xaa8vcK6WBBQ75ZQgrNy5YRyVR6OOE6zbYzbX7K1ZdOyUloNe8B3AOspCFghc71aH0Z0KX4feSvf5bQctZkP9Sgg7jo+ywm6+l+qPkjwADNS26fFM/O1QAAAABJRU5ErkJggg==);}#djDebug .panelContent dt,#djDebug .panelContent dd{display:block;}#djDebug .panelContent dt{margin-top:.75em;}#djDebug .panelContent dd{margin-left:10px;}#djDebug a.toggleTemplate{padding:4px;background-color:#bbb;-moz-border-radius:3px;-webkit-border-radius:3px;}#djDebug a.toggleTemplate:hover{padding:4px;background-color:#444;color:#ffe761;-moz-border-radius:3px;-webkit-border-radius:3px;}#djDebug a.djTemplateShowContext,#djDebug a.djTemplateShowContext span.toggleArrow{color:#999;}#djDebug a.djTemplateShowContext:hover,#djDebug a.djTemplateShowContext:hover span.toggleArrow{color:#000;cursor:pointer;}#djDebug .djDebugSqlWrap{position:relative;}#djDebug .djDebugCollapsed{display:none;text-decoration:none;color:#333;}#djDebug .djDebugUncollapsed{color:#333;text-decoration:none;}#djDebug .djUnselected{display:none;}#djDebug tr.djHiddenByDefault{display:none;}#djDebug tr.djSelected{display:table-row;}#djDebug .djDebugSql{z-index:100000002;}#djDebug .djSQLDetailsDiv tbody th{text-align:left;}#djDebug .djSqlExplain td{white-space:pre;}#djDebug span.djDebugLineChart{background-color:#777;height:3px;position:absolute;bottom:0;top:0;left:0;display:block;z-index:1000000001;}#djDebug span.djDebugLineChartWarning{background-color:#900;}#djDebug .highlight{color:#000;}#djDebug .highlight .err{color:#000;}#djDebug .highlight .g{color:#000;}#djDebug .highlight .k{color:#000;font-weight:bold;}#djDebug .highlight .o{color:#000;}#djDebug .highlight .n{color:#000;}#djDebug .highlight .mi{color:#000;font-weight:bold;}#djDebug .highlight .l{color:#000;}#djDebug .highlight .x{color:#000;}#djDebug .highlight .p{color:#000;}#djDebug .highlight .m{color:#000;font-weight:bold;}#djDebug .highlight .s{color:#333;}#djDebug .highlight .w{color:#888;}#djDebug .highlight .il{color:#000;font-weight:bold;}#djDebug .highlight .na{color:#333;}#djDebug .highlight .nt{color:#000;font-weight:bold;}#djDebug .highlight .nv{color:#333;}#djDebug .highlight .s2{color:#333;}#djDebug .highlight .cp{color:#333;}#djDebug .timeline{width:30%;}#djDebug .djDebugTimeline{position:relative;height:100%;min-height:100%;}#djDebug div.djDebugLineChart{position:absolute;left:0;right:0;top:0;bottom:0;vertical-align:middle;}#djDebug div.djDebugLineChart strong{text-indent:-10000em;display:block;font-weight:normal;vertical-align:middle;background-color:#ccc;}#djDebug div.djDebugLineChartWarning strong{background-color:#900;}#djDebug .djDebugInTransaction div.djDebugLineChart strong{background-color:#d3ff82;}#djDebug .djDebugStartTransaction div.djDebugLineChart strong{border-left:1px solid #94b24d;}#djDebug .djDebugEndTransaction div.djDebugLineChart strong{border-right:1px solid #94b24d;}#djDebug .djDebugHover div.djDebugLineChart strong{background-color:#000;}#djDebug .djDebugInTransaction.djDebugHover div.djDebugLineChart strong{background-color:#94b24d;}#djDebug .panelContent ul.stats{position:relative;}#djDebug .panelContent ul.stats li{width:30%;float:left;}#djDebug .panelContent ul.stats li strong.label{display:block;}#djDebug .panelContent ul.stats li span.color{height:12px;width:3px;display:inline-block;}#djDebug .panelContent ul.stats li span.info{display:block;padding-left:5px;}#djDebug .panelcontent thead th{white-space:nowrap;}#djDebug .djDebugRowWarning .time{color:red;}#djdebug .panelcontent table .toggle{width:14px;padding-top:3px;}#djdebug .panelcontent table .actions{min-width:70px;}#djdebug .panelcontent table .color{width:3px;}#djdebug .panelcontent table .color span{width:3px;height:12px;overflow:hidden;padding:0;}#djDebug .djToggleSwitch{text-decoration:none;border:1px solid #999;height:12px;width:12px;line-height:12px;text-align:center;color:#777;display:inline-block;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFF',endColorstr='#DCDCDC');background:-webkit-gradient(linear,left top,left bottom,from(#FFF),to(#DCDCDC));background:-moz-linear-gradient(center top,#FFF 0,#DCDCDC 100%) repeat scroll 0 0 transparent;}#djDebug .djNoToggleSwitch{height:14px;width:14px;display:inline-block;}#djDebug .djSQLDetailsDiv{margin-top:.8em;}#djDebug pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;color:#555;border:1px solid #ccc;border-collapse:collapse;background-color:#fff;display:block;overflow:auto;padding:2px 3px;margin-bottom:3px;font-family:Consolas,Monaco,"Bitstream Vera Sans Mono","Lucida Console",monospace;}#djDebug .stack span{color:#000;font-weight:bold;}#djDebug .stack span.path{color:#777;font-weight:normal;}#djDebug .stack span.code{font-weight:normal;}@media print{#djDebug{display:none;}}
\ No newline at end of file +.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.clearfix{display:inline-block}/*\*/.clearfix{display:block}* html .clearfix{height:1%}/**/#djDebug{color:#000;background:#FFF}#djDebug,#djDebug div,#djDebug span,#djDebug applet,#djDebug object,#djDebug iframe,#djDebug h1,#djDebug h2,#djDebug h3,#djDebug h4,#djDebug h5,#djDebug h6,#djDebug p,#djDebug blockquote,#djDebug pre,#djDebug a,#djDebug abbr,#djDebug acronym,#djDebug address,#djDebug big,#djDebug cite,#djDebug code,#djDebug del,#djDebug dfn,#djDebug em,#djDebug font,#djDebug img,#djDebug ins,#djDebug kbd,#djDebug q,#djDebug s,#djDebug samp,#djDebug small,#djDebug strike,#djDebug strong,#djDebug sub,#djDebug sup,#djDebug tt,#djDebug var,#djDebug b,#djDebug u,#djDebug i,#djDebug center,#djDebug dl,#djDebug dt,#djDebug dd,#djDebug ol,#djDebug ul,#djDebug li,#djDebug fieldset,#djDebug form,#djDebug label,#djDebug legend,#djDebug table,#djDebug caption,#djDebug tbody,#djDebug tfoot,#djDebug thead,#djDebug tr,#djDebug th,#djDebug td{margin:0;padding:0;border:0;outline:0;font-size:12px;line-height:1.5em;color:#000;vertical-align:baseline;background:transparent;font-family:sans-serif;text-align:left}#djDebug #djDebugToolbar{background:#111;width:200px;z-index:100000000;position:fixed;top:0;bottom:0;right:0;opacity:.9}#djDebug #djDebugToolbar small{color:#999}#djDebug #djDebugToolbar ul{margin:0;padding:0;list-style:none}#djDebug #djDebugToolbar li{border-bottom:1px solid #222;color:#fff;display:block;font-weight:bold;float:none;margin:0;padding:0;position:relative;width:auto}#djDebug #djDebugToolbar li>a,#djDebug #djDebugToolbar li>div.contentless{font-weight:normal;font-style:normal;text-decoration:none;display:block;font-size:16px;padding:10px 10px 5px 25px;color:#fff}#djDebug #djDebugToolbar li a:hover{color:#111;background-color:#ffc}#djDebug #djDebugToolbar li.active{background-image:url(../img/indicator.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgFJREFUeNqUlE1LAmEQx11fesNeDLt08hZ4KcgvIF7EgxcR9CT4IQwErx47WhFBdvPgwUNQeOiogiLRQSQUQaKD6Vpba7ar20izMe4+bjTwY5/Zl//OMzPPcCaTaRUwAxbTjynAdAHq84XGARuADQXN+MGEIJG1QmCaOZVK7WKUdmCdYMf7K/hDKwagwjRLPp9/cLvdzUKh8Ab+GgosExGz5hvFSJAbDAYKmFSpVM4DgUABX57l6wsYAR/AO64/MQUyyauiE1SdTqdTC4fDZ61W6x0FRUAAXvEqElGJCP5qzG3H5XIdFovFdCgUOgB3B3AC28AmyekSKSDH3LL2piRJcjabvU4kEnfg8sAL0Me1GulYE+ViQdWq1ep9NBrN9vv9J3B7KPyKOf3EtNAe1VVwzjwez36pVDoKBoMu3KpNs13dlg0FZ+ZwOJx+v3+PHATO6H2r0UOe54fJZPIil8vVSLtMjE7LQsFGo/EYiUSuut3uM/aimjPJSFQnCE0+hVNzE4/Hb1FoyOjBCasHdYKiKPLpdPo0k8k0GY1NKyvTyjIFe71eLRaLHZfLZYFx9AS8jhgR6gXb7faJ1+u9FATBglWU8cMxRjki0RmOMmu9Xo/4fL4y9pmVzEMZBcakGPJfw3YWzRY2rA19dWLLBMNCaAXXNHNPIVFO/zOtZ/YtwADKQgq0l7HbRAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:left center;background-color:#333;padding-left:10px}#djDebug #djDebugToolbar li.active a:hover{color:#b36a60;background-color:transparent}#djDebug #djDebugToolbar li small{font-size:12px;color:#999;font-style:normal;text-decoration:none;font-variant:small-caps}#djDebug #djDebugToolbarHandle{position:fixed;background:#fff;border:1px solid #111;top:30px;right:0;z-index:100000000;opacity:.75}#djDebug a#djShowToolBarButton{display:block;height:75px;width:30px;border-right:0;border-bottom:4px solid #fff;border-top:4px solid #fff;border-left:4px solid #fff;color:#fff;font-size:10px;font-weight:bold;text-decoration:none;text-align:center;text-indent:-999999px;background:#000 url(../img/djdt_vertical.png) no-repeat left center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABLCAYAAAACnsWZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAATCSURBVGiB7ZlvSBtnHMe/sckZY5aMw06r7aTLjGOwTKOMEWYs7M2EaaUdjG6+GDoQ9mIyupUxGIONwVZfDHwxg2E4igym24s5sFB0oDRq1yi1G0RijTjhjJBI86fR/LvbC+nFs7ncXR7jMsgXDp67e57vffI8v/s9z3NRAeBQxCr7rwGkVAIkVQmQVCVAUpUASVX0gGqxGxaLBTabDVqtFn6/H5OTk4jFYifJxovLdgwNDXGH1dDQkLVeoY+iH+KiBxSNwaOy2+0wmUyKzH0+H7xer2Koo5IVg/loZGSkuGOwtraW2KOggHt7e8QesmMwEomAZVlF5uvr64qBjko2YEtLC9bW1ogfqFRFn2b+v4CpVIovsyyrOP6OSyrksS8uKysDTdNQq9XY3d1FIpEoAFpGshJma2sr53A4OI/Hw7EsK0jIDMNw4+PjXFdXVyEWDLkr6PV6bmJiQvbs4XK5uJqampMBpCiKW1hYUDzF+Xw+zmAwFB5wcHBQMdxjDQ8PHwug6EtC0zS2trag0+kE16enp7G4uAiv14tUKgWz2Qyr1YrOzk6oVCq+XjweR11dHYLBYDZ7RcpK3tvbK+iRcDjMdXR0iP5Sm83GMQwjaNPX11e4IR4dHRU8bGBgQNKsp6dH0MbpdBYO0OVyCR5mNBolzTQaDZdOp/k2c3NzxICiMwlN03x5e3sboVBIrCqvZDIJhmH4c6PRKNlGSqKrGYqi+HJFRQX6+/tlGWq12qxlEmXt2pWVlbxTzGMtLS0VbogjkQjxLw+Hw8QeooA7OzvE5n6/n9hDNAbdbrfibeZRLS8vE7UH8lxunaSKfkUte9MEAAa6EhrqVNZ7HAc8DETBpo935a1oiJ1zH6O5rUH0fmI/iQ2PH1Nji/jpuxlwHHn0KOpBKVFaDRqbz6Gx+RysdjOudn9P7FmwGGy/+DLa3rQQ++QNmEykEA3t8UcsGn+izhvvvEIEBxAM8c2xO/iy74bgWu35KjhmPkLt+SoAwFnTaTI6HPMQMxsBLM1mvgdqdVSO2vKkqAdvXL+FuzOrYFkOd/9YzVqHfsbAlze95NNlnht3FQx0JU6pyxDejSGZyHyFOGs6DWu7GVVnjLh3+wGWZ8m+sMoGfLG1Ht3vvwZruxn1jdWCDVJgO4R7tx9gauwO5iZXiIAUA+r05fhi9D28/pZVluH9+XV8ctmBoJ98qQVIAGooNUZmr+KlV59TZMpsBHCl6Ss8Cu+T8uV+iz/4+qJiOOAg3Xz47eW8oQ5LtAcNdCWmtr55IlX8Oe3BX4sb2PTuIJ1Ko95cjResz6Kt0yKIy0Q8hY66awgFHxEBiqaZC91NArhYZB+fvu3E/M2/s9a32Ey4/ks/qs4c7OSocjUudDfhtx9cRICiQ9zc9rzgfPjzSVE44ODlGLr2q+BaPuFxVKKA9eZqwfnvP85Lmt362Q2WzURMfWN1jtryJApooCv5cmA7hGhI+j+PVDKNAPOQP9cbKwjxcsSghsrcKq/Q4FK/XZYhpdVk2h0q5ytRwFg0k8OeelqHzxzvKjbPtgRTKtEhjkXIzQuaqIM75FNV0C/9wUlKokPscW8SLzhXl/8hag+UNu7kKgGSqgRIqhIgqUqApCp6wH8B9cAOKo9Os8wAAAAASUVORK5CYII=);opacity:.5}#djDebug a#djShowToolBarButton:hover{background-color:#111;padding-right:6px;border-top-color:#ffe761;border-left-color:#ffe761;border-bottom-color:#ffe761;opacity:1.0}#djDebug code{display:block;font-family:Consolas,Monaco,"Bitstream Vera Sans Mono","Lucida Console",monospace;white-space:pre;overflow:auto}#djDebug tr.djDebugOdd{background-color:#f5f5f5}#djDebug .panelContent{display:none;position:fixed;margin:0;top:0;right:200px;bottom:0;left:0;background-color:#eee;color:#666;z-index:100000000}#djDebug .panelContent>div{border-bottom:1px solid #ddd}#djDebug .djDebugPanelTitle{position:absolute;background-color:#ffc;color:#666;padding-left:20px;top:0;right:0;left:0;height:50px}#djDebug .djDebugPanelTitle code{display:inline;font-size:inherit}#djDebug .djDebugPanelContent{position:absolute;top:50px;right:0;bottom:0;left:0;height:auto;padding:5px 0 0 20px}#djDebug .djDebugPanelContent .scroll{height:100%;overflow:auto;display:block;padding:0 10px 0 0}#djDebug h3{font-size:24px;font-weight:normal;line-height:50px}#djDebug h4{font-size:20px;font-weight:bold;margin-top:.8em}#djDebug .panelContent table{border:1px solid #ccc;border-collapse:collapse;width:100%;background-color:#fff;display:block;margin-top:.8em;overflow:auto}#djDebug .panelContent tbody td,#djDebug .panelContent tbody th{vertical-align:top;padding:2px 3px}#djDebug .panelContent thead th{padding:1px 6px 1px 3px;text-align:left;font-weight:bold;font-size:14px}#djDebug .panelContent tbody th{width:12em;text-align:right;color:#666;padding-right:.5em}#djDebug .djTemplateHideContextDiv{background-color:#fff}#djDebug .panelContent .djDebugClose{text-indent:-9999999px;display:block;position:absolute;top:4px;right:15px;height:40px;width:40px;background:url(../img/close.png) no-repeat center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA7dJREFUeNqsWM1PE0EU3+7ShdJKoTRA8UYgIUKM3rmaEI0euXsw0YMHIZEbxBijEiIHLkb/A44SDYlXzkYPGBM+ri1NWz7aUmhp6+9tps10mLfdfrzkl2535r39zc77mvUdHh4abUoUCAD3xP/fQAFItWJkYmLC+e1p8eGPgQcC08ycf8BPgW2vhr0SeQa8AWIe5k4LvATiwCrwtZmS2WT8IfAL+OKRhCoxoftH2GqLyBLwHbhvdC53ha2lVrfmE/DKzbLP5yubplnt7e310f+rq6tqpVLxVatVy0VtHbgNLHohsupGIhQKFQG7v79f+8CLiwsjl8sVAZsxQbYTwFrDwpTwpaj4ptPu6+vLDw4OBkHA014QobOzs3yhUAgyUx4BP2rhq/rIe53GwMBAeXx83DMJEpobi8WCpMtMWeOc9TkwoyMRjUattrMedBkyM+KZN4isqDMDgUCuExIyGbKlGVpRiSzo8kQ4HA4ZXRLGVuzo6GhBJjKviw6dT5TLZSOTyRinp6cGQrV+n67hnEY6nTaur6+1PkM2NWTm5fCd0xDRhh89CKHpXCMijLGxMef6+PjYiRSSUqlUv6/arOlKMlcjQlV0qsGDTZPehpYIxurXRCSRSFByq5NQ56hvhWwj8cm2p7A9UdKYVBX8fn+F2+tIJGIgmzaQkUnYtm0MDw+zvsLYniQiEc2q/WxxwmqRHxrISA9xxiyLDzTGdsRsJwJoK3QPo3vctnhpAzLqTexhiVOg6JAdU5bLy0vHZ+Ro8mg7Q0QO1LvwenZZJycnN3yCIPsMRRYnjO0DU/SY+wprW7fiWmjKJMgnUIcafEaeoxZCJWJI9lH4UjV2u6pSPp/XJR9jaGiIKrERDAbrjllzYOQJZ4zm6ISxuSsntB3gqTyazWZtMowa0aBFb4HegC6aRkZG2C2hLSObmqEdOcVvUdJUZyBlZ7tVa1ASdEUvjW3ZUqvvO82e3kqlUuVOSZANvBFd0fugawM2VKclOT8/tzohQ7pkgzn/rHNdvLbLJkPxeDzHRRIXIaTDkCB57XacoJPZW8bZQpSskslk0Y0QjdEcmstsB8myegrsYbqmENfJU3dOpZyOEwjdCqLIWUyxWKygVzHFccJ2eVkbar/qdq5ZFC3/R5dUb6EBsqQmyEtLuawj0eykRwpPgL0uRO+esLXW7tmX9nEWeAEk2yCQFLqzzb4MeK3Zn4FRsapNEXqGy2eJTTF3VOh27bOE/Ia2pQ81YeCO+P+XknGrH2pq8l+AAQDv/n2Gmq99BgAAAABJRU5ErkJggg==)}#djDebug .panelContent .djDebugClose:hover{background-image:url(../img/close_hover.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABCVJREFUeNqsWG1IU1EYfjfd0i1bTc2WFTW3tG2aFWlEf4KkMIrCvhH6U9DnjxTyV0ZEXxIVGBH1JyKIPiBK8kf1syCKwu8M3VQsK7OV6ba2udZ7bmd6d+85827zhYftnnPe5z73nvc95z1X5XQ6IUHLQqQjiul1E8KHGIqHxGw2C7+pcd58E6KMooAzphPxnKJBKbFSIfsRpxAmBWMLKI4iviBOIm5O5qSepL8c8R5xQ6EIqZmobzPlSkhINeIpYhkkb0WUqzreqbmEOBaTOjQGf/0+CHz7Klxqc+aAehrGbkrM2b6IyEVUKRFyMpYI38dW8HS0gc/5kdmfnpcPepsD0vMLeRSEm6ivEzeqJOlLsuIJyzs40Au/Xr+CP64uRXORZraCoXQ1aHMX8YZsRDRG0lcqpA1hl3p4mt+C+/nThILDWLYR9EtXsrraEY6IEHGwHmCJGG16k7AIYsTX0/KO1WWn95QJqZWODHxyws8XjUmnjPtZg8DFsFqpkB2sdWL4zWuYKuNwmVwu1w6xkA2s7GAFpnaGAcxbd8H8snJQa7QTUZ+aCrlr10NexR5Iy8yW+REuwsmwDeL0XSOLjfYW5pNZtldC9orS/4FoK4LWa5cgHP4L9n1HILNoudCuM82F1qsXgcXJSOs1ESFkF7WKe8JBfxifQMVMY8/o+P+Z+TYoPFwNoYAfMh3FE2udz8d8CPJWCLdKM03MbcXpySJTY5EtmsNuFW+uex4/gJFe14SYxUuiRHi/fIaue7f5CzKb20KEGKWtYx4Pl2jM54WW+joY6euR9Xm/DkDT5bMQHB3h+7O5jepEMiAUDDBvRtpCfn9CWUWEuGUbkF7PdSDZQQLTaC+S9Rks+VB4qCoqmxRyu4mQbmlrisEY5hEtLN8ynh2RmBjt74sK4LyK3VwhHO5uNa0xoxYMEtVk02KZbk7uxB400C/ERPOVc1EBrMsxcTdCScYQ68L9ZiiyjryUprC+wM5c0PoaH4EmIwMCv4eh6+6t8VghAWzdtVdYzHoaHjKFEE6GvRTvvmSZvScd8f3hHfjT2z0lS3zaQgtkb6tkde3EN3I/kjX3ET9kwVdSOmV7jaF0Fav5BxEh3X3PyPaVBVaYta48aRGkJtHOt7C6zrPKgMvSoCU2vbhEIEpGBKcw6qQ1LLNmrWaVioRIk2kUtvK4SsWSVaCdl8cbcjxW8UxOZqcRJ2TThITZCO+HZvB2dsQsnnUFNtAtWRpLZ430FKjinH0VHSdCXg8EhwaFS03WbEjR6Sc7TkRCoErp2beKlvwX+EtkKqRkGATEYTXSY4SSkx5x2Eyr7WStnXLVJXr2JfPoQBxEDCYgYJD6Oib7MqC0DLiOyKFPVU9TD2J8lqinY3Oo75R9lhC/oQbRhxoSIDZ63UGK9Xg/1ETsnwADAJrrTk7nZiozAAAAAElFTkSuQmCC)}#djDebug .panelContent .djDebugClose.djDebugBack{background-image:url(../img/back.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA7FJREFUeNrMWM1PE0EU3+7S7bZdKSFNSIFgJJAgINE7VxOi0SP/gYkePAiJ3CDGGJUQOXAx+h9wlGhIvHI2fgQ08mEkkjZNIZR2+7Httr63zMoyOzPdthx8yS+bnZn3m9/OvDcfG9jd3ZVatDggDLhO3j8DioBMMySDg4P2s6PJzu8AbhKMcNr8AHwkWPNL7FfIPcATQMJH2xGCh4AkYAHwtpGT3KD+FuAT4I1PEbQliO8XwtWSkFnAe8ANqX2bIFyzzU7NK8AjEXMgELBkWa6HQqEAvpfL5XqtVgvU63VF4LYE6APM+BGyIBKh67oJUCORCLPDQqEg5fN5E6ByKJA7BVg892FU+mJWvGN5a5pmdHV1RUGAr7lAQdls1igWi1FOk9uAD0760jHynOXR2dlp9fb2+haBhm0TiUQUfTlNFnnBeh8wxhIRj8eVllc98OWIGSN9eoTM0y3D4XC+HRFuMcjFqJqnhUyz1olYLKa730uVCrMjXrmIy1ln9vb2pt1CpljZQcdE1ihIW/sHHrayWbHLq1ZNGDPIyaiacguZZAhhph+K+fpr39Ppqcg/wtHhcE46QnAXHT4XwbJssjJECwbtp1EqS99AjNNpSD0r//77wH7yRgW5qeJhmJ44ChmiHYLBIHOMY9GINDrQ9y8uHDEoEMs7FNl+x5HhieFwD6GQbs8GJMtBbtCBmIkrA3anOD0YH2ci+21RWJ4vldibG5u7W5b+E8O95oguhM0LP1PhBauTOfj1Tnxg+c+DpD0aOFq6pjE75HAfoZAdunGlUpH9iLh6uc9+nsaFt5xlHO4dmZwxtynVKm5avIUrqoWkaxAnTmdOnGC5SARyIjdVvA0bX8ZRt0E7GYZhNgpWb0b1c0UIODfcC9o6XZvL5VTYwrnp6zaMEyd9eYZcyMmoWncLWQUcemIim82xFjTeQiey4+Nj1qZ3CNOySu++zxhzeimTyVjtpiZywIiwNr0XrGPAMh20aCcnJ0o7YtAXOTj3nyXeKZ55ykaiZDKZZ2WS6KiIPhwRaI9F1wm8mT3lBJueSqWkdDptigRhHbbBtpzpQJujb4EdnFOTzjvJ4+kcYF8nFEWpqapqf4xpmjXLsmRynVAFg7VMn1dF95oZcuR/yWPDDqvVKsIp8nOknGOJaHTTQ4e7gM0L2NM2Cddiq3dfnMdxwANAugUBaeI73ujPgN9jwGtAD/mqFZJ6kuC3xApp20N8L+y3hHuE1lw/amKAUfK+hYtxsz9qHPsrwACHs5P9Qys/0AAAAABJRU5ErkJggg==)}#djDebug .panelContent .djDebugClose.djDebugBack:hover{background-image:url(../img/back_hover.png);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA6hJREFUeNrMWF1Ik1EYPtt0pkuGa/aDJTY3nNvSfkglvEwQpa7CbrosKAghBedNikKgEgVe1m03SVeJXmSXBmIozpxpuiUS/eicSc75m73vx/nGt7Nzvm8/BR14+Pjec85znp297znv++kCgQBJs1kBuYDz9H0KEAWEUiGx2WzSMyvFxa8B6iicgjFzgBGKwWSJdUnuyB1AF+BUisK/AToBz7V2RK9B1ACYBDxLQwShc3Cuj3IJm5qQVsAQ4ALJvFVQrlbRAJGPPAE8UKU+2Ce/d6Jk98d36dV44iTR54DvGlTd7jGgCNCSjJBONRHR+Q8kMjtDooF5bn9uaRkxuTwkt+yciAK5UX2fmrNiVLzmzd77ukR+jr0j28GFpP6LIzYHMVdfIcais6IhjYBh2VlZITMANzsj4ntPwiNDaTmHpa6RmCov87r8AA8vau7yRGxOjactAhvOjUxP8LrcdM0EIR3syN0vAbL+djjjkAm/GZS4OK2DFdLEOyc2xsfi/3frcb4/COxqXPI5EwwGm5RC6nnRwTpmgdNNKpq9iZFiLZTsWXkmoRDkQk5Oq1cKqU3wDf80lxDFXGzvTlhUFqm2OwLOWlkI3qIOZc/h3s4hL0y3QyvSM7+4hFxq74otGg2txuyVzW3SU7QryM2YHfD3WFGIPeHQ3AjreETrc34y3d8b8wtZDApE+/5WRHrHnRGJEXDbUYiFte5HIsLtRTGTPR3Sovj3oH8oRaIotB8t5h9kAm6LnvwnDe+acILRJPZ+ZeTgr5f9A+2u2/el3cDd2lz+zF+Qzx1GIYus1WC2oEPptET4+vukp+wXrJ3XBNyLeppjxoWILjtHh5eW6OD6tbxEJno6Y4vJfoJ2NRHIidyMeQHum5DsI6PsJJPTremsvIgSiVDhHFXevnjMvmRHrL56QbaXFuN2hLeQyB43psROCm/c4nXdhB0ZkHdkALDGjjBXVXMPNNFBp9bM1TU88xqKYG/fR+woY7GDFFxtyDg0MScxnrHzunpEGdon9rj/h4kR1j/logKrlZcqIlH2MYt0laeUKlbVEOPpUtGQNq0CqxvwUDR766OPbM3NqibPeU4XySuvVNPplZNnUc6aUjlxACG8Rx01GyLHgKmBQbOKfaosJ7Rq3xaa8vcK6WBBQ75ZQgrNy5YRyVR6OOE6zbYzbX7K1ZdOyUloNe8B3AOspCFghc71aH0Z0KX4feSvf5bQctZkP9Sgg7jo+ywm6+l+qPkjwADNS26fFM/O1QAAAABJRU5ErkJggg==)}#djDebug .panelContent dt,#djDebug .panelContent dd{display:block}#djDebug .panelContent dt{margin-top:.75em}#djDebug .panelContent dd{margin-left:10px}#djDebug a.toggleTemplate{padding:4px;background-color:#bbb;-moz-border-radius:3px;-webkit-border-radius:3px}#djDebug a.toggleTemplate:hover{padding:4px;background-color:#444;color:#ffe761;-moz-border-radius:3px;-webkit-border-radius:3px}#djDebug a.djTemplateShowContext,#djDebug a.djTemplateShowContext span.toggleArrow{color:#999}#djDebug a.djTemplateShowContext:hover,#djDebug a.djTemplateShowContext:hover span.toggleArrow{color:#000;cursor:pointer}#djDebug .djDebugSqlWrap{position:relative}#djDebug .djDebugCollapsed{display:none;text-decoration:none;color:#333}#djDebug .djDebugUncollapsed{color:#333;text-decoration:none}#djDebug .djUnselected{display:none}#djDebug tr.djHiddenByDefault{display:none}#djDebug tr.djSelected{display:table-row}#djDebug .djDebugSql{z-index:100000002}#djDebug .djSQLDetailsDiv tbody th{text-align:left}#djDebug .djSqlExplain td{white-space:pre}#djDebug span.djDebugLineChart{background-color:#777;height:3px;position:absolute;bottom:0;top:0;left:0;display:block;z-index:1000000001}#djDebug span.djDebugLineChartWarning{background-color:#900}#djDebug .highlight{color:#000}#djDebug .highlight .err{color:#000}#djDebug .highlight .g{color:#000}#djDebug .highlight .k{color:#000;font-weight:bold}#djDebug .highlight .o{color:#000}#djDebug .highlight .n{color:#000}#djDebug .highlight .mi{color:#000;font-weight:bold}#djDebug .highlight .l{color:#000}#djDebug .highlight .x{color:#000}#djDebug .highlight .p{color:#000}#djDebug .highlight .m{color:#000;font-weight:bold}#djDebug .highlight .s{color:#333}#djDebug .highlight .w{color:#888}#djDebug .highlight .il{color:#000;font-weight:bold}#djDebug .highlight .na{color:#333}#djDebug .highlight .nt{color:#000;font-weight:bold}#djDebug .highlight .nv{color:#333}#djDebug .highlight .s2{color:#333}#djDebug .highlight .cp{color:#333}#djDebug .timeline{width:30%}#djDebug .djDebugTimeline{position:relative;height:100%;min-height:100%}#djDebug div.djDebugLineChart{position:absolute;left:0;right:0;top:0;bottom:0;vertical-align:middle}#djDebug div.djDebugLineChart strong{text-indent:-10000em;display:block;font-weight:normal;vertical-align:middle;background-color:#ccc}#djDebug div.djDebugLineChartWarning strong{background-color:#900}#djDebug .djDebugInTransaction div.djDebugLineChart strong{background-color:#d3ff82}#djDebug .djDebugStartTransaction div.djDebugLineChart strong{border-left:1px solid #94b24d}#djDebug .djDebugEndTransaction div.djDebugLineChart strong{border-right:1px solid #94b24d}#djDebug .djDebugHover div.djDebugLineChart strong{background-color:#000}#djDebug .djDebugInTransaction.djDebugHover div.djDebugLineChart strong{background-color:#94b24d}#djDebug .panelContent ul.stats{position:relative}#djDebug .panelContent ul.stats li{width:30%;float:left}#djDebug .panelContent ul.stats li strong.label{display:block}#djDebug .panelContent ul.stats li span.color{height:12px;width:3px;display:inline-block}#djDebug .panelContent ul.stats li span.info{display:block;padding-left:5px}#djDebug .panelcontent thead th{white-space:nowrap}#djDebug .djDebugRowWarning .time{color:red}#djdebug .panelcontent table .toggle{width:14px;padding-top:3px}#djdebug .panelcontent table .actions{min-width:70px}#djdebug .panelcontent table .color{width:3px}#djdebug .panelcontent table .color span{width:3px;height:12px;overflow:hidden;padding:0}#djDebug .djToggleSwitch{text-decoration:none;border:1px solid #999;height:12px;width:12px;line-height:12px;text-align:center;color:#777;display:inline-block;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFF',endColorstr='#DCDCDC');background:-webkit-gradient(linear,left top,left bottom,from(#FFF),to(#dcdcdc));background:-moz-linear-gradient(center top,#fff 0,#dcdcdc 100%) repeat scroll 0 0 transparent}#djDebug .djNoToggleSwitch{height:14px;width:14px;display:inline-block}#djDebug .djSQLDetailsDiv{margin-top:.8em}#djDebug pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;color:#555;border:1px solid #ccc;border-collapse:collapse;background-color:#fff;display:block;overflow:auto;padding:2px 3px;margin-bottom:3px;font-family:Consolas,Monaco,"Bitstream Vera Sans Mono","Lucida Console",monospace}#djDebug .stack span{color:#000;font-weight:bold}#djDebug .stack span.path{color:#777;font-weight:normal}#djDebug .stack span.code{font-weight:normal}@media print{#djDebug{display:none}}
\ No newline at end of file diff --git a/debug_toolbar/media/debug_toolbar/js/jquery.js b/debug_toolbar/media/debug_toolbar/js/jquery.js index 26cbb47..74ce411 100644 --- a/debug_toolbar/media/debug_toolbar/js/jquery.js +++ b/debug_toolbar/media/debug_toolbar/js/jquery.js @@ -1,24 +1,30 @@  /*! - * jQuery JavaScript Library v1.4.1 + * jQuery JavaScript Library v1.7.1   * http://jquery.com/   * - * Copyright 2010, John Resig + * 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 2010, The Dojo Foundation + * Copyright 2011, The Dojo Foundation   * Released under the MIT, BSD, and GPL Licenses.   * - * Date: Mon Jan 25 19:43:33 2010 -0500 + * 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 ); +		return new jQuery.fn.init( selector, context, rootjQuery );  	},  	// Map over jQuery in case of overwrite @@ -27,52 +33,70 @@ var jQuery = function( selector, context ) {  	// Map over the $ in case of overwrite  	_$ = window.$, -	// Use the correct document accordingly with window argument (sandbox) -	document = window.document, -  	// A central reference to the root jQuery(document)  	rootjQuery,  	// A simple way to check for HTML strings or ID strings -	// (both of which we optimize for) -	quickExpr = /^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/, - -	// Is it a simple selector -	isSimple = /^.[^:#\[\.,]*$/, +	// 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 -	rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g, +	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, -	 -	// Has the ready events already been bound? -	readyBound = false, -	 -	// The functions to execute on DOM ready -	readyList = [], + +	// The deferred used on DOM ready +	readyList,  	// The ready event handler  	DOMContentLoaded,  	// Save a reference to some core methods  	toString = Object.prototype.toString, -	hasOwnProperty = Object.prototype.hasOwnProperty, +	hasOwn = Object.prototype.hasOwnProperty,  	push = Array.prototype.push,  	slice = Array.prototype.slice, -	indexOf = Array.prototype.indexOf; +	trim = String.prototype.trim, +	indexOf = Array.prototype.indexOf, + +	// [[Class]] -> type pairs +	class2type = {};  jQuery.fn = jQuery.prototype = { -	init: function( selector, context ) { +	constructor: jQuery, +	init: function( selector, context, rootjQuery ) {  		var match, elem, ret, doc;  		// Handle $(""), $(null), or $(undefined) @@ -87,17 +111,33 @@ jQuery.fn = jQuery.prototype = {  			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? -			match = quickExpr.exec( selector ); +			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] ) { -					doc = (context ? context.ownerDocument || context : document); +					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 @@ -113,15 +153,19 @@ jQuery.fn = jQuery.prototype = {  						}  					} else { -						ret = buildFragment( [ match[1] ], [ doc ] ); -						selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes; +						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] ); -					if ( elem ) { +					// 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] ) { @@ -138,20 +182,14 @@ jQuery.fn = jQuery.prototype = {  					return this;  				} -			// HANDLE: $("TAG") -			} else if ( !context && /^\w+$/.test( selector ) ) { -				this.selector = selector; -				this.context = document; -				selector = document.getElementsByTagName( selector ); -  			// HANDLE: $(expr, $(...))  			} else if ( !context || context.jquery ) { -				return (context || rootjQuery).find( selector ); +				return ( context || rootjQuery ).find( selector );  			// HANDLE: $(expr, context)  			// (which is just equivalent to: $(context).find(expr)  			} else { -				return jQuery( context ).find( selector ); +				return this.constructor( context ).find( selector );  			}  		// HANDLE: $(function) @@ -160,21 +198,19 @@ jQuery.fn = jQuery.prototype = {  			return rootjQuery.ready( selector );  		} -		if (selector.selector !== undefined) { +		if ( selector.selector !== undefined ) {  			this.selector = selector.selector;  			this.context = selector.context;  		} -		return jQuery.isArray( selector ) ? -			this.setArray( selector ) : -			jQuery.makeArray( selector, this ); +		return jQuery.makeArray( selector, this );  	},  	// Start with an empty selector  	selector: "",  	// The current version of jQuery being used -	jquery: "1.4.1", +	jquery: "1.7.1",  	// The default length of a jQuery object is 0  	length: 0, @@ -197,14 +233,21 @@ jQuery.fn = jQuery.prototype = {  			this.toArray() :  			// Return just the object -			( num < 0 ? this.slice(num)[ 0 ] : this[ num ] ); +			( 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 = jQuery( elems || null ); +		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; @@ -212,7 +255,7 @@ jQuery.fn = jQuery.prototype = {  		ret.context = this.context;  		if ( name === "find" ) { -			ret.selector = this.selector + (this.selector ? " " : "") + selector; +			ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;  		} else if ( name ) {  			ret.selector = this.selector + "." + name + "(" + selector + ")";  		} @@ -221,47 +264,28 @@ jQuery.fn = jQuery.prototype = {  		return ret;  	}, -	// Force the current matched set of elements to become -	// the specified array of elements (destroying the stack in the process) -	// You should use pushStack() in order to do this, but maintain the stack -	setArray: function( elems ) { -		// Resetting the length to 0, then using the native Array push -		// is a super-fast way to populate an object with array-like properties -		this.length = 0; -		push.apply( this, elems ); - -		return this; -	}, -  	// 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(); -		// If the DOM is already ready -		if ( jQuery.isReady ) { -			// Execute the function immediately -			fn.call( document, jQuery ); - -		// Otherwise, remember the function for later -		} else if ( readyList ) { -			// Add the function to the wait list -			readyList.push( fn ); -		} +		// Add the callback +		readyList.add( fn );  		return this;  	}, -	 +  	eq: function( i ) { +		i = +i;  		return i === -1 ?  			this.slice( i ) : -			this.slice( i, +i + 1 ); +			this.slice( i, i + 1 );  	},  	first: function() { @@ -282,9 +306,9 @@ jQuery.fn = jQuery.prototype = {  			return callback.call( elem, i, elem );  		}));  	}, -	 +  	end: function() { -		return this.prevObject || jQuery(null); +		return this.prevObject || this.constructor(null);  	},  	// For internal use only. @@ -298,8 +322,11 @@ jQuery.fn = jQuery.prototype = {  jQuery.fn.init.prototype = jQuery.fn;  jQuery.extend = jQuery.fn.extend = function() { -	// copy reference to target object -	var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy; +	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" ) { @@ -333,10 +360,15 @@ jQuery.extend = jQuery.fn.extend = function() {  					continue;  				} -				// Recurse if we're merging object literal values or arrays -				if ( deep && copy && ( jQuery.isPlainObject(copy) || jQuery.isArray(copy) ) ) { -					var clone = src && ( jQuery.isPlainObject(src) || jQuery.isArray(src) ) ? src -						: jQuery.isArray(copy) ? [] : {}; +				// 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 ); @@ -355,67 +387,79 @@ jQuery.extend = jQuery.fn.extend = function() {  jQuery.extend({  	noConflict: function( deep ) { -		window.$ = _$; +		if ( window.$ === jQuery ) { +			window.$ = _$; +		} -		if ( deep ) { +		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() { -		// Make sure that the DOM is not already loaded -		if ( !jQuery.isReady ) { +	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, 13 ); +				return setTimeout( jQuery.ready, 1 );  			}  			// Remember that the DOM is ready  			jQuery.isReady = true; -			// If there are functions bound, to execute -			if ( readyList ) { -				// Execute all of them -				var fn, i = 0; -				while ( (fn = readyList[ i++ ]) ) { -					fn.call( document, jQuery ); -				} - -				// Reset the list of functions -				readyList = null; +			// 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.triggerHandler ) { -				jQuery( document ).triggerHandler( "ready" ); +			if ( jQuery.fn.trigger ) { +				jQuery( document ).trigger( "ready" ).off( "ready" );  			}  		}  	}, -	 +  	bindReady: function() { -		if ( readyBound ) { +		if ( readyList ) {  			return;  		} -		readyBound = true; +		readyList = jQuery.Callbacks( "once memory" );  		// Catch cases where $(document).ready() is called after the  		// browser event has already occurred.  		if ( document.readyState === "complete" ) { -			return jQuery.ready(); +			// 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 ); @@ -423,8 +467,8 @@ jQuery.extend({  		} else if ( document.attachEvent ) {  			// ensure firing before onload,  			// maybe late but safe also for iframes -			document.attachEvent("onreadystatechange", DOMContentLoaded); -			 +			document.attachEvent( "onreadystatechange", DOMContentLoaded ); +  			// A fallback to window.onload, that will always work  			window.attachEvent( "onload", jQuery.ready ); @@ -446,35 +490,55 @@ jQuery.extend({  	// Since version 1.3, DOM methods and functions like alert  	// aren't supported. They return false on IE (#2968).  	isFunction: function( obj ) { -		return toString.call(obj) === "[object Function]"; +		return jQuery.type(obj) === "function";  	}, -	isArray: function( obj ) { -		return toString.call(obj) === "[object Array]"; +	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 || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { +		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {  			return false;  		} -		 -		// Not own constructor property must be Object -		if ( obj.constructor -			&& !hasOwnProperty.call(obj, "constructor") -			&& !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) { + +		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 || hasOwnProperty.call( obj, key ); + +		return key === undefined || hasOwn.call( obj, key );  	},  	isEmptyObject: function( obj ) { @@ -483,57 +547,79 @@ jQuery.extend({  		}  		return true;  	}, -	 +  	error: function( msg ) { -		throw 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 ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@") -			.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]") -			.replace(/(?:^|:|,)(?:\s*\[)+/g, "")) ) { +		if ( rvalidchars.test( data.replace( rvalidescape, "@" ) +			.replace( rvalidtokens, "]" ) +			.replace( rvalidbraces, "")) ) { -			// Try to use the native JSON parser first -			return window.JSON && window.JSON.parse ? -				window.JSON.parse( data ) : -				(new Function("return " + data))(); +			return ( new Function( "return " + data ) )(); -		} else { -			jQuery.error( "Invalid JSON: " + 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() {}, -	// Evalulates a script in a global context +	// 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) ) { -			// Inspired by code by Andrea Giammarchi -			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html -			var head = document.getElementsByTagName("head")[0] || document.documentElement, -				script = document.createElement("script"); - -			script.type = "text/javascript"; - -			if ( jQuery.support.scriptEval ) { -				script.appendChild( document.createTextNode( data ) ); -			} else { -				script.text = data; -			} - -			// Use insertBefore instead of appendChild to circumvent an IE6 bug. -			// This arises when a base node is used (#2709). -			head.insertBefore( script, head.firstChild ); -			head.removeChild( script ); +		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();  	}, @@ -542,7 +628,7 @@ jQuery.extend({  	each: function( object, callback, args ) {  		var name, i = 0,  			length = object.length, -			isObj = length === undefined || jQuery.isFunction(object); +			isObj = length === undefined || jQuery.isFunction( object );  		if ( args ) {  			if ( isObj ) { @@ -568,17 +654,31 @@ jQuery.extend({  					}  				}  			} else { -				for ( var value = object[0]; -					i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {} +				for ( ; i < length; ) { +					if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { +						break; +					} +				}  			}  		}  		return object;  	}, -	trim: function( text ) { -		return (text || "").replace( rtrim, "" ); -	}, +	// 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 ) { @@ -586,9 +686,10 @@ jQuery.extend({  		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) -			if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) { +			// 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 ); @@ -598,14 +699,22 @@ jQuery.extend({  		return ret;  	}, -	inArray: function( elem, array ) { -		if ( array.indexOf ) { -			return array.indexOf( elem ); -		} +	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 ( var i = 0, length = array.length; i < length; i++ ) { -			if ( array[ i ] === elem ) { -				return i; +			for ( ; i < len; i++ ) { +				// Skip accessing in sparse arrays +				if ( i in array && array[ i ] === elem ) { +					return i; +				}  			}  		} @@ -613,12 +722,14 @@ jQuery.extend({  	},  	merge: function( first, second ) { -		var i = first.length, j = 0; +		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++ ]; @@ -631,12 +742,14 @@ jQuery.extend({  	},  	grep: function( elems, callback, inv ) { -		var ret = []; +		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++ ) { -			if ( !inv !== !callback( elems[ i ], i ) ) { +			retVal = !!callback( elems[ i ], i ); +			if ( inv !== retVal ) {  				ret.push( elems[ i ] );  			}  		} @@ -646,69 +759,143 @@ jQuery.extend({  	// arg is for internal usage only  	map: function( elems, callback, arg ) { -		var ret = [], value; +		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 -		// new value (or values). -		for ( var i = 0, length = elems.length; i < length; i++ ) { -			value = callback( elems[ i ], i, arg ); +		if ( isArray ) { +			for ( ; i < length; i++ ) { +				value = callback( elems[ i ], i, arg ); -			if ( value != null ) { -				ret[ ret.length ] = value; +				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, -	proxy: function( fn, proxy, thisObject ) { -		if ( arguments.length === 2 ) { -			if ( typeof proxy === "string" ) { -				thisObject = fn; -				fn = thisObject[ proxy ]; -				proxy = undefined; +	// 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; +		} -			} else if ( proxy && !jQuery.isFunction( proxy ) ) { -				thisObject = proxy; -				proxy = undefined; -			} +		// 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;  		} -		if ( !proxy && fn ) { +		// Simulated bind +		var args = slice.call( arguments, 2 ),  			proxy = function() { -				return fn.apply( thisObject || this, arguments ); +				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 -		if ( fn ) { -			proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; -		} +		proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; -		// So proxy can be declared as an argument  		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 = /(webkit)[ \/]([\w.]+)/.exec( ua ) || -			/(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) || -			/(msie) ([\w.]+)/.exec( ua ) || -			!/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) || -		  	[]; +		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; @@ -720,10 +907,10 @@ if ( jQuery.browser.webkit ) {  	jQuery.browser.safari = true;  } -if ( indexOf ) { -	jQuery.inArray = function( elem, array ) { -		return indexOf.call( array, elem ); -	}; +// 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 @@ -756,7 +943,7 @@ function doScrollCheck() {  		// If IE is used, use the trick by Diego Perini  		// http://javascript.nwbox.com/IEContentLoaded/  		document.documentElement.doScroll("left"); -	} catch( error ) { +	} catch(e) {  		setTimeout( doScrollCheck, 1 );  		return;  	} @@ -765,77 +952,420 @@ function doScrollCheck() {  	jQuery.ready();  } -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 || "" ); -	} +return jQuery; -	if ( elem.parentNode ) { -		elem.parentNode.removeChild( elem ); +})(); + + +// 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;  } -// Mutifunctional method to get and set values to a collection -// The value/s can be optionally by executed if its a function -function access( elems, key, value, exec, fn, pass ) { -	var length = elems.length; -	 -	// Setting many attributes -	if ( typeof key === "object" ) { -		for ( var k in key ) { -			access( elems, k, key[k], exec, fn, value ); +/* + * 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 ); +				} +			};  		} -		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 ); +		function progressFunc( i ) { +			return function( value ) { +				pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; +				deferred.notifyWith( promise, pValues ); +			};  		} -		 -		return elems; +		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;  	} -	 -	// Getting an attribute -	return length ? fn( elems[0], key ) : null; -} +}); -function now() { -	return (new Date).getTime(); -} -(function() { -	jQuery.support = {}; -	var root = document.documentElement, -		script = document.createElement("script"), -		div = document.createElement("div"), -		id = "script" + now(); -	div.style.display = "none"; -	div.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; +jQuery.support = (function() { -	var all = div.getElementsByTagName("*"), -		a = div.getElementsByTagName("a")[0]; +	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; +		return {};  	} -	jQuery.support = { +	// 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, +		leadingWhitespace: ( div.firstChild.nodeType === 3 ),  		// Make sure that tbody elements aren't automatically inserted  		// IE will insert them into empty tables @@ -846,17 +1376,17 @@ function now() {  		htmlSerialize: !!div.getElementsByTagName("link").length,  		// Get the style information from getAttribute -		// (IE uses .cssText insted) -		style: /red/.test( a.getAttribute("style") ), +		// (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", +		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 ), +		opacity: /^0.55/.test( a.style.opacity ),  		// Verify style float existence  		// (IE uses styleFloat instead of cssFloat) @@ -865,207 +1395,497 @@ function now() {  		// Make sure that if no value is specified for a checkbox  		// that it defaults to "on".  		// (WebKit defaults to "" instead) -		checkOn: div.getElementsByTagName("input")[0].value === "on", +		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: document.createElement("select").appendChild( document.createElement("option") ).selected, +		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 -		checkClone: false, -		scriptEval: false, +		submitBubbles: true, +		changeBubbles: true, +		focusinBubbles: false, +		deleteExpando: true,  		noCloneEvent: true, -		boxModel: null +		inlineBlockNeedsLayout: false, +		shrinkWrapBlocks: false, +		reliableMarginRight: true  	}; -	script.type = "text/javascript"; -	try { -		script.appendChild( document.createTextNode( "window." + id + "=1;" ) ); -	} catch(e) {} +	// Make sure checked status is properly cloned +	input.checked = true; +	support.noCloneChecked = input.cloneNode( true ).checked; -	root.insertBefore( script, root.firstChild ); +	// 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; -	// Make sure that the execution of code works by injecting a script -	// tag with appendChild/createTextNode -	// (IE doesn't support this, fails, and uses .text instead) -	if ( window[ id ] ) { -		jQuery.support.scriptEval = true; -		delete window[ id ]; +	// 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;  	} -	root.removeChild( script ); - -	if ( div.attachEvent && div.fireEvent ) { -		div.attachEvent("onclick", function click() { +	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) -			jQuery.support.noCloneEvent = false; -			div.detachEvent("onclick", click); +			support.noCloneEvent = false;  		}); -		div.cloneNode(true).fireEvent("onclick"); +		div.cloneNode( true ).fireEvent( "onclick" );  	} -	div = document.createElement("div"); -	div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>"; +	// 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"; -	var fragment = document.createDocumentFragment(); -	fragment.appendChild( div.firstChild ); +	input.setAttribute("checked", "checked"); +	div.appendChild( input ); +	fragment = document.createDocumentFragment(); +	fragment.appendChild( div.lastChild );  	// WebKit doesn't clone checked state correctly in fragments -	jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked; +	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 ); -	// Figure out if the W3C box model works as expected -	// document.body must exist before we can do this +	// 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 div = document.createElement("div"); +		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 ) +		}; -		document.body.appendChild( div ); -		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; -		document.body.removeChild( div ).style.display = 'none'; -		div = null; -	}); +		inner.style.position = "fixed"; +		inner.style.top = "20px"; -	// Technique from Juriy Zaytsev -	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ -	var eventSupported = function( eventName ) {  -		var el = document.createElement("div");  -		eventName = "on" + eventName;  - -		var isSupported = (eventName in el);  -		if ( !isSupported ) {  -			el.setAttribute(eventName, "return;");  -			isSupported = typeof el[eventName] === "function";  -		}  -		el = null;  - -		return isSupported;  -	}; -	 -	jQuery.support.submitBubbles = eventSupported("submit"); -	jQuery.support.changeBubbles = eventSupported("change"); +		// safari subtracts parent border width here which is 5px +		offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 ); +		inner.style.position = inner.style.top = ""; -	// release memory in IE -	root = script = div = all = a = null; +		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;  })(); -jQuery.props = { -	"for": "htmlFor", -	"class": "className", -	readonly: "readOnly", -	maxlength: "maxLength", -	cellspacing: "cellSpacing", -	rowspan: "rowSpan", -	colspan: "colSpan", -	tabindex: "tabIndex", -	usemap: "useMap", -	frameborder: "frameBorder" -}; -var expando = "jQuery" + now(), uuid = 0, windowData = {}; -var emptyObject = {}; + + + +var rbrace = /^(?:\{.*\}|\[.*\])$/, +	rmultiDash = /([A-Z])/g;  jQuery.extend({  	cache: {}, -	 -	expando:expando, + +	// 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, -		"object": true, +		// Ban all objects except for Flash (which handle expandos) +		"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",  		"applet": true  	}, -	data: function( elem, name, data ) { -		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { +	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;  		} -		elem = elem == window ? -			windowData : -			elem; +		var privateCache, thisCache, ret, +			internalKey = jQuery.expando, +			getByName = typeof name === "string", -		var id = elem[ expando ], cache = jQuery.cache, thisCache; +			// 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, -		// Handle the case where there's no name immediately -		if ( !name && !id ) { -			return null; +			// 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;  		} -		// Compute a unique ID for the element -		if ( !id ) {  -			id = ++uuid; +		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; +			}  		} -		// Avoid generating a new cache unless none exists and we -		// want to manipulate it. -		if ( typeof name === "object" ) { -			elem[ expando ] = id; -			thisCache = cache[ id ] = jQuery.extend(true, {}, name); -		} else if ( cache[ id ] ) { -			thisCache = cache[ id ]; -		} else if ( typeof data === "undefined" ) { -			thisCache = emptyObject; -		} else { -			thisCache = cache[ id ] = {}; +		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;  		} -		// Prevent overriding the named cache with undefined values  		if ( data !== undefined ) { -			elem[ expando ] = id; -			thisCache[ name ] = data; +			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;  		} -		return typeof name === "string" ? thisCache[ name ] : thisCache; +		// 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 ) { -		if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { +	removeData: function( elem, name, pvt /* Internal Use Only */ ) { +		if ( !jQuery.acceptData( elem ) ) {  			return;  		} -		elem = elem == window ? -			windowData : -			elem; +		var thisCache, i, l, + +			// Reference to internal data cache key +			internalKey = jQuery.expando, -		var id = elem[ expando ], cache = jQuery.cache, thisCache = cache[ id ]; +			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 we want to remove a specific section of the element's data  		if ( name ) { + +			thisCache = pvt ? cache[ id ] : cache[ id ].data; +  			if ( thisCache ) { -				// Remove the section of cache data -				delete thisCache[ name ]; -				// If we've removed all the data, remove the element's cache -				if ( jQuery.isEmptyObject(thisCache) ) { -					jQuery.removeData( elem ); +				// 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( " " ); +						} +					}  				} -			} -		// Otherwise, we want to remove all of the element's data -		} else { -			// Clean up the element expando -			try { -				delete elem[ expando ]; -			} catch( e ) { -				// IE has trouble directly removing the expando -				// but it's ok with using removeAttribute -				if ( elem.removeAttribute ) { -					elem.removeAttribute( expando ); +				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; -			// Completely remove the data cache +			// 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 ) { -		if ( typeof key === "undefined" && this.length ) { -			return jQuery.data( this[0] ); +		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() { @@ -1073,21 +1893,30 @@ jQuery.fn.extend({  			});  		} -		var parts = key.split("."); +		parts = key.split(".");  		parts[1] = parts[1] ? "." + parts[1] : "";  		if ( value === undefined ) { -			var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); +			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.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() { +			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 );  			});  		}  	}, @@ -1098,34 +1927,128 @@ jQuery.fn.extend({  		});  	}  }); -jQuery.extend({ -	queue: function( elem, type, data ) { -		if ( !elem ) { -			return; + +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;  		} +	} -		type = (type || "fx") + "queue"; -		var q = jQuery.data( elem, type ); +	return data; +} -		// Speed up dequeue by getting out quickly if this is just a lookup -		if ( !data ) { -			return q || []; +// 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;  		} +	} -		if ( !q || jQuery.isArray(data) ) { -			q = jQuery.data( elem, type, jQuery.makeArray(data) ); +	return true; +} -		} else { -			q.push( data ); + + + +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" ); +			}  		} +	}, -		return q; +	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(); +		var queue = jQuery.queue( elem, type ), +			fn = queue.shift(), +			hooks = {};  		// If the fx queue is dequeued, always remove the progress sentinel  		if ( fn === "inprogress" ) { @@ -1136,12 +2059,18 @@ jQuery.extend({  			// Add a progress sentinel to prevent the fx queue from being  			// automatically dequeued  			if ( type === "fx" ) { -				queue.unshift("inprogress"); +				queue.unshift( "inprogress" );  			} -			fn.call(elem, function() { -				jQuery.dequeue(elem, type); -			}); +			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" );  		}  	}  }); @@ -1156,7 +2085,7 @@ jQuery.fn.extend({  		if ( data === undefined ) {  			return jQuery.queue( this[0], type );  		} -		return this.each(function( i, elem ) { +		return this.each(function() {  			var queue = jQuery.queue( this, type, data );  			if ( type === "fx" && queue[0] !== "inprogress" ) { @@ -1169,73 +2098,125 @@ jQuery.fn.extend({  			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; +		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 ); +		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]/g, + + + + +var rclass = /[\n\t\r]/g,  	rspace = /\s+/,  	rreturn = /\r/g, -	rspecialurl = /href|src|style/, -	rtype = /(button|input)/i, -	rfocusable = /(button|input|object|select|textarea)/i, -	rclickable = /^(a|area)$/i, -	rradiocheck = /radio|checkbox/; +	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 access( this, name, value, true, jQuery.attr ); +		return jQuery.access( this, name, value, true, jQuery.attr );  	}, -	removeAttr: function( name, fn ) { -		return this.each(function(){ -			jQuery.attr( this, name, "" ); -			if ( this.nodeType === 1 ) { -				this.removeAttribute( name ); -			} +	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 ) { -		if ( jQuery.isFunction(value) ) { -			return this.each(function(i) { -				var self = jQuery(this); -				self.addClass( value.call(this, i, self.attr("class")) ); +		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" ) { -			var classNames = (value || "").split( rspace ); +			classNames = value.split( rspace ); -			for ( var i = 0, l = this.length; i < l; i++ ) { -				var elem = this[i]; +			for ( i = 0, l = this.length; i < l; i++ ) { +				elem = this[ i ];  				if ( elem.nodeType === 1 ) { -					if ( !elem.className ) { +					if ( !elem.className && classNames.length === 1 ) {  						elem.className = value;  					} else { -						var className = " " + elem.className + " "; -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) { -							if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) { -								elem.className += " " + classNames[c]; +						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 );  					}  				}  			} @@ -1245,26 +2226,27 @@ jQuery.fn.extend({  	},  	removeClass: function( value ) { -		if ( jQuery.isFunction(value) ) { -			return this.each(function(i) { -				var self = jQuery(this); -				self.removeClass( value.call(this, i, self.attr("class")) ); +		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 ) { -			var classNames = (value || "").split(rspace); +			classNames = ( value || "" ).split( rspace ); -			for ( var i = 0, l = this.length; i < l; i++ ) { -				var elem = this[i]; +			for ( i = 0, l = this.length; i < l; i++ ) { +				elem = this[ i ];  				if ( elem.nodeType === 1 && elem.className ) {  					if ( value ) { -						var className = (" " + elem.className + " ").replace(rclass, " "); -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) { -							className = className.replace(" " + classNames[c] + " ", " "); +						className = (" " + elem.className + " ").replace( rclass, " " ); +						for ( c = 0, cl = classNames.length; c < cl; c++ ) { +							className = className.replace(" " + classNames[ c ] + " ", " ");  						} -						elem.className = className.substring(1, className.length - 1); +						elem.className = jQuery.trim( className );  					} else {  						elem.className = ""; @@ -1277,19 +2259,21 @@ jQuery.fn.extend({  	},  	toggleClass: function( value, stateVal ) { -		var type = typeof value, isBool = typeof stateVal === "boolean"; +		var type = typeof value, +			isBool = typeof stateVal === "boolean";  		if ( jQuery.isFunction( value ) ) { -			return this.each(function(i) { -				var self = jQuery(this); -				self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal ); +			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), +				var className, +					i = 0, +					self = jQuery( this ),  					state = stateVal,  					classNames = value.split( rspace ); @@ -1302,19 +2286,21 @@ jQuery.fn.extend({  			} else if ( type === "undefined" || type === "boolean" ) {  				if ( this.className ) {  					// store className if set -					jQuery.data( this, "__className__", this.className ); +					jQuery._data( this, "__className__", this.className );  				}  				// toggle whole className -				this.className = this.className || value === false ? "" : jQuery.data( this, "__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].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { +		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;  			}  		} @@ -1323,102 +2309,134 @@ jQuery.fn.extend({  	},  	val: function( value ) { -		if ( value === undefined ) { -			var elem = this[0]; +		var hooks, ret, isFunction, +			elem = this[0]; +		if ( !arguments.length ) {  			if ( elem ) { -				if ( jQuery.nodeName( elem, "option" ) ) { -					return (elem.attributes.value || {}).specified ? elem.value : elem.text; -				} - -				// We need to handle select boxes special -				if ( jQuery.nodeName( elem, "select" ) ) { -					var 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 ]; - -						if ( option.selected ) { -							// Get the specifc 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 ); -						} -					} +				hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ]; -					return values; +				if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { +					return ret;  				} -				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified -				if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) { -					return elem.getAttribute("value") === null ? "on" : elem.value; -				} -				 - -				// Everything else, we just grab the value -				return (elem.value || "").replace(rreturn, ""); +				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; +			return;  		} -		var isFunction = jQuery.isFunction(value); +		isFunction = jQuery.isFunction( value ); -		return this.each(function(i) { -			var self = jQuery(this), val = 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()); +				val = value.call( this, i, self.val() ); +			} else { +				val = value;  			} -			// Typecast each time if the value is a Function and the appended -			// value is therefore different each time. -			if ( typeof val === "number" ) { +			// 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; +						} -			if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) { -				this.checked = jQuery.inArray( self.val(), val ) >= 0; +						// Multi-Selects return an array +						values.push( value ); +					} +				} -			} else if ( jQuery.nodeName( this, "select" ) ) { -				var values = jQuery.makeArray(val); +				// Fixes Bug #2551 -- select.val() broken in IE after form.reset() +				if ( one && !values.length && options.length ) { +					return jQuery( options[ index ] ).val(); +				} -				jQuery( "option", this ).each(function() { +				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 ) { -					this.selectedIndex = -1; +					elem.selectedIndex = -1;  				} - -			} else { -				this.value = val; +				return values;  			} -		}); -	} -}); +		} +	}, -jQuery.extend({  	attrFn: {  		val: true,  		css: true, @@ -1429,228 +2447,503 @@ jQuery.extend({  		height: true,  		offset: true  	}, -		 +  	attr: function( elem, name, value, pass ) { -		// don't set attributes on text and comment nodes -		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { -			return undefined; +		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); +			return jQuery( elem )[ name ]( value );  		} -		var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ), -			// Whether we are setting (or getting) -			set = value !== undefined; +		// Fallback to prop when attributes are not supported +		if ( typeof elem.getAttribute === "undefined" ) { +			return jQuery.prop( elem, name, value ); +		} -		// Try to normalize/fix the name -		name = notxml && jQuery.props[ name ] || name; +		notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); -		// Only do all the following if this is a node (faster for style) -		if ( elem.nodeType === 1 ) { -			// These attributes require special treatment -			var special = rspecialurl.test( name ); +		// 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 ); +		} -			// Safari mis-reports the default selected property of an option -			// Accessing the parent's selectedIndex property fixes it -			if ( name === "selected" && !jQuery.support.optSelected ) { -				var parent = elem.parentNode; -				if ( parent ) { -					parent.selectedIndex; -	 -					// Make sure that it also works with optgroups, see #5701 -					if ( parent.parentNode ) { -						parent.parentNode.selectedIndex; +		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;  					}  				}  			} +		} +	}, -			// If applicable, access the attribute via the DOM 0 way -			if ( name in elem && notxml && !special ) { -				if ( set ) { -					// We can't allow the type property to be changed (since it causes problems in IE) -					if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) { -						jQuery.error( "type property can't be changed" ); +	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;  					} - -					elem[ name ] = value; +					return value;  				} - -				// browsers index elements by id/name on forms, give priority to attributes. -				if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) { -					return elem.getAttributeNode( name ).nodeValue; +			} +		}, +		// 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; +			} +		} +	}, -				// 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/ -				if ( name === "tabIndex" ) { -					var attributeNode = elem.getAttributeNode( "tabIndex" ); +	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; +		} -					return attributeNode && attributeNode.specified ? -						attributeNode.value : -						rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? -							0 : -							undefined; -				} +		notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); -				return elem[ name ]; -			} +		if ( notxml ) { +			// Fix name and attach hooks +			name = jQuery.propFix[ name ] || name; +			hooks = jQuery.propHooks[ name ]; +		} -			if ( !jQuery.support.style && notxml && name === "style" ) { -				if ( set ) { -					elem.style.cssText = "" + value; -				} +		if ( value !== undefined ) { +			if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { +				return ret; -				return elem.style.cssText; +			} else { +				return ( elem[ name ] = value );  			} -			if ( set ) { -				// convert the value to a string (all browsers do this but IE) see #1070 -				elem.setAttribute( name, "" + value ); +		} else { +			if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { +				return ret; + +			} else { +				return elem[ name ];  			} +		} +	}, -			var attr = !jQuery.support.hrefNormalized && notxml && special ? -					// Some attributes require a special call on IE -					elem.getAttribute( name, 2 ) : -					elem.getAttribute( 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"); -			// Non-existent attributes return null, we normalize to undefined -			return attr === null ? undefined : attr; +				return attributeNode && attributeNode.specified ? +					parseInt( attributeNode.value, 10 ) : +					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? +						0 : +						undefined; +			}  		} - -		// elem is actually elem.style ... set the style -		// Using attr for specific style information is now deprecated. Use style insead. -		return jQuery.style( elem, name, value );  	}  }); -var fcleanup = function( nm ) { -	return nm.replace(/[^\w\s\.\|`]/g, function( ch ) { -		return "\\" + ch; -	}); -}; -/* - * A number of helper functions used for managing events. - * Many of the ideas behind this code originated from - * Dean Edwards' addEvent library. - */ -jQuery.event = { +// 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; +			} -	// Bind an event to an element -	// Original by Dean Edwards -	add: function( elem, types, handler, data ) { -		if ( elem.nodeType === 3 || elem.nodeType === 8 ) { -			return; +			elem.setAttribute( name, name.toLowerCase() );  		} +		return name; +	} +}; + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !getSetAttribute ) { -		// For whatever reason, IE has trouble passing the window object -		// around, causing it to be cloned in the process -		if ( elem.setInterval && ( elem !== window && !elem.frameElement ) ) { -			elem = window; +	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 + "" );  		} +	}; -		// Make sure that the function being executed has a unique ID -		if ( !handler.guid ) { -			handler.guid = jQuery.guid++; +	// 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 );  		} +	}; +} -		// if data is passed, bind to handler -		if ( data !== undefined ) { -			// Create temporary function pointer to original handler -			var fn = handler; -			// Create unique handler function, wrapped around original handler -			handler = jQuery.proxy( fn ); +// 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; +			} +		}); +	}); +} -			// Store data in unique handler -			handler.data = data; +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 );  		} +	}; +} -		// Init the element's event structure -		var events = jQuery.data( elem, "events" ) || jQuery.data( elem, "events", {} ), -			handle = jQuery.data( elem, "handle" ), eventHandle; +// 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 ( !handle ) { -			eventHandle = function() { -				// Handle the second event of a trigger and when -				// an event is called after a page has unloaded -				return typeof jQuery !== "undefined" && !jQuery.event.triggered ? -					jQuery.event.handle.apply( eventHandle.elem, arguments ) : -					undefined; -			}; +			if ( parent ) { +				parent.selectedIndex; -			handle = jQuery.data( elem, "handle", eventHandle ); +				// Make sure that it also works with optgroups, see #5701 +				if ( parent.parentNode ) { +					parent.parentNode.selectedIndex; +				} +			} +			return null;  		} +	}); +} -		// If no handle is found then we must be trying to bind to one of the -		// banned noData elements -		if ( !handle ) { -			return; +// 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 ); +			}  		} +	}); +}); -		// Add elem as a property of the handle function -		// This is to prevent a memory leak with non-native -		// event in IE. -		handle.elem = elem; -		// Handle multiple events separated by a space -		// jQuery(...).bind("mouseover mouseout", fn); -		types = types.split( /\s+/ ); -		var type, i = 0; -		while ( (type = types[ i++ ]) ) { -			// Namespaced event handlers -			var namespaces = type.split("."); -			type = namespaces.shift(); +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 = { -			if ( i > 1 ) { -				handler = jQuery.proxy( handler ); +	add: function( elem, types, handler, data, selector ) { -				if ( data !== undefined ) { -					handler.data = data; -				} -			} +		var elemData, eventHandle, events, +			t, tns, type, namespaces, handleObj, +			handleObjIn, quick, handlers, special; -			handler.type = namespaces.slice(0).sort().join("."); +		// 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++; +		} -			// Get the current list of functions bound to this event -			var handlers = events[ type ], -				special = this.special[ type ] || {}; +		// 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; +		} -			// Init the event handler queue +		// 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 = events[ type ] = []; +				handlers.delegateCount = 0; -				// 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, handler) === false ) { +				// 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, handle, false ); +						elem.addEventListener( type, eventHandle, false ); +  					} else if ( elem.attachEvent ) { -						elem.attachEvent( "on" + type, handle ); +						elem.attachEvent( "on" + type, eventHandle );  					}  				}  			} -			 -			if ( special.add ) {  -				var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers );  -				if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) {  -					modifiedHandler.guid = modifiedHandler.guid || handler.guid;  -					modifiedHandler.data = modifiedHandler.data || handler.data;  -					modifiedHandler.type = modifiedHandler.type || handler.type;  -					handler = modifiedHandler;  -				}  -			}  -			 -			// Add the function to the element's handler list -			handlers[ handler.guid ] = handler; -			// Keep track of which events have been used, for global triggering -			this.global[ type ] = true; +			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 @@ -1660,385 +2953,513 @@ jQuery.event = {  	global: {},  	// Detach an event or set of events from an element -	remove: function( elem, types, handler ) { -		// don't do events on text and comment nodes -		if ( elem.nodeType === 3 || elem.nodeType === 8 ) { +	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;  		} -		var events = jQuery.data( elem, "events" ), ret, type, fn; +		// 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]; -		if ( events ) { -			// Unbind all events for the element -			if ( types === undefined || (typeof types === "string" && types.charAt(0) === ".") ) { +			// Unbind all events (on this namespace, if provided) for the element +			if ( !type ) {  				for ( type in events ) { -					this.remove( elem, type + (types || "") ); +					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );  				} -			} else { -				// types is actually an event object here -				if ( types.type ) { -					handler = types.handler; -					types = types.type; -				} - -				// Handle multiple events separated by a space -				// jQuery(...).unbind("mouseover mouseout", fn); -				types = types.split(/\s+/); -				var i = 0; -				while ( (type = types[ i++ ]) ) { -					// Namespaced event handlers -					var namespaces = type.split("."); -					type = namespaces.shift(); -					var all = !namespaces.length, -						cleaned = jQuery.map( namespaces.slice(0).sort(), fcleanup ), -						namespace = new RegExp("(^|\\.)" + cleaned.join("\\.(?:.*\\.)?") + "(\\.|$)"), -						special = this.special[ type ] || {}; - -					if ( events[ type ] ) { -						// remove the given handler for the given type -						if ( handler ) { -							fn = events[ type ][ handler.guid ]; -							delete events[ type ][ handler.guid ]; - -						// remove all handlers for the given type -						} else { -							for ( var handle in events[ type ] ) { -								// Handle the removal of namespaced events -								if ( all || namespace.test( events[ type ][ handle ].type ) ) { -									delete events[ type ][ handle ]; -								} -							} -						} +				continue; +			} -						if ( special.remove ) { -							special.remove.call( elem, namespaces, fn); -						} +			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 generic event handler if no more handlers exist -						for ( ret in events[ type ] ) { -							break; -						} -						if ( !ret ) { -							if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { -								if ( elem.removeEventListener ) { -									elem.removeEventListener( type, jQuery.data( elem, "handle" ), false ); -								} else if ( elem.detachEvent ) { -									elem.detachEvent( "on" + type, jQuery.data( elem, "handle" ) ); -								} -							} -							ret = null; -							delete events[ type ]; -						} +			// 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 the expando if it's no longer used -			for ( ret in events ) { -				break; -			} -			if ( !ret ) { -				var handle = jQuery.data( elem, "handle" ); -				if ( handle ) { -					handle.elem = null; +			// 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 );  				} -				jQuery.removeData( elem, "events" ); -				jQuery.removeData( elem, "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  	}, -	// bubbling is internal -	trigger: function( event, data, elem /*, bubbling */ ) { +	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, -			bubbling = arguments[3]; +			namespaces = [], +			cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType; -		if ( !bubbling ) { -			event = typeof event === "object" ? -				// jQuery.Event object -				event[expando] ? event : -				// Object literal -				jQuery.extend( jQuery.Event(type), event ) : -				// Just the event type (string) -				jQuery.Event(type); +		// 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 ) { -				event.type = type = type.slice(0, -1); -				event.exclusive = true; -			} +		if ( type.indexOf( "!" ) >= 0 ) { +			// Exclusive events trigger only for the exact event (no namespaces) +			type = type.slice(0, -1); +			exclusive = true; +		} -			// Handle a global trigger -			if ( !elem ) { -				// Don't bubble custom events when global (to avoid too much overhead) -				event.stopPropagation(); - -				// Only trigger if we've ever bound an event for it -				if ( this.global[ type ] ) { -					jQuery.each( jQuery.cache, function() { -						if ( this.events && this.events[type] ) { -							jQuery.event.trigger( event, data, this.handle.elem ); -						} -					}); -				} -			} +		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 ); -			// Handle triggering a single element +		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 : ""; -			// don't do events on text and comment nodes -			if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { -				return undefined; +		// 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 in case it is reused -			event.result = undefined; +		// Clean up the event in case it is being reused +		event.result = undefined; +		if ( !event.target ) {  			event.target = elem; - -			// Clone the incoming data, if any -			data = jQuery.makeArray( data ); -			data.unshift( event );  		} -		event.currentTarget = elem; +		// Clone any incoming data and prepend the event, creating the handler arg list +		data = data != null ? jQuery.makeArray( data ) : []; +		data.unshift( event ); -		// Trigger the event, it is assumed that "handle" is a function -		var handle = jQuery.data( elem, "handle" ); -		if ( handle ) { -			handle.apply( elem, data ); +		// Allow special events to draw outside the lines +		special = jQuery.event.special[ type ] || {}; +		if ( special.trigger && special.trigger.apply( elem, data ) === false ) { +			return;  		} -		var parent = elem.parentNode || elem.ownerDocument; +		// 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 ) ) { -		// Trigger an inline bound script -		try { -			if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) { -				if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) { -					event.result = false; -				} +			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;  			} -		// prevent IE from throwing an error for some elements with some event types, see #3533 -		} catch (e) {} +			// 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 ]); +			} +		} -		if ( !event.isPropagationStopped() && parent ) { -			jQuery.event.trigger( event, data, parent, true ); +		// Fire handlers on the event path +		for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) { -		} else if ( !event.isDefaultPrevented() ) { -			var target = event.target, old, -				isClick = jQuery.nodeName(target, "a") && type === "click"; +			cur = eventPath[i][0]; +			event.type = eventPath[i][1]; -			if ( !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) { -				try { -					if ( target[ type ] ) { -						// Make sure that we don't accidentally re-trigger the onFOO events -						old = target[ "on" + type ]; +			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 ( old ) { -							target[ "on" + type ] = null; -						} +		// 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 ) ) { -						this.triggered = true; -						target[ type ](); +				// 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 IE from throwing an error for some elements with some event types, see #3533 -				} catch (e) {} +					// 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 ) { -					target[ "on" + type ] = old; +					if ( old ) { +						elem[ ontype ] = old; +					}  				} - -				this.triggered = false;  			}  		} -	}, -	handle: function( event ) { -		// returned undefined or false -		var all, handlers; - -		event = arguments[0] = jQuery.event.fix( event || window.event ); -		event.currentTarget = this; +		return event.result; +	}, -		// Namespaced event handlers -		var namespaces = event.type.split("."); -		event.type = namespaces.shift(); +	dispatch: function( event ) { -		// Cache this now, all = true means, any handler -		all = !namespaces.length && !event.exclusive; +		// Make a writable jQuery.Event from the native event object +		event = jQuery.event.fix( event || window.event ); -		var namespace = new RegExp("(^|\\.)" + namespaces.slice(0).sort().join("\\.(?:.*\\.)?") + "(\\.|$)"); +		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; -		handlers = ( jQuery.data(this, "events") || {} )[ event.type ]; +		// Use the fix-ed jQuery.Event rather than the (read-only) native event +		args[0] = event; +		event.delegateTarget = this; -		for ( var j in handlers ) { -			var handler = handlers[ j ]; +		// 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") ) { -			// Filter the functions by class -			if ( all || namespace.test(handler.type) ) { -				// Pass in a reference to the handler function itself -				// So that we can later remove it -				event.handler = handler; -				event.data = handler.data; +			// Pregenerate a single jQuery object for reuse with .is() +			jqcur = jQuery(this); +			jqcur.context = this.ownerDocument || this; -				var ret = handler.apply( this, arguments ); +			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 ( ret !== undefined ) { -					event.result = ret; -					if ( ret === false ) { -						event.preventDefault(); -						event.stopPropagation(); +					if ( selMatch[ sel ] === undefined ) { +						selMatch[ sel ] = ( +							handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel ) +						); +					} +					if ( selMatch[ sel ] ) { +						matches.push( handleObj );  					}  				} - -				if ( event.isImmediatePropagationStopped() ) { -					break; +				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;  	}, -	props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), +	// 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[ expando ] ) { +		if ( event[ jQuery.expando ] ) {  			return event;  		} -		// store a copy of the original event object -		// and "clone" to set read-only properties -		var originalEvent = 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 ( var i = this.props.length, prop; i; ) { -			prop = this.props[ --i ]; +		for ( i = copy.length; i; ) { +			prop = copy[ --i ];  			event[ prop ] = originalEvent[ prop ];  		} -		// Fix target property, if necessary +		// Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)  		if ( !event.target ) { -			event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either +			event.target = originalEvent.srcElement || document;  		} -		// check if target is a textnode (safari) +		// Target should not be a text node (#504, 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 doc = document.documentElement, body = document.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 && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) ) { -			event.which = event.charCode || event.keyCode; -		} - -		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs) -		if ( !event.metaKey && event.ctrlKey ) { +		// For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8) +		if ( event.metaKey === undefined ) {  			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; +		return fixHook.filter? fixHook.filter( event, originalEvent ) : 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 +			setup: jQuery.bindReady  		}, -		live: { -			add: function( proxy, data, namespaces, live ) { -				jQuery.extend( proxy, data || {} ); - -				proxy.guid += data.selector + data.live;  -				data.liveProxy = proxy; - -				jQuery.event.add( this, data.live, liveHandler, data );  -				 -			}, - -			remove: function( namespaces ) { -				if ( namespaces.length ) { -					var remove = 0, name = new RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)"); - -					jQuery.each( (jQuery.data(this, "events").live || {}), function() { -						if ( name.test(this.type) ) { -							remove++; -						} -					}); +		load: { +			// Prevent triggered image.load events from bubbling to window.load +			noBubble: true +		}, -					if ( remove < 1 ) { -						jQuery.event.remove( this, namespaces[0], liveHandler ); -					} -				} -			}, -			special: {} +		focus: { +			delegateType: "focusin"  		}, +		blur: { +			delegateType: "focusout" +		}, +  		beforeunload: { -			setup: function( data, namespaces, fn ) { +			setup: function( data, namespaces, eventHandle ) {  				// We only want to do this special case on windows -				if ( this.setInterval ) { -					this.onbeforeunload = fn; +				if ( jQuery.isWindow( this ) ) { +					this.onbeforeunload = eventHandle;  				} - -				return false;  			}, -			teardown: function( namespaces, fn ) { -				if ( this.onbeforeunload === fn ) { + +			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(); +		}  	}  }; -jQuery.Event = function( src ) { +// 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.preventDefault ) { -		return new jQuery.Event( src ); +	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;  	} -	// timeStamp is buggy for some events on Firefox(#3843) -	// So we won't rely on the native value -	this.timeStamp = now(); +	// 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[ expando ] = true; +	this[ jQuery.expando ] = true;  };  function returnFalse() { @@ -2058,13 +3479,15 @@ jQuery.Event.prototype = {  		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) -		e.returnValue = false; +		} else { +			e.returnValue = false; +		}  	},  	stopPropagation: function() {  		this.isPropagationStopped = returnTrue; @@ -2089,300 +3512,305 @@ jQuery.Event.prototype = {  	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 parent = event.relatedTarget; - -	// Traverse up the tree -	while ( parent && parent !== this ) { -		// Firefox sometimes assigns relatedTarget a XUL element -		// which we cannot access the parentNode property of -		try { -			parent = parent.parentNode; - -		// assuming we've left the element since we most likely mousedover a xul element -		} catch(e) { -			break; -		} -	} - -	if ( parent !== this ) { -		// set the correct event type -		event.type = event.data; - -		// handle event if we actually just moused on to a non sub-element -		jQuery.event.handle.apply( this, arguments ); -	} - -}, - -// 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 +// Create mouseenter/leave events using mouseover/out and event-time checks  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 ); +		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;  		}  	};  }); -// submit delegation +// IE submit delegation  if ( !jQuery.support.submitBubbles ) { -jQuery.event.special.submit = { -	setup: function( data, namespaces, fn ) { -		if ( this.nodeName.toLowerCase() !== "form" ) { -			jQuery.event.add(this, "click.specialSubmit." + fn.guid, function( e ) { -				var elem = e.target, type = elem.type; +	jQuery.event.special.submit = { +		setup: function() { +			// Only need this for delegated form submit events +			if ( jQuery.nodeName( this, "form" ) ) { +				return false; +			} -				if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { -					return trigger( "submit", this, arguments ); +			// 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;  				}  			}); -	  -			jQuery.event.add(this, "keypress.specialSubmit." + fn.guid, function( e ) { -				var elem = e.target, type = elem.type; +			// return undefined since we don't need an event listener +		}, -				if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { -					return trigger( "submit", this, arguments ); -				} -			}); +		teardown: function() { +			// Only need this for delegated form submit events +			if ( jQuery.nodeName( this, "form" ) ) { +				return false; +			} -		} else { -			return false; +			// Remove delegated handlers; cleanData eventually reaps submit handlers attached above +			jQuery.event.remove( this, "._submit" );  		} -	}, - -	remove: function( namespaces, fn ) { -		jQuery.event.remove( this, "click.specialSubmit" + (fn ? "."+fn.guid : "") ); -		jQuery.event.remove( this, "keypress.specialSubmit" + (fn ? "."+fn.guid : "") ); -	} -}; - +	};  } -// change delegation, happens here so we have bind. +// IE change delegation and checkbox/radio fix  if ( !jQuery.support.changeBubbles ) { -var formElems = /textarea|input|select/i; - -function getVal( elem ) { -	var type = 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 ( elem.nodeName.toLowerCase() === "select" ) { -		val = elem.selectedIndex; -	} - -	return val; -} - -function testChange( e ) { -		var elem = e.target, data, val; +	jQuery.event.special.change = { -		if ( !formElems.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"; -			return jQuery.event.trigger( e, arguments[1], elem ); -		} -} - -jQuery.event.special.change = { -	filters: { -		focusout: testChange,  - -		click: function( e ) { -			var elem = e.target, type = elem.type; +		setup: function() { -			if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) { -				return testChange.call( this, e ); +			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; +				} +			});  		}, -		// 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 = elem.type; +		handle: function( event ) { +			var elem = event.target; -			if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") || -				(e.keyCode === 32 && (type === "checkbox" || type === "radio")) || -				type === "select-multiple" ) { -				return testChange.call( this, e ); +			// 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 );  			}  		}, -		// Beforeactivate happens also before the previous element is blurred -		// with this event you can't trigger a change event, but you can store -		// information/focus[in] is not needed anymore -		beforeactivate: function( e ) { -			var elem = e.target; - -			if ( elem.nodeName.toLowerCase() === "input" && elem.type === "radio" ) { -				jQuery.data( elem, "_change_data", getVal(elem) ); -			} -		} -	}, -	setup: function( data, namespaces, fn ) { -		for ( var type in changeFilters ) { -			jQuery.event.add( this, type + ".specialChange." + fn.guid, changeFilters[type] ); -		} +		teardown: function() { +			jQuery.event.remove( this, "._change" ); -		return formElems.test( this.nodeName ); -	}, -	remove: function( namespaces, fn ) { -		for ( var type in changeFilters ) { -			jQuery.event.remove( this, type + ".specialChange" + (fn ? "."+fn.guid : ""), changeFilters[type] ); +			return rformElems.test( this.nodeName );  		} - -		return formElems.test( this.nodeName ); -	} -}; - -var changeFilters = jQuery.event.special.change.filters; - -} - -function trigger( type, elem, args ) { -	args[0].type = type; -	return jQuery.event.handle.apply( elem, args ); +	};  }  // Create "bubbling" focus and blur events -if ( document.addEventListener ) { +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() { -				this.addEventListener( orig, handler, true ); -			},  -			teardown: function() {  -				this.removeEventListener( orig, handler, true ); +				if ( attaches++ === 0 ) { +					document.addEventListener( orig, handler, true ); +				} +			}, +			teardown: function() { +				if ( --attaches === 0 ) { +					document.removeEventListener( orig, handler, true ); +				}  			}  		}; - -		function handler( e ) {  -			e = jQuery.event.fix( e ); -			e.type = fix; -			return jQuery.event.handle.call( this, e ); -		}  	});  } -jQuery.each(["bind", "one"], function( i, name ) { -	jQuery.fn[ name ] = function( type, data, fn ) { -		// Handle object literals -		if ( typeof type === "object" ) { -			for ( var key in type ) { -				this[ name ](key, data, type[key], fn); +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 ( jQuery.isFunction( data ) ) { -			fn = data; -			data = undefined; -		} - -		var handler = name === "one" ? jQuery.proxy( fn, function( event ) { -			jQuery( this ).unbind( event, handler ); -			return fn.apply( this, arguments ); -		}) : fn; - -		return type === "unload" && name !== "one" ? -			this.one( type, data, fn ) : -			this.each(function() { -				jQuery.event.add( this, type, handler, data ); -			}); -	}; -}); -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]); +		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, type, fn ); +			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] ) { -			var event = jQuery.Event( type ); -			event.preventDefault(); -			event.stopPropagation(); -			jQuery.event.trigger( event, data, this[0] ); -			return event.result; +			return jQuery.event.trigger( type, data, this[0], true );  		}  	},  	toggle: function( fn ) {  		// Save reference to arguments for access in closure -		var args = arguments, i = 1; +		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 ) { -			jQuery.proxy( fn, args[ i++ ] ); +			args[ i++ ].guid = guid;  		} -		return this.click( jQuery.proxy( fn, 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; -		})); +		return this.click( toggler );  	},  	hover: function( fnOver, fnOut ) { @@ -2390,158 +3818,69 @@ jQuery.fn.extend({  	}  }); -jQuery.each(["live", "die"], function( i, name ) { -	jQuery.fn[ name ] = function( types, data, fn ) { -		var type, i = 0; +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 ) { -		if ( jQuery.isFunction( data ) ) { +	// Handle event binding +	jQuery.fn[ name ] = function( data, fn ) { +		if ( fn == null ) {  			fn = data; -			data = undefined; +			data = null;  		} -		types = (types || "").split( /\s+/ ); - -		while ( (type = types[ i++ ]) != null ) { -			type = type === "focus" ? "focusin" : // focus --> focusin -					type === "blur" ? "focusout" : // blur --> focusout -					type === "hover" ? types.push("mouseleave") && "mouseenter" : // hover support -					type; -			 -			if ( name === "live" ) { -				// bind live handler -				jQuery( this.context ).bind( liveConvert( type, this.selector ), { -					data: data, selector: this.selector, live: type -				}, fn ); +		return arguments.length > 0 ? +			this.on( name, null, data, fn ) : +			this.trigger( name ); +	}; -			} else { -				// unbind live handler -				jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); -			} -		} -		 -		return this; +	if ( jQuery.attrFn ) { +		jQuery.attrFn[ name ] = true;  	} -}); -function liveHandler( event ) { -	var stop, elems = [], selectors = [], args = arguments, -		related, match, fn, elem, j, i, l, data, -		live = jQuery.extend({}, jQuery.data( this, "events" ).live); - -	// Make sure we avoid non-left-click bubbling in Firefox (#3861) -	if ( event.button && event.type === "click" ) { -		return; +	if ( rkeyEvent.test( name ) ) { +		jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;  	} -	for ( j in live ) { -		fn = live[j]; -		if ( fn.live === event.type || -				fn.altLive && jQuery.inArray(event.type, fn.altLive) > -1 ) { - -			data = fn.data; -			if ( !(data.beforeFilter && data.beforeFilter[event.type] &&  -					!data.beforeFilter[event.type](event)) ) { -				selectors.push( fn.selector ); -			} -		} else { -			delete live[j]; -		} +	if ( rmouseEvent.test( name ) ) { +		jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;  	} +}); -	match = jQuery( event.target ).closest( selectors, event.currentTarget ); - -	for ( i = 0, l = match.length; i < l; i++ ) { -		for ( j in live ) { -			fn = live[j]; -			elem = match[i].elem; -			related = null; - -			if ( match[i].selector === fn.selector ) { -				// Those two events require additional checking -				if ( fn.live === "mouseenter" || fn.live === "mouseleave" ) { -					related = jQuery( event.relatedTarget ).closest( fn.selector )[0]; -				} - -				if ( !related || related !== elem ) { -					elems.push({ elem: elem, fn: fn }); -				} -			} -		} -	} - -	for ( i = 0, l = elems.length; i < l; i++ ) { -		match = elems[i]; -		event.currentTarget = match.elem; -		event.data = match.fn.data; -		if ( match.fn.apply( match.elem, args ) === false ) { -			stop = false; -			break; -		} -	} - -	return stop; -} - -function liveConvert( type, selector ) { -	return "live." + (type ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&"); -} - -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( fn ) { -		return fn ? this.bind( name, fn ) : this.trigger( name ); -	}; - -	if ( jQuery.attrFn ) { -		jQuery.attrFn[ name ] = true; -	} -}); -// Prevent memory leaks in IE -// Window isn't included so as not to unbind existing unload events -// More info: -//  - http://isaacschlueter.com/2006/10/msie-memory-leaks/ -if ( window.attachEvent && !window.addEventListener ) { -	window.attachEvent("onunload", function() { -		for ( var id in jQuery.cache ) { -			if ( jQuery.cache[ id ].handle ) { -				// Try/Catch is to handle iframes being unloaded, see #4280 -				try { -					jQuery.event.remove( jQuery.cache[ id ].handle.elem ); -				} catch(e) {} -			} -		} -	}); -}  /*! - * Sizzle CSS Selector Engine - v1.0 - *  Copyright 2009, The Dojo Foundation + * 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, +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +	expando = "sizcache" + (Math.random() + '').replace('.', ''),  	done = 0,  	toString = Object.prototype.toString,  	hasDuplicate = false, -	baseHasDuplicate = true; +	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(){ +[0, 0].sort(function() {  	baseHasDuplicate = false;  	return 0;  }); -var Sizzle = function(selector, context, results, seed) { +var Sizzle = function( selector, context, results, seed ) {  	results = results || []; -	var origContext = context = context || document; +	context = context || document; + +	var origContext = context;  	if ( context.nodeType !== 1 && context.nodeType !== 9 ) {  		return []; @@ -2551,24 +3890,34 @@ var Sizzle = function(selector, context, results, seed) {  		return results;  	} -	var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context), +	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) -	while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) { -		soFar = m[3]; +	do { +		chunker.exec( "" ); +		m = chunker.exec( soFar ); + +		if ( m ) { +			soFar = m[3]; -		parts.push( m[1] ); +			parts.push( m[1] ); -		if ( m[2] ) { -			extra = m[3]; -			break; +			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 ); +			set = posProcess( parts[0] + parts[1], context, seed ); +  		} else {  			set = Expr.relative[ parts[0] ] ?  				[ context ] : @@ -2581,32 +3930,41 @@ var Sizzle = function(selector, context, results, seed) {  					selector += parts.shift();  				} -				set = posProcess( selector, set ); +				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]) ) { -			var ret = Sizzle.find( parts.shift(), context, contextXML ); -			context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0]; + +			ret = Sizzle.find( parts.shift(), context, contextXML ); +			context = ret.expr ? +				Sizzle.filter( ret.expr, ret.set )[0] : +				ret.set[0];  		}  		if ( context ) { -			var ret = seed ? +			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; + +			set = ret.expr ? +				Sizzle.filter( ret.expr, ret.set ) : +				ret.set;  			if ( parts.length > 0 ) { -				checkSet = makeArray(set); +				checkSet = makeArray( set ); +  			} else {  				prune = false;  			}  			while ( parts.length ) { -				var cur = parts.pop(), pop = cur; +				cur = parts.pop(); +				pop = cur;  				if ( !Expr.relative[ cur ] ) {  					cur = ""; @@ -2620,6 +3978,7 @@ var Sizzle = function(selector, context, results, seed) {  				Expr.relative[ cur ]( checkSet, pop, contextXML );  			} +  		} else {  			checkSet = parts = [];  		} @@ -2636,19 +3995,22 @@ var Sizzle = function(selector, context, results, seed) {  	if ( toString.call(checkSet) === "[object Array]" ) {  		if ( !prune ) {  			results.push.apply( results, checkSet ); +  		} else if ( context && context.nodeType === 1 ) { -			for ( var i = 0; checkSet[i] != null; i++ ) { -				if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) { +			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 ( var i = 0; checkSet[i] != null; i++ ) { +			for ( i = 0; checkSet[i] != null; i++ ) {  				if ( checkSet[i] && checkSet[i].nodeType === 1 ) {  					results.push( set[i] );  				}  			}  		} +  	} else {  		makeArray( checkSet, results );  	} @@ -2661,15 +4023,15 @@ var Sizzle = function(selector, context, results, seed) {  	return results;  }; -Sizzle.uniqueSort = function(results){ +Sizzle.uniqueSort = function( results ) {  	if ( sortOrder ) {  		hasDuplicate = baseHasDuplicate; -		results.sort(sortOrder); +		results.sort( sortOrder );  		if ( hasDuplicate ) {  			for ( var i = 1; i < results.length; i++ ) { -				if ( results[i] === results[i-1] ) { -					results.splice(i--, 1); +				if ( results[i] === results[ i - 1 ] ) { +					results.splice( i--, 1 );  				}  			}  		} @@ -2678,27 +4040,32 @@ Sizzle.uniqueSort = function(results){  	return results;  }; -Sizzle.matches = function(expr, set){ -	return Sizzle(expr, null, null, set); +Sizzle.matches = function( expr, set ) { +	return Sizzle( expr, null, null, set );  }; -Sizzle.find = function(expr, context, isXML){ -	var set, match; +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 ( var i = 0, l = Expr.order.length; i < l; i++ ) { -		var type = Expr.order[i], match; +	for ( i = 0, len = Expr.order.length; i < len; i++ ) { +		type = Expr.order[i];  		if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { -			var left = match[1]; -			match.splice(1,1); +			left = match[1]; +			match.splice( 1, 1 );  			if ( left.substr( left.length - 1 ) !== "\\" ) { -				match[1] = (match[1] || "").replace(/\\/g, ""); +				match[1] = (match[1] || "").replace( rBackslash, "" );  				set = Expr.find[ type ]( match, context, isXML ); +  				if ( set != null ) {  					expr = expr.replace( Expr.match[ type ], "" );  					break; @@ -2708,20 +4075,29 @@ Sizzle.find = function(expr, context, isXML){  	}  	if ( !set ) { -		set = context.getElementsByTagName("*"); +		set = typeof context.getElementsByTagName !== "undefined" ? +			context.getElementsByTagName( "*" ) : +			[];  	} -	return {set: set, expr: expr}; +	return { set: set, expr: expr };  }; -Sizzle.filter = function(expr, set, inplace, not){ -	var old = expr, result = [], curLoop = set, match, anyFound, -		isXMLFilter = set && set[0] && isXML(set[0]); +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 ( var type in Expr.filter ) { +		for ( type in Expr.filter ) {  			if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { -				var filter = Expr.filter[ type ], found, item, left = match[1]; +				filter = Expr.filter[ type ]; +				left = match[1]; +  				anyFound = false;  				match.splice(1,1); @@ -2739,23 +4115,26 @@ Sizzle.filter = function(expr, set, inplace, not){  					if ( !match ) {  						anyFound = found = true; +  					} else if ( match === true ) {  						continue;  					}  				}  				if ( match ) { -					for ( var i = 0; (item = curLoop[i]) != null; i++ ) { +					for ( i = 0; (item = curLoop[i]) != null; i++ ) {  						if ( item ) {  							found = filter( item, match, i, curLoop ); -							var pass = not ^ !!found; +							pass = not ^ found;  							if ( inplace && found != null ) {  								if ( pass ) {  									anyFound = true; +  								} else {  									curLoop[i] = false;  								} +  							} else if ( pass ) {  								result.push( item );  								anyFound = true; @@ -2784,6 +4163,7 @@ Sizzle.filter = function(expr, set, inplace, not){  		if ( expr === old ) {  			if ( anyFound == null ) {  				Sizzle.error( expr ); +  			} else {  				break;  			} @@ -2796,35 +4176,82 @@ Sizzle.filter = function(expr, set, inplace, not){  };  Sizzle.error = function( msg ) { -	throw "Syntax error, unrecognized expression: " + 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|)\s*\]/, -		TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/, -		CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, -		POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, -		PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ +		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"); +		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 && !/\W/.test(part), +				isTag = isPartStr && !rNonWord.test( part ),  				isPartStrNotTag = isPartStr && !isTag;  			if ( isTag ) { @@ -2845,22 +4272,29 @@ var Expr = Sizzle.selectors = {  				Sizzle.filter( part, checkSet, true );  			}  		}, -		">": function(checkSet, part){ -			var isPartStr = typeof part === "string"; -			if ( isPartStr && !/\W/.test(part) ) { +		">": function( checkSet, part ) { +			var elem, +				isPartStr = typeof part === "string", +				i = 0, +				l = checkSet.length; + +			if ( isPartStr && !rNonWord.test( part ) ) {  				part = part.toLowerCase(); -				for ( var i = 0, l = checkSet.length; i < l; i++ ) { -					var elem = checkSet[i]; +				for ( ; i < l; i++ ) { +					elem = checkSet[i]; +  					if ( elem ) {  						var parent = elem.parentNode;  						checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;  					}  				} +  			} else { -				for ( var i = 0, l = checkSet.length; i < l; i++ ) { -					var elem = checkSet[i]; +				for ( ; i < l; i++ ) { +					elem = checkSet[i]; +  					if ( elem ) {  						checkSet[i] = isPartStr ?  							elem.parentNode : @@ -2873,37 +4307,50 @@ var Expr = Sizzle.selectors = {  				}  			}  		}, +  		"": function(checkSet, part, isXML){ -			var doneName = done++, checkFn = dirCheck; +			var nodeCheck, +				doneName = done++, +				checkFn = dirCheck; -			if ( typeof part === "string" && !/\W/.test(part) ) { -				var nodeCheck = part = part.toLowerCase(); +			if ( typeof part === "string" && !rNonWord.test( part ) ) { +				part = part.toLowerCase(); +				nodeCheck = part;  				checkFn = dirNodeCheck;  			} -			checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML); +			checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );  		}, -		"~": function(checkSet, part, isXML){ -			var doneName = done++, checkFn = dirCheck; -			if ( typeof part === "string" && !/\W/.test(part) ) { -				var nodeCheck = part = part.toLowerCase(); +		"~": 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); +			checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );  		}  	}, +  	find: { -		ID: function(match, context, isXML){ +		ID: function( match, context, isXML ) {  			if ( typeof context.getElementById !== "undefined" && !isXML ) {  				var m = context.getElementById(match[1]); -				return m ? [m] : []; +				// 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){ + +		NAME: function( match, context ) {  			if ( typeof context.getElementsByName !== "undefined" ) { -				var ret = [], results = context.getElementsByName(match[1]); +				var ret = [], +					results = context.getElementsByName( match[1] );  				for ( var i = 0, l = results.length; i < l; i++ ) {  					if ( results[i].getAttribute("name") === match[1] ) { @@ -2914,13 +4361,16 @@ var Expr = Sizzle.selectors = {  				return ret.length === 0 ? null : ret;  			}  		}, -		TAG: function(match, context){ -			return context.getElementsByTagName(match[1]); + +		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(/\\/g, "") + " "; +		CLASS: function( match, curLoop, inplace, result, not, isXML ) { +			match = " " + match[1].replace( rBackslash, "" ) + " ";  			if ( isXML ) {  				return match; @@ -2928,10 +4378,11 @@ var Expr = Sizzle.selectors = {  			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {  				if ( elem ) { -					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) { +					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;  					} @@ -2940,16 +4391,25 @@ var Expr = Sizzle.selectors = {  			return false;  		}, -		ID: function(match){ -			return match[1].replace(/\\/g, ""); + +		ID: function( match ) { +			return match[1].replace( rBackslash, "" );  		}, -		TAG: function(match, curLoop){ -			return match[1].toLowerCase(); + +		TAG: function( match, curLoop ) { +			return match[1].replace( rBackslash, "" ).toLowerCase();  		}, -		CHILD: function(match){ + +		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( +				var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(  					match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||  					!/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); @@ -2957,217 +4417,295 @@ var Expr = Sizzle.selectors = {  				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].replace(/\\/g, ""); + +		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){ + +		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){ + +		POS: function( match ) {  			match.unshift( true ); +  			return match;  		}  	}, +	  	filters: { -		enabled: function(elem){ +		enabled: function( elem ) {  			return elem.disabled === false && elem.type !== "hidden";  		}, -		disabled: function(elem){ + +		disabled: function( elem ) {  			return elem.disabled === true;  		}, -		checked: function(elem){ + +		checked: function( elem ) {  			return elem.checked === true;  		}, -		selected: function(elem){ +		 +		selected: function( elem ) {  			// Accessing this property makes selected-by-default  			// options in Safari work properly -			elem.parentNode.selectedIndex; +			if ( elem.parentNode ) { +				elem.parentNode.selectedIndex; +			} +			  			return elem.selected === true;  		}, -		parent: function(elem){ + +		parent: function( elem ) {  			return !!elem.firstChild;  		}, -		empty: function(elem){ + +		empty: function( elem ) {  			return !elem.firstChild;  		}, -		has: function(elem, i, match){ + +		has: function( elem, i, match ) {  			return !!Sizzle( match[3], elem ).length;  		}, -		header: function(elem){ -			return /h\d/i.test( elem.nodeName ); + +		header: function( elem ) { +			return (/h\d/i).test( elem.nodeName );  		}, -		text: function(elem){ -			return "text" === elem.type; + +		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 "radio" === elem.type; + +		radio: function( elem ) { +			return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;  		}, -		checkbox: function(elem){ -			return "checkbox" === elem.type; + +		checkbox: function( elem ) { +			return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;  		}, -		file: function(elem){ -			return "file" === elem.type; + +		file: function( elem ) { +			return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;  		}, -		password: function(elem){ -			return "password" === elem.type; + +		password: function( elem ) { +			return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;  		}, -		submit: function(elem){ -			return "submit" === elem.type; + +		submit: function( elem ) { +			var name = elem.nodeName.toLowerCase(); +			return (name === "input" || name === "button") && "submit" === elem.type;  		}, -		image: function(elem){ -			return "image" === elem.type; + +		image: function( elem ) { +			return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;  		}, -		reset: function(elem){ -			return "reset" === 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";  		}, -		button: function(elem){ -			return "button" === elem.type || elem.nodeName.toLowerCase() === "button"; + +		input: function( elem ) { +			return (/input|select|textarea|button/i).test( elem.nodeName );  		}, -		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){ +		first: function( elem, i ) {  			return i === 0;  		}, -		last: function(elem, i, match, array){ + +		last: function( elem, i, match, array ) {  			return i === array.length - 1;  		}, -		even: function(elem, i){ + +		even: function( elem, i ) {  			return i % 2 === 0;  		}, -		odd: function(elem, i){ + +		odd: function( elem, i ) {  			return i % 2 === 1;  		}, -		lt: function(elem, i, match){ + +		lt: function( elem, i, match ) {  			return i < match[3] - 0;  		}, -		gt: function(elem, i, match){ + +		gt: function( elem, i, match ) {  			return i > match[3] - 0;  		}, -		nth: function(elem, i, match){ + +		nth: function( elem, i, match ) {  			return match[3] - 0 === i;  		}, -		eq: function(elem, i, match){ + +		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 ]; +		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 i = 0, l = not.length; i < l; i++ ) { -					if ( not[i] === elem ) { +				for ( var j = 0, l = not.length; j < l; j++ ) { +					if ( not[j] === elem ) {  						return false;  					}  				}  				return true; +  			} else { -				Sizzle.error( "Syntax error, unrecognized expression: " + name ); +				Sizzle.error( name );  			}  		}, -		CHILD: function(elem, match){ -			var type = match[1], node = elem; -			switch (type) { -				case 'only': -				case 'first': + +		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': + +				case "last":  					while ( (node = node.nextSibling) )	 {  						if ( node.nodeType === 1 ) {   							return false;   						}  					} +  					return true; -				case 'nth': -					var first = match[2], last = match[3]; + +				case "nth": +					first = match[2]; +					last = match[3];  					if ( first === 1 && last === 0 ) {  						return true;  					} -					var doneName = match[0], -						parent = elem.parentNode; +					doneName = match[0]; +					parent = elem.parentNode; -					if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { -						var count = 0; +					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.sizcache = doneName; + +						parent[ expando ] = doneName;  					} -					var diff = elem.nodeIndex - last; +					diff = elem.nodeIndex - last; +  					if ( first === 0 ) {  						return diff === 0; +  					} else {  						return ( diff % first === 0 && diff / first >= 0 );  					}  			}  		}, -		ID: function(elem, match){ + +		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; + +		TAG: function( elem, match ) { +			return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;  		}, -		CLASS: function(elem, match){ +		 +		CLASS: function( elem, match ) {  			return (" " + (elem.className || elem.getAttribute("class")) + " ")  				.indexOf( match ) > -1;  		}, -		ATTR: function(elem, match){ + +		ATTR: function( elem, match ) {  			var name = match[1], -				result = Expr.attrHandle[ name ] ? +				result = Sizzle.attr ? +					Sizzle.attr( elem, name ) : +					Expr.attrHandle[ name ] ?  					Expr.attrHandle[ name ]( elem ) :  					elem[ name ] != null ?  						elem[ name ] : @@ -3178,6 +4716,8 @@ var Expr = Sizzle.selectors = {  			return result == null ?  				type === "!=" : +				!type && Sizzle.attr ? +				result != null :  				type === "=" ?  				value === check :  				type === "*=" ? @@ -3196,8 +4736,10 @@ var Expr = Sizzle.selectors = {  				value === check || value.substr(0, check.length + 1) === check + "-" :  				false;  		}, -		POS: function(elem, match, i, array){ -			var name = match[2], filter = Expr.setFilters[ name ]; + +		POS: function( elem, match, i, array ) { +			var name = match[2], +				filter = Expr.setFilters[ name ];  			if ( filter ) {  				return filter( elem, i, match, array ); @@ -3206,16 +4748,17 @@ var Expr = Sizzle.selectors = {  	}  }; -var origPOS = Expr.match.POS; +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, function(all, num){ -		return "\\" + (num - 0 + 1); -	})); +	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) { +var makeArray = function( array, results ) {  	array = Array.prototype.slice.call( array, 0 );  	if ( results ) { @@ -3228,23 +4771,28 @@ var makeArray = function(array, results) {  // 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 ); +	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 ret = results || []; +} 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 i = 0, l = array.length; i < l; i++ ) { +				for ( var l = array.length; i < l; i++ ) {  					ret.push( array[i] );  				} +  			} else { -				for ( var i = 0; array[i]; i++ ) { +				for ( ; array[i]; i++ ) {  					ret.push( array[i] );  				}  			} @@ -3254,78 +4802,100 @@ try {  	};  } -var sortOrder; +var sortOrder, siblingCheck;  if ( document.documentElement.compareDocumentPosition ) {  	sortOrder = function( a, b ) { +		if ( a === b ) { +			hasDuplicate = true; +			return 0; +		} +  		if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { -			if ( a == b ) { -				hasDuplicate = true; -			}  			return a.compareDocumentPosition ? -1 : 1;  		} -		var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1; -		if ( ret === 0 ) { -			hasDuplicate = true; -		} -		return ret; +		return a.compareDocumentPosition(b) & 4 ? -1 : 1;  	}; -} else if ( "sourceIndex" in document.documentElement ) { + +} else {  	sortOrder = function( a, b ) { -		if ( !a.sourceIndex || !b.sourceIndex ) { -			if ( a == b ) { -				hasDuplicate = true; -			} -			return a.sourceIndex ? -1 : 1; +		// 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 ret = a.sourceIndex - b.sourceIndex; -		if ( ret === 0 ) { -			hasDuplicate = true; +		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;  		} -		return ret; -	}; -} else if ( document.createRange ) { -	sortOrder = function( a, b ) { -		if ( !a.ownerDocument || !b.ownerDocument ) { -			if ( a == b ) { -				hasDuplicate = true; -			} -			return a.ownerDocument ? -1 : 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;  		} -		var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange(); -		aRange.setStart(a, 0); -		aRange.setEnd(a, 0); -		bRange.setStart(b, 0); -		bRange.setEnd(b, 0); -		var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange); -		if ( ret === 0 ) { -			hasDuplicate = true; +		cur = bup; + +		while ( cur ) { +			bp.unshift( cur ); +			cur = cur.parentNode;  		} -		return ret; + +		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 );  	}; -} -// Utility function for retreiving the text value of an array of DOM nodes -function getText( elems ) { -	var ret = "", elem; +	siblingCheck = function( a, b, ret ) { +		if ( a === b ) { +			return ret; +		} -	for ( var i = 0; elems[i]; i++ ) { -		elem = elems[i]; +		var cur = a.nextSibling; -		// Get the text from text nodes and CDATA nodes -		if ( elem.nodeType === 3 || elem.nodeType === 4 ) { -			ret += elem.nodeValue; +		while ( cur ) { +			if ( cur === b ) { +				return -1; +			} -		// Traverse everything else, except comment nodes -		} else if ( elem.nodeType !== 8 ) { -			ret += getText( elem.childNodes ); +			cur = cur.nextSibling;  		} -	} -	return ret; +		return 1; +	};  }  // Check to see if the browser returns elements by name when @@ -3333,31 +4903,40 @@ function getText( elems ) {  (function(){  	// We're going to inject a fake input element with a specified name  	var form = document.createElement("div"), -		id = "script" + (new Date).getTime(); +		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 -	var root = document.documentElement;  	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){ +		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 : []; + +				return m ? +					m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? +						[m] : +						undefined : +					[];  			}  		}; -		Expr.filter.ID = function(elem, match){ +		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 ); -	root = form = null; // release memory in IE + +	// release memory in IE +	root = form = null;  })();  (function(){ @@ -3370,8 +4949,8 @@ function getText( elems ) {  	// Make sure no comments are found  	if ( div.getElementsByTagName("*").length > 0 ) { -		Expr.find.TAG = function(match, context){ -			var results = context.getElementsByTagName(match[1]); +		Expr.find.TAG = function( match, context ) { +			var results = context.getElementsByTagName( match[1] );  			// Filter out possible comments  			if ( match[1] === "*" ) { @@ -3392,19 +4971,25 @@ function getText( elems ) {  	// 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); + +		Expr.attrHandle.href = function( elem ) { +			return elem.getAttribute( "href", 2 );  		};  	} -	div = null; // release memory in IE +	// release memory in IE +	div = null;  })();  if ( document.querySelectorAll ) {  	(function(){ -		var oldSizzle = Sizzle, div = document.createElement("div"); +		var oldSizzle = Sizzle, +			div = document.createElement("div"), +			id = "__sizzle__"; +  		div.innerHTML = "<p class='TEST'></p>";  		// Safari can't handle uppercase or unicode characters when @@ -3413,15 +4998,86 @@ if ( document.querySelectorAll ) {  			return;  		} -		Sizzle = function(query, context, extra, seed){ +		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 && context.nodeType === 9 && !isXML(context) ) { -				try { -					return makeArray( context.querySelectorAll(query), extra ); -				} catch(e){} +			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); @@ -3431,11 +5087,56 @@ if ( document.querySelectorAll ) {  			Sizzle[ prop ] = oldSizzle[ prop ];  		} -		div = null; // release memory in IE +		// 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>"; @@ -3454,30 +5155,33 @@ if ( document.querySelectorAll ) {  	}  	Expr.order.splice(1, 0, "CLASS"); -	Expr.find.CLASS = function(match, context, isXML) { +	Expr.find.CLASS = function( match, context, isXML ) {  		if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {  			return context.getElementsByClassName(match[1]);  		}  	}; -	div = null; // release memory in IE +	// 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 ) { -			elem = elem[dir];  			var match = false; +			elem = elem[dir]; +  			while ( elem ) { -				if ( elem.sizcache === doneName ) { +				if ( elem[ expando ] === doneName ) {  					match = checkSet[elem.sizset];  					break;  				}  				if ( elem.nodeType === 1 && !isXML ){ -					elem.sizcache = doneName; +					elem[ expando ] = doneName;  					elem.sizset = i;  				} @@ -3497,21 +5201,24 @@ function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {  function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {  	for ( var i = 0, l = checkSet.length; i < l; i++ ) {  		var elem = checkSet[i]; +  		if ( elem ) { -			elem = elem[dir];  			var match = false; +			 +			elem = elem[dir];  			while ( elem ) { -				if ( elem.sizcache === doneName ) { +				if ( elem[ expando ] === doneName ) {  					match = checkSet[elem.sizset];  					break;  				}  				if ( elem.nodeType === 1 ) {  					if ( !isXML ) { -						elem.sizcache = doneName; +						elem[ expando ] = doneName;  						elem.sizset = i;  					} +  					if ( typeof cur !== "string" ) {  						if ( elem === cur ) {  							match = true; @@ -3532,21 +5239,34 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {  	}  } -var contains = document.compareDocumentPosition ? function(a, b){ -	return a.compareDocumentPosition(b) & 16; -} : function(a, b){ -	return a !== b && (a.contains ? a.contains(b) : true); -}; +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; +	}; +} -var isXML = function(elem){ +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 tmpSet = [], later = "", match, +var posProcess = function( selector, context, seed ) { +	var match, +		tmpSet = [], +		later = "",  		root = context.nodeType ? [context] : context;  	// Position selectors must be done after the filter @@ -3559,73 +5279,69 @@ var posProcess = function(selector, context){  	selector = Expr.relative[selector] ? selector + "*" : selector;  	for ( var i = 0, l = root.length; i < l; i++ ) { -		Sizzle( selector, root[i], tmpSet ); +		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.getText = getText; -jQuery.isXMLDoc = isXML; -jQuery.contains = contains; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; -return; - -window.Sizzle = Sizzle;  })(); + +  var runtil = /Until$/,  	rparentsprev = /^(?:parents|prevUntil|prevAll)/,  	// Note: This RegExp should be improved, or likely pulled from Sizzle  	rmultiselector = /,/, -	slice = Array.prototype.slice; - -// Implement the identical functionality for filter and not -var winnow = function( elements, qualifier, keep ) { -	if ( jQuery.isFunction( qualifier ) ) { -		return jQuery.grep(elements, function( elem, i ) { -			return !!qualifier.call( elem, i, elem ) === keep; -		}); - -	} else if ( qualifier.nodeType ) { -		return jQuery.grep(elements, function( elem, i ) { -			return (elem === qualifier) === keep; -		}); +	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 +	}; -	} else if ( typeof qualifier === "string" ) { -		var filtered = jQuery.grep(elements, function( elem ) { -			return elem.nodeType === 1; -		}); +jQuery.fn.extend({ +	find: function( selector ) { +		var self = this, +			i, l; -		if ( isSimple.test( qualifier ) ) { -			return jQuery.filter(qualifier, filtered, !keep); -		} else { -			qualifier = jQuery.filter( qualifier, filtered ); +		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; +					} +				} +			});  		} -	} - -	return jQuery.grep(elements, function( elem, i ) { -		return (jQuery.inArray( elem, qualifier ) >= 0) === keep; -	}); -}; -jQuery.fn.extend({ -	find: function( selector ) { -		var ret = this.pushStack( "", "find", selector ), length = 0; +		var ret = this.pushStack( "", "find", selector ), +			length, n, r; -		for ( var i = 0, l = this.length; i < l; i++ ) { +		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 ( var n = length; n < ret.length; n++ ) { -					for ( var r = 0; r < length; r++ ) { +				for ( n = length; n < ret.length; n++ ) { +					for ( r = 0; r < length; r++ ) {  						if ( ret[r] === ret[n] ) {  							ret.splice(n--, 1);  							break; @@ -3656,65 +5372,81 @@ jQuery.fn.extend({  	filter: function( selector ) {  		return this.pushStack( winnow(this, selector, true), "filter", selector );  	}, -	 +  	is: function( selector ) { -		return !!selector && jQuery.filter( selector, this ).length > 0; +		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 ret = [], cur = this[0], match, matches = {}, selector; +			var level = 1; -			if ( cur && selectors.length ) { -				for ( var i = 0, l = selectors.length; i < l; i++ ) { -					selector = selectors[i]; +			while ( cur && cur.ownerDocument && cur !== context ) { +				for ( i = 0; i < selectors.length; i++ ) { -					if ( !matches[selector] ) { -						matches[selector] = jQuery.expr.match.POS.test( selector ) ?  -							jQuery( selector, context || this.context ) : -							selector; +					if ( jQuery( cur ).is( selectors[ i ] ) ) { +						ret.push({ selector: selectors[ i ], elem: cur, level: level });  					}  				} -				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 }); -							delete matches[selector]; -						} -					} -					cur = cur.parentNode; -				} +				cur = cur.parentNode; +				level++;  			}  			return ret;  		} -		var pos = jQuery.expr.match.POS.test( selectors ) ?  -			jQuery( selectors, context || this.context ) : null; +		// String +		var pos = POS.test( selectors ) || typeof selectors !== "string" ? +				jQuery( selectors, context || this.context ) : +				0; -		return this.map(function( i, cur ) { -			while ( cur && cur.ownerDocument && cur !== context ) { -				if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selectors) ) { -					return cur; +		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; +					}  				} -				cur = cur.parentNode;  			} -			return null; -		}); +		} + +		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 ) { -		if ( !elem || typeof elem === "string" ) { -			return jQuery.inArray( this[0], -				// If it receives a string, the selector is used -				// If it receives nothing, the siblings are used -				elem ? jQuery( elem ) : this.parent().children() ); + +		// 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 @@ -3723,8 +5455,8 @@ jQuery.fn.extend({  	add: function( selector, context ) {  		var set = typeof selector === "string" ? -				jQuery( selector, context || this.context ) : -				jQuery.makeArray( selector ), +				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] ) ? @@ -3786,7 +5518,7 @@ jQuery.each({  }, function( name, fn ) {  	jQuery.fn[ name ] = function( until, selector ) {  		var ret = jQuery.map( this, fn, until ); -		 +  		if ( !runtil.test( name ) ) {  			selector = until;  		} @@ -3795,13 +5527,13 @@ jQuery.each({  			ret = jQuery.filter( selector, ret );  		} -		ret = this.length > 1 ? jQuery.unique( ret ) : 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(",") ); +		return this.pushStack( ret, name, slice.call( arguments ).join(",") );  	};  }); @@ -3811,11 +5543,15 @@ jQuery.extend({  			expr = ":not(" + expr + ")";  		} -		return jQuery.find.matches(expr, elems); +		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]; +		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 ); @@ -3850,19 +5586,74 @@ jQuery.extend({  		return r;  	}  }); -var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + +// 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 = /(<([\w:]+)[^>]*?)\/>/g, -	rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, +	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,  	rtagName = /<([\w:]+)/,  	rtbody = /<tbody/i, -	rhtml = /<|&\w+;/, -	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,  // checked="checked" or checked (html5) -	fcloseTag = function( all, front, tag ) { -		return rselfClosing.test( tag ) ? -			all : -			front + "></" + tag + ">"; -	}, +	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>" ], @@ -3872,7 +5663,8 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,  		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; @@ -3887,7 +5679,8 @@ jQuery.fn.extend({  	text: function( text ) {  		if ( jQuery.isFunction(text) ) {  			return this.each(function(i) { -				var self = jQuery(this); +				var self = jQuery( this ); +  				self.text( text.call(this, i, self.text()) );  			});  		} @@ -3896,7 +5689,7 @@ jQuery.fn.extend({  			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );  		} -		return jQuery.getText( this ); +		return jQuery.text( this );  	},  	wrapAll: function( html ) { @@ -3922,7 +5715,7 @@ jQuery.fn.extend({  				}  				return elem; -			}).append(this); +			}).append( this );  		}  		return this; @@ -3936,7 +5729,8 @@ jQuery.fn.extend({  		}  		return this.each(function() { -			var self = jQuery( this ), contents = self.contents(); +			var self = jQuery( this ), +				contents = self.contents();  			if ( contents.length ) {  				contents.wrapAll( html ); @@ -3948,8 +5742,10 @@ jQuery.fn.extend({  	},  	wrap: function( html ) { -		return this.each(function() { -			jQuery( this ).wrapAll( html ); +		var isFunction = jQuery.isFunction( html ); + +		return this.each(function(i) { +			jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );  		});  	}, @@ -3983,7 +5779,7 @@ jQuery.fn.extend({  				this.parentNode.insertBefore( elem, this );  			});  		} else if ( arguments.length ) { -			var set = jQuery(arguments[0]); +			var set = jQuery.clean( arguments );  			set.push.apply( set, this.toArray() );  			return this.pushStack( set, "before", arguments );  		} @@ -3996,45 +5792,52 @@ jQuery.fn.extend({  			});  		} else if ( arguments.length ) {  			var set = this.pushStack( this, "after", arguments ); -			set.push.apply( set, jQuery(arguments[0]).toArray() ); +			set.push.apply( set, jQuery.clean(arguments) );  			return set;  		}  	}, -	clone: function( events ) { -		// Do the clone -		var ret = this.map(function() { -			if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { -				// IE copies events bound via attachEvent when -				// using cloneNode. Calling detachEvent on the -				// clone will also remove the events from the orignal -				// In order to get around this, we use innerHTML. -				// Unfortunately, this means some modifications to -				// attributes in IE that are actually only stored -				// as properties will not be copied (such as the -				// the name attribute on an input). -				var html = this.outerHTML, ownerDocument = this.ownerDocument; -				if ( !html ) { -					var div = ownerDocument.createElement("div"); -					div.appendChild( this.cloneNode(true) ); -					html = div.innerHTML; -				} - -				return jQuery.clean([html.replace(rinlinejQuery, "") -					.replace(rleadingWhitespace, "")], ownerDocument)[0]; -			} else { -				return this.cloneNode(true); +	// 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 ); +				}  			} -		}); +		} -		// Copy the events from the original to the clone -		if ( events === true ) { -			cloneCopyEvent( this, ret ); -			cloneCopyEvent( this.find("*"), ret.find("*") ); +		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 the cloned set -		return ret; +		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 ) { @@ -4044,11 +5847,11 @@ jQuery.fn.extend({  				null;  		// See if we can take a shortcut and just use innerHTML -		} else if ( typeof value === "string" && !/<script/i.test( value ) && +		} else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&  			(jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&  			!wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) { -			value = value.replace(rxhtmlTag, fcloseTag); +			value = value.replace(rxhtmlTag, "<$1></$2>");  			try {  				for ( var i = 0, l = this.length; i < l; i++ ) { @@ -4066,10 +5869,9 @@ jQuery.fn.extend({  		} else if ( jQuery.isFunction( value ) ) {  			this.each(function(i){ -				var self = jQuery(this), old = self.html(); -				self.empty().append(function(){ -					return value.call( this, i, old ); -				}); +				var self = jQuery( this ); + +				self.html( value.call(this, i, self.html()) );  			});  		} else { @@ -4083,20 +5885,22 @@ jQuery.fn.extend({  		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 ) ) { -				value = jQuery( value ).detach(); - -			} else { +			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; +				var next = this.nextSibling, +					parent = this.parentNode; -				jQuery(this).remove(); +				jQuery( this ).remove();  				if ( next ) {  					jQuery(next).before( value ); @@ -4105,7 +5909,9 @@ jQuery.fn.extend({  				}  			});  		} else { -			return this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ); +			return this.length ? +				this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) : +				this;  		}  	}, @@ -4114,7 +5920,9 @@ jQuery.fn.extend({  	},  	domManip: function( args, table, callback ) { -		var results, first, value = args[0], scripts = []; +		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 ) ) { @@ -4132,95 +5940,195 @@ jQuery.fn.extend({  		}  		if ( this[0] ) { +			parent = value && value.parentNode; +  			// If we're in a fragment, just use that instead of building a new one -			if ( args[0] && args[0].parentNode && args[0].parentNode.nodeType === 11 ) { -				results = { fragment: args[0].parentNode }; +			if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) { +				results = { fragment: parent }; +  			} else { -				results = buildFragment( args, this, scripts ); +				results = jQuery.buildFragment( args, this, scripts );  			} -			first = results.fragment.firstChild; +			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; i < l; i++ ) { +				for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {  					callback.call(  						table ?  							root(this[i], first) :  							this[i], -						results.cacheable || this.length > 1 || i > 0 ? -							results.fragment.cloneNode(true) : -							results.fragment +						// 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 ) { +			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(orig, ret) { -	var i = 0; +function root( elem, cur ) { +	return jQuery.nodeName(elem, "table") ? +		(elem.getElementsByTagName("tbody")[0] || +		elem.appendChild(elem.ownerDocument.createElement("tbody"))) : +		elem; +} -	ret.each(function() { -		if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) { -			return; -		} +function cloneCopyEvent( src, dest ) { -		var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events; +	if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { +		return; +	} -		if ( events ) { -			delete curData.handle; -			curData.events = {}; +	var type, i, l, +		oldData = jQuery._data( src ), +		curData = jQuery._data( dest, oldData ), +		events = oldData.events; -			for ( var type in events ) { -				for ( var handler in events[ type ] ) { -					jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); -				} +	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 );  } -function buildFragment( args, nodes, scripts ) { -	var fragment, cacheable, cacheresults, doc; +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 )) ) { -	// webkit does not clone 'checked' attribute of radio inputs on cloneNode, so don't cache if string has a checked -	if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && args[0].indexOf("<option") < 0 && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {  		cacheable = true; -		cacheresults = jQuery.fragments[ args[0] ]; -		if ( cacheresults ) { -			if ( cacheresults !== 1 ) { -				fragment = cacheresults; -			} + +		cacheresults = jQuery.fragments[ first ]; +		if ( cacheresults && cacheresults !== 1 ) { +			fragment = cacheresults;  		}  	}  	if ( !fragment ) { -		doc = (nodes && nodes[0] ? nodes[0].ownerDocument || nodes[0] : document);  		fragment = doc.createDocumentFragment();  		jQuery.clean( args, doc, fragment, scripts );  	}  	if ( cacheable ) { -		jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1; +		jQuery.fragments[ first ] = cacheresults ? fragment : 1;  	}  	return { fragment: fragment, cacheable: cacheable }; -} +};  jQuery.fragments = {}; @@ -4232,51 +6140,122 @@ jQuery.each({  	replaceAll: "replaceWith"  }, function( name, original ) {  	jQuery.fn[ name ] = function( selector ) { -		var ret = [], insert = jQuery( 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 ); +			} -		for ( var i = 0, l = insert.length; i < l; i++ ) { -			var elems = (i > 0 ? this.clone(true) : this).get(); -			jQuery.fn[ original ].apply( jQuery(insert[i]), elems ); -			ret = ret.concat( elems ); +			return this.pushStack( ret, name, insert.selector );  		} -		return this.pushStack( ret, name, insert.selector );  	};  }); -jQuery.each({ -	// keepData is for internal use only--do not document -	remove: function( selector, keepData ) { -		if ( !selector || jQuery.filter( selector, [ this ] ).length ) { -			if ( !keepData && this.nodeType === 1 ) { -				jQuery.cleanData( this.getElementsByTagName("*") ); -				jQuery.cleanData( [ this ] ); -			} +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; +} -			if ( this.parentNode ) { -				 this.parentNode.removeChild( this ); +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] ); +				}  			}  		} -	}, -	empty: function() { -		// Remove element nodes and prevent memory leaks -		if ( this.nodeType === 1 ) { -			jQuery.cleanData( this.getElementsByTagName("*") ); -		} +		// Copy the events from the original to the clone +		if ( dataAndEvents ) { +			cloneCopyEvent( elem, clone ); + +			if ( deepDataAndEvents ) { +				srcElements = getAll( elem ); +				destElements = getAll( clone ); -		// Remove any remaining nodes -		while ( this.firstChild ) { -			this.removeChild( this.firstChild ); +				for ( i = 0; srcElements[i]; ++i ) { +					cloneCopyEvent( srcElements[i], destElements[i] ); +				} +			}  		} -	} -}, function( name, fn ) { -	jQuery.fn[ name ] = function() { -		return this.each( fn, arguments ); -	}; -}); -jQuery.extend({ +		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' @@ -4284,66 +6263,88 @@ jQuery.extend({  			context = context.ownerDocument || context[0] && context[0].ownerDocument || document;  		} -		var ret = []; +		var ret = [], j; -		jQuery.each(elems, function( i, elem ) { +		for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {  			if ( typeof elem === "number" ) {  				elem += "";  			}  			if ( !elem ) { -				return; +				continue;  			}  			// Convert html string into DOM nodes -			if ( typeof elem === "string" && !rhtml.test( elem ) ) { -				elem = context.createTextNode( elem ); - -			} else if ( typeof elem === "string" ) { -				// Fix "XHTML"-style tags in all browsers -				elem = elem.replace(rxhtmlTag, fcloseTag); - -				// 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"); +			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]; +					// 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; -				} +					// Move to the right depth +					while ( depth-- ) { +						div = div.lastChild; +					} -				// Remove IE's autoinserted <tbody> from table fragments -				if ( !jQuery.support.tbody ) { +					// 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 <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 : -								[]; +								// String was a bare <thead> or <tfoot> +								wrap[1] === "<table>" && !hasBody ? +									div.childNodes : +									[]; -					for ( var j = tbody.length - 1; j >= 0 ; --j ) { -						if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { -							tbody[ j ].parentNode.removeChild( tbody[ j ] ); +						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 ); +					} -				// 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;  				} +			} -				elem = jQuery.makeArray( 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 ) { @@ -4351,16 +6352,21 @@ jQuery.extend({  			} else {  				ret = jQuery.merge( ret, elem );  			} - -		}); +		}  		if ( fragment ) { -			for ( var i = 0; ret[i]; i++ ) { +			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 ) { -						ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) ); +						var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType ); + +						ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );  					}  					fragment.appendChild( ret[i] );  				} @@ -4369,270 +6375,628 @@ jQuery.extend({  		return ret;  	}, -	 +  	cleanData: function( elems ) { -		for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) { -			jQuery.event.remove( elem ); -			jQuery.removeData( elem ); +		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 ]; +			}  		}  	}  }); -// exclude the following css properties to add px -var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, -	ralpha = /alpha\([^)]*\)/, + +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=([^)]*)/, -	rfloat = /float/i, -	rdashAlpha = /-([a-z])/ig, -	rupper = /([A-Z])/g, +	// 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" }, +	cssShow = { position: "absolute", visibility: "hidden", display: "block" },  	cssWidth = [ "Left", "Right" ],  	cssHeight = [ "Top", "Bottom" ], +	curCSS, -	// cache check for defaultView.getComputedStyle -	getComputedStyle = document.defaultView && document.defaultView.getComputedStyle, -	// normalize float css property -	styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat", -	fcamelCase = function( all, letter ) { -		return letter.toUpperCase(); -	}; +	getComputedStyle, +	currentStyle;  jQuery.fn.css = function( name, value ) { -	return access( this, name, value, true, function( elem, name, value ) { -		if ( value === undefined ) { -			return jQuery.curCSS( elem, name ); -		} -		 -		if ( typeof value === "number" && !rexclude.test(name) ) { -			value += "px"; -		} +	// Setting 'undefined' is a no-op +	if ( arguments.length === 2 && value === undefined ) { +		return this; +	} -		jQuery.style( elem, name, value ); +	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({ -	style: function( elem, name, value ) { -		// don't set styles on text and comment nodes -		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { -			return undefined; +	// 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; +				} +			}  		} +	}, -		// ignore negative width and height values #1599 -		if ( (name === "width" || name === "height") && parseFloat(value) < 0 ) { -			value = undefined; +	// 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;  		} -		var style = elem.style || elem, set = value !== undefined; +		// Make sure that we're working with the right name +		var ret, type, origName = jQuery.camelCase( name ), +			style = elem.style, hooks = jQuery.cssHooks[ origName ]; -		// IE uses filters for opacity -		if ( !jQuery.support.opacity && name === "opacity" ) { -			if ( set ) { -				// IE has trouble with opacity if it does not have layout -				// Force it by setting the zoom level -				style.zoom = 1; +		name = jQuery.cssProps[ origName ] || origName; -				// Set the alpha filter to set the opacity -				var opacity = parseInt( value, 10 ) + "" === "NaN" ? "" : "alpha(opacity=" + value * 100 + ")"; -				var filter = style.filter || jQuery.curCSS( elem, "filter" ) || ""; -				style.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : opacity; +		// 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";  			} -			return style.filter && style.filter.indexOf("opacity=") >= 0 ? -				(parseFloat( ropacity.exec(style.filter)[1] ) / 100) + "": -				""; -		} +			// 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; +			} -		// Make sure we're using the right name for getting the float value -		if ( rfloat.test( name ) ) { -			name = styleFloat; +			// Otherwise just get the value from the style object +			return style[ name ];  		} +	}, -		name = name.replace(rdashAlpha, fcamelCase); +	css: function( elem, name, extra ) { +		var ret, hooks; -		if ( set ) { -			style[ name ] = value; +		// 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";  		} -		return style[ name ]; +		// 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 ); +		}  	}, -	css: function( elem, name, force, extra ) { -		if ( name === "width" || name === "height" ) { -			var val, props = cssShow, which = name === "width" ? cssWidth : cssHeight; +	// A method for quickly swapping in/out CSS properties to get correct calculations +	swap: function( elem, options, callback ) { +		var old = {}; -			function getWH() { -				val = name === "width" ? elem.offsetWidth : elem.offsetHeight; +		// Remember the old values, and insert the new ones +		for ( var name in options ) { +			old[ name ] = elem.style[ name ]; +			elem.style[ name ] = options[ name ]; +		} -				if ( extra === "border" ) { -					return; -				} +		callback.call( elem ); -				jQuery.each( which, function() { -					if ( !extra ) { -						val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; -					} +		// Revert the old values +		for ( name in options ) { +			elem.style[ name ] = old[ name ]; +		} +	} +}); -					if ( extra === "margin" ) { -						val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; -					} else { -						val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; -					} -				}); +// 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"; +				} -			if ( elem.offsetWidth !== 0 ) { -				getWH();  			} else { -				jQuery.swap( elem, props, getWH ); +				return value;  			} - -			return Math.max(0, Math.round(val));  		} +	}; +}); -		return jQuery.curCSS( elem, name, force ); -	}, +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" : ""; +		}, -	curCSS: function( elem, name, force ) { -		var ret, style = elem.style, filter; +		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 uses filters for opacity -		if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) { -			ret = ropacity.test(elem.currentStyle.filter || "") ? -				(parseFloat(RegExp.$1) / 100) + "" : -				""; +			// IE has trouble with opacity if it does not have layout +			// Force it by setting the zoom level +			style.zoom = 1; -			return ret === "" ? -				"1" : -				ret; -		} +			// if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652 +			if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) { -		// Make sure we're using the right name for getting the float value -		if ( rfloat.test( name ) ) { -			name = styleFloat; -		} +				// 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 ( !force && style && style[ name ] ) { -			ret = style[ name ]; +				// if there there is no filter style applied in a css rule, we are done +				if ( currentStyle && !currentStyle.filter ) { +					return; +				} +			} -		} else if ( getComputedStyle ) { +			// otherwise, set new filter values +			style.filter = ralpha.test( filter ) ? +				filter.replace( ralpha, opacity ) : +				filter + " " + opacity; +		} +	}; +} -			// Only "float" is needed here -			if ( rfloat.test( name ) ) { -				name = "float"; +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;  			} +		}; +	} +}); -			name = name.replace( rupper, "-$1" ).toLowerCase(); +if ( document.defaultView && document.defaultView.getComputedStyle ) { +	getComputedStyle = function( elem, name ) { +		var ret, defaultView, computedStyle; -			var defaultView = elem.ownerDocument.defaultView; +		name = name.replace( rupper, "-$1" ).toLowerCase(); -			if ( !defaultView ) { -				return null; +		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 );  			} +		} -			var computedStyle = defaultView.getComputedStyle( elem, null ); - -			if ( computedStyle ) { -				ret = computedStyle.getPropertyValue( name ); -			} +		return ret; +	}; +} -			// We should always get a number back from opacity -			if ( name === "opacity" && ret === "" ) { -				ret = "1"; -			} +if ( document.documentElement.currentStyle ) { +	currentStyle = function( elem, name ) { +		var left, rsLeft, uncomputed, +			ret = elem.currentStyle && elem.currentStyle[ name ], +			style = elem.style; -		} else if ( elem.currentStyle ) { -			var camelCase = name.replace(rdashAlpha, fcamelCase); +		// Avoid setting ret to empty string here +		// so we don't default to auto +		if ( ret === null && style && (uncomputed = style[ name ]) ) { +			ret = uncomputed; +		} -			ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; +		// From the awesome hack by Dean Edwards +		// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 -			// 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 ) ) { -			// 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 -				var left = style.left, rsLeft = elem.runtimeStyle.left; +			// Remember the original values +			left = style.left; +			rsLeft = elem.runtimeStyle && elem.runtimeStyle.left; -				// Put in the new values to get a computed value out +			// Put in the new values to get a computed value out +			if ( rsLeft ) {  				elem.runtimeStyle.left = elem.currentStyle.left; -				style.left = camelCase === "fontSize" ? "1em" : (ret || 0); -				ret = style.pixelLeft + "px"; +			} +			style.left = name === "fontSize" ? "1em" : ( ret || 0 ); +			ret = style.pixelLeft + "px"; -				// Revert the changed values -				style.left = left; +			// Revert the changed values +			style.left = left; +			if ( rsLeft ) {  				elem.runtimeStyle.left = rsLeft;  			}  		} -		return ret; -	}, +		return ret === "" ? "auto" : ret; +	}; +} -	// A method for quickly swapping in/out CSS properties to get correct calculations -	swap: function( elem, options, callback ) { -		var old = {}; +curCSS = getComputedStyle || currentStyle; -		// Remember the old values, and insert the new ones -		for ( var name in options ) { -			old[ name ] = elem.style[ name ]; -			elem.style[ name ] = options[ name ]; +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; +				} +			}  		} -		callback.call( elem ); +		return val + "px"; +	} -		// Revert the old values -		for ( var name in options ) { -			elem.style[ name ] = old[ name ]; +	// 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, -			skip = elem.nodeName.toLowerCase() === "tr"; - -		return width === 0 && height === 0 && !skip ? -			true : -			width > 0 && height > 0 && !skip ? -				false : -				jQuery.curCSS(elem, "display") === "none"; +		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 jsc = now(), -	rscript = /<script(.|\s)*?\/script>/gi, -	rselectTextarea = /select|textarea/i, -	rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i, -	jsre = /=\?(&|$)/, + + + + +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 = /\?/, -	rts = /(\?|&)_=.*?(&|$)/, -	rurl = /^(\w+:)?\/\/([^\/?#]+)/, -	r20 = /%20/g; +	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; +} -jQuery.fn.extend({ -	// Keep a copy of the old load -	_load: jQuery.fn.load, +// 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" ) { -			return this._load( url ); +		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(" "); +		var off = url.indexOf( " " );  		if ( off >= 0 ) { -			var selector = url.slice(off, url.length); -			url = url.slice(0, off); +			var selector = url.slice( off, url.length ); +			url = url.slice( 0, off );  		}  		// Default to a GET request @@ -4644,7 +7008,7 @@ jQuery.fn.extend({  			if ( jQuery.isFunction( params ) ) {  				// We assume that it's the callback  				callback = params; -				params = null; +				params = undefined;  			// Otherwise, build a param string  			} else if ( typeof params === "object" ) { @@ -4661,26 +7025,34 @@ jQuery.fn.extend({  			type: type,  			dataType: "html",  			data: params, -			complete: function( res, status ) { +			// 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 ( status === "success" || status === "notmodified" ) { +				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 />") +						jQuery("<div>")  							// inject the contents of the document in, removing the scripts  							// to avoid any 'Permission Denied' errors in IE -							.append(res.responseText.replace(rscript, "")) +							.append(responseText.replace(rscript, ""))  							// Locate the specified elements  							.find(selector) :  						// If not, just inject the full result -						res.responseText ); +						responseText );  				}  				if ( callback ) { -					self.each( callback, [res.responseText, status, res] ); +					self.each( callback, [ responseText, status, jqXHR ] );  				}  			}  		}); @@ -4689,88 +7061,87 @@ jQuery.fn.extend({  	},  	serialize: function() { -		return jQuery.param(this.serializeArray()); +		return jQuery.param( this.serializeArray() );  	}, +  	serializeArray: function() { -		return this.map(function() { -			return this.elements ? jQuery.makeArray(this.elements) : this; +		return this.map(function(){ +			return this.elements ? jQuery.makeArray( this.elements ) : this;  		}) -		.filter(function() { +		.filter(function(){  			return this.name && !this.disabled && -				(this.checked || rselectTextarea.test(this.nodeName) || -					rinput.test(this.type)); +				( this.checked || rselectTextarea.test( this.nodeName ) || +					rinput.test( this.type ) );  		}) -		.map(function( i, elem ) { -			var val = jQuery(this).val(); +		.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 }; +				jQuery.isArray( val ) ? +					jQuery.map( val, function( val, i ){ +						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };  					}) : -					{ name: elem.name, value: val }; +					{ 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( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){ +	jQuery.fn[ o ] = function( f ){ +		return this.on( o, f );  	};  }); -jQuery.extend({ - -	get: function( url, data, callback, type ) { -		// shift arguments if data argument was omited +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 = null; +			data = undefined;  		}  		return jQuery.ajax({ -			type: "GET", +			type: method,  			url: url,  			data: data,  			success: callback,  			dataType: type  		}); -	}, +	}; +}); + +jQuery.extend({  	getScript: function( url, callback ) { -		return jQuery.get(url, null, callback, "script"); +		return jQuery.get( url, undefined, callback, "script" );  	},  	getJSON: function( url, data, callback ) { -		return jQuery.get(url, data, callback, "json"); +		return jQuery.get( url, data, callback, "json" );  	}, -	post: function( url, data, callback, type ) { -		// shift arguments if data argument was omited -		if ( jQuery.isFunction( data ) ) { -			type = type || callback; -			callback = data; -			data = {}; +	// 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;  		} - -		return jQuery.ajax({ -			type: "POST", -			url: url, -			data: data, -			success: callback, -			dataType: type -		}); -	}, - -	ajaxSetup: function( settings ) { -		jQuery.extend( jQuery.ajaxSettings, settings ); +		ajaxExtend( target, settings ); +		return target;  	},  	ajaxSettings: { -		url: location.href, +		url: ajaxLocation, +		isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),  		global: true,  		type: "GET",  		contentType: "application/x-www-form-urlencoded", @@ -4779,507 +7150,1075 @@ jQuery.extend({  		/*  		timeout: 0,  		data: null, +		dataType: null,  		username: null,  		password: null, +		cache: null,  		traditional: false, +		headers: {},  		*/ -		// Create the request object; Microsoft failed to properly -		// implement the XMLHttpRequest in IE7 (can't request local files), -		// so we use the ActiveXObject when it is available -		// This function can be overriden by calling jQuery.ajaxSetup -		xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ? -			function() { -				return new window.XMLHttpRequest(); -			} : -			function() { -				try { -					return new window.ActiveXObject("Microsoft.XMLHTTP"); -				} catch(e) {} -			}, +  		accepts: {  			xml: "application/xml, text/xml",  			html: "text/html", -			script: "text/javascript, application/javascript", -			json: "application/json, text/javascript",  			text: "text/plain", -			_default: "*/*" -		} -	}, - -	// Last-Modified header cache for next request -	lastModified: {}, -	etag: {}, +			json: "application/json, text/javascript", +			"*": allTypes +		}, -	ajax: function( origSettings ) { -		var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); -		 -		var jsonp, status, data, -			callbackContext = origSettings && origSettings.context || s, -			type = s.type.toUpperCase(); +		contents: { +			xml: /xml/, +			html: /html/, +			json: /json/ +		}, -		// convert data if not already a string -		if ( s.data && s.processData && typeof s.data !== "string" ) { -			s.data = jQuery.param( s.data, s.traditional ); -		} +		responseFields: { +			xml: "responseXML", +			text: "responseText" +		}, -		// Handle JSONP Parameter Callbacks -		if ( s.dataType === "jsonp" ) { -			if ( type === "GET" ) { -				if ( !jsre.test( s.url ) ) { -					s.url += (rquery.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?"; -				} -			} else if ( !s.data || !jsre.test(s.data) ) { -				s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?"; -			} -			s.dataType = "json"; -		} +		// 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: { -		// Build temporary JSONP function -		if ( s.dataType === "json" && (s.data && jsre.test(s.data) || jsre.test(s.url)) ) { -			jsonp = s.jsonpCallback || ("jsonp" + jsc++); +			// Convert anything to text +			"* text": window.String, -			// Replace the =? sequence both in the query string and the data -			if ( s.data ) { -				s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1"); -			} +			// Text to html (true = no transformation) +			"text html": true, -			s.url = s.url.replace(jsre, "=" + jsonp + "$1"); +			// Evaluate text as a json expression +			"text json": jQuery.parseJSON, -			// We need to make sure -			// that a JSONP style response is executed properly -			s.dataType = "script"; +			// Parse text as xml +			"text xml": jQuery.parseXML +		}, -			// Handle JSONP-style loading -			window[ jsonp ] = window[ jsonp ] || function( tmp ) { -				data = tmp; -				success(); -				complete(); -				// Garbage collect -				window[ jsonp ] = undefined; +		// 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; +				}, -				try { -					delete window[ jsonp ]; -				} catch(e) {} +				// Overrides response content-type header +				overrideMimeType: function( type ) { +					if ( !state ) { +						s.mimeType = type; +					} +					return this; +				}, -				if ( head ) { -					head.removeChild( script ); +				// Cancel the request +				abort: function( statusText ) { +					statusText = statusText || "abort"; +					if ( transport ) { +						transport.abort( statusText ); +					} +					done( 0, statusText ); +					return this;  				}  			}; -		} - -		if ( s.dataType === "script" && s.cache === null ) { -			s.cache = false; -		} - -		if ( s.cache === false && type === "GET" ) { -			var ts = now(); - -			// try replacing _= if it is there -			var ret = s.url.replace(rts, "$1_=" + ts + "$2"); -			// if nothing was replaced, add timestamp to the end -			s.url = ret + ((ret === s.url) ? (rquery.test(s.url) ? "&" : "?") + "_=" + ts : ""); -		} - -		// If data is available, append data to url for get requests -		if ( s.data && type === "GET" ) { -			s.url += (rquery.test(s.url) ? "&" : "?") + s.data; -		} +		// 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 ) { -		// Watch for a new set of requests -		if ( s.global && ! jQuery.active++ ) { -			jQuery.event.trigger( "ajaxStart" ); -		} +			// Called once +			if ( state === 2 ) { +				return; +			} -		// Matches an absolute URL, and saves the domain -		var parts = rurl.exec( s.url ), -			remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !== location.host); +			// State is "done" now +			state = 2; -		// If we're requesting a remote document -		// and trying to load JSON or Script with a GET -		if ( s.dataType === "script" && type === "GET" && remote ) { -			var head = document.getElementsByTagName("head")[0] || document.documentElement; -			var script = document.createElement("script"); -			script.src = s.url; -			if ( s.scriptCharset ) { -				script.charset = s.scriptCharset; +			// Clear timeout if it exists +			if ( timeoutTimer ) { +				clearTimeout( timeoutTimer );  			} -			// Handle Script loading -			if ( !jsonp ) { -				var done = false; +			// Dereference transport for early garbage collection +			// (no matter how long the jqXHR object will be used) +			transport = undefined; -				// Attach handlers for all browsers -				script.onload = script.onreadystatechange = function() { -					if ( !done && (!this.readyState || -							this.readyState === "loaded" || this.readyState === "complete") ) { -						done = true; -						success(); -						complete(); +			// Cache response headers +			responseHeadersString = headers || ""; -						// Handle memory leak in IE -						script.onload = script.onreadystatechange = null; -						if ( head && script.parentNode ) { -							head.removeChild( script ); -						} -					} -				}; -			} +			// Set readyState +			jqXHR.readyState = status > 0 ? 4 : 0; -			// 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 ); +			var isSuccess, +				success, +				error, +				statusText = nativeStatusText, +				response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined, +				lastModified, +				etag; -			// We handle everything using the script element injection -			return undefined; -		} +			// If successful, handle type chaining +			if ( status >= 200 && status < 300 || status === 304 ) { -		var requestDone = false; +				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. +				if ( s.ifModified ) { -		// Create the request object -		var xhr = s.xhr(); +					if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) { +						jQuery.lastModified[ ifModifiedKey ] = lastModified; +					} +					if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) { +						jQuery.etag[ ifModifiedKey ] = etag; +					} +				} -		if ( !xhr ) { -			return; -		} +				// If not modified +				if ( status === 304 ) { -		// Open the socket -		// Passing null username, generates a login popup on Opera (#2865) -		if ( s.username ) { -			xhr.open(type, s.url, s.async, s.username, s.password); -		} else { -			xhr.open(type, s.url, s.async); -		} +					statusText = "notmodified"; +					isSuccess = true; -		// Need an extra try/catch for cross domain requests in Firefox 3 -		try { -			// Set the correct header, if data is being sent -			if ( s.data || origSettings && origSettings.contentType ) { -				xhr.setRequestHeader("Content-Type", s.contentType); -			} +				// If we have data +				} else { -			// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. -			if ( s.ifModified ) { -				if ( jQuery.lastModified[s.url] ) { -					xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]); +					try { +						success = ajaxConvert( s, response ); +						statusText = "success"; +						isSuccess = true; +					} catch(e) { +						// We have a parsererror +						statusText = "parsererror"; +						error = e; +					}  				} - -				if ( jQuery.etag[s.url] ) { -					xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]); +			} 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 header so the called script knows that it's an XMLHttpRequest -			// Only send the header if it's not a remote XHR -			if ( !remote ) { -				xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); -			} - -			// Set the Accepts header for the server, depending on the dataType -			xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? -				s.accepts[ s.dataType ] + ", */*" : -				s.accepts._default ); -		} catch(e) {} +			// Set data for the fake xhr object +			jqXHR.status = status; +			jqXHR.statusText = "" + ( nativeStatusText || statusText ); -		// Allow custom headers/mimetypes and early abort -		if ( s.beforeSend && s.beforeSend.call(callbackContext, xhr, s) === false ) { -			// Handle the global AJAX counter -			if ( s.global && ! --jQuery.active ) { -				jQuery.event.trigger( "ajaxStop" ); +			// Success/Error +			if ( isSuccess ) { +				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); +			} else { +				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );  			} -			// close opended socket -			xhr.abort(); -			return false; -		} +			// Status-dependent callbacks +			jqXHR.statusCode( statusCode ); +			statusCode = undefined; -		if ( s.global ) { -			trigger("ajaxSend", [xhr, s]); -		} +			if ( fireGlobals ) { +				globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ), +						[ jqXHR, s, isSuccess ? success : error ] ); +			} -		// Wait for a response to come back -		var onreadystatechange = xhr.onreadystatechange = function( isTimeout ) { -			// The request was aborted -			if ( !xhr || xhr.readyState === 0 || isTimeout === "abort" ) { -				// Opera doesn't call onreadystatechange before this point -				// so we simulate the call -				if ( !requestDone ) { -					complete(); -				} +			// Complete +			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); -				requestDone = true; -				if ( xhr ) { -					xhr.onreadystatechange = jQuery.noop; +			if ( fireGlobals ) { +				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); +				// Handle the global AJAX counter +				if ( !( --jQuery.active ) ) { +					jQuery.event.trigger( "ajaxStop" );  				} +			} +		} -			// The transfer is complete and the data is available, or the request timed out -			} else if ( !requestDone && xhr && (xhr.readyState === 4 || isTimeout === "timeout") ) { -				requestDone = true; -				xhr.onreadystatechange = jQuery.noop; - -				status = isTimeout === "timeout" ? -					"timeout" : -					!jQuery.httpSuccess( xhr ) ? -						"error" : -						s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? -							"notmodified" : -							"success"; - -				var errMsg; +		// Attach deferreds +		deferred.promise( jqXHR ); +		jqXHR.success = jqXHR.done; +		jqXHR.error = jqXHR.fail; +		jqXHR.complete = completeDeferred.add; -				if ( status === "success" ) { -					// Watch for, and catch, XML document parse errors -					try { -						// process the data (runs the xml through httpData regardless of callback) -						data = jQuery.httpData( xhr, s.dataType, s ); -					} catch(err) { -						status = "parsererror"; -						errMsg = err; -					} -				} - -				// Make sure that the request was successful or notmodified -				if ( status === "success" || status === "notmodified" ) { -					// JSONP handles its own success callback -					if ( !jsonp ) { -						success(); +		// 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 { -					jQuery.handleError(s, xhr, status, errMsg); -				} - -				// Fire the complete handlers -				complete(); - -				if ( isTimeout === "timeout" ) { -					xhr.abort(); -				} - -				// Stop memory leaks -				if ( s.async ) { -					xhr = null; +					tmp = map[ jqXHR.status ]; +					jqXHR.then( tmp, tmp );  				}  			} +			return this;  		}; -		// Override the abort handler, if we can (IE doesn't allow it, but that's OK) -		// Opera doesn't fire onreadystatechange at all on abort -		try { -			var oldAbort = xhr.abort; -			xhr.abort = function() { -				if ( xhr ) { -					oldAbort.call( xhr ); -				} - -				onreadystatechange( "abort" ); -			}; -		} catch(e) { } +		// 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 ] + "//" ); -		// Timeout checker -		if ( s.async && s.timeout > 0 ) { -			setTimeout(function() { -				// Check to see if the request is still happening -				if ( xhr && !requestDone ) { -					onreadystatechange( "timeout" ); -				} -			}, s.timeout); -		} +		// Extract dataTypes list +		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax ); -		// Send the data -		try { -			xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null ); -		} catch(e) { -			jQuery.handleError(s, xhr, null, e); -			// Fire the complete handlers -			complete(); +		// 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 ) ) ) +			);  		} -		// firefox 1.5 doesn't fire statechange for sync requests -		if ( !s.async ) { -			onreadystatechange(); +		// Convert data if not already a string +		if ( s.data && s.processData && typeof s.data !== "string" ) { +			s.data = jQuery.param( s.data, s.traditional );  		} -		function success() { -			// If a local callback was specified, fire it and pass it the data -			if ( s.success ) { -				s.success.call( callbackContext, data, status, xhr ); -			} +		// Apply prefilters +		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); -			// Fire the global callback -			if ( s.global ) { -				trigger( "ajaxSuccess", [xhr, s] ); -			} +		// If request was aborted inside a prefiler, stop there +		if ( state === 2 ) { +			return false;  		} -		function complete() { -			// Process result -			if ( s.complete ) { -				s.complete.call( callbackContext, xhr, status); -			} - -			// The request was completed -			if ( s.global ) { -				trigger( "ajaxComplete", [xhr, s] ); -			} +		// We can fire global events as of now if asked to +		fireGlobals = s.global; -			// Handle the global AJAX counter -			if ( s.global && ! --jQuery.active ) { -				jQuery.event.trigger( "ajaxStop" ); -			} -		} -		 -		function trigger(type, args) { -			(s.context ? jQuery(s.context) : jQuery.event).trigger(type, args); -		} +		// Uppercase the type +		s.type = s.type.toUpperCase(); -		// return XMLHttpRequest to allow aborting the request etc. -		return xhr; -	}, +		// Determine if request has content +		s.hasContent = !rnoContent.test( s.type ); -	handleError: function( s, xhr, status, e ) { -		// If a local callback was specified, fire it -		if ( s.error ) { -			s.error.call( s.context || s, xhr, status, e ); +		// Watch for a new set of requests +		if ( fireGlobals && jQuery.active++ === 0 ) { +			jQuery.event.trigger( "ajaxStart" );  		} -		// Fire the global callback -		if ( s.global ) { -			(s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] ); -		} -	}, +		// More options handling for requests with no content +		if ( !s.hasContent ) { -	// Counter for holding the number of active queries -	active: 0, +			// 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; +			} -	// Determines if an XMLHttpRequest was successful or not -	httpSuccess: function( xhr ) { -		try { -			// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450 -			return !xhr.status && location.protocol === "file:" || -				// Opera returns 0 when status is 304 -				( xhr.status >= 200 && xhr.status < 300 ) || -				xhr.status === 304 || xhr.status === 1223 || xhr.status === 0; -		} catch(e) {} +			// Get ifModifiedKey before adding the anti-cache parameter +			ifModifiedKey = s.url; -		return false; -	}, +			// Add anti-cache in url if needed +			if ( s.cache === false ) { -	// Determines if an XMLHttpRequest returns NotModified -	httpNotModified: function( xhr, url ) { -		var lastModified = xhr.getResponseHeader("Last-Modified"), -			etag = xhr.getResponseHeader("Etag"); +				var ts = jQuery.now(), +					// try replacing _= if it is there +					ret = s.url.replace( rts, "$1_=" + ts ); -		if ( lastModified ) { -			jQuery.lastModified[url] = lastModified; +				// if nothing was replaced, add timestamp to the end +				s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" ); +			}  		} -		if ( etag ) { -			jQuery.etag[url] = etag; +		// 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 );  		} -		// Opera returns 0 when status is 304 -		return xhr.status === 304 || xhr.status === 0; -	}, +		// 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 ] ); +			} +		} -	httpData: function( xhr, type, s ) { -		var ct = xhr.getResponseHeader("content-type") || "", -			xml = type === "xml" || !type && ct.indexOf("xml") >= 0, -			data = xml ? xhr.responseXML : xhr.responseText; +		// 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[ "*" ] +		); -		if ( xml && data.documentElement.nodeName === "parsererror" ) { -			jQuery.error( "parsererror" ); +		// Check for headers option +		for ( i in s.headers ) { +			jqXHR.setRequestHeader( i, s.headers[ i ] );  		} -		// Allow a pre-filtering function to sanitize the response -		// s is checked to keep backwards compatibility -		if ( s && s.dataFilter ) { -			data = s.dataFilter( data, type ); +		// 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; +  		} -		// The filter can actually parse the response -		if ( typeof data === "string" ) { -			// Get the JavaScript object, if JSON is used. -			if ( type === "json" || !type && ct.indexOf("json") >= 0 ) { -				data = jQuery.parseJSON( data ); +		// 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 the type is "script", eval it in global context -			} else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) { -				jQuery.globalEval( data ); +		// 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 data; +		return jqXHR;  	},  	// Serialize an array of form elements or a set of  	// key/values into a query string  	param: function( a, traditional ) { -		var s = []; -		 +		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 ) { +		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] ); +				buildParams( prefix, a[ prefix ], traditional, add );  			}  		}  		// Return the resulting serialization -		return s.join("&").replace(r20, "+"); - -		function buildParams( prefix, obj ) { -			if ( jQuery.isArray(obj) ) { -				// Serialize array item. -				jQuery.each( obj, function( i, v ) { -					if ( traditional ) { -						// 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 ); -					} -				}); -					 -			} else if ( !traditional && obj != null && typeof obj === "object" ) { -				// Serialize object item. -				jQuery.each( obj, function( k, v ) { -					buildParams( prefix + "[" + k + "]", v ); -				}); -					 +		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 { -				// Serialize scalar item. -				add( prefix, obj ); +				// 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; +				}  			}  		} -		function add( 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); +		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 = {}, -	rfxtypes = /toggle|show|hide/, -	rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/, +	iframe, iframeDoc, +	rfxtypes = /^(?:toggle|show|hide)$/, +	rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,  	timerId,  	fxAttrs = [  		// height animations @@ -5288,69 +8227,82 @@ var elemdisplay = {},  		[ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],  		// opacity animations  		[ "opacity" ] -	]; +	], +	fxNow;  jQuery.fn.extend({ -	show: function( speed, callback ) { -		if ( speed || speed === 0) { -			return this.animate( genFx("show", 3), speed, callback); - -		} else { -			for ( var i = 0, l = this.length; i < l; i++ ) { -				var old = jQuery.data(this[i], "olddisplay"); - -				this[i].style.display = old || ""; - -				if ( jQuery.css(this[i], "display") === "none" ) { -					var nodeName = this[i].nodeName, display; - -					if ( elemdisplay[ nodeName ] ) { -						display = elemdisplay[ nodeName ]; - -					} else { -						var elem = jQuery("<" + nodeName + " />").appendTo("body"); +	show: function( speed, easing, callback ) { +		var elem, display; -						display = elem.css("display"); +		if ( speed || speed === 0 ) { +			return this.animate( genFx("show", 3), speed, easing, callback ); -						if ( display === "none" ) { -							display = "block"; -						} +		} else { +			for ( var i = 0, j = this.length; i < j; i++ ) { +				elem = this[ i ]; -						elem.remove(); +				if ( elem.style ) { +					display = elem.style.display; -						elemdisplay[ nodeName ] = 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 = "";  					} -					jQuery.data(this[i], "olddisplay", 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 the elements in a second loop +			// Set the display of most of the elements in a second loop  			// to avoid the constant reflow -			for ( var j = 0, k = this.length; j < k; j++ ) { -				this[j].style.display = jQuery.data(this[j], "olddisplay") || ""; +			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, callback ) { +	hide: function( speed, easing, callback ) {  		if ( speed || speed === 0 ) { -			return this.animate( genFx("hide", 3), speed, callback); +			return this.animate( genFx("hide", 3), speed, easing, callback);  		} else { -			for ( var i = 0, l = this.length; i < l; i++ ) { -				var old = jQuery.data(this[i], "olddisplay"); -				if ( !old && old !== "none" ) { -					jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display")); +			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 ( var j = 0, k = this.length; j < k; j++ ) { -				this[j].style.display = "none"; +			for ( i = 0; i < j; i++ ) { +				if ( this[i].style ) { +					this[i].style.display = "none"; +				}  			}  			return this; @@ -5360,7 +8312,7 @@ jQuery.fn.extend({  	// Save the old toggle function  	_toggle: jQuery.fn.toggle, -	toggle: function( fn, fn2 ) { +	toggle: function( fn, fn2, callback ) {  		var bool = typeof fn === "boolean";  		if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) { @@ -5373,54 +8325,89 @@ jQuery.fn.extend({  			});  		} else { -			this.animate(genFx("toggle", 3), fn, fn2); +			this.animate(genFx("toggle", 3), fn, fn2, callback);  		}  		return this;  	}, -	fadeTo: function( speed, to, callback ) { +	fadeTo: function( speed, to, easing, callback ) {  		return this.filter(":hidden").css("opacity", 0).show().end() -					.animate({opacity: to}, speed, callback); +					.animate({opacity: to}, speed, easing, callback);  	},  	animate: function( prop, speed, easing, callback ) { -		var optall = jQuery.speed(speed, easing, callback); +		var optall = jQuery.speed( speed, easing, callback );  		if ( jQuery.isEmptyObject( prop ) ) { -			return this.each( optall.complete ); +			return this.each( optall.complete, [ false ] );  		} -		return this[ optall.queue === false ? "each" : "queue" ](function() { -			var opt = jQuery.extend({}, optall), p, -				hidden = this.nodeType === 1 && jQuery(this).is(":hidden"), -				self = this; +		// 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 ) { -				var name = p.replace(rdashAlpha, fcamelCase); +				// property name normalization +				name = jQuery.camelCase( p );  				if ( p !== name ) {  					prop[ name ] = prop[ p ];  					delete prop[ p ]; -					p = name;  				} -				if ( prop[p] === "hide" && hidden || prop[p] === "show" && !hidden ) { -					return opt.complete.call(this); +				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 ( ( p === "height" || p === "width" ) && this.style ) { -					// Store display property -					opt.display = jQuery.css(this, "display"); +				if ( val === "hide" && hidden || val === "show" && !hidden ) { +					return opt.complete.call( this ); +				} +				if ( isElement && ( name === "height" || name === "width" ) ) {  					// Make sure that nothing sneaks out -					opt.overflow = this.style.overflow; -				} +					// 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 ]; -				if ( jQuery.isArray( prop[p] ) ) { -					// Create (if needed) and add to specialEasing -					(opt.specialEasing = opt.specialEasing || {})[p] = prop[p][1]; -					prop[p] = prop[p][0]; +					// 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; +						} +					}  				}  			} @@ -5428,32 +8415,40 @@ jQuery.fn.extend({  				this.style.overflow = "hidden";  			} -			opt.curAnim = jQuery.extend({}, prop); +			for ( p in prop ) { +				e = new jQuery.fx( this, opt, p ); +				val = prop[ p ]; -			jQuery.each( prop, function( name, val ) { -				var e = new jQuery.fx( self, opt, name ); +				if ( rfxtypes.test( val ) ) { -				if ( rfxtypes.test(val) ) { -					e[ val === "toggle" ? hidden ? "show" : "hide" : val ]( prop ); +					// 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 { -					var parts = rfxnum.exec(val), -						start = e.cur(true) || 0; +					parts = rfxnum.exec( val ); +					start = e.cur();  					if ( parts ) { -						var end = parseFloat( parts[2] ), -							unit = parts[3] || "px"; +						end = parseFloat( parts[2] ); +						unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );  						// We need to compute starting value  						if ( unit !== "px" ) { -							self.style[ name ] = (end || 1) + unit; -							start = ((end || 1) / e.cur(true)) * start; -							self.style[ name ] = start + unit; +							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; +							end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;  						}  						e.custom( start, end, unit ); @@ -5462,78 +8457,144 @@ jQuery.fn.extend({  						e.custom( start, val, "" );  					}  				} -			}); +			}  			// For JS strict compliance  			return true; -		}); -	}, +		} -	stop: function( clearQueue, gotoEnd ) { -		var timers = jQuery.timers; +		return optall.queue === false ? +			this.each( doAnimation ) : +			this.queue( optall.queue, doAnimation ); +	}, -		if ( clearQueue ) { -			this.queue([]); +	stop: function( type, clearQueue, gotoEnd ) { +		if ( typeof type !== "string" ) { +			gotoEnd = clearQueue; +			clearQueue = type; +			type = undefined; +		} +		if ( clearQueue && type !== false ) { +			this.queue( type || "fx", [] );  		} -		this.each(function() { -			// go in reverse order so anything added to the queue during the loop is ignored -			for ( var i = timers.length - 1; i >= 0; i-- ) { -				if ( timers[i].elem === this ) { -					if (gotoEnd) { -						// force the next step to be the last -						timers[i](true); -					} +		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 ); +			} -					timers.splice(i, 1); +			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 );  			} -		}); -		// start the next in the queue if the last step wasn't forced -		if ( !gotoEnd ) { -			this.dequeue(); -		} +			for ( index = timers.length; index--; ) { +				if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { +					if ( gotoEnd ) { -		return this; +						// 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), +	slideDown: genFx( "show", 1 ), +	slideUp: genFx( "hide", 1 ), +	slideToggle: genFx( "toggle", 1 ),  	fadeIn: { opacity: "show" }, -	fadeOut: { opacity: "hide" } +	fadeOut: { opacity: "hide" }, +	fadeToggle: { opacity: "toggle" }  }, function( name, props ) { -	jQuery.fn[ name ] = function( speed, callback ) { -		return this.animate( props, speed, callback ); +	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" ? speed : { +		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 +			easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing  		};  		opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : -			jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default; +			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() { -			if ( opt.queue !== false ) { -				jQuery(this).dequeue(); -			} + +		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; @@ -5544,7 +8605,7 @@ jQuery.extend({  			return firstNum + diff * p;  		},  		swing: function( p, n, firstNum, diff ) { -			return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum; +			return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;  		}  	}, @@ -5555,9 +8616,7 @@ jQuery.extend({  		this.elem = elem;  		this.prop = prop; -		if ( !options.orig ) { -			options.orig = {}; -		} +		options.orig = options.orig || {};  	}  }); @@ -5569,55 +8628,67 @@ jQuery.fx.prototype = {  			this.options.step.call( this.elem, this.now, this );  		} -		(jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this ); - -		// Set display property to block for height/width animations -		if ( ( this.prop === "height" || this.prop === "width" ) && this.elem.style ) { -			this.elem.style.display = "block"; -		} +		( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );  	},  	// Get the current size -	cur: function( force ) { -		if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) { +	cur: function() { +		if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {  			return this.elem[ this.prop ];  		} -		var r = parseFloat(jQuery.css(this.elem, this.prop, force)); -		return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0; +		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 ) { -		this.startTime = now(); -		this.start = from; +		var self = this, +			fx = jQuery.fx; + +		this.startTime = fxNow || createFxNow();  		this.end = to; -		this.unit = unit || this.unit || "px"; -		this.now = this.start; +		this.now = this.start = from;  		this.pos = this.state = 0; +		this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" ); -		var self = this;  		function t( gotoEnd ) { -			return self.step(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(jQuery.fx.tick, 13); +			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] = jQuery.style( this.elem, this.prop ); +		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 -		this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); +		// 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(); @@ -5626,72 +8697,84 @@ jQuery.fx.prototype = {  	// 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.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); +		this.custom( this.cur(), 0 );  	},  	// Each step of an animation  	step: function( gotoEnd ) { -		var t = now(), done = true; +		var p, n, complete, +			t = fxNow || createFxNow(), +			done = true, +			elem = this.elem, +			options = this.options; -		if ( gotoEnd || t >= this.options.duration + this.startTime ) { +		if ( gotoEnd || t >= options.duration + this.startTime ) {  			this.now = this.end;  			this.pos = this.state = 1;  			this.update(); -			this.options.curAnim[ this.prop ] = true; +			options.animatedProperties[ this.prop ] = true; -			for ( var i in this.options.curAnim ) { -				if ( this.options.curAnim[i] !== true ) { +			for ( p in options.animatedProperties ) { +				if ( options.animatedProperties[ p ] !== true ) {  					done = false;  				}  			}  			if ( done ) { -				if ( this.options.display != null ) { -					// Reset the overflow -					this.elem.style.overflow = this.options.overflow; +				// Reset the overflow +				if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) { -					// Reset the display -					var old = jQuery.data(this.elem, "olddisplay"); -					this.elem.style.display = old ? old : this.options.display; - -					if ( jQuery.css(this.elem, "display") === "none" ) { -						this.elem.style.display = "block"; -					} +					jQuery.each( [ "", "X", "Y" ], function( index, value ) { +						elem.style[ "overflow" + value ] = options.overflow[ index ]; +					});  				}  				// Hide the element if the "hide" operation was done -				if ( this.options.hide ) { -					jQuery(this.elem).hide(); +				if ( options.hide ) { +					jQuery( elem ).hide();  				}  				// Reset the properties, if the item has been hidden or shown -				if ( this.options.hide || this.options.show ) { -					for ( var p in this.options.curAnim ) { -						jQuery.style(this.elem, p, this.options.orig[p]); +				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 -				this.options.complete.call( this.elem ); +				// 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 { -			var n = t - this.startTime; -			this.state = n / this.options.duration; - -			// Perform the easing function, defaults to swing -			var specialEasing = this.options.specialEasing && this.options.specialEasing[this.prop]; -			var defaultEasing = this.options.easing || (jQuery.easing.swing ? "swing" : "linear"); -			this.pos = jQuery.easing[specialEasing || defaultEasing](this.state, n, 0, 1, this.options.duration); -			this.now = this.start + ((this.end - this.start) * this.pos); +			// 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();  		} @@ -5702,11 +8785,15 @@ jQuery.fx.prototype = {  jQuery.extend( jQuery.fx, {  	tick: function() { -		var timers = jQuery.timers; +		var timer, +			timers = jQuery.timers, +			i = 0; -		for ( var i = 0; i < timers.length; i++ ) { -			if ( !timers[i]() ) { -				timers.splice(i--, 1); +		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 );  			}  		} @@ -5714,27 +8801,29 @@ jQuery.extend( jQuery.fx, {  			jQuery.fx.stop();  		}  	}, -		 + +	interval: 13, +  	stop: function() {  		clearInterval( timerId );  		timerId = null;  	}, -	 +  	speeds: {  		slow: 600, - 		fast: 200, - 		// Default speed - 		_default: 400 +		fast: 200, +		// Default speed +		_default: 400  	},  	step: {  		opacity: function( fx ) { -			jQuery.style(fx.elem, "opacity", fx.now); +			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; +				fx.elem.style[ fx.prop ] = fx.now + fx.unit;  			} else {  				fx.elem[ fx.prop ] = fx.now;  			} @@ -5742,6 +8831,14 @@ jQuery.extend( jQuery.fx, {  	}  }); +// 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 ) { @@ -5750,20 +8847,62 @@ if ( jQuery.expr && jQuery.expr.filters ) {  	};  } -function genFx( type, num ) { -	var obj = {}; +// Try to restore the default display value of an element +function defaultDisplay( nodeName ) { -	jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() { -		obj[ this ] = type; -	}); +	if ( !elemdisplay[ nodeName ] ) { -	return obj; +		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]; +		var elem = this[0], box; -		if ( options ) {  +		if ( options ) {  			return this.each(function( i ) {  				jQuery.offset.setOffset( this, options, i );  			}); @@ -5777,10 +8916,26 @@ if ( "getBoundingClientRect" in document.documentElement ) {  			return jQuery.offset.bodyOffset( elem );  		} -		var box = elem.getBoundingClientRect(), doc = elem.ownerDocument, body = doc.body, docElem = doc.documentElement, -			clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0, -			top  = box.top  + (self.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop ) - clientTop, -			left = box.left + (self.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft; +		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 };  	}; @@ -5789,7 +8944,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {  	jQuery.fn.offset = function( options ) {  		var elem = this[0]; -		if ( options ) {  +		if ( options ) {  			return this.each(function( i ) {  				jQuery.offset.setOffset( this, options, i );  			}); @@ -5803,16 +8958,19 @@ if ( "getBoundingClientRect" in document.documentElement ) {  			return jQuery.offset.bodyOffset( elem );  		} -		jQuery.offset.initialize(); - -		var offsetParent = elem.offsetParent, prevOffsetParent = elem, -			doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement, -			body = doc.body, defaultView = doc.defaultView, +		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; +			top = elem.offsetTop, +			left = elem.offsetLeft;  		while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) { -			if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) { +			if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {  				break;  			} @@ -5824,15 +8982,16 @@ if ( "getBoundingClientRect" in document.documentElement ) {  				top  += elem.offsetTop;  				left += elem.offsetLeft; -				if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.nodeName)) ) { +				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; +				prevOffsetParent = offsetParent; +				offsetParent = elem.offsetParent;  			} -			if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) { +			if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {  				top  += parseFloat( computedStyle.borderTopWidth  ) || 0;  				left += parseFloat( computedStyle.borderLeftWidth ) || 0;  			} @@ -5845,7 +9004,7 @@ if ( "getBoundingClientRect" in document.documentElement ) {  			left += body.offsetLeft;  		} -		if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) { +		if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {  			top  += Math.max( docElem.scrollTop, body.scrollTop );  			left += Math.max( docElem.scrollLeft, body.scrollLeft );  		} @@ -5855,68 +9014,55 @@ if ( "getBoundingClientRect" in document.documentElement ) {  }  jQuery.offset = { -	initialize: function() { -		var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.curCSS(body, "marginTop", true) ) || 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 ); -		body = container = innerDiv = checkDiv = table = td = null; -		jQuery.offset.initialize = jQuery.noop; -	},  	bodyOffset: function( body ) { -		var top = body.offsetTop, left = body.offsetLeft; - -		jQuery.offset.initialize(); +		var top = body.offsetTop, +			left = body.offsetLeft; -		if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) { -			top  += parseFloat( jQuery.curCSS(body, "marginTop",  true) ) || 0; -			left += parseFloat( jQuery.curCSS(body, "marginLeft", true) ) || 0; +		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 ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) { +		if ( position === "static" ) {  			elem.style.position = "relative";  		} -		var curElem   = jQuery( elem ), + +		var curElem = jQuery( elem ),  			curOffset = curElem.offset(), -			curTop    = parseInt( jQuery.curCSS( elem, "top",  true ), 10 ) || 0, -			curLeft   = parseInt( jQuery.curCSS( elem, "left", true ), 10 ) || 0; +			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 );  		} -		var props = { -			top:  (options.top  - curOffset.top)  + curTop, -			left: (options.left - curOffset.left) + curLeft -		}; -		 +		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 { @@ -5927,6 +9073,7 @@ jQuery.offset = {  jQuery.fn.extend({ +  	position: function() {  		if ( !this[0] ) {  			return null; @@ -5939,17 +9086,17 @@ jQuery.fn.extend({  		// Get correct offsets  		offset       = this.offset(), -		parentOffset = /^body|html$/i.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.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.curCSS(elem, "marginTop",  true) ) || 0; -		offset.left -= parseFloat( jQuery.curCSS(elem, "marginLeft", true) ) || 0; +		offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0; +		offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;  		// Add offsetParent borders -		parentOffset.top  += parseFloat( jQuery.curCSS(offsetParent[0], "borderTopWidth",  true) ) || 0; -		parentOffset.left += parseFloat( jQuery.curCSS(offsetParent[0], "borderLeftWidth", true) ) || 0; +		parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0; +		parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;  		// Subtract the two offsets  		return { @@ -5961,7 +9108,7 @@ jQuery.fn.extend({  	offsetParent: function() {  		return this.map(function() {  			var offsetParent = this.offsetParent || document.body; -			while ( offsetParent && (!/^body|html$/i.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) { +			while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {  				offsetParent = offsetParent.offsetParent;  			}  			return offsetParent; @@ -5974,29 +9121,16 @@ jQuery.fn.extend({  jQuery.each( ["Left", "Top"], function( i, name ) {  	var method = "scroll" + name; -	jQuery.fn[ method ] = function(val) { -		var elem = this[0], win; -		 -		if ( !elem ) { -			return null; -		} +	jQuery.fn[ method ] = function( val ) { +		var elem, win; -		if ( val !== undefined ) { -			// Set the scroll offset -			return this.each(function() { -				win = getWindow( this ); +		if ( val === undefined ) { +			elem = this[ 0 ]; -				if ( win ) { -					win.scrollTo( -						!i ? val : jQuery(win).scrollLeft(), -						 i ? val : jQuery(win).scrollTop() -					); +			if ( !elem ) { +				return null; +			} -				} else { -					this[ method ] = val; -				} -			}); -		} else {  			win = getWindow( elem );  			// Return the scroll offset @@ -6005,32 +9139,57 @@ jQuery.each( ["Left", "Top"], function( i, name ) {  					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 ("scrollTo" in elem && elem.document) ? +	return jQuery.isWindow( elem ) ?  		elem :  		elem.nodeType === 9 ?  			elem.defaultView || elem.parentWindow :  			false;  } -// Create innerHeight, innerWidth, outerHeight and outerWidth methods + + + + +// 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() { -		return this[0] ? -			jQuery.css( this[0], type, false, "padding" ) : +	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 ) { -		return this[0] ? -			jQuery.css( this[0], type, false, margin ? "margin" : "border" ) : +	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;  	}; @@ -6040,7 +9199,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {  		if ( !elem ) {  			return size == null ? null : this;  		} -		 +  		if ( jQuery.isFunction( size ) ) {  			return this.each(function( i ) {  				var self = jQuery( this ); @@ -6048,31 +9207,60 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {  			});  		} -		return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window? +		if ( jQuery.isWindow( elem ) ) {  			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode -			elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] || -			elem.document.body[ "client" + name ] : - -			// Get document width or height -			(elem.nodeType === 9) ? // is it a document -				// Either scroll[Width/Height] or offset[Width/Height], whichever is greater -				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 -				size === undefined ? -					// Get width or height on the element -					jQuery.css( elem, type ) : - -					// Set the width or height on the element (default to pixels if value is unitless) -					this.css( type, typeof size === "string" ? size : size + "px" ); +			// 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; -})(window);
\ No newline at end of file +// 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 );
\ No newline at end of file diff --git a/debug_toolbar/media/debug_toolbar/js/toolbar.min.js b/debug_toolbar/media/debug_toolbar/js/toolbar.min.js index bee28a7..1e19f6a 100644 --- a/debug_toolbar/media/debug_toolbar/js/toolbar.min.js +++ b/debug_toolbar/media/debug_toolbar/js/toolbar.min.js @@ -1,23 +1,23 @@ -/* - * jQuery JavaScript Library v1.4.1 +/*! + * jQuery JavaScript Library v1.7.1   * http://jquery.com/   * - * Copyright 2010, John Resig + * 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 2010, The Dojo Foundation + * Copyright 2011, The Dojo Foundation   * Released under the MIT, BSD, and GPL Licenses.   * - * Date: Mon Jan 25 19:43:33 2010 -0500 + * Date: Mon Nov 21 21:11:03 2011 -0500   */ -(function(aI,B){var a=function(aU,aV){return new a.fn.init(aU,aV)},n=aI.jQuery,Q=aI.$,aa=aI.document,W,O=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aS=/^.[^:#\[\.,]*$/,au=/\S/,L=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,e=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,b=navigator.userAgent,u,I=false,ac=[],aC,aq=Object.prototype.toString,an=Object.prototype.hasOwnProperty,g=Array.prototype.push,D=Array.prototype.slice,s=Array.prototype.indexOf;a.fn=a.prototype={init:function(aU,aX){var aW,aY,aV,aZ;if(!aU){return this}if(aU.nodeType){this.context=this[0]=aU;this.length=1;return this}if(typeof aU==="string"){aW=O.exec(aU);if(aW&&(aW[1]||!aX)){if(aW[1]){aZ=(aX?aX.ownerDocument||aX:aa);aV=e.exec(aU);if(aV){if(a.isPlainObject(aX)){aU=[aa.createElement(aV[1])];a.fn.attr.call(aU,aX,true)}else{aU=[aZ.createElement(aV[1])]}}else{aV=H([aW[1]],[aZ]);aU=(aV.cacheable?aV.fragment.cloneNode(true):aV.fragment).childNodes}}else{aY=aa.getElementById(aW[2]);if(aY){if(aY.id!==aW[2]){return W.find(aU)}this.length=1;this[0]=aY}this.context=aa;this.selector=aU;return this}}else{if(!aX&&/^\w+$/.test(aU)){this.selector=aU;this.context=aa;aU=aa.getElementsByTagName(aU)}else{if(!aX||aX.jquery){return(aX||W).find(aU)}else{return a(aX).find(aU)}}}}else{if(a.isFunction(aU)){return W.ready(aU)}}if(aU.selector!==B){this.selector=aU.selector;this.context=aU.context}return a.isArray(aU)?this.setArray(aU):a.makeArray(aU,this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(aU){return aU==null?this.toArray():(aU<0?this.slice(aU)[0]:this[aU])},pushStack:function(aV,aX,aU){var aW=a(aV||null);aW.prevObject=this;aW.context=this.context;if(aX==="find"){aW.selector=this.selector+(this.selector?" ":"")+aU}else{if(aX){aW.selector=this.selector+"."+aX+"("+aU+")"}}return aW},setArray:function(aU){this.length=0;g.apply(this,aU);return this},each:function(aV,aU){return a.each(this,aV,aU)},ready:function(aU){a.bindReady();if(a.isReady){aU.call(aa,a)}else{if(ac){ac.push(aU)}}return this},eq:function(aU){return aU===-1?this.slice(aU):this.slice(aU,+aU+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(aU){return this.pushStack(a.map(this,function(aW,aV){return aU.call(aW,aV,aW)}))},end:function(){return this.prevObject||a(null)},push:g,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var aZ=arguments[0]||{},aY=1,aX=arguments.length,a1=false,a2,aW,aU,aV;if(typeof aZ==="boolean"){a1=aZ;aZ=arguments[1]||{};aY=2}if(typeof aZ!=="object"&&!a.isFunction(aZ)){aZ={}}if(aX===aY){aZ=this;--aY}for(;aY<aX;aY++){if((a2=arguments[aY])!=null){for(aW in a2){aU=aZ[aW];aV=a2[aW];if(aZ===aV){continue}if(a1&&aV&&(a.isPlainObject(aV)||a.isArray(aV))){var a0=aU&&(a.isPlainObject(aU)||a.isArray(aU))?aU:a.isArray(aV)?[]:{};aZ[aW]=a.extend(a1,a0,aV)}else{if(aV!==B){aZ[aW]=aV}}}}}return aZ};a.extend({noConflict:function(aU){aI.$=Q;if(aU){aI.jQuery=n}return a},isReady:false,ready:function(){if(!a.isReady){if(!aa.body){return setTimeout(a.ready,13)}a.isReady=true;if(ac){var aV,aU=0;while((aV=ac[aU++])){aV.call(aa,a)}ac=null}if(a.fn.triggerHandler){a(aa).triggerHandler("ready")}}},bindReady:function(){if(I){return}I=true;if(aa.readyState==="complete"){return a.ready()}if(aa.addEventListener){aa.addEventListener("DOMContentLoaded",aC,false);aI.addEventListener("load",a.ready,false)}else{if(aa.attachEvent){aa.attachEvent("onreadystatechange",aC);aI.attachEvent("onload",a.ready);var aU=false;try{aU=aI.frameElement==null}catch(aV){}if(aa.documentElement.doScroll&&aU){w()}}}},isFunction:function(aU){return aq.call(aU)==="[object Function]"},isArray:function(aU){return aq.call(aU)==="[object Array]"},isPlainObject:function(aV){if(!aV||aq.call(aV)!=="[object Object]"||aV.nodeType||aV.setInterval){return false}if(aV.constructor&&!an.call(aV,"constructor")&&!an.call(aV.constructor.prototype,"isPrototypeOf")){return false}var aU;for(aU in aV){}return aU===B||an.call(aV,aU)},isEmptyObject:function(aV){for(var aU in aV){return false}return true},error:function(aU){throw aU},parseJSON:function(aU){if(typeof aU!=="string"||!aU){return null}if(/^[\],:{}\s]*$/.test(aU.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aI.JSON&&aI.JSON.parse?aI.JSON.parse(aU):(new Function("return "+aU))()}else{a.error("Invalid JSON: "+aU)}},noop:function(){},globalEval:function(aW){if(aW&&au.test(aW)){var aV=aa.getElementsByTagName("head")[0]||aa.documentElement,aU=aa.createElement("script");aU.type="text/javascript";if(a.support.scriptEval){aU.appendChild(aa.createTextNode(aW))}else{aU.text=aW}aV.insertBefore(aU,aV.firstChild);aV.removeChild(aU)}},nodeName:function(aV,aU){return aV.nodeName&&aV.nodeName.toUpperCase()===aU.toUpperCase()},each:function(aX,a1,aW){var aV,aY=0,aZ=aX.length,aU=aZ===B||a.isFunction(aX);if(aW){if(aU){for(aV in aX){if(a1.apply(aX[aV],aW)===false){break}}}else{for(;aY<aZ;){if(a1.apply(aX[aY++],aW)===false){break}}}}else{if(aU){for(aV in aX){if(a1.call(aX[aV],aV,aX[aV])===false){break}}}else{for(var a0=aX[0];aY<aZ&&a1.call(a0,aY,a0)!==false;a0=aX[++aY]){}}}return aX},trim:function(aU){return(aU||"").replace(L,"")},makeArray:function(aW,aV){var aU=aV||[];if(aW!=null){if(aW.length==null||typeof aW==="string"||a.isFunction(aW)||(typeof aW!=="function"&&aW.setInterval)){g.call(aU,aW)}else{a.merge(aU,aW)}}return aU},inArray:function(aW,aX){if(aX.indexOf){return aX.indexOf(aW)}for(var aU=0,aV=aX.length;aU<aV;aU++){if(aX[aU]===aW){return aU}}return -1},merge:function(aY,aW){var aX=aY.length,aV=0;if(typeof aW.length==="number"){for(var aU=aW.length;aV<aU;aV++){aY[aX++]=aW[aV]}}else{while(aW[aV]!==B){aY[aX++]=aW[aV++]}}aY.length=aX;return aY},grep:function(aV,aZ,aU){var aW=[];for(var aX=0,aY=aV.length;aX<aY;aX++){if(!aU!==!aZ(aV[aX],aX)){aW.push(aV[aX])}}return aW},map:function(aV,a0,aU){var aW=[],aZ;for(var aX=0,aY=aV.length;aX<aY;aX++){aZ=a0(aV[aX],aX,aU);if(aZ!=null){aW[aW.length]=aZ}}return aW.concat.apply([],aW)},guid:1,proxy:function(aW,aV,aU){if(arguments.length===2){if(typeof aV==="string"){aU=aW;aW=aU[aV];aV=B}else{if(aV&&!a.isFunction(aV)){aU=aV;aV=B}}}if(!aV&&aW){aV=function(){return aW.apply(aU||this,arguments)}}if(aW){aV.guid=aW.guid=aW.guid||aV.guid||a.guid++}return aV},uaMatch:function(aV){aV=aV.toLowerCase();var aU=/(webkit)[ \/]([\w.]+)/.exec(aV)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(aV)||/(msie) ([\w.]+)/.exec(aV)||!/compatible/.test(aV)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(aV)||[];return{browser:aU[1]||"",version:aU[2]||"0"}},browser:{}});u=a.uaMatch(b);if(u.browser){a.browser[u.browser]=true;a.browser.version=u.version}if(a.browser.webkit){a.browser.safari=true}if(s){a.inArray=function(aU,aV){return s.call(aV,aU)}}W=a(aa);if(aa.addEventListener){aC=function(){aa.removeEventListener("DOMContentLoaded",aC,false);a.ready()}}else{if(aa.attachEvent){aC=function(){if(aa.readyState==="complete"){aa.detachEvent("onreadystatechange",aC);a.ready()}}}}function w(){if(a.isReady){return}try{aa.documentElement.doScroll("left")}catch(aU){setTimeout(w,1);return}a.ready()}function aR(aU,aV){if(aV.src){a.ajax({url:aV.src,async:false,dataType:"script"})}else{a.globalEval(aV.text||aV.textContent||aV.innerHTML||"")}if(aV.parentNode){aV.parentNode.removeChild(aV)}}function al(aU,a2,a0,aW,aZ,a1){var aV=aU.length;if(typeof a2==="object"){for(var aX in a2){al(aU,aX,a2[aX],aW,aZ,a0)}return aU}if(a0!==B){aW=!a1&&aW&&a.isFunction(a0);for(var aY=0;aY<aV;aY++){aZ(aU[aY],a2,aW?a0.call(aU[aY],aY,aZ(aU[aY],a2)):a0,a1)}return aU}return aV?aZ(aU[0],a2):null}function aL(){return(new Date).getTime()}(function(){a.support={};var a0=aa.documentElement,aZ=aa.createElement("script"),aU=aa.createElement("div"),aV="script"+aL();aU.style.display="none";aU.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var a2=aU.getElementsByTagName("*"),a1=aU.getElementsByTagName("a")[0];if(!a2||!a2.length||!a1){return}a.support={leadingWhitespace:aU.firstChild.nodeType===3,tbody:!aU.getElementsByTagName("tbody").length,htmlSerialize:!!aU.getElementsByTagName("link").length,style:/red/.test(a1.getAttribute("style")),hrefNormalized:a1.getAttribute("href")==="/a",opacity:/^0.55$/.test(a1.style.opacity),cssFloat:!!a1.style.cssFloat,checkOn:aU.getElementsByTagName("input")[0].value==="on",optSelected:aa.createElement("select").appendChild(aa.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};aZ.type="text/javascript";try{aZ.appendChild(aa.createTextNode("window."+aV+"=1;"))}catch(aX){}a0.insertBefore(aZ,a0.firstChild);if(aI[aV]){a.support.scriptEval=true;delete aI[aV]}a0.removeChild(aZ);if(aU.attachEvent&&aU.fireEvent){aU.attachEvent("onclick",function a3(){a.support.noCloneEvent=false;aU.detachEvent("onclick",a3)});aU.cloneNode(true).fireEvent("onclick")}aU=aa.createElement("div");aU.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var aW=aa.createDocumentFragment();aW.appendChild(aU.firstChild);a.support.checkClone=aW.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var a4=aa.createElement("div");a4.style.width=a4.style.paddingLeft="1px";aa.body.appendChild(a4);a.boxModel=a.support.boxModel=a4.offsetWidth===2;aa.body.removeChild(a4).style.display="none";a4=null});var aY=function(a4){var a6=aa.createElement("div");a4="on"+a4;var a5=(a4 in a6);if(!a5){a6.setAttribute(a4,"return;");a5=typeof a6[a4]==="function"}a6=null;return a5};a.support.submitBubbles=aY("submit");a.support.changeBubbles=aY("change");a0=aZ=aU=a2=a1=null})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aE="jQuery"+aL(),aD=0,aP={};var K={};a.extend({cache:{},expando:aE,noData:{embed:true,object:true,applet:true},data:function(aW,aV,aY){if(aW.nodeName&&a.noData[aW.nodeName.toLowerCase()]){return}aW=aW==aI?aP:aW;var aZ=aW[aE],aU=a.cache,aX;if(!aV&&!aZ){return null}if(!aZ){aZ=++aD}if(typeof aV==="object"){aW[aE]=aZ;aX=aU[aZ]=a.extend(true,{},aV)}else{if(aU[aZ]){aX=aU[aZ]}else{if(typeof aY==="undefined"){aX=K}else{aX=aU[aZ]={}}}}if(aY!==B){aW[aE]=aZ;aX[aV]=aY}return typeof aV==="string"?aX[aV]:aX},removeData:function(aW,aV){if(aW.nodeName&&a.noData[aW.nodeName.toLowerCase()]){return}aW=aW==aI?aP:aW;var aZ=aW[aE],aU=a.cache,aX=aU[aZ];if(aV){if(aX){delete aX[aV];if(a.isEmptyObject(aX)){a.removeData(aW)}}}else{try{delete aW[aE]}catch(aY){if(aW.removeAttribute){aW.removeAttribute(aE)}}delete aU[aZ]}}});a.fn.extend({data:function(aU,aW){if(typeof aU==="undefined"&&this.length){return a.data(this[0])}else{if(typeof aU==="object"){return this.each(function(){a.data(this,aU)})}}var aX=aU.split(".");aX[1]=aX[1]?"."+aX[1]:"";if(aW===B){var aV=this.triggerHandler("getData"+aX[1]+"!",[aX[0]]);if(aV===B&&this.length){aV=a.data(this[0],aU)}return aV===B&&aX[1]?this.data(aX[0]):aV}else{return this.trigger("setData"+aX[1]+"!",[aX[0],aW]).each(function(){a.data(this,aU,aW)})}},removeData:function(aU){return this.each(function(){a.removeData(this,aU)})}});a.extend({queue:function(aV,aU,aX){if(!aV){return}aU=(aU||"fx")+"queue";var aW=a.data(aV,aU);if(!aX){return aW||[]}if(!aW||a.isArray(aX)){aW=a.data(aV,aU,a.makeArray(aX))}else{aW.push(aX)}return aW},dequeue:function(aX,aW){aW=aW||"fx";var aU=a.queue(aX,aW),aV=aU.shift();if(aV==="inprogress"){aV=aU.shift()}if(aV){if(aW==="fx"){aU.unshift("inprogress")}aV.call(aX,function(){a.dequeue(aX,aW)})}}});a.fn.extend({queue:function(aU,aV){if(typeof aU!=="string"){aV=aU;aU="fx"}if(aV===B){return a.queue(this[0],aU)}return this.each(function(aX,aY){var aW=a.queue(this,aU,aV);if(aU==="fx"&&aW[0]!=="inprogress"){a.dequeue(this,aU)}})},dequeue:function(aU){return this.each(function(){a.dequeue(this,aU)})},delay:function(aV,aU){aV=a.fx?a.fx.speeds[aV]||aV:aV;aU=aU||"fx";return this.queue(aU,function(){var aW=this;setTimeout(function(){a.dequeue(aW,aU)},aV)})},clearQueue:function(aU){return this.queue(aU||"fx",[])}});var am=/[\n\t]/g,R=/\s+/,at=/\r/g,aM=/href|src|style/,d=/(button|input)/i,y=/(button|input|object|select|textarea)/i,j=/^(a|area)$/i,G=/radio|checkbox/;a.fn.extend({attr:function(aU,aV){return al(this,aU,aV,true,a.attr)},removeAttr:function(aU,aV){return this.each(function(){a.attr(this,aU,"");if(this.nodeType===1){this.removeAttribute(aU)}})},addClass:function(aZ){if(a.isFunction(aZ)){return this.each(function(a3){var a2=a(this);a2.addClass(aZ.call(this,a3,a2.attr("class")))})}if(aZ&&typeof aZ==="string"){var a0=(aZ||"").split(R);for(var aW=0,aV=this.length;aW<aV;aW++){var aY=this[aW];if(aY.nodeType===1){if(!aY.className){aY.className=aZ}else{var aX=" "+aY.className+" ";for(var a1=0,aU=a0.length;a1<aU;a1++){if(aX.indexOf(" "+a0[a1]+" ")<0){aY.className+=" "+a0[a1]}}}}}}return this},removeClass:function(aZ){if(a.isFunction(aZ)){return this.each(function(a3){var a2=a(this);a2.removeClass(aZ.call(this,a3,a2.attr("class")))})}if((aZ&&typeof aZ==="string")||aZ===B){var a0=(aZ||"").split(R);for(var aW=0,aV=this.length;aW<aV;aW++){var aY=this[aW];if(aY.nodeType===1&&aY.className){if(aZ){var aX=(" "+aY.className+" ").replace(am," ");for(var a1=0,aU=a0.length;a1<aU;a1++){aX=aX.replace(" "+a0[a1]+" "," ")}aY.className=aX.substring(1,aX.length-1)}else{aY.className=""}}}}return this},toggleClass:function(aX,aV){var aW=typeof aX,aU=typeof aV==="boolean";if(a.isFunction(aX)){return this.each(function(aZ){var aY=a(this);aY.toggleClass(aX.call(this,aZ,aY.attr("class"),aV),aV)})}return this.each(function(){if(aW==="string"){var a0,aZ=0,aY=a(this),a1=aV,a2=aX.split(R);while((a0=a2[aZ++])){a1=aU?a1:!aY.hasClass(a0);aY[a1?"addClass":"removeClass"](a0)}}else{if(aW==="undefined"||aW==="boolean"){if(this.className){a.data(this,"__className__",this.className)}this.className=this.className||aX===false?"":a.data(this,"__className__")||""}}})},hasClass:function(aU){var aX=" "+aU+" ";for(var aW=0,aV=this.length;aW<aV;aW++){if((" "+this[aW].className+" ").replace(am," ").indexOf(aX)>-1){return true}}return false},val:function(a1){if(a1===B){var aV=this[0];if(aV){if(a.nodeName(aV,"option")){return(aV.attributes.value||{}).specified?aV.value:aV.text}if(a.nodeName(aV,"select")){var aZ=aV.selectedIndex,a2=[],a3=aV.options,aY=aV.type==="select-one";if(aZ<0){return null}for(var aW=aY?aZ:0,a0=aY?aZ+1:a3.length;aW<a0;aW++){var aX=a3[aW];if(aX.selected){a1=a(aX).val();if(aY){return a1}a2.push(a1)}}return a2}if(G.test(aV.type)&&!a.support.checkOn){return aV.getAttribute("value")===null?"on":aV.value}return(aV.value||"").replace(at,"")}return B}var aU=a.isFunction(a1);return this.each(function(a6){var a5=a(this),a7=a1;if(this.nodeType!==1){return}if(aU){a7=a1.call(this,a6,a5.val())}if(typeof a7==="number"){a7+=""}if(a.isArray(a7)&&G.test(this.type)){this.checked=a.inArray(a5.val(),a7)>=0}else{if(a.nodeName(this,"select")){var a4=a.makeArray(a7);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),a4)>=0});if(!a4.length){this.selectedIndex=-1}}else{this.value=a7}}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(aV,aU,a0,a3){if(!aV||aV.nodeType===3||aV.nodeType===8){return B}if(a3&&aU in a.attrFn){return a(aV)[aU](a0)}var aW=aV.nodeType!==1||!a.isXMLDoc(aV),aZ=a0!==B;aU=aW&&a.props[aU]||aU;if(aV.nodeType===1){var aY=aM.test(aU);if(aU==="selected"&&!a.support.optSelected){var a1=aV.parentNode;if(a1){a1.selectedIndex;if(a1.parentNode){a1.parentNode.selectedIndex}}}if(aU in aV&&aW&&!aY){if(aZ){if(aU==="type"&&d.test(aV.nodeName)&&aV.parentNode){a.error("type property can't be changed")}aV[aU]=a0}if(a.nodeName(aV,"form")&&aV.getAttributeNode(aU)){return aV.getAttributeNode(aU).nodeValue}if(aU==="tabIndex"){var a2=aV.getAttributeNode("tabIndex");return a2&&a2.specified?a2.value:y.test(aV.nodeName)||j.test(aV.nodeName)&&aV.href?0:B}return aV[aU]}if(!a.support.style&&aW&&aU==="style"){if(aZ){aV.style.cssText=""+a0}return aV.style.cssText}if(aZ){aV.setAttribute(aU,""+a0)}var aX=!a.support.hrefNormalized&&aW&&aY?aV.getAttribute(aU,2):aV.getAttribute(aU);return aX===null?B:aX}return a.style(aV,aU,a0)}});var z=function(aU){return aU.replace(/[^\w\s\.\|`]/g,function(aV){return"\\"+aV})};a.event={add:function(aW,a1,a6,aY){if(aW.nodeType===3||aW.nodeType===8){return}if(aW.setInterval&&(aW!==aI&&!aW.frameElement)){aW=aI}if(!a6.guid){a6.guid=a.guid++}if(aY!==B){var a4=a6;a6=a.proxy(a4);a6.data=aY}var a7=a.data(aW,"events")||a.data(aW,"events",{}),a0=a.data(aW,"handle"),aZ;if(!a0){aZ=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(aZ.elem,arguments):B};a0=a.data(aW,"handle",aZ)}if(!a0){return}a0.elem=aW;a1=a1.split(/\s+/);var a3,aX=0;while((a3=a1[aX++])){var aU=a3.split(".");a3=aU.shift();if(aX>1){a6=a.proxy(a6);if(aY!==B){a6.data=aY}}a6.type=aU.slice(0).sort().join(".");var aV=a7[a3],a2=this.special[a3]||{};if(!aV){aV=a7[a3]={};if(!a2.setup||a2.setup.call(aW,aY,aU,a6)===false){if(aW.addEventListener){aW.addEventListener(a3,a0,false)}else{if(aW.attachEvent){aW.attachEvent("on"+a3,a0)}}}}if(a2.add){var a5=a2.add.call(aW,a6,aY,aU,aV);if(a5&&a.isFunction(a5)){a5.guid=a5.guid||a6.guid;a5.data=a5.data||a6.data;a5.type=a5.type||a6.type;a6=a5}}aV[a6.guid]=a6;this.global[a3]=true}aW=null},global:{},remove:function(aW,a0,a6){if(aW.nodeType===3||aW.nodeType===8){return}var a7=a.data(aW,"events"),a1,a3,a4;if(a7){if(a0===B||(typeof a0==="string"&&a0.charAt(0)===".")){for(a3 in a7){this.remove(aW,a3+(a0||""))}}else{if(a0.type){a6=a0.handler;a0=a0.type}a0=a0.split(/\s+/);var aY=0;while((a3=a0[aY++])){var aU=a3.split(".");a3=aU.shift();var a5=!aU.length,aV=a.map(aU.slice(0).sort(),z),aX=new RegExp("(^|\\.)"+aV.join("\\.(?:.*\\.)?")+"(\\.|$)"),a2=this.special[a3]||{};if(a7[a3]){if(a6){a4=a7[a3][a6.guid];delete a7[a3][a6.guid]}else{for(var aZ in a7[a3]){if(a5||aX.test(a7[a3][aZ].type)){delete a7[a3][aZ]}}}if(a2.remove){a2.remove.call(aW,aU,a4)}for(a1 in a7[a3]){break}if(!a1){if(!a2.teardown||a2.teardown.call(aW,aU)===false){if(aW.removeEventListener){aW.removeEventListener(a3,a.data(aW,"handle"),false)}else{if(aW.detachEvent){aW.detachEvent("on"+a3,a.data(aW,"handle"))}}}a1=null;delete a7[a3]}}}}for(a1 in a7){break}if(!a1){var aZ=a.data(aW,"handle");if(aZ){aZ.elem=null}a.removeData(aW,"events");a.removeData(aW,"handle")}}},trigger:function(aU,aY,aW){var a2=aU.type||aU,aX=arguments[3];if(!aX){aU=typeof aU==="object"?aU[aE]?aU:a.extend(a.Event(a2),aU):a.Event(a2);if(a2.indexOf("!")>=0){aU.type=a2=a2.slice(0,-1);aU.exclusive=true}if(!aW){aU.stopPropagation();if(this.global[a2]){a.each(a.cache,function(){if(this.events&&this.events[a2]){a.event.trigger(aU,aY,this.handle.elem)}})}}if(!aW||aW.nodeType===3||aW.nodeType===8){return B}aU.result=B;aU.target=aW;aY=a.makeArray(aY);aY.unshift(aU)}aU.currentTarget=aW;var aZ=a.data(aW,"handle");if(aZ){aZ.apply(aW,aY)}var a3=aW.parentNode||aW.ownerDocument;try{if(!(aW&&aW.nodeName&&a.noData[aW.nodeName.toLowerCase()])){if(aW["on"+a2]&&aW["on"+a2].apply(aW,aY)===false){aU.result=false}}}catch(a1){}if(!aU.isPropagationStopped()&&a3){a.event.trigger(aU,aY,a3,true)}else{if(!aU.isDefaultPrevented()){var a0=aU.target,aV,a4=a.nodeName(a0,"a")&&a2==="click";if(!a4&&!(a0&&a0.nodeName&&a.noData[a0.nodeName.toLowerCase()])){try{if(a0[a2]){aV=a0["on"+a2];if(aV){a0["on"+a2]=null}this.triggered=true;a0[a2]()}}catch(a1){}if(aV){a0["on"+a2]=aV}this.triggered=false}}}},handle:function(a0){var aZ,aU;a0=arguments[0]=a.event.fix(a0||aI.event);a0.currentTarget=this;var a1=a0.type.split(".");a0.type=a1.shift();aZ=!a1.length&&!a0.exclusive;var aY=new RegExp("(^|\\.)"+a1.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");aU=(a.data(this,"events")||{})[a0.type];for(var aW in aU){var aX=aU[aW];if(aZ||aY.test(aX.type)){a0.handler=aX;a0.data=aX.data;var aV=aX.apply(this,arguments);if(aV!==B){a0.result=aV;if(aV===false){a0.preventDefault();a0.stopPropagation()}}if(a0.isImmediatePropagationStopped()){break}}}return a0.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(aX){if(aX[aE]){return aX}var aV=aX;aX=a.Event(aV);for(var aW=this.props.length,aZ;aW;){aZ=this.props[--aW];aX[aZ]=aV[aZ]}if(!aX.target){aX.target=aX.srcElement||aa}if(aX.target.nodeType===3){aX.target=aX.target.parentNode}if(!aX.relatedTarget&&aX.fromElement){aX.relatedTarget=aX.fromElement===aX.target?aX.toElement:aX.fromElement}if(aX.pageX==null&&aX.clientX!=null){var aY=aa.documentElement,aU=aa.body;aX.pageX=aX.clientX+(aY&&aY.scrollLeft||aU&&aU.scrollLeft||0)-(aY&&aY.clientLeft||aU&&aU.clientLeft||0);aX.pageY=aX.clientY+(aY&&aY.scrollTop||aU&&aU.scrollTop||0)-(aY&&aY.clientTop||aU&&aU.clientTop||0)}if(!aX.which&&((aX.charCode||aX.charCode===0)?aX.charCode:aX.keyCode)){aX.which=aX.charCode||aX.keyCode}if(!aX.metaKey&&aX.ctrlKey){aX.metaKey=aX.ctrlKey}if(!aX.which&&aX.button!==B){aX.which=(aX.button&1?1:(aX.button&2?3:(aX.button&4?2:0)))}return aX},guid:100000000,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(aU,aX,aW,aV){a.extend(aU,aX||{});aU.guid+=aX.selector+aX.live;aX.liveProxy=aU;a.event.add(this,aX.live,U,aX)},remove:function(aW){if(aW.length){var aU=0,aV=new RegExp("(^|\\.)"+aW[0]+"(\\.|$)");a.each((a.data(this,"events").live||{}),function(){if(aV.test(this.type)){aU++}});if(aU<1){a.event.remove(this,aW[0],U)}}},special:{}},beforeunload:{setup:function(aW,aV,aU){if(this.setInterval){this.onbeforeunload=aU}return false},teardown:function(aV,aU){if(this.onbeforeunload===aU){this.onbeforeunload=null}}}}};a.Event=function(aU){if(!this.preventDefault){return new a.Event(aU)}if(aU&&aU.type){this.originalEvent=aU;this.type=aU.type}else{this.type=aU}this.timeStamp=aL();this[aE]=true};function aN(){return false}function f(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=f;var aU=this.originalEvent;if(!aU){return}if(aU.preventDefault){aU.preventDefault()}aU.returnValue=false},stopPropagation:function(){this.isPropagationStopped=f;var aU=this.originalEvent;if(!aU){return}if(aU.stopPropagation){aU.stopPropagation()}aU.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=f;this.stopPropagation()},isDefaultPrevented:aN,isPropagationStopped:aN,isImmediatePropagationStopped:aN};var P=function(aV){var aU=aV.relatedTarget;while(aU&&aU!==this){try{aU=aU.parentNode}catch(aW){break}}if(aU!==this){aV.type=aV.data;a.event.handle.apply(this,arguments)}},av=function(aU){aU.type=aU.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(aV,aU){a.event.special[aV]={setup:function(aW){a.event.add(this,aU,aW&&aW.selector?av:P,aV)},teardown:function(aW){a.event.remove(this,aU,aW&&aW.selector?av:P)}}});if(!a.support.submitBubbles){a.event.special.submit={setup:function(aW,aV,aU){if(this.nodeName.toLowerCase()!=="form"){a.event.add(this,"click.specialSubmit."+aU.guid,function(aZ){var aY=aZ.target,aX=aY.type;if((aX==="submit"||aX==="image")&&a(aY).closest("form").length){return ax("submit",this,arguments)}});a.event.add(this,"keypress.specialSubmit."+aU.guid,function(aZ){var aY=aZ.target,aX=aY.type;if((aX==="text"||aX==="password")&&a(aY).closest("form").length&&aZ.keyCode===13){return ax("submit",this,arguments)}})}else{return false}},remove:function(aV,aU){a.event.remove(this,"click.specialSubmit"+(aU?"."+aU.guid:""));a.event.remove(this,"keypress.specialSubmit"+(aU?"."+aU.guid:""))}}}if(!a.support.changeBubbles){var ao=/textarea|input|select/i;function i(aV){var aU=aV.type,aW=aV.value;if(aU==="radio"||aU==="checkbox"){aW=aV.checked}else{if(aU==="select-multiple"){aW=aV.selectedIndex>-1?a.map(aV.options,function(aX){return aX.selected}).join("-"):""}else{if(aV.nodeName.toLowerCase()==="select"){aW=aV.selectedIndex}}}return aW}function N(aW){var aU=aW.target,aV,aX;if(!ao.test(aU.nodeName)||aU.readOnly){return}aV=a.data(aU,"_change_data");aX=i(aU);if(aW.type!=="focusout"||aU.type!=="radio"){a.data(aU,"_change_data",aX)}if(aV===B||aX===aV){return}if(aV!=null||aX){aW.type="change";return a.event.trigger(aW,arguments[1],aU)}}a.event.special.change={filters:{focusout:N,click:function(aW){var aV=aW.target,aU=aV.type;if(aU==="radio"||aU==="checkbox"||aV.nodeName.toLowerCase()==="select"){return N.call(this,aW)}},keydown:function(aW){var aV=aW.target,aU=aV.type;if((aW.keyCode===13&&aV.nodeName.toLowerCase()!=="textarea")||(aW.keyCode===32&&(aU==="checkbox"||aU==="radio"))||aU==="select-multiple"){return N.call(this,aW)}},beforeactivate:function(aV){var aU=aV.target;if(aU.nodeName.toLowerCase()==="input"&&aU.type==="radio"){a.data(aU,"_change_data",i(aU))}}},setup:function(aX,aW,aV){for(var aU in aO){a.event.add(this,aU+".specialChange."+aV.guid,aO[aU])}return ao.test(this.nodeName)},remove:function(aW,aV){for(var aU in aO){a.event.remove(this,aU+".specialChange"+(aV?"."+aV.guid:""),aO[aU])}return ao.test(this.nodeName)}};var aO=a.event.special.change.filters}function ax(aV,aW,aU){aU[0].type=aV;return a.event.handle.apply(aW,aU)}if(aa.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(aW,aU){a.event.special[aU]={setup:function(){this.addEventListener(aW,aV,true)},teardown:function(){this.removeEventListener(aW,aV,true)}};function aV(aX){aX=a.event.fix(aX);aX.type=aU;return a.event.handle.call(this,aX)}})}a.each(["bind","one"],function(aV,aU){a.fn[aU]=function(aZ,a0,aY){if(typeof aZ==="object"){for(var aW in aZ){this[aU](aW,a0,aZ[aW],aY)}return this}if(a.isFunction(a0)){aY=a0;a0=B}var aX=aU==="one"?a.proxy(aY,function(a1){a(this).unbind(a1,aX);return aY.apply(this,arguments)}):aY;return aZ==="unload"&&aU!=="one"?this.one(aZ,a0,aY):this.each(function(){a.event.add(this,aZ,aX,a0)})}});a.fn.extend({unbind:function(aW,aV){if(typeof aW==="object"&&!aW.preventDefault){for(var aU in aW){this.unbind(aU,aW[aU])}return this}return this.each(function(){a.event.remove(this,aW,aV)})},trigger:function(aU,aV){return this.each(function(){a.event.trigger(aU,aV,this)})},triggerHandler:function(aU,aW){if(this[0]){var aV=a.Event(aU);aV.preventDefault();aV.stopPropagation();a.event.trigger(aV,aW,this[0]);return aV.result}},toggle:function(aW){var aU=arguments,aV=1;while(aV<aU.length){a.proxy(aW,aU[aV++])}return this.click(a.proxy(aW,function(aX){var aY=(a.data(this,"lastToggle"+aW.guid)||0)%aV;a.data(this,"lastToggle"+aW.guid,aY+1);aX.preventDefault();return aU[aY].apply(this,arguments)||false}))},hover:function(aU,aV){return this.mouseenter(aU).mouseleave(aV||aU)}});a.each(["live","die"],function(aV,aU){a.fn[aU]=function(aX,a0,aZ){var aY,aW=0;if(a.isFunction(a0)){aZ=a0;a0=B}aX=(aX||"").split(/\s+/);while((aY=aX[aW++])!=null){aY=aY==="focus"?"focusin":aY==="blur"?"focusout":aY==="hover"?aX.push("mouseleave")&&"mouseenter":aY;if(aU==="live"){a(this.context).bind(m(aY,this.selector),{data:a0,selector:this.selector,live:aY},aZ)}else{a(this.context).unbind(m(aY,this.selector),aZ?{guid:aZ.guid+this.selector+aY}:null)}}return this}});function U(aU){var a5,aV=[],a7=[],a3=arguments,a6,a2,a4,aX,aZ,a1,aY,a0,aW=a.extend({},a.data(this,"events").live);if(aU.button&&aU.type==="click"){return}for(aZ in aW){a4=aW[aZ];if(a4.live===aU.type||a4.altLive&&a.inArray(aU.type,a4.altLive)>-1){a0=a4.data;if(!(a0.beforeFilter&&a0.beforeFilter[aU.type]&&!a0.beforeFilter[aU.type](aU))){a7.push(a4.selector)}}else{delete aW[aZ]}}a2=a(aU.target).closest(a7,aU.currentTarget);for(a1=0,aY=a2.length;a1<aY;a1++){for(aZ in aW){a4=aW[aZ];aX=a2[a1].elem;a6=null;if(a2[a1].selector===a4.selector){if(a4.live==="mouseenter"||a4.live==="mouseleave"){a6=a(aU.relatedTarget).closest(a4.selector)[0]}if(!a6||a6!==aX){aV.push({elem:aX,fn:a4})}}}}for(a1=0,aY=aV.length;a1<aY;a1++){a2=aV[a1];aU.currentTarget=a2.elem;aU.data=a2.fn.data;if(a2.fn.apply(a2.elem,a3)===false){a5=false;break}}return a5}function m(aV,aU){return"live."+(aV?aV+".":"")+aU.replace(/\./g,"`").replace(/ /g,"&")}a.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(aV,aU){a.fn[aU]=function(aW){return aW?this.bind(aU,aW):this.trigger(aU)};if(a.attrFn){a.attrFn[aU]=true}});if(aI.attachEvent&&!aI.addEventListener){aI.attachEvent("onunload",function(){for(var aV in a.cache){if(a.cache[aV].handle){try{a.event.remove(a.cache[aV].handle.elem)}catch(aU){}}}}); -/* - * Sizzle CSS Selector Engine - v1.0 - *  Copyright 2009, The Dojo Foundation +(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b4<b3;b4++){if((b9=arguments[b4])!=null){for(b2 in b9){b0=b5[b2];b1=b9[b2];if(b5===b1){continue}if(b8&&b1&&(bF.isPlainObject(b1)||(b6=bF.isArray(b1)))){if(b6){b6=false;b7=b0&&bF.isArray(b0)?b0:[]}else{b7=b0&&bF.isPlainObject(b0)?b0:{}}b5[b2]=bF.extend(b8,b7,b1)}else{if(b1!==L){b5[b2]=b1}}}}}return b5};bF.extend({noConflict:function(b0){if(bb.$===bF){bb.$=bH}if(b0&&bb.jQuery===bF){bb.jQuery=bU}return bF},isReady:false,readyWait:1,holdReady:function(b0){if(b0){bF.readyWait++}else{bF.ready(true)}},ready:function(b0){if((b0===true&&!--bF.readyWait)||(b0!==true&&!bF.isReady)){if(!av.body){return setTimeout(bF.ready,1)}bF.isReady=true;if(b0!==true&&--bF.readyWait>0){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b4<b5;){if(b6.apply(b3[b4++],b2)===false){break}}}}else{if(b0){for(b1 in b3){if(b6.call(b3[b1],b1,b3[b1])===false){break}}}else{for(;b4<b5;){if(b6.call(b3[b4],b4,b3[b4++])===false){break}}}}return b3},trim:bO?function(b0){return b0==null?"":bO.call(b0)}:function(b0){return b0==null?"":b0.toString().replace(bI,"").replace(bE,"")},makeArray:function(b3,b1){var b0=b1||[];if(b3!=null){var b2=bF.type(b3);if(b3.length==null||b2==="string"||b2==="function"||b2==="regexp"||bF.isWindow(b3)){bz.call(b0,b3)}else{bF.merge(b0,b3)}}return b0},inArray:function(b2,b3,b1){var b0;if(b3){if(bv){return bv.call(b3,b2,b1)}b0=b3.length;b1=b1?b1<0?Math.max(0,b0+b1):b1:0;for(;b1<b0;b1++){if(b1 in b3&&b3[b1]===b2){return b1}}}return -1},merge:function(b4,b2){var b3=b4.length,b1=0;if(typeof b2.length==="number"){for(var b0=b2.length;b1<b0;b1++){b4[b3++]=b2[b1]}}else{while(b2[b1]!==L){b4[b3++]=b2[b1++]}}b4.length=b3;return b4},grep:function(b1,b6,b0){var b2=[],b5;b0=!!b0;for(var b3=0,b4=b1.length;b3<b4;b3++){b5=!!b6(b1[b3],b3);if(b0!==b5){b2.push(b1[b3])}}return b2},map:function(b0,b7,b8){var b5,b6,b4=[],b2=0,b1=b0.length,b3=b0 instanceof bF||b1!==L&&typeof b1==="number"&&((b1>0&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b2<b1;b2++){b5=b7(b0[b2],b2,b8);if(b5!=null){b4[b4.length]=b5}}}else{for(b6 in b0){b5=b7(b0[b6],b6,b8);if(b5!=null){b4[b4.length]=b5}}}return b4.concat.apply([],b4)},guid:1,proxy:function(b4,b3){if(typeof b3==="string"){var b2=b4[b3];b3=b4;b4=b2}if(!bF.isFunction(b4)){return L}var b0=bK.call(arguments,2),b1=function(){return b4.apply(b3,b0.concat(bK.call(arguments)))};b1.guid=b4.guid=b4.guid||b1.guid||bF.guid++;return b1},access:function(b0,b8,b6,b2,b5,b7){var b1=b0.length;if(typeof b8==="object"){for(var b3 in b8){bF.access(b0,b3,b8[b3],b2,b5,b6)}return b0}if(b6!==L){b2=!b7&&b2&&bF.isFunction(b6);for(var b4=0;b4<b1;b4++){b5(b0[b4],b8,b2?b6.call(b0[b4],b4,b5(b0[b4],b8)):b6,b7)}return b0}return b1?b5(b0[0],b8):L},now:function(){return(new Date()).getTime()},uaMatch:function(b1){b1=b1.toLowerCase();var b0=by.exec(b1)||bR.exec(b1)||bQ.exec(b1)||b1.indexOf("compatible")<0&&bS.exec(b1)||[];return{browser:b0[1]||"",version:b0[2]||"0"}},sub:function(){function b0(b3,b4){return new b0.fn.init(b3,b4)}bF.extend(true,b0,this);b0.superclass=this;b0.fn=b0.prototype=this();b0.fn.constructor=b0;b0.sub=this.sub;b0.fn.init=function b2(b3,b4){if(b4&&b4 instanceof bF&&!(b4 instanceof b0)){b4=b0(b4)}return bF.fn.init.call(this,b3,b4,b1)};b0.fn.init.prototype=b0.fn;var b1=b0(av);return b0},browser:{}});bF.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b1,b0){bx["[object "+b0+"]"]=b0.toLowerCase()});bV=bF.uaMatch(bX);if(bV.browser){bF.browser[bV.browser]=true;bF.browser.version=bV.version}if(bF.browser.webkit){bF.browser.safari=true}if(bM.test("\xA0")){bI=/^[\s\xA0]+/;bE=/[\s\xA0]+$/}bD=bF(av);if(av.addEventListener){e=function(){av.removeEventListener("DOMContentLoaded",e,false);bF.ready()}}else{if(av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent("onreadystatechange",e);bF.ready()}}}}function bw(){if(bF.isReady){return}try{av.documentElement.doScroll("left")}catch(b0){setTimeout(bw,1);return}bF.ready()}return bF})();var a2={};function X(e){var bv=a2[e]={},bw,bx;e=e.split(/\s+/);for(bw=0,bx=e.length;bw<bx;bw++){bv[e[bw]]=true}return bv}b.Callbacks=function(bw){bw=bw?(a2[bw]||X(bw)):{};var bB=[],bC=[],bx,by,bv,bz,bA,bE=function(bF){var bG,bJ,bI,bH,bK;for(bG=0,bJ=bF.length;bG<bJ;bG++){bI=bF[bG];bH=b.type(bI);if(bH==="array"){bE(bI)}else{if(bH==="function"){if(!bw.unique||!bD.has(bI)){bB.push(bI)}}}}},e=function(bG,bF){bF=bF||[];bx=!bw.memory||[bG,bF];by=true;bA=bv||0;bv=0;bz=bB.length;for(;bB&&bA<bz;bA++){if(bB[bA].apply(bG,bF)===false&&bw.stopOnFalse){bx=true;break}}by=false;if(bB){if(!bw.once){if(bC&&bC.length){bx=bC.shift();bD.fireWith(bx[0],bx[1])}}else{if(bx===true){bD.disable()}else{bB=[]}}}},bD={add:function(){if(bB){var bF=bB.length;bE(arguments);if(by){bz=bB.length}else{if(bx&&bx!==true){bv=bF;e(bx[0],bx[1])}}}return this},remove:function(){if(bB){var bF=arguments,bH=0,bI=bF.length;for(;bH<bI;bH++){for(var bG=0;bG<bB.length;bG++){if(bF[bH]===bB[bG]){if(by){if(bG<=bz){bz--;if(bG<=bA){bA--}}}bB.splice(bG--,1);if(bw.unique){break}}}}}return this},has:function(bG){if(bB){var bF=0,bH=bB.length;for(;bF<bH;bF++){if(bG===bB[bF]){return true}}}return false},empty:function(){bB=[];return this},disable:function(){bB=bC=bx=L;return this},disabled:function(){return !bB},lock:function(){bC=L;if(!bx||bx===true){bD.disable()}return this},locked:function(){return !bC},fireWith:function(bG,bF){if(bC){if(by){if(!bw.once){bC.push([bG,bF])}}else{if(!(bw.once&&bx)){e(bG,bF)}}}return this},fire:function(){bD.fireWith(this,arguments);return this},fired:function(){return !!bx}};return bD};var aJ=[].slice;b.extend({Deferred:function(by){var bx=b.Callbacks("once memory"),bw=b.Callbacks("once memory"),bv=b.Callbacks("memory"),e="pending",bA={resolve:bx,reject:bw,notify:bv},bC={done:bx.add,fail:bw.add,progress:bv.add,state:function(){return e},isResolved:bx.fired,isRejected:bw.fired,then:function(bE,bD,bF){bB.done(bE).fail(bD).progress(bF);return this},always:function(){bB.done.apply(bB,arguments).fail.apply(bB,arguments);return this},pipe:function(bF,bE,bD){return b.Deferred(function(bG){b.each({done:[bF,"resolve"],fail:[bE,"reject"],progress:[bD,"notify"]},function(bI,bL){var bH=bL[0],bK=bL[1],bJ;if(b.isFunction(bH)){bB[bI](function(){bJ=bH.apply(this,arguments);if(bJ&&b.isFunction(bJ.promise)){bJ.promise().then(bG.resolve,bG.reject,bG.notify)}else{bG[bK+"With"](this===bB?bG:this,[bJ])}})}else{bB[bI](bG[bK])}})}).promise()},promise:function(bE){if(bE==null){bE=bC}else{for(var bD in bC){bE[bD]=bC[bD]}}return bE}},bB=bC.promise({}),bz;for(bz in bA){bB[bz]=bA[bz].fire;bB[bz+"With"]=bA[bz].fireWith}bB.done(function(){e="resolved"},bw.disable,bv.lock).fail(function(){e="rejected"},bx.disable,bv.lock);if(by){by.call(bB,bB)}return bB},when:function(bA){var bx=aJ.call(arguments,0),bv=0,e=bx.length,bB=new Array(e),bw=e,by=e,bC=e<=1&&bA&&b.isFunction(bA.promise)?bA:b.Deferred(),bE=bC.promise();function bD(bF){return function(bG){bx[bF]=arguments.length>1?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv<e;bv++){if(bx[bv]&&bx[bv].promise&&b.isFunction(bx[bv].promise)){bx[bv].promise().then(bD(bv),bC.reject,bz(bv))}else{--bw}}if(!bw){bC.resolveWith(bC,bx)}}else{if(bC!==bA){bC.resolveWith(bC,e?[bA]:[])}}return bE}});b.support=(function(){var bJ,bI,bF,bG,bx,bE,bA,bD,bz,bK,bB,by,bw,bv=av.createElement("div"),bH=av.documentElement;bv.setAttribute("className","t");bv.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="<div style='width:4px;'></div>";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA<bz;bA++){delete bB[bv[bA]]}if(!(by?S:b.isEmptyObject)(bB)){return}}}if(!by){delete e[bw].data;if(!S(e[bw])){return}}if(b.support.deleteExpando||!e.setInterval){delete e[bw]}else{e[bw]=null}if(bD){if(b.support.deleteExpando){delete bx[bC]}else{if(bx.removeAttribute){bx.removeAttribute(bC)}else{bx[bC]=null}}}},_data:function(bv,e,bw){return b.data(bv,e,bw,true)},acceptData:function(bv){if(bv.nodeName){var e=b.noData[bv.nodeName.toLowerCase()];if(e){return !(e===true||bv.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(by,bA){var bB,e,bw,bz=null;if(typeof by==="undefined"){if(this.length){bz=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bx=0,bv=e.length;bx<bv;bx++){bw=e[bx].name;if(bw.indexOf("data-")===0){bw=b.camelCase(bw.substring(5));a5(this[0],bw,bz[bw])}}b._data(this[0],"parsedAttrs",true)}}return bz}else{if(typeof by==="object"){return this.each(function(){b.data(this,by)})}}bB=by.split(".");bB[1]=bB[1]?"."+bB[1]:"";if(bA===L){bz=this.triggerHandler("getData"+bB[1]+"!",[bB[0]]);if(bz===L&&this.length){bz=b.data(this[0],by);bz=a5(this[0],by,bz)}return bz===L&&bB[1]?this.data(bB[0]):bz}else{return this.each(function(){var bC=b(this),bD=[bB[0],bA];bC.triggerHandler("setData"+bB[1]+"!",bD);b.data(this,by,bA);bC.triggerHandler("changeData"+bB[1]+"!",bD)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a5(bx,bw,by){if(by===L&&bx.nodeType===1){var bv="data-"+bw.replace(aA,"-$1").toLowerCase();by=bx.getAttribute(bv);if(typeof by==="string"){try{by=by==="true"?true:by==="false"?false:by==="null"?null:b.isNumeric(by)?parseFloat(by):aS.test(by)?b.parseJSON(by):by}catch(bz){}b.data(bx,bw,by)}else{by=L}}return by}function S(bv){for(var e in bv){if(e==="data"&&b.isEmptyObject(bv[e])){continue}if(e!=="toJSON"){return false}}return true}function bi(by,bx,bA){var bw=bx+"defer",bv=bx+"queue",e=bx+"mark",bz=b._data(by,bw);if(bz&&(bA==="queue"||!b._data(by,bv))&&(bA==="mark"||!b._data(by,e))){setTimeout(function(){if(!b._data(by,bv)&&!b._data(by,e)){b.removeData(by,bw,true);bz.fire()}},0)}}b.extend({_mark:function(bv,e){if(bv){e=(e||"fx")+"mark";b._data(bv,e,(b._data(bv,e)||0)+1)}},_unmark:function(by,bx,bv){if(by!==true){bv=bx;bx=by;by=false}if(bx){bv=bv||"fx";var e=bv+"mark",bw=by?0:((b._data(bx,e)||1)-1);if(bw){b._data(bx,e,bw)}else{b.removeData(bx,e,true);bi(bx,bv,"mark")}}},queue:function(bv,e,bx){var bw;if(bv){e=(e||"fx")+"queue";bw=b._data(bv,e);if(bx){if(!bw||b.isArray(bx)){bw=b._data(bv,e,b.makeArray(bx))}else{bw.push(bx)}}return bw||[]}},dequeue:function(by,bx){bx=bx||"fx";var bv=b.queue(by,bx),bw=bv.shift(),e={};if(bw==="inprogress"){bw=bv.shift()}if(bw){if(bx==="fx"){bv.unshift("inprogress")}b._data(by,bx+".run",e);bw.call(by,function(){b.dequeue(by,bx)},e)}if(!bv.length){b.removeData(by,bx+"queue "+bx+".run",true);bi(by,bx,"queue")}}});b.fn.extend({queue:function(e,bv){if(typeof e!=="string"){bv=e;e="fx"}if(bv===L){return b.queue(this[0],e)}return this.each(function(){var bw=b.queue(this,e,bv);if(e==="fx"&&bw[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bv,e){bv=b.fx?b.fx.speeds[bv]||bv:bv;e=e||"fx";return this.queue(e,function(bx,bw){var by=setTimeout(bx,bv);bw.stop=function(){clearTimeout(by)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bD,bw){if(typeof bD!=="string"){bw=bD;bD=L}bD=bD||"fx";var e=b.Deferred(),bv=this,by=bv.length,bB=1,bz=bD+"defer",bA=bD+"queue",bC=bD+"mark",bx;function bE(){if(!(--bB)){e.resolveWith(bv,[bv])}}while(by--){if((bx=b.data(bv[by],bz,L,true)||(b.data(bv[by],bA,L,true)||b.data(bv[by],bC,L,true))&&b.data(bv[by],bz,b.Callbacks("once memory"),true))){bB++;bx.add(bE)}}bE();return e.promise()}});var aP=/[\n\t\r]/g,af=/\s+/,aU=/\r/g,g=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,l=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,F=b.support.getSetAttribute,be,aY,aF;b.fn.extend({attr:function(e,bv){return b.access(this,e,bv,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bv){return b.access(this,e,bv,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=L;delete this[e]}catch(bv){}})},addClass:function(by){var bA,bw,bv,bx,bz,bB,e;if(b.isFunction(by)){return this.each(function(bC){b(this).addClass(by.call(this,bC,this.className))})}if(by&&typeof by==="string"){bA=by.split(af);for(bw=0,bv=this.length;bw<bv;bw++){bx=this[bw];if(bx.nodeType===1){if(!bx.className&&bA.length===1){bx.className=by}else{bz=" "+bx.className+" ";for(bB=0,e=bA.length;bB<e;bB++){if(!~bz.indexOf(" "+bA[bB]+" ")){bz+=bA[bB]+" "}}bx.className=b.trim(bz)}}}}return this},removeClass:function(bz){var bA,bw,bv,by,bx,bB,e;if(b.isFunction(bz)){return this.each(function(bC){b(this).removeClass(bz.call(this,bC,this.className))})}if((bz&&typeof bz==="string")||bz===L){bA=(bz||"").split(af);for(bw=0,bv=this.length;bw<bv;bw++){by=this[bw];if(by.nodeType===1&&by.className){if(bz){bx=(" "+by.className+" ").replace(aP," ");for(bB=0,e=bA.length;bB<e;bB++){bx=bx.replace(" "+bA[bB]+" "," ")}by.className=b.trim(bx)}else{by.className=""}}}}return this},toggleClass:function(bx,bv){var bw=typeof bx,e=typeof bv==="boolean";if(b.isFunction(bx)){return this.each(function(by){b(this).toggleClass(bx.call(this,by,this.className,bv),bv)})}return this.each(function(){if(bw==="string"){var bA,bz=0,by=b(this),bB=bv,bC=bx.split(af);while((bA=bC[bz++])){bB=e?bB:!by.hasClass(bA);by[bB?"addClass":"removeClass"](bA)}}else{if(bw==="undefined"||bw==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bx===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bx=" "+e+" ",bw=0,bv=this.length;for(;bw<bv;bw++){if(this[bw].nodeType===1&&(" "+this[bw].className+" ").replace(aP," ").indexOf(bx)>-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv<bz;bv++){bx=bC[bv];if(bx.selected&&(b.support.optDisabled?!bx.disabled:bx.getAttribute("disabled")===null)&&(!bx.parentNode.disabled||!b.nodeName(bx.parentNode,"optgroup"))){bA=b(bx).val();if(bw){return bA}bB.push(bA)}}if(bw&&!bB.length&&bC.length){return b(bC[by]).val()}return bB},set:function(bv,bw){var e=b.makeArray(bw);b(bv).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw<e;bw++){bv=bA[bw];if(bv){by=b.propFix[bv]||bv;b.attr(bx,bv,"");bx.removeAttribute(F?bv:by);if(ao.test(bv)&&by in bx){bx[by]=false}}}}},attrHooks:{type:{set:function(e,bv){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bv==="radio"&&b.nodeName(e,"input")){var bw=e.value;e.setAttribute("type",bv);if(bw){e.value=bw}return bv}}}},value:{get:function(bv,e){if(be&&b.nodeName(bv,"button")){return be.get(bv,e)}return e in bv?bv.value:null},set:function(bv,bw,e){if(be&&b.nodeName(bv,"button")){return be.set(bv,bw,e)}bv.value=bw}}},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(bz,bx,bA){var bw,e,by,bv=bz.nodeType;if(!bz||bv===3||bv===8||bv===2){return}by=bv!==1||!b.isXMLDoc(bz);if(by){bx=b.propFix[bx]||bx;e=b.propHooks[bx]}if(bA!==L){if(e&&"set" in e&&(bw=e.set(bz,bA,bx))!==L){return bw}else{return(bz[bx]=bA)}}else{if(e&&"get" in e&&(bw=e.get(bz,bx))!==null){return bw}else{return bz[bx]}}},propHooks:{tabIndex:{get:function(bv){var e=bv.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):D.test(bv.nodeName)||l.test(bv.nodeName)&&bv.href?0:L}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;aY={get:function(bv,e){var bx,bw=b.prop(bv,e);return bw===true||typeof bw!=="boolean"&&(bx=bv.getAttributeNode(e))&&bx.nodeValue!==false?e.toLowerCase():L},set:function(bv,bx,e){var bw;if(bx===false){b.removeAttr(bv,e)}else{bw=b.propFix[e]||e;if(bw in bv){bv[bw]=true}bv.setAttribute(e,e.toLowerCase())}return e}};if(!F){aF={name:true,id:true};be=b.valHooks.button={get:function(bw,bv){var e;e=bw.getAttributeNode(bv);return e&&(aF[bv]?e.nodeValue!=="":e.specified)?e.nodeValue:L},set:function(bw,bx,bv){var e=bw.getAttributeNode(bv);if(!e){e=av.createAttribute(bv);bw.setAttributeNode(e)}return(e.nodeValue=bx+"")}};b.attrHooks.tabindex.set=be.set;b.each(["width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bw,bx){if(bx===""){bw.setAttribute(e,"auto");return bx}}})});b.attrHooks.contenteditable={get:be.get,set:function(bv,bw,e){if(bw===""){bw="false"}be.set(bv,bw,e)}}}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bx){var bw=bx.getAttribute(e,2);return bw===null?L:bw}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||L},set:function(e,bv){return(e.style.cssText=""+bv)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bv){var e=bv.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!b.support.enctype){b.propFix.enctype="encoding"}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bv){if(b.isArray(bv)){return(e.checked=b.inArray(b(e).val(),bv)>=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI<bC.length;bI++){bH=n.exec(bC[bI])||[];bF=bH[1];e=(bH[2]||"").split(".").sort();bE=b.event.special[bF]||{};bF=(by?bE.delegateType:bE.bindType)||bF;bE=b.event.special[bF]||{};bG=b.extend({type:bF,origType:bH[1],data:bA,handler:bJ,guid:bJ.guid,selector:by,quick:Y(by),namespace:e.join(".")},bv);bw=bK[bF];if(!bw){bw=bK[bF]=[];bw.delegateCount=0;if(!bE.setup||bE.setup.call(bx,bA,e,bB)===false){if(bx.addEventListener){bx.addEventListener(bF,bB,false)}else{if(bx.attachEvent){bx.attachEvent("on"+bF,bB)}}}}if(bE.add){bE.add.call(bx,bG);if(!bG.handler.guid){bG.handler.guid=bJ.guid}}if(by){bw.splice(bw.delegateCount++,0,bG)}else{bw.push(bG)}b.event.global[bF]=true}bx=null},global:{},remove:function(bJ,bE,bv,bH,bB){var bI=b.hasData(bJ)&&b._data(bJ),bF,bx,bz,bL,bC,bA,bG,bw,by,bK,bD,e;if(!bI||!(bw=bI.events)){return}bE=b.trim(bt(bE||"")).split(" ");for(bF=0;bF<bE.length;bF++){bx=n.exec(bE[bF])||[];bz=bL=bx[1];bC=bx[2];if(!bz){for(bz in bw){b.event.remove(bJ,bz+bE[bF],bv,bH,true)}continue}by=b.event.special[bz]||{};bz=(bH?by.delegateType:by.bindType)||bz;bD=bw[bz]||[];bA=bD.length;bC=bC?new RegExp("(^|\\.)"+bC.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bG=0;bG<bD.length;bG++){e=bD[bG];if((bB||bL===e.origType)&&(!bv||bv.guid===e.guid)&&(!bC||bC.test(e.namespace))&&(!bH||bH===e.selector||bH==="**"&&e.selector)){bD.splice(bG--,1);if(e.selector){bD.delegateCount--}if(by.remove){by.remove.call(bJ,e)}}}if(bD.length===0&&bA!==bD.length){if(!by.teardown||by.teardown.call(bJ,bC)===false){b.removeEvent(bJ,bz,bI.handle)}delete bw[bz]}}if(b.isEmptyObject(bw)){bK=bI.handle;if(bK){bK.elem=null}b.removeData(bJ,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bv,bD,bA,bJ){if(bA&&(bA.nodeType===3||bA.nodeType===8)){return}var bG=bv.type||bv,bx=[],e,bw,bC,bH,bz,by,bF,bE,bB,bI;if(T.test(bG+b.event.triggered)){return}if(bG.indexOf("!")>=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bC<bB.length&&!bv.isPropagationStopped();bC++){bH=bB[bC][0];bv.type=bB[bC][1];bE=(b._data(bH,"events")||{})[bv.type]&&b._data(bH,"handle");if(bE){bE.apply(bH,bD)}bE=by&&bH[by];if(bE&&b.acceptData(bH)&&bE.apply(bH,bD)===false){bv.preventDefault()}}bv.type=bG;if(!bJ&&!bv.isDefaultPrevented()){if((!bF._default||bF._default.apply(bA.ownerDocument,bD)===false)&&!(bG==="click"&&b.nodeName(bA,"a"))&&b.acceptData(bA)){if(by&&bA[bG]&&((bG!=="focus"&&bG!=="blur")||bv.target.offsetWidth!==0)&&!b.isWindow(bA)){bz=bA[by];if(bz){bA[by]=null}b.event.triggered=bG;bA[bG]();b.event.triggered=L;if(bz){bA[by]=bz}}}}return bv.result},dispatch:function(e){e=b.event.fix(e||bb.event);var bz=((b._data(this,"events")||{})[e.type]||[]),bA=bz.delegateCount,bG=[].slice.call(arguments,0),by=!e.exclusive&&!e.namespace,bH=[],bC,bB,bK,bx,bF,bE,bv,bD,bI,bw,bJ;bG[0]=e;e.delegateTarget=this;if(bA&&!e.target.disabled&&!(e.button&&e.type==="click")){bx=b(this);bx.context=this.ownerDocument||this;for(bK=e.target;bK!=this;bK=bK.parentNode||this){bE={};bD=[];bx[0]=bK;for(bC=0;bC<bA;bC++){bI=bz[bC];bw=bI.selector;if(bE[bw]===L){bE[bw]=(bI.quick?j(bK,bI.quick):bx.is(bw))}if(bE[bw]){bD.push(bI)}}if(bD.length){bH.push({elem:bK,matches:bD})}}}if(bz.length>bA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC<bH.length&&!e.isPropagationStopped();bC++){bv=bH[bC];e.currentTarget=bv.elem;for(bB=0;bB<bv.matches.length&&!e.isImmediatePropagationStopped();bB++){bI=bv.matches[bB];if(by||(!e.namespace&&!bI.namespace)||e.namespace_re&&e.namespace_re.test(bI.namespace)){e.data=bI.data;e.handleObj=bI;bF=((b.event.special[bI.origType]||{}).handle||bI.handler).apply(bv.elem,bG);if(bF!==L){e.result=bF;if(bF===false){e.preventDefault();e.stopPropagation()}}}}}return e.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(bv,e){if(bv.which==null){bv.which=e.charCode!=null?e.charCode:e.keyCode}return bv}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bx,bw){var by,bz,e,bv=bw.button,bA=bw.fromElement;if(bx.pageX==null&&bw.clientX!=null){by=bx.target.ownerDocument||av;bz=by.documentElement;e=by.body;bx.pageX=bw.clientX+(bz&&bz.scrollLeft||e&&e.scrollLeft||0)-(bz&&bz.clientLeft||e&&e.clientLeft||0);bx.pageY=bw.clientY+(bz&&bz.scrollTop||e&&e.scrollTop||0)-(bz&&bz.clientTop||e&&e.clientTop||0)}if(!bx.relatedTarget&&bA){bx.relatedTarget=bA===bx.target?bw.toElement:bA}if(!bx.which&&bv!==L){bx.which=(bv&1?1:(bv&2?3:(bv&4?2:0)))}return bx}},fix:function(bw){if(bw[b.expando]){return bw}var bv,bz,e=bw,bx=b.event.fixHooks[bw.type]||{},by=bx.props?this.props.concat(bx.props):this.props;bw=b.Event(e);for(bv=by.length;bv;){bz=by[--bv];bw[bz]=e[bz]}if(!bw.target){bw.target=e.srcElement||av}if(bw.target.nodeType===3){bw.target=bw.target.parentNode}if(bw.metaKey===L){bw.metaKey=bw.ctrlKey}return bx.filter?bx.filter(bw,e):bw},special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bw,bv,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bv,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bw,by,bx,bv){var bz=b.extend(new b.Event(),bx,{type:bw,isSimulated:true,originalEvent:{}});if(bv){b.event.trigger(bz,null,by)}else{b.event.dispatch.call(by,bz)}if(bz.isDefaultPrevented()){bx.preventDefault()}}};b.event.handle=b.event.dispatch;b.removeEvent=av.removeEventListener?function(bv,e,bw){if(bv.removeEventListener){bv.removeEventListener(e,bw,false)}}:function(bv,e,bw){if(bv.detachEvent){bv.detachEvent("on"+e,bw)}};b.Event=function(bv,e){if(!(this instanceof b.Event)){return new b.Event(bv,e)}if(bv&&bv.type){this.originalEvent=bv;this.type=bv.type;this.isDefaultPrevented=(bv.defaultPrevented||bv.returnValue===false||bv.getPreventDefault&&bv.getPreventDefault())?i:bk}else{this.type=bv}if(e){b.extend(this,e)}this.timeStamp=bv&&bv.timeStamp||b.now();this[b.expando]=true};function bk(){return false}function i(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var bv=this.originalEvent;if(!bv){return}if(bv.preventDefault){bv.preventDefault()}else{bv.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=i;var bv=this.originalEvent;if(!bv){return}if(bv.stopPropagation){bv.stopPropagation()}bv.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:bk,isPropagationStopped:bk,isImmediatePropagationStopped:bk};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bv,e){b.event.special[bv]={delegateType:e,bindType:e,handle:function(bz){var bB=this,bA=bz.relatedTarget,by=bz.handleObj,bw=by.selector,bx;if(!bA||(bA!==bB&&!b.contains(bB,bA))){bz.type=by.origType;bx=by.handler.apply(this,arguments);bz.type=e}return bx}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(){if(b.nodeName(this,"form")){return false}b.event.add(this,"click._submit keypress._submit",function(bx){var bw=bx.target,bv=b.nodeName(bw,"input")||b.nodeName(bw,"button")?bw.form:L;if(bv&&!bv._submit_attached){b.event.add(bv,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true)}});bv._submit_attached=true}})},teardown:function(){if(b.nodeName(this,"form")){return false}b.event.remove(this,"._submit")}}}if(!b.support.changeBubbles){b.event.special.change={setup:function(){if(bd.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});b.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false;b.event.simulate("change",this,e,true)}})}return false}b.event.add(this,"beforeactivate._change",function(bw){var bv=bw.target;if(bd.test(bv.nodeName)&&!bv._change_attached){b.event.add(bv,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){b.event.simulate("change",this.parentNode,e,true)}});bv._change_attached=true}})},handle:function(bv){var e=bv.target;if(this!==e||bv.isSimulated||bv.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bv.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remove(this,"._change");return bd.test(this.nodeName)}}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bx,e){var bv=0,bw=function(by){b.event.simulate(e,by.target,b.event.fix(by),true)};b.event.special[e]={setup:function(){if(bv++===0){av.addEventListener(bx,bw,true)}},teardown:function(){if(--bv===0){av.removeEventListener(bx,bw,true)}}}})}b.fn.extend({on:function(bw,e,bz,by,bv){var bA,bx;if(typeof bw==="object"){if(typeof e!=="string"){bz=e;e=L}for(bx in bw){this.on(bx,e,bz,bw[bx],bv)}return this}if(bz==null&&by==null){by=e;bz=e=L}else{if(by==null){if(typeof e==="string"){by=bz;bz=L}else{by=bz;bz=e;e=L}}}if(by===false){by=bk}else{if(!by){return this}}if(bv===1){bA=by;by=function(bB){b().off(bB);return bA.apply(this,arguments)};by.guid=bA.guid||(bA.guid=b.guid++)}return this.each(function(){b.event.add(this,bw,by,bz,e)})},one:function(bv,e,bx,bw){return this.on.call(this,bv,e,bx,bw,1)},off:function(bw,e,by){if(bw&&bw.preventDefault&&bw.handleObj){var bv=bw.handleObj;b(bw.delegateTarget).off(bv.namespace?bv.type+"."+bv.namespace:bv.type,bv.selector,bv.handler);return this}if(typeof bw==="object"){for(var bx in bw){this.off(bx,e,bw[bx])}return this}if(e===false||typeof e==="function"){by=e;e=L}if(by===false){by=bk}return this.each(function(){b.event.remove(this,bw,by,e)})},bind:function(e,bw,bv){return this.on(e,null,bw,bv)},unbind:function(e,bv){return this.off(e,null,bv)},live:function(e,bw,bv){b(this.context).on(e,this.selector,bw,bv);return this},die:function(e,bv){b(this.context).off(e,this.selector||"**",bv);return this},delegate:function(e,bv,bx,bw){return this.on(bv,e,bx,bw)},undelegate:function(e,bv,bw){return arguments.length==1?this.off(e,"**"):this.off(bv,e,bw)},trigger:function(e,bv){return this.each(function(){b.event.trigger(e,bv,this)})},triggerHandler:function(e,bv){if(this[0]){return b.event.trigger(e,bv,this[0],true)}},toggle:function(bx){var bv=arguments,e=bx.guid||b.guid++,bw=0,by=function(bz){var bA=(b._data(this,"lastToggle"+bx.guid)||0)%bw;b._data(this,"lastToggle"+bx.guid,bA+1);bz.preventDefault();return bv[bA].apply(this,arguments)||false};by.guid=e;while(bw<bv.length){bv[bw++].guid=e}return this.click(by)},hover:function(e,bv){return this.mouseenter(e).mouseleave(bv||e)}});b.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(bv,e){b.fn[e]=function(bx,bw){if(bw==null){bw=bx;bx=null}return arguments.length>0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.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 a5=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a6=0,a8=Object.prototype.toString,a0=false,aZ=true;[0,0].sort(function(){aZ=false;return 0});var aW=function(bh,bc,bk,bl){bk=bk||[];var bn=bc=bc||aa;if(bc.nodeType!==1&&bc.nodeType!==9){return[]}if(!bh||typeof bh!=="string"){return bk}var bi=[],be,bp,bs,bd,bg=true,bf=aX(bc),bm=bh;while((a5.exec(""),be=a5.exec(bm))!==null){bm=be[3];bi.push(be[1]);if(be[2]){bd=be[3];break}}if(bi.length>1&&a1.exec(bh)){if(bi.length===2&&a2.relative[bi[0]]){bp=a9(bi[0]+bi[1],bc)}else{bp=a2.relative[bi[0]]?[bc]:aW(bi.shift(),bc);while(bi.length){bh=bi.shift();if(a2.relative[bh]){bh+=bi.shift()}bp=a9(bh,bp)}}}else{if(!bl&&bi.length>1&&bc.nodeType===9&&!bf&&a2.match.ID.test(bi[0])&&!a2.match.ID.test(bi[bi.length-1])){var bo=aW.find(bi.shift(),bc,bf);bc=bo.expr?aW.filter(bo.expr,bo.set)[0]:bo.set[0]}if(bc){var bo=bl?{expr:bi.pop(),set:a4(bl)}:aW.find(bi.pop(),bi.length===1&&(bi[0]==="~"||bi[0]==="+")&&bc.parentNode?bc.parentNode:bc,bf);bp=bo.expr?aW.filter(bo.expr,bo.set):bo.set;if(bi.length>0){bs=a4(bp)}else{bg=false}while(bi.length){var br=bi.pop(),bq=br;if(!a2.relative[br]){br=""}else{bq=bi.pop()}if(bq==null){bq=bc}a2.relative[br](bs,bq,bf)}}else{bs=bi=[]}}if(!bs){bs=bp}if(!bs){aW.error(br||bh)}if(a8.call(bs)==="[object Array]"){if(!bg){bk.push.apply(bk,bs)}else{if(bc&&bc.nodeType===1){for(var bj=0;bs[bj]!=null;bj++){if(bs[bj]&&(bs[bj]===true||bs[bj].nodeType===1&&a3(bc,bs[bj]))){bk.push(bp[bj])}}}else{for(var bj=0;bs[bj]!=null;bj++){if(bs[bj]&&bs[bj].nodeType===1){bk.push(bp[bj])}}}}}else{a4(bs,bk)}if(bd){aW(bd,bn,bk,bl);aW.uniqueSort(bk)}return bk};aW.uniqueSort=function(bd){if(a7){a0=aZ;bd.sort(a7);if(a0){for(var bc=1;bc<bd.length;bc++){if(bd[bc]===bd[bc-1]){bd.splice(bc--,1)}}}}return bd};aW.matches=function(bc,bd){return aW(bc,null,null,bd)};aW.find=function(bj,bc,bk){var bi,bg;if(!bj){return[]}for(var bf=0,be=a2.order.length;bf<be;bf++){var bh=a2.order[bf],bg;if((bg=a2.leftMatch[bh].exec(bj))){var bd=bg[1];bg.splice(1,1);if(bd.substr(bd.length-1)!=="\\"){bg[1]=(bg[1]||"").replace(/\\/g,"");bi=a2.find[bh](bg,bc,bk);if(bi!=null){bj=bj.replace(a2.match[bh],"");break}}}}if(!bi){bi=bc.getElementsByTagName("*")}return{set:bi,expr:bj}};aW.filter=function(bn,bm,bq,bg){var be=bn,bs=[],bk=bm,bi,bc,bj=bm&&bm[0]&&aX(bm[0]);while(bn&&bm.length){for(var bl in a2.filter){if((bi=a2.leftMatch[bl].exec(bn))!=null&&bi[2]){var bd=a2.filter[bl],br,bp,bf=bi[1];bc=false;bi.splice(1,1);if(bf.substr(bf.length-1)==="\\"){continue}if(bk===bs){bs=[]}if(a2.preFilter[bl]){bi=a2.preFilter[bl](bi,bk,bq,bs,bg,bj);if(!bi){bc=br=true}else{if(bi===true){continue}}}if(bi){for(var bh=0;(bp=bk[bh])!=null;bh++){if(bp){br=bd(bp,bi,bh,bk);var bo=bg^!!br;if(bq&&br!=null){if(bo){bc=true}else{bk[bh]=false}}else{if(bo){bs.push(bp);bc=true}}}}}if(br!==B){if(!bq){bk=bs}bn=bn.replace(a2.match[bl],"");if(!bc){return[]}break}}}if(bn===be){if(bc==null){aW.error(bn)}else{break}}be=bn}return bk};aW.error=function(bc){throw"Syntax error, unrecognized expression: "+bc};var a2=aW.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(bc){return bc.getAttribute("href")}},relative:{"+":function(bi,bd){var bf=typeof bd==="string",bh=bf&&!/\W/.test(bd),bj=bf&&!bh;if(bh){bd=bd.toLowerCase()}for(var be=0,bc=bi.length,bg;be<bc;be++){if((bg=bi[be])){while((bg=bg.previousSibling)&&bg.nodeType!==1){}bi[be]=bj||bg&&bg.nodeName.toLowerCase()===bd?bg||false:bg===bd}}if(bj){aW.filter(bd,bi,true)}},">":function(bi,bd){var bg=typeof bd==="string";if(bg&&!/\W/.test(bd)){bd=bd.toLowerCase();for(var be=0,bc=bi.length;be<bc;be++){var bh=bi[be];if(bh){var bf=bh.parentNode;bi[be]=bf.nodeName.toLowerCase()===bd?bf:false}}}else{for(var be=0,bc=bi.length;be<bc;be++){var bh=bi[be];if(bh){bi[be]=bg?bh.parentNode:bh.parentNode===bd}}if(bg){aW.filter(bd,bi,true)}}},"":function(bf,bd,bh){var be=a6++,bc=ba;if(typeof bd==="string"&&!/\W/.test(bd)){var bg=bd=bd.toLowerCase();bc=aU}bc("parentNode",bd,be,bf,bg,bh)},"~":function(bf,bd,bh){var be=a6++,bc=ba;if(typeof bd==="string"&&!/\W/.test(bd)){var bg=bd=bd.toLowerCase();bc=aU}bc("previousSibling",bd,be,bf,bg,bh)}},find:{ID:function(bd,be,bf){if(typeof be.getElementById!=="undefined"&&!bf){var bc=be.getElementById(bd[1]);return bc?[bc]:[]}},NAME:function(be,bh){if(typeof bh.getElementsByName!=="undefined"){var bd=[],bg=bh.getElementsByName(be[1]);for(var bf=0,bc=bg.length;bf<bc;bf++){if(bg[bf].getAttribute("name")===be[1]){bd.push(bg[bf])}}return bd.length===0?null:bd}},TAG:function(bc,bd){return bd.getElementsByTagName(bc[1])}},preFilter:{CLASS:function(bf,bd,be,bc,bi,bj){bf=" "+bf[1].replace(/\\/g,"")+" ";if(bj){return bf}for(var bg=0,bh;(bh=bd[bg])!=null;bg++){if(bh){if(bi^(bh.className&&(" "+bh.className+" ").replace(/[\t\n]/g," ").indexOf(bf)>=0)){if(!be){bc.push(bh)}}else{if(be){bd[bg]=false}}}}return false},ID:function(bc){return bc[1].replace(/\\/g,"")},TAG:function(bd,bc){return bd[1].toLowerCase()},CHILD:function(bc){if(bc[1]==="nth"){var bd=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bc[2]==="even"&&"2n"||bc[2]==="odd"&&"2n+1"||!/\D/.test(bc[2])&&"0n+"+bc[2]||bc[2]);bc[2]=(bd[1]+(bd[2]||1))-0;bc[3]=bd[3]-0}bc[0]=a6++;return bc},ATTR:function(bg,bd,be,bc,bh,bi){var bf=bg[1].replace(/\\/g,"");if(!bi&&a2.attrMap[bf]){bg[1]=a2.attrMap[bf]}if(bg[2]==="~="){bg[4]=" "+bg[4]+" "}return bg},PSEUDO:function(bg,bd,be,bc,bh){if(bg[1]==="not"){if((a5.exec(bg[3])||"").length>1||/^\w/.test(bg[3])){bg[3]=aW(bg[3],null,null,bd)}else{var bf=aW.filter(bg[3],bd,be,true^bh);if(!be){bc.push.apply(bc,bf)}return false}}else{if(a2.match.POS.test(bg[0])||a2.match.CHILD.test(bg[0])){return true}}return bg},POS:function(bc){bc.unshift(true);return bc}},filters:{enabled:function(bc){return bc.disabled===false&&bc.type!=="hidden"},disabled:function(bc){return bc.disabled===true},checked:function(bc){return bc.checked===true},selected:function(bc){bc.parentNode.selectedIndex;return bc.selected===true},parent:function(bc){return !!bc.firstChild},empty:function(bc){return !bc.firstChild},has:function(be,bd,bc){return !!aW(bc[3],be).length},header:function(bc){return/h\d/i.test(bc.nodeName)},text:function(bc){return"text"===bc.type},radio:function(bc){return"radio"===bc.type},checkbox:function(bc){return"checkbox"===bc.type},file:function(bc){return"file"===bc.type},password:function(bc){return"password"===bc.type},submit:function(bc){return"submit"===bc.type},image:function(bc){return"image"===bc.type},reset:function(bc){return"reset"===bc.type},button:function(bc){return"button"===bc.type||bc.nodeName.toLowerCase()==="button"},input:function(bc){return/input|select|textarea|button/i.test(bc.nodeName)}},setFilters:{first:function(bd,bc){return bc===0},last:function(be,bd,bc,bf){return bd===bf.length-1},even:function(bd,bc){return bc%2===0},odd:function(bd,bc){return bc%2===1},lt:function(be,bd,bc){return bd<bc[3]-0},gt:function(be,bd,bc){return bd>bc[3]-0},nth:function(be,bd,bc){return bc[3]-0===bd},eq:function(be,bd,bc){return bc[3]-0===bd}},filter:{PSEUDO:function(bi,be,bf,bj){var bd=be[1],bg=a2.filters[bd];if(bg){return bg(bi,bf,be,bj)}else{if(bd==="contains"){return(bi.textContent||bi.innerText||aV([bi])||"").indexOf(be[3])>=0}else{if(bd==="not"){var bh=be[3];for(var bf=0,bc=bh.length;bf<bc;bf++){if(bh[bf]===bi){return false}}return true}else{aW.error("Syntax error, unrecognized expression: "+bd)}}}},CHILD:function(bc,bf){var bi=bf[1],bd=bc;switch(bi){case"only":case"first":while((bd=bd.previousSibling)){if(bd.nodeType===1){return false}}if(bi==="first"){return true}bd=bc;case"last":while((bd=bd.nextSibling)){if(bd.nodeType===1){return false}}return true;case"nth":var be=bf[2],bl=bf[3];if(be===1&&bl===0){return true}var bh=bf[0],bk=bc.parentNode;if(bk&&(bk.sizcache!==bh||!bc.nodeIndex)){var bg=0;for(bd=bk.firstChild;bd;bd=bd.nextSibling){if(bd.nodeType===1){bd.nodeIndex=++bg}}bk.sizcache=bh}var bj=bc.nodeIndex-bl;if(be===0){return bj===0}else{return(bj%be===0&&bj/be>=0)}}},ID:function(bd,bc){return bd.nodeType===1&&bd.getAttribute("id")===bc},TAG:function(bd,bc){return(bc==="*"&&bd.nodeType===1)||bd.nodeName.toLowerCase()===bc},CLASS:function(bd,bc){return(" "+(bd.className||bd.getAttribute("class"))+" ").indexOf(bc)>-1},ATTR:function(bh,bf){var be=bf[1],bc=a2.attrHandle[be]?a2.attrHandle[be](bh):bh[be]!=null?bh[be]:bh.getAttribute(be),bi=bc+"",bg=bf[2],bd=bf[4];return bc==null?bg==="!=":bg==="="?bi===bd:bg==="*="?bi.indexOf(bd)>=0:bg==="~="?(" "+bi+" ").indexOf(bd)>=0:!bd?bi&&bc!==false:bg==="!="?bi!==bd:bg==="^="?bi.indexOf(bd)===0:bg==="$="?bi.substr(bi.length-bd.length)===bd:bg==="|="?bi===bd||bi.substr(0,bd.length+1)===bd+"-":false},POS:function(bg,bd,be,bh){var bc=bd[2],bf=a2.setFilters[bc];if(bf){return bf(bg,be,bd,bh)}}}};var a1=a2.match.POS;for(var aY in a2.match){a2.match[aY]=new RegExp(a2.match[aY].source+/(?![^\[]*\])(?![^\(]*\))/.source);a2.leftMatch[aY]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a2.match[aY].source.replace(/\\(\d+)/g,function(bd,bc){return"\\"+(bc-0+1)}))}var a4=function(bd,bc){bd=Array.prototype.slice.call(bd,0);if(bc){bc.push.apply(bc,bd);return bc}return bd};try{Array.prototype.slice.call(aa.documentElement.childNodes,0)}catch(bb){a4=function(bg,bf){var bd=bf||[];if(a8.call(bg)==="[object Array]"){Array.prototype.push.apply(bd,bg)}else{if(typeof bg.length==="number"){for(var be=0,bc=bg.length;be<bc;be++){bd.push(bg[be])}}else{for(var be=0;bg[be];be++){bd.push(bg[be])}}}return bd}}var a7;if(aa.documentElement.compareDocumentPosition){a7=function(bd,bc){if(!bd.compareDocumentPosition||!bc.compareDocumentPosition){if(bd==bc){a0=true}return bd.compareDocumentPosition?-1:1}var be=bd.compareDocumentPosition(bc)&4?-1:bd===bc?0:1;if(be===0){a0=true}return be}}else{if("sourceIndex" in aa.documentElement){a7=function(bd,bc){if(!bd.sourceIndex||!bc.sourceIndex){if(bd==bc){a0=true}return bd.sourceIndex?-1:1}var be=bd.sourceIndex-bc.sourceIndex;if(be===0){a0=true}return be}}else{if(aa.createRange){a7=function(bf,bd){if(!bf.ownerDocument||!bd.ownerDocument){if(bf==bd){a0=true}return bf.ownerDocument?-1:1}var be=bf.ownerDocument.createRange(),bc=bd.ownerDocument.createRange();be.setStart(bf,0);be.setEnd(bf,0);bc.setStart(bd,0);bc.setEnd(bd,0);var bg=be.compareBoundaryPoints(Range.START_TO_END,bc);if(bg===0){a0=true}return bg}}}}function aV(bc){var bd="",bf;for(var be=0;bc[be];be++){bf=bc[be];if(bf.nodeType===3||bf.nodeType===4){bd+=bf.nodeValue}else{if(bf.nodeType!==8){bd+=aV(bf.childNodes)}}}return bd}(function(){var bd=aa.createElement("div"),be="script"+(new Date).getTime();bd.innerHTML="<a name='"+be+"'/>";var bc=aa.documentElement;bc.insertBefore(bd,bc.firstChild);if(aa.getElementById(be)){a2.find.ID=function(bg,bh,bi){if(typeof bh.getElementById!=="undefined"&&!bi){var bf=bh.getElementById(bg[1]);return bf?bf.id===bg[1]||typeof bf.getAttributeNode!=="undefined"&&bf.getAttributeNode("id").nodeValue===bg[1]?[bf]:B:[]}};a2.filter.ID=function(bh,bf){var bg=typeof bh.getAttributeNode!=="undefined"&&bh.getAttributeNode("id");return bh.nodeType===1&&bg&&bg.nodeValue===bf}}bc.removeChild(bd);bc=bd=null})();(function(){var bc=aa.createElement("div");bc.appendChild(aa.createComment(""));if(bc.getElementsByTagName("*").length>0){a2.find.TAG=function(bd,bh){var bg=bh.getElementsByTagName(bd[1]);if(bd[1]==="*"){var bf=[];for(var be=0;bg[be];be++){if(bg[be].nodeType===1){bf.push(bg[be])}}bg=bf}return bg}}bc.innerHTML="<a href='#'></a>";if(bc.firstChild&&typeof bc.firstChild.getAttribute!=="undefined"&&bc.firstChild.getAttribute("href")!=="#"){a2.attrHandle.href=function(bd){return bd.getAttribute("href",2)}}bc=null})();if(aa.querySelectorAll){(function(){var bc=aW,be=aa.createElement("div");be.innerHTML="<p class='TEST'></p>";if(be.querySelectorAll&&be.querySelectorAll(".TEST").length===0){return}aW=function(bi,bh,bf,bg){bh=bh||aa;if(!bg&&bh.nodeType===9&&!aX(bh)){try{return a4(bh.querySelectorAll(bi),bf)}catch(bj){}}return bc(bi,bh,bf,bg)};for(var bd in bc){aW[bd]=bc[bd]}be=null})()}(function(){var bc=aa.createElement("div");bc.innerHTML="<div class='test e'></div><div class='test'></div>";if(!bc.getElementsByClassName||bc.getElementsByClassName("e").length===0){return}bc.lastChild.className="e";if(bc.getElementsByClassName("e").length===1){return}a2.order.splice(1,0,"CLASS");a2.find.CLASS=function(bd,be,bf){if(typeof be.getElementsByClassName!=="undefined"&&!bf){return be.getElementsByClassName(bd[1])}};bc=null})();function aU(bd,bi,bh,bl,bj,bk){for(var bf=0,be=bl.length;bf<be;bf++){var bc=bl[bf];if(bc){bc=bc[bd];var bg=false;while(bc){if(bc.sizcache===bh){bg=bl[bc.sizset];break}if(bc.nodeType===1&&!bk){bc.sizcache=bh;bc.sizset=bf}if(bc.nodeName.toLowerCase()===bi){bg=bc;break}bc=bc[bd]}bl[bf]=bg}}}function ba(bd,bi,bh,bl,bj,bk){for(var bf=0,be=bl.length;bf<be;bf++){var bc=bl[bf];if(bc){bc=bc[bd];var bg=false;while(bc){if(bc.sizcache===bh){bg=bl[bc.sizset];break}if(bc.nodeType===1){if(!bk){bc.sizcache=bh;bc.sizset=bf}if(typeof bi!=="string"){if(bc===bi){bg=true;break}}else{if(aW.filter(bi,[bc]).length>0){bg=bc;break}}}bc=bc[bd]}bl[bf]=bg}}}var a3=aa.compareDocumentPosition?function(bd,bc){return bd.compareDocumentPosition(bc)&16}:function(bd,bc){return bd!==bc&&(bd.contains?bd.contains(bc):true)};var aX=function(bc){var bd=(bc?bc.ownerDocument||bc:0).documentElement;return bd?bd.nodeName!=="HTML":false};var a9=function(bc,bj){var bf=[],bg="",bh,be=bj.nodeType?[bj]:bj;while((bh=a2.match.PSEUDO.exec(bc))){bg+=bh[0];bc=bc.replace(a2.match.PSEUDO,"")}bc=a2.relative[bc]?bc+"*":bc;for(var bi=0,bd=be.length;bi<bd;bi++){aW(bc,be[bi],bf)}return aW.filter(bg,bf)};a.find=aW;a.expr=aW.selectors;a.expr[":"]=a.expr.filters;a.unique=aW.uniqueSort;a.getText=aV;a.isXMLDoc=aX;a.contains=a3;return;aI.Sizzle=aW})();var M=/Until$/,X=/^(?:parents|prevUntil|prevAll)/,aH=/,/,D=Array.prototype.slice;var ag=function(aX,aW,aU){if(a.isFunction(aW)){return a.grep(aX,function(aZ,aY){return !!aW.call(aZ,aY,aZ)===aU})}else{if(aW.nodeType){return a.grep(aX,function(aZ,aY){return(aZ===aW)===aU})}else{if(typeof aW==="string"){var aV=a.grep(aX,function(aY){return aY.nodeType===1});if(aS.test(aW)){return a.filter(aW,aV,!aU)}else{aW=a.filter(aW,aV)}}}}return a.grep(aX,function(aZ,aY){return(a.inArray(aZ,aW)>=0)===aU})};a.fn.extend({find:function(aU){var aW=this.pushStack("","find",aU),aZ=0;for(var aX=0,aV=this.length;aX<aV;aX++){aZ=aW.length;a.find(aU,this[aX],aW);if(aX>0){for(var a0=aZ;a0<aW.length;a0++){for(var aY=0;aY<aZ;aY++){if(aW[aY]===aW[a0]){aW.splice(a0--,1);break}}}}}return aW},has:function(aV){var aU=a(aV);return this.filter(function(){for(var aX=0,aW=aU.length;aX<aW;aX++){if(a.contains(this,aU[aX])){return true}}})},not:function(aU){return this.pushStack(ag(this,aU,false),"not",aU)},filter:function(aU){return this.pushStack(ag(this,aU,true),"filter",aU)},is:function(aU){return !!aU&&a.filter(aU,this).length>0},closest:function(a3,aU){if(a.isArray(a3)){var a0=[],a2=this[0],aZ,aY={},aW;if(a2&&a3.length){for(var aX=0,aV=a3.length;aX<aV;aX++){aW=a3[aX];if(!aY[aW]){aY[aW]=a.expr.match.POS.test(aW)?a(aW,aU||this.context):aW}}while(a2&&a2.ownerDocument&&a2!==aU){for(aW in aY){aZ=aY[aW];if(aZ.jquery?aZ.index(a2)>-1:a(a2).is(aZ)){a0.push({selector:aW,elem:a2});delete aY[aW]}}a2=a2.parentNode}}return a0}var a1=a.expr.match.POS.test(a3)?a(a3,aU||this.context):null;return this.map(function(a4,a5){while(a5&&a5.ownerDocument&&a5!==aU){if(a1?a1.index(a5)>-1:a(a5).is(a3)){return a5}a5=a5.parentNode}return null})},index:function(aU){if(!aU||typeof aU==="string"){return a.inArray(this[0],aU?a(aU):this.parent().children())}return a.inArray(aU.jquery?aU[0]:aU,this)},add:function(aU,aV){var aX=typeof aU==="string"?a(aU,aV||this.context):a.makeArray(aU),aW=a.merge(this.get(),aX);return this.pushStack(x(aX[0])||x(aW[0])?aW:a.unique(aW))},andSelf:function(){return this.add(this.prevObject)}});function x(aU){return !aU||!aU.parentNode||aU.parentNode.nodeType===11}a.each({parent:function(aV){var aU=aV.parentNode;return aU&&aU.nodeType!==11?aU:null},parents:function(aU){return a.dir(aU,"parentNode")},parentsUntil:function(aV,aU,aW){return a.dir(aV,"parentNode",aW)},next:function(aU){return a.nth(aU,2,"nextSibling")},prev:function(aU){return a.nth(aU,2,"previousSibling")},nextAll:function(aU){return a.dir(aU,"nextSibling")},prevAll:function(aU){return a.dir(aU,"previousSibling")},nextUntil:function(aV,aU,aW){return a.dir(aV,"nextSibling",aW)},prevUntil:function(aV,aU,aW){return a.dir(aV,"previousSibling",aW)},siblings:function(aU){return a.sibling(aU.parentNode.firstChild,aU)},children:function(aU){return a.sibling(aU.firstChild)},contents:function(aU){return a.nodeName(aU,"iframe")?aU.contentDocument||aU.contentWindow.document:a.makeArray(aU.childNodes)}},function(aU,aV){a.fn[aU]=function(aY,aW){var aX=a.map(this,aV,aY);if(!M.test(aU)){aW=aY}if(aW&&typeof aW==="string"){aX=a.filter(aW,aX)}aX=this.length>1?a.unique(aX):aX;if((this.length>1||aH.test(aW))&&X.test(aU)){aX=aX.reverse()}return this.pushStack(aX,aU,D.call(arguments).join(","))}});a.extend({filter:function(aW,aU,aV){if(aV){aW=":not("+aW+")"}return a.find.matches(aW,aU)},dir:function(aW,aV,aY){var aU=[],aX=aW[aV];while(aX&&aX.nodeType!==9&&(aY===B||aX.nodeType!==1||!a(aX).is(aY))){if(aX.nodeType===1){aU.push(aX)}aX=aX[aV]}return aU},nth:function(aY,aU,aW,aX){aU=aU||1;var aV=0;for(;aY;aY=aY[aW]){if(aY.nodeType===1&&++aV===aU){break}}return aY},sibling:function(aW,aV){var aU=[];for(;aW;aW=aW.nextSibling){if(aW.nodeType===1&&aW!==aV){aU.push(aW)}}return aU}});var S=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,F=/(<([\w:]+)[^>]*?)\/>/g,aj=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,c=/<([\w:]+)/,t=/<tbody/i,J=/<|&\w+;/,l=/checked\s*(?:[^=]|=\s*.checked.)/i,p=function(aV,aW,aU){return aj.test(aU)?aV:aW+"></"+aU+">"},ab={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,"",""]};ab.optgroup=ab.option;ab.tbody=ab.tfoot=ab.colgroup=ab.caption=ab.thead;ab.th=ab.td;if(!a.support.htmlSerialize){ab._default=[1,"div<div>","</div>"]}a.fn.extend({text:function(aU){if(a.isFunction(aU)){return this.each(function(aW){var aV=a(this);aV.text(aU.call(this,aW,aV.text()))})}if(typeof aU!=="object"&&aU!==B){return this.empty().append((this[0]&&this[0].ownerDocument||aa).createTextNode(aU))}return a.getText(this)},wrapAll:function(aU){if(a.isFunction(aU)){return this.each(function(aW){a(this).wrapAll(aU.call(this,aW))})}if(this[0]){var aV=a(aU,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){aV.insertBefore(this[0])}aV.map(function(){var aW=this;while(aW.firstChild&&aW.firstChild.nodeType===1){aW=aW.firstChild}return aW}).append(this)}return this},wrapInner:function(aU){if(a.isFunction(aU)){return this.each(function(aV){a(this).wrapInner(aU.call(this,aV))})}return this.each(function(){var aV=a(this),aW=aV.contents();if(aW.length){aW.wrapAll(aU)}else{aV.append(aU)}})},wrap:function(aU){return this.each(function(){a(this).wrapAll(aU)})},unwrap:function(){return this.parent().each(function(){if(!a.nodeName(this,"body")){a(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(aU){if(this.nodeType===1){this.appendChild(aU)}})},prepend:function(){return this.domManip(arguments,true,function(aU){if(this.nodeType===1){this.insertBefore(aU,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aV){this.parentNode.insertBefore(aV,this)})}else{if(arguments.length){var aU=a(arguments[0]);aU.push.apply(aU,this.toArray());return this.pushStack(aU,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aV){this.parentNode.insertBefore(aV,this.nextSibling)})}else{if(arguments.length){var aU=this.pushStack(this,"after",arguments);aU.push.apply(aU,a(arguments[0]).toArray());return aU}}},clone:function(aV){var aU=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var aX=this.outerHTML,aW=this.ownerDocument;if(!aX){var aY=aW.createElement("div");aY.appendChild(this.cloneNode(true));aX=aY.innerHTML}return a.clean([aX.replace(S,"").replace(Y,"")],aW)[0]}else{return this.cloneNode(true)}});if(aV===true){q(this,aU);q(this.find("*"),aU.find("*"))}return aU},html:function(aW){if(aW===B){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(S,""):null}else{if(typeof aW==="string"&&!/<script/i.test(aW)&&(a.support.leadingWhitespace||!Y.test(aW))&&!ab[(c.exec(aW)||["",""])[1].toLowerCase()]){aW=aW.replace(F,p);try{for(var aV=0,aU=this.length;aV<aU;aV++){if(this[aV].nodeType===1){a.cleanData(this[aV].getElementsByTagName("*"));this[aV].innerHTML=aW}}}catch(aX){this.empty().append(aW)}}else{if(a.isFunction(aW)){this.each(function(a0){var aZ=a(this),aY=aZ.html();aZ.empty().append(function(){return aW.call(this,a0,aY)})})}else{this.empty().append(aW)}}}return this},replaceWith:function(aU){if(this[0]&&this[0].parentNode){if(!a.isFunction(aU)){aU=a(aU).detach()}else{return this.each(function(aX){var aW=a(this),aV=aW.html();aW.replaceWith(aU.call(this,aX,aV))})}return this.each(function(){var aW=this.nextSibling,aV=this.parentNode;a(this).remove();if(aW){a(aW).before(aU)}else{a(aV).append(aU)}})}else{return this.pushStack(a(a.isFunction(aU)?aU():aU),"replaceWith",aU)}},detach:function(aU){return this.remove(aU,true)},domManip:function(aZ,a3,a2){var aW,aY,a1=aZ[0],aV=[];if(!a.support.checkClone&&arguments.length===3&&typeof a1==="string"&&l.test(a1)){return this.each(function(){a(this).domManip(aZ,a3,a2,true)})}if(a.isFunction(a1)){return this.each(function(a5){var a4=a(this);aZ[0]=a1.call(this,a5,a3?a4.html():B);a4.domManip(aZ,a3,a2)})}if(this[0]){if(aZ[0]&&aZ[0].parentNode&&aZ[0].parentNode.nodeType===11){aW={fragment:aZ[0].parentNode}}else{aW=H(aZ,this,aV)}aY=aW.fragment.firstChild;if(aY){a3=a3&&a.nodeName(aY,"tr");for(var aX=0,aU=this.length;aX<aU;aX++){a2.call(a3?a0(this[aX],aY):this[aX],aW.cacheable||this.length>1||aX>0?aW.fragment.cloneNode(true):aW.fragment)}}if(aV){a.each(aV,aR)}}return this;function a0(a4,a5){return a.nodeName(a4,"table")?(a4.getElementsByTagName("tbody")[0]||a4.appendChild(a4.ownerDocument.createElement("tbody"))):a4}}});function q(aW,aU){var aV=0;aU.each(function(){if(this.nodeName!==(aW[aV]&&aW[aV].nodeName)){return}var a1=a.data(aW[aV++]),a0=a.data(this,a1),aX=a1&&a1.events;if(aX){delete a0.handle;a0.events={};for(var aZ in aX){for(var aY in aX[aZ]){a.event.add(this,aZ,aX[aZ][aY],aX[aZ][aY].data)}}}})}function H(aZ,aX,aV){var aY,aU,aW,a0;if(aZ.length===1&&typeof aZ[0]==="string"&&aZ[0].length<512&&aZ[0].indexOf("<option")<0&&(a.support.checkClone||!l.test(aZ[0]))){aU=true;aW=a.fragments[aZ[0]];if(aW){if(aW!==1){aY=aW}}}if(!aY){a0=(aX&&aX[0]?aX[0].ownerDocument||aX[0]:aa);aY=a0.createDocumentFragment();a.clean(aZ,a0,aY,aV)}if(aU){a.fragments[aZ[0]]=aW?aY:1}return{fragment:aY,cacheable:aU}}a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(aU,aV){a.fn[aU]=function(aW){var aZ=[],a1=a(aW);for(var a0=0,aX=a1.length;a0<aX;a0++){var aY=(a0>0?this.clone(true):this).get();a.fn[aV].apply(a(a1[a0]),aY);aZ=aZ.concat(aY)}return this.pushStack(aZ,aU,a1.selector)}});a.each({remove:function(aU,aV){if(!aU||a.filter(aU,[this]).length){if(!aV&&this.nodeType===1){a.cleanData(this.getElementsByTagName("*"));a.cleanData([this])}if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){if(this.nodeType===1){a.cleanData(this.getElementsByTagName("*"))}while(this.firstChild){this.removeChild(this.firstChild)}}},function(aU,aV){a.fn[aU]=function(){return this.each(aV,arguments)}});a.extend({clean:function(aV,aZ,aX,aU){aZ=aZ||aa;if(typeof aZ.createElement==="undefined"){aZ=aZ.ownerDocument||aZ[0]&&aZ[0].ownerDocument||aa}var aW=[];a.each(aV,function(a6,a3){if(typeof a3==="number"){a3+=""}if(!a3){return}if(typeof a3==="string"&&!J.test(a3)){a3=aZ.createTextNode(a3)}else{if(typeof a3==="string"){a3=a3.replace(F,p);var a8=(c.exec(a3)||["",""])[1].toLowerCase(),a2=ab[a8]||ab._default,a5=a2[0],a0=aZ.createElement("div");a0.innerHTML=a2[1]+a3+a2[2];while(a5--){a0=a0.lastChild}if(!a.support.tbody){var a1=t.test(a3),a7=a8==="table"&&!a1?a0.firstChild&&a0.firstChild.childNodes:a2[1]==="<table>"&&!a1?a0.childNodes:[];for(var a4=a7.length-1;a4>=0;--a4){if(a.nodeName(a7[a4],"tbody")&&!a7[a4].childNodes.length){a7[a4].parentNode.removeChild(a7[a4])}}}if(!a.support.leadingWhitespace&&Y.test(a3)){a0.insertBefore(aZ.createTextNode(Y.exec(a3)[0]),a0.firstChild)}a3=a.makeArray(a0.childNodes)}}if(a3.nodeType){aW.push(a3)}else{aW=a.merge(aW,a3)}});if(aX){for(var aY=0;aW[aY];aY++){if(aU&&a.nodeName(aW[aY],"script")&&(!aW[aY].type||aW[aY].type.toLowerCase()==="text/javascript")){aU.push(aW[aY].parentNode?aW[aY].parentNode.removeChild(aW[aY]):aW[aY])}else{if(aW[aY].nodeType===1){aW.splice.apply(aW,[aY+1,0].concat(a.makeArray(aW[aY].getElementsByTagName("script"))))}aX.appendChild(aW[aY])}}}return aW},cleanData:function(aU){for(var aV=0,aW,aX;(aW=aU[aV])!=null;aV++){a.event.remove(aW);a.removeData(aW)}}});var ap=/z-?index|font-?weight|opacity|zoom|line-?height/i,T=/alpha\([^)]*\)/,Z=/opacity=([^)]*)/,af=/float/i,aw=/-([a-z])/ig,v=/([A-Z])/g,aK=/^-?\d+(?:px)?$/i,aQ=/^-?\d/,aG={position:"absolute",visibility:"hidden",display:"block"},V=["Left","Right"],aA=["Top","Bottom"],ai=aa.defaultView&&aa.defaultView.getComputedStyle,aJ=a.support.cssFloat?"cssFloat":"styleFloat",k=function(aU,aV){return aV.toUpperCase()};a.fn.css=function(aU,aV){return al(this,aU,aV,true,function(aX,aW,aY){if(aY===B){return a.curCSS(aX,aW)}if(typeof aY==="number"&&!ap.test(aW)){aY+="px"}a.style(aX,aW,aY)})};a.extend({style:function(aY,aV,aZ){if(!aY||aY.nodeType===3||aY.nodeType===8){return B}if((aV==="width"||aV==="height")&&parseFloat(aZ)<0){aZ=B}var aX=aY.style||aY,a0=aZ!==B;if(!a.support.opacity&&aV==="opacity"){if(a0){aX.zoom=1;var aU=parseInt(aZ,10)+""==="NaN"?"":"alpha(opacity="+aZ*100+")";var aW=aX.filter||a.curCSS(aY,"filter")||"";aX.filter=T.test(aW)?aW.replace(T,aU):aU}return aX.filter&&aX.filter.indexOf("opacity=")>=0?(parseFloat(Z.exec(aX.filter)[1])/100)+"":""}if(af.test(aV)){aV=aJ}aV=aV.replace(aw,k);if(a0){aX[aV]=aZ}return aX[aV]},css:function(aX,aV,aZ,aU){if(aV==="width"||aV==="height"){var a1,aW=aG,a0=aV==="width"?V:aA;function aY(){a1=aV==="width"?aX.offsetWidth:aX.offsetHeight;if(aU==="border"){return}a.each(a0,function(){if(!aU){a1-=parseFloat(a.curCSS(aX,"padding"+this,true))||0}if(aU==="margin"){a1+=parseFloat(a.curCSS(aX,"margin"+this,true))||0}else{a1-=parseFloat(a.curCSS(aX,"border"+this+"Width",true))||0}})}if(aX.offsetWidth!==0){aY()}else{a.swap(aX,aW,aY)}return Math.max(0,Math.round(a1))}return a.curCSS(aX,aV,aZ)},curCSS:function(a0,aV,aW){var a3,aU=a0.style,aX;if(!a.support.opacity&&aV==="opacity"&&a0.currentStyle){a3=Z.test(a0.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return a3===""?"1":a3}if(af.test(aV)){aV=aJ}if(!aW&&aU&&aU[aV]){a3=aU[aV]}else{if(ai){if(af.test(aV)){aV="float"}aV=aV.replace(v,"-$1").toLowerCase();var a2=a0.ownerDocument.defaultView;if(!a2){return null}var a4=a2.getComputedStyle(a0,null);if(a4){a3=a4.getPropertyValue(aV)}if(aV==="opacity"&&a3===""){a3="1"}}else{if(a0.currentStyle){var aZ=aV.replace(aw,k);a3=a0.currentStyle[aV]||a0.currentStyle[aZ];if(!aK.test(a3)&&aQ.test(a3)){var aY=aU.left,a1=a0.runtimeStyle.left;a0.runtimeStyle.left=a0.currentStyle.left;aU.left=aZ==="fontSize"?"1em":(a3||0);a3=aU.pixelLeft+"px";aU.left=aY;a0.runtimeStyle.left=a1}}}}return a3},swap:function(aX,aW,aY){var aU={};for(var aV in aW){aU[aV]=aX.style[aV];aX.style[aV]=aW[aV]}aY.call(aX);for(var aV in aW){aX.style[aV]=aU[aV]}}});if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(aX){var aV=aX.offsetWidth,aU=aX.offsetHeight,aW=aX.nodeName.toLowerCase()==="tr";return aV===0&&aU===0&&!aW?true:aV>0&&aU>0&&!aW?false:a.curCSS(aX,"display")==="none"};a.expr.filters.visible=function(aU){return !a.expr.filters.hidden(aU)}}var ae=aL(),aF=/<script(.|\s)*?\/script>/gi,o=/select|textarea/i,ay=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,r=/=\?(&|$)/,C=/\?/,aT=/(\?|&)_=.*?(&|$)/,A=/^(\w+:)?\/\/([^\/?#]+)/,h=/%20/g;a.fn.extend({_load:a.fn.load,load:function(aW,aZ,a0){if(typeof aW!=="string"){return this._load(aW)}else{if(!this.length){return this}}var aY=aW.indexOf(" ");if(aY>=0){var aU=aW.slice(aY,aW.length);aW=aW.slice(0,aY)}var aX="GET";if(aZ){if(a.isFunction(aZ)){a0=aZ;aZ=null}else{if(typeof aZ==="object"){aZ=a.param(aZ,a.ajaxSettings.traditional);aX="POST"}}}var aV=this;a.ajax({url:aW,type:aX,dataType:"html",data:aZ,complete:function(a2,a1){if(a1==="success"||a1==="notmodified"){aV.html(aU?a("<div />").append(a2.responseText.replace(aF,"")).find(aU):a2.responseText)}if(a0){aV.each(a0,[a2.responseText,a1,a2])}}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||o.test(this.nodeName)||ay.test(this.type))}).map(function(aU,aV){var aW=a(this).val();return aW==null?null:a.isArray(aW)?a.map(aW,function(aY,aX){return{name:aV.name,value:aY}}):{name:aV.name,value:aW}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(aU,aV){a.fn[aV]=function(aW){return this.bind(aV,aW)}});a.extend({get:function(aU,aW,aX,aV){if(a.isFunction(aW)){aV=aV||aX;aX=aW;aW=null}return a.ajax({type:"GET",url:aU,data:aW,success:aX,dataType:aV})},getScript:function(aU,aV){return a.get(aU,null,aV,"script")},getJSON:function(aU,aV,aW){return a.get(aU,aV,aW,"json")},post:function(aU,aW,aX,aV){if(a.isFunction(aW)){aV=aV||aX;aX=aW;aW={}}return a.ajax({type:"POST",url:aU,data:aW,success:aX,dataType:aV})},ajaxSetup:function(aU){a.extend(a.ajaxSettings,aU)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aI.XMLHttpRequest&&(aI.location.protocol!=="file:"||!aI.ActiveXObject)?function(){return new aI.XMLHttpRequest()}:function(){try{return new aI.ActiveXObject("Microsoft.XMLHTTP")}catch(aU){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a9){var a4=a.extend(true,{},a.ajaxSettings,a9);var be,a8,bd,bf=a9&&a9.context||a4,aW=a4.type.toUpperCase();if(a4.data&&a4.processData&&typeof a4.data!=="string"){a4.data=a.param(a4.data,a4.traditional)}if(a4.dataType==="jsonp"){if(aW==="GET"){if(!r.test(a4.url)){a4.url+=(C.test(a4.url)?"&":"?")+(a4.jsonp||"callback")+"=?"}}else{if(!a4.data||!r.test(a4.data)){a4.data=(a4.data?a4.data+"&":"")+(a4.jsonp||"callback")+"=?"}}a4.dataType="json"}if(a4.dataType==="json"&&(a4.data&&r.test(a4.data)||r.test(a4.url))){be=a4.jsonpCallback||("jsonp"+ae++);if(a4.data){a4.data=(a4.data+"").replace(r,"="+be+"$1")}a4.url=a4.url.replace(r,"="+be+"$1");a4.dataType="script";aI[be]=aI[be]||function(bg){bd=bg;aZ();a2();aI[be]=B;try{delete aI[be]}catch(bh){}if(aX){aX.removeChild(bb)}}}if(a4.dataType==="script"&&a4.cache===null){a4.cache=false}if(a4.cache===false&&aW==="GET"){var aU=aL();var bc=a4.url.replace(aT,"$1_="+aU+"$2");a4.url=bc+((bc===a4.url)?(C.test(a4.url)?"&":"?")+"_="+aU:"")}if(a4.data&&aW==="GET"){a4.url+=(C.test(a4.url)?"&":"?")+a4.data}if(a4.global&&!a.active++){a.event.trigger("ajaxStart")}var a7=A.exec(a4.url),aY=a7&&(a7[1]&&a7[1]!==location.protocol||a7[2]!==location.host);if(a4.dataType==="script"&&aW==="GET"&&aY){var aX=aa.getElementsByTagName("head")[0]||aa.documentElement;var bb=aa.createElement("script");bb.src=a4.url;if(a4.scriptCharset){bb.charset=a4.scriptCharset}if(!be){var a6=false;bb.onload=bb.onreadystatechange=function(){if(!a6&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){a6=true;aZ();a2();bb.onload=bb.onreadystatechange=null;if(aX&&bb.parentNode){aX.removeChild(bb)}}}}aX.insertBefore(bb,aX.firstChild);return B}var a1=false;var a0=a4.xhr();if(!a0){return}if(a4.username){a0.open(aW,a4.url,a4.async,a4.username,a4.password)}else{a0.open(aW,a4.url,a4.async)}try{if(a4.data||a9&&a9.contentType){a0.setRequestHeader("Content-Type",a4.contentType)}if(a4.ifModified){if(a.lastModified[a4.url]){a0.setRequestHeader("If-Modified-Since",a.lastModified[a4.url])}if(a.etag[a4.url]){a0.setRequestHeader("If-None-Match",a.etag[a4.url])}}if(!aY){a0.setRequestHeader("X-Requested-With","XMLHttpRequest")}a0.setRequestHeader("Accept",a4.dataType&&a4.accepts[a4.dataType]?a4.accepts[a4.dataType]+", */*":a4.accepts._default)}catch(ba){}if(a4.beforeSend&&a4.beforeSend.call(bf,a0,a4)===false){if(a4.global&&!--a.active){a.event.trigger("ajaxStop")}a0.abort();return false}if(a4.global){a5("ajaxSend",[a0,a4])}var a3=a0.onreadystatechange=function(bg){if(!a0||a0.readyState===0||bg==="abort"){if(!a1){a2()}a1=true;if(a0){a0.onreadystatechange=a.noop}}else{if(!a1&&a0&&(a0.readyState===4||bg==="timeout")){a1=true;a0.onreadystatechange=a.noop;a8=bg==="timeout"?"timeout":!a.httpSuccess(a0)?"error":a4.ifModified&&a.httpNotModified(a0,a4.url)?"notmodified":"success";var bi;if(a8==="success"){try{bd=a.httpData(a0,a4.dataType,a4)}catch(bh){a8="parsererror";bi=bh}}if(a8==="success"||a8==="notmodified"){if(!be){aZ()}}else{a.handleError(a4,a0,a8,bi)}a2();if(bg==="timeout"){a0.abort()}if(a4.async){a0=null}}}};try{var aV=a0.abort;a0.abort=function(){if(a0){aV.call(a0)}a3("abort")}}catch(ba){}if(a4.async&&a4.timeout>0){setTimeout(function(){if(a0&&!a1){a3("timeout")}},a4.timeout)}try{a0.send(aW==="POST"||aW==="PUT"||aW==="DELETE"?a4.data:null)}catch(ba){a.handleError(a4,a0,null,ba);a2()}if(!a4.async){a3()}function aZ(){if(a4.success){a4.success.call(bf,bd,a8,a0)}if(a4.global){a5("ajaxSuccess",[a0,a4])}}function a2(){if(a4.complete){a4.complete.call(bf,a0,a8)}if(a4.global){a5("ajaxComplete",[a0,a4])}if(a4.global&&!--a.active){a.event.trigger("ajaxStop")}}function a5(bh,bg){(a4.context?a(a4.context):a.event).trigger(bh,bg)}return a0},handleError:function(aV,aX,aU,aW){if(aV.error){aV.error.call(aV.context||aV,aX,aU,aW)}if(aV.global){(aV.context?a(aV.context):a.event).trigger("ajaxError",[aX,aV,aW])}},active:0,httpSuccess:function(aV){try{return !aV.status&&location.protocol==="file:"||(aV.status>=200&&aV.status<300)||aV.status===304||aV.status===1223||aV.status===0}catch(aU){}return false},httpNotModified:function(aX,aU){var aW=aX.getResponseHeader("Last-Modified"),aV=aX.getResponseHeader("Etag");if(aW){a.lastModified[aU]=aW}if(aV){a.etag[aU]=aV}return aX.status===304||aX.status===0},httpData:function(aZ,aX,aW){var aV=aZ.getResponseHeader("content-type")||"",aU=aX==="xml"||!aX&&aV.indexOf("xml")>=0,aY=aU?aZ.responseXML:aZ.responseText;if(aU&&aY.documentElement.nodeName==="parsererror"){a.error("parsererror")}if(aW&&aW.dataFilter){aY=aW.dataFilter(aY,aX)}if(typeof aY==="string"){if(aX==="json"||!aX&&aV.indexOf("json")>=0){aY=a.parseJSON(aY)}else{if(aX==="script"||!aX&&aV.indexOf("javascript")>=0){a.globalEval(aY)}}}return aY},param:function(aU,aX){var aV=[];if(aX===B){aX=a.ajaxSettings.traditional}if(a.isArray(aU)||aU.jquery){a.each(aU,function(){aZ(this.name,this.value)})}else{for(var aY in aU){aW(aY,aU[aY])}}return aV.join("&").replace(h,"+");function aW(a0,a1){if(a.isArray(a1)){a.each(a1,function(a3,a2){if(aX){aZ(a0,a2)}else{aW(a0+"["+(typeof a2==="object"||a.isArray(a2)?a3:"")+"]",a2)}})}else{if(!aX&&a1!=null&&typeof a1==="object"){a.each(a1,function(a3,a2){aW(a0+"["+a3+"]",a2)})}else{aZ(a0,a1)}}}function aZ(a0,a1){a1=a.isFunction(a1)?a1():a1;aV[aV.length]=encodeURIComponent(a0)+"="+encodeURIComponent(a1)}}});var E={},ad=/toggle|show|hide/,ar=/^([+-]=)?([\d+-.]+)(.*)$/,aB,ah=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(aV,a3){if(aV||aV===0){return this.animate(az("show",3),aV,a3)}else{for(var a0=0,aX=this.length;a0<aX;a0++){var aU=a.data(this[a0],"olddisplay");this[a0].style.display=aU||"";if(a.css(this[a0],"display")==="none"){var a2=this[a0].nodeName,a1;if(E[a2]){a1=E[a2]}else{var aW=a("<"+a2+" />").appendTo("body");a1=aW.css("display");if(a1==="none"){a1="block"}aW.remove();E[a2]=a1}a.data(this[a0],"olddisplay",a1)}}for(var aZ=0,aY=this.length;aZ<aY;aZ++){this[aZ].style.display=a.data(this[aZ],"olddisplay")||""}return this}},hide:function(aZ,a0){if(aZ||aZ===0){return this.animate(az("hide",3),aZ,a0)}else{for(var aY=0,aV=this.length;aY<aV;aY++){var aU=a.data(this[aY],"olddisplay");if(!aU&&aU!=="none"){a.data(this[aY],"olddisplay",a.css(this[aY],"display"))}}for(var aX=0,aW=this.length;aX<aW;aX++){this[aX].style.display="none"}return this}},_toggle:a.fn.toggle,toggle:function(aW,aV){var aU=typeof aW==="boolean";if(a.isFunction(aW)&&a.isFunction(aV)){this._toggle.apply(this,arguments)}else{if(aW==null||aU){this.each(function(){var aX=aU?aW:a(this).is(":hidden");a(this)[aX?"show":"hide"]()})}else{this.animate(az("toggle",3),aW,aV)}}return this},fadeTo:function(aU,aW,aV){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:aW},aU,aV)},animate:function(aY,aV,aX,aW){var aU=a.speed(aV,aX,aW);if(a.isEmptyObject(aY)){return this.each(aU.complete)}return this[aU.queue===false?"each":"queue"](function(){var a1=a.extend({},aU),a3,a2=this.nodeType===1&&a(this).is(":hidden"),aZ=this;for(a3 in aY){var a0=a3.replace(aw,k);if(a3!==a0){aY[a0]=aY[a3];delete aY[a3];a3=a0}if(aY[a3]==="hide"&&a2||aY[a3]==="show"&&!a2){return a1.complete.call(this)}if((a3==="height"||a3==="width")&&this.style){a1.display=a.css(this,"display");a1.overflow=this.style.overflow}if(a.isArray(aY[a3])){(a1.specialEasing=a1.specialEasing||{})[a3]=aY[a3][1];aY[a3]=aY[a3][0]}}if(a1.overflow!=null){this.style.overflow="hidden"}a1.curAnim=a.extend({},aY);a.each(aY,function(a5,a9){var a8=new a.fx(aZ,a1,a5);if(ad.test(a9)){a8[a9==="toggle"?a2?"show":"hide":a9](aY)}else{var a7=ar.exec(a9),ba=a8.cur(true)||0;if(a7){var a4=parseFloat(a7[2]),a6=a7[3]||"px";if(a6!=="px"){aZ.style[a5]=(a4||1)+a6;ba=((a4||1)/a8.cur(true))*ba;aZ.style[a5]=ba+a6}if(a7[1]){a4=((a7[1]==="-="?-1:1)*a4)+ba}a8.custom(ba,a4,a6)}else{a8.custom(ba,a9,"")}}});return true})},stop:function(aV,aU){var aW=a.timers;if(aV){this.queue([])}this.each(function(){for(var aX=aW.length-1;aX>=0;aX--){if(aW[aX].elem===this){if(aU){aW[aX](true)}aW.splice(aX,1)}}});if(!aU){this.dequeue()}return this}});a.each({slideDown:az("show",1),slideUp:az("hide",1),slideToggle:az("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(aU,aV){a.fn[aU]=function(aW,aX){return this.animate(aV,aW,aX)}});a.extend({speed:function(aW,aX,aV){var aU=aW&&typeof aW==="object"?aW:{complete:aV||!aV&&aX||a.isFunction(aW)&&aW,duration:aW,easing:aV&&aX||aX&&!a.isFunction(aX)&&aX};aU.duration=a.fx.off?0:typeof aU.duration==="number"?aU.duration:a.fx.speeds[aU.duration]||a.fx.speeds._default;aU.old=aU.complete;aU.complete=function(){if(aU.queue!==false){a(this).dequeue()}if(a.isFunction(aU.old)){aU.old.call(this)}};return aU},easing:{linear:function(aW,aX,aU,aV){return aU+aV*aW},swing:function(aW,aX,aU,aV){return((-Math.cos(aW*Math.PI)/2)+0.5)*aV+aU}},timers:[],fx:function(aV,aU,aW){this.options=aU;this.elem=aV;this.prop=aW;if(!aU.orig){aU.orig={}}}});a.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(a.fx.step[this.prop]||a.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(aV){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var aU=parseFloat(a.css(this.elem,this.prop,aV));return aU&&aU>-10000?aU:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(aY,aX,aW){this.startTime=aL();this.start=aY;this.end=aX;this.unit=aW||this.unit||"px";this.now=this.start;this.pos=this.state=0;var aU=this;function aV(aZ){return aU.step(aZ)}aV.elem=this.elem;if(aV()&&a.timers.push(aV)&&!aB){aB=setInterval(a.fx.tick,13)}},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(aX){var a2=aL(),aY=true;if(aX||a2>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var aZ in this.options.curAnim){if(this.options.curAnim[aZ]!==true){aY=false}}if(aY){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;var aW=a.data(this.elem,"olddisplay");this.elem.style.display=aW?aW:this.options.display;if(a.css(this.elem,"display")==="none"){this.elem.style.display="block"}}if(this.options.hide){a(this.elem).hide()}if(this.options.hide||this.options.show){for(var aU in this.options.curAnim){a.style(this.elem,aU,this.options.orig[aU])}}this.options.complete.call(this.elem)}return false}else{var aV=a2-this.startTime;this.state=aV/this.options.duration;var a0=this.options.specialEasing&&this.options.specialEasing[this.prop];var a1=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[a0||a1](this.state,aV,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};a.extend(a.fx,{tick:function(){var aV=a.timers;for(var aU=0;aU<aV.length;aU++){if(!aV[aU]()){aV.splice(aU--,1)}}if(!aV.length){a.fx.stop()}},stop:function(){clearInterval(aB);aB=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(aU){a.style(aU.elem,"opacity",aU.now)},_default:function(aU){if(aU.elem.style&&aU.elem.style[aU.prop]!=null){aU.elem.style[aU.prop]=(aU.prop==="width"||aU.prop==="height"?Math.max(0,aU.now):aU.now)+aU.unit}else{aU.elem[aU.prop]=aU.now}}}});if(a.expr&&a.expr.filters){a.expr.filters.animated=function(aU){return a.grep(a.timers,function(aV){return aU===aV.elem}).length}}function az(aV,aU){var aW={};a.each(ah.concat.apply([],ah.slice(0,aU)),function(){aW[this]=aV});return aW}if("getBoundingClientRect" in aa.documentElement){a.fn.offset=function(a3){var aW=this[0];if(a3){return this.each(function(a4){a.offset.setOffset(this,a3,a4)})}if(!aW||!aW.ownerDocument){return null}if(aW===aW.ownerDocument.body){return a.offset.bodyOffset(aW)}var aY=aW.getBoundingClientRect(),a2=aW.ownerDocument,aZ=a2.body,aU=a2.documentElement,aX=aU.clientTop||aZ.clientTop||0,a0=aU.clientLeft||aZ.clientLeft||0,a1=aY.top+(self.pageYOffset||a.support.boxModel&&aU.scrollTop||aZ.scrollTop)-aX,aV=aY.left+(self.pageXOffset||a.support.boxModel&&aU.scrollLeft||aZ.scrollLeft)-a0;return{top:a1,left:aV}}}else{a.fn.offset=function(a5){var aZ=this[0];if(a5){return this.each(function(a6){a.offset.setOffset(this,a5,a6)})}if(!aZ||!aZ.ownerDocument){return null}if(aZ===aZ.ownerDocument.body){return a.offset.bodyOffset(aZ)}a.offset.initialize();var aW=aZ.offsetParent,aV=aZ,a4=aZ.ownerDocument,a2,aX=a4.documentElement,a0=a4.body,a1=a4.defaultView,aU=a1?a1.getComputedStyle(aZ,null):aZ.currentStyle,a3=aZ.offsetTop,aY=aZ.offsetLeft;while((aZ=aZ.parentNode)&&aZ!==a0&&aZ!==aX){if(a.offset.supportsFixedPosition&&aU.position==="fixed"){break}a2=a1?a1.getComputedStyle(aZ,null):aZ.currentStyle;a3-=aZ.scrollTop;aY-=aZ.scrollLeft;if(aZ===aW){a3+=aZ.offsetTop;aY+=aZ.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(aZ.nodeName))){a3+=parseFloat(a2.borderTopWidth)||0;aY+=parseFloat(a2.borderLeftWidth)||0}aV=aW,aW=aZ.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&a2.overflow!=="visible"){a3+=parseFloat(a2.borderTopWidth)||0;aY+=parseFloat(a2.borderLeftWidth)||0}aU=a2}if(aU.position==="relative"||aU.position==="static"){a3+=a0.offsetTop;aY+=a0.offsetLeft}if(a.offset.supportsFixedPosition&&aU.position==="fixed"){a3+=Math.max(aX.scrollTop,a0.scrollTop);aY+=Math.max(aX.scrollLeft,a0.scrollLeft)}return{top:a3,left:aY}}}a.offset={initialize:function(){var aU=aa.body,aV=aa.createElement("div"),aY,a0,aZ,a1,aW=parseFloat(a.curCSS(aU,"marginTop",true))||0,aX="<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>";a.extend(aV.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});aV.innerHTML=aX;aU.insertBefore(aV,aU.firstChild);aY=aV.firstChild;a0=aY.firstChild;a1=aY.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(a0.offsetTop!==5);this.doesAddBorderForTableAndCells=(a1.offsetTop===5);a0.style.position="fixed",a0.style.top="20px";this.supportsFixedPosition=(a0.offsetTop===20||a0.offsetTop===15);a0.style.position=a0.style.top="";aY.style.overflow="hidden",aY.style.position="relative";this.subtractsBorderForOverflowNotVisible=(a0.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(aU.offsetTop!==aW);aU.removeChild(aV);aU=aV=aY=a0=aZ=a1=null;a.offset.initialize=a.noop},bodyOffset:function(aU){var aW=aU.offsetTop,aV=aU.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){aW+=parseFloat(a.curCSS(aU,"marginTop",true))||0;aV+=parseFloat(a.curCSS(aU,"marginLeft",true))||0}return{top:aW,left:aV}},setOffset:function(aZ,aV,aW){if(/static/.test(a.curCSS(aZ,"position"))){aZ.style.position="relative"}var aY=a(aZ),a1=aY.offset(),aU=parseInt(a.curCSS(aZ,"top",true),10)||0,a0=parseInt(a.curCSS(aZ,"left",true),10)||0;if(a.isFunction(aV)){aV=aV.call(aZ,aW,a1)}var aX={top:(aV.top-a1.top)+aU,left:(aV.left-a1.left)+a0};if("using" in aV){aV.using.call(aZ,aX)}else{aY.css(aX)}}};a.fn.extend({position:function(){if(!this[0]){return null}var aW=this[0],aV=this.offsetParent(),aX=this.offset(),aU=/^body|html$/i.test(aV[0].nodeName)?{top:0,left:0}:aV.offset();aX.top-=parseFloat(a.curCSS(aW,"marginTop",true))||0;aX.left-=parseFloat(a.curCSS(aW,"marginLeft",true))||0;aU.top+=parseFloat(a.curCSS(aV[0],"borderTopWidth",true))||0;aU.left+=parseFloat(a.curCSS(aV[0],"borderLeftWidth",true))||0;return{top:aX.top-aU.top,left:aX.left-aU.left}},offsetParent:function(){return this.map(function(){var aU=this.offsetParent||aa.body;while(aU&&(!/^body|html$/i.test(aU.nodeName)&&a.css(aU,"position")==="static")){aU=aU.offsetParent}return aU})}});a.each(["Left","Top"],function(aV,aU){var aW="scroll"+aU;a.fn[aW]=function(aZ){var aX=this[0],aY;if(!aX){return null}if(aZ!==B){return this.each(function(){aY=ak(this);if(aY){aY.scrollTo(!aV?aZ:a(aY).scrollLeft(),aV?aZ:a(aY).scrollTop())}else{this[aW]=aZ}})}else{aY=ak(aX);return aY?("pageXOffset" in aY)?aY[aV?"pageYOffset":"pageXOffset"]:a.support.boxModel&&aY.document.documentElement[aW]||aY.document.body[aW]:aX[aW]}}});function ak(aU){return("scrollTo" in aU&&aU.document)?aU:aU.nodeType===9?aU.defaultView||aU.parentWindow:false}a.each(["Height","Width"],function(aV,aU){var aW=aU.toLowerCase();a.fn["inner"+aU]=function(){return this[0]?a.css(this[0],aW,false,"padding"):null};a.fn["outer"+aU]=function(aX){return this[0]?a.css(this[0],aW,false,aX?"margin":"border"):null};a.fn[aW]=function(aX){var aY=this[0];if(!aY){return aX==null?null:this}if(a.isFunction(aX)){return this.each(function(a0){var aZ=a(this);aZ[aW](aX.call(this,a0,aZ[aW]()))})}return("scrollTo" in aY&&aY.document)?aY.document.compatMode==="CSS1Compat"&&aY.document.documentElement["client"+aU]||aY.document.body["client"+aU]:(aY.nodeType===9)?Math.max(aY.documentElement["client"+aU],aY.body["scroll"+aU],aY.documentElement["scroll"+aU],aY.body["offset"+aU],aY.documentElement["offset"+aU]):aX===B?a.css(aY,aW):this.css(aW,typeof aX==="string"?aX:aX+"px")}});aI.jQuery=aI.$=a})(window);window.djdt=(function(b,a,e){e.cookie=function(h,p,s){if(typeof p!="undefined"){s=s||{};if(p===null){p="";s.expires=-1}var l="";if(s.expires&&(typeof s.expires=="number"||s.expires.toUTCString)){var m;if(typeof s.expires=="number"){m=new Date();m.setTime(m.getTime()+(s.expires*24*60*60*1000))}else{m=s.expires}l="; expires="+m.toUTCString()}var r=s.path?"; path="+(s.path):"";var n=s.domain?"; domain="+(s.domain):"";var g=s.secure?"; secure":"";a.cookie=[h,"=",encodeURIComponent(p),l,r,n,g].join("")}else{var k=null;if(a.cookie&&a.cookie!=""){var q=a.cookie.split(";");for(var o=0;o<q.length;o++){var j=c.trim(q[o]);if(j.substring(0,h.length+1)==(h+"=")){k=decodeURIComponent(j.substring(h.length+1));break}}}return k}};var c=e;var f="djdt";var d={jQuery:e,events:{ready:[]},isReady:false,init:function(){c("#djDebug").show();var i=null;c("#djDebugPanelList li a").live("click",function(){if(!this.className){return false}i=c("#djDebug #"+this.className);if(i.is(":visible")){c(a).trigger("close.djDebug");c(this).parent().removeClass("active")}else{c(".panelContent").hide();i.show();c("#djDebugToolbar li").removeClass("active");c(this).parent().addClass("active")}return false});c("#djDebug a.djDebugClose").live("click",function(){c(a).trigger("close.djDebug");c("#djDebugToolbar li").removeClass("active");return false});c("#djDebug a.remoteCall").live("click",function(){c("#djDebugWindow").load(this.href,function(k,j,m){if(j=="error"){var l='<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+m.status+": "+m.statusText+"</h3></div>";c("#djDebugWindow").html(l)}c("#djDebugWindow a.djDebugBack").live("click",function(){c(this).parent().parent().hide();return false})});c("#djDebugWindow").show();return false});c("#djDebugTemplatePanel a.djTemplateShowContext").live("click",function(){d.toggle_arrow(c(this).children(".toggleArrow"));d.toggle_content(c(this).parent().next());return false});c("#djDebug a.djDebugToggle").live("click",function(j){j.preventDefault();c(this).parent().find(".djDebugCollapsed").toggle();c(this).parent().find(".djDebugUncollapsed").toggle()});c("#djDebug a.djToggleSwitch").live("click",function(l){l.preventDefault();var j=c(this);var m=j.attr("data-toggle-id");var k=j.text()==j.attr("data-toggle-open");if(m===""||!m){return}j.parents(".djDebugPanelContent").find("#sqlMain_"+m).find(".djDebugCollapsed").toggle(k);j.parents(".djDebugPanelContent").find("#sqlMain_"+m).find(".djDebugUncollapsed").toggle(!k);c(this).parents(".djDebugPanelContent").find(".djToggleDetails_"+m).each(function(){var n=c(this);if(k){n.addClass("djSelected");n.removeClass("djUnselected");j.text(j.attr("data-toggle-close"));n.find(".djToggleSwitch").text(j.text())}else{n.removeClass("djSelected");n.addClass("djUnselected");j.text(j.attr("data-toggle-open"));n.find(".djToggleSwitch").text(j.text())}});return});function g(j){var k=j.attr("id");return c('.djDebugProfileRow[id^="'+k+'_"]')}function h(l){var k=g(l);var j=parseInt(l.attr("depth"),10)+1;return k.filter("[depth="+j+"]")}c(".djDebugProfileRow .djDebugProfileToggle").live("click",function(){var k=c(this).closest(".djDebugProfileRow");var j=g(k);if(j.css("display")=="none"){h(k).show()}else{j.hide()}});c("#djHideToolBarButton").click(function(){d.hide_toolbar(true);return false});c("#djShowToolBarButton").click(function(){d.show_toolbar();return false});c(a).bind("close.djDebug",function(){if(c("#djDebugWindow").is(":visible")){c("#djDebugWindow").hide();return}if(c(".panelContent").is(":visible")){c(".panelContent").hide();return}if(c("#djDebugToolbar").is(":visible")){d.hide_toolbar(true);return}});if(c.cookie(f)){d.hide_toolbar(false)}else{d.show_toolbar(false)}c("#djDebug .djDebugHoverable").hover(function(){c(this).addClass("djDebugHover")},function(){c(this).removeClass("djDebugHover")});d.isReady=true;c.each(d.events.ready,function(j,k){k(d)})},toggle_content:function(g){if(g.is(":visible")){g.hide()}else{g.show()}},close:function(){c(a).trigger("close.djDebug");return false},hide_toolbar:function(g){c("#djDebugWindow").hide();c(".panelContent").hide();c("#djDebugToolbar li").removeClass("active");c("#djDebugToolbar").hide("fast");c("#djDebugToolbarHandle").show();c(a).unbind("keydown.djDebug");if(g){c.cookie(f,"hide",{path:"/",expires:10})}},show_toolbar:function(g){c(a).bind("keydown.djDebug",function(h){if(h.keyCode==27){d.close()}});c("#djDebugToolbarHandle").hide();if(g){c("#djDebugToolbar").show("fast")}else{c("#djDebugToolbar").show()}c.cookie(f,null,{path:"/",expires:-1})},toggle_arrow:function(h){var g=String.fromCharCode(9654);var i=String.fromCharCode(9660);h.html(h.html()==g?i:g)},ready:function(g){if(d.isReady){g(d)}else{d.events.ready.push(g)}}};c(a).ready(function(){d.init()});return d}(window,document,jQuery.noConflict(true)));
\ No newline at end of file +(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e<bR.length;e++){if(bR[e]===bR[e-1]){bR.splice(e--,1)}}}}return bR};by.matches=function(e,bR){return by(e,null,null,bR)};by.matchesSelector=function(e,bR){return by(bR,null,null,[e]).length>0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS<bU;bS++){bV=bE.order[bS];if((bT=bE.leftMatch[bV].exec(bX))){bR=bT[1];bT.splice(1,1);if(bR.substr(bR.length-1)!=="\\"){bT[1]=(bT[1]||"").replace(bK,"");bW=bE.find[bV](bT,e,bY);if(bW!=null){bX=bX.replace(bE.match[bV],"");break}}}}if(!bW){bW=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bW,expr:bX}};by.filter=function(b1,b0,b4,bU){var bW,e,bZ,b6,b3,bR,bT,bV,b2,bS=b1,b5=[],bY=b0,bX=b0&&b0[0]&&by.isXML(b0[0]);while(b1&&b0.length){for(bZ in bE.filter){if((bW=bE.leftMatch[bZ].exec(b1))!=null&&bW[2]){bR=bE.filter[bZ];bT=bW[1];e=false;bW.splice(1,1);if(bT.substr(bT.length-1)==="\\"){continue}if(bY===b5){b5=[]}if(bE.preFilter[bZ]){bW=bE.preFilter[bZ](bW,bY,b4,b5,bU,bX);if(!bW){e=b6=true}else{if(bW===true){continue}}}if(bW){for(bV=0;(b3=bY[bV])!=null;bV++){if(b3){b6=bR(b3,bW,bV,bY);b2=bU^b6;if(b4&&b6!=null){if(b2){e=true}else{bY[bV]=false}}else{if(b2){b5.push(b3);e=true}}}}}if(b6!==L){if(!b4){bY=b5}b1=b1.replace(bE.match[bZ],"");if(!e){return[]}break}}}if(b1===bS){if(e==null){by.error(b1)}else{break}}bS=b1}return bY};by.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){if(typeof bU.textContent==="string"){return bU.textContent}else{if(typeof bU.innerText==="string"){return bU.innerText.replace(bO,"")}else{for(bU=bU.firstChild;bU;bU=bU.nextSibling){bR+=bw(bU)}}}}else{if(e===3||e===4){return bU.nodeValue}}}else{for(bS=0;(bT=bU[bS]);bS++){if(bT.nodeType!==8){bR+=bw(bT)}}}return bR};var bE=by.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(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bW,bR){var bT=typeof bR==="string",bV=bT&&!bQ.test(bR),bX=bT&&!bV;if(bV){bR=bR.toLowerCase()}for(var bS=0,e=bW.length,bU;bS<e;bS++){if((bU=bW[bS])){while((bU=bU.previousSibling)&&bU.nodeType!==1){}bW[bS]=bX||bU&&bU.nodeName.toLowerCase()===bR?bU||false:bU===bR}}if(bX){by.filter(bR,bW,true)}},">":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS<e;bS++){bV=bW[bS];if(bV){var bT=bV.parentNode;bW[bS]=bT.nodeName.toLowerCase()===bR?bT:false}}}else{for(;bS<e;bS++){bV=bW[bS];if(bV){bW[bS]=bU?bV.parentNode:bV.parentNode===bR}}if(bU){by.filter(bR,bW,true)}}},"":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("parentNode",bR,bS,bT,bU,bV)},"~":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("previousSibling",bR,bS,bT,bU,bV)}},find:{ID:function(bR,bS,bT){if(typeof bS.getElementById!=="undefined"&&!bT){var e=bS.getElementById(bR[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bS,bV){if(typeof bV.getElementsByName!=="undefined"){var bR=[],bU=bV.getElementsByName(bS[1]);for(var bT=0,e=bU.length;bT<e;bT++){if(bU[bT].getAttribute("name")===bS[1]){bR.push(bU[bT])}}return bR.length===0?null:bR}},TAG:function(e,bR){if(typeof bR.getElementsByTagName!=="undefined"){return bR.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bT,bR,bS,e,bW,bX){bT=" "+bT[1].replace(bK,"")+" ";if(bX){return bT}for(var bU=0,bV;(bV=bR[bU])!=null;bU++){if(bV){if(bW^(bV.className&&(" "+bV.className+" ").replace(/[\t\n\r]/g," ").indexOf(bT)>=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bR<e[3]-0},gt:function(bS,bR,e){return bR>e[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV<bU;bV++){if(bT[bV]===bS){return false}}return true}else{by.error(e)}}}},CHILD:function(bS,bU){var bT,b0,bW,bZ,e,bV,bY,bX=bU[1],bR=bS;switch(bX){case"only":case"first":while((bR=bR.previousSibling)){if(bR.nodeType===1){return false}}if(bX==="first"){return true}bR=bS;case"last":while((bR=bR.nextSibling)){if(bR.nodeType===1){return false}}return true;case"nth":bT=bU[2];b0=bU[3];if(bT===1&&b0===0){return true}bW=bU[0];bZ=bS.parentNode;if(bZ&&(bZ[bC]!==bW||!bS.nodeIndex)){bV=0;for(bR=bZ.firstChild;bR;bR=bR.nextSibling){if(bR.nodeType===1){bR.nodeIndex=++bV}}bZ[bC]=bW}bY=bS.nodeIndex-b0;if(bT===0){return bY===0}else{return(bY%bT===0&&bY/bT>=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS<e;bS++){bR.push(bU[bS])}}else{for(;bU[bS];bS++){bR.push(bU[bS])}}}return bR}}var bJ,bG;if(av.documentElement.compareDocumentPosition){bJ=function(bR,e){if(bR===e){bB=true;return 0}if(!bR.compareDocumentPosition||!e.compareDocumentPosition){return bR.compareDocumentPosition?-1:1}return bR.compareDocumentPosition(e)&4?-1:1}}else{bJ=function(bY,bX){if(bY===bX){bB=true;return 0}else{if(bY.sourceIndex&&bX.sourceIndex){return bY.sourceIndex-bX.sourceIndex}}var bV,bR,bS=[],e=[],bU=bY.parentNode,bW=bX.parentNode,bZ=bU;if(bU===bW){return bG(bY,bX)}else{if(!bU){return -1}else{if(!bW){return 1}}}while(bZ){bS.unshift(bZ);bZ=bZ.parentNode}bZ=bW;while(bZ){e.unshift(bZ);bZ=bZ.parentNode}bV=bS.length;bR=e.length;for(var bT=0;bT<bV&&bT<bR;bT++){if(bS[bT]!==e[bT]){return bG(bS[bT],e[bT])}}return bT===bV?bG(bY,e[bT],-1):bG(bS[bT],bX,1)};bG=function(bR,e,bS){if(bR===e){return bS}var bT=bR.nextSibling;while(bT){if(bT===e){return -1}bT=bT.nextSibling}return 1}}(function(){var bR=av.createElement("div"),bS="script"+(new Date()).getTime(),e=av.documentElement;bR.innerHTML="<a name='"+bS+"'/>";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="<p class='TEST'></p>";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1&&!bY){e[bC]=bV;e.sizset=bT}if(e.nodeName.toLowerCase()===bW){bU=e;break}e=e[bR]}bZ[bT]=bU}}}function bN(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1){if(!bY){e[bC]=bV;e.sizset=bT}if(typeof bW!=="string"){if(e===bW){bU=true;break}}else{if(by.filter(bW,[e]).length>0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT<bR;bT++){by(bS,bY[bT],bX,bW)}return by.filter(bU,bX)};by.attr=b.attr;by.selectors.attrMap={};b.find=by;b.expr=by.selectors;b.expr[":"]=b.expr.filters;b.unique=by.uniqueSort;b.text=by.getText;b.isXMLDoc=by.isXML;b.contains=by.contains})();var ab=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,a9=/,/,bp=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,H=b.expr.match.POS,ay={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bw=this,by,bv;if(typeof e!=="string"){return b(e).filter(function(){for(by=0,bv=bw.length;by<bv;by++){if(b.contains(bw[by],this)){return true}}})}var bx=this.pushStack("","find",e),bA,bB,bz;for(by=0,bv=this.length;by<bv;by++){bA=bx.length;b.find(e,this[by],bx);if(by>0){for(bB=bA;bB<bx.length;bB++){for(bz=0;bz<bA;bz++){if(bx[bz]===bx[bB]){bx.splice(bB--,1);break}}}}}return bx},has:function(bv){var e=b(bv);return this.filter(function(){for(var bx=0,bw=e.length;bx<bw;bx++){if(b.contains(this,e[bx])){return true}}})},not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:function(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?H.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw<by.length;bw++){if(b(bz).is(by[bw])){bv.push({selector:by[bw],elem:bz,level:bB})}}bz=bz.parentNode;bB++}return bv}var bA=H.test(by)||typeof by!=="string"?b(by,bx||this.context):0;for(bw=0,e=this.length;bw<e;bw++){bz=this[bw];while(bz){if(bA?bA.index(bz)>-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/<tbody/i,W=/<|&#?\w+;/,ae=/<(?:script|style)/i,O=/<(?:script|object|embed|option|style)/i,ah=new RegExp("<(?:"+aR+")","i"),o=/checked\s*(?:[^=]|=\s*.checked.)/i,bm=/\/(java|ecma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={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,"",""]},ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1></$2>");try{for(var bw=0,bv=this.length;bw<bv;bw++){if(this[bw].nodeType===1){b.cleanData(this[bw].getElementsByTagName("*"));this[bw].innerHTML=bx}}}catch(by){this.empty().append(bx)}}else{if(b.isFunction(bx)){this.each(function(bz){var e=b(this);e.html(bx.call(this,bz,e.html()))})}else{this.empty().append(bx)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bx){var bw=b(this),bv=bw.html();bw.replaceWith(e.call(this,bx,bv))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bw=this.nextSibling,bv=this.parentNode;b(this).remove();if(bw){b(bw).before(e)}else{b(bv).append(e)}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bB,bF,bE){var bx,by,bA,bD,bC=bB[0],bv=[];if(!b.support.checkClone&&arguments.length===3&&typeof bC==="string"&&o.test(bC)){return this.each(function(){b(this).domManip(bB,bF,bE,true)})}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bB[0]=bC.call(this,bH,bF?bG.html():L);bG.domManip(bB,bF,bE)})}if(this[0]){bD=bC&&bC.parentNode;if(b.support.parentNode&&bD&&bD.nodeType===11&&bD.childNodes.length===this.length){bx={fragment:bD}}else{bx=b.buildFragment(bB,this,bv)}bA=bx.fragment;if(bA.childNodes.length===1){by=bA=bA.firstChild}else{by=bA.firstChild}if(by){bF=bF&&b.nodeName(by,"tr");for(var bw=0,e=this.length,bz=e-1;bw<e;bw++){bE.call(bF?ba(this[bw],by):this[bw],bx.cacheable||(e>1&&bw<bz)?b.clone(bA,true,true):bA)}}if(bv.length){b.each(bv,bo)}}return this}});function ba(e,bv){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function t(bB,bv){if(bv.nodeType!==1||!b.hasData(bB)){return}var by,bx,e,bA=b._data(bB),bz=b._data(bv,bA),bw=bA.events;if(bw){delete bz.handle;bz.events={};for(by in bw){for(bx=0,e=bw[by].length;bx<e;bx++){b.event.add(bv,by+(bw[by][bx].namespace?".":"")+bw[by][bx].namespace,bw[by][bx],bw[by][bx].data)}}}if(bz.data){bz.data=b.extend({},bz.data)}}function ai(bv,e){var bw;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bv)}bw=e.nodeName.toLowerCase();if(bw==="object"){e.outerHTML=bv.outerHTML}else{if(bw==="input"&&(bv.type==="checkbox"||bv.type==="radio")){if(bv.checked){e.defaultChecked=e.checked=bv.checked}if(e.value!==bv.value){e.value=bv.value}}else{if(bw==="option"){e.selected=bv.defaultSelected}else{if(bw==="input"||bw==="textarea"){e.defaultValue=bv.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bz,bx,bv){var by,e,bw,bA,bB=bz[0];if(bx&&bx[0]){bA=bx[0].ownerDocument||bx[0]}if(!bA.createDocumentFragment){bA=av}if(bz.length===1&&typeof bB==="string"&&bB.length<512&&bA===av&&bB.charAt(0)==="<"&&!O.test(bB)&&(b.support.checkClone||!o.test(bB))&&(b.support.html5Clone||!ah.test(bB))){e=true;bw=b.fragments[bB];if(bw&&bw!==1){by=bw}}if(!by){by=bA.createDocumentFragment();b.clean(bz,bA,by,bv)}if(e){b.fragments[bB]=bw?by:1}return{fragment:by,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bv){b.fn[e]=function(bw){var bz=[],bC=b(bw),bB=this.length===1&&this[0].parentNode;if(bB&&bB.nodeType===11&&bB.childNodes.length===1&&bC.length===1){bC[bv](this[0]);return this}else{for(var bA=0,bx=bC.length;bA<bx;bA++){var by=(bA>0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1></$2>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]==="<table>"&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB<bG;bB++){E(bz[bB])}}else{E(bz)}}if(bz.nodeType){bI.push(bz)}else{bI=b.merge(bI,bz)}}if(bH){bF=function(bL){return !bL.type||bm.test(bL.type)};for(bE=0;bI[bE];bE++){if(bA&&b.nodeName(bI[bE],"script")&&(!bI[bE].type||bI[bE].type.toLowerCase()==="text/javascript")){bA.push(bI[bE].parentNode?bI[bE].parentNode.removeChild(bI[bE]):bI[bE])}else{if(bI[bE].nodeType===1){var bJ=b.grep(bI[bE].getElementsByTagName("script"),bF);bI.splice.apply(bI,[bE+1,0].concat(bJ))}bH.appendChild(bI[bE])}}}return bI},cleanData:function(bv){var by,bw,e=b.cache,bB=b.event.special,bA=b.support.deleteExpando;for(var bz=0,bx;(bx=bv[bz])!=null;bz++){if(bx.nodeName&&b.noData[bx.nodeName.toLowerCase()]){continue}bw=bx[b.expando];if(bw){by=e[bw];if(by&&by.events){for(var bC in by.events){if(bB[bC]){b.event.remove(bx,bC)}else{b.removeEvent(bx,bC,by.handle)}}if(by.handle){by.handle.elem=null}}if(bA){delete bx[b.expando]}else{if(bx.removeAttribute){bx.removeAttribute(b.expando)}}delete e[bw]}}}});function bo(e,bv){if(bv.src){b.ajax({url:bv.src,async:false,dataType:"script"})}else{b.globalEval((bv.text||bv.textContent||bv.innerHTML||"").replace(aN,"/*$0*/"))}if(bv.parentNode){bv.parentNode.removeChild(bv)}}var ak=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,z=/([A-Z]|^ms)/g,bc=/^-?\d+(?:px)?$/i,bn=/^-?\d/,I=/^([\-+])=([\-+.\de]+)/,a7={position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right"],a1=["Top","Bottom"],Z,aI,aX;b.fn.css=function(e,bv){if(arguments.length===2&&bv===L){return this}return b.access(this,e,bv,true,function(bx,bw,by){return by!==L?b.style(bx,bw,by):b.css(bx,bw)})};b.extend({cssHooks:{opacity:{get:function(bw,bv){if(bv){var e=Z(bw,"opacity","opacity");return e===""?"1":e}else{return bw.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.style){return}var bB,bC,bz=b.camelCase(bw),bv=bx.style,bE=b.cssHooks[bz];bw=b.cssProps[bz]||bz;if(bD!==L){bC=typeof bD;if(bC==="string"&&(bB=I.exec(bD))){bD=(+(bB[1]+1)*+bB[2])+parseFloat(b.css(bx,bw));bC="number"}if(bD==null||bC==="number"&&isNaN(bD)){return}if(bC==="number"&&!b.cssNumber[bz]){bD+="px"}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD))!==L){try{bv[bw]=bD}catch(bA){}}}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==L){return bB}return bv[bw]}},css:function(by,bx,bv){var bw,e;bx=b.camelCase(bx);e=b.cssHooks[bx];bx=b.cssProps[bx]||bx;if(bx==="cssFloat"){bx="float"}if(e&&"get" in e&&(bw=e.get(by,true,bv))!==L){return bw}else{if(Z){return Z(by,bx)}}},swap:function(bx,bw,by){var e={};for(var bv in bw){e[bv]=bx.style[bv];bx.style[bv]=bw[bv]}by.call(bx);for(bv in bw){bx.style[bv]=e[bv]}}});b.curCSS=b.css;b.each(["height","width"],function(bv,e){b.cssHooks[e]={get:function(by,bx,bw){var bz;if(bx){if(by.offsetWidth!==0){return p(by,e,bw)}else{b.swap(by,a7,function(){bz=p(by,e,bw)})}return bz}},set:function(bw,bx){if(bc.test(bx)){bx=parseFloat(bx);if(bx>=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx<e;bx++){if(!bv){bA-=parseFloat(b.css(by,"padding"+bz[bx]))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}else{bA-=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}}}return bA+"px"}bA=Z(by,bw,bw);if(bA<0||bA==null){bA=by.style[bw]||0}bA=parseFloat(bA)||0;if(bv){for(;bx<e;bx++){bA+=parseFloat(b.css(by,"padding"+bz[bx]))||0;if(bv!=="padding"){bA+=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}}}return bA+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bw){var bv=bw.offsetWidth,e=bw.offsetHeight;return(bv===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||b.css(bw,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bs=/\r?\n/g,bq=/#.*$/,aD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aZ=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aQ=/^(?:GET|HEAD)$/,c=/^\/\//,M=/\?/,a6=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw<bz;bw++){bv=bx[bw];bC=/^\+/.test(bv);if(bC){bv=bv.substr(1)||"*"}bB=e[bv]=e[bv]||[];bB[bC?"unshift":"push"](bA)}}}}function aW(bv,bE,bz,bD,bB,bx){bB=bB||bE.dataTypes[0];bx=bx||{};bx[bB]=true;var bA=bv[bB],bw=0,e=bA?bA.length:0,by=(bv===aa),bC;for(;bw<e&&(by||!bC);bw++){bC=bA[bw](bE,bz,bD);if(typeof bC==="string"){if(!by||bx[bC]){bC=L}else{bE.dataTypes.unshift(bC);bC=aW(bv,bE,bz,bD,bC,bx)}}}if((by||!bC)&&!bx["*"]){bC=aW(bv,bE,bz,bD,"*",bx)}return bC}function am(bw,bx){var bv,e,by=b.ajaxSettings.flatOptions||{};for(bv in bx){if(bx[bv]!==L){(by[bv]?bw:(e||(e={})))[bv]=bx[bv]}}if(e){b.extend(true,bw,e)}}b.fn.extend({load:function(bw,bz,bA){if(typeof bw!=="string"&&A){return A.apply(this,arguments)}else{if(!this.length){return this}}var by=bw.indexOf(" ");if(by>=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("<div>").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA<bw;bA++){if(bA===1){for(bE in bH.converters){if(typeof bE==="string"){bG[bE.toLowerCase()]=bH.converters[bE]}}}bx=bC;bC=bD[bA];if(bC==="*"){bC=bx}else{if(bx!=="*"&&bx!==bC){by=bx+" "+bC;bF=bG[by]||bG["* "+bC];if(!bF){e=L;for(bv in bG){bB=bv.split(" ");if(bB[0]===bx||bB[0]==="*"){e=bG[bB[1]+" "+bC];if(e){bv=bG[bv];if(bv===true){bF=e}else{if(e===true){bF=bv}}break}}}}if(!(bF||e)){b.error("No conversion from "+by.replace(" "," to "))}if(bF!==true){bz=bF?bF(bz):e(bv(bz))}}}}return bz}var aC=b.now(),u=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp",function(bD,bA,bC){var bx=bD.contentType==="application/x-www-form-urlencoded"&&(typeof bD.data==="string");if(bD.dataTypes[0]==="jsonp"||bD.jsonp!==false&&(u.test(bD.url)||bx&&u.test(bD.data))){var bB,bw=bD.jsonpCallback=b.isFunction(bD.jsonpCallback)?bD.jsonpCallback():bD.jsonpCallback,bz=bb[bw],e=bD.url,by=bD.data,bv="$1"+bw+"$2";if(bD.jsonp!==false){e=e.replace(u,bv);if(bD.url===e){if(bx){by=by.replace(u,bv)}if(bD.data===by){e+=(/\?/.test(e)?"&":"?")+bD.jsonp+"="+bw}}}bD.url=e;bD.data=by;bb[bw]=function(bE){bB=[bE]};bC.always(function(){bb[bw]=bz;if(bB&&b.isFunction(bz)){bb[bw](bB[0])}});bD.converters["script json"]=function(){if(!bB){b.error(bw+" was not called")}return bB[0]};bD.dataTypes[0]="json";return"script"}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPrefilter("script",function(e){if(e.cache===L){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bw){if(bw.crossDomain){var e,bv=av.head||av.getElementsByTagName("head")[0]||av.documentElement;return{send:function(bx,by){e=av.createElement("script");e.async="async";if(bw.scriptCharset){e.charset=bw.scriptCharset}e.src=bw.url;e.onload=e.onreadystatechange=function(bA,bz){if(bz||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bv&&e.parentNode){bv.removeChild(e)}e=L;if(!bz){by(200,"success")}}};bv.insertBefore(e,bv.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var B=bb.ActiveXObject?function(){for(var e in N){N[e](0,1)}}:false,y=0,N;function aL(){try{return new bb.XMLHttpRequest()}catch(bv){}}function aj(){try{return new bb.ActiveXObject("Microsoft.XMLHTTP")}catch(bv){}}b.ajaxSettings.xhr=bb.ActiveXObject?function(){return !this.isLocal&&aL()||aj()}:aL;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bv;return{send:function(bB,bw){var bA=e.xhr(),bz,by;if(e.username){bA.open(e.type,e.url,e.async,e.username,e.password)}else{bA.open(e.type,e.url,e.async)}if(e.xhrFields){for(by in e.xhrFields){bA[by]=e.xhrFields[by]}}if(e.mimeType&&bA.overrideMimeType){bA.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bB["X-Requested-With"]){bB["X-Requested-With"]="XMLHttpRequest"}try{for(by in bB){bA.setRequestHeader(by,bB[by])}}catch(bx){}bA.send((e.hasContent&&e.data)||null);bv=function(bK,bE){var bF,bD,bC,bI,bH;try{if(bv&&(bE||bA.readyState===4)){bv=L;if(bz){bA.onreadystatechange=b.noop;if(B){delete N[bz]}}if(bE){if(bA.readyState!==4){bA.abort()}}else{bF=bA.status;bC=bA.getAllResponseHeaders();bI={};bH=bA.responseXML;if(bH&&bH.documentElement){bI.xml=bH}bI.text=bA.responseText;try{bD=bA.statusText}catch(bJ){bD=""}if(!bF&&e.isLocal&&!e.crossDomain){bF=bI.text?200:404}else{if(bF===1223){bF=204}}}}}catch(bG){if(!bE){bw(-1,bG)}}if(bI){bw(bF,bD,bI,bC)}};if(!e.async||bA.readyState===4){bv()}else{bz=++y;if(B){if(!N){N={};b(bb).unload(B)}N[bz]=bv}bA.onreadystatechange=bv}},abort:function(){if(bv){bv(0,1)}}}}})}var Q={},a8,m,aB=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a3,aH=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a4;b.fn.extend({show:function(bx,bA,bz){var bw,by;if(bx||bx===0){return this.animate(a0("show",3),bx,bA,bz)}else{for(var bv=0,e=this.length;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(!b._data(bw,"olddisplay")&&by==="none"){by=bw.style.display=""}if(by===""&&b.css(bw,"display")==="none"){b._data(bw,"olddisplay",x(bw.nodeName))}}}for(bv=0;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(by===""||by==="none"){bw.style.display=b._data(bw,"olddisplay")||""}}}return this}},hide:function(bx,bA,bz){if(bx||bx===0){return this.animate(a0("hide",3),bx,bA,bz)}else{var bw,by,bv=0,e=this.length;for(;bv<e;bv++){bw=this[bv];if(bw.style){by=b.css(bw,"display");if(by!=="none"&&!b._data(bw,"olddisplay")){b._data(bw,"olddisplay",by)}}}for(bv=0;bv<e;bv++){if(this[bv].style){this[bv].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bw,bv,bx){var e=typeof bw==="boolean";if(b.isFunction(bw)&&b.isFunction(bv)){this._toggle.apply(this,arguments)}else{if(bw==null||e){this.each(function(){var by=e?bw:b(this).is(":hidden");b(this)[by?"show":"hide"]()})}else{this.animate(a0("toggle",3),bw,bv,bx)}}return this},fadeTo:function(e,bx,bw,bv){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bx},e,bw,bv)},animate:function(bz,bw,by,bx){var e=b.speed(bw,by,bx);if(b.isEmptyObject(bz)){return this.each(e.complete,[false])}bz=b.extend({},bz);function bv(){if(e.queue===false){b._mark(this)}var bE=b.extend({},e),bK=this.nodeType===1,bI=bK&&b(this).is(":hidden"),bB,bF,bD,bJ,bH,bC,bG,bL,bA;bE.animatedProperties={};for(bD in bz){bB=b.camelCase(bD);if(bD!==bB){bz[bB]=bz[bD];delete bz[bD]}bF=bz[bB];if(b.isArray(bF)){bE.animatedProperties[bB]=bF[1];bF=bz[bB]=bF[0]}else{bE.animatedProperties[bB]=bE.specialEasing&&bE.specialEasing[bB]||bE.easing||"swing"}if(bF==="hide"&&bI||bF==="show"&&!bI){return bE.complete.call(this)}if(bK&&(bB==="height"||bB==="width")){bE.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout||x(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(bE.overflow!=null){this.style.overflow="hidden"}for(bD in bz){bJ=new b.fx(this,bE,bD);bF=bz[bD];if(aB.test(bF)){bA=b._data(this,"toggle"+bD)||(bF==="toggle"?bI?"show":"hide":0);if(bA){b._data(this,"toggle"+bD,bA==="show"?"hide":"show");bJ[bA]()}else{bJ[bF]()}}else{bH=aT.exec(bF);bC=bJ.cur();if(bH){bG=parseFloat(bH[2]);bL=bH[3]||(b.cssNumber[bD]?"":"px");if(bL!=="px"){b.style(this,bD,(bG||1)+bL);bC=((bG||1)/bJ.cur())*bC;b.style(this,bD,bC+bL)}if(bH[1]){bG=((bH[1]==="-="?-1:1)*bG)+bC}bJ.custom(bC,bG,bL)}else{bJ.custom(bC,bF,"")}}}return true}return e.queue===false?this.each(bv):this.queue(e.queue,bv)},stop:function(bw,bv,e){if(typeof bw!=="string"){e=bv;bv=bw;bw=L}if(bv&&bw!==false){this.queue(bw||"fx",[])}return this.each(function(){var bx,by=false,bA=b.timers,bz=b._data(this);if(!e){b._unmark(true,this)}function bB(bE,bF,bD){var bC=bF[bD];b.removeData(bE,bD,true);bC.stop(e)}if(bw==null){for(bx in bz){if(bz[bx]&&bz[bx].stop&&bx.indexOf(".run")===bx.length-4){bB(this,bz,bx)}}}else{if(bz[bx=bw+".run"]&&bz[bx].stop){bB(this,bz,bx)}}for(bx=bA.length;bx--;){if(bA[bx].elem===this&&(bw==null||bA[bx].queue===bw)){if(e){bA[bx](true)}else{bA[bx].saveState()}by=true;bA.splice(bx,1)}}if(!(e&&by)){b.dequeue(this,bw)}})}});function bh(){setTimeout(at,0);return(a4=b.now())}function at(){a4=L}function a0(bv,e){var bw={};b.each(aH.concat.apply([],aH.slice(0,e)),function(){bw[this]=bv});return bw}b.each({slideDown:a0("show",1),slideUp:a0("hide",1),slideToggle:a0("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bv){b.fn[e]=function(bw,by,bx){return this.animate(bv,bw,by,bx)}});b.extend({speed:function(bw,bx,bv){var e=bw&&typeof bw==="object"?b.extend({},bw):{complete:bv||!bv&&bx||b.isFunction(bw)&&bw,duration:bw,easing:bv&&bx||bx&&!b.isFunction(bx)&&bx};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(by){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(by!==false){b._unmark(this)}}};return e},easing:{linear:function(bw,bx,e,bv){return e+bv*bw},swing:function(bw,bx,e,bv){return((-Math.cos(bw*Math.PI)/2)+0.5)*bv+e}},timers:[],fx:function(bv,e,bw){this.options=e;this.elem=bv;this.prop=bw;e.orig=e.orig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.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 e,bv=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bv))?!bv||bv==="auto"?0:bv:e},custom:function(bz,by,bx){var e=this,bw=b.fx;this.startTime=a4||bh();this.end=by;this.now=this.start=bz;this.pos=this.state=0;this.unit=bx||this.unit||(b.cssNumber[this.prop]?"":"px");function bv(bA){return e.step(bA)}bv.queue=this.options.queue;bv.elem=this.elem;bv.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===L){b._data(e.elem,"fxshow"+e.prop,e.start)}};if(bv()&&b.timers.push(bv)&&!a3){a3=setInterval(bw.tick,bw.interval)}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.show=true;if(e!==L){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)||b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(by){var bA,bB,bv,bx=a4||bh(),e=true,bz=this.elem,bw=this.options;if(by||bx>=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e<bv.length;e++){bw=bv[e];if(!bw()&&bv[e]===bw){bv.splice(e--,1)}}if(!bv.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a3);a3=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});b.each(["width","height"],function(e,bv){b.fx.step[bv]=function(bw){b.style(bw.elem,bv,Math.max(0,bw.now)+bw.unit)}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bv){return e===bv.elem}).length}}function x(bx){if(!Q[bx]){var e=av.body,bv=b("<"+bx+">").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);window.djdt=(function(b,a,e){e.cookie=function(h,p,s){if(typeof p!="undefined"){s=s||{};if(p===null){p="";s.expires=-1}var l="";if(s.expires&&(typeof s.expires=="number"||s.expires.toUTCString)){var m;if(typeof s.expires=="number"){m=new Date();m.setTime(m.getTime()+(s.expires*24*60*60*1000))}else{m=s.expires}l="; expires="+m.toUTCString()}var r=s.path?"; path="+(s.path):"";var n=s.domain?"; domain="+(s.domain):"";var g=s.secure?"; secure":"";a.cookie=[h,"=",encodeURIComponent(p),l,r,n,g].join("")}else{var k=null;if(a.cookie&&a.cookie!=""){var q=a.cookie.split(";");for(var o=0;o<q.length;o++){var j=c.trim(q[o]);if(j.substring(0,h.length+1)==(h+"=")){k=decodeURIComponent(j.substring(h.length+1));break}}}return k}};var c=e;var f="djdt";var d={jQuery:e,events:{ready:[]},isReady:false,init:function(){c("#djDebug").show();var i=null;c("#djDebugPanelList li a").live("click",function(){if(!this.className){return false}i=c("#djDebug #"+this.className);if(i.is(":visible")){c(a).trigger("close.djDebug");c(this).parent().removeClass("active")}else{c(".panelContent").hide();i.show();c("#djDebugToolbar li").removeClass("active");c(this).parent().addClass("active")}return false});c("#djDebug a.djDebugClose").live("click",function(){c(a).trigger("close.djDebug");c("#djDebugToolbar li").removeClass("active");return false});c("#djDebug a.remoteCall").live("click",function(){c("#djDebugWindow").load(this.href,function(k,j,m){if(j=="error"){var l='<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+m.status+": "+m.statusText+"</h3></div>";c("#djDebugWindow").html(l)}c("#djDebugWindow a.djDebugBack").live("click",function(){c(this).parent().parent().hide();return false})});c("#djDebugWindow").show();return false});c("#djDebugTemplatePanel a.djTemplateShowContext").live("click",function(){d.toggle_arrow(c(this).children(".toggleArrow"));d.toggle_content(c(this).parent().next());return false});c("#djDebug a.djDebugToggle").live("click",function(j){j.preventDefault();c(this).parent().find(".djDebugCollapsed").toggle();c(this).parent().find(".djDebugUncollapsed").toggle()});c("#djDebug a.djToggleSwitch").live("click",function(l){l.preventDefault();var j=c(this);var m=j.attr("data-toggle-id");var k=j.text()==j.attr("data-toggle-open");if(m===""||!m){return}j.parents(".djDebugPanelContent").find("#sqlMain_"+m).find(".djDebugCollapsed").toggle(k);j.parents(".djDebugPanelContent").find("#sqlMain_"+m).find(".djDebugUncollapsed").toggle(!k);c(this).parents(".djDebugPanelContent").find(".djToggleDetails_"+m).each(function(){var n=c(this);if(k){n.addClass("djSelected");n.removeClass("djUnselected");j.text(j.attr("data-toggle-close"));n.find(".djToggleSwitch").text(j.text())}else{n.removeClass("djSelected");n.addClass("djUnselected");j.text(j.attr("data-toggle-open"));n.find(".djToggleSwitch").text(j.text())}});return});function g(j){var k=j.attr("id");return c('.djDebugProfileRow[id^="'+k+'_"]')}function h(l){var k=g(l);var j=parseInt(l.attr("depth"),10)+1;return k.filter("[depth="+j+"]")}c(".djDebugProfileRow .djDebugProfileToggle").live("click",function(){var k=c(this).closest(".djDebugProfileRow");var j=g(k);if(j.css("display")=="none"){h(k).show()}else{j.hide()}});c("#djHideToolBarButton").click(function(){d.hide_toolbar(true);return false});c("#djShowToolBarButton").click(function(){d.show_toolbar();return false});c(a).bind("close.djDebug",function(){if(c("#djDebugWindow").is(":visible")){c("#djDebugWindow").hide();return}if(c(".panelContent").is(":visible")){c(".panelContent").hide();return}if(c("#djDebugToolbar").is(":visible")){d.hide_toolbar(true);return}});if(c.cookie(f)){d.hide_toolbar(false)}else{d.show_toolbar(false)}c("#djDebug .djDebugHoverable").hover(function(){c(this).addClass("djDebugHover")},function(){c(this).removeClass("djDebugHover")});d.isReady=true;c.each(d.events.ready,function(j,k){k(d)})},toggle_content:function(g){if(g.is(":visible")){g.hide()}else{g.show()}},close:function(){c(a).trigger("close.djDebug");return false},hide_toolbar:function(g){c("#djDebugWindow").hide();c(".panelContent").hide();c("#djDebugToolbar li").removeClass("active");c("#djDebugToolbar").hide("fast");c("#djDebugToolbarHandle").show();c(a).unbind("keydown.djDebug");if(g){c.cookie(f,"hide",{path:"/",expires:10})}},show_toolbar:function(g){c(a).bind("keydown.djDebug",function(h){if(h.keyCode==27){d.close()}});c("#djDebugToolbarHandle").hide();if(g){c("#djDebugToolbar").show("fast")}else{c("#djDebugToolbar").show()}c.cookie(f,null,{path:"/",expires:-1})},toggle_arrow:function(h){var g=String.fromCharCode(9654);var i=String.fromCharCode(9660);h.html(h.html()==g?i:g)},ready:function(g){if(d.isReady){g(d)}else{d.events.ready.push(g)}}};c(a).ready(function(){d.init()});return d}(window,document,jQuery.noConflict(true)));
\ No newline at end of file diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index 18fffdc..b05eefe 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -225,7 +225,7 @@ class BoldKeywordFilter(sqlparse.filters.Filter):  def swap_fields(sql): -    return re.sub('SELECT</strong> (.*) <strong>FROM', 'SELECT</strong> <a class="djDebugUncollapsed djDebugToggle" href="#">•••</a> ' + +    return re.sub('SELECT</strong> (.*?) <strong>FROM', 'SELECT</strong> <a class="djDebugUncollapsed djDebugToggle" href="#">•••</a> ' +          '<a class="djDebugCollapsed djDebugToggle" href="#">\g<1></a> <strong>FROM', sql) | 
