/*!
 * jQuery UI 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(e,f){e.ui=e.ui||{};if(e.ui.version){return}e.extend(e.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});e.fn.extend({_focus:e.fn.focus,focus:function(b,a){return typeof b==="number"?this.each(function(){var c=this;setTimeout(function(){e(c).focus();if(a){a.call(c)}},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;if((e.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(e.curCSS(this,"position",1))&&(/(auto|scroll)/).test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?e(document):a},zIndex:function(a){if(a!==f){return this.css("zIndex",a)}if(this.length){var c=e(this[0]),h,b;while(c.length&&c[0]!==document){h=c.css("position");if(h==="absolute"||h==="relative"||h==="fixed"){b=parseInt(c.css("zIndex"),10);if(!isNaN(b)&&b!==0){return b}}c=c.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.each(["Width","Height"],function(i,l){var k=l==="Width"?["Left","Right"]:["Top","Bottom"],c=l.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function b(h,j,n,g){e.each(k,function(){j-=parseFloat(e.curCSS(h,"padding"+this,true))||0;if(n){j-=parseFloat(e.curCSS(h,"border"+this+"Width",true))||0}if(g){j-=parseFloat(e.curCSS(h,"margin"+this,true))||0}});return j}e.fn["inner"+l]=function(g){if(g===f){return a["inner"+l].call(this)}return this.each(function(){e(this).css(c,b(this,g)+"px")})};e.fn["outer"+l]=function(h,g){if(typeof h!=="number"){return a["outer"+l].call(this,h)}return this.each(function(){e(this).css(c,b(this,h,true,g)+"px")})}});function d(a){return !e(a).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.extend(e.expr[":"],{data:function(a,b,c){return !!e.data(a,c[3])},focusable:function(j){var a=j.nodeName.toLowerCase(),l=e.attr(j,"tabindex");if("area"===a){var b=j.parentNode,c=b.name,k;if(!j.href||!c||b.nodeName.toLowerCase()!=="map"){return false}k=e("img[usemap=#"+c+"]")[0];return !!k&&d(k)}return(/input|select|textarea|button|object/.test(a)?!j.disabled:"a"==a?j.href||!isNaN(l):!isNaN(l))&&d(j)},tabbable:function(a){var b=e.attr(a,"tabindex");return(isNaN(b)||b>=0)&&e(a).is(":focusable")}});e(function(){var b=document.body,a=b.appendChild(a=document.createElement("div"));e.extend(a.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=a.offsetHeight===100;e.support.selectstart="onselectstart" in a;b.removeChild(a).style.display="none"});e.extend(e.ui,{plugin:{add:function(i,c,a){var b=e.ui[i].prototype;for(var j in a){b.plugins[j]=b.plugins[j]||[];b.plugins[j].push([c,a[j]])}},call:function(j,c,i){var a=j.plugins[c];if(!a||!j.element[0].parentNode){return}for(var b=0;b<a.length;b++){if(j.options[a[b][0]]){a[b][1].apply(j.element,i)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(e(a).css("overflow")==="hidden"){return false}var h=(c&&c==="left")?"scrollLeft":"scrollTop",b=false;if(a[h]>0){return true}a[h]=1;b=(a[h]>0);a[h]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(a,k,b,c,l,j){return e.ui.isOverAxis(a,b,l)&&e.ui.isOverAxis(k,c,j)}})})(jQuery);
