/*! jquery ui - v1.10.4 - 2014-01-17
* http://jqueryui.com
* copyright 2014 jquery foundation and other contributors; licensed mit */
(function(e,t){function i(t,i){var a,n,r,o=t.nodename.tolowercase();return"area"===o?(a=t.parentnode,n=a.name,t.href&&n&&"map"===a.nodename.tolowercase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addback().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.4",keycode:{backspace:8,comma:188,delete:46,down:40,end:35,enter:13,escape:27,home:36,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,space:32,tab:9,up:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;settimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollparent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zindex:function(i){if(i!==t)return this.css("zindex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseint(n.css("zindex"),10),!isnan(a)&&0!==a))return a;n=n.parent()}return 0},uniqueid:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeuniqueid:function(){return this.each(function(){n.test(this.id)&&e(this).removeattr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createpseudo?e.expr.createpseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isnan(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isnan(s);return(a||s>=0)&&i(t,!a)}}),e("").outerwidth(1).jquery||e.each(["width","height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parsefloat(e.css(t,"padding"+this))||0,s&&(i-=parsefloat(e.css(t,"border"+this+"width"))||0),a&&(i-=parsefloat(e.css(t,"margin"+this))||0)}),i}var n="width"===s?["left","right"]:["top","bottom"],r=s.tolowercase(),o={innerwidth:e.fn.innerwidth,innerheight:e.fn.innerheight,outerwidth:e.fn.outerwidth,outerheight:e.fn.outerheight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addback||(e.fn.addback=function(e){return this.add(null==e?this.prevobject:this.prevobject.filter(e))}),e("").data("a-b","a").removedata("a-b").data("a-b")&&(e.fn.removedata=function(t){return function(i){return arguments.length?t.call(this,e.camelcase(i)):t.call(this)}}(e.fn.removedata)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.useragent.tolowercase()),e.support.selectstart="onselectstart"in document.createelement("div"),e.fn.extend({disableselection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableselection",function(e){e.preventdefault()})},enableselection:function(){return this.unbind(".ui-disableselection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentnode&&11!==e.element[0].parentnode.nodetype)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasscroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollleft":"scrolltop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jquery);