/*
 * jQuery UI 1.8.10
 *
 * 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(b,c){b.ui=b.ui||{};if(b.ui.version){return}b.extend(b.ui,{version:"1.8.10",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}});b.fn.extend({_focus:b.fn.focus,focus:function(e,d){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){b(f).focus();if(d){d.call(f)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;if((b.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){d=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(b.curCSS(this,"position",1))&&(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}else{d=this.parents().filter(function(){return(/(auto|scroll)/).test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!d.length?b(document):d},zIndex:function(f){if(f!==c){return this.css("zIndex",f)}if(this.length){var e=b(this[0]),g,d;while(e.length&&e[0]!==document){g=e.css("position");if(g==="absolute"||g==="relative"||g==="fixed"){d=parseInt(e.css("zIndex"),10);if(!isNaN(d)&&d!==0){return d}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(d){d.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(h,e){var d=e==="Width"?["Left","Right"]:["Top","Bottom"],g=e.toLowerCase(),f={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};function j(k,i,l,m){b.each(d,function(){i-=parseFloat(b.curCSS(k,"padding"+this,true))||0;if(l){i-=parseFloat(b.curCSS(k,"border"+this+"Width",true))||0}if(m){i-=parseFloat(b.curCSS(k,"margin"+this,true))||0}});return i}b.fn["inner"+e]=function(i){if(i===c){return f["inner"+e].call(this)}return this.each(function(){b(this).css(g,j(this,i)+"px")})};b.fn["outer"+e]=function(i,k){if(typeof i!=="number"){return f["outer"+e].call(this,i)}return this.each(function(){b(this).css(g,j(this,i,true,k)+"px")})}});function a(d){return !b(d).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.extend(b.expr[":"],{data:function(e,f,d){return !!b.data(e,d[3])},focusable:function(g){var d=g.nodeName.toLowerCase(),f=b.attr(g,"tabindex");if("area"===d){var h=g.parentNode,i=h.name,e;if(!g.href||!i||h.nodeName.toLowerCase()!=="map"){return false}e=b("img[usemap=#"+i+"]")[0];return !!e&&a(e)}return(/input|select|textarea|button|object/.test(d)?!g.disabled:"a"==d?g.href||!isNaN(f):!isNaN(f))&&a(g)},tabbable:function(e){var d=b.attr(e,"tabindex");return(isNaN(d)||d>=0)&&b(e).is(":focusable")}});b(function(){var d=document.body,e=d.appendChild(e=document.createElement("div"));b.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=e.offsetHeight===100;b.support.selectstart="onselectstart" in e;d.removeChild(e).style.display="none"});b.extend(b.ui,{plugin:{add:function(f,g,d){var e=b.ui[f].prototype;for(var h in d){e.plugins[h]=e.plugins[h]||[];e.plugins[h].push([g,d[h]])}},call:function(g,e,f){var d=g.plugins[e];if(!d||!g.element[0].parentNode){return}for(var h=0;h<d.length;h++){if(g.options[d[h][0]]){d[h][1].apply(g.element,f)}}}},contains:function(d,e){return document.compareDocumentPosition?d.compareDocumentPosition(e)&16:d!==e&&d.contains(e)},hasScroll:function(d,e){if(b(d).css("overflow")==="hidden"){return false}var f=(e&&e==="left")?"scrollLeft":"scrollTop",g=false;if(d[f]>0){return true}d[f]=1;g=(d[f]>0);d[f]=0;return g},isOverAxis:function(e,f,d){return(e>f)&&(e<(f+d))},isOver:function(e,d,f,i,g,h){return b.ui.isOverAxis(e,f,g)&&b.ui.isOverAxis(d,i,h)}})})(jQuery);
