").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});
$(document).ready(function() {
(function(a){function d(b,c,d,e){function f(d){var e=a[b][c][d]||[];return typeof e=="string"?e.split(/,?\s+/):e}var g=f("getter");if(e.length==1&&typeof e[0]=="string"){g=g.concat(f("getterSetter"))}return a.inArray(d,g)!=-1}function c(b){function c(a){var b=a.style;return b.display!="none"&&b.visibility!="hidden"}var d=c(b);d&&a.each(a.dir(b,"parentNode"),function(){return d=c(this)});return d}var b=a.fn.remove;a.fn.remove=function(){a("*",this).add(this).triggerHandler("remove");return b.apply(this,arguments)};a.extend(a.expr[":"],{data:function(b,c,d){return a.data(b,d[3])},tabbable:function(a,b,d){var e=a.nodeName.toLowerCase();return a.tabIndex>=0&&("a"==e&&a.href||/input|select|textarea|button/.test(e)&&"hidden"!=a.type&&!a.disabled)&&c(a)}});a.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.widget=function(b,c){var e=b.split(".")[0];b=b.split(".")[1];a.fn[b]=function(c){var f=typeof c=="string",g=Array.prototype.slice.call(arguments,1);if(f&&c.substring(0,1)=="_"){return this}if(f&&d(e,b,c,g)){var h=a.data(this[0],b);return h?h[c].apply(h,g):undefined}return this.each(function(){var d=a.data(this,b);!d&&!f&&a.data(this,b,new a[e][b](this,c));d&&f&&a.isFunction(d[c])&&d[c].apply(d,g)})};a[e][b]=function(c,d){var f=this;this.widgetName=b;this.widgetEventPrefix=a[e][b].eventPrefix||b;this.widgetBaseClass=e+"-"+b;this.options=a.extend({},a.widget.defaults,a[e][b].defaults,a.metadata&&a.metadata.get(c)[b],d);this.element=a(c).bind("setData."+b,function(a,b,c){return f._setData(b,c)}).bind("getData."+b,function(a,b){return f._getData(b)}).bind("remove",function(){return f.destroy()});this._init()};a[e][b].prototype=a.extend({},a.widget.prototype,c);a[e][b].getterSetter="option"};a.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(b,c){var d=b,e=this;if(typeof b=="string"){if(c===undefined){return this._getData(b)}d={};d[b]=c}a.each(d,function(a,b){e._setData(a,b)})},_getData:function(a){return this.options[a]},_setData:function(a,b){this.options[a]=b;if(a=="disabled"){this.element[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,c,d){var e=b==this.widgetEventPrefix?b:this.widgetEventPrefix+b;c=c||a.event.fix({type:e,target:this.element[0]});return this.element.triggerHandler(e,[c,d],this.options[b])}};a.widget.defaults={disabled:false};a.ui={plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d){e.plugins[f]=e.plugins[f]||[];e.plugins[f].push([c,d[f]])}},call:function(a,b,c){var d=a.plugins[b];if(!d){return}for(var e=0;e
').addClass(b).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");a.ui.cssCache[b]=!!(!/auto|default/.test(c.css("cursor"))||/^[1-9]/.test(c.css("height"))||/^[1-9]/.test(c.css("width"))||!/none/.test(c.css("backgroundImage"))||!/transparent|rgba\(0, 0, 0, 0\)/.test(c.css("backgroundColor")));try{a("body").get(0).removeChild(c.get(0))}catch(d){}return a.ui.cssCache[b]},disableSelection:function(b){return a(b).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(b){return a(b).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},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}};a.ui.mouse={_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)});if(a.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(b){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,d=b.which==1,e=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return false}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(b)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){function f(b,c){return c?typeof c=="number"?b.filter(":eq("+c+")"):b.not(b.not(c)):c===false?a([]):b.filter(":eq(0)")}function e(b){var c=a.data(this,"accordion").options;if(c.disabled){return false}if(!b.target&&!c.alwaysOpen){c.active.parent().andSelf().toggleClass(c.selectedClass);var e=c.active.next(),f={options:c,newHeader:jQuery([]),oldHeader:c.active,newContent:jQuery([]),oldContent:e},g=c.active=a([]);d.call(this,g,e,f);return false}var h=a(b.target);h=a(h.parents(c.header)[0]||h);var i=h[0]==c.active[0];if(c.running||c.alwaysOpen&&i){return false}if(!h.is(c.header)){return}c.active.parent().andSelf().toggleClass(c.selectedClass);if(!i){h.parent().andSelf().addClass(c.selectedClass)}var g=h.next(),e=c.active.next(),f={options:c,newHeader:i&&!c.alwaysOpen?a([]):h,oldHeader:c.active,newContent:i&&!c.alwaysOpen?a([]):g,oldContent:e},j=c.headers.index(c.active[0])>c.headers.index(h[0]);c.active=i?a([]):h;d.call(this,g,e,f,i,j);return false}function d(d,e,f,g,h){var i=a.data(this,"accordion").options;i.toShow=d;i.toHide=e;i.data=f;var j=b(c,this);a.data(this,"accordion")._trigger("changestart",null,i.data);i.running=e.size()===0?d.size():e.size();if(i.animated){if(!i.alwaysOpen&&g){a.ui.accordion.animations[i.animated]({toShow:jQuery([]),toHide:e,complete:j,down:h,autoHeight:i.autoHeight})}else{a.ui.accordion.animations[i.animated]({toShow:d,toHide:e,complete:j,down:h,autoHeight:i.autoHeight})}}else{if(!i.alwaysOpen&&g){d.toggle()}else{e.hide();d.show()}j(true)}}function c(b){if(!a.data(this,"accordion")){return}var c=a.data(this,"accordion");var d=c.options;d.running=b?0:--d.running;if(d.running){return}if(d.clearStyle){d.toShow.add(d.toHide).css({height:"",overflow:""})}c._trigger("change",null,d.data)}function b(a,b){return function(){return a.apply(b,arguments)}}a.widget("ui.accordion",{_init:function(){var b=this.options;if(b.navigation){var c=this.element.find("a").filter(b.navigationFilter);if(c.length){if(c.filter(b.header).length){b.active=c}else{b.active=c.parent().parent().prev();c.addClass("current")}}}b.headers=this.element.find(b.header);b.active=f(b.headers,b.active);if(a.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");a('').insertBefore(b.headers);a('').appendTo(b.headers);b.headers.addClass("ui-accordion-header").attr("tabindex","0")}var d;if(b.fillSpace){d=this.element.parent().height();b.headers.each(function(){d-=a(this).outerHeight()});var g=0;b.headers.next().each(function(){g=Math.max(g,a(this).innerHeight()-a(this).height())}).height(d-g)}else if(b.autoHeight){d=0;b.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}b.headers.not(b.active||"").next().hide();b.active.parent().andSelf().addClass(b.selectedClass);if(b.event){this.element.bind(b.event+".accordion",e)}},activate:function(a){e.call(this.element[0],{target:f(this.options.headers,a)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}a.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});a.extend(a.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size()){b.toShow.animate({height:"show"},b);return}var d=b.toHide.height(),e=b.toShow.height(),f=e/d;b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate({height:"hide"},{step:function(c){var e=(d-c)*f;if(a.browser.msie||a.browser.opera){e=Math.ceil(e)}b.toShow.height(e)},duration:b.duration,easing:b.easing,complete:function(){if(!b.autoHeight){b.toShow.css("height","auto")}b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"bounceout":"swing",duration:a.down?1e3:200})},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700})}}})})(jQuery);(function(a){a.widget("ui.autocomplete",{_init:function(){a.extend(this.options,{delay:this.options.url?a.Autocompleter.defaults.delay:10,max:!this.options.scroll?10:150,highlight:this.options.highlight||function(a){return a},formatMatch:this.options.formatMatch||this.options.formatItem});new a.Autocompleter(this.element[0],this.options)},result:function(a){return this.element.bind("result",a)},search:function(a){return this.element.trigger("search",[a])},flushCache:function(){return this.element.trigger("flushCache")},setData:function(a,b){return this.element.trigger("setOptions",[{key:b}])},destroy:function(){return this.element.trigger("unautocomplete")}});a.Autocompleter=function(b,c){function x(){e.removeClass(c.loadingClass)}function w(b){var d=[];var e=b.split("\n");for(var f=0;f0){var i={timestamp:+(new Date)};a.each(c.extraParams,function(a,b){i[a]=typeof b=="function"?b():b});a.ajax({mode:"abort",port:"autocomplete"+b.name,dataType:c.dataType,url:c.url,data:a.extend({q:q(d),limit:c.max},i),success:function(a){var b=c.parse&&c.parse(a)||w(a);h.add(d,b);e(d,b)}})}else if(c.source&&typeof c.source=="function"){var j=c.source(d);var k=c.parse?c.parse(j):j;h.add(d,k);e(d,k)}else{l.emptyList();f(d)}}function u(a,b){if(b&&b.length&&i){x();l.display(b,a);r(a,b[0].value);l.show()}else{t()}}function t(){var d=l.visible();l.hide();clearTimeout(f);x();if(c.mustMatch){e.autocomplete("search",function(a){if(!a){if(c.multiple){var b=p(e.val()).slice(0,-1);e.val(b.join(c.multipleSeparator)+(b.length?c.multipleSeparator:""))}else e.val("")}})}if(d)a.Autocompleter.Selection(b,b.value.length,b.value.length)}function s(){clearTimeout(f);f=setTimeout(t,200)}function r(f,h){if(c.autoFill&&q(e.val()).toLowerCase()==f.toLowerCase()&&j!=d.BACKSPACE){e.val(e.val()+h.substring(q(g).length));a.Autocompleter.Selection(b,g.length,g.length+h.length)}}function q(a){if(!c.multiple)return a;var b=p(a);return b[b.length-1]}function p(b){if(!b){return[""]}var d=b.split(c.multipleSeparator);var e=[];a.each(d,function(b,c){if(a.trim(c))e[b]=a.trim(c)});return e}function o(a,b){if(j==d.DEL){l.hide();return}var f=e.val();if(!b&&f==g)return;g=f;f=q(f);if(f.length>=c.minChars){e.addClass(c.loadingClass);if(!c.matchCase)f=f.toLowerCase();v(f,u,t)}else{x();l.hide()}}function n(){var a=l.selected();if(!a)return false;var b=a.result;g=b;if(c.multiple){var d=p(e.val());if(d.length>1){b=d.slice(0,d.length-1).join(c.multipleSeparator)+c.multipleSeparator+b}b+=c.multipleSeparator}e.val(b);t();e.trigger("result",[a.data,a.value]);return true}var d={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var e=a(b).attr("autocomplete","off").addClass(c.inputClass);if(c.result)e.bind("result.autocomplete",c.result);var f;var g="";var h=a.Autocompleter.Cache(c);var i=0;var j;var k={mouseDownOnSelect:false};var l=a.Autocompleter.Select(c,b,n,k);var m;a.browser.opera&&a(b.form).bind("submit.autocomplete",function(){if(m){m=false;return false}});e.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(b){j=b.keyCode;switch(b.keyCode){case d.UP:b.preventDefault();if(l.visible()){l.prev()}else{o(0,true)}break;case d.DOWN:b.preventDefault();if(l.visible()){l.next()}else{o(0,true)}break;case d.PAGEUP:b.preventDefault();if(l.visible()){l.pageUp()}else{o(0,true)}break;case d.PAGEDOWN:b.preventDefault();if(l.visible()){l.pageDown()}else{o(0,true)}break;case c.multiple&&a.trim(c.multipleSeparator)==","&&d.COMMA:case d.TAB:case d.RETURN:if(n()){b.preventDefault();m=true;return false}break;case d.ESC:l.hide();break;default:clearTimeout(f);f=setTimeout(o,c.delay);break}}).focus(function(){i++}).blur(function(){i=0;if(!k.mouseDownOnSelect){s()}}).click(function(){if(i++>1&&!l.visible()){o(0,true)}}).bind("search",function(){function c(a,c){var d;if(c&&c.length){for(var f=0;f1?arguments[1]:null;a.each(p(e.val()),function(a,b){v(b,c,c)})}).bind("flushCache",function(){h.flush()}).bind("setOptions",function(){a.extend(c,arguments[1]);if("data"in arguments[1])h.populate()}).bind("unautocomplete",function(){l.unbind();e.unbind();a(b.form).unbind(".autocomplete")});};a.Autocompleter.defaults={inputClass:"ui-autocomplete-input",resultsClass:"ui-autocomplete-results",loadingClass:"ui-autocomplete-loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(a){return a[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:true,scrollHeight:180};a.extend(a.ui.autocomplete,{defaults:a.Autocompleter.defaults});a.Autocompleter.Cache=function(b){function h(){c={};d=0}function g(){if(!b.data)return false;var c={},d=0;if(!b.url)b.cacheLength=1;c[""]=[];for(var e=0,g=b.data.length;eb.cacheLength){h()}if(!c[a]){d++}c[a]=e}function e(a,c){if(!b.matchCase)a=a.toLowerCase();var d=a.indexOf(c);if(d==-1)return false;return d==0||b.matchContains}var c={};var d=0;setTimeout(g,25);return{flush:h,add:f,populate:g,load:function(f){if(!b.cacheLength||!d)return null;if(!b.url&&b.matchContains){var g=[];for(var h in c){if(h.length>0){var i=c[h];a.each(i,function(a,b){if(e(b.value,f)){g.push(b)}})}}return g}else if(c[f]){return c[f]}else if(b.matchSubset){for(var j=f.length-1;j>=b.minChars;j--){var i=c[f.substr(0,j)];if(i){var g=[];a.each(i,function(a,b){if(e(b.value,f)){g[g.length]=b}});return g}}}return null}}};a.Autocompleter.Select=function(b,c,d,e){function s(){m.empty();var c=r(i.length);for(var d=0;d").html(b.highlight(e,j)).addClass(d%2==0?"ui-autocomplete-even":"ui-autocomplete-odd").appendTo(m)[0];a.data(k,"ui-autocomplete-data",i[d])}g=m.find("li");if(b.selectFirst){g.slice(0,1).addClass(f.ACTIVE);h=0}if(a.fn.bgiframe)m.bgiframe()}function r(a){return b.max&&b.max=g.size()){h=0}}function p(a){g.slice(h,h+1).removeClass(f.ACTIVE);q(a);var c=g.slice(h,h+1).addClass(f.ACTIVE);if(b.scroll){var d=0;g.slice(0,h).each(function(){d+=this.offsetHeight});if(d+c[0].offsetHeight-m.scrollTop()>m[0].clientHeight){m.scrollTop(d+c[0].offsetHeight-m.innerHeight())}else if(d").hide().addClass(b.resultsClass).css("position","absolute").appendTo(document.body);m=a("").appendTo(l).mouseover(function(b){if(o(b).nodeName&&o(b).nodeName.toUpperCase()=="LI"){h=a("li",m).removeClass(f.ACTIVE).index(o(b));a(o(b)).addClass(f.ACTIVE)}}).click(function(b){a(o(b)).addClass(f.ACTIVE);d();c.focus();return false}).mousedown(function(){e.mouseDownOnSelect=true}).mouseup(function(){e.mouseDownOnSelect=false});if(b.width>0)l.css("width",b.width);k=false}var f={ACTIVE:"ui-autocomplete-over"};var g,h=-1,i,j="",k=true,l,m;return{display:function(a,b){n();i=a;j=b;s()},next:function(){p(1)},prev:function(){p(-1)},pageUp:function(){if(h!=0&&h-8<0){p(-h)}else{p(-8)}},pageDown:function(){if(h!=g.size()-1&&h+8>g.size()){p(g.size()-1-h)}else{p(8)}},hide:function(){l&&l.hide();g&&g.removeClass(f.ACTIVE);h=-1;a(c).triggerHandler("autocompletehide",[{},{options:b}],b["hide"])},visible:function(){return l&&l.is(":visible")},current:function(){return this.visible()&&(g.filter("."+f.ACTIVE)[0]||b.selectFirst&&g[0])},show:function(){var d=a(c).offset();l.css({width:typeof b.width=="string"||b.width>0?b.width:a(c).width(),top:d.top+c.offsetHeight,left:d.left}).show();if(b.scroll){m.scrollTop(0);m.css({maxHeight:b.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var e=0;g.each(function(){e+=this.offsetHeight});var f=e>b.scrollHeight;m.css("height",f?b.scrollHeight:e);if(!f){g.width(m.width()-parseInt(g.css("padding-left"))-parseInt(g.css("padding-right")))}}}a(c).triggerHandler("autocompleteshow",[{},{options:b}],b["show"])},selected:function(){var b=g&&g.filter("."+f.ACTIVE).removeClass(f.ACTIVE);return b&&b.length&&a.data(b[0],"ui-autocomplete-data")},emptyList:function(){m&&m.empty()},unbind:function(){l&&l.remove()}}};a.Autocompleter.Selection=function(a,b,c){if(a.createTextRange){var d=a.createTextRange();d.collapse(true);d.moveStart("character",b);d.moveEnd("character",c);d.select()}else if(a.setSelectionRange){a.setSelectionRange(b,c)}else{if(a.selectionStart){a.selectionStart=b;a.selectionEnd=c}}a.focus()}})(jQuery);(function(a){a.widget("ui.tabs",{_init:function(){this.options.event+=".tabs";this._tabify(true)},_setData:function(a,b){if(/^selected/.test(a))this.select(b);else{this.options[a]=b;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},ui:function(a,b){return{options:this.options,tab:a,panel:b,index:this.$tabs.index(a)}},_tabify:function(b){function p(a,b,c,e){b.addClass(d.selectedClass).siblings().removeClass(d.selectedClass);n(a,c,e)}function o(b,e,f){if(j===k)e.css("display","block");e.animate(j,j.duration||l,function(){e.removeClass(d.hideClass).css(m);if(a.browser.msie&&j.opacity)e[0].style.filter="";c._trigger("show",null,c.ui(b,e[0]))})}function n(a,b,c){b.hide();o(a,c,b)}this.$lis=a("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return a("a",this)[0]});this.$panels=a([]);var c=this,d=this.options;this.$tabs.each(function(b,e){if(e.hash&&e.hash.replace("#",""))c.$panels=c.$panels.add(e.hash);else if(a(e).attr("href")!="#"){a.data(e,"href.tabs",e.href);a.data(e,"load.tabs",e.href);var f=c._tabId(e);e.href="#"+f;var g=a("#"+f);if(!g.length){g=a(d.panelTemplate).attr("id",f).addClass(d.panelClass).insertAfter(c.$panels[b-1]||c.element);g.data("destroy.tabs",true)}c.$panels=c.$panels.add(g)}else d.disabled.push(b+1)});if(b){this.element.addClass(d.navClass);this.$panels.each(function(){var b=a(this);b.addClass(d.panelClass)});if(d.selected===undefined){if(location.hash){this.$tabs.each(function(b,c){if(c.hash==location.hash){d.selected=b;if(a.browser.msie||a.browser.opera){var e=a(location.hash),f=e.attr("id");e.attr("id","");setTimeout(function(){e.attr("id",f)},500)}scrollTo(0,0);return false}})}else if(d.cookie){var e=parseInt(a.cookie("ui-tabs-"+a.data(c.element[0])),10);if(e&&c.$tabs[e])d.selected=e}else if(c.$lis.filter("."+d.selectedClass).length)d.selected=c.$lis.index(c.$lis.filter("."+d.selectedClass)[0])}d.selected=d.selected===null||d.selected!==undefined?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.$lis.filter("."+d.disabledClass),function(a,b){return c.$lis.index(a)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1)d.disabled.splice(a.inArray(d.selected,d.disabled),1);this.$panels.addClass(d.hideClass);this.$lis.removeClass(d.selectedClass);if(d.selected!==null){this.$panels.eq(d.selected).show().removeClass(d.hideClass);this.$lis.eq(d.selected).addClass(d.selectedClass);var f=function(){c._trigger("show",null,c.ui(c.$tabs[d.selected],c.$panels[d.selected]))};if(a.data(this.$tabs[d.selected],"load.tabs"))this.load(d.selected,f);else f()}a(window).bind("unload",function(){c.$tabs.unbind(".tabs");c.$lis=c.$tabs=c.$panels=null})}else d.selected=this.$lis.index(this.$lis.filter("."+d.selectedClass)[0]);if(d.cookie)a.cookie("ui-tabs-"+a.data(c.element[0]),d.selected,d.cookie);for(var g=0,h;h=this.$lis[g];g++)a(h)[a.inArray(g,d.disabled)!=-1&&!a(h).hasClass(d.selectedClass)?"addClass":"removeClass"](d.disabledClass);if(d.cache===false)this.$tabs.removeData("cache.tabs");var i,j,k={"min-width":0,duration:1},l="normal";if(d.fx&&d.fx.constructor==Array)i=d.fx[0]||k,j=d.fx[1]||k;else i=j=d.fx||k;var m={display:"",overflow:"",height:""};if(!a.browser.msie)m.opacity="";this.$tabs.unbind(".tabs").bind(d.event,function(){var b=a(this).parents("li:eq(0)"),e=c.$panels.filter(":visible"),f=a(this.hash);if(b.hasClass(d.selectedClass)&&!d.unselect||b.hasClass(d.disabledClass)||a(this).hasClass(d.loadingClass)||c._trigger("select",null,c.ui(this,f[0]))===false){this.blur();return false}c.options.selected=c.$tabs.index(this);if(d.unselect){if(b.hasClass(d.selectedClass)){c.options.selected=null;b.removeClass(d.selectedClass);c.$panels.stop();n(this,e);this.blur();return false}else if(!e.length){c.$panels.stop();var g=this;c.load(c.$tabs.index(this),function(){b.addClass(d.selectedClass).addClass(d.unselectClass);o(g,f)});this.blur();return false}}if(d.cookie)a.cookie("ui-tabs-"+a.data(c.element[0]),c.options.selected,d.cookie);c.$panels.stop();if(f.length){var g=this;c.load(c.$tabs.index(this),e.length?function(){p(g,b,e,f)}:function(){b.addClass(d.selectedClass);o(g,f)})}else throw"jQuery UI Tabs: Mismatching fragment identifier.";if(a.browser.msie)this.blur();return false});if(!/^click/.test(d.event))this.$tabs.bind("click.tabs",function(){return false})},add:function(b,c,d){if(d==undefined)d=this.$tabs.length;var e=this.options;var f=a(e.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,c));f.data("destroy.tabs",true);var g=b.indexOf("#")==0?b.replace("#",""):this._tabId(a("a:first-child",f)[0]);var h=a("#"+g);if(!h.length){h=a(e.panelTemplate).attr("id",g).addClass(e.hideClass).data("destroy.tabs",true)}h.addClass(e.panelClass);if(d>=this.$lis.length){f.appendTo(this.element);h.appendTo(this.element[0].parentNode)}else{f.insertBefore(this.$lis[d]);h.insertBefore(this.$panels[d])}e.disabled=a.map(e.disabled,function(a,b){return a>=d?++a:a});this._tabify();if(this.$tabs.length==1){f.addClass(e.selectedClass);h.removeClass(e.hideClass);var i=a.data(this.$tabs[0],"load.tabs");if(i)this.load(d,i)}this._trigger("add",null,this.ui(this.$tabs[d],this.$panels[d]))},remove:function(b){var c=this.options,d=this.$lis.eq(b).remove(),e=this.$panels.eq(b).remove();if(d.hasClass(c.selectedClass)&&this.$tabs.length>1)this.select(b+(b+1=b?--a:a});this._tabify();this._trigger("remove",null,this.ui(d.find("a")[0],e[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1)return;var d=this.$lis.eq(b).removeClass(c.disabledClass);if(a.browser.safari){d.css("display","inline-block");setTimeout(function(){d.css("display","block")},0)}c.disabled=a.grep(c.disabled,function(a,c){return a!=b});this._trigger("enable",null,this.ui(this.$tabs[b],this.$panels[b]))},disable:function(a){var b=this,c=this.options;if(a!=c.selected){this.$lis.eq(a).addClass(c.disabledClass);c.disabled.push(a);c.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[a],this.$panels[a]))}},select:function(a){if(typeof a=="string")a=this.$tabs.index(this.$tabs.filter("[href$="+a+"]")[0]);this.$tabs.eq(a).trigger(this.options.event)},load:function(b,c){var d=this,e=this.options,f=this.$tabs.eq(b),g=f[0],h=c==undefined||c===false,i=f.data("load.tabs");c=c||function(){};if(!i||!h&&a.data(g,"cache.tabs")){c();return}var j=function(b){var c=a(b),d=c.find("*:last");return d.length&&d.is(":not(img)")&&d||c};var k=function(){d.$tabs.filter("."+e.loadingClass).removeClass(e.loadingClass).each(function(){if(e.spinner)j(this).parent().html(j(this).data("label.tabs"))});d.xhr=null};if(e.spinner){var l=j(g).html();j(g).wrapInner("").find("em").data("label.tabs",l).html(e.spinner)}var m=a.extend({},e.ajaxOptions,{url:i,success:function(f,h){a(g.hash).html(f);k();if(e.cache)a.data(g,"cache.tabs",true);d._trigger("load",null,d.ui(d.$tabs[b],d.$panels[b]));e.ajaxOptions.success&&e.ajaxOptions.success(f,h);c()}});if(this.xhr){this.xhr.abort();k()}f.addClass(e.loadingClass);setTimeout(function(){d.xhr=a.ajax(m)},0)},url:function(a,b){this.$tabs.eq(a).removeData("cache.tabs").data("load.tabs",b)},destroy:function(){var b=this.options;this.element.unbind(".tabs").removeClass(b.navClass).removeData("tabs");this.$tabs.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})});this.$lis.add(this.$panels).each(function(){if(a.data(this,"destroy.tabs"))a(this).remove();else a(this).removeClass([b.selectedClass,b.unselectClass,b.disabledClass,b.panelClass,b.hideClass].join(" "))})}});a.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading…",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:"",panelTemplate:"",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};a.ui.tabs.getter="length";a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){function f(a){if(!a||a.clientX){clearInterval(c.rotation)}}function e(){c.rotation=setInterval(function(){d=++dthis.pp.left-d.distance&&c[0]this.pp.top-d.distance&&c[1] *"}})})(jQuery);(function(a){function c(a,c){var d;do{d=jQuery.curCSS(a,c);if(d!=""&&d!="transparent"||jQuery.nodeName(a,"body"))break;c="backgroundColor"}while(a=a.parentNode);return b(d)}function b(a){var b;if(a&&a.constructor==Array&&a.length==3)return a;if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))return[parseInt(b[1]),parseInt(b[2]),parseInt(b[3])];if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55];if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)];if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)];if(b=/rgba\(0, 0, 0, 0\)/.exec(a))return d["transparent"];return d[jQuery.trim(a).toLowerCase()]}a.effects=a.effects||{};a.extend(a.effects,{save:function(b,c){for(var d=0;d ');var c=a.parent();if(a.css("position")=="static"){c.css({position:"relative"});a.css({position:"relative"})}else{var d=a.css("top");if(isNaN(parseInt(d)))d="auto";var e=a.css("left");if(isNaN(parseInt(e)))e="auto";c.css({position:a.css("position"),top:d,left:e,zIndex:a.css("z-index")}).show();a.css({position:"relative",top:0,left:0})}c.css(b);return c},removeWrapper:function(a){if(a.parent().attr("id")=="fxWrapper")return a.parent().replaceWith(a);return a},setTransition:function(b,c,d,e){e=e||{};a.each(c,function(a,c){unit=b.cssUnit(c);if(unit[0]>0)e[c]=unit[0]*d+unit[1]});return e},animateClass:function(b,c,d,e){var f=typeof d=="function"?d:e?e:null;var g=typeof d=="object"?d:null;return this.each(function(){var d={};var e=a(this);var h=e.attr("style")||"";if(typeof h=="object")h=h["cssText"];if(b.toggle){e.hasClass(b.toggle)?b.remove=b.toggle:b.add=b.toggle}var i=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);if(b.add)e.addClass(b.add);if(b.remove)e.removeClass(b.remove);var j=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);if(b.add)e.removeClass(b.add);if(b.remove)e.addClass(b.remove);for(var k in j){if(typeof j[k]!="function"&&j[k]&&k.indexOf("Moz")==-1&&k.indexOf("length")==-1&&j[k]!=i[k]&&(k.match(/color/i)||!k.match(/color/i)&&!isNaN(parseInt(j[k],10)))&&(i.position!="static"||i.position=="static"&&!k.match(/left|top|bottom|right/)))d[k]=j[k]}e.animate(d,c,g,function(){if(typeof a(this).attr("style")=="object"){a(this).attr("style")["cssText"]="";a(this).attr("style")["cssText"]=h}else a(this).attr("style",h);if(b.add)a(this).addClass(b.add);if(b.remove)a(this).removeClass(b.remove);if(f)f.apply(this,arguments)})})}});a.fn.extend({_show:a.fn.show,_hide:a.fn.hide,__toggle:a.fn.toggle,_addClass:a.fn.addClass,_removeClass:a.fn.removeClass,_toggleClass:a.fn.toggleClass,effect:function(b,c,d,e){return a.effects[b]?a.effects[b].call(this,{method:b,options:c||{},duration:d,callback:e}):null},show:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._show.apply(this,arguments);else{var a=arguments[1]||{};a["mode"]="show";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])}},hide:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._hide.apply(this,arguments);else{var a=arguments[1]||{};a["mode"]="hide";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])}},toggle:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||arguments[0].constructor==Function)return this.__toggle.apply(this,arguments);else{var a=arguments[1]||{};a["mode"]="toggle";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])}},addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},toggleClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{toggle:b},c,d,e]):this._toggleClass(b)},morph:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(b){var c=this.css(b),d=[];a.each(["em","px","%","pt"],function(a,b){if(c.indexOf(b)>0)d=[parseFloat(c),b]});return d}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(a,d){jQuery.fx.step[d]=function(a){if(a.state==0){a.start=c(a.elem,d);a.end=b(a.end)}a.elem.style[d]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h