(function(b,d){function g(c,i,l){if(l===d&&c.nodeType===1){l=c.getAttribute("data-"+i);if(typeof l==="string"){try{l=l==="true"?true:l==="false"?false:l==="null"?null:!j.isNaN(l)?parseFloat(l):ma.test(l)?j.parseJSON(l):l}catch(m){}j.data(c,i,l)}else l=d}return l}function h(c){for(var i in c)if(i!=="toJSON")return false;return true}function f(){return false}function a(){return true}function e(c,i,l){var m=j.extend({},l[0]);m.type=c;m.originalEvent={};m.liveFired=d;j.event.handle.call(i,m);m.isDefaultPrevented()&&
l[0].preventDefault()}function k(c){var i,l,m,p,u,y,G,E,C,L,T,$=[];p=[];u=j._data(this,"events");if(!(c.liveFired===this||!u||!u.live||c.target.disabled||c.button&&c.type==="click")){if(c.namespace)T=RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");c.liveFired=this;var W=u.live.slice(0);for(G=0;G<W.length;G++){u=W[G];u.origType.replace(na,"")===c.type?p.push(u.selector):W.splice(G--,1)}p=j(c.target).closest(p,c.currentTarget);E=0;for(C=p.length;E<C;E++){L=p[E];for(G=0;G<W.length;G++){u=
W[G];if(L.selector===u.selector&&(!T||T.test(u.namespace))&&!L.elem.disabled){y=L.elem;m=null;if(u.preType==="mouseenter"||u.preType==="mouseleave"){c.type=u.preType;m=j(c.relatedTarget).closest(u.selector)[0]}if(!m||m!==y)$.push({elem:y,handleObj:u,level:L.level})}}}E=0;for(C=$.length;E<C;E++){p=$[E];if(l&&p.level>l)break;c.currentTarget=p.elem;c.data=p.handleObj.data;c.handleObj=p.handleObj;T=p.handleObj.origHandler.apply(p.elem,arguments);if(T===false||c.isPropagationStopped()){l=p.level;if(T===
false)i=false;if(c.isImmediatePropagationStopped())break}}return i}}function o(c,i){return(c&&c!=="*"?c+".":"")+i.replace(fa,"`").replace(Oa,"&")}function q(c,i,l){if(j.isFunction(i))return j.grep(c,function(p,u){return!!i.call(p,u,p)===l});else if(i.nodeType)return j.grep(c,function(p){return p===i===l});else if(typeof i==="string"){var m=j.grep(c,function(p){return p.nodeType===1});if(pb.test(i))return j.filter(i,m,!l);else i=j.filter(i,m)}return j.grep(c,function(p){return j.inArray(p,i)>=0===
l})}function x(c,i){if(!(i.nodeType!==1||!j.hasData(c))){var l=j.expando,m=j.data(c),p=j.data(i,m);if(m=m[l]){var u=m.events;p=p[l]=j.extend({},m);if(u){delete p.handle;p.events={};for(var y in u){l=0;for(m=u[y].length;l<m;l++)j.event.add(i,y+(u[y][l].namespace?".":"")+u[y][l].namespace,u[y][l],u[y][l].data)}}}}}function s(c,i){if(i.nodeType===1){var l=i.nodeName.toLowerCase();i.clearAttributes();i.mergeAttributes(c);if(l==="object")i.outerHTML=c.outerHTML;else if(l==="input"&&(c.type==="checkbox"||
c.type==="radio")){if(c.checked)i.defaultChecked=i.checked=c.checked;if(i.value!==c.value)i.value=c.value}else if(l==="option")i.selected=c.defaultSelected;else if(l==="input"||l==="textarea")i.defaultValue=c.defaultValue;i.removeAttribute(j.expando)}}function n(c){return"getElementsByTagName"in c?c.getElementsByTagName("*"):"querySelectorAll"in c?c.querySelectorAll("*"):[]}function v(c,i){i.src?j.ajax({url:i.src,async:false,dataType:"script"}):j.globalEval(i.text||i.textContent||i.innerHTML||"");
i.parentNode&&i.parentNode.removeChild(i)}function z(c,i,l){var m=i==="width"?c.offsetWidth:c.offsetHeight;if(l==="border")return m;j.each(i==="width"?qb:rb,function(){l||(m-=parseFloat(j.css(c,"padding"+this))||0);if(l==="margin")m+=parseFloat(j.css(c,"margin"+this))||0;else m-=parseFloat(j.css(c,"border"+this+"Width"))||0});return m}function B(c){return function(i,l){if(typeof i!=="string"){l=i;i="*"}if(j.isFunction(l))for(var m=i.toLowerCase().split($a),p=0,u=m.length,y,G;p<u;p++){y=m[p];if(G=
/^\+/.test(y))y=y.substr(1)||"*";y=c[y]=c[y]||[];y[G?"unshift":"push"](l)}}}function J(c,i,l,m,p,u){p=p||i.dataTypes[0];u=u||{};u[p]=true;p=c[p];for(var y=0,G=p?p.length:0,E=c===Wa,C;y<G&&(E||!C);y++){C=p[y](i,l,m);if(typeof C==="string")if(!E||u[C])C=d;else{i.dataTypes.unshift(C);C=J(c,i,l,m,C,u)}}if((E||!C)&&!u["*"])C=J(c,i,l,m,"*",u);return C}function P(c,i,l,m){if(j.isArray(i)&&i.length)j.each(i,function(u,y){l||sb.test(c)?m(c,y):P(c+"["+(typeof y==="object"||j.isArray(y)?u:"")+"]",y,l,m)});else if(!l&&
i!=null&&typeof i==="object")if(j.isArray(i)||j.isEmptyObject(i))m(c,"");else for(var p in i)P(c+"["+p+"]",i[p],l,m);else m(c,i)}function S(){j(b).unload(function(){for(var c in Da)Da[c](0,1)})}function X(){try{return new b.XMLHttpRequest}catch(c){}}function Y(c,i){var l={};j.each(ab.concat.apply([],ab.slice(0,i)),function(){l[this]=c});return l}function aa(c){if(!Xa[c]){var i=j("<"+c+">").appendTo("body"),l=i.css("display");i.remove();if(l==="none"||l==="")l="block";Xa[c]=l}return Xa[c]}function la(c){return j.isWindow(c)?
c:c.nodeType===9?c.defaultView||c.parentWindow:false}var O=b.document,j=function(){function c(){if(!i.isReady){try{O.documentElement.doScroll("left")}catch(w){setTimeout(c,1);return}i.ready()}}var i=function(w,K){return new i.fn.init(w,K,p)},l=b.jQuery,m=b.$,p,u=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,y=/\S/,G=/^\s+/,E=/\s+$/,C=/\d/,L=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,T=/^[\],:{}\s]*$/,$=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ba=/(?:^|:|,)(?:\s*\[)+/g,
ha=/(webkit)[ \/]([\w.]+)/,da=/(opera)(?:.*version)?[ \/]([\w.]+)/,ka=/(msie) ([\w.]+)/,ra=/(mozilla)(?:.*? rv:([\w.]+))?/,r=navigator.userAgent,A=false,H,D="then done fail isResolved isRejected promise".split(" "),F,I=Object.prototype.toString,R=Object.prototype.hasOwnProperty,Q=Array.prototype.push,Z=Array.prototype.slice,oa=String.prototype.trim,ja=Array.prototype.indexOf,ia={};i.fn=i.prototype={constructor:i,init:function(w,K,M){var N;if(!w)return this;if(w.nodeType){this.context=this[0]=w;this.length=
1;return this}if(w==="body"&&!K&&O.body){this.context=O;this[0]=O.body;this.selector="body";this.length=1;return this}if(typeof w==="string")if((N=u.exec(w))&&(N[1]||!K))if(N[1]){M=(K=K instanceof i?K[0]:K)?K.ownerDocument||K:O;if(w=L.exec(w))if(i.isPlainObject(K)){w=[O.createElement(w[1])];i.fn.attr.call(w,K,true)}else w=[M.createElement(w[1])];else{w=i.buildFragment([N[1]],[M]);w=(w.cacheable?i.clone(w.fragment):w.fragment).childNodes}return i.merge(this,w)}else{if((K=O.getElementById(N[2]))&&K.parentNode){if(K.id!==
N[2])return M.find(w);this.length=1;this[0]=K}this.context=O;this.selector=w;return this}else return!K||K.jquery?(K||M).find(w):this.constructor(K).find(w);else if(i.isFunction(w))return M.ready(w);if(w.selector!==d){this.selector=w.selector;this.context=w.context}return i.makeArray(w,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return Z.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,
K,M){var N=this.constructor();i.isArray(w)?Q.apply(N,w):i.merge(N,w);N.prevObject=this;N.context=this.context;if(K==="find")N.selector=this.selector+(this.selector?" ":"")+M;else if(K)N.selector=this.selector+"."+K+"("+M+")";return N},each:function(w,K){return i.each(this,w,K)},ready:function(w){i.bindReady();H.done(w);return this},eq:function(w){return w===-1?this.slice(w):this.slice(w,+w+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Z.apply(this,
arguments),"slice",Z.call(arguments).join(","))},map:function(w){return this.pushStack(i.map(this,function(K,M){return w.call(K,M,K)}))},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var w,K,M,N,U,V=arguments[0]||{},ca=1,ea=arguments.length,pa=false;if(typeof V==="boolean"){pa=V;V=arguments[1]||{};ca=2}if(typeof V!=="object"&&!i.isFunction(V))V={};if(ea===ca){V=this;--ca}for(;ca<ea;ca++)if((w=
arguments[ca])!=null)for(K in w){M=V[K];N=w[K];if(V!==N)if(pa&&N&&(i.isPlainObject(N)||(U=i.isArray(N)))){if(U){U=false;M=M&&i.isArray(M)?M:[]}else M=M&&i.isPlainObject(M)?M:{};V[K]=i.extend(pa,M,N)}else if(N!==d)V[K]=N}return V};i.extend({noConflict:function(w){b.$=m;if(w)b.jQuery=l;return i},isReady:false,readyWait:1,ready:function(w){w===true&&i.readyWait--;if(!i.readyWait||w!==true&&!i.isReady){if(!O.body)return setTimeout(i.ready,1);i.isReady=true;if(!(w!==true&&--i.readyWait>0)){H.resolveWith(O,
[i]);i.fn.trigger&&i(O).trigger("ready").unbind("ready")}}},bindReady:function(){if(!A){A=true;if(O.readyState==="complete")return setTimeout(i.ready,1);if(O.addEventListener){O.addEventListener("DOMContentLoaded",F,false);b.addEventListener("load",i.ready,false)}else if(O.attachEvent){O.attachEvent("onreadystatechange",F);b.attachEvent("onload",i.ready);var w=false;try{w=b.frameElement==null}catch(K){}O.documentElement.doScroll&&w&&c()}}},isFunction:function(w){return i.type(w)==="function"},isArray:Array.isArray||
function(w){return i.type(w)==="array"},isWindow:function(w){return w&&typeof w==="object"&&"setInterval"in w},isNaN:function(w){return w==null||!C.test(w)||isNaN(w)},type:function(w){return w==null?String(w):ia[I.call(w)]||"object"},isPlainObject:function(w){if(!w||i.type(w)!=="object"||w.nodeType||i.isWindow(w))return false;if(w.constructor&&!R.call(w,"constructor")&&!R.call(w.constructor.prototype,"isPrototypeOf"))return false;for(var K in w);return K===d||R.call(w,K)},isEmptyObject:function(w){for(var K in w)return false;
return true},error:function(w){throw w;},parseJSON:function(w){if(typeof w!=="string"||!w)return null;w=i.trim(w);if(T.test(w.replace($,"@").replace(W,"]").replace(ba,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(w):(new Function("return "+w))();else i.error("Invalid JSON: "+w)},parseXML:function(w,K,M){if(b.DOMParser){M=new DOMParser;K=M.parseFromString(w,"text/xml")}else{K=new ActiveXObject("Microsoft.XMLDOM");K.async="false";K.loadXML(w)}M=K.documentElement;if(!M||!M.nodeName||M.nodeName==="parsererror")i.error("Invalid XML: "+
w);return K},noop:function(){},globalEval:function(w){if(w&&y.test(w)){var K=O.head||O.getElementsByTagName("head")[0]||O.documentElement,M=O.createElement("script");if(i.support.scriptEval())M.appendChild(O.createTextNode(w));else M.text=w;K.insertBefore(M,K.firstChild);K.removeChild(M)}},nodeName:function(w,K){return w.nodeName&&w.nodeName.toUpperCase()===K.toUpperCase()},each:function(w,K,M){var N,U=0,V=w.length,ca=V===d||i.isFunction(w);if(M)if(ca)for(N in w){if(K.apply(w[N],M)===false)break}else for(;U<
V;){if(K.apply(w[U++],M)===false)break}else if(ca)for(N in w){if(K.call(w[N],N,w[N])===false)break}else for(M=w[0];U<V&&K.call(M,U,M)!==false;M=w[++U]);return w},trim:oa?function(w){return w==null?"":oa.call(w)}:function(w){return w==null?"":w.toString().replace(G,"").replace(E,"")},makeArray:function(w,K){var M=K||[];if(w!=null){var N=i.type(w);w.length==null||N==="string"||N==="function"||N==="regexp"||i.isWindow(w)?Q.call(M,w):i.merge(M,w)}return M},inArray:function(w,K){if(K.indexOf)return K.indexOf(w);
for(var M=0,N=K.length;M<N;M++)if(K[M]===w)return M;return-1},merge:function(w,K){var M=w.length,N=0;if(typeof K.length==="number")for(var U=K.length;N<U;N++)w[M++]=K[N];else for(;K[N]!==d;)w[M++]=K[N++];w.length=M;return w},grep:function(w,K,M){var N=[],U;M=!!M;for(var V=0,ca=w.length;V<ca;V++){U=!!K(w[V],V);M!==U&&N.push(w[V])}return N},map:function(w,K,M){for(var N=[],U,V=0,ca=w.length;V<ca;V++){U=K(w[V],V,M);if(U!=null)N[N.length]=U}return N.concat.apply([],N)},guid:1,proxy:function(w,K,M){if(arguments.length===
2)if(typeof K==="string"){M=w;w=M[K];K=d}else if(K&&!i.isFunction(K)){M=K;K=d}if(!K&&w)K=function(){return w.apply(M||this,arguments)};if(w)K.guid=w.guid=w.guid||K.guid||i.guid++;return K},access:function(w,K,M,N,U,V){var ca=w.length;if(typeof K==="object"){for(var ea in K)i.access(w,ea,K[ea],N,U,M);return w}if(M!==d){N=!V&&N&&i.isFunction(M);for(ea=0;ea<ca;ea++)U(w[ea],K,N?M.call(w[ea],ea,U(w[ea],K)):M,V);return w}return ca?U(w[0],K):d},now:function(){return(new Date).getTime()},_Deferred:function(){var w=
[],K,M,N,U={done:function(){if(!N){var V=arguments,ca,ea,pa,Ka,ta;if(K){ta=K;K=0}ca=0;for(ea=V.length;ca<ea;ca++){pa=V[ca];Ka=i.type(pa);if(Ka==="array")U.done.apply(U,pa);else Ka==="function"&&w.push(pa)}ta&&U.resolveWith(ta[0],ta[1])}return this},resolveWith:function(V,ca){if(!N&&!K&&!M){M=1;try{for(;w[0];)w.shift().apply(V,ca)}catch(ea){throw ea;}finally{K=[V,ca];M=0}}return this},resolve:function(){U.resolveWith(i.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return!!(M||
K)},cancel:function(){N=1;w=[];return this}};return U},Deferred:function(w){var K=i._Deferred(),M=i._Deferred(),N;i.extend(K,{then:function(U,V){K.done(U).fail(V);return this},fail:M.done,rejectWith:M.resolveWith,reject:M.resolve,isRejected:M.isResolved,promise:function(U){if(U==null){if(N)return N;N=U={}}for(var V=D.length;V--;)U[D[V]]=K[D[V]];return U}});K.done(M.cancel).fail(K.cancel);delete K.cancel;w&&w.call(K,K);return K},when:function(w){var K=arguments.length,M=K<=1&&w&&i.isFunction(w.promise)?
w:i.Deferred(),N=M.promise();if(K>1){for(var U=Z.call(arguments,0),V=K,ca=function(ea){return function(pa){U[ea]=arguments.length>1?Z.call(arguments,0):pa;--V||M.resolveWith(N,U)}};K--;)if((w=U[K])&&i.isFunction(w.promise))w.promise().then(ca(K),M.reject);else--V;V||M.resolveWith(N,U)}else M!==w&&M.resolve(w);return N},uaMatch:function(w){w=w.toLowerCase();w=ha.exec(w)||da.exec(w)||ka.exec(w)||w.indexOf("compatible")<0&&ra.exec(w)||[];return{browser:w[1]||"",version:w[2]||"0"}},sub:function(){function w(M,
N){return new w.fn.init(M,N)}i.extend(true,w,this);w.superclass=this;w.fn=w.prototype=this();w.fn.constructor=w;w.subclass=this.subclass;w.fn.init=function(M,N){if(N&&N instanceof i&&!(N instanceof w))N=w(N);return i.fn.init.call(this,M,N,K)};w.fn.init.prototype=w.fn;var K=w(O);return w},browser:{}});H=i._Deferred();i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(w,K){ia["[object "+K+"]"]=K.toLowerCase()});r=i.uaMatch(r);if(r.browser){i.browser[r.browser]=true;
i.browser.version=r.version}if(i.browser.webkit)i.browser.safari=true;if(ja)i.inArray=function(w,K){return ja.call(K,w)};if(y.test("\u00a0")){G=/^[\s\xA0]+/;E=/[\s\xA0]+$/}p=i(O);if(O.addEventListener)F=function(){O.removeEventListener("DOMContentLoaded",F,false);i.ready()};else if(O.attachEvent)F=function(){if(O.readyState==="complete"){O.detachEvent("onreadystatechange",F);i.ready()}};return i}();(function(){j.support={};var c=O.createElement("div");c.style.display="none";c.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var i=c.getElementsByTagName("*"),l=c.getElementsByTagName("a")[0],m=O.createElement("select"),p=m.appendChild(O.createElement("option")),u=c.getElementsByTagName("input")[0];if(!(!i||!i.length||!l)){j.support={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:/^0.55$/.test(l.style.opacity),cssFloat:!!l.style.cssFloat,
checkOn:u.value==="on",optSelected:p.selected,deleteExpando:true,optDisabled:false,checkClone:false,noCloneEvent:true,noCloneChecked:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};u.checked=true;j.support.noCloneChecked=u.cloneNode(true).checked;m.disabled=true;j.support.optDisabled=!p.disabled;var y=null;j.support.scriptEval=function(){if(y===null){var E=O.documentElement,C=O.createElement("script"),L="script"+j.now();try{C.appendChild(O.createTextNode("window."+
L+"=1;"))}catch(T){}E.insertBefore(C,E.firstChild);if(b[L]){y=true;delete b[L]}else y=false;E.removeChild(C)}return y};try{delete c.test}catch(G){j.support.deleteExpando=false}if(!c.addEventListener&&c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function E(){j.support.noCloneEvent=false;c.detachEvent("onclick",E)});c.cloneNode(true).fireEvent("onclick")}c=O.createElement("div");c.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";i=O.createDocumentFragment();i.appendChild(c.firstChild);
j.support.checkClone=i.cloneNode(true).cloneNode(true).lastChild.checked;j(function(){var E=O.createElement("div"),C=O.getElementsByTagName("body")[0];if(C){E.style.width=E.style.paddingLeft="1px";C.appendChild(E);j.boxModel=j.support.boxModel=E.offsetWidth===2;if("zoom"in E.style){E.style.display="inline";E.style.zoom=1;j.support.inlineBlockNeedsLayout=E.offsetWidth===2;E.style.display="";E.innerHTML="<div style='width:4px;'></div>";j.support.shrinkWrapBlocks=E.offsetWidth!==2}E.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
var L=E.getElementsByTagName("td");j.support.reliableHiddenOffsets=L[0].offsetHeight===0;L[0].style.display="";L[1].style.display="none";j.support.reliableHiddenOffsets=j.support.reliableHiddenOffsets&&L[0].offsetHeight===0;E.innerHTML="";C.removeChild(E).style.display="none"}});i=function(E){var C=O.createElement("div");E="on"+E;if(!C.attachEvent)return true;var L=E in C;if(!L){C.setAttribute(E,"return;");L=typeof C[E]==="function"}return L};j.support.submitBubbles=i("submit");j.support.changeBubbles=
i("change");c=i=l=null}})();var ma=/^(?:\{.*\}|\[.*\])$/;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(c){c=c.nodeType?j.cache[c[j.expando]]:c[j.expando];return!!c&&!h(c)},data:function(c,i,l,m){if(j.acceptData(c)){var p=j.expando,u=typeof i==="string",y=c.nodeType,G=y?j.cache:c,E=y?c[j.expando]:c[j.expando]&&j.expando;if(!((!E||m&&E&&!G[E][p])&&u&&l===d)){if(!E)if(y)c[j.expando]=
E=++j.uuid;else E=j.expando;if(!G[E]){G[E]={};if(!y)G[E].toJSON=j.noop}if(typeof i==="object"||typeof i==="function")if(m)G[E][p]=j.extend(G[E][p],i);else G[E]=j.extend(G[E],i);c=G[E];if(m){c[p]||(c[p]={});c=c[p]}if(l!==d)c[i]=l;if(i==="events"&&!c[i])return c[p]&&c[p].events;return u?c[i]:c}}},removeData:function(c,i,l){if(j.acceptData(c)){var m=j.expando,p=c.nodeType,u=p?j.cache:c,y=p?c[j.expando]:j.expando;if(u[y]){if(i){var G=l?u[y][m]:u[y];if(G){delete G[i];if(!h(G))return}}if(l){delete u[y][m];
if(!h(u[y]))return}i=u[y][m];if(j.support.deleteExpando||u!=b)delete u[y];else u[y]=null;if(i){u[y]={};if(!p)u[y].toJSON=j.noop;u[y][m]=i}else if(p)if(j.support.deleteExpando)delete c[j.expando];else if(c.removeAttribute)c.removeAttribute(j.expando);else c[j.expando]=null}}},_data:function(c,i,l){return j.data(c,i,l,true)},acceptData:function(c){if(c.nodeName){var i=j.noData[c.nodeName.toLowerCase()];if(i)return!(i===true||c.getAttribute("classid")!==i)}return true}});j.fn.extend({data:function(c,
i){var l=null;if(typeof c==="undefined"){if(this.length){l=j.data(this[0]);if(this[0].nodeType===1)for(var m=this[0].attributes,p,u=0,y=m.length;u<y;u++){p=m[u].name;if(p.indexOf("data-")===0){p=p.substr(5);g(this[0],p,l[p])}}}return l}else if(typeof c==="object")return this.each(function(){j.data(this,c)});var G=c.split(".");G[1]=G[1]?"."+G[1]:"";if(i===d){l=this.triggerHandler("getData"+G[1]+"!",[G[0]]);if(l===d&&this.length){l=j.data(this[0],c);l=g(this[0],c,l)}return l===d&&G[1]?this.data(G[0]):
l}else return this.each(function(){var E=j(this),C=[G[0],i];E.triggerHandler("setData"+G[1]+"!",C);j.data(this,c,i);E.triggerHandler("changeData"+G[1]+"!",C)})},removeData:function(c){return this.each(function(){j.removeData(this,c)})}});j.extend({queue:function(c,i,l){if(c){i=(i||"fx")+"queue";var m=j._data(c,i);if(!l)return m||[];if(!m||j.isArray(l))m=j._data(c,i,j.makeArray(l));else m.push(l);return m}},dequeue:function(c,i){i=i||"fx";var l=j.queue(c,i),m=l.shift();if(m==="inprogress")m=l.shift();
if(m){i==="fx"&&l.unshift("inprogress");m.call(c,function(){j.dequeue(c,i)})}l.length||j.removeData(c,i+"queue",true)}});j.fn.extend({queue:function(c,i){if(typeof c!=="string"){i=c;c="fx"}if(i===d)return j.queue(this[0],c);return this.each(function(){var l=j.queue(this,c,i);c==="fx"&&l[0]!=="inprogress"&&j.dequeue(this,c)})},dequeue:function(c){return this.each(function(){j.dequeue(this,c)})},delay:function(c,i){c=j.fx?j.fx.speeds[c]||c:c;i=i||"fx";return this.queue(i,function(){var l=this;setTimeout(function(){j.dequeue(l,
i)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var Ea=/[\n\t\r]/g,Fa=/\s+/,La=/\r/g,xa=/^(?:href|src|style)$/,Pa=/^(?:button|input)$/i,ya=/^(?:button|input|object|select|textarea)$/i,Qa=/^a(?:rea)?$/i,ga=/^(?:radio|checkbox)$/i;j.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};j.fn.extend({attr:function(c,i){return j.access(this,
c,i,true,j.attr)},removeAttr:function(c){return this.each(function(){j.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(c){if(j.isFunction(c))return this.each(function(C){var L=j(this);L.addClass(c.call(this,C,L.attr("class")))});if(c&&typeof c==="string")for(var i=(c||"").split(Fa),l=0,m=this.length;l<m;l++){var p=this[l];if(p.nodeType===1)if(p.className){for(var u=" "+p.className+" ",y=p.className,G=0,E=i.length;G<E;G++)if(u.indexOf(" "+i[G]+" ")<0)y+=" "+i[G];p.className=
j.trim(y)}else p.className=c}return this},removeClass:function(c){if(j.isFunction(c))return this.each(function(E){var C=j(this);C.removeClass(c.call(this,E,C.attr("class")))});if(c&&typeof c==="string"||c===d)for(var i=(c||"").split(Fa),l=0,m=this.length;l<m;l++){var p=this[l];if(p.nodeType===1&&p.className)if(c){for(var u=(" "+p.className+" ").replace(Ea," "),y=0,G=i.length;y<G;y++)u=u.replace(" "+i[y]+" "," ");p.className=j.trim(u)}else p.className=""}return this},toggleClass:function(c,i){var l=
typeof c,m=typeof i==="boolean";if(j.isFunction(c))return this.each(function(p){var u=j(this);u.toggleClass(c.call(this,p,u.attr("class"),i),i)});return this.each(function(){if(l==="string")for(var p,u=0,y=j(this),G=i,E=c.split(Fa);p=E[u++];){G=m?G:!y.hasClass(p);y[G?"addClass":"removeClass"](p)}else if(l==="undefined"||l==="boolean"){this.className&&j._data(this,"__className__",this.className);this.className=this.className||c===false?"":j._data(this,"__className__")||""}})},hasClass:function(c){c=
" "+c+" ";for(var i=0,l=this.length;i<l;i++)if((" "+this[i].className+" ").replace(Ea," ").indexOf(c)>-1)return true;return false},val:function(c){if(!arguments.length){var i=this[0];if(i){if(j.nodeName(i,"option")){var l=i.attributes.value;return!l||l.specified?i.value:i.text}if(j.nodeName(i,"select")){l=i.selectedIndex;var m=[],p=i.options;i=i.type==="select-one";if(l<0)return null;for(var u=i?l:0,y=i?l+1:p.length;u<y;u++){var G=p[u];if(G.selected&&(j.support.optDisabled?!G.disabled:G.getAttribute("disabled")===
null)&&(!G.parentNode.disabled||!j.nodeName(G.parentNode,"optgroup"))){c=j(G).val();if(i)return c;m.push(c)}}if(i&&!m.length&&p.length)return j(p[l]).val();return m}if(ga.test(i.type)&&!j.support.checkOn)return i.getAttribute("value")===null?"on":i.value;return(i.value||"").replace(La,"")}return d}var E=j.isFunction(c);return this.each(function(C){var L=j(this),T=c;if(this.nodeType===1){if(E)T=c.call(this,C,L.val());if(T==null)T="";else if(typeof T==="number")T+="";else if(j.isArray(T))T=j.map(T,
function(W){return W==null?"":W+""});if(j.isArray(T)&&ga.test(this.type))this.checked=j.inArray(L.val(),T)>=0;else if(j.nodeName(this,"select")){var $=j.makeArray(T);j("option",this).each(function(){this.selected=j.inArray(j(this).val(),$)>=0});if(!$.length)this.selectedIndex=-1}else this.value=T}})}});j.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(c,i,l,m){if(!c||c.nodeType===3||c.nodeType===8||c.nodeType===2)return d;if(m&&i in
j.attrFn)return j(c)[i](l);m=c.nodeType!==1||!j.isXMLDoc(c);var p=l!==d;i=m&&j.props[i]||i;if(c.nodeType===1){var u=xa.test(i);if((i in c||c[i]!==d)&&m&&!u){if(p){i==="type"&&Pa.test(c.nodeName)&&c.parentNode&&j.error("type property can't be changed");if(l===null)c.nodeType===1&&c.removeAttribute(i);else c[i]=l}if(j.nodeName(c,"form")&&c.getAttributeNode(i))return c.getAttributeNode(i).nodeValue;if(i==="tabIndex")return(i=c.getAttributeNode("tabIndex"))&&i.specified?i.value:ya.test(c.nodeName)||Qa.test(c.nodeName)&&
c.href?0:d;return c[i]}if(!j.support.style&&m&&i==="style"){if(p)c.style.cssText=""+l;return c.style.cssText}p&&c.setAttribute(i,""+l);if(!c.attributes[i]&&c.hasAttribute&&!c.hasAttribute(i))return d;c=!j.support.hrefNormalized&&m&&u?c.getAttribute(i,2):c.getAttribute(i);return c===null?d:c}if(p)c[i]=l;return c[i]}});var na=/\.(.*)$/,sa=/^(?:textarea|input|select)$/i,fa=/\./g,Oa=/ /g,Ra=/[^\w\s.|`]/g,Ga=function(c){return c.replace(Ra,"\\$&")};j.event={add:function(c,i,l,m){if(!(c.nodeType===3||c.nodeType===
8)){try{if(j.isWindow(c)&&c!==b&&!c.frameElement)c=b}catch(p){}if(l===false)l=f;else if(!l)return;var u,y;if(l.handler){u=l;l=u.handler}if(!l.guid)l.guid=j.guid++;if(y=j._data(c)){var G=y.events,E=y.handle;if(!G)y.events=G={};if(!E)y.handle=E=function(){return typeof j!=="undefined"&&!j.event.triggered?j.event.handle.apply(E.elem,arguments):d};E.elem=c;i=i.split(" ");for(var C,L=0,T;C=i[L++];){y=u?j.extend({},u):{handler:l,data:m};if(C.indexOf(".")>-1){T=C.split(".");C=T.shift();y.namespace=T.slice(0).sort().join(".")}else{T=
[];y.namespace=""}y.type=C;if(!y.guid)y.guid=l.guid;var $=G[C],W=j.event.special[C]||{};if(!$){$=G[C]=[];if(!W.setup||W.setup.call(c,m,T,E)===false)if(c.addEventListener)c.addEventListener(C,E,false);else c.attachEvent&&c.attachEvent("on"+C,E)}if(W.add){W.add.call(c,y);if(!y.handler.guid)y.handler.guid=l.guid}$.push(y);j.event.global[C]=true}c=null}}},global:{},remove:function(c,i,l,m){if(!(c.nodeType===3||c.nodeType===8)){if(l===false)l=f;var p,u,y=0,G,E,C,L,T,$,W=j.hasData(c)&&j._data(c),ba=W&&
W.events;if(W&&ba){if(i&&i.type){l=i.handler;i=i.type}if(!i||typeof i==="string"&&i.charAt(0)==="."){i=i||"";for(p in ba)j.event.remove(c,p+i)}else{for(i=i.split(" ");p=i[y++];){L=p;G=p.indexOf(".")<0;E=[];if(!G){E=p.split(".");p=E.shift();C=RegExp("(^|\\.)"+j.map(E.slice(0).sort(),Ga).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(T=ba[p])if(l){L=j.event.special[p]||{};for(u=m||0;u<T.length;u++){$=T[u];if(l.guid===$.guid){if(G||C.test($.namespace)){m==null&&T.splice(u--,1);L.remove&&L.remove.call(c,$)}if(m!=
null)break}}if(T.length===0||m!=null&&T.length===1){if(!L.teardown||L.teardown.call(c,E)===false)j.removeEvent(c,p,W.handle);delete ba[p]}}else for(u=0;u<T.length;u++){$=T[u];if(G||C.test($.namespace)){j.event.remove(c,L,$.handler,u);T.splice(u--,1)}}}if(j.isEmptyObject(ba)){if(i=W.handle)i.elem=null;delete W.events;delete W.handle;j.isEmptyObject(W)&&j.removeData(c,d,true)}}}}},trigger:function(c,i,l,m){var p=c.type||c;if(!m){c=typeof c==="object"?c[j.expando]?c:j.extend(j.Event(p),c):j.Event(p);
if(p.indexOf("!")>=0){c.type=p=p.slice(0,-1);c.exclusive=true}if(!l){c.stopPropagation();j.event.global[p]&&j.each(j.cache,function(){var T=this[j.expando];T&&T.events&&T.events[p]&&j.event.trigger(c,i,T.handle.elem)})}if(!l||l.nodeType===3||l.nodeType===8)return d;c.result=d;c.target=l;i=j.makeArray(i);i.unshift(c)}c.currentTarget=l;(m=j._data(l,"handle"))&&m.apply(l,i);m=l.parentNode||l.ownerDocument;try{if(!(l&&l.nodeName&&j.noData[l.nodeName.toLowerCase()]))if(l["on"+p]&&l["on"+p].apply(l,i)===
false){c.result=false;c.preventDefault()}}catch(u){}if(!c.isPropagationStopped()&&m)j.event.trigger(c,i,m,true);else if(!c.isDefaultPrevented()){var y;m=c.target;var G=p.replace(na,""),E=j.nodeName(m,"a")&&G==="click",C=j.event.special[G]||{};if((!C._default||C._default.call(l,c)===false)&&!E&&!(m&&m.nodeName&&j.noData[m.nodeName.toLowerCase()])){try{if(m[G]){if(y=m["on"+G])m["on"+G]=null;j.event.triggered=true;m[G]()}}catch(L){}if(y)m["on"+G]=y;j.event.triggered=false}}},handle:function(c){var i,
l,m,p;l=[];var u=j.makeArray(arguments);c=u[0]=j.event.fix(c||b.event);c.currentTarget=this;i=c.type.indexOf(".")<0&&!c.exclusive;if(!i){m=c.type.split(".");c.type=m.shift();l=m.slice(0).sort();m=RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)")}c.namespace=c.namespace||l.join(".");p=j._data(this,"events");l=(p||{})[c.type];if(p&&l){l=l.slice(0);p=0;for(var y=l.length;p<y;p++){var G=l[p];if(i||m.test(G.namespace)){c.handler=G.handler;c.data=G.data;c.handleObj=G;G=G.handler.apply(this,u);if(G!==
d){c.result=G;if(G===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[j.expando])return c;
var i=c;c=j.Event(i);for(var l=this.props.length,m;l;){m=this.props[--l];c[m]=i[m]}if(!c.target)c.target=c.srcElement||O;if(c.target.nodeType===3)c.target=c.target.parentNode;if(!c.relatedTarget&&c.fromElement)c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement;if(c.pageX==null&&c.clientX!=null){i=O.documentElement;l=O.body;c.pageX=c.clientX+(i&&i.scrollLeft||l&&l.scrollLeft||0)-(i&&i.clientLeft||l&&l.clientLeft||0);c.pageY=c.clientY+(i&&i.scrollTop||l&&l.scrollTop||0)-(i&&i.clientTop||
l&&l.clientTop||0)}if(c.which==null&&(c.charCode!=null||c.keyCode!=null))c.which=c.charCode!=null?c.charCode:c.keyCode;if(!c.metaKey&&c.ctrlKey)c.metaKey=c.ctrlKey;if(!c.which&&c.button!==d)c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;return c},guid:1E8,proxy:j.proxy,special:{ready:{setup:j.bindReady,teardown:j.noop},live:{add:function(c){j.event.add(this,o(c.origType,c.selector),j.extend({},c,{handler:k,guid:c.handler.guid}))},remove:function(c){j.event.remove(this,o(c.origType,c.selector),c)}},
beforeunload:{setup:function(c,i,l){if(j.isWindow(this))this.onbeforeunload=l},teardown:function(c,i){if(this.onbeforeunload===i)this.onbeforeunload=null}}}};j.removeEvent=O.removeEventListener?function(c,i,l){c.removeEventListener&&c.removeEventListener(i,l,false)}:function(c,i,l){c.detachEvent&&c.detachEvent("on"+i,l)};j.Event=function(c){if(!this.preventDefault)return new j.Event(c);if(c&&c.type){this.originalEvent=c;this.type=c.type;this.isDefaultPrevented=c.defaultPrevented||c.returnValue===
false||c.getPreventDefault&&c.getPreventDefault()?a:f}else this.type=c;this.timeStamp=j.now();this[j.expando]=true};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=a;var c=this.originalEvent;if(c)if(c.preventDefault)c.preventDefault();else c.returnValue=false},stopPropagation:function(){this.isPropagationStopped=a;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a;
this.stopPropagation()},isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f};var ua=function(c){var i=c.relatedTarget;try{if(!(i!==O&&!i.parentNode)){for(;i&&i!==this;)i=i.parentNode;if(i!==this){c.type=c.data;j.event.handle.apply(this,arguments)}}}catch(l){}},Ha=function(c){c.type=c.data;j.event.handle.apply(this,arguments)};j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,i){j.event.special[c]={setup:function(l){j.event.add(this,i,l&&l.selector?Ha:ua,c)},
teardown:function(l){j.event.remove(this,i,l&&l.selector?Ha:ua)}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){j.event.add(this,"click.specialSubmit",function(c){var i=c.target,l=i.type;if((l==="submit"||l==="image")&&j(i).closest("form").length)e("submit",this,arguments)});j.event.add(this,"keypress.specialSubmit",function(c){var i=c.target,l=i.type;if((l==="text"||l==="password")&&j(i).closest("form").length&&c.keyCode===
13)e("submit",this,arguments)})}else return false},teardown:function(){j.event.remove(this,".specialSubmit")}};if(!j.support.changeBubbles){var Ma,bb=function(c){var i=c.type,l=c.value;if(i==="radio"||i==="checkbox")l=c.checked;else if(i==="select-multiple")l=c.selectedIndex>-1?j.map(c.options,function(m){return m.selected}).join("-"):"";else if(c.nodeName.toLowerCase()==="select")l=c.selectedIndex;return l},Sa=function(c,i){var l=c.target,m,p;if(!(!sa.test(l.nodeName)||l.readOnly)){m=j._data(l,"_change_data");
p=bb(l);if(c.type!=="focusout"||l.type!=="radio")j._data(l,"_change_data",p);if(!(m===d||p===m))if(m!=null||p){c.type="change";c.liveFired=d;j.event.trigger(c,i,l)}}};j.event.special.change={filters:{focusout:Sa,beforedeactivate:Sa,click:function(c){var i=c.target,l=i.type;if(l==="radio"||l==="checkbox"||i.nodeName.toLowerCase()==="select")Sa.call(this,c)},keydown:function(c){var i=c.target,l=i.type;if(c.keyCode===13&&i.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(l==="checkbox"||l==="radio")||
l==="select-multiple")Sa.call(this,c)},beforeactivate:function(c){c=c.target;j._data(c,"_change_data",bb(c))}},setup:function(){if(this.type==="file")return false;for(var c in Ma)j.event.add(this,c+".specialChange",Ma[c]);return sa.test(this.nodeName)},teardown:function(){j.event.remove(this,".specialChange");return sa.test(this.nodeName)}};Ma=j.event.special.change.filters;Ma.focus=Ma.beforeactivate}O.addEventListener&&j.each({focus:"focusin",blur:"focusout"},function(c,i){function l(m){m=j.event.fix(m);
m.type=i;return j.event.handle.call(this,m)}j.event.special[i]={setup:function(){this.addEventListener(c,l,true)},teardown:function(){this.removeEventListener(c,l,true)}}});j.each(["bind","one"],function(c,i){j.fn[i]=function(l,m,p){if(typeof l==="object"){for(var u in l)this[i](u,m,l[u],p);return this}if(j.isFunction(m)||m===false){p=m;m=d}var y=i==="one"?j.proxy(p,function(E){j(this).unbind(E,y);return p.apply(this,arguments)}):p;if(l==="unload"&&i!=="one")this.one(l,m,p);else{u=0;for(var G=this.length;u<
G;u++)j.event.add(this[u],l,y,m)}return this}});j.fn.extend({unbind:function(c,i){if(typeof c==="object"&&!c.preventDefault)for(var l in c)this.unbind(l,c[l]);else{l=0;for(var m=this.length;l<m;l++)j.event.remove(this[l],c,i)}return this},delegate:function(c,i,l,m){return this.live(i,l,m,c)},undelegate:function(c,i,l){return arguments.length===0?this.unbind("live"):this.die(i,null,l,c)},trigger:function(c,i){return this.each(function(){j.event.trigger(c,i,this)})},triggerHandler:function(c,i){if(this[0]){var l=
j.Event(c);l.preventDefault();l.stopPropagation();j.event.trigger(l,i,this[0]);return l.result}},toggle:function(c){for(var i=arguments,l=1;l<i.length;)j.proxy(c,i[l++]);return this.click(j.proxy(c,function(m){var p=(j._data(this,"lastToggle"+c.guid)||0)%l;j._data(this,"lastToggle"+c.guid,p+1);m.preventDefault();return i[p].apply(this,arguments)||false}))},hover:function(c,i){return this.mouseenter(c).mouseleave(i||c)}});var cb={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
j.each(["live","die"],function(c,i){j.fn[i]=function(l,m,p,u){var y,G=0,E,C,L=u||this.selector;u=u?this:j(this.context);if(typeof l==="object"&&!l.preventDefault){for(y in l)u[i](y,m,l[y],L);return this}if(j.isFunction(m)){p=m;m=d}for(l=(l||"").split(" ");(y=l[G++])!=null;){E=na.exec(y);C="";if(E){C=E[0];y=y.replace(na,"")}if(y==="hover")l.push("mouseenter"+C,"mouseleave"+C);else{E=y;if(y==="focus"||y==="blur"){l.push(cb[y]+C);y+=C}else y=(cb[y]||y)+C;if(i==="live"){C=0;for(var T=u.length;C<T;C++)j.event.add(u[C],
"live."+o(y,L),{data:m,selector:L,handler:p,origType:y,origHandler:p,preType:E})}else u.unbind("live."+o(y,L),p)}}return this}});j.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,i){j.fn[i]=function(l,m){if(m==null){m=l;l=null}return arguments.length>0?this.bind(i,l,m):this.trigger(i)};if(j.attrFn)j.attrFn[i]=true});(function(){function c(r,
A,H,D,F,I){F=0;for(var R=D.length;F<R;F++){var Q=D[F];if(Q){var Z=false;for(Q=Q[r];Q;){if(Q.sizcache===H){Z=D[Q.sizset];break}if(Q.nodeType===1&&!I){Q.sizcache=H;Q.sizset=F}if(Q.nodeName.toLowerCase()===A){Z=Q;break}Q=Q[r]}D[F]=Z}}}function i(r,A,H,D,F,I){F=0;for(var R=D.length;F<R;F++){var Q=D[F];if(Q){var Z=false;for(Q=Q[r];Q;){if(Q.sizcache===H){Z=D[Q.sizset];break}if(Q.nodeType===1){if(!I){Q.sizcache=H;Q.sizset=F}if(typeof A!=="string"){if(Q===A){Z=true;break}}else if(C.filter(A,[Q]).length>0){Z=
Q;break}}Q=Q[r]}D[F]=Z}}}var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,p=Object.prototype.toString,u=false,y=true,G=/\\/g,E=/\W/;[0,0].sort(function(){y=false;return 0});var C=function(r,A,H,D){H=H||[];var F=A=A||O;if(A.nodeType!==1&&A.nodeType!==9)return[];if(!r||typeof r!=="string")return H;var I,R,Q,Z,oa,ja=true,ia=C.isXML(A),w=[],K=r;do{l.exec("");if(I=l.exec(K)){K=I[3];w.push(I[1]);if(I[2]){Z=I[3];
break}}}while(I);if(w.length>1&&T.exec(r))if(w.length===2&&L.relative[w[0]])R=ra(w[0]+w[1],A);else for(R=L.relative[w[0]]?[A]:C(w.shift(),A);w.length;){r=w.shift();if(L.relative[r])r+=w.shift();R=ra(r,R)}else{if(!D&&w.length>1&&A.nodeType===9&&!ia&&L.match.ID.test(w[0])&&!L.match.ID.test(w[w.length-1])){I=C.find(w.shift(),A,ia);A=I.expr?C.filter(I.expr,I.set)[0]:I.set[0]}if(A){I=D?{expr:w.pop(),set:ba(D)}:C.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&A.parentNode?A.parentNode:A,ia);R=I.expr?
C.filter(I.expr,I.set):I.set;if(w.length>0)Q=ba(R);else ja=false;for(;w.length;){I=oa=w.pop();if(L.relative[oa])I=w.pop();else oa="";if(I==null)I=A;L.relative[oa](Q,I,ia)}}else Q=[]}Q||(Q=R);Q||C.error(oa||r);if(p.call(Q)==="[object Array]")if(ja)if(A&&A.nodeType===1)for(r=0;Q[r]!=null;r++){if(Q[r]&&(Q[r]===true||Q[r].nodeType===1&&C.contains(A,Q[r])))H.push(R[r])}else for(r=0;Q[r]!=null;r++)Q[r]&&Q[r].nodeType===1&&H.push(R[r]);else H.push.apply(H,Q);else ba(Q,H);if(Z){C(Z,F,H,D);C.uniqueSort(H)}return H};
C.uniqueSort=function(r){if(da){u=y;r.sort(da);if(u)for(var A=1;A<r.length;A++)r[A]===r[A-1]&&r.splice(A--,1)}return r};C.matches=function(r,A){return C(r,null,null,A)};C.matchesSelector=function(r,A){return C(A,null,null,[r]).length>0};C.find=function(r,A,H){var D;if(!r)return[];for(var F=0,I=L.order.length;F<I;F++){var R,Q=L.order[F];if(R=L.leftMatch[Q].exec(r)){var Z=R[1];R.splice(1,1);if(Z.substr(Z.length-1)!=="\\"){R[1]=(R[1]||"").replace(G,"");D=L.find[Q](R,A,H);if(D!=null){r=r.replace(L.match[Q],
"");break}}}}D||(D=typeof A.getElementsByTagName!=="undefined"?A.getElementsByTagName("*"):[]);return{set:D,expr:r}};C.filter=function(r,A,H,D){for(var F,I,R=r,Q=[],Z=A,oa=A&&A[0]&&C.isXML(A[0]);r&&A.length;){for(var ja in L.filter)if((F=L.leftMatch[ja].exec(r))!=null&&F[2]){var ia,w,K=L.filter[ja];w=F[1];I=false;F.splice(1,1);if(w.substr(w.length-1)!=="\\"){if(Z===Q)Q=[];if(L.preFilter[ja])if(F=L.preFilter[ja](F,Z,H,Q,D,oa)){if(F===true)continue}else I=ia=true;if(F)for(var M=0;(w=Z[M])!=null;M++)if(w){ia=
K(w,F,M,Z);var N=D^!!ia;if(H&&ia!=null)if(N)I=true;else Z[M]=false;else if(N){Q.push(w);I=true}}if(ia!==d){H||(Z=Q);r=r.replace(L.match[ja],"");if(!I)return[];break}}}if(r===R)if(I==null)C.error(r);else break;R=r}return Z};C.error=function(r){throw"Syntax error, unrecognized expression: "+r;};var L=C.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(r){return r.getAttribute("href")},type:function(r){return r.getAttribute("type")}},relative:{"+":function(r,A){var H=
typeof A==="string",D=H&&!E.test(A);H=H&&!D;if(D)A=A.toLowerCase();D=0;for(var F=r.length,I;D<F;D++)if(I=r[D]){for(;(I=I.previousSibling)&&I.nodeType!==1;);r[D]=H||I&&I.nodeName.toLowerCase()===A?I||false:I===A}H&&C.filter(A,r,true)},">":function(r,A){var H,D=typeof A==="string",F=0,I=r.length;if(D&&!E.test(A))for(A=A.toLowerCase();F<I;F++){if(H=r[F]){H=H.parentNode;r[F]=H.nodeName.toLowerCase()===A?H:false}}else{for(;F<I;F++)if(H=r[F])r[F]=D?H.parentNode:H.parentNode===A;D&&C.filter(A,r,true)}},
"":function(r,A,H){var D,F=m++,I=i;if(typeof A==="string"&&!E.test(A)){D=A=A.toLowerCase();I=c}I("parentNode",A,F,r,D,H)},"~":function(r,A,H){var D,F=m++,I=i;if(typeof A==="string"&&!E.test(A)){D=A=A.toLowerCase();I=c}I("previousSibling",A,F,r,D,H)}},find:{ID:function(r,A,H){if(typeof A.getElementById!=="undefined"&&!H)return(r=A.getElementById(r[1]))&&r.parentNode?[r]:[]},NAME:function(r,A){if(typeof A.getElementsByName!=="undefined"){for(var H=[],D=A.getElementsByName(r[1]),F=0,I=D.length;F<I;F++)D[F].getAttribute("name")===
r[1]&&H.push(D[F]);return H.length===0?null:H}},TAG:function(r,A){if(typeof A.getElementsByTagName!=="undefined")return A.getElementsByTagName(r[1])}},preFilter:{CLASS:function(r,A,H,D,F,I){r=" "+r[1].replace(G,"")+" ";if(I)return r;I=0;for(var R;(R=A[I])!=null;I++)if(R)if(F^(R.className&&(" "+R.className+" ").replace(/[\t\n\r]/g," ").indexOf(r)>=0))H||D.push(R);else if(H)A[I]=false;return false},ID:function(r){return r[1].replace(G,"")},TAG:function(r){return r[1].replace(G,"").toLowerCase()},CHILD:function(r){if(r[1]===
"nth"){r[2]||C.error(r[0]);r[2]=r[2].replace(/^\+|\s*/g,"");var A=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(r[2]==="even"&&"2n"||r[2]==="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=A[1]+(A[2]||1)-0;r[3]=A[3]-0}else r[2]&&C.error(r[0]);r[0]=m++;return r},ATTR:function(r,A,H,D,F,I){A=r[1]=r[1].replace(G,"");if(!I&&L.attrMap[A])r[1]=L.attrMap[A];r[4]=(r[4]||r[5]||"").replace(G,"");if(r[2]==="~=")r[4]=" "+r[4]+" ";return r},PSEUDO:function(r,A,H,D,F){if(r[1]==="not")if((l.exec(r[3])||"").length>1||
/^\w/.test(r[3]))r[3]=C(r[3],null,null,A);else{r=C.filter(r[3],A,H,true^F);H||D.push.apply(D,r);return false}else if(L.match.POS.test(r[0])||L.match.CHILD.test(r[0]))return true;return r},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){return r.selected===true},parent:function(r){return!!r.firstChild},empty:function(r){return!r.firstChild},
has:function(r,A,H){return!!C(H[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.getAttribute("type")},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||
r.nodeName.toLowerCase()==="button"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,A){return A===0},last:function(r,A,H,D){return A===D.length-1},even:function(r,A){return A%2===0},odd:function(r,A){return A%2===1},lt:function(r,A,H){return A<H[3]-0},gt:function(r,A,H){return A>H[3]-0},nth:function(r,A,H){return H[3]-0===A},eq:function(r,A,H){return H[3]-0===A}},filter:{PSEUDO:function(r,A,H,D){var F=A[1],I=L.filters[F];if(I)return I(r,H,A,
D);else if(F==="contains")return(r.textContent||r.innerText||C.getText([r])||"").indexOf(A[3])>=0;else if(F==="not"){A=A[3];H=0;for(D=A.length;H<D;H++)if(A[H]===r)return false;return true}else C.error(F)},CHILD:function(r,A){var H=A[1],D=r;switch(H){case "only":case "first":for(;D=D.previousSibling;)if(D.nodeType===1)return false;if(H==="first")return true;D=r;case "last":for(;D=D.nextSibling;)if(D.nodeType===1)return false;return true;case "nth":H=A[2];var F=A[3];if(H===1&&F===0)return true;var I=
A[0],R=r.parentNode;if(R&&(R.sizcache!==I||!r.nodeIndex)){var Q=0;for(D=R.firstChild;D;D=D.nextSibling)if(D.nodeType===1)D.nodeIndex=++Q;R.sizcache=I}D=r.nodeIndex-F;return H===0?D===0:D%H===0&&D/H>=0}},ID:function(r,A){return r.nodeType===1&&r.getAttribute("id")===A},TAG:function(r,A){return A==="*"&&r.nodeType===1||r.nodeName.toLowerCase()===A},CLASS:function(r,A){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(A)>-1},ATTR:function(r,A){var H=A[1];H=L.attrHandle[H]?L.attrHandle[H](r):
r[H]!=null?r[H]:r.getAttribute(H);var D=H+"",F=A[2],I=A[4];return H==null?F==="!=":F==="="?D===I:F==="*="?D.indexOf(I)>=0:F==="~="?(" "+D+" ").indexOf(I)>=0:!I?D&&H!==false:F==="!="?D!==I:F==="^="?D.indexOf(I)===0:F==="$="?D.substr(D.length-I.length)===I:F==="|="?D===I||D.substr(0,I.length+1)===I+"-":false},POS:function(r,A,H,D){var F=L.setFilters[A[2]];if(F)return F(r,H,A,D)}}},T=L.match.POS,$=function(r,A){return"\\"+(A-0+1)},W;for(W in L.match){L.match[W]=RegExp(L.match[W].source+/(?![^\[]*\])(?![^\(]*\))/.source);
L.leftMatch[W]=RegExp(/(^(?:.|\r|\n)*?)/.source+L.match[W].source.replace(/\\(\d+)/g,$))}var ba=function(r,A){r=Array.prototype.slice.call(r,0);if(A){A.push.apply(A,r);return A}return r};try{Array.prototype.slice.call(O.documentElement.childNodes,0)}catch(ha){ba=function(r,A){var H=0,D=A||[];if(p.call(r)==="[object Array]")Array.prototype.push.apply(D,r);else if(typeof r.length==="number")for(var F=r.length;H<F;H++)D.push(r[H]);else for(;r[H];H++)D.push(r[H]);return D}}var da,ka;if(O.documentElement.compareDocumentPosition)da=
function(r,A){if(r===A){u=true;return 0}if(!r.compareDocumentPosition||!A.compareDocumentPosition)return r.compareDocumentPosition?-1:1;return r.compareDocumentPosition(A)&4?-1:1};else{da=function(r,A){var H,D,F=[],I=[];H=r.parentNode;D=A.parentNode;var R=H;if(r===A){u=true;return 0}else if(H===D)return ka(r,A);else if(H){if(!D)return 1}else return-1;for(;R;){F.unshift(R);R=R.parentNode}for(R=D;R;){I.unshift(R);R=R.parentNode}H=F.length;D=I.length;for(R=0;R<H&&R<D;R++)if(F[R]!==I[R])return ka(F[R],
I[R]);return R===H?ka(r,I[R],-1):ka(F[R],A,1)};ka=function(r,A,H){if(r===A)return H;for(r=r.nextSibling;r;){if(r===A)return-1;r=r.nextSibling}return 1}}C.getText=function(r){for(var A="",H,D=0;r[D];D++){H=r[D];if(H.nodeType===3||H.nodeType===4)A+=H.nodeValue;else if(H.nodeType!==8)A+=C.getText(H.childNodes)}return A};(function(){var r=O.createElement("div"),A="script"+(new Date).getTime(),H=O.documentElement;r.innerHTML="<a name='"+A+"'/>";H.insertBefore(r,H.firstChild);if(O.getElementById(A)){L.find.ID=
function(D,F,I){if(typeof F.getElementById!=="undefined"&&!I)return(F=F.getElementById(D[1]))?F.id===D[1]||typeof F.getAttributeNode!=="undefined"&&F.getAttributeNode("id").nodeValue===D[1]?[F]:d:[]};L.filter.ID=function(D,F){var I=typeof D.getAttributeNode!=="undefined"&&D.getAttributeNode("id");return D.nodeType===1&&I&&I.nodeValue===F}}H.removeChild(r);H=r=null})();(function(){var r=O.createElement("div");r.appendChild(O.createComment(""));if(r.getElementsByTagName("*").length>0)L.find.TAG=function(A,
H){var D=H.getElementsByTagName(A[1]);if(A[1]==="*"){for(var F=[],I=0;D[I];I++)D[I].nodeType===1&&F.push(D[I]);D=F}return D};r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#")L.attrHandle.href=function(A){return A.getAttribute("href",2)};r=null})();O.querySelectorAll&&function(){var r=C,A=O.createElement("div");A.innerHTML="<p class='TEST'></p>";if(!(A.querySelectorAll&&A.querySelectorAll(".TEST").length===0)){C=
function(D,F,I,R){F=F||O;if(!R&&!C.isXML(F)){var Q=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(D);if(Q&&(F.nodeType===1||F.nodeType===9))if(Q[1])return ba(F.getElementsByTagName(D),I);else if(Q[2]&&L.find.CLASS&&F.getElementsByClassName)return ba(F.getElementsByClassName(Q[2]),I);if(F.nodeType===9){if(D==="body"&&F.body)return ba([F.body],I);else if(Q&&Q[3]){var Z=F.getElementById(Q[3]);if(Z&&Z.parentNode){if(Z.id===Q[3])return ba([Z],I)}else return ba([],I)}try{return ba(F.querySelectorAll(D),I)}catch(oa){}}else if(F.nodeType===
1&&F.nodeName.toLowerCase()!=="object"){Q=F;var ja=(Z=F.getAttribute("id"))||"__sizzle__",ia=F.parentNode,w=/^\s*[+~]/.test(D);if(Z)ja=ja.replace(/'/g,"\\$&");else F.setAttribute("id",ja);if(w&&ia)F=F.parentNode;try{if(!w||ia)return ba(F.querySelectorAll("[id='"+ja+"'] "+D),I)}catch(K){}finally{Z||Q.removeAttribute("id")}}}return r(D,F,I,R)};for(var H in r)C[H]=r[H];A=null}}();(function(){var r=O.documentElement,A=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.msMatchesSelector,
H=false;try{A.call(O.documentElement,"[test!='']:sizzle")}catch(D){H=true}if(A)C.matchesSelector=function(F,I){I=I.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!C.isXML(F))try{if(H||!L.match.PSEUDO.test(I)&&!/!=/.test(I))return A.call(F,I)}catch(R){}return C(I,null,null,[F]).length>0}})();(function(){var r=O.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!r.getElementsByClassName||r.getElementsByClassName("e").length===0)){r.lastChild.className="e";if(r.getElementsByClassName("e").length!==
1){L.order.splice(1,0,"CLASS");L.find.CLASS=function(A,H,D){if(typeof H.getElementsByClassName!=="undefined"&&!D)return H.getElementsByClassName(A[1])};r=null}}})();C.contains=O.documentElement.contains?function(r,A){return r!==A&&(r.contains?r.contains(A):true)}:O.documentElement.compareDocumentPosition?function(r,A){return!!(r.compareDocumentPosition(A)&16)}:function(){return false};C.isXML=function(r){return(r=(r?r.ownerDocument||r:0).documentElement)?r.nodeName!=="HTML":false};var ra=function(r,
A){for(var H,D=[],F="",I=A.nodeType?[A]:A;H=L.match.PSEUDO.exec(r);){F+=H[0];r=r.replace(L.match.PSEUDO,"")}r=L.relative[r]?r+"*":r;H=0;for(var R=I.length;H<R;H++)C(r,I[H],D);return C.filter(F,D)};j.find=C;j.expr=C.selectors;j.expr[":"]=j.expr.filters;j.unique=C.uniqueSort;j.text=C.getText;j.isXMLDoc=C.isXML;j.contains=C.contains})();var tb=/Until$/,ub=/^(?:parents|prevUntil|prevAll)/,vb=/,/,pb=/^.[^:#\[\.,]*$/,wb=Array.prototype.slice,xb=j.expr.match.POS,yb={children:true,contents:true,next:true,
prev:true};j.fn.extend({find:function(c){for(var i=this.pushStack("","find",c),l=0,m=0,p=this.length;m<p;m++){l=i.length;j.find(c,this[m],i);if(m>0)for(var u=l;u<i.length;u++)for(var y=0;y<l;y++)if(i[y]===i[u]){i.splice(u--,1);break}}return i},has:function(c){var i=j(c);return this.filter(function(){for(var l=0,m=i.length;l<m;l++)if(j.contains(this,i[l]))return true})},not:function(c){return this.pushStack(q(this,c,false),"not",c)},filter:function(c){return this.pushStack(q(this,c,true),"filter",
c)},is:function(c){return!!c&&j.filter(c,this).length>0},closest:function(c,i){var l=[],m,p,u=this[0];if(j.isArray(c)){var y,G={},E=1;if(u&&c.length){m=0;for(p=c.length;m<p;m++){y=c[m];G[y]||(G[y]=j.expr.match.POS.test(y)?j(y,i||this.context):y)}for(;u&&u.ownerDocument&&u!==i;){for(y in G){m=G[y];if(m.jquery?m.index(u)>-1:j(u).is(m))l.push({selector:y,elem:u,level:E})}u=u.parentNode;E++}}return l}y=xb.test(c)?j(c,i||this.context):null;m=0;for(p=this.length;m<p;m++)for(u=this[m];u;)if(y?y.index(u)>
-1:j.find.matchesSelector(u,c)){l.push(u);break}else{u=u.parentNode;if(!u||!u.ownerDocument||u===i)break}l=l.length>1?j.unique(l):l;return this.pushStack(l,"closest",c)},index:function(c){if(!c||typeof c==="string")return j.inArray(this[0],c?j(c):this.parent().children());return j.inArray(c.jquery?c[0]:c,this)},add:function(c,i){var l=typeof c==="string"?j(c,i):j.makeArray(c),m=j.merge(this.get(),l);return this.pushStack(!l[0]||!l[0].parentNode||l[0].parentNode.nodeType===11||!m[0]||!m[0].parentNode||
m[0].parentNode.nodeType===11?m:j.unique(m))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return j.dir(c,"parentNode")},parentsUntil:function(c,i,l){return j.dir(c,"parentNode",l)},next:function(c){return j.nth(c,2,"nextSibling")},prev:function(c){return j.nth(c,2,"previousSibling")},nextAll:function(c){return j.dir(c,"nextSibling")},prevAll:function(c){return j.dir(c,"previousSibling")},nextUntil:function(c,
i,l){return j.dir(c,"nextSibling",l)},prevUntil:function(c,i,l){return j.dir(c,"previousSibling",l)},siblings:function(c){return j.sibling(c.parentNode.firstChild,c)},children:function(c){return j.sibling(c.firstChild)},contents:function(c){return j.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:j.makeArray(c.childNodes)}},function(c,i){j.fn[c]=function(l,m){var p=j.map(this,i,l),u=wb.call(arguments);tb.test(c)||(m=l);if(m&&typeof m==="string")p=j.filter(m,p);p=this.length>1&&!yb[c]?
j.unique(p):p;if((this.length>1||vb.test(m))&&ub.test(c))p=p.reverse();return this.pushStack(p,c,u.join(","))}});j.extend({filter:function(c,i,l){if(l)c=":not("+c+")";return i.length===1?j.find.matchesSelector(i[0],c)?[i[0]]:[]:j.find.matches(c,i)},dir:function(c,i,l){var m=[];for(c=c[i];c&&c.nodeType!==9&&(l===d||c.nodeType!==1||!j(c).is(l));){c.nodeType===1&&m.push(c);c=c[i]}return m},nth:function(c,i,l){i=i||1;for(var m=0;c;c=c[l])if(c.nodeType===1&&++m===i)break;return c},sibling:function(c,i){for(var l=
[];c;c=c.nextSibling)c.nodeType===1&&c!==i&&l.push(c);return l}});var zb=/ jQuery\d+="(?:\d+|null)"/g,Ya=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,Ab=/<tbody/i,Bb=/<|&#?\w+;/,fb=/<(?:script|object|embed|option|style)/i,gb=/checked\s*(?:[^=]|=\s*.checked.)/i,qa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>",
"</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};qa.optgroup=qa.option;qa.tbody=qa.tfoot=qa.colgroup=qa.caption=qa.thead;qa.th=qa.td;if(!j.support.htmlSerialize)qa._default=[1,"div<div>","</div>"];j.fn.extend({text:function(c){if(j.isFunction(c))return this.each(function(i){var l=j(this);l.text(c.call(this,i,l.text()))});if(typeof c!=="object"&&c!==d)return this.empty().append((this[0]&&this[0].ownerDocument||O).createTextNode(c));
return j.text(this)},wrapAll:function(c){if(j.isFunction(c))return this.each(function(l){j(this).wrapAll(c.call(this,l))});if(this[0]){var i=j(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var l=this;l.firstChild&&l.firstChild.nodeType===1;)l=l.firstChild;return l}).append(this)}return this},wrapInner:function(c){if(j.isFunction(c))return this.each(function(i){j(this).wrapInner(c.call(this,i))});return this.each(function(){var i=j(this),
l=i.contents();l.length?l.wrapAll(c):i.append(c)})},wrap:function(c){return this.each(function(){j(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this)});else if(arguments.length){var c=j(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this.nextSibling)});else if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,j(arguments[0]).toArray());return c}},
remove:function(c,i){for(var l=0,m;(m=this[l])!=null;l++)if(!c||j.filter(c,[m]).length){if(!i&&m.nodeType===1){j.cleanData(m.getElementsByTagName("*"));j.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var c=0,i;(i=this[c])!=null;c++)for(i.nodeType===1&&j.cleanData(i.getElementsByTagName("*"));i.firstChild;)i.removeChild(i.firstChild);return this},clone:function(c,i){c=c==null?false:c;i=i==null?c:i;return this.map(function(){return j.clone(this,c,i)})},html:function(c){if(c===
d)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(zb,""):null;else if(typeof c==="string"&&!fb.test(c)&&(j.support.leadingWhitespace||!Ya.test(c))&&!qa[(eb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(db,"<$1></$2>");try{for(var i=0,l=this.length;i<l;i++)if(this[i].nodeType===1){j.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=c}}catch(m){this.empty().append(c)}}else j.isFunction(c)?this.each(function(p){var u=j(this);u.html(c.call(this,p,u.html()))}):this.empty().append(c);
return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(j.isFunction(c))return this.each(function(i){var l=j(this),m=l.html();l.replaceWith(c.call(this,i,m))});if(typeof c!=="string")c=j(c).detach();return this.each(function(){var i=this.nextSibling,l=this.parentNode;j(this).remove();i?j(i).before(c):j(l).append(c)})}else return this.pushStack(j(j.isFunction(c)?c():c),"replaceWith",c)},detach:function(c){return this.remove(c,true)},domManip:function(c,i,l){var m,p,u,y=c[0],G=[];if(!j.support.checkClone&&
arguments.length===3&&typeof y==="string"&&gb.test(y))return this.each(function(){j(this).domManip(c,i,l,true)});if(j.isFunction(y))return this.each(function(L){var T=j(this);c[0]=y.call(this,L,i?T.html():d);T.domManip(c,i,l)});if(this[0]){m=y&&y.parentNode;m=j.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===this.length?{fragment:m}:j.buildFragment(c,this,G);u=m.fragment;if(p=u.childNodes.length===1?u=u.firstChild:u.firstChild){i=i&&j.nodeName(p,"tr");p=0;for(var E=this.length,C=E-1;p<
E;p++)l.call(i?j.nodeName(this[p],"table")?this[p].getElementsByTagName("tbody")[0]||this[p].appendChild(this[p].ownerDocument.createElement("tbody")):this[p]:this[p],m.cacheable||E>1&&p<C?j.clone(u,true,true):u)}G.length&&j.each(G,v)}return this}});j.buildFragment=function(c,i,l){var m,p,u;i=i&&i[0]?i[0].ownerDocument||i[0]:O;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&i===O&&c[0].charAt(0)==="<"&&!fb.test(c[0])&&(j.support.checkClone||!gb.test(c[0]))){p=true;if(u=j.fragments[c[0]])if(u!==
1)m=u}if(!m){m=i.createDocumentFragment();j.clean(c,i,m,l)}if(p)j.fragments[c[0]]=u?m:1;return{fragment:m,cacheable:p}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,i){j.fn[c]=function(l){var m=[];l=j(l);var p=this.length===1&&this[0].parentNode;if(p&&p.nodeType===11&&p.childNodes.length===1&&l.length===1){l[i](this[0]);return this}else{p=0;for(var u=l.length;p<u;p++){var y=(p>0?this.clone(true):this).get();
j(l[p])[i](y);m=m.concat(y)}return this.pushStack(m,c,l.selector)}}});j.extend({clone:function(c,i,l){var m=c.cloneNode(true),p,u,y;if((!j.support.noCloneEvent||!j.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!j.isXMLDoc(c)){s(c,m);p=n(c);u=n(m);for(y=0;p[y];++y)s(p[y],u[y])}if(i){x(c,m);if(l){p=n(c);u=n(m);for(y=0;p[y];++y)x(p[y],u[y])}}return m},clean:function(c,i,l,m){i=i||O;if(typeof i.createElement==="undefined")i=i.ownerDocument||i[0]&&i[0].ownerDocument||O;for(var p=[],u=0,y;(y=
c[u])!=null;u++){if(typeof y==="number")y+="";if(y){if(typeof y==="string"&&!Bb.test(y))y=i.createTextNode(y);else if(typeof y==="string"){y=y.replace(db,"<$1></$2>");var G=(eb.exec(y)||["",""])[1].toLowerCase(),E=qa[G]||qa._default,C=E[0],L=i.createElement("div");for(L.innerHTML=E[1]+y+E[2];C--;)L=L.lastChild;if(!j.support.tbody){C=Ab.test(y);G=G==="table"&&!C?L.firstChild&&L.firstChild.childNodes:E[1]==="<table>"&&!C?L.childNodes:[];for(E=G.length-1;E>=0;--E)j.nodeName(G[E],"tbody")&&!G[E].childNodes.length&&
G[E].parentNode.removeChild(G[E])}!j.support.leadingWhitespace&&Ya.test(y)&&L.insertBefore(i.createTextNode(Ya.exec(y)[0]),L.firstChild);y=L.childNodes}if(y.nodeType)p.push(y);else p=j.merge(p,y)}}if(l)for(u=0;p[u];u++)if(m&&j.nodeName(p[u],"script")&&(!p[u].type||p[u].type.toLowerCase()==="text/javascript"))m.push(p[u].parentNode?p[u].parentNode.removeChild(p[u]):p[u]);else{p[u].nodeType===1&&p.splice.apply(p,[u+1,0].concat(j.makeArray(p[u].getElementsByTagName("script"))));l.appendChild(p[u])}return p},
cleanData:function(c){for(var i,l,m=j.cache,p=j.expando,u=j.event.special,y=j.support.deleteExpando,G=0,E;(E=c[G])!=null;G++)if(!(E.nodeName&&j.noData[E.nodeName.toLowerCase()]))if(l=E[j.expando]){if((i=m[l]&&m[l][p])&&i.events){for(var C in i.events)u[C]?j.event.remove(E,C):j.removeEvent(E,C,i.handle);if(i.handle)i.handle.elem=null}if(y)delete E[j.expando];else E.removeAttribute&&E.removeAttribute(j.expando);delete m[l]}}});var hb=/alpha\([^)]*\)/i,Cb=/opacity=([^)]*)/,Db=/-([a-z])/ig,Eb=/([A-Z])/g,
ib=/^-?\d+(?:px)?$/i,Fb=/^-?\d/,Gb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],rb=["Top","Bottom"],Na,za,Ta,Hb=function(c,i){return i.toUpperCase()};j.fn.css=function(c,i){if(arguments.length===2&&i===d)return this;return j.access(this,c,i,true,function(l,m,p){return p!==d?j.style(l,m,p):j.css(l,m)})};j.extend({cssHooks:{opacity:{get:function(c,i){if(i){var l=Na(c,"opacity","opacity");return l===""?"1":l}else return c.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,
opacity:true,zoom:true,lineHeight:true},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(c,i,l,m){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var p,u=j.camelCase(i),y=c.style,G=j.cssHooks[u];i=j.cssProps[u]||u;if(l!==d){if(!(typeof l==="number"&&isNaN(l)||l==null)){if(typeof l==="number"&&!j.cssNumber[u])l+="px";if(!G||!("set"in G)||(l=G.set(c,l))!==d)try{y[i]=l}catch(E){}}}else{if(G&&"get"in G&&(p=G.get(c,false,m))!==d)return p;return y[i]}}},css:function(c,i,
l){var m,p=j.camelCase(i),u=j.cssHooks[p];i=j.cssProps[p]||p;if(u&&"get"in u&&(m=u.get(c,true,l))!==d)return m;else if(Na)return Na(c,i,p)},swap:function(c,i,l){var m={},p;for(p in i){m[p]=c.style[p];c.style[p]=i[p]}l.call(c);for(p in i)c.style[p]=m[p]},camelCase:function(c){return c.replace(Db,Hb)}});j.curCSS=j.css;j.each(["height","width"],function(c,i){j.cssHooks[i]={get:function(l,m,p){var u;if(m){if(l.offsetWidth!==0)u=z(l,i,p);else j.swap(l,Gb,function(){u=z(l,i,p)});if(u<=0){u=Na(l,i,i);if(u===
"0px"&&Ta)u=Ta(l,i,i);if(u!=null)return u===""||u==="auto"?"0px":u}if(u<0||u==null){u=l.style[i];return u===""||u==="auto"?"0px":u}return typeof u==="string"?u:u+"px"}},set:function(l,m){if(ib.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!j.support.opacity)j.cssHooks.opacity={get:function(c,i){return Cb.test((i&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":i?"1":""},set:function(c,i){var l=c.style;l.zoom=1;var m=j.isNaN(i)?"":"alpha(opacity="+
i*100+")",p=l.filter||"";l.filter=hb.test(p)?p.replace(hb,m):l.filter+" "+m}};if(O.defaultView&&O.defaultView.getComputedStyle)za=function(c,i,l){var m;l=l.replace(Eb,"-$1").toLowerCase();if(!(i=c.ownerDocument.defaultView))return d;if(i=i.getComputedStyle(c,null)){m=i.getPropertyValue(l);if(m===""&&!j.contains(c.ownerDocument.documentElement,c))m=j.style(c,l)}return m};if(O.documentElement.currentStyle)Ta=function(c,i){var l,m=c.currentStyle&&c.currentStyle[i],p=c.runtimeStyle&&c.runtimeStyle[i],
u=c.style;if(!ib.test(m)&&Fb.test(m)){l=u.left;if(p)c.runtimeStyle.left=c.currentStyle.left;u.left=i==="fontSize"?"1em":m||0;m=u.pixelLeft+"px";u.left=l;if(p)c.runtimeStyle.left=p}return m===""?"auto":m};Na=za||Ta;if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(c){var i=c.offsetHeight;return c.offsetWidth===0&&i===0||!j.support.reliableHiddenOffsets&&(c.style.display||j.css(c,"display"))==="none"};j.expr.filters.visible=function(c){return!j.expr.filters.hidden(c)}}var Ib=/%20/g,sb=/\[\]$/,
jb=/\r?\n/g,Jb=/#.*$/,Kb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Lb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Mb=/^(?:GET|HEAD)$/,Nb=/^\/\//,kb=/\?/,Ob=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Pb=/^(?:select|textarea)/i,$a=/\s+/,Qb=/([?&])_=[^&]*/,Rb=/(^|\-)([a-z])/g,Sb=function(c,i,l){return i+l.toUpperCase()},lb=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,mb=j.fn.load,Wa={},nb={},Aa,Ba;try{Aa=O.location.href}catch(Zb){Aa=O.createElement("a");
Aa.href="";Aa=Aa.href}Ba=lb.exec(Aa.toLowerCase());j.fn.extend({load:function(c,i,l){if(typeof c!=="string"&&mb)return mb.apply(this,arguments);else if(!this.length)return this;var m=c.indexOf(" ");if(m>=0){var p=c.slice(m,c.length);c=c.slice(0,m)}m="GET";if(i)if(j.isFunction(i)){l=i;i=d}else if(typeof i==="object"){i=j.param(i,j.ajaxSettings.traditional);m="POST"}var u=this;j.ajax({url:c,type:m,dataType:"html",data:i,complete:function(y,G,E){E=y.responseText;if(y.isResolved()){y.done(function(C){E=
C});u.html(p?j("<div>").append(E.replace(Ob,"")).find(p):E)}l&&u.each(l,[E,G,y])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Pb.test(this.nodeName)||Lb.test(this.type))}).map(function(c,i){var l=j(this).val();return l==null?null:j.isArray(l)?j.map(l,function(m){return{name:i.name,value:m.replace(jb,
"\r\n")}}):{name:i.name,value:l.replace(jb,"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,i){j.fn[i]=function(l){return this.bind(i,l)}});j.each(["get","post"],function(c,i){j[i]=function(l,m,p,u){if(j.isFunction(m)){u=u||p;p=m;m=d}return j.ajax({type:i,url:l,data:m,success:p,dataType:u})}});j.extend({getScript:function(c,i){return j.get(c,d,i,"script")},getJSON:function(c,i,l){return j.get(c,i,l,"json")},ajaxSetup:function(c,i){if(i)j.extend(true,
c,j.ajaxSettings,i);else{i=c;c=j.extend(true,j.ajaxSettings,i)}for(var l in{context:1,url:1})if(l in i)c[l]=i[l];else if(l in j.ajaxSettings)c[l]=j.ajaxSettings[l];return c},ajaxSettings:{url:Aa,isLocal:/(?:^file|^widget|\-extension):$/.test(Ba[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,
json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":true,"text json":j.parseJSON,"text xml":j.parseXML}},ajaxPrefilter:B(Wa),ajaxTransport:B(nb),ajax:function(c,i){function l(D,F,I,R){if(da!==2){da=2;ba&&clearTimeout(ba);W=d;T=R||"";r.readyState=D?4:0;var Q,Z,oa;if(I){R=m;var ja=r,ia=R.contents,w=R.dataTypes,K=R.responseFields,M,N,U,V;for(N in K)if(N in I)ja[K[N]]=I[N];for(;w[0]==="*";){w.shift();if(M===d)M=R.mimeType||ja.getResponseHeader("content-type")}if(M)for(N in ia)if(ia[N]&&
ia[N].test(M)){w.unshift(N);break}if(w[0]in I)U=w[0];else{for(N in I){if(!w[0]||R.converters[N+" "+w[0]]){U=N;break}V||(V=N)}U=U||V}if(U){U!==w[0]&&w.unshift(U);I=I[U]}else I=void 0}else I=d;I=I;if(D>=200&&D<300||D===304){if(m.ifModified){if(M=r.getResponseHeader("Last-Modified"))j.lastModified[C]=M;if(M=r.getResponseHeader("Etag"))j.etag[C]=M}if(D===304){F="notmodified";Q=true}else try{M=m;I=I;if(M.dataFilter)I=M.dataFilter(I,M.dataType);var ca=M.dataTypes;N={};var ea,pa,Ka=ca.length,ta,va=ca[0],
Ia,Za,wa,Ca,Ja;for(ea=1;ea<Ka;ea++){if(ea===1)for(pa in M.converters)if(typeof pa==="string")N[pa.toLowerCase()]=M.converters[pa];Ia=va;va=ca[ea];if(va==="*")va=Ia;else if(Ia!=="*"&&Ia!==va){Za=Ia+" "+va;wa=N[Za]||N["* "+va];if(!wa){Ja=d;for(Ca in N){ta=Ca.split(" ");if(ta[0]===Ia||ta[0]==="*")if(Ja=N[ta[1]+" "+va]){Ca=N[Ca];if(Ca===true)wa=Ja;else if(Ja===true)wa=Ca;break}}}wa||Ja||j.error("No conversion from "+Za.replace(" "," to "));if(wa!==true)I=wa?wa(I):Ja(Ca(I))}}Z=I;F="success";Q=true}catch(Tb){F=
"parsererror";oa=Tb}}else{oa=F;if(!F||D){F="error";if(D<0)D=0}}r.status=D;r.statusText=F;Q?y.resolveWith(p,[Z,F,r]):y.rejectWith(p,[r,F,oa]);r.statusCode(E);E=d;if(ka)u.trigger("ajax"+(Q?"Success":"Error"),[r,m,Q?Z:oa]);G.resolveWith(p,[r,F]);if(ka){u.trigger("ajaxComplete",[r,m]);--j.active||j.event.trigger("ajaxStop")}}}if(typeof c==="object"){i=c;c=d}i=i||{};var m=j.ajaxSetup({},i),p=m.context||m,u=p!==m&&(p.nodeType||p instanceof j)?j(p):j.event,y=j.Deferred(),G=j._Deferred(),E=m.statusCode||
{},C,L={},T,$,W,ba,ha,da=0,ka,ra,r={readyState:0,setRequestHeader:function(D,F){da||(L[D.toLowerCase().replace(Rb,Sb)]=F);return this},getAllResponseHeaders:function(){return da===2?T:null},getResponseHeader:function(D){var F;if(da===2){if(!$)for($={};F=Kb.exec(T);)$[F[1].toLowerCase()]=F[2];F=$[D.toLowerCase()]}return F===d?null:F},overrideMimeType:function(D){if(!da)m.mimeType=D;return this},abort:function(D){D=D||"abort";W&&W.abort(D);l(0,D);return this}};y.promise(r);r.success=r.done;r.error=
r.fail;r.complete=G.done;r.statusCode=function(D){if(D){var F;if(da<2)for(F in D)E[F]=[E[F],D[F]];else{F=D[r.status];r.then(F,F)}}return this};m.url=((c||m.url)+"").replace(Jb,"").replace(Nb,Ba[1]+"//");m.dataTypes=j.trim(m.dataType||"*").toLowerCase().split($a);if(!m.crossDomain){ha=lb.exec(m.url.toLowerCase());m.crossDomain=!!(ha&&(ha[1]!=Ba[1]||ha[2]!=Ba[2]||(ha[3]||(ha[1]==="http:"?80:443))!=(Ba[3]||(Ba[1]==="http:"?80:443))))}if(m.data&&m.processData&&typeof m.data!=="string")m.data=j.param(m.data,
m.traditional);J(Wa,m,i,r);if(da===2)return false;ka=m.global;m.type=m.type.toUpperCase();m.hasContent=!Mb.test(m.type);ka&&j.active++===0&&j.event.trigger("ajaxStart");if(!m.hasContent){if(m.data)m.url+=(kb.test(m.url)?"&":"?")+m.data;C=m.url;if(m.cache===false){ha=j.now();var A=m.url.replace(Qb,"$1_="+ha);m.url=A+(A===m.url?(kb.test(m.url)?"&":"?")+"_="+ha:"")}}if(m.data&&m.hasContent&&m.contentType!==false||i.contentType)L["Content-Type"]=m.contentType;if(m.ifModified){C=C||m.url;if(j.lastModified[C])L["If-Modified-Since"]=
j.lastModified[C];if(j.etag[C])L["If-None-Match"]=j.etag[C]}L.Accept=m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+(m.dataTypes[0]!=="*"?", */*; q=0.01":""):m.accepts["*"];for(ra in m.headers)r.setRequestHeader(ra,m.headers[ra]);if(m.beforeSend&&(m.beforeSend.call(p,r,m)===false||da===2)){r.abort();return false}for(ra in{success:1,error:1,complete:1})r[ra](m[ra]);if(W=J(nb,m,i,r)){r.readyState=1;ka&&u.trigger("ajaxSend",[r,m]);if(m.async&&m.timeout>0)ba=setTimeout(function(){r.abort("timeout")},
m.timeout);try{da=1;W.send(L,l)}catch(H){status<2?l(-1,H):j.error(H)}}else l(-1,"No Transport");return r},param:function(c,i){var l=[],m=function(u,y){y=j.isFunction(y)?y():y;l[l.length]=encodeURIComponent(u)+"="+encodeURIComponent(y)};if(i===d)i=j.ajaxSettings.traditional;if(j.isArray(c)||c.jquery&&!j.isPlainObject(c))j.each(c,function(){m(this.name,this.value)});else for(var p in c)P(p,c[p],i,m);return l.join("&").replace(Ib,"+")}});j.extend({active:0,lastModified:{},etag:{}});var Ub=j.now(),Ua=
/(\=)\?(&|$)|()\?\?()/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+"_"+Ub++}});j.ajaxPrefilter("json jsonp",function(c,i,l){var m=typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||i.jsonpCallback||i.jsonp!=null||c.jsonp!==false&&(Ua.test(c.url)||m&&Ua.test(c.data))){var p,u=c.jsonpCallback=j.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,y=b[u];i=c.url;var G=c.data,E="$1"+u+"$2",C=function(){b[u]=y;p&&j.isFunction(y)&&b[u](p[0])};if(c.jsonp!==false){i=
i.replace(Ua,E);if(c.url===i){if(m)G=G.replace(Ua,E);if(c.data===G)i+=(/\?/.test(i)?"&":"?")+c.jsonp+"="+u}}c.url=i;c.data=G;b[u]=function(L){p=[L]};l.then(C,C);c.converters["script json"]=function(){p||j.error(u+" was not called");return p[0]};c.dataTypes[0]="json";return"script"}});j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){j.globalEval(c);
return c}}});j.ajaxPrefilter("script",function(c){if(c.cache===d)c.cache=false;if(c.crossDomain){c.type="GET";c.global=false}});j.ajaxTransport("script",function(c){if(c.crossDomain){var i,l=O.head||O.getElementsByTagName("head")[0]||O.documentElement;return{send:function(m,p){i=O.createElement("script");i.async="async";if(c.scriptCharset)i.charset=c.scriptCharset;i.src=c.url;i.onload=i.onreadystatechange=function(u,y){if(!i.readyState||/loaded|complete/.test(i.readyState)){i.onload=i.onreadystatechange=
null;l&&i.parentNode&&l.removeChild(i);i=d;y||p(200,"success")}};l.insertBefore(i,l.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var Vb=j.now(),Da;j.ajaxSettings.xhr=b.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&X()))a:{try{c=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(i){}c=void 0}return c}:X;za=j.ajaxSettings.xhr();j.support.ajax=!!za;j.support.cors=za&&"withCredentials"in za;za=d;j.support.ajax&&j.ajaxTransport(function(c){if(!c.crossDomain||j.support.cors){var i;return{send:function(l,
m){var p=c.xhr(),u,y;c.username?p.open(c.type,c.url,c.async,c.username,c.password):p.open(c.type,c.url,c.async);if(c.xhrFields)for(y in c.xhrFields)p[y]=c.xhrFields[y];c.mimeType&&p.overrideMimeType&&p.overrideMimeType(c.mimeType);if(!(c.crossDomain&&!c.hasContent)&&!l["X-Requested-With"])l["X-Requested-With"]="XMLHttpRequest";try{for(y in l)p.setRequestHeader(y,l[y])}catch(G){}p.send(c.hasContent&&c.data||null);i=function(E,C){var L,T,$,W,ba;try{if(i&&(C||p.readyState===4)){i=d;if(u){p.onreadystatechange=
j.noop;delete Da[u]}if(C)p.readyState!==4&&p.abort();else{L=p.status;$=p.getAllResponseHeaders();W={};if((ba=p.responseXML)&&ba.documentElement)W.xml=ba;W.text=p.responseText;try{T=p.statusText}catch(ha){T=""}if(!L&&c.isLocal&&!c.crossDomain)L=W.text?200:404;else if(L===1223)L=204}}}catch(da){C||m(-1,da)}W&&m(L,T,W,$)};if(!c.async||p.readyState===4)i();else{if(!Da){Da={};S()}u=Vb++;p.onreadystatechange=Da[u]=i}},abort:function(){i&&i(0,1)}}}});var Xa={},Wb=/^(?:toggle|show|hide)$/,Xb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
Va,ab=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];j.fn.extend({show:function(c,i,l){if(c||c===0)return this.animate(Y("show",3),c,i,l);else{l=0;for(var m=this.length;l<m;l++){c=this[l];i=c.style.display;if(!j._data(c,"olddisplay")&&i==="none")i=c.style.display="";i===""&&j.css(c,"display")==="none"&&j._data(c,"olddisplay",aa(c.nodeName))}for(l=0;l<m;l++){c=this[l];i=c.style.display;if(i===""||i===
"none")c.style.display=j._data(c,"olddisplay")||""}return this}},hide:function(c,i,l){if(c||c===0)return this.animate(Y("hide",3),c,i,l);else{c=0;for(i=this.length;c<i;c++){l=j.css(this[c],"display");l!=="none"&&!j._data(this[c],"olddisplay")&&j._data(this[c],"olddisplay",l)}for(c=0;c<i;c++)this[c].style.display="none";return this}},_toggle:j.fn.toggle,toggle:function(c,i,l){var m=typeof c==="boolean";if(j.isFunction(c)&&j.isFunction(i))this._toggle.apply(this,arguments);else c==null||m?this.each(function(){var p=
m?c:j(this).is(":hidden");j(this)[p?"show":"hide"]()}):this.animate(Y("toggle",3),c,i,l);return this},fadeTo:function(c,i,l,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:i},c,l,m)},animate:function(c,i,l,m){var p=j.speed(i,l,m);if(j.isEmptyObject(c))return this.each(p.complete);return this[p.queue===false?"each":"queue"](function(){var u=j.extend({},p),y,G=this.nodeType===1,E=G&&j(this).is(":hidden"),C=this;for(y in c){var L=j.camelCase(y);if(y!==L){c[L]=c[y];delete c[y];
y=L}if(c[y]==="hide"&&E||c[y]==="show"&&!E)return u.complete.call(this);if(G&&(y==="height"||y==="width")){u.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(j.css(this,"display")==="inline"&&j.css(this,"float")==="none")if(j.support.inlineBlockNeedsLayout)if(aa(this.nodeName)==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(j.isArray(c[y])){(u.specialEasing=u.specialEasing||{})[y]=
c[y][1];c[y]=c[y][0]}}if(u.overflow!=null)this.style.overflow="hidden";u.curAnim=j.extend({},c);j.each(c,function(T,$){var W=new j.fx(C,u,T);if(Wb.test($))W[$==="toggle"?E?"show":"hide":$](c);else{var ba=Xb.exec($),ha=W.cur();if(ba){var da=parseFloat(ba[2]),ka=ba[3]||(j.cssNumber[T]?"":"px");if(ka!=="px"){j.style(C,T,(da||1)+ka);ha=(da||1)/W.cur()*ha;j.style(C,T,ha+ka)}if(ba[1])da=(ba[1]==="-="?-1:1)*da+ha;W.custom(ha,da,ka)}else W.custom(ha,$,"")}});return true})},stop:function(c,i){var l=j.timers;
c&&this.queue([]);this.each(function(){for(var m=l.length-1;m>=0;m--)if(l[m].elem===this){i&&l[m](true);l.splice(m,1)}});i||this.dequeue();return this}});j.each({slideDown:Y("show",1),slideUp:Y("hide",1),slideToggle:Y("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,i){j.fn[c]=function(l,m,p){return this.animate(i,l,m,p)}});j.extend({speed:function(c,i,l){var m=c&&typeof c==="object"?j.extend({},c):{complete:l||!l&&i||j.isFunction(c)&&c,duration:c,
easing:l&&i||i&&!j.isFunction(i)&&i};m.duration=j.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in j.fx.speeds?j.fx.speeds[m.duration]:j.fx.speeds._default;m.old=m.complete;m.complete=function(){m.queue!==false&&j(this).dequeue();j.isFunction(m.old)&&m.old.call(this)};return m},easing:{linear:function(c,i,l,m){return l+m*c},swing:function(c,i,l,m){return(-Math.cos(c*Math.PI)/2+0.5)*m+l}},timers:[],fx:function(c,i,l){this.options=i;this.elem=c;this.prop=l;if(!i.orig)i.orig={}}});j.fx.prototype=
{update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||j.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var c,i=j.css(this.elem,this.prop);return isNaN(c=parseFloat(i))?!i||i==="auto"?0:i:c},custom:function(c,i,l){function m(y){return p.step(y)}var p=this,u=j.fx;this.startTime=j.now();this.start=c;this.end=i;this.unit=l||this.unit||(j.cssNumber[this.prop]?
"":"px");this.now=this.start;this.pos=this.state=0;m.elem=this.elem;if(m()&&j.timers.push(m)&&!Va)Va=setInterval(u.tick,u.interval)},show:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var i=j.now(),l=true;if(c||i>=this.options.duration+
this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var m in this.options.curAnim)if(this.options.curAnim[m]!==true)l=false;if(l){if(this.options.overflow!=null&&!j.support.shrinkWrapBlocks){var p=this.elem,u=this.options;j.each(["","X","Y"],function(G,E){p.style["overflow"+E]=u.overflow[G]})}this.options.hide&&j(this.elem).hide();if(this.options.hide||this.options.show)for(var y in this.options.curAnim)j.style(this.elem,y,this.options.orig[y]);
this.options.complete.call(this.elem)}return false}else{c=i-this.startTime;this.state=c/this.options.duration;i=this.options.easing||(j.easing.swing?"swing":"linear");this.pos=j.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||i](this.state,c,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};j.extend(j.fx,{tick:function(){for(var c=j.timers,i=0;i<c.length;i++)c[i]()||c.splice(i--,1);c.length||j.fx.stop()},interval:13,
stop:function(){clearInterval(Va);Va=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){j.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null)c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit;else c.elem[c.prop]=c.now}}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(c){return j.grep(j.timers,function(i){return c===i.elem}).length};var Yb=/^t(?:able|d|h)$/i,ob=/^(?:body|html)$/i;j.fn.offset=
"getBoundingClientRect"in O.documentElement?function(c){var i=this[0],l;if(c)return this.each(function(y){j.offset.setOffset(this,c,y)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);try{l=i.getBoundingClientRect()}catch(m){}var p=i.ownerDocument,u=p.documentElement;if(!l||!j.contains(u,i))return l?{top:l.top,left:l.left}:{top:0,left:0};i=p.body;p=la(p);return{top:l.top+(p.pageYOffset||j.support.boxModel&&u.scrollTop||i.scrollTop)-(u.clientTop||i.clientTop||
0),left:l.left+(p.pageXOffset||j.support.boxModel&&u.scrollLeft||i.scrollLeft)-(u.clientLeft||i.clientLeft||0)}}:function(c){var i=this[0];if(c)return this.each(function(C){j.offset.setOffset(this,c,C)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);j.offset.initialize();var l,m=i.offsetParent,p=i.ownerDocument,u=p.documentElement,y=p.body;l=(p=p.defaultView)?p.getComputedStyle(i,null):i.currentStyle;for(var G=i.offsetTop,E=i.offsetLeft;(i=i.parentNode)&&
i!==y&&i!==u;){if(j.offset.supportsFixedPosition&&l.position==="fixed")break;l=p?p.getComputedStyle(i,null):i.currentStyle;G-=i.scrollTop;E-=i.scrollLeft;if(i===m){G+=i.offsetTop;E+=i.offsetLeft;if(j.offset.doesNotAddBorder&&!(j.offset.doesAddBorderForTableAndCells&&Yb.test(i.nodeName))){G+=parseFloat(l.borderTopWidth)||0;E+=parseFloat(l.borderLeftWidth)||0}m=i.offsetParent}if(j.offset.subtractsBorderForOverflowNotVisible&&l.overflow!=="visible"){G+=parseFloat(l.borderTopWidth)||0;E+=parseFloat(l.borderLeftWidth)||
0}l=l}if(l.position==="relative"||l.position==="static"){G+=y.offsetTop;E+=y.offsetLeft}if(j.offset.supportsFixedPosition&&l.position==="fixed"){G+=Math.max(u.scrollTop,y.scrollTop);E+=Math.max(u.scrollLeft,y.scrollLeft)}return{top:G,left:E}};j.offset={initialize:function(){var c=O.body,i=O.createElement("div"),l,m,p,u=parseFloat(j.css(c,"marginTop"))||0;j.extend(i.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});i.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
c.insertBefore(i,c.firstChild);l=i.firstChild;m=l.firstChild;p=l.nextSibling.firstChild.firstChild;this.doesNotAddBorder=m.offsetTop!==5;this.doesAddBorderForTableAndCells=p.offsetTop===5;m.style.position="fixed";m.style.top="20px";this.supportsFixedPosition=m.offsetTop===20||m.offsetTop===15;m.style.position=m.style.top="";l.style.overflow="hidden";l.style.position="relative";this.subtractsBorderForOverflowNotVisible=m.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==u;c.removeChild(i);
j.offset.initialize=j.noop},bodyOffset:function(c){var i=c.offsetTop,l=c.offsetLeft;j.offset.initialize();if(j.offset.doesNotIncludeMarginInBodyOffset){i+=parseFloat(j.css(c,"marginTop"))||0;l+=parseFloat(j.css(c,"marginLeft"))||0}return{top:i,left:l}},setOffset:function(c,i,l){var m=j.css(c,"position");if(m==="static")c.style.position="relative";var p=j(c),u=p.offset(),y=j.css(c,"top"),G=j.css(c,"left"),E=m==="absolute"&&j.inArray("auto",[y,G])>-1;m={};var C={};if(E)C=p.position();y=E?C.top:parseInt(y,
10)||0;G=E?C.left:parseInt(G,10)||0;if(j.isFunction(i))i=i.call(c,l,u);if(i.top!=null)m.top=i.top-u.top+y;if(i.left!=null)m.left=i.left-u.left+G;"using"in i?i.using.call(c,m):p.css(m)}};j.fn.extend({position:function(){if(!this[0])return null;var c=this[0],i=this.offsetParent(),l=this.offset(),m=ob.test(i[0].nodeName)?{top:0,left:0}:i.offset();l.top-=parseFloat(j.css(c,"marginTop"))||0;l.left-=parseFloat(j.css(c,"marginLeft"))||0;m.top+=parseFloat(j.css(i[0],"borderTopWidth"))||0;m.left+=parseFloat(j.css(i[0],
"borderLeftWidth"))||0;return{top:l.top-m.top,left:l.left-m.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||O.body;c&&!ob.test(c.nodeName)&&j.css(c,"position")==="static";)c=c.offsetParent;return c})}});j.each(["Left","Top"],function(c,i){var l="scroll"+i;j.fn[l]=function(m){var p=this[0],u;if(!p)return null;if(m!==d)return this.each(function(){if(u=la(this))u.scrollTo(!c?m:j(u).scrollLeft(),c?m:j(u).scrollTop());else this[l]=m});else return(u=la(p))?"pageXOffset"in
u?u[c?"pageYOffset":"pageXOffset"]:j.support.boxModel&&u.document.documentElement[l]||u.document.body[l]:p[l]}});j.each(["Height","Width"],function(c,i){var l=i.toLowerCase();j.fn["inner"+i]=function(){return this[0]?parseFloat(j.css(this[0],l,"padding")):null};j.fn["outer"+i]=function(m){return this[0]?parseFloat(j.css(this[0],l,m?"margin":"border")):null};j.fn[l]=function(m){var p=this[0];if(!p)return m==null?null:this;if(j.isFunction(m))return this.each(function(y){var G=j(this);G[l](m.call(this,
y,G[l]()))});if(j.isWindow(p)){var u=p.document.documentElement["client"+i];return p.document.compatMode==="CSS1Compat"&&u||p.document.body["client"+i]||u}else if(p.nodeType===9)return Math.max(p.documentElement["client"+i],p.body["scroll"+i],p.documentElement["scroll"+i],p.body["offset"+i],p.documentElement["offset"+i]);else if(m===d){p=j.css(p,l);u=parseFloat(p);return j.isNaN(u)?p:u}else return this.css(l,typeof m==="string"?m:m+"px")}});b.jQuery=b.$=j})(window);(function(b,d){function g(h){return!b(h).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.10",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(h,f){return typeof h==="number"?this.each(function(){var a=this;setTimeout(function(){b(a).focus();f&&f.call(a)},h)}):this._focus.apply(this,arguments)},scrollParent:function(){var h;h=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?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):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"))||!h.length?b(document):h},zIndex:function(h){if(h!==d)return this.css("zIndex",h);if(this.length){h=b(this[0]);for(var f;h.length&&h[0]!==document;){f=h.css("position");
if(f==="absolute"||f==="relative"||f==="fixed"){f=parseInt(h.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}h=h.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(h){h.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(h,f){function a(q,x,s,n){b.each(e,function(){x-=parseFloat(b.curCSS(q,"padding"+this,true))||0;if(s)x-=parseFloat(b.curCSS(q,
"border"+this+"Width",true))||0;if(n)x-=parseFloat(b.curCSS(q,"margin"+this,true))||0});return x}var e=f==="Width"?["Left","Right"]:["Top","Bottom"],k=f.toLowerCase(),o={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+f]=function(q){if(q===d)return o["inner"+f].call(this);return this.each(function(){b(this).css(k,a(this,q)+"px")})};b.fn["outer"+f]=function(q,x){if(typeof q!=="number")return o["outer"+f].call(this,q);return this.each(function(){b(this).css(k,
a(this,q,true,x)+"px")})}});b.extend(b.expr[":"],{data:function(h,f,a){return!!b.data(h,a[3])},focusable:function(h){var f=h.nodeName.toLowerCase(),a=b.attr(h,"tabindex");if("area"===f){f=h.parentNode;a=f.name;if(!h.href||!a||f.nodeName.toLowerCase()!=="map")return false;h=b("img[usemap=#"+a+"]")[0];return!!h&&g(h)}return(/input|select|textarea|button|object/.test(f)?!h.disabled:"a"==f?h.href||!isNaN(a):!isNaN(a))&&g(h)},tabbable:function(h){var f=b.attr(h,"tabindex");return(isNaN(f)||f>=0)&&b(h).is(":focusable")}});
b(function(){var h=document.body,f=h.appendChild(f=document.createElement("div"));b.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=f.offsetHeight===100;b.support.selectstart="onselectstart"in f;h.removeChild(f).style.display="none"});b.extend(b.ui,{plugin:{add:function(h,f,a){h=b.ui[h].prototype;for(var e in a){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([f,a[e]])}},call:function(h,f,a){if((f=h.plugins[f])&&h.element[0].parentNode)for(var e=0;e<f.length;e++)h.options[f[e][0]]&&
f[e][1].apply(h.element,a)}},contains:function(h,f){return document.compareDocumentPosition?h.compareDocumentPosition(f)&16:h!==f&&h.contains(f)},hasScroll:function(h,f){if(b(h).css("overflow")==="hidden")return false;var a=f&&f==="left"?"scrollLeft":"scrollTop",e=false;if(h[a]>0)return true;h[a]=1;e=h[a]>0;h[a]=0;return e},isOverAxis:function(h,f,a){return h>f&&h<f+a},isOver:function(h,f,a,e,k,o){return b.ui.isOverAxis(h,a,k)&&b.ui.isOverAxis(f,e,o)}})}})(jQuery);
(function(b,d){if(b.cleanData){var g=b.cleanData;b.cleanData=function(f){for(var a=0,e;(e=f[a])!=null;a++)b(e).triggerHandler("remove");g(f)}}else{var h=b.fn.remove;b.fn.remove=function(f,a){return this.each(function(){if(!a)if(!f||b.filter(f,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return h.call(b(this),f,a)})}}b.widget=function(f,a,e){var k=f.split(".")[0],o;f=f.split(".")[1];o=k+"-"+f;if(!e){e=a;a=b.Widget}b.expr[":"][o]=function(q){return!!b.data(q,
f)};b[k]=b[k]||{};b[k][f]=function(q,x){arguments.length&&this._createWidget(q,x)};a=new a;a.options=b.extend(true,{},a.options);b[k][f].prototype=b.extend(true,a,{namespace:k,widgetName:f,widgetEventPrefix:b[k][f].prototype.widgetEventPrefix||f,widgetBaseClass:o},e);b.widget.bridge(f,b[k][f])};b.widget.bridge=function(f,a){b.fn[f]=function(e){var k=typeof e==="string",o=Array.prototype.slice.call(arguments,1),q=this;e=!k&&o.length?b.extend.apply(null,[true,e].concat(o)):e;if(k&&e.charAt(0)==="_")return q;
k?this.each(function(){var x=b.data(this,f),s=x&&b.isFunction(x[e])?x[e].apply(x,o):x;if(s!==x&&s!==d){q=s;return false}}):this.each(function(){var x=b.data(this,f);x?x.option(e||{})._init():b.data(this,f,new a(e,this))});return q}};b.Widget=function(f,a){arguments.length&&this._createWidget(f,a)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,a){b.data(a,this.widgetName,this);this.element=b(a);this.options=b.extend(true,{},this.options,
this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(f,a){var e=f;if(arguments.length===0)return b.extend({},this.options);if(typeof f==="string"){if(a===d)return this.options[f];e={};e[f]=a}this._setOptions(e);return this},_setOptions:function(f){var a=this;b.each(f,function(e,k){a._setOption(e,k)});return this},_setOption:function(f,a){this.options[f]=a;if(f==="disabled")this.widget()[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",a);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,a,e){var k=this.options[f];a=b.Event(a);a.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();e=e||{};if(a.originalEvent){f=b.event.props.length;for(var o;f;){o=b.event.props[--f];a[o]=a.originalEvent[o]}}this.element.trigger(a,e);return!(b.isFunction(k)&&k.call(this.element[0],a,e)===false||a.isDefaultPrevented())}}})(jQuery);
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(g){return d._mouseDown(g)}).bind("click."+this.widgetName,function(g){if(true===b.data(g.target,d.widgetName+".preventClickEvent")){b.removeData(g.target,d.widgetName+".preventClickEvent");g.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(d){d.originalEvent=
d.originalEvent||{};if(!d.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var g=this,h=d.which==1,f=typeof this.options.cancel=="string"?b(d.target).parents().add(d.target).filter(this.options.cancel).length:false;if(!h||f||!this._mouseCapture(d))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=
this._mouseStart(d)!==false;if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(a){return g._mouseMove(a)};this._mouseUpDelegate=function(a){return g._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);d.preventDefault();return d.originalEvent.mouseHandled=true}},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted){this._mouseDrag(d);
return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==false)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;d.target==this._mouseDownEvent.target&&b.data(d.target,this.widgetName+".preventClickEvent",
true);this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(b){b.widget("ui.draggable",b.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(d){var g=
this.options;if(this.helper||g.disabled||b(d.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(d);if(!this.handle)return false;return true},_mouseStart:function(d){var g=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();
b.ui.ddmanager&&!g.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,g){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!g){var h=this._uiHash();if(this._trigger("drag",d,h)===false){this._mouseUp({});return false}this.position=h.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);return false},_mouseStop:function(d){var g=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)g=b.ui.ddmanager.drop(this,d);if(this.dropped){g=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!g||this.options.revert=="valid"&&g||this.options.revert===true||b.isFunction(this.options.revert)&&
this.options.revert.call(this.element,g)){var h=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){h._trigger("stop",d)!==false&&h._clear()})}else this._trigger("stop",d)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var g=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
d.target)g=true});return g},_createHelper:function(d){var g=this.options;d=b.isFunction(g.helper)?b(g.helper.apply(this.element[0],[d])):g.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(g.appendTo=="parent"?this.element[0].parentNode:g.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(d){if(typeof d=="string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||
0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var d=this.element.position();return{top:d.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment==
"parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[(d.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(d.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:b(window).scrollLeft())+b(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d.containment=="document"?
0:b(window).scrollTop())+(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){var g=b(d.containment)[0];if(g){d=b(d.containment).offset();var h=b(g).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(g).css("borderLeftWidth"),10)||0)+(parseInt(b(g).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(g).css("borderTopWidth"),
10)||0)+(parseInt(b(g).css("paddingTop"),10)||0)-this.margins.top,d.left+(h?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(b(g).css("borderLeftWidth"),10)||0)-(parseInt(b(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(h?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(b(g).css("borderTopWidth"),10)||0)-(parseInt(b(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(d.containment.constructor==
Array)this.containment=d.containment},_convertPositionTo:function(d,g){if(!g)g=this.position;var h=d=="absolute"?1:-1,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=/(html|body)/i.test(f[0].tagName);return{top:g.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
a?0:f.scrollTop())*h),left:g.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:f.scrollLeft())*h)}},_generatePosition:function(d){var g=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(h[0].tagName),a=d.pageX,e=d.pageY;
if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])e=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])e=this.containment[3]+this.offset.click.top}if(g.grid){e=this.originalPageY+Math.round((e-this.originalPageY)/
g.grid[1])*g.grid[1];e=this.containment?!(e-this.offset.click.top<this.containment[1]||e-this.offset.click.top>this.containment[3])?e:!(e-this.offset.click.top<this.containment[1])?e-g.grid[1]:e+g.grid[1]:e;a=this.originalPageX+Math.round((a-this.originalPageX)/g.grid[0])*g.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-g.grid[0]:a+g.grid[0]:a}}return{top:e-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:h.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(d,g,h){h=h||this._uiHash();b.ui.plugin.call(this,d,[g,h]);if(d=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,d,g,h)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.10"});b.ui.plugin.add("draggable",
"connectToSortable",{start:function(d,g){var h=b(this).data("draggable"),f=h.options,a=b.extend({},g,{item:h.element});h.sortables=[];b(f.connectToSortable).each(function(){var e=b.data(this,"sortable");if(e&&!e.options.disabled){h.sortables.push({instance:e,shouldRevert:e.options.revert});e._refreshItems();e._trigger("activate",d,a)}})},stop:function(d,g){var h=b(this).data("draggable"),f=b.extend({},g,{item:h.element});b.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,f)}})},drag:function(d,g){var h=b(this).data("draggable"),f=this;b.each(h.sortables,function(){this.instance.positionAbs=
h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,
true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",d);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(d)}else if(this.instance.isOver){this.instance.isOver=
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",d);h.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var d=b("body"),g=b(this).data("draggable").options;if(d.css("cursor"))g._cursor=
d.css("cursor");d.css("cursor",g.cursor)},stop:function(){var d=b(this).data("draggable").options;d._cursor&&b("body").css("cursor",d._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var d=b(this).data("draggable").options;b(d.iframeFix===true?"iframe":d.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},
stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(d,g){var h=b(g.helper),f=b(this).data("draggable").options;if(h.css("opacity"))f._opacity=h.css("opacity");h.css("opacity",f.opacity)},stop:function(d,g){var h=b(this).data("draggable").options;h._opacity&&b(g.helper).css("opacity",h._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var d=b(this).data("draggable");if(d.scrollParent[0]!=
document&&d.scrollParent[0].tagName!="HTML")d.overflowOffset=d.scrollParent.offset()},drag:function(d){var g=b(this).data("draggable"),h=g.options,f=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x")if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-d.pageY<h.scrollSensitivity)g.scrollParent[0].scrollTop=f=g.scrollParent[0].scrollTop+h.scrollSpeed;else if(d.pageY-g.overflowOffset.top<h.scrollSensitivity)g.scrollParent[0].scrollTop=f=g.scrollParent[0].scrollTop-
h.scrollSpeed;if(!h.axis||h.axis!="y")if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-d.pageX<h.scrollSensitivity)g.scrollParent[0].scrollLeft=f=g.scrollParent[0].scrollLeft+h.scrollSpeed;else if(d.pageX-g.overflowOffset.left<h.scrollSensitivity)g.scrollParent[0].scrollLeft=f=g.scrollParent[0].scrollLeft-h.scrollSpeed}else{if(!h.axis||h.axis!="x")if(d.pageY-b(document).scrollTop()<h.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()-h.scrollSpeed);else if(b(window).height()-
(d.pageY-b(document).scrollTop())<h.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()+h.scrollSpeed);if(!h.axis||h.axis!="y")if(d.pageX-b(document).scrollLeft()<h.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()-h.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<h.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()+h.scrollSpeed)}f!==false&&b.ui.ddmanager&&!h.dropBehaviour&&b.ui.ddmanager.prepareOffsets(g,d)}});b.ui.plugin.add("draggable",
"snap",{start:function(){var d=b(this).data("draggable"),g=d.options;d.snapElements=[];b(g.snap.constructor!=String?g.snap.items||":data(draggable)":g.snap).each(function(){var h=b(this),f=h.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:f.top,left:f.left})})},drag:function(d,g){for(var h=b(this).data("draggable"),f=h.options,a=f.snapTolerance,e=g.offset.left,k=e+h.helperProportions.width,o=g.offset.top,q=o+h.helperProportions.height,x=
h.snapElements.length-1;x>=0;x--){var s=h.snapElements[x].left,n=s+h.snapElements[x].width,v=h.snapElements[x].top,z=v+h.snapElements[x].height;if(s-a<e&&e<n+a&&v-a<o&&o<z+a||s-a<e&&e<n+a&&v-a<q&&q<z+a||s-a<k&&k<n+a&&v-a<o&&o<z+a||s-a<k&&k<n+a&&v-a<q&&q<z+a){if(f.snapMode!="inner"){var B=Math.abs(v-q)<=a,J=Math.abs(z-o)<=a,P=Math.abs(s-k)<=a,S=Math.abs(n-e)<=a;if(B)g.position.top=h._convertPositionTo("relative",{top:v-h.helperProportions.height,left:0}).top-h.margins.top;if(J)g.position.top=h._convertPositionTo("relative",
{top:z,left:0}).top-h.margins.top;if(P)g.position.left=h._convertPositionTo("relative",{top:0,left:s-h.helperProportions.width}).left-h.margins.left;if(S)g.position.left=h._convertPositionTo("relative",{top:0,left:n}).left-h.margins.left}var X=B||J||P||S;if(f.snapMode!="outer"){B=Math.abs(v-o)<=a;J=Math.abs(z-q)<=a;P=Math.abs(s-e)<=a;S=Math.abs(n-k)<=a;if(B)g.position.top=h._convertPositionTo("relative",{top:v,left:0}).top-h.margins.top;if(J)g.position.top=h._convertPositionTo("relative",{top:z-h.helperProportions.height,
left:0}).top-h.margins.top;if(P)g.position.left=h._convertPositionTo("relative",{top:0,left:s}).left-h.margins.left;if(S)g.position.left=h._convertPositionTo("relative",{top:0,left:n-h.helperProportions.width}).left-h.margins.left}if(!h.snapElements[x].snapping&&(B||J||P||S||X))h.options.snap.snap&&h.options.snap.snap.call(h.element,d,b.extend(h._uiHash(),{snapItem:h.snapElements[x].item}));h.snapElements[x].snapping=B||J||P||S||X}else{h.snapElements[x].snapping&&h.options.snap.release&&h.options.snap.release.call(h.element,
d,b.extend(h._uiHash(),{snapItem:h.snapElements[x].item}));h.snapElements[x].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var d=b(this).data("draggable").options;d=b.makeArray(b(d.stack)).sort(function(h,f){return(parseInt(b(h).css("zIndex"),10)||0)-(parseInt(b(f).css("zIndex"),10)||0)});if(d.length){var g=parseInt(d[0].style.zIndex)||0;b(d).each(function(h){this.style.zIndex=g+h});this[0].style.zIndex=g+d.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(d,
g){var h=b(g.helper),f=b(this).data("draggable").options;if(h.css("zIndex"))f._zIndex=h.css("zIndex");h.css("zIndex",f.zIndex)},stop:function(d,g){var h=b(this).data("draggable").options;h._zIndex&&b(g.helper).css("zIndex",h._zIndex)}})})(jQuery);
(function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,g=d.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(g)?g:function(h){return h.is(g)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[d.scope]=b.ui.ddmanager.droppables[d.scope]||[];b.ui.ddmanager.droppables[d.scope].push(this);
d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=b.ui.ddmanager.droppables[this.options.scope],g=0;g<d.length;g++)d[g]==this&&d.splice(g,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,g){if(d=="accept")this.accept=b.isFunction(g)?g:function(h){return h.is(g)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var g=b.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);g&&this._trigger("activate",d,this.ui(g))},_deactivate:function(d){var g=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);g&&this._trigger("deactivate",d,this.ui(g))},_over:function(d){var g=b.ui.ddmanager.current;if(!(!g||(g.currentItem||g.element)[0]==this.element[0]))if(this.accept.call(this.element[0],g.currentItem||g.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",d,this.ui(g))}},_out:function(d){var g=b.ui.ddmanager.current;if(!(!g||(g.currentItem||g.element)[0]==this.element[0]))if(this.accept.call(this.element[0],g.currentItem||g.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(g))}},_drop:function(d,g){var h=g||b.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0])return false;var f=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var a=
b.data(this,"droppable");if(a.options.greedy&&!a.options.disabled&&a.options.scope==h.options.scope&&a.accept.call(a.element[0],h.currentItem||h.element)&&b.ui.intersect(h,b.extend(a,{offset:a.element.offset()}),a.options.tolerance)){f=true;return false}});if(f)return false;if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
d,this.ui(h));return this.element}return false},ui:function(d){return{draggable:d.currentItem||d.element,helper:d.helper,position:d.position,offset:d.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.10"});b.ui.intersect=function(d,g,h){if(!g.offset)return false;var f=(d.positionAbs||d.position.absolute).left,a=f+d.helperProportions.width,e=(d.positionAbs||d.position.absolute).top,k=e+d.helperProportions.height,o=g.offset.left,q=o+g.proportions.width,x=g.offset.top,s=x+g.proportions.height;switch(h){case "fit":return o<=
f&&a<=q&&x<=e&&k<=s;case "intersect":return o<f+d.helperProportions.width/2&&a-d.helperProportions.width/2<q&&x<e+d.helperProportions.height/2&&k-d.helperProportions.height/2<s;case "pointer":return b.ui.isOver((d.positionAbs||d.position.absolute).top+(d.clickOffset||d.offset.click).top,(d.positionAbs||d.position.absolute).left+(d.clickOffset||d.offset.click).left,x,o,g.proportions.height,g.proportions.width);case "touch":return(e>=x&&e<=s||k>=x&&k<=s||e<x&&k>s)&&(f>=o&&f<=q||a>=o&&a<=q||f<o&&a>q);
default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,g){var h=b.ui.ddmanager.droppables[d.options.scope]||[],f=g?g.type:null,a=(d.currentItem||d.element).find(":data(droppable)").andSelf(),e=0;a:for(;e<h.length;e++)if(!(h[e].options.disabled||d&&!h[e].accept.call(h[e].element[0],d.currentItem||d.element))){for(var k=0;k<a.length;k++)if(a[k]==h[e].element[0]){h[e].proportions.height=0;continue a}h[e].visible=h[e].element.css("display")!="none";if(h[e].visible){h[e].offset=
h[e].element.offset();h[e].proportions={width:h[e].element[0].offsetWidth,height:h[e].element[0].offsetHeight};f=="mousedown"&&h[e]._activate.call(h[e],g)}}},drop:function(d,g){var h=false;b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(d,this,this.options.tolerance))h=h||this._drop.call(this,g);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,g)}}});return h},drag:function(d,g){d.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(d,g);b.each(b.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=b.ui.intersect(d,this,this.options.tolerance);if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var f;if(this.options.greedy){var a=this.element.parents(":data(droppable):eq(0)");if(a.length){f=b.data(a[0],"droppable");
f.greedyChild=h=="isover"?1:0}}if(f&&h=="isover"){f.isover=0;f.isout=1;f._out.call(f,g)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,g);if(f&&h=="isout"){f.isout=0;f.isover=1;f._over.call(f,g)}}}})}}})(jQuery);
(function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var h=this,f=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=f.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var a=this.handles.split(",");this.handles={};for(var e=0;e<a.length;e++){var k=b.trim(a[e]),o=b('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&o.css({zIndex:++f.zIndex});"se"==k&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(o)}}this._renderAxis=function(q){q=q||this.element;for(var x in this.handles){if(this.handles[x].constructor==
String)this.handles[x]=b(this.handles[x],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=b(this.handles[x],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(x)?s.outerHeight():s.outerWidth();s=["padding",/ne|nw|n/.test(x)?"Top":/se|sw|s/.test(x)?"Bottom":/^e$/.test(x)?"Right":"Left"].join("");q.css(s,n);this._proportionallyResize()}b(this.handles[x])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!h.resizing){if(this.className)var q=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);h.axis=q&&q[1]?q[1]:"se"}});if(f.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");h._handles.show()},function(){if(!h.resizing){b(this).addClass("ui-resizable-autohide");h._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var h=function(a){b(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){h(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);h(this.originalElement);return this},_mouseCapture:function(h){var f=false,a;for(a in this.handles)if(b(this.handles[a])[0]==h.target)f=true;return!this.options.disabled&&f},_mouseStart:function(h){var f=this.options,a=this.element.position(),
e=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(e.is(".ui-draggable")||/absolute/.test(e.css("position")))e.css({position:"absolute",top:a.top,left:a.left});b.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();a=d(this.helper.css("left"));var k=d(this.helper.css("top"));if(f.containment){a+=b(f.containment).scrollLeft()||0;k+=b(f.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:a,top:k};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:a,top:k};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:h.pageX,top:h.pageY};this.aspectRatio=typeof f.aspectRatio=="number"?f.aspectRatio:
this.originalSize.width/this.originalSize.height||1;f=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",f=="auto"?this.axis+"-resize":f);e.addClass("ui-resizable-resizing");this._propagate("start",h);return true},_mouseDrag:function(h){var f=this.helper,a=this.originalMousePosition,e=this._change[this.axis];if(!e)return false;a=e.apply(this,[h,h.pageX-a.left||0,h.pageY-a.top||0]);if(this._aspectRatio||h.shiftKey)a=this._updateRatio(a,h);a=this._respectSize(a,h);this._propagate("resize",
h);f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(a);this._trigger("resize",h,this.ui());return false},_mouseStop:function(h){this.resizing=false;var f=this.options;if(this._helper){var a=this._proportionallyResizeElements,e=a.length&&/textarea/i.test(a[0].nodeName);a=e&&b.ui.hasScroll(a[0],"left")?0:this.sizeDiff.height;
e=e?0:this.sizeDiff.width;e={width:this.helper.width()-e,height:this.helper.height()-a};a=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var k=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;f.animate||this.element.css(b.extend(e,{top:k,left:a}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!f.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",h);this._helper&&this.helper.remove();return false},_updateCache:function(h){this.offset=this.helper.offset();if(g(h.left))this.position.left=h.left;if(g(h.top))this.position.top=h.top;if(g(h.height))this.size.height=h.height;if(g(h.width))this.size.width=h.width},_updateRatio:function(h){var f=this.position,a=this.size,e=this.axis;if(h.height)h.width=a.height*this.aspectRatio;else if(h.width)h.height=a.width/this.aspectRatio;if(e=="sw"){h.left=f.left+(a.width-h.width);h.top=
null}if(e=="nw"){h.top=f.top+(a.height-h.height);h.left=f.left+(a.width-h.width)}return h},_respectSize:function(h){var f=this.options,a=this.axis,e=g(h.width)&&f.maxWidth&&f.maxWidth<h.width,k=g(h.height)&&f.maxHeight&&f.maxHeight<h.height,o=g(h.width)&&f.minWidth&&f.minWidth>h.width,q=g(h.height)&&f.minHeight&&f.minHeight>h.height;if(o)h.width=f.minWidth;if(q)h.height=f.minHeight;if(e)h.width=f.maxWidth;if(k)h.height=f.maxHeight;var x=this.originalPosition.left+this.originalSize.width,s=this.position.top+
this.size.height,n=/sw|nw|w/.test(a);a=/nw|ne|n/.test(a);if(o&&n)h.left=x-f.minWidth;if(e&&n)h.left=x-f.maxWidth;if(q&&a)h.top=s-f.minHeight;if(k&&a)h.top=s-f.maxHeight;if((f=!h.width&&!h.height)&&!h.left&&h.top)h.top=null;else if(f&&!h.top&&h.left)h.left=null;return h},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var h=this.helper||this.element,f=0;f<this._proportionallyResizeElements.length;f++){var a=this._proportionallyResizeElements[f];if(!this.borderDif){var e=
[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],k=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];this.borderDif=b.map(e,function(o,q){var x=parseInt(o,10)||0,s=parseInt(k[q],10)||0;return x+s})}b.browser.msie&&(b(h).is(":hidden")||b(h).parents(":hidden").length)||a.css({height:h.height()-this.borderDif[0]-this.borderDif[2]||0,width:h.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var h=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var f=b.browser.msie&&b.browser.version<7,a=f?1:0;f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(h,
f){return{width:this.originalSize.width+f}},w:function(h,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(h,f,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(h,f,a){return{height:this.originalSize.height+a}},se:function(h,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[h,f,a]))},sw:function(h,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[h,f,
a]))},ne:function(h,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[h,f,a]))},nw:function(h,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[h,f,a]))}},_propagate:function(h,f){b.ui.plugin.call(this,h,[f,this.ui()]);h!="resize"&&this._trigger(h,f,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.8.10"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var h=b(this).data("resizable").options,f=function(a){b(a).each(function(){var e=b(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10),position:e.css("position")})})};if(typeof h.alsoResize=="object"&&!h.alsoResize.parentNode)if(h.alsoResize.length){h.alsoResize=
h.alsoResize[0];f(h.alsoResize)}else b.each(h.alsoResize,function(a){f(a)});else f(h.alsoResize)},resize:function(h,f){var a=b(this).data("resizable"),e=a.options,k=a.originalSize,o=a.originalPosition,q={height:a.size.height-k.height||0,width:a.size.width-k.width||0,top:a.position.top-o.top||0,left:a.position.left-o.left||0},x=function(s,n){b(s).each(function(){var v=b(this),z=b(this).data("resizable-alsoresize"),B={},J=n&&n.length?n:v.parents(f.originalElement[0]).length?["width","height"]:["width",
"height","top","left"];b.each(J,function(P,S){var X=(z[S]||0)+(q[S]||0);if(X&&X>=0)B[S]=X||null});if(b.browser.opera&&/relative/.test(v.css("position"))){a._revertToRelativePosition=true;v.css({position:"absolute",top:"auto",left:"auto"})}v.css(B)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?b.each(e.alsoResize,function(s,n){x(s,n)}):x(e.alsoResize)},stop:function(){var h=b(this).data("resizable"),f=h.options,a=function(e){b(e).each(function(){var k=b(this);k.css({position:k.data("resizable-alsoresize").position})})};
if(h._revertToRelativePosition){h._revertToRelativePosition=false;typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?b.each(f.alsoResize,function(e){a(e)}):a(f.alsoResize)}b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(h){var f=b(this).data("resizable"),a=f.options,e=f._proportionallyResizeElements,k=e.length&&/textarea/i.test(e[0].nodeName),o=k&&b.ui.hasScroll(e[0],"left")?0:f.sizeDiff.height;k={width:f.size.width-(k?0:f.sizeDiff.width),height:f.size.height-
o};o=parseInt(f.element.css("left"),10)+(f.position.left-f.originalPosition.left)||null;var q=parseInt(f.element.css("top"),10)+(f.position.top-f.originalPosition.top)||null;f.element.animate(b.extend(k,q&&o?{top:q,left:o}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var x={width:parseInt(f.element.css("width"),10),height:parseInt(f.element.css("height"),10),top:parseInt(f.element.css("top"),10),left:parseInt(f.element.css("left"),10)};e&&e.length&&b(e[0]).css({width:x.width,
height:x.height});f._updateCache(x);f._propagate("resize",h)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var h=b(this).data("resizable"),f=h.element,a=h.options.containment;if(f=a instanceof b?a.get(0):/parent/.test(a)?f.parent().get(0):a){h.containerElement=b(f);if(/document/.test(a)||a==document){h.containerOffset={left:0,top:0};h.containerPosition={left:0,top:0};h.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var e=
b(f),k=[];b(["Top","Right","Left","Bottom"]).each(function(x,s){k[x]=d(e.css("padding"+s))});h.containerOffset=e.offset();h.containerPosition=e.position();h.containerSize={height:e.innerHeight()-k[3],width:e.innerWidth()-k[1]};a=h.containerOffset;var o=h.containerSize.height,q=h.containerSize.width;q=b.ui.hasScroll(f,"left")?f.scrollWidth:q;o=b.ui.hasScroll(f)?f.scrollHeight:o;h.parentData={element:f,left:a.left,top:a.top,width:q,height:o}}}},resize:function(h){var f=b(this).data("resizable"),a=f.options,
e=f.containerOffset,k=f.position;h=f._aspectRatio||h.shiftKey;var o={top:0,left:0},q=f.containerElement;if(q[0]!=document&&/static/.test(q.css("position")))o=e;if(k.left<(f._helper?e.left:0)){f.size.width+=f._helper?f.position.left-e.left:f.position.left-o.left;if(h)f.size.height=f.size.width/a.aspectRatio;f.position.left=a.helper?e.left:0}if(k.top<(f._helper?e.top:0)){f.size.height+=f._helper?f.position.top-e.top:f.position.top;if(h)f.size.width=f.size.height*a.aspectRatio;f.position.top=f._helper?
e.top:0}f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top;a=Math.abs((f._helper?f.offset.left-o.left:f.offset.left-o.left)+f.sizeDiff.width);e=Math.abs((f._helper?f.offset.top-o.top:f.offset.top-e.top)+f.sizeDiff.height);k=f.containerElement.get(0)==f.element.parent().get(0);o=/relative|absolute/.test(f.containerElement.css("position"));if(k&&o)a-=f.parentData.left;if(a+f.size.width>=f.parentData.width){f.size.width=f.parentData.width-a;if(h)f.size.height=
f.size.width/f.aspectRatio}if(e+f.size.height>=f.parentData.height){f.size.height=f.parentData.height-e;if(h)f.size.width=f.size.height*f.aspectRatio}},stop:function(){var h=b(this).data("resizable"),f=h.options,a=h.containerOffset,e=h.containerPosition,k=h.containerElement,o=b(h.helper),q=o.offset(),x=o.outerWidth()-h.sizeDiff.width;o=o.outerHeight()-h.sizeDiff.height;h._helper&&!f.animate&&/relative/.test(k.css("position"))&&b(this).css({left:q.left-e.left-a.left,width:x,height:o});h._helper&&!f.animate&&
/static/.test(k.css("position"))&&b(this).css({left:q.left-e.left-a.left,width:x,height:o})}});b.ui.plugin.add("resizable","ghost",{start:function(){var h=b(this).data("resizable"),f=h.options,a=h.size;h.ghost=h.originalElement.clone();h.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");h.ghost.appendTo(h.helper)},resize:function(){var h=b(this).data("resizable");
h.ghost&&h.ghost.css({position:"relative",height:h.size.height,width:h.size.width})},stop:function(){var h=b(this).data("resizable");h.ghost&&h.helper&&h.helper.get(0).removeChild(h.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var h=b(this).data("resizable"),f=h.options,a=h.size,e=h.originalSize,k=h.originalPosition,o=h.axis;f.grid=typeof f.grid=="number"?[f.grid,f.grid]:f.grid;var q=Math.round((a.width-e.width)/(f.grid[0]||1))*(f.grid[0]||1);f=Math.round((a.height-e.height)/
(f.grid[1]||1))*(f.grid[1]||1);if(/^(se|s|e)$/.test(o)){h.size.width=e.width+q;h.size.height=e.height+f}else if(/^(ne)$/.test(o)){h.size.width=e.width+q;h.size.height=e.height+f;h.position.top=k.top-f}else{if(/^(sw)$/.test(o)){h.size.width=e.width+q;h.size.height=e.height+f}else{h.size.width=e.width+q;h.size.height=e.height+f;h.position.top=k.top-f}h.position.left=k.left-q}}});var d=function(h){return parseInt(h,10)||0},g=function(h){return!isNaN(parseInt(h,10))}})(jQuery);
(function(b){b.widget("ui.selectable",b.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var g;this.refresh=function(){g=b(d.options.filter,d.element[0]);g.each(function(){var h=b(this),f=h.offset();b.data(this,"selectable-item",{element:this,$element:h,left:f.left,top:f.top,right:f.left+h.outerWidth(),bottom:f.top+h.outerHeight(),startselected:false,selected:h.hasClass("ui-selected"),
selecting:h.hasClass("ui-selecting"),unselecting:h.hasClass("ui-unselecting")})})};this.refresh();this.selectees=g.addClass("ui-selectee");this._mouseInit();this.helper=b("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(d){var g=this;this.opos=[d.pageX,
d.pageY];if(!this.options.disabled){var h=this.options;this.selectees=b(h.filter,this.element[0]);this._trigger("start",d);b(h.appendTo).append(this.helper);this.helper.css({left:d.clientX,top:d.clientY,width:0,height:0});h.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var f=b.data(this,"selectable-item");f.startselected=true;if(!d.metaKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;g._trigger("unselecting",
d,{unselecting:f.element})}});b(d.target).parents().andSelf().each(function(){var f=b.data(this,"selectable-item");if(f){var a=!d.metaKey||!f.$element.hasClass("ui-selected");f.$element.removeClass(a?"ui-unselecting":"ui-selected").addClass(a?"ui-selecting":"ui-unselecting");f.unselecting=!a;f.selecting=a;(f.selected=a)?g._trigger("selecting",d,{selecting:f.element}):g._trigger("unselecting",d,{unselecting:f.element});return false}})}},_mouseDrag:function(d){var g=this;this.dragged=true;if(!this.options.disabled){var h=
this.options,f=this.opos[0],a=this.opos[1],e=d.pageX,k=d.pageY;if(f>e){var o=e;e=f;f=o}if(a>k){o=k;k=a;a=o}this.helper.css({left:f,top:a,width:e-f,height:k-a});this.selectees.each(function(){var q=b.data(this,"selectable-item");if(!(!q||q.element==g.element[0])){var x=false;if(h.tolerance=="touch")x=!(q.left>e||q.right<f||q.top>k||q.bottom<a);else if(h.tolerance=="fit")x=q.left>f&&q.right<e&&q.top>a&&q.bottom<k;if(x){if(q.selected){q.$element.removeClass("ui-selected");q.selected=false}if(q.unselecting){q.$element.removeClass("ui-unselecting");
q.unselecting=false}if(!q.selecting){q.$element.addClass("ui-selecting");q.selecting=true;g._trigger("selecting",d,{selecting:q.element})}}else{if(q.selecting)if(d.metaKey&&q.startselected){q.$element.removeClass("ui-selecting");q.selecting=false;q.$element.addClass("ui-selected");q.selected=true}else{q.$element.removeClass("ui-selecting");q.selecting=false;if(q.startselected){q.$element.addClass("ui-unselecting");q.unselecting=true}g._trigger("unselecting",d,{unselecting:q.element})}if(q.selected)if(!d.metaKey&&
!q.startselected){q.$element.removeClass("ui-selected");q.selected=false;q.$element.addClass("ui-unselecting");q.unselecting=true;g._trigger("unselecting",d,{unselecting:q.element})}}}});return false}},_mouseStop:function(d){var g=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var h=b.data(this,"selectable-item");h.$element.removeClass("ui-unselecting");h.unselecting=false;h.startselected=false;g._trigger("unselected",d,{unselected:h.element})});b(".ui-selecting",this.element[0]).each(function(){var h=
b.data(this,"selectable-item");h.$element.removeClass("ui-selecting").addClass("ui-selected");h.selecting=false;h.selected=true;h.startselected=true;g._trigger("selected",d,{selected:h.element})});this._trigger("stop",d);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.8.10"})})(jQuery);
(function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var d=this.items.length-1;d>=0;d--)this.items[d].item.removeData("sortable-item");return this},_setOption:function(d,g){if(d==="disabled"){this.options[d]=g;this.widget()[g?"addClass":"removeClass"]("ui-sortable-disabled")}else b.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(d,g){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(d);var h=null,f=this;b(d.target).parents().each(function(){if(b.data(this,"sortable-item")==f){h=b(this);return false}});if(b.data(d.target,"sortable-item")==f)h=b(d.target);if(!h)return false;if(this.options.handle&&!g){var a=false;b(this.options.handle,h).find("*").andSelf().each(function(){if(this==d.target)a=true});if(!a)return false}this.currentItem=
h;this._removeCurrentsFromItems();return true},_mouseStart:function(d,g,h){g=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();g.containment&&this._setContainment();
if(g.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",g.cursor)}if(g.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h)for(h=this.containers.length-1;h>=0;h--)this.containers[h]._trigger("activate",d,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!g.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(d){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var g=this.options,h=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-d.pageY<g.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed;else if(d.pageY-this.overflowOffset.top<g.scrollSensitivity)this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-d.pageX<g.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed;else if(d.pageX-this.overflowOffset.left<g.scrollSensitivity)this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed}else{if(d.pageY-b(document).scrollTop()<g.scrollSensitivity)h=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed);else if(b(window).height()-(d.pageY-b(document).scrollTop())<g.scrollSensitivity)h=b(document).scrollTop(b(document).scrollTop()+
g.scrollSpeed);if(d.pageX-b(document).scrollLeft()<g.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed);else if(b(window).width()-(d.pageX-b(document).scrollLeft())<g.scrollSensitivity)h=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}h!==false&&b.ui.ddmanager&&!g.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,d)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(g=this.items.length-1;g>=0;g--){h=this.items[g];var f=h.item[0],a=this._intersectsWithPointer(h);if(a)if(f!=this.currentItem[0]&&this.placeholder[a==1?"next":"prev"]()[0]!=f&&!b.ui.contains(this.placeholder[0],f)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],f):true)){this.direction=a==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(h))this._rearrange(d,
h);else break;this._trigger("change",d,this._uiHash());break}}this._contactContainers(d);b.ui.ddmanager&&b.ui.ddmanager.drag(this,d);this._trigger("sort",d,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,g){if(d){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,d);if(this.options.revert){var h=this,f=h.placeholder.offset();h.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-h.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-h.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){h._clear(d)})}else this._clear(d,g);return false}},cancel:function(){if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,this._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(d){var g=this._getItemsAsjQuery(d&&d.connected),h=[];d=d||{};b(g).each(function(){var f=(b(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(f)h.push((d.key||f[1]+"[]")+"="+(d.key&&d.expression?f[1]:f[2]))});!h.length&&d.key&&h.push(d.key+"=");return h.join("&")},toArray:function(d){var g=this._getItemsAsjQuery(d&&d.connected),h=[];d=d||{};g.each(function(){h.push(b(d.item||this).attr(d.attribute||
"id")||"")});return h},_intersectsWith:function(d){var g=this.positionAbs.left,h=g+this.helperProportions.width,f=this.positionAbs.top,a=f+this.helperProportions.height,e=d.left,k=e+d.width,o=d.top,q=o+d.height,x=this.offset.click.top,s=this.offset.click.left;x=f+x>o&&f+x<q&&g+s>e&&g+s<k;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>d[this.floating?"width":"height"]?x:e<g+
this.helperProportions.width/2&&h-this.helperProportions.width/2<k&&o<f+this.helperProportions.height/2&&a-this.helperProportions.height/2<q},_intersectsWithPointer:function(d){var g=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);g=g&&d;d=this._getDragVerticalDirection();var h=this._getDragHorizontalDirection();if(!g)return false;return this.floating?h&&h=="right"||d=="down"?2:1:d&&(d=="down"?
2:1)},_intersectsWithSides:function(d){var g=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var h=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&d||f=="left"&&!d:h&&(h=="down"&&g||h=="up"&&!g)},_getDragVerticalDirection:function(){var d=this.positionAbs.top-this.lastPositionAbs.top;return d!=0&&(d>0?"down":"up")},
_getDragHorizontalDirection:function(){var d=this.positionAbs.left-this.lastPositionAbs.left;return d!=0&&(d>0?"right":"left")},refresh:function(d){this._refreshItems(d);this.refreshPositions();return this},_connectWith:function(){var d=this.options;return d.connectWith.constructor==String?[d.connectWith]:d.connectWith},_getItemsAsjQuery:function(d){var g=[],h=[],f=this._connectWith();if(f&&d)for(d=f.length-1;d>=0;d--)for(var a=b(f[d]),e=a.length-1;e>=0;e--){var k=b.data(a[e],"sortable");if(k&&k!=
this&&!k.options.disabled)h.push([b.isFunction(k.options.items)?k.options.items.call(k.element):b(k.options.items,k.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),k])}h.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(d=h.length-1;d>=0;d--)h[d][0].each(function(){g.push(this)});return b(g)},_removeCurrentsFromItems:function(){for(var d=
this.currentItem.find(":data(sortable-item)"),g=0;g<this.items.length;g++)for(var h=0;h<d.length;h++)d[h]==this.items[g].item[0]&&this.items.splice(g,1)},_refreshItems:function(d){this.items=[];this.containers=[this];var g=this.items,h=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],d,{item:this.currentItem}):b(this.options.items,this.element),this]],f=this._connectWith();if(f)for(var a=f.length-1;a>=0;a--)for(var e=b(f[a]),k=e.length-1;k>=0;k--){var o=b.data(e[k],"sortable");
if(o&&o!=this&&!o.options.disabled){h.push([b.isFunction(o.options.items)?o.options.items.call(o.element[0],d,{item:this.currentItem}):b(o.options.items,o.element),o]);this.containers.push(o)}}for(a=h.length-1;a>=0;a--){d=h[a][1];f=h[a][0];k=0;for(e=f.length;k<e;k++){o=b(f[k]);o.data("sortable-item",d);g.push({item:o,instance:d,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var g=this.items.length-1;g>=
0;g--){var h=this.items[g],f=this.options.toleranceElement?b(this.options.toleranceElement,h.item):h.item;if(!d){h.width=f.outerWidth();h.height=f.outerHeight()}f=f.offset();h.left=f.left;h.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(g=this.containers.length-1;g>=0;g--){f=this.containers[g].element.offset();this.containers[g].containerCache.left=f.left;this.containers[g].containerCache.top=f.top;this.containers[g].containerCache.width=
this.containers[g].element.outerWidth();this.containers[g].containerCache.height=this.containers[g].element.outerHeight()}return this},_createPlaceholder:function(d){var g=d||this,h=g.options;if(!h.placeholder||h.placeholder.constructor==String){var f=h.placeholder;h.placeholder={element:function(){var a=b(document.createElement(g.currentItem[0].nodeName)).addClass(f||g.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!f)a.style.visibility="hidden";return a},
update:function(a,e){if(!(f&&!h.forcePlaceholderSize)){e.height()||e.height(g.currentItem.innerHeight()-parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10));e.width()||e.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||0,10)-parseInt(g.currentItem.css("paddingRight")||0,10))}}}}g.placeholder=b(h.placeholder.element.call(g.element,g.currentItem));g.currentItem.after(g.placeholder);h.placeholder.update(g,g.placeholder)},_contactContainers:function(d){for(var g=
null,h=null,f=this.containers.length-1;f>=0;f--)if(!b.ui.contains(this.currentItem[0],this.containers[f].element[0]))if(this._intersectsWith(this.containers[f].containerCache)){if(!(g&&b.ui.contains(this.containers[f].element[0],g.element[0]))){g=this.containers[f];h=f}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",d,this._uiHash(this));this.containers[f].containerCache.over=0}if(g)if(this.containers.length===1){this.containers[h]._trigger("over",d,this._uiHash(this));
this.containers[h].containerCache.over=1}else if(this.currentContainer!=this.containers[h]){g=1E4;f=null;for(var a=this.positionAbs[this.containers[h].floating?"left":"top"],e=this.items.length-1;e>=0;e--)if(b.ui.contains(this.containers[h].element[0],this.items[e].item[0])){var k=this.items[e][this.containers[h].floating?"left":"top"];if(Math.abs(k-a)<g){g=Math.abs(k-a);f=this.items[e]}}if(f||this.options.dropOnEmpty){this.currentContainer=this.containers[h];f?this._rearrange(d,f,null,true):this._rearrange(d,
null,this.containers[h].element,true);this._trigger("change",d,this._uiHash());this.containers[h]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[h]._trigger("over",d,this._uiHash(this));this.containers[h].containerCache.over=1}}},_createHelper:function(d){var g=this.options;d=b.isFunction(g.helper)?b(g.helper.apply(this.element[0],[d,this.currentItem])):g.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||
b(g.appendTo!="parent"?g.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(d[0].style.width==""||g.forceHelperSize)d.width(this.currentItem.width());if(d[0].style.height==""||g.forceHelperSize)d.height(this.currentItem.height());return d},_adjustOffsetFromHelper:function(d){if(typeof d==
"string")d=d.split(" ");if(b.isArray(d))d={left:+d[0],top:+d[1]||0};if("left"in d)this.offset.click.left=d.left+this.margins.left;if("right"in d)this.offset.click.left=this.helperProportions.width-d.right+this.margins.left;if("top"in d)this.offset.click.top=d.top+this.margins.top;if("bottom"in d)this.offset.click.top=this.helperProportions.height-d.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();if(this.cssPosition==
"absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){d.left+=this.scrollParent.scrollLeft();d.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)d={top:0,left:0};return{top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
"relative"){var d=this.currentItem.position();return{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var d=this.options;if(d.containment=="parent")d.containment=this.helper[0].parentNode;if(d.containment=="document"||d.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
this.margins.top];if(!/^(document|window|parent)$/.test(d.containment)){var g=b(d.containment)[0];d=b(d.containment).offset();var h=b(g).css("overflow")!="hidden";this.containment=[d.left+(parseInt(b(g).css("borderLeftWidth"),10)||0)+(parseInt(b(g).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(b(g).css("borderTopWidth"),10)||0)+(parseInt(b(g).css("paddingTop"),10)||0)-this.margins.top,d.left+(h?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(b(g).css("borderLeftWidth"),
10)||0)-(parseInt(b(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(h?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(b(g).css("borderTopWidth"),10)||0)-(parseInt(b(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,g){if(!g)g=this.position;var h=d=="absolute"?1:-1,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
this.offsetParent:this.scrollParent,a=/(html|body)/i.test(f[0].tagName);return{top:g.top+this.offset.relative.top*h+this.offset.parent.top*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():a?0:f.scrollTop())*h),left:g.left+this.offset.relative.left*h+this.offset.parent.left*h-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():a?0:f.scrollLeft())*h)}},_generatePosition:function(d){var g=
this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var a=d.pageX,e=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0])a=this.containment[0]+
this.offset.click.left;if(d.pageY-this.offset.click.top<this.containment[1])e=this.containment[1]+this.offset.click.top;if(d.pageX-this.offset.click.left>this.containment[2])a=this.containment[2]+this.offset.click.left;if(d.pageY-this.offset.click.top>this.containment[3])e=this.containment[3]+this.offset.click.top}if(g.grid){e=this.originalPageY+Math.round((e-this.originalPageY)/g.grid[1])*g.grid[1];e=this.containment?!(e-this.offset.click.top<this.containment[1]||e-this.offset.click.top>this.containment[3])?
e:!(e-this.offset.click.top<this.containment[1])?e-g.grid[1]:e+g.grid[1]:e;a=this.originalPageX+Math.round((a-this.originalPageX)/g.grid[0])*g.grid[0];a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-g.grid[0]:a+g.grid[0]:a}}return{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:h.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:h.scrollLeft())}},_rearrange:function(d,g,h,f){h?h[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?g.item[0]:g.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var a=this,e=this.counter;window.setTimeout(function(){e==
a.counter&&a.refreshPositions(!f)},0)},_clear:function(d,g){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!g&&h.push(function(a){this._trigger("receive",
a,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!g)h.push(function(a){this._trigger("update",a,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){g||h.push(function(a){this._trigger("remove",a,this._uiHash())});for(f=this.containers.length-1;f>=0;f--)if(b.ui.contains(this.containers[f].element[0],this.currentItem[0])&&!g){h.push(function(a){return function(e){a._trigger("receive",
e,this._uiHash(this))}}.call(this,this.containers[f]));h.push(function(a){return function(e){a._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[f]))}}for(f=this.containers.length-1;f>=0;f--){g||h.push(function(a){return function(e){a._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[f]));if(this.containers[f].containerCache.over){h.push(function(a){return function(e){a._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[f]));this.containers[f].containerCache.over=
0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!g){this._trigger("beforeStop",d,this._uiHash());for(f=0;f<h.length;f++)h[f].call(this,d);this._trigger("stop",d,this._uiHash())}return false}g||this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!g){for(f=0;f<h.length;f++)h[f].call(this,d);this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var g=d||this;return{helper:g.helper,placeholder:g.placeholder||b([]),position:g.position,originalPosition:g.originalPosition,offset:g.positionAbs,item:g.currentItem,sender:d?d.element:null}}});
b.extend(b.ui.sortable,{version:"1.8.10"})})(jQuery);
jQuery.effects||function(b,d){function g(s){var n;if(s&&s.constructor==Array&&s.length==3)return s;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(s))return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)];if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(s))return[parseFloat(n[1])*2.55,parseFloat(n[2])*2.55,parseFloat(n[3])*2.55];if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(s))return[parseInt(n[1],16),
parseInt(n[2],16),parseInt(n[3],16)];if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(s))return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(s))return o.transparent;return o[b.trim(s).toLowerCase()]}function h(){var s=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,n={},v,z;if(s&&s.length&&s[0]&&s[s[0]])for(var B=s.length;B--;){v=s[B];if(typeof s[v]=="string"){z=v.replace(/\-(\w)/g,function(J,P){return P.toUpperCase()});
n[z]=s[v]}}else for(v in s)if(typeof s[v]==="string")n[v]=s[v];return n}function f(s){var n,v;for(n in s){v=s[n];if(v==null||b.isFunction(v)||n in x||/scrollbar/.test(n)||!/color/i.test(n)&&isNaN(parseFloat(v)))delete s[n]}return s}function a(s,n){var v={_:0},z;for(z in n)if(s[z]!=n[z])v[z]=n[z];return v}function e(s,n,v,z){if(typeof s=="object"){z=n;v=null;n=s;s=n.effect}if(b.isFunction(n)){z=n;v=null;n={}}if(typeof n=="number"||b.fx.speeds[n]){z=v;v=n;n={}}if(b.isFunction(v)){z=v;v=null}n=n||{};
v=v||n.duration;v=b.fx.off?0:typeof v=="number"?v:v in b.fx.speeds?b.fx.speeds[v]:b.fx.speeds._default;z=z||n.complete;return[s,n,v,z]}function k(s){if(!s||typeof s==="number"||b.fx.speeds[s])return true;if(typeof s==="string"&&!b.effects[s])return true;return false}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(s,n){b.fx.step[n]=function(v){if(!v.colorInit){var z;z=v.elem;var B=n,J;do{J=
b.curCSS(z,B);if(J!=""&&J!="transparent"||b.nodeName(z,"body"))break;B="backgroundColor"}while(z=z.parentNode);z=g(J);v.start=z;v.end=g(v.end);v.colorInit=true}v.elem.style[n]="rgb("+Math.max(Math.min(parseInt(v.pos*(v.end[0]-v.start[0])+v.start[0],10),255),0)+","+Math.max(Math.min(parseInt(v.pos*(v.end[1]-v.start[1])+v.start[1],10),255),0)+","+Math.max(Math.min(parseInt(v.pos*(v.end[2]-v.start[2])+v.start[2],10),255),0)+")"}});var o={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]},q=["add","remove","toggle"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(s,n,v,
z){if(b.isFunction(v)){z=v;v=null}return this.queue("fx",function(){var B=b(this),J=B.attr("style")||" ",P=f(h.call(this)),S,X=B.attr("className");b.each(q,function(Y,aa){s[aa]&&B[aa+"Class"](s[aa])});S=f(h.call(this));B.attr("className",X);B.animate(a(P,S),n,v,function(){b.each(q,function(Y,aa){s[aa]&&B[aa+"Class"](s[aa])});if(typeof B.attr("style")=="object"){B.attr("style").cssText="";B.attr("style").cssText=J}else B.attr("style",J);z&&z.apply(this,arguments)});P=b.queue(this);S=P.splice(P.length-
1,1)[0];P.splice(1,0,S);b.dequeue(this)})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(s,n,v,z){return n?b.effects.animateClass.apply(this,[{add:s},n,v,z]):this._addClass(s)},_removeClass:b.fn.removeClass,removeClass:function(s,n,v,z){return n?b.effects.animateClass.apply(this,[{remove:s},n,v,z]):this._removeClass(s)},_toggleClass:b.fn.toggleClass,toggleClass:function(s,n,v,z,B){return typeof n=="boolean"||n===d?v?b.effects.animateClass.apply(this,[n?{add:s}:{remove:s},v,z,B]):this._toggleClass(s,
n):b.effects.animateClass.apply(this,[{toggle:s},n,v,z])},switchClass:function(s,n,v,z,B){return b.effects.animateClass.apply(this,[{add:n,remove:s},v,z,B])}});b.extend(b.effects,{version:"1.8.10",save:function(s,n){for(var v=0;v<n.length;v++)n[v]!==null&&s.data("ec.storage."+n[v],s[0].style[n[v]])},restore:function(s,n){for(var v=0;v<n.length;v++)n[v]!==null&&s.css(n[v],s.data("ec.storage."+n[v]))},setMode:function(s,n){if(n=="toggle")n=s.is(":hidden")?"show":"hide";return n},getBaseline:function(s,
n){var v,z;switch(s[0]){case "top":v=0;break;case "middle":v=0.5;break;case "bottom":v=1;break;default:v=s[0]/n.height}switch(s[1]){case "left":z=0;break;case "center":z=0.5;break;case "right":z=1;break;default:z=s[1]/n.width}return{x:z,y:v}},createWrapper:function(s){if(s.parent().is(".ui-effects-wrapper"))return s.parent();var n={width:s.outerWidth(true),height:s.outerHeight(true),"float":s.css("float")},v=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
border:"none",margin:0,padding:0});s.wrap(v);v=s.parent();if(s.css("position")=="static"){v.css({position:"relative"});s.css({position:"relative"})}else{b.extend(n,{position:s.css("position"),zIndex:s.css("z-index")});b.each(["top","left","bottom","right"],function(z,B){n[B]=s.css(B);if(isNaN(parseInt(n[B],10)))n[B]="auto"});s.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return v.css(n).show()},removeWrapper:function(s){if(s.parent().is(".ui-effects-wrapper"))return s.parent().replaceWith(s);
return s},setTransition:function(s,n,v,z){z=z||{};b.each(n,function(B,J){unit=s.cssUnit(J);if(unit[0]>0)z[J]=unit[0]*v+unit[1]});return z}});b.fn.extend({effect:function(s){var n=e.apply(this,arguments),v={options:n[1],duration:n[2],callback:n[3]};n=v.options.mode;var z=b.effects[s];if(b.fx.off||!z)return n?this[n](v.duration,v.callback):this.each(function(){v.callback&&v.callback.call(this)});return z.call(this,v)},_show:b.fn.show,show:function(s){if(k(s))return this._show.apply(this,arguments);
else{var n=e.apply(this,arguments);n[1].mode="show";return this.effect.apply(this,n)}},_hide:b.fn.hide,hide:function(s){if(k(s))return this._hide.apply(this,arguments);else{var n=e.apply(this,arguments);n[1].mode="hide";return this.effect.apply(this,n)}},__toggle:b.fn.toggle,toggle:function(s){if(k(s)||typeof s==="boolean"||b.isFunction(s))return this.__toggle.apply(this,arguments);else{var n=e.apply(this,arguments);n[1].mode="toggle";return this.effect.apply(this,n)}},cssUnit:function(s){var n=this.css(s),
v=[];b.each(["em","px","%","pt"],function(z,B){if(n.indexOf(B)>0)v=[parseFloat(n),B]});return v}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(s,n,v,z,B){return b.easing[b.easing.def](s,n,v,z,B)},easeInQuad:function(s,n,v,z,B){return z*(n/=B)*n+v},easeOutQuad:function(s,n,v,z,B){return-z*(n/=B)*(n-2)+v},easeInOutQuad:function(s,n,v,z,B){if((n/=B/2)<1)return z/2*n*n+v;return-z/2*(--n*(n-2)-1)+v},easeInCubic:function(s,n,v,z,B){return z*(n/=B)*n*n+v},easeOutCubic:function(s,
n,v,z,B){return z*((n=n/B-1)*n*n+1)+v},easeInOutCubic:function(s,n,v,z,B){if((n/=B/2)<1)return z/2*n*n*n+v;return z/2*((n-=2)*n*n+2)+v},easeInQuart:function(s,n,v,z,B){return z*(n/=B)*n*n*n+v},easeOutQuart:function(s,n,v,z,B){return-z*((n=n/B-1)*n*n*n-1)+v},easeInOutQuart:function(s,n,v,z,B){if((n/=B/2)<1)return z/2*n*n*n*n+v;return-z/2*((n-=2)*n*n*n-2)+v},easeInQuint:function(s,n,v,z,B){return z*(n/=B)*n*n*n*n+v},easeOutQuint:function(s,n,v,z,B){return z*((n=n/B-1)*n*n*n*n+1)+v},easeInOutQuint:function(s,
n,v,z,B){if((n/=B/2)<1)return z/2*n*n*n*n*n+v;return z/2*((n-=2)*n*n*n*n+2)+v},easeInSine:function(s,n,v,z,B){return-z*Math.cos(n/B*(Math.PI/2))+z+v},easeOutSine:function(s,n,v,z,B){return z*Math.sin(n/B*(Math.PI/2))+v},easeInOutSine:function(s,n,v,z,B){return-z/2*(Math.cos(Math.PI*n/B)-1)+v},easeInExpo:function(s,n,v,z,B){return n==0?v:z*Math.pow(2,10*(n/B-1))+v},easeOutExpo:function(s,n,v,z,B){return n==B?v+z:z*(-Math.pow(2,-10*n/B)+1)+v},easeInOutExpo:function(s,n,v,z,B){if(n==0)return v;if(n==
B)return v+z;if((n/=B/2)<1)return z/2*Math.pow(2,10*(n-1))+v;return z/2*(-Math.pow(2,-10*--n)+2)+v},easeInCirc:function(s,n,v,z,B){return-z*(Math.sqrt(1-(n/=B)*n)-1)+v},easeOutCirc:function(s,n,v,z,B){return z*Math.sqrt(1-(n=n/B-1)*n)+v},easeInOutCirc:function(s,n,v,z,B){if((n/=B/2)<1)return-z/2*(Math.sqrt(1-n*n)-1)+v;return z/2*(Math.sqrt(1-(n-=2)*n)+1)+v},easeInElastic:function(s,n,v,z,B){s=1.70158;var J=0,P=z;if(n==0)return v;if((n/=B)==1)return v+z;J||(J=B*0.3);if(P<Math.abs(z)){P=z;s=J/4}else s=
J/(2*Math.PI)*Math.asin(z/P);return-(P*Math.pow(2,10*(n-=1))*Math.sin((n*B-s)*2*Math.PI/J))+v},easeOutElastic:function(s,n,v,z,B){s=1.70158;var J=0,P=z;if(n==0)return v;if((n/=B)==1)return v+z;J||(J=B*0.3);if(P<Math.abs(z)){P=z;s=J/4}else s=J/(2*Math.PI)*Math.asin(z/P);return P*Math.pow(2,-10*n)*Math.sin((n*B-s)*2*Math.PI/J)+z+v},easeInOutElastic:function(s,n,v,z,B){s=1.70158;var J=0,P=z;if(n==0)return v;if((n/=B/2)==2)return v+z;J||(J=B*0.3*1.5);if(P<Math.abs(z)){P=z;s=J/4}else s=J/(2*Math.PI)*Math.asin(z/
P);if(n<1)return-0.5*P*Math.pow(2,10*(n-=1))*Math.sin((n*B-s)*2*Math.PI/J)+v;return P*Math.pow(2,-10*(n-=1))*Math.sin((n*B-s)*2*Math.PI/J)*0.5+z+v},easeInBack:function(s,n,v,z,B,J){if(J==d)J=1.70158;return z*(n/=B)*n*((J+1)*n-J)+v},easeOutBack:function(s,n,v,z,B,J){if(J==d)J=1.70158;return z*((n=n/B-1)*n*((J+1)*n+J)+1)+v},easeInOutBack:function(s,n,v,z,B,J){if(J==d)J=1.70158;if((n/=B/2)<1)return z/2*n*n*(((J*=1.525)+1)*n-J)+v;return z/2*((n-=2)*n*(((J*=1.525)+1)*n+J)+2)+v},easeInBounce:function(s,
n,v,z,B){return z-b.easing.easeOutBounce(s,B-n,0,z,B)+v},easeOutBounce:function(s,n,v,z,B){return(n/=B)<1/2.75?z*7.5625*n*n+v:n<2/2.75?z*(7.5625*(n-=1.5/2.75)*n+0.75)+v:n<2.5/2.75?z*(7.5625*(n-=2.25/2.75)*n+0.9375)+v:z*(7.5625*(n-=2.625/2.75)*n+0.984375)+v},easeInOutBounce:function(s,n,v,z,B){if(n<B/2)return b.easing.easeInBounce(s,n*2,0,z,B)*0.5+v;return b.easing.easeOutBounce(s,n*2-B,0,z,B)*0.5+z*0.5+v}})}(jQuery);
(function(b){b.effects.blind=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right"],f=b.effects.setMode(g,d.options.mode||"hide"),a=d.options.direction||"vertical";b.effects.save(g,h);g.show();var e=b.effects.createWrapper(g).css({overflow:"hidden"}),k=a=="vertical"?"height":"width";a=a=="vertical"?e.height():e.width();f=="show"&&e.css(k,0);var o={};o[k]=f=="show"?a:0;e.animate(o,d.duration,d.options.easing,function(){f=="hide"&&g.hide();b.effects.restore(g,
h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(b){b.effects.bounce=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right"],f=b.effects.setMode(g,d.options.mode||"effect"),a=d.options.direction||"up",e=d.options.distance||20,k=d.options.times||5,o=d.duration||250;/show|hide/.test(f)&&h.push("opacity");b.effects.save(g,h);g.show();b.effects.createWrapper(g);var q=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";e=d.options.distance||(q=="top"?g.outerHeight({margin:true})/3:g.outerWidth({margin:true})/
3);if(f=="show")g.css("opacity",0).css(q,a=="pos"?-e:e);if(f=="hide")e/=k*2;f!="hide"&&k--;if(f=="show"){var x={opacity:1};x[q]=(a=="pos"?"+=":"-=")+e;g.animate(x,o/2,d.options.easing);e/=2;k--}for(x=0;x<k;x++){var s={},n={};s[q]=(a=="pos"?"-=":"+=")+e;n[q]=(a=="pos"?"+=":"-=")+e;g.animate(s,o/2,d.options.easing).animate(n,o/2,d.options.easing);e=f=="hide"?e*2:e/2}if(f=="hide"){x={opacity:0};x[q]=(a=="pos"?"-=":"+=")+e;g.animate(x,o/2,d.options.easing,function(){g.hide();b.effects.restore(g,h);b.effects.removeWrapper(g);
d.callback&&d.callback.apply(this,arguments)})}else{s={};n={};s[q]=(a=="pos"?"-=":"+=")+e;n[q]=(a=="pos"?"+=":"-=")+e;g.animate(s,o/2,d.options.easing).animate(n,o/2,d.options.easing,function(){b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments)})}g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(b){b.effects.clip=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(g,d.options.mode||"hide"),a=d.options.direction||"vertical";b.effects.save(g,h);g.show();var e=b.effects.createWrapper(g).css({overflow:"hidden"});e=g[0].tagName=="IMG"?e:g;var k={size:a=="vertical"?"height":"width",position:a=="vertical"?"top":"left"};a=a=="vertical"?e.height():e.width();if(f=="show"){e.css(k.size,0);e.css(k.position,
a/2)}var o={};o[k.size]=f=="show"?a:0;o[k.position]=f=="show"?0:a/2;e.animate(o,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&g.hide();b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(g[0],arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.drop=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right","opacity"],f=b.effects.setMode(g,d.options.mode||"hide"),a=d.options.direction||"left";b.effects.save(g,h);g.show();b.effects.createWrapper(g);var e=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var k=d.options.distance||(e=="top"?g.outerHeight({margin:true})/2:g.outerWidth({margin:true})/2);if(f=="show")g.css("opacity",0).css(e,a=="pos"?-k:k);var o={opacity:f==
"show"?1:0};o[e]=(f=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+k;g.animate(o,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&g.hide();b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.explode=function(d){return this.queue(function(){var g=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3,h=d.options.pieces?Math.round(Math.sqrt(d.options.pieces)):3;d.options.mode=d.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":d.options.mode;var f=b(this).show().css("visibility","hidden"),a=f.offset();a.top-=parseInt(f.css("marginTop"),10)||0;a.left-=parseInt(f.css("marginLeft"),10)||0;for(var e=f.outerWidth(true),k=f.outerHeight(true),o=0;o<g;o++)for(var q=
0;q<h;q++)f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-q*(e/h),top:-o*(k/g)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:e/h,height:k/g,left:a.left+q*(e/h)+(d.options.mode=="show"?(q-Math.floor(h/2))*(e/h):0),top:a.top+o*(k/g)+(d.options.mode=="show"?(o-Math.floor(g/2))*(k/g):0),opacity:d.options.mode=="show"?0:1}).animate({left:a.left+q*(e/h)+(d.options.mode=="show"?0:(q-Math.floor(h/2))*(e/h)),top:a.top+
o*(k/g)+(d.options.mode=="show"?0:(o-Math.floor(g/2))*(k/g)),opacity:d.options.mode=="show"?1:0},d.duration||500);setTimeout(function(){d.options.mode=="show"?f.css({visibility:"visible"}):f.css({visibility:"visible"}).hide();d.callback&&d.callback.apply(f[0]);f.dequeue();b("div.ui-effects-explode").remove()},d.duration||500)})}})(jQuery);
(function(b){b.effects.fade=function(d){return this.queue(function(){var g=b(this),h=b.effects.setMode(g,d.options.mode||"hide");g.animate({opacity:h},{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.fold=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right"],f=b.effects.setMode(g,d.options.mode||"hide"),a=d.options.size||15,e=!!d.options.horizFirst,k=d.duration?d.duration/2:b.fx.speeds._default/2;b.effects.save(g,h);g.show();var o=b.effects.createWrapper(g).css({overflow:"hidden"}),q=f=="show"!=e,x=q?["width","height"]:["height","width"];q=q?[o.width(),o.height()]:[o.height(),o.width()];var s=/([0-9]+)%/.exec(a);if(s)a=parseInt(s[1],
10)/100*q[f=="hide"?0:1];if(f=="show")o.css(e?{height:0,width:a}:{height:a,width:0});e={};s={};e[x[0]]=f=="show"?q[0]:a;s[x[1]]=f=="show"?q[1]:0;o.animate(e,k,d.options.easing).animate(s,k,d.options.easing,function(){f=="hide"&&g.hide();b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(b){b.effects.highlight=function(d){return this.queue(function(){var g=b(this),h=["backgroundImage","backgroundColor","opacity"],f=b.effects.setMode(g,d.options.mode||"show"),a={backgroundColor:g.css("backgroundColor")};if(f=="hide")a.opacity=0;b.effects.save(g,h);g.show().css({backgroundImage:"none",backgroundColor:d.options.color||"#ffff99"}).animate(a,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&g.hide();b.effects.restore(g,h);f=="show"&&!b.support.opacity&&
this.style.removeAttribute("filter");d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.pulsate=function(d){return this.queue(function(){var g=b(this),h=b.effects.setMode(g,d.options.mode||"show");times=(d.options.times||5)*2-1;duration=d.duration?d.duration/2:b.fx.speeds._default/2;isVisible=g.is(":visible");animateTo=0;if(!isVisible){g.css("opacity",0).show();animateTo=1}if(h=="hide"&&isVisible||h=="show"&&!isVisible)times--;for(h=0;h<times;h++){g.animate({opacity:animateTo},duration,d.options.easing);animateTo=(animateTo+1)%2}g.animate({opacity:animateTo},duration,
d.options.easing,function(){animateTo==0&&g.hide();d.callback&&d.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()}).dequeue()})}})(jQuery);
(function(b){b.effects.puff=function(d){return this.queue(function(){var g=b(this),h=b.effects.setMode(g,d.options.mode||"hide"),f=parseInt(d.options.percent,10)||150,a=f/100,e={height:g.height(),width:g.width()};b.extend(d.options,{fade:true,mode:h,percent:h=="hide"?f:100,from:h=="hide"?e:{height:e.height*a,width:e.width*a}});g.effect("scale",d.options,d.duration,d.callback);g.dequeue()})};b.effects.scale=function(d){return this.queue(function(){var g=b(this),h=b.extend(true,{},d.options),f=b.effects.setMode(g,
d.options.mode||"effect"),a=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:f=="hide"?0:100),e=d.options.direction||"both",k=d.options.origin;if(f!="effect"){h.origin=k||["middle","center"];h.restore=true}k={height:g.height(),width:g.width()};g.from=d.options.from||(f=="show"?{height:0,width:0}:k);a={y:e!="horizontal"?a/100:1,x:e!="vertical"?a/100:1};g.to={height:k.height*a.y,width:k.width*a.x};if(d.options.fade){if(f=="show"){g.from.opacity=0;g.to.opacity=1}if(f=="hide"){g.from.opacity=
1;g.to.opacity=0}}h.from=g.from;h.to=g.to;h.mode=f;g.effect("size",h,d.duration,d.callback);g.dequeue()})};b.effects.size=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],f=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],e=["fontSize"],k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
q=b.effects.setMode(g,d.options.mode||"effect"),x=d.options.restore||false,s=d.options.scale||"both",n=d.options.origin,v={height:g.height(),width:g.width()};g.from=d.options.from||v;g.to=d.options.to||v;if(n){n=b.effects.getBaseline(n,v);g.from.top=(v.height-g.from.height)*n.y;g.from.left=(v.width-g.from.width)*n.x;g.to.top=(v.height-g.to.height)*n.y;g.to.left=(v.width-g.to.width)*n.x}var z={from:{y:g.from.height/v.height,x:g.from.width/v.width},to:{y:g.to.height/v.height,x:g.to.width/v.width}};
if(s=="box"||s=="both"){if(z.from.y!=z.to.y){h=h.concat(k);g.from=b.effects.setTransition(g,k,z.from.y,g.from);g.to=b.effects.setTransition(g,k,z.to.y,g.to)}if(z.from.x!=z.to.x){h=h.concat(o);g.from=b.effects.setTransition(g,o,z.from.x,g.from);g.to=b.effects.setTransition(g,o,z.to.x,g.to)}}if(s=="content"||s=="both")if(z.from.y!=z.to.y){h=h.concat(e);g.from=b.effects.setTransition(g,e,z.from.y,g.from);g.to=b.effects.setTransition(g,e,z.to.y,g.to)}b.effects.save(g,x?h:f);g.show();b.effects.createWrapper(g);
g.css("overflow","hidden").css(g.from);if(s=="content"||s=="both"){k=k.concat(["marginTop","marginBottom"]).concat(e);o=o.concat(["marginLeft","marginRight"]);a=h.concat(k).concat(o);g.find("*[width]").each(function(){child=b(this);x&&b.effects.save(child,a);var B={height:child.height(),width:child.width()};child.from={height:B.height*z.from.y,width:B.width*z.from.x};child.to={height:B.height*z.to.y,width:B.width*z.to.x};if(z.from.y!=z.to.y){child.from=b.effects.setTransition(child,k,z.from.y,child.from);
child.to=b.effects.setTransition(child,k,z.to.y,child.to)}if(z.from.x!=z.to.x){child.from=b.effects.setTransition(child,o,z.from.x,child.from);child.to=b.effects.setTransition(child,o,z.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){x&&b.effects.restore(child,a)})})}g.animate(g.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){g.to.opacity===0&&g.css("opacity",g.from.opacity);q=="hide"&&g.hide();b.effects.restore(g,
x?h:f);b.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.shake=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right"];b.effects.setMode(g,d.options.mode||"effect");var f=d.options.direction||"left",a=d.options.distance||20,e=d.options.times||3,k=d.duration||d.options.duration||140;b.effects.save(g,h);g.show();b.effects.createWrapper(g);var o=f=="up"||f=="down"?"top":"left",q=f=="up"||f=="left"?"pos":"neg";f={};var x={},s={};f[o]=(q=="pos"?"-=":"+=")+a;x[o]=(q=="pos"?"+=":"-=")+a*2;s[o]=
(q=="pos"?"-=":"+=")+a*2;g.animate(f,k,d.options.easing);for(a=1;a<e;a++)g.animate(x,k,d.options.easing).animate(s,k,d.options.easing);g.animate(x,k,d.options.easing).animate(f,k/2,d.options.easing,function(){b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(b){b.effects.slide=function(d){return this.queue(function(){var g=b(this),h=["position","top","bottom","left","right"],f=b.effects.setMode(g,d.options.mode||"show"),a=d.options.direction||"left";b.effects.save(g,h);g.show();b.effects.createWrapper(g).css({overflow:"hidden"});var e=a=="up"||a=="down"?"top":"left";a=a=="up"||a=="left"?"pos":"neg";var k=d.options.distance||(e=="top"?g.outerHeight({margin:true}):g.outerWidth({margin:true}));if(f=="show")g.css(e,a=="pos"?isNaN(k)?"-"+k:-k:k);
var o={};o[e]=(f=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+k;g.animate(o,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&g.hide();b.effects.restore(g,h);b.effects.removeWrapper(g);d.callback&&d.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(b){b.effects.transfer=function(d){return this.queue(function(){var g=b(this),h=b(d.options.to),f=h.offset();h={top:f.top,left:f.left,height:h.innerHeight(),width:h.innerWidth()};f=g.offset();var a=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(d.options.className).css({top:f.top,left:f.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(h,d.duration,d.options.easing,function(){a.remove();d.callback&&d.callback.apply(g[0],arguments);
g.dequeue()})})}})(jQuery);
(function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var d=this,g=d.options;d.running=0;d.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");d.headers=
d.element.find(g.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){g.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){g.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){g.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){g.disabled||b(this).removeClass("ui-state-focus")});d.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(g.navigation){var h=d.element.find("a").filter(g.navigationFilter).eq(0);if(h.length){var f=h.closest(".ui-accordion-header");d.active=f.length?f:h.closest(".ui-accordion-content").prev()}}d.active=d._findActive(d.active||g.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");d.active.next().addClass("ui-accordion-content-active");d._createIcons();d.resize();d.element.attr("role","tablist");d.headers.attr("role","tab").bind("keydown.accordion",
function(a){return d._keydown(a)}).next().attr("role","tabpanel");d.headers.not(d.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();d.active.length?d.active.attr({"aria-expanded":"true",tabIndex:0}):d.headers.eq(0).attr("tabIndex",0);b.browser.safari||d.headers.find("a").attr("tabIndex",-1);g.event&&d.headers.bind(g.event.split(" ").join(".accordion ")+".accordion",function(a){d._clickHandler.call(d,a,this);a.preventDefault()})},_createIcons:function(){var d=this.options;if(d.icons){b("<span></span>").addClass("ui-icon "+
d.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var d=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var g=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(d.autoHeight||d.fillHeight)g.css("height","");return b.Widget.prototype.destroy.call(this)},_setOption:function(d,g){b.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(g);if(d=="icons"){this._destroyIcons();
g&&this._createIcons()}if(d=="disabled")this.headers.add(this.headers.next())[g?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(d){if(!(this.options.disabled||d.altKey||d.ctrlKey)){var g=b.ui.keyCode,h=this.headers.length,f=this.headers.index(d.target),a=false;switch(d.keyCode){case g.RIGHT:case g.DOWN:a=this.headers[(f+1)%h];break;case g.LEFT:case g.UP:a=this.headers[(f-1+h)%h];break;case g.SPACE:case g.ENTER:this._clickHandler({target:d.target},d.target);
d.preventDefault()}if(a){b(d.target).attr("tabIndex",-1);b(a).attr("tabIndex",0);a.focus();return false}return true}},resize:function(){var d=this.options,g;if(d.fillSpace){if(b.browser.msie){var h=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}g=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",h);this.headers.each(function(){g-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,g-b(this).innerHeight()+
b(this).height()))}).css("overflow","auto")}else if(d.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,b(this).height("").height())}).height(g)}return this},activate:function(d){this.options.active=d;d=this._findActive(d)[0];this._clickHandler({target:d},d);return this},_findActive:function(d){return d?typeof d==="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,g){var h=this.options;
if(!h.disabled)if(d.target){var f=b(d.currentTarget||g),a=f[0]===this.active[0];h.active=h.collapsible&&a?false:this.headers.index(f);if(!(this.running||!h.collapsible&&a)){var e=this.active;x=f.next();o=this.active.next();q={options:h,newHeader:a&&h.collapsible?b([]):f,oldHeader:this.active,newContent:a&&h.collapsible?b([]):x,oldContent:o};var k=this.headers.index(this.active[0])>this.headers.index(f[0]);this.active=a?b([]):f;this._toggle(x,o,q,a,k);e.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(h.icons.headerSelected).addClass(h.icons.header);
if(!a){f.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(h.icons.header).addClass(h.icons.headerSelected);f.next().addClass("ui-accordion-content-active")}}}else if(h.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(h.icons.headerSelected).addClass(h.icons.header);this.active.next().addClass("ui-accordion-content-active");var o=this.active.next(),
q={options:h,newHeader:b([]),oldHeader:h.active,newContent:b([]),oldContent:o},x=this.active=b([]);this._toggle(x,o,q)}},_toggle:function(d,g,h,f,a){var e=this,k=e.options;e.toShow=d;e.toHide=g;e.data=h;var o=function(){if(e)return e._completed.apply(e,arguments)};e._trigger("changestart",null,e.data);e.running=g.size()===0?d.size():g.size();if(k.animated){h={};h=k.collapsible&&f?{toShow:b([]),toHide:g,complete:o,down:a,autoHeight:k.autoHeight||k.fillSpace}:{toShow:d,toHide:g,complete:o,down:a,autoHeight:k.autoHeight||
k.fillSpace};if(!k.proxied)k.proxied=k.animated;if(!k.proxiedDuration)k.proxiedDuration=k.duration;k.animated=b.isFunction(k.proxied)?k.proxied(h):k.proxied;k.duration=b.isFunction(k.proxiedDuration)?k.proxiedDuration(h):k.proxiedDuration;f=b.ui.accordion.animations;var q=k.duration,x=k.animated;if(x&&!f[x]&&!b.easing[x])x="slide";f[x]||(f[x]=function(s){this.slide(s,{easing:x,duration:q||700})});f[x](h)}else{if(k.collapsible&&f)d.toggle();else{g.hide();d.show()}o(true)}g.prev().attr({"aria-expanded":"false",
tabIndex:-1}).blur();d.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(d){this.running=d?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.8.10",animations:{slide:function(d,g){d=
b.extend({easing:"swing",duration:300},d,g);if(d.toHide.size())if(d.toShow.size()){var h=d.toShow.css("overflow"),f=0,a={},e={},k,o=d.toShow;k=o[0].style.width;o.width(parseInt(o.parent().width(),10)-parseInt(o.css("paddingLeft"),10)-parseInt(o.css("paddingRight"),10)-(parseInt(o.css("borderLeftWidth"),10)||0)-(parseInt(o.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(q,x){e[x]="hide";var s=(""+b.css(d.toShow[0],x)).match(/^([\d+-.]+)(.*)$/);a[x]={value:s[1],
unit:s[2]||"px"}});d.toShow.css({height:0,overflow:"hidden"}).show();d.toHide.filter(":hidden").each(d.complete).end().filter(":visible").animate(e,{step:function(q,x){if(x.prop=="height")f=x.end-x.start===0?0:(x.now-x.start)/(x.end-x.start);d.toShow[0].style[x.prop]=f*a[x.prop].value+a[x.prop].unit},duration:d.duration,easing:d.easing,complete:function(){d.autoHeight||d.toShow.css("height","");d.toShow.css({width:k,overflow:h});d.complete()}})}else d.toHide.animate({height:"hide",paddingTop:"hide",
paddingBottom:"hide"},d);else d.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},d)},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1E3:200})}}})})(jQuery);
(function(b){var d=0;b.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var g=this,h=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!(g.options.disabled||g.element.attr("readonly"))){f=false;var e=b.ui.keyCode;
switch(a.keyCode){case e.PAGE_UP:g._move("previousPage",a);break;case e.PAGE_DOWN:g._move("nextPage",a);break;case e.UP:g._move("previous",a);a.preventDefault();break;case e.DOWN:g._move("next",a);a.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:if(g.menu.active){f=true;a.preventDefault()}case e.TAB:if(!g.menu.active)break;g.menu.select(a);break;case e.ESCAPE:g.element.val(g.term);g.close(a);break;default:clearTimeout(g.searching);g.searching=setTimeout(function(){if(g.term!=g.element.val()){g.selectedItem=
null;g.search(null,a)}},g.options.delay)}}}).bind("keypress.autocomplete",function(a){if(f){f=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(!g.options.disabled){g.selectedItem=null;g.previous=g.element.val()}}).bind("blur.autocomplete",function(a){if(!g.options.disabled){clearTimeout(g.searching);g.closing=setTimeout(function(){g.close(a);g._change(a)},150)}});this._initSource();this.response=function(){return g._response.apply(g,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||
"body",h)[0]).mousedown(function(a){var e=g.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(k){k.target!==g.element[0]&&k.target!==e&&!b.ui.contains(e,k.target)&&g.close()})},1);setTimeout(function(){clearTimeout(g.closing)},13)}).menu({focus:function(a,e){var k=e.item.data("item.autocomplete");false!==g._trigger("focus",a,{item:k})&&/^key/.test(a.originalEvent.type)&&g.element.val(k.value)},selected:function(a,e){var k=e.item.data("item.autocomplete"),
o=g.previous;if(g.element[0]!==h.activeElement){g.element.focus();g.previous=o;setTimeout(function(){g.previous=o;g.selectedItem=k},1)}false!==g._trigger("select",a,{item:k})&&g.element.val(k.value);g.term=g.element.val();g.close(a);g.selectedItem=k},blur:function(){g.menu.element.is(":visible")&&g.element.val()!==g.term&&g.element.val(g.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(g,h){b.Widget.prototype._setOption.apply(this,arguments);g==="source"&&this._initSource();if(g==="appendTo")this.menu.element.appendTo(b(h||"body",this.element[0].ownerDocument)[0]);g==="disabled"&&h&&this.xhr&&this.xhr.abort()},_initSource:function(){var g=this,h,f;if(b.isArray(this.options.source)){h=this.options.source;this.source=function(a,e){e(b.ui.autocomplete.filter(h,a.term))}}else if(typeof this.options.source===
"string"){f=this.options.source;this.source=function(a,e){g.xhr&&g.xhr.abort();g.xhr=b.ajax({url:f,data:a,dataType:"json",autocompleteRequest:++d,success:function(k){this.autocompleteRequest===d&&e(k)},error:function(){this.autocompleteRequest===d&&e([])}})}}else this.source=this.options.source},search:function(g,h){g=g!=null?g:this.element.val();this.term=this.element.val();if(g.length<this.options.minLength)return this.close(h);clearTimeout(this.closing);if(this._trigger("search",h)!==false)return this._search(g)},
_search:function(g){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:g},this.response)},_response:function(g){if(!this.options.disabled&&g&&g.length){g=this._normalize(g);this._suggest(g);this._trigger("open")}else this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(g){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",g)}},_change:function(g){this.previous!==
this.element.val()&&this._trigger("change",g,{item:this.selectedItem})},_normalize:function(g){if(g.length&&g[0].label&&g[0].value)return g;return b.map(g,function(h){if(typeof h==="string")return{label:h,value:h};return b.extend({label:h.label||h.value,value:h.value||h.label},h)})},_suggest:function(g){var h=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(h,g);this.menu.deactivate();this.menu.refresh();h.show();this._resizeMenu();h.position(b.extend({of:this.element},this.options.position))},
_resizeMenu:function(){var g=this.menu.element;g.outerWidth(Math.max(g.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(g,h){var f=this;b.each(h,function(a,e){f._renderItem(g,e)})},_renderItem:function(g,h){return b("<li></li>").data("item.autocomplete",h).append(b("<a></a>").text(h.label)).appendTo(g)},_move:function(g,h){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(g)||this.menu.last()&&/^next/.test(g)){this.element.val(this.term);this.menu.deactivate()}else this.menu[g](h);
else this.search(null,h)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(g,h){var f=RegExp(b.ui.autocomplete.escapeRegex(h),"i");return b.grep(g,function(a){return f.test(a.label||a.value||a)})}})})(jQuery);
(function(b){b.widget("ui.menu",{_create:function(){var d=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(g){if(b(g.target).closest(".ui-menu-item a").length){g.preventDefault();d.select(g)}});this.refresh()},refresh:function(){var d=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(g){d.activate(g,b(this).parent())}).mouseleave(function(){d.deactivate()})},activate:function(d,g){this.deactivate();if(this.hasScroll()){var h=g.offset().top-this.element.offset().top,f=this.element.attr("scrollTop"),a=this.element.height();if(h<0)this.element.attr("scrollTop",f+h);else h>=a&&this.element.attr("scrollTop",f+h-a+g.height())}this.active=g.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",d,{item:g})},
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(d){this.move("next",".ui-menu-item:first",d)},previous:function(d){this.move("prev",".ui-menu-item:last",d)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(d,g,h){if(this.active){d=this.active[d+"All"](".ui-menu-item").eq(0);
d.length?this.activate(h,d):this.activate(h,this.element.children(g))}else this.activate(h,this.element.children(g))},nextPage:function(d){if(this.hasScroll())if(!this.active||this.last())this.activate(d,this.element.children(".ui-menu-item:first"));else{var g=this.active.offset().top,h=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var a=b(this).offset().top-g-h+b(this).height();return a<10&&a>-10});f.length||(f=this.element.children(".ui-menu-item:last"));this.activate(d,
f)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(d){if(this.hasScroll())if(!this.active||this.first())this.activate(d,this.element.children(".ui-menu-item:last"));else{var g=this.active.offset().top,h=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var f=b(this).offset().top-g+h-b(this).height();return f<10&&f>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
this.activate(d,result)}else this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(d){this._trigger("selected",d,{item:this.active})}})})(jQuery);
(function(b){var d,g=function(f){b(":ui-button",f.target.form).each(function(){var a=b(this).data("button");setTimeout(function(){a.refresh()},1)})},h=function(f){var a=f.name,e=f.form,k=b([]);if(a)k=e?b(e).find("[name='"+a+"']"):b("[name='"+a+"']",f.ownerDocument).filter(function(){return!this.form});return k};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
g);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var f=this,a=this.options,e=this.type==="checkbox"||this.type==="radio",k="ui-state-hover"+(!e?" ui-state-active":"");if(a.label===null)a.label=this.buttonElement.html();if(this.element.is(":disabled"))a.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
function(){if(!a.disabled){b(this).addClass("ui-state-hover");this===d&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){a.disabled||b(this).removeClass(k)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});e&&this.element.bind("change.button",function(){f.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).toggleClass("ui-state-active");
f.buttonElement.attr("aria-pressed",f.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");f.buttonElement.attr("aria-pressed",true);var o=f.element[0];h(o).not(o).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(a.disabled)return false;b(this).addClass("ui-state-active");
d=this;b(document).one("mouseup",function(){d=null})}).bind("mouseup.button",function(){if(a.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(o){if(a.disabled)return false;if(o.keyCode==b.ui.keyCode.SPACE||o.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(o){o.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",
a.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var f=this.element.is(":checked");f&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",f)}else this.buttonElement=
this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(f,a){b.Widget.prototype._setOption.apply(this,arguments);if(f==="disabled")a?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var f=this.element.is(":disabled");f!==this.options.disabled&&this._setOption("disabled",f);if(this.type==="radio")h(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var f=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
a=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(f.empty()).text(),e=this.options.icons,k=e.primary&&e.secondary,o=[];if(e.primary||e.secondary){o.push("ui-button-text-icon"+(k?"s":e.primary?"-primary":"-secondary"));e.primary&&f.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&f.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){o.push(k?"ui-button-icons-only":"ui-button-icon-only");
f.removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");this.hasTitle||f.attr("title",a)}}else o.push("ui-button-text-only");f.addClass(o.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(f,a){f==="disabled"&&this.buttons.button("option",f,a);b.Widget.prototype._setOption.apply(this,
arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
b.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(b,d){function g(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function h(a,e){b.extend(a,e);for(var k in e)if(e[k]==
null||e[k]==d)a[k]=e[k];return a}b.extend(b.ui,{datepicker:{version:"1.8.10"}});var f=(new Date).getTime();b.extend(g.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){h(this._defaults,a||{});return this},_attachDatepicker:function(a,e){var k=null,o;for(o in this._defaults){var q=a.getAttribute("date:"+o);if(q){k=k||{};try{k[o]=eval(q)}catch(x){k[o]=q}}}o=a.nodeName.toLowerCase();
q=o=="div"||o=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var s=this._newInst(b(a),q);s.settings=b.extend({},e||{},k||{});if(o=="input")this._connectDatepicker(a,s);else q&&this._inlineDatepicker(a,s)},_newInst:function(a,e){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:!e?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(a,e){var k=b(a);e.append=b([]);e.trigger=b([]);if(!k.hasClass(this.markerClassName)){this._attachments(k,e);k.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(o,q,x){e.settings[q]=x}).bind("getData.datepicker",function(o,q){return this._get(e,q)});this._autoSize(e);b.data(a,"datepicker",e)}},_attachments:function(a,e){var k=this._get(e,"appendText"),o=this._get(e,"isRTL");e.append&&
e.append.remove();if(k){e.append=b('<span class="'+this._appendClass+'">'+k+"</span>");a[o?"before":"after"](e.append)}a.unbind("focus",this._showDatepicker);e.trigger&&e.trigger.remove();k=this._get(e,"showOn");if(k=="focus"||k=="both")a.focus(this._showDatepicker);if(k=="button"||k=="both"){k=this._get(e,"buttonText");var q=this._get(e,"buttonImage");e.trigger=b(this._get(e,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:q,alt:k,title:k}):b('<button type="button"></button>').addClass(this._triggerClass).html(q==
""?k:b("<img/>").attr({src:q,alt:k,title:k})));a[o?"before":"after"](e.trigger);e.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var e=new Date(2009,11,20),k=this._get(a,"dateFormat");if(k.match(/[DM]/)){var o=function(q){for(var x=0,s=0,n=0;n<q.length;n++)if(q[n].length>x){x=q[n].length;s=n}return s};e.setMonth(o(this._get(a,
k.match(/MM/)?"monthNames":"monthNamesShort")));e.setDate(o(this._get(a,k.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}a.input.attr("size",this._formatDate(a,e).length)}},_inlineDatepicker:function(a,e){var k=b(a);if(!k.hasClass(this.markerClassName)){k.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(o,q,x){e.settings[q]=x}).bind("getData.datepicker",function(o,q){return this._get(e,q)});b.data(a,"datepicker",e);this._setDate(e,this._getDefaultDate(e),
true);this._updateDatepicker(e);this._updateAlternate(e);e.dpDiv.show()}},_dialogDatepicker:function(a,e,k,o,q){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}h(a.settings,o||{});
e=e&&e.constructor==Date?this._formatDate(a,e):e;this._dialogInput.val(e);this._pos=q?q.length?q:[q.pageX,q.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=k;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var e=b(a),k=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var o=a.nodeName.toLowerCase();b.removeData(a,"datepicker");if(o=="input"){k.append.remove();k.trigger.remove();e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
this._doKeyUp)}else if(o=="div"||o=="span")e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var e=b(a),k=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var o=a.nodeName.toLowerCase();if(o=="input"){a.disabled=false;k.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(o=="div"||o=="span")e.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,
function(q){return q==a?null:q})}},_disableDatepicker:function(a){var e=b(a),k=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var o=a.nodeName.toLowerCase();if(o=="input"){a.disabled=true;k.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(o=="div"||o=="span")e.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(q){return q==a?null:
q});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(e){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,e,k){var o=this._getInst(a);if(arguments.length==2&&typeof e=="string")return e=="defaults"?b.extend({},b.datepicker._defaults):o?e=="all"?b.extend({},
o.settings):this._get(o,e):null;var q=e||{};if(typeof e=="string"){q={};q[e]=k}if(o){this._curInst==o&&this._hideDatepicker();var x=this._getDateDatepicker(a,true);h(o.settings,q);this._attachments(b(a),o);this._autoSize(o);this._setDateDatepicker(a,x);this._updateDatepicker(o)}},_changeDatepicker:function(a,e,k){this._optionDatepicker(a,e,k)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,e){var k=this._getInst(a);if(k){this._setDate(k,
e);this._updateDatepicker(k);this._updateAlternate(k)}},_getDateDatepicker:function(a,e){var k=this._getInst(a);k&&!k.inline&&this._setDateFromField(k,e);return k?this._getDate(k):null},_doKeyDown:function(a){var e=b.datepicker._getInst(a.target),k=true,o=e.dpDiv.is(".ui-datepicker-rtl");e._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();k=false;break;case 13:k=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",e.dpDiv);
k[0]?b.datepicker._selectDay(a.target,e.selectedMonth,e.selectedYear,k[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);
k=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);k=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,o?+1:-1,"D");k=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");k=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||
a.metaKey)b.datepicker._adjustDate(a.target,o?-1:+1,"D");k=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");k=a.ctrlKey||a.metaKey;break;default:k=false}else if(a.keyCode==36&&a.ctrlKey)b.datepicker._showDatepicker(this);else k=false;if(k){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var e=
b.datepicker._getInst(a.target);if(b.datepicker._get(e,"constrainInput")){e=b.datepicker._possibleChars(b.datepicker._get(e,"dateFormat"));var k=String.fromCharCode(a.charCode==d?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||k<" "||!e||e.indexOf(k)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);
b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(e){b.datepicker.log(e)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var e=b.datepicker._getInst(a);b.datepicker._curInst&&b.datepicker._curInst!=e&&b.datepicker._curInst.dpDiv.stop(true,true);var k=b.datepicker._get(e,"beforeShow");h(e.settings,k?k.apply(a,[a,e]):{});e.lastVal=
null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(e);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var o=false;b(a).parents().each(function(){o|=b(this).css("position")=="fixed";return!o});if(o&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}k={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=
null;e.dpDiv.empty();e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(e);k=b.datepicker._checkOffset(e,k,o);e.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":o?"fixed":"absolute",display:"none",left:k.left+"px",top:k.top+"px"});if(!e.inline){k=b.datepicker._get(e,"showAnim");var q=b.datepicker._get(e,"duration"),x=function(){b.datepicker._datepickerShowing=true;var s=e.dpDiv.find("iframe.ui-datepicker-cover");if(s.length){var n=b.datepicker._getBorders(e.dpDiv);
s.css({left:-n[0],top:-n[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[k]?e.dpDiv.show(k,b.datepicker._get(e,"showOptions"),q,x):e.dpDiv[k||"show"](k?q:null,x);if(!k||!q)x();e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus();b.datepicker._curInst=e}}},_updateDatepicker:function(a){var e=this,k=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var o=a.dpDiv.find("iframe.ui-datepicker-cover");
o.length&&o.css({left:-k[0],top:-k[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!e._isDisabledDatepicker(a.inline?
a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();k=this._getNumberOfMonths(a);o=k[1];o>1?a.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",
17*o+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(k[0]!=1||k[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var q=a.yearshtml;setTimeout(function(){q===a.yearshtml&&
a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);q=a.yearshtml=null},0)}},_getBorders:function(a){var e=function(k){return{thin:1,medium:2,thick:3}[k]||k};return[parseFloat(e(a.css("border-left-width"))),parseFloat(e(a.css("border-top-width")))]},_checkOffset:function(a,e,k){var o=a.dpDiv.outerWidth(),q=a.dpDiv.outerHeight(),x=a.input?a.input.outerWidth():0,s=a.input?a.input.outerHeight():0,n=document.documentElement.clientWidth+b(document).scrollLeft(),v=document.documentElement.clientHeight+
b(document).scrollTop();e.left-=this._get(a,"isRTL")?o-x:0;e.left-=k&&e.left==a.input.offset().left?b(document).scrollLeft():0;e.top-=k&&e.top==a.input.offset().top+s?b(document).scrollTop():0;e.left-=Math.min(e.left,e.left+o>n&&n>o?Math.abs(e.left+o-n):0);e.top-=Math.min(e.top,e.top+q>v&&v>q?Math.abs(q+s):0);return e},_findPos:function(a){for(var e=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[e?"previousSibling":"nextSibling"];a=b(a).offset();
return[a.left,a.top]},_hideDatepicker:function(a){var e=this._curInst;if(!(!e||a&&e!=b.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(e,"showAnim");var k=this._get(e,"duration"),o=function(){b.datepicker._tidyDialog(e);this._curInst=null};b.effects&&b.effects[a]?e.dpDiv.hide(a,b.datepicker._get(e,"showOptions"),k,o):e.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?k:null,o);a||o();if(a=this._get(e,"onClose"))a.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",
e]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&
!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,e,k){a=b(a);var o=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(o,e+(k=="M"?this._get(o,"showCurrentAtPos"):0),k);this._updateDatepicker(o)}},_gotoToday:function(a){a=b(a);var e=this._getInst(a[0]);if(this._get(e,"gotoCurrent")&&e.currentDay){e.selectedDay=e.currentDay;e.drawMonth=e.selectedMonth=e.currentMonth;
e.drawYear=e.selectedYear=e.currentYear}else{var k=new Date;e.selectedDay=k.getDate();e.drawMonth=e.selectedMonth=k.getMonth();e.drawYear=e.selectedYear=k.getFullYear()}this._notifyChange(e);this._adjustDate(a)},_selectMonthYear:function(a,e,k){a=b(a);var o=this._getInst(a[0]);o._selectingMonthYear=false;o["selected"+(k=="M"?"Month":"Year")]=o["draw"+(k=="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10);this._notifyChange(o);this._adjustDate(a)},_clickMonthYear:function(a){var e=
this._getInst(b(a)[0]);e.input&&e._selectingMonthYear&&setTimeout(function(){e.input.focus()},0);e._selectingMonthYear=!e._selectingMonthYear},_selectDay:function(a,e,k,o){var q=b(a);if(!(b(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(q[0]))){q=this._getInst(q[0]);q.selectedDay=q.currentDay=b("a",o).html();q.selectedMonth=q.currentMonth=e;q.selectedYear=q.currentYear=k;this._selectDate(a,this._formatDate(q,q.currentDay,q.currentMonth,q.currentYear))}},_clearDate:function(a){a=
b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,e){var k=this._getInst(b(a)[0]);e=e!=null?e:this._formatDate(k);k.input&&k.input.val(e);this._updateAlternate(k);var o=this._get(k,"onSelect");if(o)o.apply(k.input?k.input[0]:null,[e,k]);else k.input&&k.input.trigger("change");if(k.inline)this._updateDatepicker(k);else{this._hideDatepicker();this._lastInput=k.input[0];typeof k.input[0]!="object"&&k.input.focus();this._lastInput=null}},_updateAlternate:function(a){var e=this._get(a,
"altField");if(e){var k=this._get(a,"altFormat")||this._get(a,"dateFormat"),o=this._getDate(a),q=this.formatDate(k,o,this._getFormatConfig(a));b(e).each(function(){b(this).val(q)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var e=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((e-a)/864E5)/7)+1},parseDate:function(a,e,k){if(a==null||e==null)throw"Invalid arguments";e=typeof e==
"object"?e.toString():e+"";if(e=="")return null;var o=(k?k.shortYearCutoff:null)||this._defaults.shortYearCutoff;o=typeof o!="string"?o:(new Date).getFullYear()%100+parseInt(o,10);for(var q=(k?k.dayNamesShort:null)||this._defaults.dayNamesShort,x=(k?k.dayNames:null)||this._defaults.dayNames,s=(k?k.monthNamesShort:null)||this._defaults.monthNamesShort,n=(k?k.monthNames:null)||this._defaults.monthNames,v=k=-1,z=-1,B=-1,J=false,P=function(j){(j=la+1<a.length&&a.charAt(la+1)==j)&&la++;return j},S=function(j){var ma=
P(j);j=RegExp("^\\d{1,"+(j=="@"?14:j=="!"?20:j=="y"&&ma?4:j=="o"?3:2)+"}");j=e.substring(aa).match(j);if(!j)throw"Missing number at position "+aa;aa+=j[0].length;return parseInt(j[0],10)},X=function(j,ma,Ea){j=P(j)?Ea:ma;for(ma=0;ma<j.length;ma++)if(e.substr(aa,j[ma].length).toLowerCase()==j[ma].toLowerCase()){aa+=j[ma].length;return ma+1}throw"Unknown name at position "+aa;},Y=function(){if(e.charAt(aa)!=a.charAt(la))throw"Unexpected literal at position "+aa;aa++},aa=0,la=0;la<a.length;la++)if(J)if(a.charAt(la)==
"'"&&!P("'"))J=false;else Y();else switch(a.charAt(la)){case "d":z=S("d");break;case "D":X("D",q,x);break;case "o":B=S("o");break;case "m":v=S("m");break;case "M":v=X("M",s,n);break;case "y":k=S("y");break;case "@":var O=new Date(S("@"));k=O.getFullYear();v=O.getMonth()+1;z=O.getDate();break;case "!":O=new Date((S("!")-this._ticksTo1970)/1E4);k=O.getFullYear();v=O.getMonth()+1;z=O.getDate();break;case "'":if(P("'"))Y();else J=true;break;default:Y()}if(k==-1)k=(new Date).getFullYear();else if(k<100)k+=
(new Date).getFullYear()-(new Date).getFullYear()%100+(k<=o?0:-100);if(B>-1){v=1;z=B;do{o=this._getDaysInMonth(k,v-1);if(z<=o)break;v++;z-=o}while(1)}O=this._daylightSavingAdjust(new Date(k,v-1,z));if(O.getFullYear()!=k||O.getMonth()+1!=v||O.getDate()!=z)throw"Invalid date";return O},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+
Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,e,k){if(!e)return"";var o=(k?k.dayNamesShort:null)||this._defaults.dayNamesShort,q=(k?k.dayNames:null)||this._defaults.dayNames,x=(k?k.monthNamesShort:null)||this._defaults.monthNamesShort;k=(k?k.monthNames:null)||this._defaults.monthNames;var s=function(P){(P=J+1<a.length&&a.charAt(J+1)==P)&&J++;return P},n=function(P,S,X){S=""+S;if(s(P))for(;S.length<X;)S="0"+S;return S},v=function(P,S,X,Y){return s(P)?Y[S]:
X[S]},z="",B=false;if(e)for(var J=0;J<a.length;J++)if(B)if(a.charAt(J)=="'"&&!s("'"))B=false;else z+=a.charAt(J);else switch(a.charAt(J)){case "d":z+=n("d",e.getDate(),2);break;case "D":z+=v("D",e.getDay(),o,q);break;case "o":z+=n("o",(e.getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":z+=n("m",e.getMonth()+1,2);break;case "M":z+=v("M",e.getMonth(),x,k);break;case "y":z+=s("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case "@":z+=e.getTime();break;
case "!":z+=e.getTime()*1E4+this._ticksTo1970;break;case "'":if(s("'"))z+="'";else B=true;break;default:z+=a.charAt(J)}return z},_possibleChars:function(a){for(var e="",k=false,o=function(x){(x=q+1<a.length&&a.charAt(q+1)==x)&&q++;return x},q=0;q<a.length;q++)if(k)if(a.charAt(q)=="'"&&!o("'"))k=false;else e+=a.charAt(q);else switch(a.charAt(q)){case "d":case "m":case "y":case "@":e+="0123456789";break;case "D":case "M":return null;case "'":if(o("'"))e+="'";else k=true;break;default:e+=a.charAt(q)}return e},
_get:function(a,e){return a.settings[e]!==d?a.settings[e]:this._defaults[e]},_setDateFromField:function(a,e){if(a.input.val()!=a.lastVal){var k=this._get(a,"dateFormat"),o=a.lastVal=a.input?a.input.val():null,q,x;q=x=this._getDefaultDate(a);var s=this._getFormatConfig(a);try{q=this.parseDate(k,o,s)||x}catch(n){this.log(n);o=e?"":o}a.selectedDay=q.getDate();a.drawMonth=a.selectedMonth=q.getMonth();a.drawYear=a.selectedYear=q.getFullYear();a.currentDay=o?q.getDate():0;a.currentMonth=o?q.getMonth():
0;a.currentYear=o?q.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,e,k){var o=function(x){var s=new Date;s.setDate(s.getDate()+x);return s},q=function(x){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),x,b.datepicker._getFormatConfig(a))}catch(s){}var n=(x.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,v=n.getFullYear(),
z=n.getMonth();n=n.getDate();for(var B=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,J=B.exec(x);J;){switch(J[2]||"d"){case "d":case "D":n+=parseInt(J[1],10);break;case "w":case "W":n+=parseInt(J[1],10)*7;break;case "m":case "M":z+=parseInt(J[1],10);n=Math.min(n,b.datepicker._getDaysInMonth(v,z));break;case "y":case "Y":v+=parseInt(J[1],10);n=Math.min(n,b.datepicker._getDaysInMonth(v,z))}J=B.exec(x)}return new Date(v,z,n)};if(e=(e=e==null||e===""?k:typeof e=="string"?q(e):typeof e=="number"?isNaN(e)?k:o(e):
new Date(e.getTime()))&&e.toString()=="Invalid Date"?k:e){e.setHours(0);e.setMinutes(0);e.setSeconds(0);e.setMilliseconds(0)}return this._daylightSavingAdjust(e)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,e,k){var o=!e,q=a.selectedMonth,x=a.selectedYear;e=this._restrictMinMax(a,this._determineDate(a,e,new Date));a.selectedDay=a.currentDay=e.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=e.getMonth();a.drawYear=
a.selectedYear=a.currentYear=e.getFullYear();if((q!=a.selectedMonth||x!=a.selectedYear)&&!k)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(o?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var k=this._get(a,"isRTL"),o=this._get(a,
"showButtonPanel"),q=this._get(a,"hideIfNoPrevNext"),x=this._get(a,"navigationAsDateFormat"),s=this._getNumberOfMonths(a),n=this._get(a,"showCurrentAtPos"),v=this._get(a,"stepMonths"),z=s[0]!=1||s[1]!=1,B=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),J=this._getMinMaxDate(a,"min"),P=this._getMinMaxDate(a,"max");n=a.drawMonth-n;var S=a.drawYear;if(n<0){n+=12;S--}if(P){var X=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth()-
s[0]*s[1]+1,P.getDate()));for(X=J&&X<J?J:X;this._daylightSavingAdjust(new Date(S,n,1))>X;){n--;if(n<0){n=11;S--}}}a.drawMonth=n;a.drawYear=S;X=this._get(a,"prevText");X=!x?X:this.formatDate(X,this._daylightSavingAdjust(new Date(S,n-v,1)),this._getFormatConfig(a));X=this._canAdjustMonth(a,-1,S,n)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', -"+v+", 'M');\" title=\""+X+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"e":"w")+'">'+X+"</span></a>":
q?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+X+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"e":"w")+'">'+X+"</span></a>";var Y=this._get(a,"nextText");Y=!x?Y:this.formatDate(Y,this._daylightSavingAdjust(new Date(S,n+v,1)),this._getFormatConfig(a));q=this._canAdjustMonth(a,+1,S,n)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', +"+v+", 'M');\" title=\""+Y+'"><span class="ui-icon ui-icon-circle-triangle-'+
(k?"w":"e")+'">'+Y+"</span></a>":q?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+Y+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"w":"e")+'">'+Y+"</span></a>";v=this._get(a,"currentText");Y=this._get(a,"gotoCurrent")&&a.currentDay?B:e;v=!x?v:this.formatDate(v,Y,this._getFormatConfig(a));x=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+f+'.datepicker._hideDatepicker();">'+this._get(a,
"closeText")+"</button>":"";o=o?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(k?x:"")+(this._isInRange(a,Y)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._gotoToday('#"+a.id+"');\">"+v+"</button>":"")+(k?"":x)+"</div>":"";x=parseInt(this._get(a,"firstDay"),10);x=isNaN(x)?0:x;v=this._get(a,"showWeek");Y=this._get(a,"dayNames");this._get(a,"dayNamesShort");var aa=this._get(a,"dayNamesMin"),
la=this._get(a,"monthNames"),O=this._get(a,"monthNamesShort"),j=this._get(a,"beforeShowDay"),ma=this._get(a,"showOtherMonths"),Ea=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var Fa=this._getDefaultDate(a),La="",xa=0;xa<s[0];xa++){for(var Pa="",ya=0;ya<s[1];ya++){var Qa=this._daylightSavingAdjust(new Date(S,n,a.selectedDay)),ga=" ui-corner-all",na="";if(z){na+='<div class="ui-datepicker-group';if(s[1]>1)switch(ya){case 0:na+=" ui-datepicker-group-first";ga=" ui-corner-"+(k?"right":
"left");break;case s[1]-1:na+=" ui-datepicker-group-last";ga=" ui-corner-"+(k?"left":"right");break;default:na+=" ui-datepicker-group-middle";ga=""}na+='">'}na+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+ga+'">'+(/all|left/.test(ga)&&xa==0?k?q:X:"")+(/all|right/.test(ga)&&xa==0?k?X:q:"")+this._generateMonthYearHeader(a,n,S,J,P,xa>0||ya>0,la,O)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var sa=v?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+
"</th>":"";for(ga=0;ga<7;ga++){var fa=(ga+x)%7;sa+="<th"+((ga+x+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+Y[fa]+'">'+aa[fa]+"</span></th>"}na+=sa+"</tr></thead><tbody>";sa=this._getDaysInMonth(S,n);if(S==a.selectedYear&&n==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,sa);ga=(this._getFirstDayOfMonth(S,n)-x+7)%7;sa=z?6:Math.ceil((ga+sa)/7);fa=this._daylightSavingAdjust(new Date(S,n,1-ga));for(var Oa=0;Oa<sa;Oa++){na+="<tr>";var Ra=!v?"":'<td class="ui-datepicker-week-col">'+
this._get(a,"calculateWeek")(fa)+"</td>";for(ga=0;ga<7;ga++){var Ga=j?j.apply(a.input?a.input[0]:null,[fa]):[true,""],ua=fa.getMonth()!=n,Ha=ua&&!Ea||!Ga[0]||J&&fa<J||P&&fa>P;Ra+='<td class="'+((ga+x+6)%7>=5?" ui-datepicker-week-end":"")+(ua?" ui-datepicker-other-month":"")+(fa.getTime()==Qa.getTime()&&n==a.selectedMonth&&a._keyEvent||Fa.getTime()==fa.getTime()&&Fa.getTime()==Qa.getTime()?" "+this._dayOverClass:"")+(Ha?" "+this._unselectableClass+" ui-state-disabled":"")+(ua&&!ma?"":" "+Ga[1]+(fa.getTime()==
B.getTime()?" "+this._currentClass:"")+(fa.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+((!ua||ma)&&Ga[2]?' title="'+Ga[2]+'"':"")+(Ha?"":' onclick="DP_jQuery_'+f+".datepicker._selectDay('#"+a.id+"',"+fa.getMonth()+","+fa.getFullYear()+', this);return false;"')+">"+(ua&&!ma?"&#xa0;":Ha?'<span class="ui-state-default">'+fa.getDate()+"</span>":'<a class="ui-state-default'+(fa.getTime()==e.getTime()?" ui-state-highlight":"")+(fa.getTime()==B.getTime()?" ui-state-active":"")+(ua?" ui-priority-secondary":
"")+'" href="#">'+fa.getDate()+"</a>")+"</td>";fa.setDate(fa.getDate()+1);fa=this._daylightSavingAdjust(fa)}na+=Ra+"</tr>"}n++;if(n>11){n=0;S++}na+="</tbody></table>"+(z?"</div>"+(s[0]>0&&ya==s[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");Pa+=na}La+=Pa}La+=o+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return La},_generateMonthYearHeader:function(a,e,k,o,q,x,
s,n){var v=this._get(a,"changeMonth"),z=this._get(a,"changeYear"),B=this._get(a,"showMonthAfterYear"),J='<div class="ui-datepicker-title">',P="";if(x||!v)P+='<span class="ui-datepicker-month">'+s[e]+"</span>";else{s=o&&o.getFullYear()==k;var S=q&&q.getFullYear()==k;P+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var X=0;X<12;X++)if((!s||X>=o.getMonth())&&
(!S||X<=q.getMonth()))P+='<option value="'+X+'"'+(X==e?' selected="selected"':"")+">"+n[X]+"</option>";P+="</select>"}B||(J+=P+(x||!(v&&z)?"&#xa0;":""));a.yearshtml="";if(x||!z)J+='<span class="ui-datepicker-year">'+k+"</span>";else{n=this._get(a,"yearRange").split(":");var Y=(new Date).getFullYear();s=function(aa){aa=aa.match(/c[+-].*/)?k+parseInt(aa.substring(1),10):aa.match(/[+-].*/)?Y+parseInt(aa,10):parseInt(aa,10);return isNaN(aa)?Y:aa};e=s(n[0]);n=Math.max(e,s(n[1]||""));e=o?Math.max(e,o.getFullYear()):
e;n=q?Math.min(n,q.getFullYear()):n;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";e<=n;e++)a.yearshtml+='<option value="'+e+'"'+(e==k?' selected="selected"':"")+">"+e+"</option>";a.yearshtml+="</select>";if(b.browser.mozilla)J+='<select class="ui-datepicker-year"><option value="'+k+'" selected="selected">'+k+"</option></select>";else{J+=a.yearshtml;
a.yearshtml=null}}J+=this._get(a,"yearSuffix");if(B)J+=(x||!(v&&z)?"&#xa0;":"")+P;J+="</div>";return J},_adjustInstDate:function(a,e,k){var o=a.drawYear+(k=="Y"?e:0),q=a.drawMonth+(k=="M"?e:0);e=Math.min(a.selectedDay,this._getDaysInMonth(o,q))+(k=="D"?e:0);o=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(o,q,e)));a.selectedDay=o.getDate();a.drawMonth=a.selectedMonth=o.getMonth();a.drawYear=a.selectedYear=o.getFullYear();if(k=="M"||k=="Y")this._notifyChange(a)},_restrictMinMax:function(a,
e){var k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");k=k&&e<k?k:e;return k=o&&k>o?o:k},_notifyChange:function(a){var e=this._get(a,"onChangeMonthYear");if(e)e.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,e){return this._determineDate(a,this._get(a,e+"Date"),null)},_getDaysInMonth:function(a,e){return 32-this._daylightSavingAdjust(new Date(a,
e,32)).getDate()},_getFirstDayOfMonth:function(a,e){return(new Date(a,e,1)).getDay()},_canAdjustMonth:function(a,e,k,o){var q=this._getNumberOfMonths(a);k=this._daylightSavingAdjust(new Date(k,o+(e<0?e:q[0]*q[1]),1));e<0&&k.setDate(this._getDaysInMonth(k.getFullYear(),k.getMonth()));return this._isInRange(a,k)},_isInRange:function(a,e){var k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");return(!k||e.getTime()>=k.getTime())&&(!o||e.getTime()<=o.getTime())},_getFormatConfig:function(a){var e=
this._get(a,"shortYearCutoff");e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,e,k,o){if(!e){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}e=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(o,k,e)):this._daylightSavingAdjust(new Date(a.currentYear,
a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!this.length)return this;if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var e=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));
if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(e)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new g;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.10";window["DP_jQuery_"+f]=b})(jQuery);
(function(b,d){var g={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},h={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(f){var a=b(this).css(f).offset().top;a<0&&
b(this).css("top",f.top-a)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var f=this,a=f.options,e=a.title||"&#160;",k=b.ui.dialog.getTitleId(f.element),o=(f.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a.dialogClass).css({zIndex:a.zIndex}).attr("tabIndex",
-1).css("outline",0).keydown(function(s){if(a.closeOnEscape&&s.keyCode&&s.keyCode===b.ui.keyCode.ESCAPE){f.close(s);s.preventDefault()}}).attr({role:"dialog","aria-labelledby":k}).mousedown(function(s){f.moveToTop(false,s)});f.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(o);var q=(f.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(o),x=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
"button").hover(function(){x.addClass("ui-state-hover")},function(){x.removeClass("ui-state-hover")}).focus(function(){x.addClass("ui-state-focus")}).blur(function(){x.removeClass("ui-state-focus")}).click(function(s){f.close(s);return false}).appendTo(q);(f.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(a.closeText).appendTo(x);b("<span></span>").addClass("ui-dialog-title").attr("id",k).html(e).prependTo(q);if(b.isFunction(a.beforeclose)&&!b.isFunction(a.beforeClose))a.beforeClose=
a.beforeclose;q.find("*").add(q).disableSelection();a.draggable&&b.fn.draggable&&f._makeDraggable();a.resizable&&b.fn.resizable&&f._makeResizable();f._createButtons(a.buttons);f._isOpen=false;b.fn.bgiframe&&o.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();
this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(f){var a=this,e,k;if(false!==a._trigger("beforeClose",f)){a.overlay&&a.overlay.destroy();a.uiDialog.unbind("keypress.ui-dialog");a._isOpen=false;if(a.options.hide)a.uiDialog.hide(a.options.hide,function(){a._trigger("close",f)});else{a.uiDialog.hide();a._trigger("close",f)}b.ui.dialog.overlay.resize();if(a.options.modal){e=0;b(".ui-dialog").each(function(){if(this!==
a.uiDialog[0]){k=b(this).css("z-index");isNaN(k)||(e=Math.max(e,k))}});b.ui.dialog.maxZ=e}return a}},isOpen:function(){return this._isOpen},moveToTop:function(f,a){var e=this.options;if(e.modal&&!f||!e.stack&&!e.modal)return this._trigger("focus",a);if(e.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=e.zIndex;if(this.overlay){b.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ)}e={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
b.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",b.ui.dialog.maxZ);this.element.attr(e);this._trigger("focus",a);return this},open:function(){if(!this._isOpen){var f=this.options,a=this.uiDialog;this.overlay=f.modal?new b.ui.dialog.overlay(this):null;this._size();this._position(f.position);a.show(f.show);this.moveToTop(true);f.modal&&a.bind("keypress.ui-dialog",function(e){if(e.keyCode===b.ui.keyCode.TAB){var k=b(":tabbable",this),o=k.filter(":first");k=k.filter(":last");if(e.target===k[0]&&!e.shiftKey){o.focus(1);
return false}else if(e.target===o[0]&&e.shiftKey){k.focus(1);return false}}});b(this.element.find(":tabbable").get().concat(a.find(".ui-dialog-buttonpane :tabbable").get().concat(a.get()))).eq(0).focus();this._isOpen=true;this._trigger("open");return this}},_createButtons:function(f){var a=this,e=false,k=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),o=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);a.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof f==="object"&&f!==null&&b.each(f,function(){return!(e=true)});if(e){b.each(f,function(q,x){x=b.isFunction(x)?{click:x,text:q}:x;var s=b('<button type="button"></button>').attr(x,true).unbind("click").click(function(){x.click.apply(a.element[0],arguments)}).appendTo(o);b.fn.button&&s.button()});k.appendTo(a.uiDialog)}},_makeDraggable:function(){function f(q){return{position:q.position,offset:q.offset}}var a=this,e=a.options,k=b(document),o;a.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(q,x){o=e.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");a._trigger("dragStart",q,f(x))},drag:function(q,x){a._trigger("drag",q,f(x))},stop:function(q,x){e.position=[x.position.left-k.scrollLeft(),x.position.top-k.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(o);a._trigger("dragStop",q,f(x));b.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function a(q){return{originalPosition:q.originalPosition,
originalSize:q.originalSize,position:q.position,size:q.size}}f=f===d?this.options.resizable:f;var e=this,k=e.options,o=e.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:e._minHeight(),handles:f,start:function(q,x){b(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",q,a(x))},resize:function(q,x){e._trigger("resize",
q,a(x))},stop:function(q,x){b(this).removeClass("ui-dialog-resizing");k.height=b(this).height();k.width=b(this).width();e._trigger("resizeStop",q,a(x));b.ui.dialog.overlay.resize()}}).css("position",o).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;return f.height==="auto"?f.minHeight:Math.min(f.minHeight,f.height)},_position:function(f){var a=[],e=[0,0],k;if(f){if(typeof f==="string"||typeof f==="object"&&"0"in f){a=f.split?f.split(" "):
[f[0],f[1]];if(a.length===1)a[1]=a[0];b.each(["left","top"],function(o,q){if(+a[o]===a[o]){e[o]=a[o];a[o]=q}});f={my:a.join(" "),at:a.join(" "),offset:e.join(" ")}}f=b.extend({},b.ui.dialog.prototype.options.position,f)}else f=b.ui.dialog.prototype.options.position;(k=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(b.extend({of:window},f));k||this.uiDialog.hide()},_setOptions:function(f){var a=this,e={},k=false;b.each(f,function(o,q){a._setOption(o,q);
if(o in g)k=true;if(o in h)e[o]=q});k&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",e)},_setOption:function(f,a){var e=this.uiDialog;switch(f){case "beforeclose":f="beforeClose";break;case "buttons":this._createButtons(a);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+a);break;case "dialogClass":e.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+a);break;case "disabled":a?e.addClass("ui-dialog-disabled"):
e.removeClass("ui-dialog-disabled");break;case "draggable":var k=e.is(":data(draggable)");k&&!a&&e.draggable("destroy");!k&&a&&this._makeDraggable();break;case "position":this._position(a);break;case "resizable":(k=e.is(":data(resizable)"))&&!a&&e.resizable("destroy");k&&typeof a==="string"&&e.resizable("option","handles",a);!k&&a!==false&&this._makeResizable(a);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(""+(a||"&#160;"))}b.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var f=this.options,a,e,k=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width)f.width=f.minWidth;a=this.uiDialog.css({height:"auto",width:f.width}).height();e=Math.max(0,f.minHeight-a);if(f.height==="auto")if(b.support.minHeight)this.element.css({minHeight:e,height:"auto"});else{this.uiDialog.show();f=this.element.css("height","auto").height();k||this.uiDialog.hide();this.element.height(Math.max(f,e))}else this.element.height(Math.max(f.height-
a,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.10",uuid:0,maxZ:0,getTitleId:function(f){f=f.attr("id");if(!f){this.uuid+=1;f=this.uuid}return"ui-dialog-title-"+f},overlay:function(f){this.$el=b.ui.dialog.overlay.create(f)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),
create:function(f){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(e){if(b(e.target).zIndex()<b.ui.dialog.overlay.maxZ)return false})},1);b(document).bind("keydown.dialog-overlay",function(e){if(f.options.closeOnEscape&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE){f.close(e);e.preventDefault()}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var a=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});b.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(f){var a=b.inArray(f,this.instances);a!=-1&&this.oldInstances.push(this.instances.splice(a,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");f.remove();var e=0;b.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var f,a;if(b.browser.msie&&b.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f<a?b(window).height()+"px":f+"px"}else return b(document).height()+"px"},width:function(){var f,a;if(b.browser.msie&&b.browser.version<7){f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return f<a?b(window).width()+"px":f+"px"}else return b(document).width()+"px"},resize:function(){var f=b([]);b.each(b.ui.dialog.overlay.instances,
function(){f=f.add(this)});f.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(b){b.ui=b.ui||{};var d=/left|center|right/,g=/top|center|bottom/,h=b.fn.position,f=b.fn.offset;b.fn.position=function(a){if(!a||!a.of)return h.apply(this,arguments);a=b.extend({},a);var e=b(a.of),k=e[0],o=(a.collision||"flip").split(" "),q=a.offset?a.offset.split(" "):[0,0],x,s,n;if(k.nodeType===9){x=e.width();s=e.height();n={top:0,left:0}}else if(k.setTimeout){x=e.width();s=e.height();n={top:e.scrollTop(),left:e.scrollLeft()}}else if(k.preventDefault){a.at="left top";x=s=0;n={top:a.of.pageY,
left:a.of.pageX}}else{x=e.outerWidth();s=e.outerHeight();n=e.offset()}b.each(["my","at"],function(){var v=(a[this]||"").split(" ");if(v.length===1)v=d.test(v[0])?v.concat(["center"]):g.test(v[0])?["center"].concat(v):["center","center"];v[0]=d.test(v[0])?v[0]:"center";v[1]=g.test(v[1])?v[1]:"center";a[this]=v});if(o.length===1)o[1]=o[0];q[0]=parseInt(q[0],10)||0;if(q.length===1)q[1]=q[0];q[1]=parseInt(q[1],10)||0;if(a.at[0]==="right")n.left+=x;else if(a.at[0]==="center")n.left+=x/2;if(a.at[1]==="bottom")n.top+=
s;else if(a.at[1]==="center")n.top+=s/2;n.left+=q[0];n.top+=q[1];return this.each(function(){var v=b(this),z=v.outerWidth(),B=v.outerHeight(),J=parseInt(b.curCSS(this,"marginLeft",true))||0,P=parseInt(b.curCSS(this,"marginTop",true))||0,S=z+J+(parseInt(b.curCSS(this,"marginRight",true))||0),X=B+P+(parseInt(b.curCSS(this,"marginBottom",true))||0),Y=b.extend({},n),aa;if(a.my[0]==="right")Y.left-=z;else if(a.my[0]==="center")Y.left-=z/2;if(a.my[1]==="bottom")Y.top-=B;else if(a.my[1]==="center")Y.top-=
B/2;Y.left=Math.round(Y.left);Y.top=Math.round(Y.top);aa={left:Y.left-J,top:Y.top-P};b.each(["left","top"],function(la,O){b.ui.position[o[la]]&&b.ui.position[o[la]][O](Y,{targetWidth:x,targetHeight:s,elemWidth:z,elemHeight:B,collisionPosition:aa,collisionWidth:S,collisionHeight:X,offset:q,my:a.my,at:a.at})});b.fn.bgiframe&&v.bgiframe();v.offset(b.extend(Y,{using:a.using}))})};b.ui.position={fit:{left:function(a,e){var k=b(window);k=e.collisionPosition.left+e.collisionWidth-k.width()-k.scrollLeft();
a.left=k>0?a.left-k:Math.max(a.left-e.collisionPosition.left,a.left)},top:function(a,e){var k=b(window);k=e.collisionPosition.top+e.collisionHeight-k.height()-k.scrollTop();a.top=k>0?a.top-k:Math.max(a.top-e.collisionPosition.top,a.top)}},flip:{left:function(a,e){if(e.at[0]!=="center"){var k=b(window);k=e.collisionPosition.left+e.collisionWidth-k.width()-k.scrollLeft();var o=e.my[0]==="left"?-e.elemWidth:e.my[0]==="right"?e.elemWidth:0,q=e.at[0]==="left"?e.targetWidth:-e.targetWidth,x=-2*e.offset[0];
a.left+=e.collisionPosition.left<0?o+q+x:k>0?o+q+x:0}},top:function(a,e){if(e.at[1]!=="center"){var k=b(window);k=e.collisionPosition.top+e.collisionHeight-k.height()-k.scrollTop();var o=e.my[1]==="top"?-e.elemHeight:e.my[1]==="bottom"?e.elemHeight:0,q=e.at[1]==="top"?e.targetHeight:-e.targetHeight,x=-2*e.offset[1];a.top+=e.collisionPosition.top<0?o+q+x:k>0?o+q+x:0}}}};if(!b.offset.setOffset){b.offset.setOffset=function(a,e){if(/static/.test(b.curCSS(a,"position")))a.style.position="relative";var k=
b(a),o=k.offset(),q=parseInt(b.curCSS(a,"top",true),10)||0,x=parseInt(b.curCSS(a,"left",true),10)||0;o={top:e.top-o.top+q,left:e.left-o.left+x};"using"in e?e.using.call(a,o):k.css(o)};b.fn.offset=function(a){var e=this[0];if(!e||!e.ownerDocument)return null;if(a)return this.each(function(){b.offset.setOffset(this,a)});return f.call(this)}}})(jQuery);
(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(g){if(g===d)return this._value();this._setOption("value",g);return this},_setOption:function(g,h){if(g==="value"){this.options.value=h;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var g=this.options.value;if(typeof g!=="number")g=0;return Math.min(this.options.max,Math.max(this.min,g))},_percentage:function(){return 100*
this._value()/this.options.max},_refreshValue:function(){var g=this.value(),h=this._percentage();if(this.oldValue!==g){this.oldValue=g;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",g===this.options.max).width(h.toFixed(0)+"%");this.element.attr("aria-valuenow",g)}});b.extend(b.ui.progressbar,{version:"1.8.10"})})(jQuery);
(function(b){b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,g=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");g.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=b([]);if(g.range){if(g.range===true){this.range=b("<div></div>");if(!g.values)g.values=[this._valueMin(),this._valueMin()];if(g.values.length&&g.values.length!==2)g.values=[g.values[0],g.values[0]]}else this.range=b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(g.range==="min"||g.range==="max")this.range.addClass("ui-slider-range-"+g.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length===0&&b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(g.values&&g.values.length)for(;b(".ui-slider-handle",this.element).length<g.values.length;)b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(h){h.preventDefault()}).hover(function(){g.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(g.disabled)b(this).blur();
else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(h){b(this).data("index.ui-slider-handle",h)});this.handles.keydown(function(h){var f=true,a=b(this).data("index.ui-slider-handle"),e,k,o;if(!d.options.disabled){switch(h.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:f=
false;if(!d._keySliding){d._keySliding=true;b(this).addClass("ui-state-active");e=d._start(h,a);if(e===false)return}}o=d.options.step;e=d.options.values&&d.options.values.length?k=d.values(a):k=d.value();switch(h.keyCode){case b.ui.keyCode.HOME:k=d._valueMin();break;case b.ui.keyCode.END:k=d._valueMax();break;case b.ui.keyCode.PAGE_UP:k=d._trimAlignValue(e+(d._valueMax()-d._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:k=d._trimAlignValue(e-(d._valueMax()-d._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(e===
d._valueMax())return;k=d._trimAlignValue(e+o);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(e===d._valueMin())return;k=d._trimAlignValue(e-o)}d._slide(h,a,k);return f}}).keyup(function(h){var f=b(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(h,f);d._change(h,f);b(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(d){var g=this.options,h,f,a,e,k;if(g.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();h=this._normValueFromMouse({x:d.pageX,y:d.pageY});f=this._valueMax()-this._valueMin()+1;e=this;this.handles.each(function(o){var q=Math.abs(h-e.values(o));if(f>q){f=q;a=b(this);k=o}});if(g.range===true&&this.values(1)===g.min){k+=1;a=b(this.handles[k])}if(this._start(d,
k)===false)return false;this._mouseSliding=true;e._handleIndex=k;a.addClass("ui-state-active").focus();g=a.offset();this._clickOffset=!b(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-g.left-a.width()/2,top:d.pageY-g.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(d,k,h);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(d){var g=this._normValueFromMouse({x:d.pageX,y:d.pageY});this._slide(d,this._handleIndex,g);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var g;
if(this.orientation==="horizontal"){g=this.elementSize.width;d=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{g=this.elementSize.height;d=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=d/g;if(g>1)g=1;if(g<0)g=0;if(this.orientation==="vertical")g=1-g;d=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+g*d)},_start:function(d,g){var h={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){h.value=
this.values(g);h.values=this.values()}return this._trigger("start",d,h)},_slide:function(d,g,h){var f;if(this.options.values&&this.options.values.length){f=this.values(g?0:1);if(this.options.values.length===2&&this.options.range===true&&(g===0&&h>f||g===1&&h<f))h=f;if(h!==this.values(g)){f=this.values();f[g]=h;d=this._trigger("slide",d,{handle:this.handles[g],value:h,values:f});this.values(g?0:1);d!==false&&this.values(g,h,true)}}else if(h!==this.value()){d=this._trigger("slide",d,{handle:this.handles[g],
value:h});d!==false&&this.value(h)}},_stop:function(d,g){var h={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){h.value=this.values(g);h.values=this.values()}this._trigger("stop",d,h)},_change:function(d,g){if(!this._keySliding&&!this._mouseSliding){var h={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){h.value=this.values(g);h.values=this.values()}this._trigger("change",d,h)}},value:function(d){if(arguments.length){this.options.value=
this._trimAlignValue(d);this._refreshValue();this._change(null,0)}return this._value()},values:function(d,g){var h,f,a;if(arguments.length>1){this.options.values[d]=this._trimAlignValue(g);this._refreshValue();this._change(null,d)}if(arguments.length)if(b.isArray(arguments[0])){h=this.options.values;f=arguments[0];for(a=0;a<h.length;a+=1){h[a]=this._trimAlignValue(f[a]);this._change(null,a)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(d):this.value();
else return this._values()},_setOption:function(d,g){var h,f=0;if(b.isArray(this.options.values))f=this.options.values.length;b.Widget.prototype._setOption.apply(this,arguments);switch(d){case "disabled":if(g){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(h=0;h<f;h+=1)this._change(null,h);this._animateOff=false}},_value:function(){var d=this.options.value;return d=this._trimAlignValue(d)},_values:function(d){var g,h;if(arguments.length){g=this.options.values[d];
return g=this._trimAlignValue(g)}else{g=this.options.values.slice();for(h=0;h<g.length;h+=1)g[h]=this._trimAlignValue(g[h]);return g}},_trimAlignValue:function(d){if(d<=this._valueMin())return this._valueMin();if(d>=this._valueMax())return this._valueMax();var g=this.options.step>0?this.options.step:1,h=(d-this._valueMin())%g;alignValue=d-h;if(Math.abs(h)*2>=g)alignValue+=h>0?g:-g;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(){var d=this.options.range,g=this.options,h=this,f=!this._animateOff?g.animate:false,a,e={},k,o,q,x;if(this.options.values&&this.options.values.length)this.handles.each(function(s){a=(h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())*100;e[h.orientation==="horizontal"?"left":"bottom"]=a+"%";b(this).stop(1,1)[f?"animate":"css"](e,g.animate);if(h.options.range===true)if(h.orientation==="horizontal"){if(s===0)h.range.stop(1,1)[f?"animate":"css"]({left:a+"%"},g.animate);
if(s===1)h.range[f?"animate":"css"]({width:a-k+"%"},{queue:false,duration:g.animate})}else{if(s===0)h.range.stop(1,1)[f?"animate":"css"]({bottom:a+"%"},g.animate);if(s===1)h.range[f?"animate":"css"]({height:a-k+"%"},{queue:false,duration:g.animate})}k=a});else{o=this.value();q=this._valueMin();x=this._valueMax();a=x!==q?(o-q)/(x-q)*100:0;e[h.orientation==="horizontal"?"left":"bottom"]=a+"%";this.handle.stop(1,1)[f?"animate":"css"](e,g.animate);if(d==="min"&&this.orientation==="horizontal")this.range.stop(1,
1)[f?"animate":"css"]({width:a+"%"},g.animate);if(d==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-a+"%"},{queue:false,duration:g.animate});if(d==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:a+"%"},g.animate);if(d==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-a+"%"},{queue:false,duration:g.animate})}}});b.extend(b.ui.slider,{version:"1.8.10"})})(jQuery);
(function(b,d){var g=0,h=0;b.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(f,a){if(f=="selected")this.options.collapsible&&a==this.options.selected||
this.select(a);else{this.options[f]=a;this._tabify()}},_tabId:function(f){return f.title&&f.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++g},_sanitizeSelector:function(f){return f.replace(/:/g,"\\:")},_cookie:function(){var f=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++h);return b.cookie.apply(null,[f].concat(b.makeArray(arguments)))},_ui:function(f,a){return{tab:f,panel:a,index:this.anchors.index(f)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var f=
b(this);f.html(f.data("label.tabs")).removeData("label.tabs")})},_tabify:function(f){function a(B,J){B.css("display","");!b.support.opacity&&J.opacity&&B[0].style.removeAttribute("filter")}var e=this,k=this.options,o=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(B,J){var P=b(J).attr("href"),S=P.split("#")[0],X;if(S&&(S===location.toString().split("#")[0]||
(X=b("base")[0])&&S===X.href)){P=J.hash;J.href=P}if(o.test(P))e.panels=e.panels.add(e.element.find(e._sanitizeSelector(P)));else if(P&&P!=="#"){b.data(J,"href.tabs",P);b.data(J,"load.tabs",P.replace(/#.*$/,""));P=e._tabId(J);J.href="#"+P;S=e.element.find("#"+P);if(!S.length){S=b(k.panelTemplate).attr("id",P).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(e.panels[B-1]||e.list);S.data("destroy.tabs",true)}e.panels=e.panels.add(S)}else k.disabled.push(B)});if(f){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(k.selected===d){location.hash&&this.anchors.each(function(B,J){if(J.hash==location.hash){k.selected=B;return false}});if(typeof k.selected!=="number"&&k.cookie)k.selected=parseInt(e._cookie(),10);if(typeof k.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)k.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));k.selected=k.selected||(this.lis.length?0:-1)}else if(k.selected===null)k.selected=-1;k.selected=k.selected>=0&&this.anchors[k.selected]||k.selected<0?k.selected:0;k.disabled=b.unique(k.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(B){return e.lis.index(B)}))).sort();b.inArray(k.selected,k.disabled)!=-1&&k.disabled.splice(b.inArray(k.selected,k.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(k.selected>=0&&this.anchors.length){e.element.find(e._sanitizeSelector(e.anchors[k.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(k.selected).addClass("ui-tabs-selected ui-state-active");e.element.queue("tabs",function(){e._trigger("show",null,e._ui(e.anchors[k.selected],e.element.find(e._sanitizeSelector(e.anchors[k.selected].hash))[0]))});this.load(k.selected)}b(window).bind("unload",function(){e.lis.add(e.anchors).unbind(".tabs");e.lis=e.anchors=e.panels=null})}else k.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[k.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");k.cookie&&this._cookie(k.selected,k.cookie);f=0;for(var q;q=this.lis[f];f++)b(q)[b.inArray(f,k.disabled)!=-1&&!b(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");k.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(k.event!=="mouseover"){var x=function(B,J){J.is(":not(.ui-state-disabled)")&&J.addClass("ui-state-"+B)};this.lis.bind("mouseover.tabs",
function(){x("hover",b(this))});this.lis.bind("mouseout.tabs",function(){b(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){x("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){b(this).closest("li").removeClass("ui-state-focus")})}var s,n;if(k.fx)if(b.isArray(k.fx)){s=k.fx[0];n=k.fx[1]}else s=n=k.fx;var v=n?function(B,J){b(B).closest("li").addClass("ui-tabs-selected ui-state-active");J.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",
function(){a(J,n);e._trigger("show",null,e._ui(B,J[0]))})}:function(B,J){b(B).closest("li").addClass("ui-tabs-selected ui-state-active");J.removeClass("ui-tabs-hide");e._trigger("show",null,e._ui(B,J[0]))},z=s?function(B,J){J.animate(s,s.duration||"normal",function(){e.lis.removeClass("ui-tabs-selected ui-state-active");J.addClass("ui-tabs-hide");a(J,s);e.element.dequeue("tabs")})}:function(B,J){e.lis.removeClass("ui-tabs-selected ui-state-active");J.addClass("ui-tabs-hide");e.element.dequeue("tabs")};
this.anchors.bind(k.event+".tabs",function(){var B=this,J=b(B).closest("li"),P=e.panels.filter(":not(.ui-tabs-hide)"),S=e.element.find(e._sanitizeSelector(B.hash));if(J.hasClass("ui-tabs-selected")&&!k.collapsible||J.hasClass("ui-state-disabled")||J.hasClass("ui-state-processing")||e.panels.filter(":animated").length||e._trigger("select",null,e._ui(this,S[0]))===false){this.blur();return false}k.selected=e.anchors.index(this);e.abort();if(k.collapsible)if(J.hasClass("ui-tabs-selected")){k.selected=
-1;k.cookie&&e._cookie(k.selected,k.cookie);e.element.queue("tabs",function(){z(B,P)}).dequeue("tabs");this.blur();return false}else if(!P.length){k.cookie&&e._cookie(k.selected,k.cookie);e.element.queue("tabs",function(){v(B,S)});e.load(e.anchors.index(this));this.blur();return false}k.cookie&&e._cookie(k.selected,k.cookie);if(S.length){P.length&&e.element.queue("tabs",function(){z(B,P)});e.element.queue("tabs",function(){v(B,S)});e.load(e.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(f){if(typeof f=="string")f=this.anchors.index(this.anchors.filter("[href$="+f+"]"));return f},destroy:function(){var f=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var a=
b.data(this,"href.tabs");if(a)this.href=a;var e=b(this).unbind(".tabs");b.each(["href","load","cache"],function(k,o){e.removeData(o+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});f.cookie&&this._cookie(null,f.cookie);return this},add:function(f,
a,e){if(e===d)e=this.anchors.length;var k=this,o=this.options;a=b(o.tabTemplate.replace(/#\{href\}/g,f).replace(/#\{label\}/g,a));f=!f.indexOf("#")?f.replace("#",""):this._tabId(b("a",a)[0]);a.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=k.element.find("#"+f);q.length||(q=b(o.panelTemplate).attr("id",f).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(e>=this.lis.length){a.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{a.insertBefore(this.lis[e]);
q.insertBefore(this.panels[e])}o.disabled=b.map(o.disabled,function(x){return x>=e?++x:x});this._tabify();if(this.anchors.length==1){o.selected=0;a.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){k._trigger("show",null,k._ui(k.anchors[0],k.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(f){f=this._getIndex(f);var a=this.options,e=this.lis.eq(f).remove(),k=this.panels.eq(f).remove();
if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(f+(f+1<this.anchors.length?1:-1));a.disabled=b.map(b.grep(a.disabled,function(o){return o!=f}),function(o){return o>=f?--o:o});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],k[0]));return this},enable:function(f){f=this._getIndex(f);var a=this.options;if(b.inArray(f,a.disabled)!=-1){this.lis.eq(f).removeClass("ui-state-disabled");a.disabled=b.grep(a.disabled,function(e){return e!=f});this._trigger("enable",null,
this._ui(this.anchors[f],this.panels[f]));return this}},disable:function(f){f=this._getIndex(f);var a=this.options;if(f!=a.selected){this.lis.eq(f).addClass("ui-state-disabled");a.disabled.push(f);a.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))}return this},select:function(f){f=this._getIndex(f);if(f==-1)if(this.options.collapsible&&this.options.selected!=-1)f=this.options.selected;else return this;this.anchors.eq(f).trigger(this.options.event+".tabs");return this},
load:function(f){f=this._getIndex(f);var a=this,e=this.options,k=this.anchors.eq(f)[0],o=b.data(k,"load.tabs");this.abort();if(!o||this.element.queue("tabs").length!==0&&b.data(k,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(f).addClass("ui-state-processing");if(e.spinner){var q=b("span",k);q.data("label.tabs",q.html()).html(e.spinner)}this.xhr=b.ajax(b.extend({},e.ajaxOptions,{url:o,success:function(x,s){a.element.find(a._sanitizeSelector(k.hash)).html(x);a._cleanup();e.cache&&b.data(k,
"cache.tabs",true);a._trigger("load",null,a._ui(a.anchors[f],a.panels[f]));try{e.ajaxOptions.success(x,s)}catch(n){}},error:function(x,s){a._cleanup();a._trigger("load",null,a._ui(a.anchors[f],a.panels[f]));try{e.ajaxOptions.error(x,s,f,k)}catch(n){}}}));a.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
url:function(f,a){this.anchors.eq(f).removeData("cache.tabs").data("load.tabs",a);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.8.10"});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(f,a){var e=this,k=this.options,o=e._rotate||(e._rotate=function(x){clearTimeout(e.rotation);e.rotation=setTimeout(function(){var s=k.selected;e.select(++s<e.anchors.length?s:0)},f);x&&x.stopPropagation()}),q=e._unrotate||(e._unrotate=!a?function(x){x.clientX&&
e.rotate(null)}:function(){t=k.selected;o()});if(f){this.element.bind("tabsshow",o);this.anchors.bind(k.event+".tabs",q);o()}else{clearTimeout(e.rotation);this.element.unbind("tabsshow",o);this.anchors.unbind(k.event+".tabs",q);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
