/*
 * jQuery UI @VERSION
 *
 * 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(b){var a=b.browser.mozilla&&(parseFloat(b.browser.version)<1.9);b.ui={version:"@VERSION",plugin:{add:function(e,f,c){var d=b.ui[e].prototype;for(var g in c){d.plugins[g]=d.plugins[g]||[];d.plugins[g].push([f,c[g]])}},call:function(f,d,e){var c=f.plugins[d];if(!c||!f.element[0].parentNode){return}for(var g=0;g<c.length;g++){if(f.options[c[g][0]]){c[g][1].apply(f.element,e)}}}},contains:function(c,d){return document.compareDocumentPosition?c.compareDocumentPosition(d)&16:c!==d&&c.contains(d)},hasScroll:function(c,d){if(b(c).css("overflow")=="hidden"){return false}var e=(d&&d=="left")?"scrollLeft":"scrollTop",f=false;if(c[e]>0){return true}c[e]=1;f=(c[e]>0);c[e]=0;return f},isOverAxis:function(d,e,c){return(d>e)&&(d<(e+c))},isOver:function(d,c,e,h,f,g){return b.ui.isOverAxis(d,e,f)&&b.ui.isOverAxis(c,h,g)},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}};b.fn.extend({_focus:b.fn.focus,focus:function(d,c){return typeof d==="number"?this.each(function(){var e=this;setTimeout(function(){b(e).focus();(c&&c.call(e))},d)}):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 c;if((b.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){c=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{c=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"))||!c.length?b(document):c},zIndex:function(e){if(e!==undefined){return this.css("zIndex",e)}if(this.length){var d=b(this[0]),f,c;while(d.length&&d[0]!==document){f=d.css("position");if(f=="absolute"||f=="relative"||f=="fixed"){c=parseInt(d.css("zIndex"));if(!isNaN(c)&&c!=0){return c}}d=d.parent()}}return 0}});b.extend(b.expr[":"],{data:function(d,e,c){return !!b.data(d,c[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),d=b.attr(e,"tabindex");return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c||"area"==c?e.href||!isNaN(d):!isNaN(d))&&!b(e)["area"==c?"parents":"closest"](":hidden").length},tabbable:function(d){var c=b.attr(d,"tabindex");return(isNaN(c)||c>=0)&&b(d).is(":focusable")}})})(jQuery);
