/*
 * jQuery UI 1.8
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||(function(a){a.ui={version:"1.8",plugin:{add:function(d,e,b){var c=a.ui[d].prototype;for(var f in b){c.plugins[f]=c.plugins[f]||[];c.plugins[f].push([e,b[f]])}},call:function(e,c,d){var b=e.plugins[c];if(!b||!e.element[0].parentNode){return}for(var f=0;f<b.length;f++){if(e.options[b[f][0]]){b[f][1].apply(e.element,d)}}}},contains:function(c,d){return document.compareDocumentPosition?c.compareDocumentPosition(d)&16:c!==d&&c.contains(d)},hasScroll:function(b,c){if(a(b).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",e=false;if(b[d]>0){return true}b[d]=1;e=(b[d]>0);b[d]=0;return e},isOverAxis:function(c,d,b){return(c>d)&&(c<(d+b))},isOver:function(c,b,d,g,e,f){return a.ui.isOverAxis(c,d,e)&&a.ui.isOverAxis(b,g,f)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};a.fn.extend({_focus:a.fn.focus,focus:function(c,b){return typeof c==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();(b&&b.call(d))},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var b;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){b=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{b=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!b.length?a(document):b},zIndex:function(d){if(d!==undefined){return this.css("zIndex",d)}if(this.length){var c=a(this[0]),e,b;while(c.length&&c[0]!==document){e=c.css("position");if(e=="absolute"||e=="relative"||e=="fixed"){b=parseInt(c.css("zIndex"));if(!isNaN(b)&&b!=0){return b}}c=c.parent()}}return 0}});a.extend(a.expr[":"],{data:function(c,d,b){return !!a.data(c,b[3])},focusable:function(d){var b=d.nodeName.toLowerCase(),c=a.attr(d,"tabindex");return(/input|select|textarea|button|object/.test(b)?!d.disabled:"a"==b||"area"==b?d.href||!isNaN(c):!isNaN(c))&&!a(d)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(c){var b=a.attr(c,"tabindex");return(isNaN(b)||b>=0)&&a(c).is(":focusable")}})})(jQuery);