/*!
 * jQuery UI 1.8b1
 *
 * 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 1.8b1
 *
 * 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(g){var f=g.browser.mozilla&&(parseFloat(g.browser.version)<1.9);g.ui={version:"1.8b1",plugin:{add:function(j,k,m){var l=g.ui[j].prototype;for(var h in m){l.plugins[h]=l.plugins[h]||[];l.plugins[h].push([k,m[h]])}},call:function(h,k,j){var m=h.plugins[k];if(!m||!h.element[0].parentNode){return}for(var l=0;l<m.length;l++){if(h.options[m[l][0]]){m[l][1].apply(h.element,j)}}}},contains:function(i,h){return document.compareDocumentPosition?i.compareDocumentPosition(h)&16:i!==h&&i.contains(h)},hasScroll:function(k,i){if(g(k).css("overflow")=="hidden"){return false}var h=(i&&i=="left")?"scrollLeft":"scrollTop",j=false;if(k[h]>0){return true}k[h]=1;j=(k[h]>0);k[h]=0;return j},isOverAxis:function(i,h,j){return(i>h)&&(i<(h+j))},isOver:function(m,i,l,k,h,j){return g.ui.isOverAxis(m,l,h)&&g.ui.isOverAxis(i,k,j)},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}};if(f){var a=g.attr,d=g.fn.removeAttr,c="http://www.w3.org/2005/07/aaa",e=/^aria-/,b=/^wairole:/;g.attr=function(i,h,j){var k=j!==undefined;return(h=="role"?(k?a.call(this,i,h,"wairole:"+j):(a.apply(this,arguments)||"").replace(b,"")):(e.test(h)?(k?i.setAttributeNS(c,h.replace(e,"aaa:"),j):a.call(this,i,h.replace(e,"aaa:"))):a.apply(this,arguments)))};g.fn.removeAttr=function(h){return(e.test(h)?this.each(function(){this.removeAttributeNS(c,h.replace(e,""))}):d.call(this,h))}}g.fn.extend({_focus:g.fn.focus,focus:function(h,i){return typeof h==="number"?this.each(function(){var j=this;setTimeout(function(){g(j).focus();(i&&i.call(j))},h)}):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 h;if((g.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){h=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(g.curCSS(this,"position",1))&&(/(auto|scroll)/).test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0)}else{h=this.parents().filter(function(){return(/(auto|scroll)/).test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!h.length?g(document):h},zIndex:function(i){if(i!==undefined){return this.css("zIndex",i)}var h=this[0];while(h&&h.style){if(h.style.zIndex!==""&&h.style.zIndex!==0){return +h.style.zIndex}h=h.parentNode}return 0}});g.extend(g.expr[":"],{data:function(k,j,h){return !!g.data(k,h[3])},focusable:function(i){var j=i.nodeName.toLowerCase(),h=g.attr(i,"tabindex");return(/input|select|textarea|button|object/.test(j)?!i.disabled:"a"==j||"area"==j?i.href||!isNaN(h):!isNaN(h))&&!g(i)["area"==j?"parents":"closest"](":hidden").length},tabbable:function(i){var h=g.attr(i,"tabindex");return(isNaN(h)||h>=0)&&g(i).is(":focusable")}})})(jQuery);