___fixumts1 = "*/*"; ___fixumts2 = "//";
(function(a,c){function g(d){var h=wa[d]={},k,m;d=d.split(/\s+/);k=0;for(m=d.length;k<m;k++)h[d[k]]=true;return h}function i(d,h,k){if(k===c&&d.nodeType===1){k="data-"+h.replace(pa,"-$1").toLowerCase();k=d.getAttribute(k);if(typeof k==="string"){try{k=k==="true"?true:k==="false"?false:k==="null"?null:j.isNumeric(k)?parseFloat(k):la.test(k)?j.parseJSON(k):k}catch(m){}j.data(d,h,k)}else k=c}return k}function e(d){for(var h in d)if(!(h==="data"&&j.isEmptyObject(d[h])))if(h!=="toJSON")return false;return true}
function b(d,h,k){var m=h+"defer",n=h+"queue",r=h+"mark",w=j._data(d,m);if(w&&(k==="queue"||!j._data(d,n))&&(k==="mark"||!j._data(d,r)))setTimeout(function(){if(!j._data(d,n)&&!j._data(d,r)){j.removeData(d,m,true);w.fire()}},0)}function f(){return false}function l(){return true}function p(d,h,k){h=h||0;if(j.isFunction(h))return j.grep(d,function(n,r){return!!h.call(n,r,n)===k});else if(h.nodeType)return j.grep(d,function(n){return n===h===k});else if(typeof h==="string"){var m=j.grep(d,function(n){return n.nodeType===
1});if(Db.test(h))return j.filter(h,m,!k);else h=j.filter(h,m)}return j.grep(d,function(n){return j.inArray(n,h)>=0===k})}function q(d){var h=eb.split("|");d=d.createDocumentFragment();if(d.createElement)for(;h.length;)d.createElement(h.pop());return d}function y(d,h){if(!(h.nodeType!==1||!j.hasData(d))){var k,m,n;m=j._data(d);var r=j._data(h,m),w=m.events;if(w){delete r.handle;r.events={};for(k in w){m=0;for(n=w[k].length;m<n;m++)j.event.add(h,k+(w[k][m].namespace?".":"")+w[k][m].namespace,w[k][m],
w[k][m].data)}}if(r.data)r.data=j.extend({},r.data)}}function u(d,h){var k;if(h.nodeType===1){h.clearAttributes&&h.clearAttributes();h.mergeAttributes&&h.mergeAttributes(d);k=h.nodeName.toLowerCase();if(k==="object")h.outerHTML=d.outerHTML;else if(k==="input"&&(d.type==="checkbox"||d.type==="radio")){if(d.checked)h.defaultChecked=h.checked=d.checked;if(h.value!==d.value)h.value=d.value}else if(k==="option")h.selected=d.defaultSelected;else if(k==="input"||k==="textarea")h.defaultValue=d.defaultValue;
h.removeAttribute(j.expando)}}function o(d){return typeof d.getElementsByTagName!=="undefined"?d.getElementsByTagName("*"):typeof d.querySelectorAll!=="undefined"?d.querySelectorAll("*"):[]}function v(d){if(d.type==="checkbox"||d.type==="radio")d.defaultChecked=d.checked}function z(d){var h=(d.nodeName||"").toLowerCase();if(h==="input")v(d);else h!=="script"&&typeof d.getElementsByTagName!=="undefined"&&j.grep(d.getElementsByTagName("input"),v)}function D(d,h){h.src?j.ajax({url:h.src,async:false,
dataType:"script"}):j.globalEval((h.text||h.textContent||h.innerHTML||"").replace(Eb,"/*$0*/"));h.parentNode&&h.parentNode.removeChild(h)}function I(d,h,k){var m=h==="width"?d.offsetWidth:d.offsetHeight,n=h==="width"?Fb:Gb,r=0,w=n.length;if(m>0){if(k!=="border")for(;r<w;r++){k||(m-=parseFloat(j.css(d,"padding"+n[r]))||0);if(k==="margin")m+=parseFloat(j.css(d,k+n[r]))||0;else m-=parseFloat(j.css(d,"border"+n[r]+"Width"))||0}return m+"px"}m=Ha(d,h,h);if(m<0||m==null)m=d.style[h]||0;m=parseFloat(m)||
0;if(k)for(;r<w;r++){m+=parseFloat(j.css(d,"padding"+n[r]))||0;if(k!=="padding")m+=parseFloat(j.css(d,"border"+n[r]+"Width"))||0;if(k==="margin")m+=parseFloat(j.css(d,k+n[r]))||0}return m+"px"}function R(d){return function(h,k){if(typeof h!=="string"){k=h;h="*"}if(j.isFunction(k))for(var m=h.toLowerCase().split(fb),n=0,r=m.length,w,B;n<r;n++){w=m[n];if(B=/^\+/.test(w))w=w.substr(1)||"*";w=d[w]=d[w]||[];w[B?"unshift":"push"](k)}}}function V(d,h,k,m,n,r){n=n||h.dataTypes[0];r=r||{};r[n]=true;n=d[n];
for(var w=0,B=n?n.length:0,C=d===Ya,H;w<B&&(C||!H);w++){H=n[w](h,k,m);if(typeof H==="string")if(!C||r[H])H=c;else{h.dataTypes.unshift(H);H=V(d,h,k,m,H,r)}}if((C||!H)&&!r["*"])H=V(d,h,k,m,"*",r);return H}function Z(d,h){var k,m,n=j.ajaxSettings.flatOptions||{};for(k in h)if(h[k]!==c)(n[k]?d:m||(m={}))[k]=h[k];m&&j.extend(true,d,m)}function ca(d,h,k,m){if(j.isArray(h))j.each(h,function(r,w){k||Hb.test(d)?m(d,w):ca(d+"["+(typeof w==="object"||j.isArray(w)?r:"")+"]",w,k,m)});else if(!k&&h!=null&&typeof h===
"object")for(var n in h)ca(d+"["+n+"]",h[n],k,m);else m(d,h)}function ea(){try{return new a.XMLHttpRequest}catch(d){}}function oa(){setTimeout(ma,0);return Ra=j.now()}function ma(){Ra=c}function fa(d,h){var k={};j.each(gb.concat.apply([],gb.slice(0,h)),function(){k[this]=d});return k}function na(d){if(!Za[d]){var h=S.body,k=j("<"+d+">").appendTo(h),m=k.css("display");k.remove();if(m==="none"||m===""){if(!ta){ta=S.createElement("iframe");ta.frameBorder=ta.width=ta.height=0}h.appendChild(ta);if(!Ia||
!ta.createElement){Ia=(ta.contentWindow||ta.contentDocument).document;Ia.write((S.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");Ia.close()}k=Ia.createElement(d);Ia.body.appendChild(k);m=j.css(k,"display");h.removeChild(ta)}Za[d]=m}return Za[d]}function Ba(d){return j.isWindow(d)?d:d.nodeType===9?d.defaultView||d.parentWindow:false}var S=a.document,Pa=a.navigator,Ca=a.location,j=function(){function d(){if(!h.isReady){try{S.documentElement.doScroll("left")}catch(A){setTimeout(d,1);
return}h.ready()}}var h=function(A,L){return new h.fn.init(A,L,n)},k=a.jQuery,m=a.$,n,r=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,w=/\S/,B=/^\s+/,C=/\s+$/,H=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Q=/^[\],:{}\s]*$/,K=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,T=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,N=/(?:^|:|,)(?:\s*\[)+/g,Y=/(webkit)[ \/]([\w.]+)/,da=/(opera)(?:.*version)?[ \/]([\w.]+)/,ja=/(msie) ([\w.]+)/,ga=/(mozilla)(?:.*? rv:([\w.]+))?/,xa=/-([a-z]|[0-9])/ig,qa=/^-ms-/,aa=function(A,
L){return(L+"").toUpperCase()},sa=Pa.userAgent,s,x,E=Object.prototype.toString,F=Object.prototype.hasOwnProperty,G=Array.prototype.push,J=Array.prototype.slice,U=String.prototype.trim,O=Array.prototype.indexOf,ba={};h.fn=h.prototype={constructor:h,init:function(A,L,P){var M;if(!A)return this;if(A.nodeType){this.context=this[0]=A;this.length=1;return this}if(A==="body"&&!L&&S.body){this.context=S;this[0]=S.body;this.selector=A;this.length=1;return this}if(typeof A==="string")if((M=A.charAt(0)==="<"&&
A.charAt(A.length-1)===">"&&A.length>=3?[null,A,null]:r.exec(A))&&(M[1]||!L))if(M[1]){P=(L=L instanceof h?L[0]:L)?L.ownerDocument||L:S;if(A=H.exec(A))if(h.isPlainObject(L)){A=[S.createElement(A[1])];h.fn.attr.call(A,L,true)}else A=[P.createElement(A[1])];else{A=h.buildFragment([M[1]],[P]);A=(A.cacheable?h.clone(A.fragment):A.fragment).childNodes}return h.merge(this,A)}else{if((L=S.getElementById(M[2]))&&L.parentNode){if(L.id!==M[2])return P.find(A);this.length=1;this[0]=L}this.context=S;this.selector=
A;return this}else return!L||L.jquery?(L||P).find(A):this.constructor(L).find(A);else if(h.isFunction(A))return P.ready(A);if(A.selector!==c){this.selector=A.selector;this.context=A.context}return h.makeArray(A,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return J.call(this,0)},get:function(A){return A==null?this.toArray():A<0?this[this.length+A]:this[A]},pushStack:function(A,L,P){var M=this.constructor();h.isArray(A)?G.apply(M,A):h.merge(M,A);
M.prevObject=this;M.context=this.context;if(L==="find")M.selector=this.selector+(this.selector?" ":"")+P;else if(L)M.selector=this.selector+"."+L+"("+P+")";return M},each:function(A,L){return h.each(this,A,L)},ready:function(A){h.bindReady();s.add(A);return this},eq:function(A){A=+A;return A===-1?this.slice(A):this.slice(A,A+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(J.apply(this,arguments),"slice",J.call(arguments).join(","))},
map:function(A){return this.pushStack(h.map(this,function(L,P){return A.call(L,P,L)}))},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:[].sort,splice:[].splice};h.fn.init.prototype=h.fn;h.extend=h.fn.extend=function(){var A,L,P,M,X,W=arguments[0]||{},ha=1,ka=arguments.length,Da=false;if(typeof W==="boolean"){Da=W;W=arguments[1]||{};ha=2}if(typeof W!=="object"&&!h.isFunction(W))W={};if(ka===ha){W=this;--ha}for(;ha<ka;ha++)if((A=arguments[ha])!=null)for(L in A){P=W[L];M=
A[L];if(W!==M)if(Da&&M&&(h.isPlainObject(M)||(X=h.isArray(M)))){if(X){X=false;P=P&&h.isArray(P)?P:[]}else P=P&&h.isPlainObject(P)?P:{};W[L]=h.extend(Da,P,M)}else if(M!==c)W[L]=M}return W};h.extend({noConflict:function(A){if(a.$===h)a.$=m;if(A&&a.jQuery===h)a.jQuery=k;return h},isReady:false,readyWait:1,holdReady:function(A){if(A)h.readyWait++;else h.ready(true)},ready:function(A){if(A===true&&!--h.readyWait||A!==true&&!h.isReady){if(!S.body)return setTimeout(h.ready,1);h.isReady=true;if(!(A!==true&&
--h.readyWait>0)){s.fireWith(S,[h]);h.fn.trigger&&h(S).trigger("ready").off("ready")}}},bindReady:function(){if(!s){s=h.Callbacks("once memory");if(S.readyState==="complete")return setTimeout(h.ready,1);if(S.addEventListener){S.addEventListener("DOMContentLoaded",x,false);a.addEventListener("load",h.ready,false)}else if(S.attachEvent){S.attachEvent("onreadystatechange",x);a.attachEvent("onload",h.ready);var A=false;try{A=a.frameElement==null}catch(L){}S.documentElement.doScroll&&A&&d()}}},isFunction:function(A){return h.type(A)===
"function"},isArray:Array.isArray||function(A){return h.type(A)==="array"},isWindow:function(A){return A&&typeof A==="object"&&"setInterval"in A},isNumeric:function(A){return!isNaN(parseFloat(A))&&isFinite(A)},type:function(A){return A==null?String(A):ba[E.call(A)]||"object"},isPlainObject:function(A){if(!A||h.type(A)!=="object"||A.nodeType||h.isWindow(A))return false;try{if(A.constructor&&!F.call(A,"constructor")&&!F.call(A.constructor.prototype,"isPrototypeOf"))return false}catch(L){return false}for(var P in A);
return P===c||F.call(A,P)},isEmptyObject:function(A){for(var L in A)return false;return true},error:function(A){throw Error(A);},parseJSON:function(A){if(typeof A!=="string"||!A)return null;A=h.trim(A);if(a.JSON&&a.JSON.parse)return a.JSON.parse(A);if(Q.test(A.replace(K,"@").replace(T,"]").replace(N,"")))return(new Function("return "+A))();h.error("Invalid JSON: "+A)},parseXML:function(A){var L,P;try{if(a.DOMParser){P=new DOMParser;L=P.parseFromString(A,"text/xml")}else{L=new ActiveXObject("Microsoft.XMLDOM");
L.async="false";L.loadXML(A)}}catch(M){L=c}if(!L||!L.documentElement||L.getElementsByTagName("parsererror").length)h.error("Invalid XML: "+A);return L},noop:function(){},globalEval:function(A){if(A&&w.test(A))(a.execScript||function(L){a.eval.call(a,L)})(A)},camelCase:function(A){return A.replace(qa,"ms-").replace(xa,aa)},nodeName:function(A,L){return A.nodeName&&A.nodeName.toUpperCase()===L.toUpperCase()},each:function(A,L,P){var M,X=0,W=A.length,ha=W===c||h.isFunction(A);if(P)if(ha)for(M in A){if(L.apply(A[M],
P)===false)break}else for(;X<W;){if(L.apply(A[X++],P)===false)break}else if(ha)for(M in A){if(L.call(A[M],M,A[M])===false)break}else for(;X<W;)if(L.call(A[X],X,A[X++])===false)break;return A},trim:U?function(A){return A==null?"":U.call(A)}:function(A){return A==null?"":A.toString().replace(B,"").replace(C,"")},makeArray:function(A,L){var P=L||[];if(A!=null){var M=h.type(A);A.length==null||M==="string"||M==="function"||M==="regexp"||h.isWindow(A)?G.call(P,A):h.merge(P,A)}return P},inArray:function(A,
L,P){var M;if(L){if(O)return O.call(L,A,P);M=L.length;for(P=P?P<0?Math.max(0,M+P):P:0;P<M;P++)if(P in L&&L[P]===A)return P}return-1},merge:function(A,L){var P=A.length,M=0;if(typeof L.length==="number")for(var X=L.length;M<X;M++)A[P++]=L[M];else for(;L[M]!==c;)A[P++]=L[M++];A.length=P;return A},grep:function(A,L,P){var M=[],X;P=!!P;for(var W=0,ha=A.length;W<ha;W++){X=!!L(A[W],W);P!==X&&M.push(A[W])}return M},map:function(A,L,P){var M,X,W=[],ha=0,ka=A.length;if(A instanceof h||ka!==c&&typeof ka===
"number"&&(ka>0&&A[0]&&A[ka-1]||ka===0||h.isArray(A)))for(;ha<ka;ha++){M=L(A[ha],ha,P);if(M!=null)W[W.length]=M}else for(X in A){M=L(A[X],X,P);if(M!=null)W[W.length]=M}return W.concat.apply([],W)},guid:1,proxy:function(A,L){if(typeof L==="string"){var P=A[L];L=A;A=P}if(!h.isFunction(A))return c;var M=J.call(arguments,2);P=function(){return A.apply(L,M.concat(J.call(arguments)))};P.guid=A.guid=A.guid||P.guid||h.guid++;return P},access:function(A,L,P,M,X,W){var ha=A.length;if(typeof L==="object"){for(var ka in L)h.access(A,
ka,L[ka],M,X,P);return A}if(P!==c){M=!W&&M&&h.isFunction(P);for(ka=0;ka<ha;ka++)X(A[ka],L,M?P.call(A[ka],ka,X(A[ka],L)):P,W);return A}return ha?X(A[0],L):c},now:function(){return(new Date).getTime()},uaMatch:function(A){A=A.toLowerCase();A=Y.exec(A)||da.exec(A)||ja.exec(A)||A.indexOf("compatible")<0&&ga.exec(A)||[];return{browser:A[1]||"",version:A[2]||"0"}},sub:function(){function A(P,M){return new A.fn.init(P,M)}h.extend(true,A,this);A.superclass=this;A.fn=A.prototype=this();A.fn.constructor=A;
A.sub=this.sub;A.fn.init=function(P,M){if(M&&M instanceof h&&!(M instanceof A))M=A(M);return h.fn.init.call(this,P,M,L)};A.fn.init.prototype=A.fn;var L=A(S);return A},browser:{}});h.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(A,L){ba["[object "+L+"]"]=L.toLowerCase()});sa=h.uaMatch(sa);if(sa.browser){h.browser[sa.browser]=true;h.browser.version=sa.version}if(h.browser.webkit)h.browser.safari=true;if(w.test("\u00a0")){B=/^[\s\xA0]+/;C=/[\s\xA0]+$/}n=h(S);if(S.addEventListener)x=
function(){S.removeEventListener("DOMContentLoaded",x,false);h.ready()};else if(S.attachEvent)x=function(){if(S.readyState==="complete"){S.detachEvent("onreadystatechange",x);h.ready()}};return h}(),wa={};j.Callbacks=function(d){d=d?wa[d]||g(d):{};var h=[],k=[],m,n,r,w,B,C=function(K){var T,N,Y,da;T=0;for(N=K.length;T<N;T++){Y=K[T];da=j.type(Y);if(da==="array")C(Y);else if(da==="function")if(!d.unique||!Q.has(Y))h.push(Y)}},H=function(K,T){T=T||[];m=!d.memory||[K,T];n=true;B=r||0;r=0;for(w=h.length;h&&
B<w;B++)if(h[B].apply(K,T)===false&&d.stopOnFalse){m=true;break}n=false;if(h)if(d.once)if(m===true)Q.disable();else h=[];else if(k&&k.length){m=k.shift();Q.fireWith(m[0],m[1])}},Q={add:function(){if(h){var K=h.length;C(arguments);if(n)w=h.length;else if(m&&m!==true){r=K;H(m[0],m[1])}}return this},remove:function(){if(h)for(var K=arguments,T=0,N=K.length;T<N;T++)for(var Y=0;Y<h.length;Y++)if(K[T]===h[Y]){if(n)if(Y<=w){w--;Y<=B&&B--}h.splice(Y--,1);if(d.unique)break}return this},has:function(K){if(h)for(var T=
0,N=h.length;T<N;T++)if(K===h[T])return true;return false},empty:function(){h=[];return this},disable:function(){h=k=m=c;return this},disabled:function(){return!h},lock:function(){k=c;if(!m||m===true)Q.disable();return this},locked:function(){return!k},fireWith:function(K,T){if(k)if(n)d.once||k.push([K,T]);else d.once&&m||H(K,T);return this},fire:function(){Q.fireWith(this,arguments);return this},fired:function(){return!!m}};return Q};var Ja=[].slice;j.extend({Deferred:function(d){var h=j.Callbacks("once memory"),
k=j.Callbacks("once memory"),m=j.Callbacks("memory"),n="pending",r={resolve:h,reject:k,notify:m},w={done:h.add,fail:k.add,progress:m.add,state:function(){return n},isResolved:h.fired,isRejected:k.fired,then:function(H,Q,K){B.done(H).fail(Q).progress(K);return this},always:function(){B.done.apply(B,arguments).fail.apply(B,arguments);return this},pipe:function(H,Q,K){return j.Deferred(function(T){j.each({done:[H,"resolve"],fail:[Q,"reject"],progress:[K,"notify"]},function(N,Y){var da=Y[0],ja=Y[1],ga;
if(j.isFunction(da))B[N](function(){if((ga=da.apply(this,arguments))&&j.isFunction(ga.promise))ga.promise().then(T.resolve,T.reject,T.notify);else T[ja+"With"](this===B?T:this,[ga])});else B[N](T[ja])})}).promise()},promise:function(H){if(H==null)H=w;else for(var Q in w)H[Q]=w[Q];return H}},B=w.promise({}),C;for(C in r){B[C]=r[C].fire;B[C+"With"]=r[C].fireWith}B.done(function(){n="resolved"},k.disable,m.lock).fail(function(){n="rejected"},h.disable,m.lock);d&&d.call(B,B);return B},when:function(d){function h(Q){return function(K){m[Q]=
arguments.length>1?Ja.call(arguments,0):K;--B||C.resolveWith(C,m)}}function k(Q){return function(K){w[Q]=arguments.length>1?Ja.call(arguments,0):K;C.notifyWith(H,w)}}var m=Ja.call(arguments,0),n=0,r=m.length,w=Array(r),B=r,C=r<=1&&d&&j.isFunction(d.promise)?d:j.Deferred(),H=C.promise();if(r>1){for(;n<r;n++)if(m[n]&&m[n].promise&&j.isFunction(m[n].promise))m[n].promise().then(h(n),C.reject,k(n));else--B;B||C.resolveWith(C,m)}else if(C!==d)C.resolveWith(C,r?[d]:[]);return H}});j.support=function(){var d,
h,k,m,n,r,w,B,C=S.createElement("div");C.setAttribute("className","t");C.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";h=C.getElementsByTagName("*");k=C.getElementsByTagName("a")[0];if(!h||!h.length||!k)return{};m=S.createElement("select");n=m.appendChild(S.createElement("option"));h=C.getElementsByTagName("input")[0];d={leadingWhitespace:C.firstChild.nodeType===3,tbody:!C.getElementsByTagName("tbody").length,htmlSerialize:!!C.getElementsByTagName("link").length,
style:/top/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:h.value==="on",optSelected:n.selected,getSetAttribute:C.className!=="t",enctype:!!S.createElement("form").enctype,html5Clone:S.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,
reliableMarginRight:true};h.checked=true;d.noCloneChecked=h.cloneNode(true).checked;m.disabled=true;d.optDisabled=!n.disabled;try{delete C.test}catch(H){d.deleteExpando=false}if(!C.addEventListener&&C.attachEvent&&C.fireEvent){C.attachEvent("onclick",function(){d.noCloneEvent=false});C.cloneNode(true).fireEvent("onclick")}h=S.createElement("input");h.value="t";h.setAttribute("type","radio");d.radioValue=h.value==="t";h.setAttribute("checked","checked");C.appendChild(h);k=S.createDocumentFragment();
k.appendChild(C.lastChild);d.checkClone=k.cloneNode(true).cloneNode(true).lastChild.checked;d.appendChecked=h.checked;k.removeChild(h);k.appendChild(C);C.innerHTML="";if(a.getComputedStyle){h=S.createElement("div");h.style.width="0";h.style.marginRight="0";C.style.width="2px";C.appendChild(h);d.reliableMarginRight=(parseInt((a.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0}if(C.attachEvent)for(w in{submit:1,change:1,focusin:1}){h="on"+w;B=h in C;if(!B){C.setAttribute(h,"return;");
B=typeof C[h]==="function"}d[w+"Bubbles"]=B}k.removeChild(C);k=m=n=h=C=h=null;j(function(){var Q,K,T,N,Y=S.getElementsByTagName("body")[0];if(Y){Q=S.createElement("div");Q.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";Y.insertBefore(Q,Y.firstChild);C=S.createElement("div");Q.appendChild(C);C.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";r=C.getElementsByTagName("td");B=r[0].offsetHeight===0;r[0].style.display=
"";r[1].style.display="none";d.reliableHiddenOffsets=B&&r[0].offsetHeight===0;C.innerHTML="";C.style.width=C.style.paddingLeft="1px";j.boxModel=d.boxModel=C.offsetWidth===2;if(typeof C.style.zoom!=="undefined"){C.style.display="inline";C.style.zoom=1;d.inlineBlockNeedsLayout=C.offsetWidth===2;C.style.display="";C.innerHTML="<div style='width:4px;'></div>";d.shrinkWrapBlocks=C.offsetWidth!==2}C.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;";
C.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";K=C.firstChild;T=K.firstChild;N={doesNotAddBorder:T.offsetTop!==5,doesAddBorderForTableAndCells:K.nextSibling.firstChild.firstChild.offsetTop===5};T.style.position="fixed";T.style.top="20px";N.fixedPosition=
T.offsetTop===20||T.offsetTop===15;T.style.position=T.style.top="";K.style.overflow="hidden";K.style.position="relative";N.subtractsBorderForOverflowNotVisible=T.offsetTop===-5;N.doesNotIncludeMarginInBodyOffset=Y.offsetTop!==1;Y.removeChild(Q);C=null;j.extend(d,N)}});return d}();var la=/^(?:\{.*\}|\[.*\])$/,pa=/([A-Z])/g;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(d){d=
d.nodeType?j.cache[d[j.expando]]:d[j.expando];return!!d&&!e(d)},data:function(d,h,k,m){if(j.acceptData(d)){var n;n=j.expando;var r=typeof h==="string",w=d.nodeType,B=w?j.cache:d,C=w?d[n]:d[n]&&n,H=h==="events";if(!((!C||!B[C]||!H&&!m&&!B[C].data)&&r&&k===c)){if(!C)if(w)d[n]=C=++j.uuid;else C=n;if(!B[C]){B[C]={};if(!w)B[C].toJSON=j.noop}if(typeof h==="object"||typeof h==="function")if(m)B[C]=j.extend(B[C],h);else B[C].data=j.extend(B[C].data,h);n=d=B[C];if(!m){if(!d.data)d.data={};d=d.data}if(k!==
c)d[j.camelCase(h)]=k;if(H&&!d[h])return n.events;if(r){k=d[h];if(k==null)k=d[j.camelCase(h)]}else k=d;return k}}},removeData:function(d,h,k){if(j.acceptData(d)){var m,n,r,w=j.expando,B=d.nodeType,C=B?j.cache:d,H=B?d[w]:w;if(C[H]){if(h)if(m=k?C[H]:C[H].data){if(!j.isArray(h))if(h in m)h=[h];else{h=j.camelCase(h);h=h in m?[h]:h.split(" ")}n=0;for(r=h.length;n<r;n++)delete m[h[n]];if(!(k?e:j.isEmptyObject)(m))return}if(!k){delete C[H].data;if(!e(C[H]))return}if(j.support.deleteExpando||!C.setInterval)delete C[H];
else C[H]=null;if(B)if(j.support.deleteExpando)delete d[w];else if(d.removeAttribute)d.removeAttribute(w);else d[w]=null}}},_data:function(d,h,k){return j.data(d,h,k,true)},acceptData:function(d){if(d.nodeName){var h=j.noData[d.nodeName.toLowerCase()];if(h)return!(h===true||d.getAttribute("classid")!==h)}return true}});j.fn.extend({data:function(d,h){var k,m,n,r=null;if(typeof d==="undefined"){if(this.length){r=j.data(this[0]);if(this[0].nodeType===1&&!j._data(this[0],"parsedAttrs")){m=this[0].attributes;
for(var w=0,B=m.length;w<B;w++){n=m[w].name;if(n.indexOf("data-")===0){n=j.camelCase(n.substring(5));i(this[0],n,r[n])}}j._data(this[0],"parsedAttrs",true)}}return r}else if(typeof d==="object")return this.each(function(){j.data(this,d)});k=d.split(".");k[1]=k[1]?"."+k[1]:"";if(h===c){r=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(r===c&&this.length){r=j.data(this[0],d);r=i(this[0],d,r)}return r===c&&k[1]?this.data(k[0]):r}else return this.each(function(){var C=j(this),H=[k[0],h];C.triggerHandler("setData"+
k[1]+"!",H);j.data(this,d,h);C.triggerHandler("changeData"+k[1]+"!",H)})},removeData:function(d){return this.each(function(){j.removeData(this,d)})}});j.extend({_mark:function(d,h){if(d){h=(h||"fx")+"mark";j._data(d,h,(j._data(d,h)||0)+1)}},_unmark:function(d,h,k){if(d!==true){k=h;h=d;d=false}if(h){k=k||"fx";var m=k+"mark";if(d=d?0:(j._data(h,m)||1)-1)j._data(h,m,d);else{j.removeData(h,m,true);b(h,k,"mark")}}},queue:function(d,h,k){var m;if(d){h=(h||"fx")+"queue";m=j._data(d,h);if(k)if(!m||j.isArray(k))m=
j._data(d,h,j.makeArray(k));else m.push(k);return m||[]}},dequeue:function(d,h){h=h||"fx";var k=j.queue(d,h),m=k.shift(),n={};if(m==="inprogress")m=k.shift();if(m){h==="fx"&&k.unshift("inprogress");j._data(d,h+".run",n);m.call(d,function(){j.dequeue(d,h)},n)}if(!k.length){j.removeData(d,h+"queue "+h+".run",true);b(d,h,"queue")}}});j.fn.extend({queue:function(d,h){if(typeof d!=="string"){h=d;d="fx"}if(h===c)return j.queue(this[0],d);return this.each(function(){var k=j.queue(this,d,h);d==="fx"&&k[0]!==
"inprogress"&&j.dequeue(this,d)})},dequeue:function(d){return this.each(function(){j.dequeue(this,d)})},delay:function(d,h){d=j.fx?j.fx.speeds[d]||d:d;return this.queue(h||"fx",function(k,m){var n=setTimeout(k,d);m.stop=function(){clearTimeout(n)}})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d){function h(){--r||k.resolveWith(m,[m])}if(typeof d!=="string")d=c;d=d||"fx";var k=j.Deferred(),m=this,n=m.length,r=1,w=d+"defer",B=d+"queue";d+="mark";for(var C;n--;)if(C=j.data(m[n],
w,c,true)||(j.data(m[n],B,c,true)||j.data(m[n],d,c,true))&&j.data(m[n],w,j.Callbacks("once memory"),true)){r++;C.add(h)}h();return k.promise()}});var ua=/[\n\t\r]/g,ia=/\s+/,Sa=/\r/g,Ta=/^(?:button|input)$/i,Ka=/^(?:button|input|object|select|textarea)$/i,ya=/^a(?:rea)?$/i,La=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,hb=j.support.getSetAttribute,va,ib,jb;j.fn.extend({attr:function(d,h){return j.access(this,d,h,true,
j.attr)},removeAttr:function(d){return this.each(function(){j.removeAttr(this,d)})},prop:function(d,h){return j.access(this,d,h,true,j.prop)},removeProp:function(d){d=j.propFix[d]||d;return this.each(function(){try{this[d]=c;delete this[d]}catch(h){}})},addClass:function(d){var h,k,m,n,r,w,B;if(j.isFunction(d))return this.each(function(C){j(this).addClass(d.call(this,C,this.className))});if(d&&typeof d==="string"){h=d.split(ia);k=0;for(m=this.length;k<m;k++){n=this[k];if(n.nodeType===1)if(!n.className&&
h.length===1)n.className=d;else{r=" "+n.className+" ";w=0;for(B=h.length;w<B;w++)~r.indexOf(" "+h[w]+" ")||(r+=h[w]+" ");n.className=j.trim(r)}}}return this},removeClass:function(d){var h,k,m,n,r,w,B;if(j.isFunction(d))return this.each(function(C){j(this).removeClass(d.call(this,C,this.className))});if(d&&typeof d==="string"||d===c){h=(d||"").split(ia);k=0;for(m=this.length;k<m;k++){n=this[k];if(n.nodeType===1&&n.className)if(d){r=(" "+n.className+" ").replace(ua," ");w=0;for(B=h.length;w<B;w++)r=
r.replace(" "+h[w]+" "," ");n.className=j.trim(r)}else n.className=""}}return this},toggleClass:function(d,h){var k=typeof d,m=typeof h==="boolean";if(j.isFunction(d))return this.each(function(n){j(this).toggleClass(d.call(this,n,this.className,h),h)});return this.each(function(){if(k==="string")for(var n,r=0,w=j(this),B=h,C=d.split(ia);n=C[r++];){B=m?B:!w.hasClass(n);w[B?"addClass":"removeClass"](n)}else if(k==="undefined"||k==="boolean"){this.className&&j._data(this,"__className__",this.className);
this.className=this.className||d===false?"":j._data(this,"__className__")||""}})},hasClass:function(d){d=" "+d+" ";for(var h=0,k=this.length;h<k;h++)if(this[h].nodeType===1&&(" "+this[h].className+" ").replace(ua," ").indexOf(d)>-1)return true;return false},val:function(d){var h,k,m,n=this[0];if(arguments.length){m=j.isFunction(d);return this.each(function(r){var w=j(this);if(this.nodeType===1){r=m?d.call(this,r,w.val()):d;if(r==null)r="";else if(typeof r==="number")r+="";else if(j.isArray(r))r=j.map(r,
function(B){return B==null?"":B+""});h=j.valHooks[this.nodeName.toLowerCase()]||j.valHooks[this.type];if(!h||!("set"in h)||h.set(this,r,"value")===c)this.value=r}})}else if(n){if((h=j.valHooks[n.nodeName.toLowerCase()]||j.valHooks[n.type])&&"get"in h&&(k=h.get(n,"value"))!==c)return k;k=n.value;return typeof k==="string"?k.replace(Sa,""):k==null?"":k}}});j.extend({valHooks:{option:{get:function(d){var h=d.attributes.value;return!h||h.specified?d.value:d.text}},select:{get:function(d){var h,k,m=d.selectedIndex,
n=[],r=d.options,w=d.type==="select-one";if(m<0)return null;d=w?m:0;for(k=w?m+1:r.length;d<k;d++){h=r[d];if(h.selected&&(j.support.optDisabled?!h.disabled:h.getAttribute("disabled")===null)&&(!h.parentNode.disabled||!j.nodeName(h.parentNode,"optgroup"))){h=j(h).val();if(w)return h;n.push(h)}}if(w&&!n.length&&r.length)return j(r[m]).val();return n},set:function(d,h){var k=j.makeArray(h);j(d).find("option").each(function(){this.selected=j.inArray(j(this).val(),k)>=0});if(!k.length)d.selectedIndex=-1;
return k}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(d,h,k,m){var n,r,w=d.nodeType;if(!(!d||w===3||w===8||w===2)){if(m&&h in j.attrFn)return j(d)[h](k);if(typeof d.getAttribute==="undefined")return j.prop(d,h,k);if(m=w!==1||!j.isXMLDoc(d)){h=h.toLowerCase();r=j.attrHooks[h]||(La.test(h)?ib:va)}if(k!==c)if(k===null)j.removeAttr(d,h);else if(r&&"set"in r&&m&&(n=r.set(d,k,h))!==c)return n;else{d.setAttribute(h,""+k);return k}else if(r&&
"get"in r&&m&&(n=r.get(d,h))!==null)return n;else{n=d.getAttribute(h);return n===null?c:n}}},removeAttr:function(d,h){var k,m,n,r,w=0;if(h&&d.nodeType===1){m=h.toLowerCase().split(ia);for(r=m.length;w<r;w++)if(n=m[w]){k=j.propFix[n]||n;j.attr(d,n,"");d.removeAttribute(hb?n:k);if(La.test(n)&&k in d)d[k]=false}}},attrHooks:{type:{set:function(d,h){if(Ta.test(d.nodeName)&&d.parentNode)j.error("type property can't be changed");else if(!j.support.radioValue&&h==="radio"&&j.nodeName(d,"input")){var k=d.value;
d.setAttribute("type",h);if(k)d.value=k;return h}}},value:{get:function(d,h){if(va&&j.nodeName(d,"button"))return va.get(d,h);return h in d?d.value:null},set:function(d,h,k){if(va&&j.nodeName(d,"button"))return va.set(d,h,k);d.value=h}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},
prop:function(d,h,k){var m,n,r=d.nodeType;if(!(!d||r===3||r===8||r===2)){if(r!==1||!j.isXMLDoc(d)){h=j.propFix[h]||h;n=j.propHooks[h]}return k!==c?n&&"set"in n&&(m=n.set(d,k,h))!==c?m:d[h]=k:n&&"get"in n&&(m=n.get(d,h))!==null?m:d[h]}},propHooks:{tabIndex:{get:function(d){var h=d.getAttributeNode("tabindex");return h&&h.specified?parseInt(h.value,10):Ka.test(d.nodeName)||ya.test(d.nodeName)&&d.href?0:c}}}});j.attrHooks.tabindex=j.propHooks.tabIndex;ib={get:function(d,h){var k,m=j.prop(d,h);return m===
true||typeof m!=="boolean"&&(k=d.getAttributeNode(h))&&k.nodeValue!==false?h.toLowerCase():c},set:function(d,h,k){if(h===false)j.removeAttr(d,k);else{h=j.propFix[k]||k;if(h in d)d[h]=true;d.setAttribute(k,k.toLowerCase())}return k}};if(!hb){jb={name:true,id:true};va=j.valHooks.button={get:function(d,h){var k;return(k=d.getAttributeNode(h))&&(jb[h]?k.nodeValue!=="":k.specified)?k.nodeValue:c},set:function(d,h,k){var m=d.getAttributeNode(k);if(!m){m=S.createAttribute(k);d.setAttributeNode(m)}return m.nodeValue=
h+""}};j.attrHooks.tabindex.set=va.set;j.each(["width","height"],function(d,h){j.attrHooks[h]=j.extend(j.attrHooks[h],{set:function(k,m){if(m===""){k.setAttribute(h,"auto");return m}}})});j.attrHooks.contenteditable={get:va.get,set:function(d,h,k){if(h==="")h="false";va.set(d,h,k)}}}j.support.hrefNormalized||j.each(["href","src","width","height"],function(d,h){j.attrHooks[h]=j.extend(j.attrHooks[h],{get:function(k){k=k.getAttribute(h,2);return k===null?c:k}})});if(!j.support.style)j.attrHooks.style=
{get:function(d){return d.style.cssText.toLowerCase()||c},set:function(d,h){return d.style.cssText=""+h}};if(!j.support.optSelected)j.propHooks.selected=j.extend(j.propHooks.selected,{get:function(){return null}});if(!j.support.enctype)j.propFix.enctype="encoding";j.support.checkOn||j.each(["radio","checkbox"],function(){j.valHooks[this]={get:function(d){return d.getAttribute("value")===null?"on":d.value}}});j.each(["radio","checkbox"],function(){j.valHooks[this]=j.extend(j.valHooks[this],{set:function(d,
h){if(j.isArray(h))return d.checked=j.inArray(j(d).val(),h)>=0}})});var $a=/^(?:textarea|input|select)$/i,kb=/^([^\.]*)?(?:\.(.+))?$/,Ib=/\bhover(\.\S+)?\b/,Jb=/^key/,Kb=/^(?:mouse|contextmenu)|click/,lb=/^(?:focusinfocus|focusoutblur)$/,Lb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Mb=function(d){if(d=Lb.exec(d)){d[1]=(d[1]||"").toLowerCase();d[3]=d[3]&&RegExp("(?:^|\\s)"+d[3]+"(?:\\s|$)")}return d},mb=function(d){return j.event.special.hover?d:d.replace(Ib,"mouseenter$1 mouseleave$1")};j.event={add:function(d,
h,k,m,n){var r,w,B,C,H,Q,K,T,N;if(!(d.nodeType===3||d.nodeType===8||!h||!k||!(r=j._data(d)))){if(k.handler){K=k;k=K.handler}if(!k.guid)k.guid=j.guid++;B=r.events;if(!B)r.events=B={};w=r.handle;if(!w){r.handle=w=function(Y){return typeof j!=="undefined"&&(!Y||j.event.triggered!==Y.type)?j.event.dispatch.apply(w.elem,arguments):c};w.elem=d}h=j.trim(mb(h)).split(" ");for(r=0;r<h.length;r++){C=kb.exec(h[r])||[];H=C[1];Q=(C[2]||"").split(".").sort();N=j.event.special[H]||{};H=(n?N.delegateType:N.bindType)||
H;N=j.event.special[H]||{};C=j.extend({type:H,origType:C[1],data:m,handler:k,guid:k.guid,selector:n,quick:Mb(n),namespace:Q.join(".")},K);T=B[H];if(!T){T=B[H]=[];T.delegateCount=0;if(!N.setup||N.setup.call(d,m,Q,w)===false)if(d.addEventListener)d.addEventListener(H,w,false);else d.attachEvent&&d.attachEvent("on"+H,w)}if(N.add){N.add.call(d,C);if(!C.handler.guid)C.handler.guid=k.guid}n?T.splice(T.delegateCount++,0,C):T.push(C);j.event.global[H]=true}d=null}},global:{},remove:function(d,h,k,m,n){var r=
j.hasData(d)&&j._data(d),w,B,C,H,Q,K,T,N,Y,da;if(r&&(T=r.events)){h=j.trim(mb(h||"")).split(" ");for(w=0;w<h.length;w++){B=kb.exec(h[w])||[];C=H=B[1];B=B[2];if(C){N=j.event.special[C]||{};C=(m?N.delegateType:N.bindType)||C;Y=T[C]||[];Q=Y.length;B=B?RegExp("(^|\\.)"+B.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(K=0;K<Y.length;K++){da=Y[K];if((n||H===da.origType)&&(!k||k.guid===da.guid)&&(!B||B.test(da.namespace))&&(!m||m===da.selector||m==="**"&&da.selector)){Y.splice(K--,1);da.selector&&
Y.delegateCount--;N.remove&&N.remove.call(d,da)}}if(Y.length===0&&Q!==Y.length){if(!N.teardown||N.teardown.call(d,B)===false)j.removeEvent(d,C,r.handle);delete T[C]}}else for(C in T)j.event.remove(d,C+h[w],k,m,true)}if(j.isEmptyObject(T)){if(h=r.handle)h.elem=null;j.removeData(d,["events","handle"],true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(d,h,k,m){if(!(k&&(k.nodeType===3||k.nodeType===8))){var n=d.type||d,r=[],w,B,C,H,Q;if(!lb.test(n+j.event.triggered)){if(n.indexOf("!")>=
0){n=n.slice(0,-1);w=true}if(n.indexOf(".")>=0){r=n.split(".");n=r.shift();r.sort()}if(!((!k||j.event.customEvent[n])&&!j.event.global[n])){d=typeof d==="object"?d[j.expando]?d:new j.Event(n,d):new j.Event(n);d.type=n;d.isTrigger=true;d.exclusive=w;d.namespace=r.join(".");d.namespace_re=d.namespace?RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;w=n.indexOf(":")<0?"on"+n:"";if(k){d.result=c;if(!d.target)d.target=k;h=h!=null?j.makeArray(h):[];h.unshift(d);C=j.event.special[n]||{};if(!(C.trigger&&
C.trigger.apply(k,h)===false)){Q=[[k,C.bindType||n]];if(!m&&!C.noBubble&&!j.isWindow(k)){H=C.delegateType||n;r=lb.test(H+n)?k:k.parentNode;for(B=null;r;r=r.parentNode){Q.push([r,H]);B=r}if(B&&B===k.ownerDocument)Q.push([B.defaultView||B.parentWindow||a,H])}for(B=0;B<Q.length&&!d.isPropagationStopped();B++){r=Q[B][0];d.type=Q[B][1];(H=(j._data(r,"events")||{})[d.type]&&j._data(r,"handle"))&&H.apply(r,h);(H=w&&r[w])&&j.acceptData(r)&&H.apply(r,h)===false&&d.preventDefault()}d.type=n;if(!m&&!d.isDefaultPrevented())if((!C._default||
C._default.apply(k.ownerDocument,h)===false)&&!(n==="click"&&j.nodeName(k,"a"))&&j.acceptData(k))if(w&&k[n]&&(n!=="focus"&&n!=="blur"||d.target.offsetWidth!==0)&&!j.isWindow(k)){if(B=k[w])k[w]=null;j.event.triggered=n;k[n]();j.event.triggered=c;if(B)k[w]=B}return d.result}}else{k=j.cache;for(B in k)k[B].events&&k[B].events[n]&&j.event.trigger(d,h,k[B].handle.elem,true)}}}}},dispatch:function(d){d=j.event.fix(d||a.event);var h=(j._data(this,"events")||{})[d.type]||[],k=h.delegateCount,m=[].slice.call(arguments,
0),n=!d.exclusive&&!d.namespace,r=[],w,B,C,H,Q,K,T;m[0]=d;d.delegateTarget=this;if(k&&!d.target.disabled&&!(d.button&&d.type==="click")){C=j(this);C.context=this.ownerDocument||this;for(B=d.target;B!=this;B=B.parentNode||this){Q={};K=[];C[0]=B;for(w=0;w<k;w++){H=h[w];T=H.selector;if(Q[T]===c){var N=Q,Y=T,da;if(H.quick){da=H.quick;var ja=B.attributes||{};da=(!da[1]||B.nodeName.toLowerCase()===da[1])&&(!da[2]||(ja.id||{}).value===da[2])&&(!da[3]||da[3].test((ja["class"]||{}).value))}else da=C.is(T);
N[Y]=da}Q[T]&&K.push(H)}K.length&&r.push({elem:B,matches:K})}}h.length>k&&r.push({elem:this,matches:h.slice(k)});for(w=0;w<r.length&&!d.isPropagationStopped();w++){k=r[w];d.currentTarget=k.elem;for(h=0;h<k.matches.length&&!d.isImmediatePropagationStopped();h++){H=k.matches[h];if(n||!d.namespace&&!H.namespace||d.namespace_re&&d.namespace_re.test(H.namespace)){d.data=H.data;d.handleObj=H;H=((j.event.special[H.origType]||{}).handle||H.handler).apply(k.elem,m);if(H!==c){d.result=H;if(H===false){d.preventDefault();
d.stopPropagation()}}}}}return d.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(d,h){if(d.which==null)d.which=h.charCode!=null?h.charCode:h.keyCode;return d}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter:function(d,h){var k,m,n=h.button,r=h.fromElement;if(d.pageX==null&&h.clientX!=null){k=d.target.ownerDocument||S;m=k.documentElement;k=k.body;d.pageX=h.clientX+(m&&m.scrollLeft||k&&k.scrollLeft||0)-(m&&m.clientLeft||k&&k.clientLeft||0);d.pageY=h.clientY+(m&&m.scrollTop||k&&k.scrollTop||0)-(m&&m.clientTop||k&&k.clientTop||0)}if(!d.relatedTarget&&r)d.relatedTarget=r===d.target?h.toElement:r;if(!d.which&&n!==c)d.which=n&1?1:n&2?3:n&4?2:0;return d}},fix:function(d){if(d[j.expando])return d;var h,
k,m=d,n=j.event.fixHooks[d.type]||{},r=n.props?this.props.concat(n.props):this.props;d=j.Event(m);for(h=r.length;h;){k=r[--h];d[k]=m[k]}if(!d.target)d.target=m.srcElement||S;if(d.target.nodeType===3)d.target=d.target.parentNode;if(d.metaKey===c)d.metaKey=d.ctrlKey;return n.filter?n.filter(d,m):d},special:{ready:{setup:j.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(d,h,k){if(j.isWindow(this))this.onbeforeunload=k},teardown:function(d,
h){if(this.onbeforeunload===h)this.onbeforeunload=null}}},simulate:function(d,h,k,m){d=j.extend(new j.Event,k,{type:d,isSimulated:true,originalEvent:{}});m?j.event.trigger(d,null,h):j.event.dispatch.call(h,d);d.isDefaultPrevented()&&k.preventDefault()}};j.event.handle=j.event.dispatch;j.removeEvent=S.removeEventListener?function(d,h,k){d.removeEventListener&&d.removeEventListener(h,k,false)}:function(d,h,k){d.detachEvent&&d.detachEvent("on"+h,k)};j.Event=function(d,h){if(!(this instanceof j.Event))return new j.Event(d,
h);if(d&&d.type){this.originalEvent=d;this.type=d.type;this.isDefaultPrevented=d.defaultPrevented||d.returnValue===false||d.getPreventDefault&&d.getPreventDefault()?l:f}else this.type=d;h&&j.extend(this,h);this.timeStamp=d&&d.timeStamp||j.now();this[j.expando]=true};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=l;var d=this.originalEvent;if(d)if(d.preventDefault)d.preventDefault();else d.returnValue=false},stopPropagation:function(){this.isPropagationStopped=l;var d=this.originalEvent;
if(d){d.stopPropagation&&d.stopPropagation();d.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l;this.stopPropagation()},isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f};j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,h){j.event.special[d]={delegateType:h,bindType:h,handle:function(k){var m=k.relatedTarget,n=k.handleObj,r;if(!m||m!==this&&!j.contains(this,m)){k.type=n.origType;r=n.handler.apply(this,arguments);
k.type=h}return r}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(){if(j.nodeName(this,"form"))return false;j.event.add(this,"click._submit keypress._submit",function(d){d=d.target;if((d=j.nodeName(d,"input")||j.nodeName(d,"button")?d.form:c)&&!d._submit_attached){j.event.add(d,"submit._submit",function(h){this.parentNode&&!h.isTrigger&&j.event.simulate("submit",this.parentNode,h,true)});d._submit_attached=true}})},teardown:function(){if(j.nodeName(this,"form"))return false;
j.event.remove(this,"._submit")}};if(!j.support.changeBubbles)j.event.special.change={setup:function(){if($a.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){j.event.add(this,"propertychange._change",function(d){if(d.originalEvent.propertyName==="checked")this._just_changed=true});j.event.add(this,"click._change",function(d){if(this._just_changed&&!d.isTrigger){this._just_changed=false;j.event.simulate("change",this,d,true)}})}return false}j.event.add(this,"beforeactivate._change",
function(d){d=d.target;if($a.test(d.nodeName)&&!d._change_attached){j.event.add(d,"change._change",function(h){this.parentNode&&!h.isSimulated&&!h.isTrigger&&j.event.simulate("change",this.parentNode,h,true)});d._change_attached=true}})},handle:function(d){var h=d.target;if(this!==h||d.isSimulated||d.isTrigger||h.type!=="radio"&&h.type!=="checkbox")return d.handleObj.handler.apply(this,arguments)},teardown:function(){j.event.remove(this,"._change");return $a.test(this.nodeName)}};j.support.focusinBubbles||
j.each({focus:"focusin",blur:"focusout"},function(d,h){var k=0,m=function(n){j.event.simulate(h,n.target,j.event.fix(n),true)};j.event.special[h]={setup:function(){k++===0&&S.addEventListener(d,m,true)},teardown:function(){--k===0&&S.removeEventListener(d,m,true)}}});j.fn.extend({on:function(d,h,k,m,n){var r,w;if(typeof d==="object"){if(typeof h!=="string"){k=h;h=c}for(w in d)this.on(w,h,k,d[w],n);return this}if(k==null&&m==null){m=h;k=h=c}else if(m==null)if(typeof h==="string"){m=k;k=c}else{m=k;
k=h;h=c}if(m===false)m=f;else if(!m)return this;if(n===1){r=m;m=function(B){j().off(B);return r.apply(this,arguments)};m.guid=r.guid||(r.guid=j.guid++)}return this.each(function(){j.event.add(this,d,m,k,h)})},one:function(d,h,k,m){return this.on.call(this,d,h,k,m,1)},off:function(d,h,k){if(d&&d.preventDefault&&d.handleObj){var m=d.handleObj;j(d.delegateTarget).off(m.namespace?m.type+"."+m.namespace:m.type,m.selector,m.handler);return this}if(typeof d==="object"){for(m in d)this.off(m,h,d[m]);return this}if(h===
false||typeof h==="function"){k=h;h=c}if(k===false)k=f;return this.each(function(){j.event.remove(this,d,k,h)})},bind:function(d,h,k){return this.on(d,null,h,k)},unbind:function(d,h){return this.off(d,null,h)},live:function(d,h,k){j(this.context).on(d,this.selector,h,k);return this},die:function(d,h){j(this.context).off(d,this.selector||"**",h);return this},delegate:function(d,h,k,m){return this.on(h,d,k,m)},undelegate:function(d,h,k){return arguments.length==1?this.off(d,"**"):this.off(h,d,k)},trigger:function(d,
h){return this.each(function(){j.event.trigger(d,h,this)})},triggerHandler:function(d,h){if(this[0])return j.event.trigger(d,h,this[0],true)},toggle:function(d){var h=arguments,k=d.guid||j.guid++,m=0,n=function(r){var w=(j._data(this,"lastToggle"+d.guid)||0)%m;j._data(this,"lastToggle"+d.guid,w+1);r.preventDefault();return h[w].apply(this,arguments)||false};for(n.guid=k;m<h.length;)h[m++].guid=k;return this.click(n)},hover:function(d,h){return this.mouseenter(d).mouseleave(h||d)}});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 contextmenu".split(" "),
function(d,h){j.fn[h]=function(k,m){if(m==null){m=k;k=null}return arguments.length>0?this.on(h,null,k,m):this.trigger(h)};if(j.attrFn)j.attrFn[h]=true;if(Jb.test(h))j.event.fixHooks[h]=j.event.keyHooks;if(Kb.test(h))j.event.fixHooks[h]=j.event.mouseHooks});(function(){function d(s,x,E,F,G,J){G=0;for(var U=F.length;G<U;G++){var O=F[G];if(O){var ba=false;for(O=O[s];O;){if(O[m]===E){ba=F[O.sizset];break}if(O.nodeType===1&&!J){O[m]=E;O.sizset=G}if(O.nodeName.toLowerCase()===x){ba=O;break}O=O[s]}F[G]=
ba}}}function h(s,x,E,F,G,J){G=0;for(var U=F.length;G<U;G++){var O=F[G];if(O){var ba=false;for(O=O[s];O;){if(O[m]===E){ba=F[O.sizset];break}if(O.nodeType===1){if(!J){O[m]=E;O.sizset=G}if(typeof x!=="string"){if(O===x){ba=true;break}}else if(K.filter(x,[O]).length>0){ba=O;break}}O=O[s]}F[G]=ba}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m="sizcache"+(Math.random()+"").replace(".",""),n=0,r=Object.prototype.toString,
w=false,B=true,C=/\\/g,H=/\r\n/g,Q=/\W/;[0,0].sort(function(){B=false;return 0});var K=function(s,x,E,F){E=E||[];var G=x=x||S;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!s||typeof s!=="string")return E;var J,U,O,ba,A,L=true,P=K.isXML(x),M=[],X=s;do{k.exec("");if(J=k.exec(X)){X=J[3];M.push(J[1]);if(J[2]){ba=J[3];break}}}while(J);if(M.length>1&&Y.exec(s))if(M.length===2&&N.relative[M[0]])U=sa(M[0]+M[1],x,F);else for(U=N.relative[M[0]]?[x]:K(M.shift(),x);M.length;){s=M.shift();if(N.relative[s])s+=
M.shift();U=sa(s,U,F)}else{if(!F&&M.length>1&&x.nodeType===9&&!P&&N.match.ID.test(M[0])&&!N.match.ID.test(M[M.length-1])){J=K.find(M.shift(),x,P);x=J.expr?K.filter(J.expr,J.set)[0]:J.set[0]}if(x){J=F?{expr:M.pop(),set:ga(F)}:K.find(M.pop(),M.length===1&&(M[0]==="~"||M[0]==="+")&&x.parentNode?x.parentNode:x,P);U=J.expr?K.filter(J.expr,J.set):J.set;if(M.length>0)O=ga(U);else L=false;for(;M.length;){J=A=M.pop();if(N.relative[A])J=M.pop();else A="";if(J==null)J=x;N.relative[A](O,J,P)}}else O=[]}O||(O=
U);O||K.error(A||s);if(r.call(O)==="[object Array]")if(L)if(x&&x.nodeType===1)for(s=0;O[s]!=null;s++){if(O[s]&&(O[s]===true||O[s].nodeType===1&&K.contains(x,O[s])))E.push(U[s])}else for(s=0;O[s]!=null;s++)O[s]&&O[s].nodeType===1&&E.push(U[s]);else E.push.apply(E,O);else ga(O,E);if(ba){K(ba,G,E,F);K.uniqueSort(E)}return E};K.uniqueSort=function(s){if(qa){w=B;s.sort(qa);if(w)for(var x=1;x<s.length;x++)s[x]===s[x-1]&&s.splice(x--,1)}return s};K.matches=function(s,x){return K(s,null,null,x)};K.matchesSelector=
function(s,x){return K(x,null,null,[s]).length>0};K.find=function(s,x,E){var F,G,J,U,O,ba;if(!s)return[];G=0;for(J=N.order.length;G<J;G++){O=N.order[G];if(U=N.leftMatch[O].exec(s)){ba=U[1];U.splice(1,1);if(ba.substr(ba.length-1)!=="\\"){U[1]=(U[1]||"").replace(C,"");F=N.find[O](U,x,E);if(F!=null){s=s.replace(N.match[O],"");break}}}}F||(F=typeof x.getElementsByTagName!=="undefined"?x.getElementsByTagName("*"):[]);return{set:F,expr:s}};K.filter=function(s,x,E,F){for(var G,J,U,O,ba,A,L,P,M=s,X=[],W=
x,ha=x&&x[0]&&K.isXML(x[0]);s&&x.length;){for(U in N.filter)if((G=N.leftMatch[U].exec(s))!=null&&G[2]){A=N.filter[U];ba=G[1];J=false;G.splice(1,1);if(ba.substr(ba.length-1)!=="\\"){if(W===X)X=[];if(N.preFilter[U])if(G=N.preFilter[U](G,W,E,X,F,ha)){if(G===true)continue}else J=O=true;if(G)for(L=0;(ba=W[L])!=null;L++)if(ba){O=A(ba,G,L,W);P=F^O;if(E&&O!=null)if(P)J=true;else W[L]=false;else if(P){X.push(ba);J=true}}if(O!==c){E||(W=X);s=s.replace(N.match[U],"");if(!J)return[];break}}}if(s===M)if(J==null)K.error(s);
else break;M=s}return W};K.error=function(s){throw Error("Syntax error, unrecognized expression: "+s);};var T=K.getText=function(s){var x,E;x=s.nodeType;var F="";if(x)if(x===1||x===9)if(typeof s.textContent==="string")return s.textContent;else if(typeof s.innerText==="string")return s.innerText.replace(H,"");else for(s=s.firstChild;s;s=s.nextSibling)F+=T(s);else{if(x===3||x===4)return s.nodeValue}else for(x=0;E=s[x];x++)if(E.nodeType!==8)F+=T(E);return F},N=K.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(s){return s.getAttribute("href")},type:function(s){return s.getAttribute("type")}},relative:{"+":function(s,x){var E=typeof x==="string",F=E&&!Q.test(x);E=E&&!F;if(F)x=x.toLowerCase();F=0;for(var G=s.length,J;F<G;F++)if(J=s[F]){for(;(J=J.previousSibling)&&J.nodeType!==1;);s[F]=E||J&&J.nodeName.toLowerCase()===x?J||false:J===x}E&&K.filter(x,s,true)},">":function(s,x){var E,F=typeof x==="string",G=0,J=s.length;if(F&&
!Q.test(x))for(x=x.toLowerCase();G<J;G++){if(E=s[G]){E=E.parentNode;s[G]=E.nodeName.toLowerCase()===x?E:false}}else{for(;G<J;G++)if(E=s[G])s[G]=F?E.parentNode:E.parentNode===x;F&&K.filter(x,s,true)}},"":function(s,x,E){var F,G=n++,J=h;if(typeof x==="string"&&!Q.test(x)){F=x=x.toLowerCase();J=d}J("parentNode",x,G,s,F,E)},"~":function(s,x,E){var F,G=n++,J=h;if(typeof x==="string"&&!Q.test(x)){F=x=x.toLowerCase();J=d}J("previousSibling",x,G,s,F,E)}},find:{ID:function(s,x,E){if(typeof x.getElementById!==
"undefined"&&!E)return(s=x.getElementById(s[1]))&&s.parentNode?[s]:[]},NAME:function(s,x){if(typeof x.getElementsByName!=="undefined"){for(var E=[],F=x.getElementsByName(s[1]),G=0,J=F.length;G<J;G++)F[G].getAttribute("name")===s[1]&&E.push(F[G]);return E.length===0?null:E}},TAG:function(s,x){if(typeof x.getElementsByTagName!=="undefined")return x.getElementsByTagName(s[1])}},preFilter:{CLASS:function(s,x,E,F,G,J){s=" "+s[1].replace(C,"")+" ";if(J)return s;J=0;for(var U;(U=x[J])!=null;J++)if(U)if(G^
(U.className&&(" "+U.className+" ").replace(/[\t\n\r]/g," ").indexOf(s)>=0))E||F.push(U);else if(E)x[J]=false;return false},ID:function(s){return s[1].replace(C,"")},TAG:function(s){return s[1].replace(C,"").toLowerCase()},CHILD:function(s){if(s[1]==="nth"){s[2]||K.error(s[0]);s[2]=s[2].replace(/^\+|\s*/g,"");var x=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(s[2]==="even"&&"2n"||s[2]==="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=x[1]+(x[2]||1)-0;s[3]=x[3]-0}else s[2]&&K.error(s[0]);s[0]=n++;return s},
ATTR:function(s,x,E,F,G,J){x=s[1]=s[1].replace(C,"");if(!J&&N.attrMap[x])s[1]=N.attrMap[x];s[4]=(s[4]||s[5]||"").replace(C,"");if(s[2]==="~=")s[4]=" "+s[4]+" ";return s},PSEUDO:function(s,x,E,F,G){if(s[1]==="not")if((k.exec(s[3])||"").length>1||/^\w/.test(s[3]))s[3]=K(s[3],null,null,x);else{s=K.filter(s[3],x,E,true^G);E||F.push.apply(F,s);return false}else if(N.match.POS.test(s[0])||N.match.CHILD.test(s[0]))return true;return s},POS:function(s){s.unshift(true);return s}},filters:{enabled:function(s){return s.disabled===
false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return!!s.firstChild},empty:function(s){return!s.firstChild},has:function(s,x,E){return!!K(E[3],s).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){var x=s.getAttribute("type"),E=s.type;return s.nodeName.toLowerCase()==="input"&&"text"===E&&(x===E||x===null)},radio:function(s){return s.nodeName.toLowerCase()===
"input"&&"radio"===s.type},checkbox:function(s){return s.nodeName.toLowerCase()==="input"&&"checkbox"===s.type},file:function(s){return s.nodeName.toLowerCase()==="input"&&"file"===s.type},password:function(s){return s.nodeName.toLowerCase()==="input"&&"password"===s.type},submit:function(s){var x=s.nodeName.toLowerCase();return(x==="input"||x==="button")&&"submit"===s.type},image:function(s){return s.nodeName.toLowerCase()==="input"&&"image"===s.type},reset:function(s){var x=s.nodeName.toLowerCase();
return(x==="input"||x==="button")&&"reset"===s.type},button:function(s){var x=s.nodeName.toLowerCase();return x==="input"&&"button"===s.type||x==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)},focus:function(s){return s===s.ownerDocument.activeElement}},setFilters:{first:function(s,x){return x===0},last:function(s,x,E,F){return x===F.length-1},even:function(s,x){return x%2===0},odd:function(s,x){return x%2===1},lt:function(s,x,E){return x<E[3]-0},gt:function(s,
x,E){return x>E[3]-0},nth:function(s,x,E){return E[3]-0===x},eq:function(s,x,E){return E[3]-0===x}},filter:{PSEUDO:function(s,x,E,F){var G=x[1],J=N.filters[G];if(J)return J(s,E,x,F);else if(G==="contains")return(s.textContent||s.innerText||T([s])||"").indexOf(x[3])>=0;else if(G==="not"){x=x[3];E=0;for(F=x.length;E<F;E++)if(x[E]===s)return false;return true}else K.error(G)},CHILD:function(s,x){var E,F,G,J,U,O;E=x[1];O=s;switch(E){case "only":case "first":for(;O=O.previousSibling;)if(O.nodeType===1)return false;
if(E==="first")return true;O=s;case "last":for(;O=O.nextSibling;)if(O.nodeType===1)return false;return true;case "nth":E=x[2];F=x[3];if(E===1&&F===0)return true;G=x[0];if((J=s.parentNode)&&(J[m]!==G||!s.nodeIndex)){U=0;for(O=J.firstChild;O;O=O.nextSibling)if(O.nodeType===1)O.nodeIndex=++U;J[m]=G}O=s.nodeIndex-F;return E===0?O===0:O%E===0&&O/E>=0}},ID:function(s,x){return s.nodeType===1&&s.getAttribute("id")===x},TAG:function(s,x){return x==="*"&&s.nodeType===1||!!s.nodeName&&s.nodeName.toLowerCase()===
x},CLASS:function(s,x){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(x)>-1},ATTR:function(s,x){var E=x[1];E=K.attr?K.attr(s,E):N.attrHandle[E]?N.attrHandle[E](s):s[E]!=null?s[E]:s.getAttribute(E);var F=E+"",G=x[2],J=x[4];return E==null?G==="!=":!G&&K.attr?E!=null:G==="="?F===J:G==="*="?F.indexOf(J)>=0:G==="~="?(" "+F+" ").indexOf(J)>=0:!J?F&&E!==false:G==="!="?F!==J:G==="^="?F.indexOf(J)===0:G==="$="?F.substr(F.length-J.length)===J:G==="|="?F===J||F.substr(0,J.length+1)===J+"-":false},
POS:function(s,x,E,F){var G=N.setFilters[x[2]];if(G)return G(s,E,x,F)}}},Y=N.match.POS,da=function(s,x){return"\\"+(x-0+1)},ja;for(ja in N.match){N.match[ja]=RegExp(N.match[ja].source+/(?![^\[]*\])(?![^\(]*\))/.source);N.leftMatch[ja]=RegExp(/(^(?:.|\r|\n)*?)/.source+N.match[ja].source.replace(/\\(\d+)/g,da))}var ga=function(s,x){s=Array.prototype.slice.call(s,0);if(x){x.push.apply(x,s);return x}return s};try{Array.prototype.slice.call(S.documentElement.childNodes,0)}catch(xa){ga=function(s,x){var E=
0,F=x||[];if(r.call(s)==="[object Array]")Array.prototype.push.apply(F,s);else if(typeof s.length==="number")for(var G=s.length;E<G;E++)F.push(s[E]);else for(;s[E];E++)F.push(s[E]);return F}}var qa,aa;if(S.documentElement.compareDocumentPosition)qa=function(s,x){if(s===x){w=true;return 0}if(!s.compareDocumentPosition||!x.compareDocumentPosition)return s.compareDocumentPosition?-1:1;return s.compareDocumentPosition(x)&4?-1:1};else{qa=function(s,x){if(s===x){w=true;return 0}else if(s.sourceIndex&&x.sourceIndex)return s.sourceIndex-
x.sourceIndex;var E,F,G=[],J=[];E=s.parentNode;F=x.parentNode;var U=E;if(E===F)return aa(s,x);else if(E){if(!F)return 1}else return-1;for(;U;){G.unshift(U);U=U.parentNode}for(U=F;U;){J.unshift(U);U=U.parentNode}E=G.length;F=J.length;for(U=0;U<E&&U<F;U++)if(G[U]!==J[U])return aa(G[U],J[U]);return U===E?aa(s,J[U],-1):aa(G[U],x,1)};aa=function(s,x,E){if(s===x)return E;for(s=s.nextSibling;s;){if(s===x)return-1;s=s.nextSibling}return 1}}(function(){var s=S.createElement("div"),x="script"+(new Date).getTime(),
E=S.documentElement;s.innerHTML="<a name='"+x+"'/>";E.insertBefore(s,E.firstChild);if(S.getElementById(x)){N.find.ID=function(F,G,J){if(typeof G.getElementById!=="undefined"&&!J)return(G=G.getElementById(F[1]))?G.id===F[1]||typeof G.getAttributeNode!=="undefined"&&G.getAttributeNode("id").nodeValue===F[1]?[G]:c:[]};N.filter.ID=function(F,G){var J=typeof F.getAttributeNode!=="undefined"&&F.getAttributeNode("id");return F.nodeType===1&&J&&J.nodeValue===G}}E.removeChild(s);E=s=null})();(function(){var s=
S.createElement("div");s.appendChild(S.createComment(""));if(s.getElementsByTagName("*").length>0)N.find.TAG=function(x,E){var F=E.getElementsByTagName(x[1]);if(x[1]==="*"){for(var G=[],J=0;F[J];J++)F[J].nodeType===1&&G.push(F[J]);F=G}return F};s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#")N.attrHandle.href=function(x){return x.getAttribute("href",2)};s=null})();S.querySelectorAll&&function(){var s=K,x=S.createElement("div");
x.innerHTML="<p class='TEST'></p>";if(!(x.querySelectorAll&&x.querySelectorAll(".TEST").length===0)){K=function(F,G,J,U){G=G||S;if(!U&&!K.isXML(G)){var O=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(F);if(O&&(G.nodeType===1||G.nodeType===9))if(O[1])return ga(G.getElementsByTagName(F),J);else if(O[2]&&N.find.CLASS&&G.getElementsByClassName)return ga(G.getElementsByClassName(O[2]),J);if(G.nodeType===9){if(F==="body"&&G.body)return ga([G.body],J);else if(O&&O[3]){var ba=G.getElementById(O[3]);if(ba&&ba.parentNode){if(ba.id===
O[3])return ga([ba],J)}else return ga([],J)}try{return ga(G.querySelectorAll(F),J)}catch(A){}}else if(G.nodeType===1&&G.nodeName.toLowerCase()!=="object"){O=G;var L=(ba=G.getAttribute("id"))||"__sizzle__",P=G.parentNode,M=/^\s*[+~]/.test(F);if(ba)L=L.replace(/'/g,"\\$&");else G.setAttribute("id",L);if(M&&P)G=G.parentNode;try{if(!M||P)return ga(G.querySelectorAll("[id='"+L+"'] "+F),J)}catch(X){}finally{ba||O.removeAttribute("id")}}}return s(F,G,J,U)};for(var E in s)K[E]=s[E];x=null}}();(function(){var s=
S.documentElement,x=s.matchesSelector||s.mozMatchesSelector||s.webkitMatchesSelector||s.msMatchesSelector;if(x){var E=!x.call(S.createElement("div"),"div"),F=false;try{x.call(S.documentElement,"[test!='']:sizzle")}catch(G){F=true}K.matchesSelector=function(J,U){U=U.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!K.isXML(J))try{if(F||!N.match.PSEUDO.test(U)&&!/!=/.test(U)){var O=x.call(J,U);if(O||!E||J.document&&J.document.nodeType!==11)return O}}catch(ba){}return K(U,null,null,[J]).length>0}}})();(function(){var s=
S.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){N.order.splice(1,0,"CLASS");N.find.CLASS=function(x,E,F){if(typeof E.getElementsByClassName!=="undefined"&&!F)return E.getElementsByClassName(x[1])};s=null}}})();K.contains=S.documentElement.contains?function(s,x){return s!==x&&(s.contains?s.contains(x):true)}:S.documentElement.compareDocumentPosition?
function(s,x){return!!(s.compareDocumentPosition(x)&16)}:function(){return false};K.isXML=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false};var sa=function(s,x,E){var F,G=[],J="";for(x=x.nodeType?[x]:x;F=N.match.PSEUDO.exec(s);){J+=F[0];s=s.replace(N.match.PSEUDO,"")}s=N.relative[s]?s+"*":s;F=0;for(var U=x.length;F<U;F++)K(s,x[F],G,E);return K.filter(J,G)};K.attr=j.attr;K.selectors.attrMap={};j.find=K;j.expr=K.selectors;j.expr[":"]=j.expr.filters;j.unique=K.uniqueSort;
j.text=K.getText;j.isXMLDoc=K.isXML;j.contains=K.contains})();var Nb=/Until$/,Ob=/^(?:parents|prevUntil|prevAll)/,Pb=/,/,Db=/^.[^:#\[\.,]*$/,Qb=Array.prototype.slice,nb=j.expr.match.POS,Rb={children:true,contents:true,next:true,prev:true};j.fn.extend({find:function(d){var h=this,k,m;if(typeof d!=="string")return j(d).filter(function(){k=0;for(m=h.length;k<m;k++)if(j.contains(h[k],this))return true});var n=this.pushStack("","find",d),r,w,B;k=0;for(m=this.length;k<m;k++){r=n.length;j.find(d,this[k],
n);if(k>0)for(w=r;w<n.length;w++)for(B=0;B<r;B++)if(n[B]===n[w]){n.splice(w--,1);break}}return n},has:function(d){var h=j(d);return this.filter(function(){for(var k=0,m=h.length;k<m;k++)if(j.contains(this,h[k]))return true})},not:function(d){return this.pushStack(p(this,d,false),"not",d)},filter:function(d){return this.pushStack(p(this,d,true),"filter",d)},is:function(d){return!!d&&(typeof d==="string"?nb.test(d)?j(d,this.context).index(this[0])>=0:j.filter(d,this).length>0:this.filter(d).length>
0)},closest:function(d,h){var k=[],m,n,r=this[0];if(j.isArray(d)){for(n=1;r&&r.ownerDocument&&r!==h;){for(m=0;m<d.length;m++)j(r).is(d[m])&&k.push({selector:d[m],elem:r,level:n});r=r.parentNode;n++}return k}var w=nb.test(d)||typeof d!=="string"?j(d,h||this.context):0;m=0;for(n=this.length;m<n;m++)for(r=this[m];r;)if(w?w.index(r)>-1:j.find.matchesSelector(r,d)){k.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===h||r.nodeType===11)break}k=k.length>1?j.unique(k):k;return this.pushStack(k,
"closest",d)},index:function(d){if(!d)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof d==="string")return j.inArray(this[0],j(d));return j.inArray(d.jquery?d[0]:d,this)},add:function(d,h){var k=typeof d==="string"?j(d,h):j.makeArray(d&&d.nodeType?[d]:d),m=j.merge(this.get(),k);return this.pushStack(!k[0]||!k[0].parentNode||k[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(d){return(d=d.parentNode)&&d.nodeType!==11?d:null},parents:function(d){return j.dir(d,"parentNode")},parentsUntil:function(d,h,k){return j.dir(d,"parentNode",k)},next:function(d){return j.nth(d,2,"nextSibling")},prev:function(d){return j.nth(d,2,"previousSibling")},nextAll:function(d){return j.dir(d,"nextSibling")},prevAll:function(d){return j.dir(d,"previousSibling")},nextUntil:function(d,h,k){return j.dir(d,"nextSibling",k)},prevUntil:function(d,h,k){return j.dir(d,"previousSibling",
k)},siblings:function(d){return j.sibling(d.parentNode.firstChild,d)},children:function(d){return j.sibling(d.firstChild)},contents:function(d){return j.nodeName(d,"iframe")?d.contentDocument||d.contentWindow.document:j.makeArray(d.childNodes)}},function(d,h){j.fn[d]=function(k,m){var n=j.map(this,h,k);Nb.test(d)||(m=k);if(m&&typeof m==="string")n=j.filter(m,n);n=this.length>1&&!Rb[d]?j.unique(n):n;if((this.length>1||Pb.test(m))&&Ob.test(d))n=n.reverse();return this.pushStack(n,d,Qb.call(arguments).join(","))}});
j.extend({filter:function(d,h,k){if(k)d=":not("+d+")";return h.length===1?j.find.matchesSelector(h[0],d)?[h[0]]:[]:j.find.matches(d,h)},dir:function(d,h,k){var m=[];for(d=d[h];d&&d.nodeType!==9&&(k===c||d.nodeType!==1||!j(d).is(k));){d.nodeType===1&&m.push(d);d=d[h]}return m},nth:function(d,h,k){h=h||1;for(var m=0;d;d=d[k])if(d.nodeType===1&&++m===h)break;return d},sibling:function(d,h){for(var k=[];d;d=d.nextSibling)d.nodeType===1&&d!==h&&k.push(d);return k}});var eb="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
Sb=/ jQuery\d+="(?:\d+|null)"/g,ab=/^\s+/,ob=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,pb=/<([\w:]+)/,Tb=/<tbody/i,Ub=/<|&#?\w+;/,Vb=/<(?:script|style)/i,Wb=/<(?:script|object|embed|option|style)/i,qb=RegExp("<(?:"+eb+")","i"),rb=/checked\s*(?:[^=]|=\s*.checked.)/i,Xb=/\/(java|ecma)script/i,Eb=/^\s*<!(?:\[CDATA\[|\-\-)/,ra={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,"",""]},sb=q(S);ra.optgroup=ra.option;ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead;ra.th=ra.td;if(!j.support.htmlSerialize)ra._default=[1,"div<div>","</div>"];j.fn.extend({text:function(d){if(j.isFunction(d))return this.each(function(h){var k=j(this);k.text(d.call(this,h,k.text()))});if(typeof d!=="object"&&d!==c)return this.empty().append((this[0]&&
this[0].ownerDocument||S).createTextNode(d));return j.text(this)},wrapAll:function(d){if(j.isFunction(d))return this.each(function(k){j(this).wrapAll(d.call(this,k))});if(this[0]){var h=j(d,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&h.insertBefore(this[0]);h.map(function(){for(var k=this;k.firstChild&&k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(d){if(j.isFunction(d))return this.each(function(h){j(this).wrapInner(d.call(this,h))});
return this.each(function(){var h=j(this),k=h.contents();k.length?k.wrapAll(d):h.append(d)})},wrap:function(d){var h=j.isFunction(d);return this.each(function(k){j(this).wrapAll(h?d.call(this,k):d)})},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(d){this.nodeType===1&&this.appendChild(d)})},prepend:function(){return this.domManip(arguments,true,function(d){this.nodeType===
1&&this.insertBefore(d,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(h){this.parentNode.insertBefore(h,this)});else if(arguments.length){var d=j.clean(arguments);d.push.apply(d,this.toArray());return this.pushStack(d,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(h){this.parentNode.insertBefore(h,this.nextSibling)});else if(arguments.length){var d=this.pushStack(this,
"after",arguments);d.push.apply(d,j.clean(arguments));return d}},remove:function(d,h){for(var k=0,m;(m=this[k])!=null;k++)if(!d||j.filter(d,[m]).length){if(!h&&m.nodeType===1){j.cleanData(m.getElementsByTagName("*"));j.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var d=0,h;(h=this[d])!=null;d++)for(h.nodeType===1&&j.cleanData(h.getElementsByTagName("*"));h.firstChild;)h.removeChild(h.firstChild);return this},clone:function(d,h){d=d==null?false:d;h=h==
null?d:h;return this.map(function(){return j.clone(this,d,h)})},html:function(d){if(d===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Sb,""):null;else if(typeof d==="string"&&!Vb.test(d)&&(j.support.leadingWhitespace||!ab.test(d))&&!ra[(pb.exec(d)||["",""])[1].toLowerCase()]){d=d.replace(ob,"<$1></$2>");try{for(var h=0,k=this.length;h<k;h++)if(this[h].nodeType===1){j.cleanData(this[h].getElementsByTagName("*"));this[h].innerHTML=d}}catch(m){this.empty().append(d)}}else j.isFunction(d)?
this.each(function(n){var r=j(this);r.html(d.call(this,n,r.html()))}):this.empty().append(d);return this},replaceWith:function(d){if(this[0]&&this[0].parentNode){if(j.isFunction(d))return this.each(function(h){var k=j(this),m=k.html();k.replaceWith(d.call(this,h,m))});if(typeof d!=="string")d=j(d).detach();return this.each(function(){var h=this.nextSibling,k=this.parentNode;j(this).remove();h?j(h).before(d):j(k).append(d)})}else return this.length?this.pushStack(j(j.isFunction(d)?d():d),"replaceWith",
d):this},detach:function(d){return this.remove(d,true)},domManip:function(d,h,k){var m,n,r,w=d[0],B=[];if(!j.support.checkClone&&arguments.length===3&&typeof w==="string"&&rb.test(w))return this.each(function(){j(this).domManip(d,h,k,true)});if(j.isFunction(w))return this.each(function(Q){var K=j(this);d[0]=w.call(this,Q,h?K.html():c);K.domManip(d,h,k)});if(this[0]){m=w&&w.parentNode;m=j.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===this.length?{fragment:m}:j.buildFragment(d,this,
B);r=m.fragment;if(n=r.childNodes.length===1?r=r.firstChild:r.firstChild){h=h&&j.nodeName(n,"tr");n=0;for(var C=this.length,H=C-1;n<C;n++)k.call(h?j.nodeName(this[n],"table")?this[n].getElementsByTagName("tbody")[0]||this[n].appendChild(this[n].ownerDocument.createElement("tbody")):this[n]:this[n],m.cacheable||C>1&&n<H?j.clone(r,true,true):r)}B.length&&j.each(B,D)}return this}});j.buildFragment=function(d,h,k){var m,n,r,w,B=d[0];if(h&&h[0])w=h[0].ownerDocument||h[0];w.createDocumentFragment||(w=S);
if(d.length===1&&typeof B==="string"&&B.length<512&&w===S&&B.charAt(0)==="<"&&!Wb.test(B)&&(j.support.checkClone||!rb.test(B))&&(j.support.html5Clone||!qb.test(B))){n=true;if((r=j.fragments[B])&&r!==1)m=r}if(!m){m=w.createDocumentFragment();j.clean(d,w,m,k)}if(n)j.fragments[B]=r?m:1;return{fragment:m,cacheable:n}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,h){j.fn[d]=function(k){var m=[];k=j(k);var n=
this.length===1&&this[0].parentNode;if(n&&n.nodeType===11&&n.childNodes.length===1&&k.length===1){k[h](this[0]);return this}else{n=0;for(var r=k.length;n<r;n++){var w=(n>0?this.clone(true):this).get();j(k[n])[h](w);m=m.concat(w)}return this.pushStack(m,d,k.selector)}}});j.extend({clone:function(d,h,k){var m,n,r;if(j.support.html5Clone||!qb.test("<"+d.nodeName))m=d.cloneNode(true);else{m=S.createElement("div");sb.appendChild(m);m.innerHTML=d.outerHTML;m=m.firstChild}var w=m;if((!j.support.noCloneEvent||
!j.support.noCloneChecked)&&(d.nodeType===1||d.nodeType===11)&&!j.isXMLDoc(d)){u(d,w);m=o(d);n=o(w);for(r=0;m[r];++r)n[r]&&u(m[r],n[r])}if(h){y(d,w);if(k){m=o(d);n=o(w);for(r=0;m[r];++r)y(m[r],n[r])}}return w},clean:function(d,h,k,m){h=h||S;if(typeof h.createElement==="undefined")h=h.ownerDocument||h[0]&&h[0].ownerDocument||S;for(var n=[],r,w=0,B;(B=d[w])!=null;w++){if(typeof B==="number")B+="";if(B){if(typeof B==="string")if(Ub.test(B)){B=B.replace(ob,"<$1></$2>");r=(pb.exec(B)||["",""])[1].toLowerCase();
var C=ra[r]||ra._default,H=C[0],Q=h.createElement("div");h===S?sb.appendChild(Q):q(h).appendChild(Q);for(Q.innerHTML=C[1]+B+C[2];H--;)Q=Q.lastChild;if(!j.support.tbody){H=Tb.test(B);C=r==="table"&&!H?Q.firstChild&&Q.firstChild.childNodes:C[1]==="<table>"&&!H?Q.childNodes:[];for(r=C.length-1;r>=0;--r)j.nodeName(C[r],"tbody")&&!C[r].childNodes.length&&C[r].parentNode.removeChild(C[r])}!j.support.leadingWhitespace&&ab.test(B)&&Q.insertBefore(h.createTextNode(ab.exec(B)[0]),Q.firstChild);B=Q.childNodes}else B=
h.createTextNode(B);var K;if(!j.support.appendChecked)if(B[0]&&typeof(K=B.length)==="number")for(r=0;r<K;r++)z(B[r]);else z(B);if(B.nodeType)n.push(B);else n=j.merge(n,B)}}if(k){d=function(T){return!T.type||Xb.test(T.type)};for(w=0;n[w];w++)if(m&&j.nodeName(n[w],"script")&&(!n[w].type||n[w].type.toLowerCase()==="text/javascript"))m.push(n[w].parentNode?n[w].parentNode.removeChild(n[w]):n[w]);else{if(n[w].nodeType===1){h=j.grep(n[w].getElementsByTagName("script"),d);n.splice.apply(n,[w+1,0].concat(h))}k.appendChild(n[w])}}return n},
cleanData:function(d){for(var h,k,m=j.cache,n=j.event.special,r=j.support.deleteExpando,w=0,B;(B=d[w])!=null;w++)if(!(B.nodeName&&j.noData[B.nodeName.toLowerCase()]))if(k=B[j.expando]){if((h=m[k])&&h.events){for(var C in h.events)n[C]?j.event.remove(B,C):j.removeEvent(B,C,h.handle);if(h.handle)h.handle.elem=null}if(r)delete B[j.expando];else B.removeAttribute&&B.removeAttribute(j.expando);delete m[k]}}});var bb=/alpha\([^)]*\)/i,Yb=/opacity=([^)]*)/,Zb=/([A-Z]|^ms)/g,tb=/^-?\d+(?:px)?$/i,$b=/^-?\d/,
ac=/^([\-+])=([\-+.\de]+)/,bc={position:"absolute",visibility:"hidden",display:"block"},Fb=["Left","Right"],Gb=["Top","Bottom"],Ha,ub,vb;j.fn.css=function(d,h){if(arguments.length===2&&h===c)return this;return j.access(this,d,h,true,function(k,m,n){return n!==c?j.style(k,m,n):j.css(k,m)})};j.extend({cssHooks:{opacity:{get:function(d,h){if(h){var k=Ha(d,"opacity","opacity");return k===""?"1":k}else return d.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,
widows:true,zIndex:true,zoom:true},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(d,h,k,m){if(!(!d||d.nodeType===3||d.nodeType===8||!d.style)){var n,r=j.camelCase(h),w=d.style,B=j.cssHooks[r];h=j.cssProps[r]||r;if(k!==c){m=typeof k;if(m==="string"&&(n=ac.exec(k))){k=+(n[1]+1)*+n[2]+parseFloat(j.css(d,h));m="number"}if(!(k==null||m==="number"&&isNaN(k))){if(m==="number"&&!j.cssNumber[r])k+="px";if(!B||!("set"in B)||(k=B.set(d,k))!==c)try{w[h]=k}catch(C){}}}else{if(B&&
"get"in B&&(n=B.get(d,false,m))!==c)return n;return w[h]}}},css:function(d,h,k){var m,n;h=j.camelCase(h);n=j.cssHooks[h];h=j.cssProps[h]||h;if(h==="cssFloat")h="float";if(n&&"get"in n&&(m=n.get(d,true,k))!==c)return m;else if(Ha)return Ha(d,h)},swap:function(d,h,k){var m={},n;for(n in h){m[n]=d.style[n];d.style[n]=h[n]}k.call(d);for(n in h)d.style[n]=m[n]}});j.curCSS=j.css;j.each(["height","width"],function(d,h){j.cssHooks[h]={get:function(k,m,n){var r;if(m){if(k.offsetWidth!==0)return I(k,h,n);else j.swap(k,
bc,function(){r=I(k,h,n)});return r}},set:function(k,m){if(tb.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!j.support.opacity)j.cssHooks.opacity={get:function(d,h){return Yb.test((h&&d.currentStyle?d.currentStyle.filter:d.style.filter)||"")?parseFloat(RegExp.$1)/100+"":h?"1":""},set:function(d,h){var k=d.style,m=d.currentStyle,n=j.isNumeric(h)?"alpha(opacity="+h*100+")":"",r=m&&m.filter||k.filter||"";k.zoom=1;if(h>=1&&j.trim(r.replace(bb,""))===""){k.removeAttribute("filter");
if(m&&!m.filter)return}k.filter=bb.test(r)?r.replace(bb,n):r+" "+n}};j(function(){if(!j.support.reliableMarginRight)j.cssHooks.marginRight={get:function(d,h){var k;j.swap(d,{display:"inline-block"},function(){k=h?Ha(d,"margin-right","marginRight"):d.style.marginRight});return k}}});if(S.defaultView&&S.defaultView.getComputedStyle)ub=function(d,h){var k,m,n;h=h.replace(Zb,"-$1").toLowerCase();if((m=d.ownerDocument.defaultView)&&(n=m.getComputedStyle(d,null))){k=n.getPropertyValue(h);if(k===""&&!j.contains(d.ownerDocument.documentElement,
d))k=j.style(d,h)}return k};if(S.documentElement.currentStyle)vb=function(d,h){var k,m,n=d.currentStyle&&d.currentStyle[h],r=d.style;if(n===null&&r&&(k=r[h]))n=k;if(!tb.test(n)&&$b.test(n)){k=r.left;if(m=d.runtimeStyle&&d.runtimeStyle.left)d.runtimeStyle.left=d.currentStyle.left;r.left=h==="fontSize"?"1em":n||0;n=r.pixelLeft+"px";r.left=k;if(m)d.runtimeStyle.left=m}return n===""?"auto":n};Ha=ub||vb;if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(d){var h=d.offsetHeight;return d.offsetWidth===
0&&h===0||!j.support.reliableHiddenOffsets&&(d.style&&d.style.display||j.css(d,"display"))==="none"};j.expr.filters.visible=function(d){return!j.expr.filters.hidden(d)}}var cc=/%20/g,Hb=/\[\]$/,wb=/\r?\n/g,dc=/#.*$/,ec=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,fc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,gc=/^(?:GET|HEAD)$/,hc=/^\/\//,xb=/\?/,ic=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,jc=/^(?:select|textarea)/i,fb=/\s+/,
kc=/([?&])_=[^&]*/,yb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,zb=j.fn.load,Ya={},Ab={},Ea,Fa,Bb=["*/"]+["*"];try{Ea=Ca.href}catch(sc){Ea=S.createElement("a");Ea.href="";Ea=Ea.href}Fa=yb.exec(Ea.toLowerCase())||[];j.fn.extend({load:function(d,h,k){if(typeof d!=="string"&&zb)return zb.apply(this,arguments);else if(!this.length)return this;var m=d.indexOf(" ");if(m>=0){var n=d.slice(m,d.length);d=d.slice(0,m)}m="GET";if(h)if(j.isFunction(h)){k=h;h=c}else if(typeof h==="object"){h=j.param(h,
j.ajaxSettings.traditional);m="POST"}var r=this;j.ajax({url:d,type:m,dataType:"html",data:h,complete:function(w,B,C){C=w.responseText;if(w.isResolved()){w.done(function(H){C=H});r.html(n?j("<div>").append(C.replace(ic,"")).find(n):C)}k&&r.each(k,[C,B,w])}});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||
jc.test(this.nodeName)||fc.test(this.type))}).map(function(d,h){var k=j(this).val();return k==null?null:j.isArray(k)?j.map(k,function(m){return{name:h.name,value:m.replace(wb,"\r\n")}}):{name:h.name,value:k.replace(wb,"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,h){j.fn[h]=function(k){return this.on(h,k)}});j.each(["get","post"],function(d,h){j[h]=function(k,m,n,r){if(j.isFunction(m)){r=r||n;n=m;m=c}return j.ajax({type:h,url:k,data:m,
success:n,dataType:r})}});j.extend({getScript:function(d,h){return j.get(d,c,h,"script")},getJSON:function(d,h,k){return j.get(d,h,k,"json")},ajaxSetup:function(d,h){if(h)Z(d,j.ajaxSettings);else{h=d;d=j.ajaxSettings}Z(d,h);return d},ajaxSettings:{url:Ea,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Fa[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","*":Bb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":true,"text json":j.parseJSON,"text xml":j.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:R(Ya),ajaxTransport:R(Ab),ajax:function(d,h){function k(x,E,F,G){if(ga!==2){ga=2;da&&clearTimeout(da);Y=c;T=G||"";aa.readyState=x>0?4:0;var J,U,O;G=E;if(F){var ba=m,A=aa,L=ba.contents,P=ba.dataTypes,M=ba.responseFields,
X,W,ha,ka;for(W in M)if(W in F)A[M[W]]=F[W];for(;P[0]==="*";){P.shift();if(X===c)X=ba.mimeType||A.getResponseHeader("content-type")}if(X)for(W in L)if(L[W]&&L[W].test(X)){P.unshift(W);break}if(P[0]in F)ha=P[0];else{for(W in F){if(!P[0]||ba.converters[W+" "+P[0]]){ha=W;break}ka||(ka=W)}ha=ha||ka}if(ha){ha!==P[0]&&P.unshift(ha);F=F[ha]}else F=void 0}else F=c;if(x>=200&&x<300||x===304){if(m.ifModified){if(X=aa.getResponseHeader("Last-Modified"))j.lastModified[H]=X;if(X=aa.getResponseHeader("Etag"))j.etag[H]=
X}if(x===304){G="notmodified";J=true}else try{X=m;if(X.dataFilter)F=X.dataFilter(F,X.dataType);var Da=X.dataTypes;W={};var Qa,Ua,lc=Da.length,Va,za=Da[0],Ma,cb,Aa,Ga,Na;for(Qa=1;Qa<lc;Qa++){if(Qa===1)for(Ua in X.converters)if(typeof Ua==="string")W[Ua.toLowerCase()]=X.converters[Ua];Ma=za;za=Da[Qa];if(za==="*")za=Ma;else if(Ma!=="*"&&Ma!==za){cb=Ma+" "+za;Aa=W[cb]||W["* "+za];if(!Aa){Na=c;for(Ga in W){Va=Ga.split(" ");if(Va[0]===Ma||Va[0]==="*")if(Na=W[Va[1]+" "+za]){Ga=W[Ga];if(Ga===true)Aa=Na;else if(Na===
true)Aa=Ga;break}}}Aa||Na||j.error("No conversion from "+cb.replace(" "," to "));if(Aa!==true)F=Aa?Aa(F):Na(Ga(F))}}U=F;G="success";J=true}catch(mc){G="parsererror";O=mc}}else{O=G;if(!G||x){G="error";if(x<0)x=0}}aa.status=x;aa.statusText=""+(E||G);J?w.resolveWith(n,[U,G,aa]):w.rejectWith(n,[aa,G,O]);aa.statusCode(C);C=c;if(xa)r.trigger("ajax"+(J?"Success":"Error"),[aa,m,J?U:O]);B.fireWith(n,[aa,G]);if(xa){r.trigger("ajaxComplete",[aa,m]);--j.active||j.event.trigger("ajaxStop")}}}if(typeof d==="object"){h=
d;d=c}h=h||{};var m=j.ajaxSetup({},h),n=m.context||m,r=n!==m&&(n.nodeType||n instanceof j)?j(n):j.event,w=j.Deferred(),B=j.Callbacks("once memory"),C=m.statusCode||{},H,Q={},K={},T,N,Y,da,ja,ga=0,xa,qa,aa={readyState:0,setRequestHeader:function(x,E){if(!ga){var F=x.toLowerCase();x=K[F]=K[F]||x;Q[x]=E}return this},getAllResponseHeaders:function(){return ga===2?T:null},getResponseHeader:function(x){var E;if(ga===2){if(!N)for(N={};E=ec.exec(T);)N[E[1].toLowerCase()]=E[2];E=N[x.toLowerCase()]}return E===
c?null:E},overrideMimeType:function(x){if(!ga)m.mimeType=x;return this},abort:function(x){x=x||"abort";Y&&Y.abort(x);k(0,x);return this}};w.promise(aa);aa.success=aa.done;aa.error=aa.fail;aa.complete=B.add;aa.statusCode=function(x){if(x){var E;if(ga<2)for(E in x)C[E]=[C[E],x[E]];else{E=x[aa.status];aa.then(E,E)}}return this};m.url=((d||m.url)+"").replace(dc,"").replace(hc,Fa[1]+___fixumts2);m.dataTypes=j.trim(m.dataType||"*").toLowerCase().split(fb);if(m.crossDomain==null){ja=yb.exec(m.url.toLowerCase());
m.crossDomain=!!(ja&&(ja[1]!=Fa[1]||ja[2]!=Fa[2]||(ja[3]||(ja[1]==="http:"?80:443))!=(Fa[3]||(Fa[1]==="http:"?80:443))))}if(m.data&&m.processData&&typeof m.data!=="string")m.data=j.param(m.data,m.traditional);V(Ya,m,h,aa);if(ga===2)return false;xa=m.global;m.type=m.type.toUpperCase();m.hasContent=!gc.test(m.type);xa&&j.active++===0&&j.event.trigger("ajaxStart");if(!m.hasContent){if(m.data){m.url+=(xb.test(m.url)?"&":"?")+m.data;delete m.data}H=m.url;if(m.cache===false){ja=j.now();var sa=m.url.replace(kc,
"$1_="+ja);m.url=sa+(sa===m.url?(xb.test(m.url)?"&":"?")+"_="+ja:"")}}if(m.data&&m.hasContent&&m.contentType!==false||h.contentType)aa.setRequestHeader("Content-Type",m.contentType);if(m.ifModified){H=H||m.url;j.lastModified[H]&&aa.setRequestHeader("If-Modified-Since",j.lastModified[H]);j.etag[H]&&aa.setRequestHeader("If-None-Match",j.etag[H])}aa.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+(m.dataTypes[0]!=="*"?", "+Bb+"; q=0.01":""):m.accepts["*"]);
for(qa in m.headers)aa.setRequestHeader(qa,m.headers[qa]);if(m.beforeSend&&(m.beforeSend.call(n,aa,m)===false||ga===2)){aa.abort();return false}for(qa in{success:1,error:1,complete:1})aa[qa](m[qa]);if(Y=V(Ab,m,h,aa)){aa.readyState=1;xa&&r.trigger("ajaxSend",[aa,m]);if(m.async&&m.timeout>0)da=setTimeout(function(){aa.abort("timeout")},m.timeout);try{ga=1;Y.send(Q,k)}catch(s){if(ga<2)k(-1,s);else throw s;}}else k(-1,"No Transport");return aa},param:function(d,h){var k=[],m=function(r,w){w=j.isFunction(w)?
w():w;k[k.length]=encodeURIComponent(r)+"="+encodeURIComponent(w)};if(h===c)h=j.ajaxSettings.traditional;if(j.isArray(d)||d.jquery&&!j.isPlainObject(d))j.each(d,function(){m(this.name,this.value)});else for(var n in d)ca(n,d[n],h,m);return k.join("&").replace(cc,"+")}});j.extend({active:0,lastModified:{},etag:{}});var nc=j.now(),Wa=/(\=)\?(&|$)|\?\?/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+"_"+nc++}});j.ajaxPrefilter("json jsonp",function(d,h,k){h=d.contentType===
"application/x-www-form-urlencoded"&&typeof d.data==="string";if(d.dataTypes[0]==="jsonp"||d.jsonp!==false&&(Wa.test(d.url)||h&&Wa.test(d.data))){var m,n=d.jsonpCallback=j.isFunction(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,r=a[n],w=d.url,B=d.data,C="$1"+n+"$2";if(d.jsonp!==false){w=w.replace(Wa,C);if(d.url===w){if(h)B=B.replace(Wa,C);if(d.data===B)w+=(/\?/.test(w)?"&":"?")+d.jsonp+"="+n}}d.url=w;d.data=B;a[n]=function(H){m=[H]};k.always(function(){a[n]=r;if(m&&j.isFunction(r))a[n](m[0])});
d.converters["script json"]=function(){m||j.error(n+" was not called");return m[0]};d.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(d){j.globalEval(d);return d}}});j.ajaxPrefilter("script",function(d){if(d.cache===c)d.cache=false;if(d.crossDomain){d.type="GET";d.global=false}});j.ajaxTransport("script",function(d){if(d.crossDomain){var h,
k=S.head||S.getElementsByTagName("head")[0]||S.documentElement;return{send:function(m,n){h=S.createElement("script");h.async="async";if(d.scriptCharset)h.charset=d.scriptCharset;h.src=d.url;h.onload=h.onreadystatechange=function(r,w){if(w||!h.readyState||/loaded|complete/.test(h.readyState)){h.onload=h.onreadystatechange=null;k&&h.parentNode&&k.removeChild(h);h=c;w||n(200,"success")}};k.insertBefore(h,k.firstChild)},abort:function(){if(h)h.onload(0,1)}}}});var db=a.ActiveXObject?function(){for(var d in Oa)Oa[d](0,
1)}:false,oc=0,Oa;j.ajaxSettings.xhr=a.ActiveXObject?function(){var d;if(!(d=!this.isLocal&&ea()))a:{try{d=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(h){}d=void 0}return d}:ea;(function(d){j.extend(j.support,{ajax:!!d,cors:!!d&&"withCredentials"in d})})(j.ajaxSettings.xhr());j.support.ajax&&j.ajaxTransport(function(d){if(!d.crossDomain||j.support.cors){var h;return{send:function(k,m){var n=d.xhr(),r,w;d.username?n.open(d.type,d.url,d.async,d.username,d.password):n.open(d.type,d.url,d.async);
if(d.xhrFields)for(w in d.xhrFields)n[w]=d.xhrFields[w];d.mimeType&&n.overrideMimeType&&n.overrideMimeType(d.mimeType);if(!d.crossDomain&&!k["X-Requested-With"])k["X-Requested-With"]="XMLHttpRequest";try{for(w in k)n.setRequestHeader(w,k[w])}catch(B){}n.send(d.hasContent&&d.data||null);h=function(C,H){var Q,K,T,N,Y;try{if(h&&(H||n.readyState===4)){h=c;if(r){n.onreadystatechange=j.noop;db&&delete Oa[r]}if(H)n.readyState!==4&&n.abort();else{Q=n.status;T=n.getAllResponseHeaders();N={};if((Y=n.responseXML)&&
Y.documentElement)N.xml=Y;N.text=n.responseText;try{K=n.statusText}catch(da){K=""}if(!Q&&d.isLocal&&!d.crossDomain)Q=N.text?200:404;else if(Q===1223)Q=204}}}catch(ja){H||m(-1,ja)}N&&m(Q,K,N,T)};if(!d.async||n.readyState===4)h();else{r=++oc;if(db){if(!Oa){Oa={};j(a).unload(db)}Oa[r]=h}n.onreadystatechange=h}},abort:function(){h&&h(0,1)}}}});var Za={},ta,Ia,pc=/^(?:toggle|show|hide)$/,qc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Xa,gb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width",
"marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Ra;j.fn.extend({show:function(d,h,k){if(d||d===0)return this.animate(fa("show",3),d,h,k);else{k=0;for(var m=this.length;k<m;k++){d=this[k];if(d.style){h=d.style.display;if(!j._data(d,"olddisplay")&&h==="none")h=d.style.display="";h===""&&j.css(d,"display")==="none"&&j._data(d,"olddisplay",na(d.nodeName))}}for(k=0;k<m;k++){d=this[k];if(d.style){h=d.style.display;if(h===""||h==="none")d.style.display=j._data(d,"olddisplay")||""}}return this}},
hide:function(d,h,k){if(d||d===0)return this.animate(fa("hide",3),d,h,k);else{k=0;for(var m=this.length;k<m;k++){d=this[k];if(d.style){h=j.css(d,"display");h!=="none"&&!j._data(d,"olddisplay")&&j._data(d,"olddisplay",h)}}for(k=0;k<m;k++)if(this[k].style)this[k].style.display="none";return this}},_toggle:j.fn.toggle,toggle:function(d,h,k){var m=typeof d==="boolean";if(j.isFunction(d)&&j.isFunction(h))this._toggle.apply(this,arguments);else d==null||m?this.each(function(){var n=m?d:j(this).is(":hidden");
j(this)[n?"show":"hide"]()}):this.animate(fa("toggle",3),d,h,k);return this},fadeTo:function(d,h,k,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:h},d,k,m)},animate:function(d,h,k,m){function n(){r.queue===false&&j._mark(this);var w=j.extend({},r),B=this.nodeType===1,C=B&&j(this).is(":hidden"),H,Q,K,T,N;w.animatedProperties={};for(K in d){H=j.camelCase(K);if(K!==H){d[H]=d[K];delete d[K]}Q=d[H];if(j.isArray(Q)){w.animatedProperties[H]=Q[1];Q=d[H]=Q[0]}else w.animatedProperties[H]=
w.specialEasing&&w.specialEasing[H]||w.easing||"swing";if(Q==="hide"&&C||Q==="show"&&!C)return w.complete.call(this);if(B&&(H==="height"||H==="width")){w.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||na(this.nodeName)==="inline")this.style.display="inline-block";else this.style.zoom=1}}if(w.overflow!=null)this.style.overflow="hidden";for(K in d){B=new j.fx(this,w,K);Q=
d[K];if(pc.test(Q))if(H=j._data(this,"toggle"+K)||(Q==="toggle"?C?"show":"hide":0)){j._data(this,"toggle"+K,H==="show"?"hide":"show");B[H]()}else B[Q]();else{H=qc.exec(Q);T=B.cur();if(H){Q=parseFloat(H[2]);N=H[3]||(j.cssNumber[K]?"":"px");if(N!=="px"){j.style(this,K,(Q||1)+N);T*=(Q||1)/B.cur();j.style(this,K,T+N)}if(H[1])Q=(H[1]==="-="?-1:1)*Q+T;B.custom(T,Q,N)}else B.custom(T,Q,"")}}return true}var r=j.speed(h,k,m);if(j.isEmptyObject(d))return this.each(r.complete,[false]);d=j.extend({},d);return r.queue===
false?this.each(n):this.queue(r.queue,n)},stop:function(d,h,k){if(typeof d!=="string"){k=h;h=d;d=c}if(h&&d!==false)this.queue(d||"fx",[]);return this.each(function(){function m(C,H,Q){H=H[Q];j.removeData(C,Q,true);H.stop(k)}var n,r=false,w=j.timers,B=j._data(this);k||j._unmark(true,this);if(d==null)for(n in B)B[n]&&B[n].stop&&n.indexOf(".run")===n.length-4&&m(this,B,n);else if(B[n=d+".run"]&&B[n].stop)m(this,B,n);for(n=w.length;n--;)if(w[n].elem===this&&(d==null||w[n].queue===d)){if(k)w[n](true);
else w[n].saveState();r=true;w.splice(n,1)}k&&r||j.dequeue(this,d)})}});j.each({slideDown:fa("show",1),slideUp:fa("hide",1),slideToggle:fa("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,h){j.fn[d]=function(k,m,n){return this.animate(h,k,m,n)}});j.extend({speed:function(d,h,k){var m=d&&typeof d==="object"?j.extend({},d):{complete:k||!k&&h||j.isFunction(d)&&d,duration:d,easing:k&&h||h&&!j.isFunction(h)&&h};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;if(m.queue==null||m.queue===true)m.queue="fx";m.old=m.complete;m.complete=function(n){j.isFunction(m.old)&&m.old.call(this);if(m.queue)j.dequeue(this,m.queue);else n!==false&&j._unmark(this)};return m},easing:{linear:function(d,h,k,m){return k+m*d},swing:function(d,h,k,m){return(-Math.cos(d*Math.PI)/2+0.5)*m+k}},timers:[],fx:function(d,h,k){this.options=h;this.elem=d;this.prop=k;h.orig=h.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 d,h=j.css(this.elem,this.prop);return isNaN(d=parseFloat(h))?!h||h==="auto"?0:h:d},custom:function(d,h,k){function m(w){return n.step(w)}var n=this,r=j.fx;this.startTime=Ra||oa();this.end=h;this.now=this.start=d;this.pos=this.state=0;
this.unit=k||this.unit||(j.cssNumber[this.prop]?"":"px");m.queue=this.options.queue;m.elem=this.elem;m.saveState=function(){n.options.hide&&j._data(n.elem,"fxshow"+n.prop)===c&&j._data(n.elem,"fxshow"+n.prop,n.start)};if(m()&&j.timers.push(m)&&!Xa)Xa=setInterval(r.tick,r.interval)},show:function(){var d=j._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=d||j.style(this.elem,this.prop);this.options.show=true;d!==c?this.custom(this.cur(),d):this.custom(this.prop==="width"||this.prop===
"height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j._data(this.elem,"fxshow"+this.prop)||j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(d){var h,k=Ra||oa(),m=true,n=this.elem,r=this.options;if(d||k>=r.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();r.animatedProperties[this.prop]=true;for(h in r.animatedProperties)if(r.animatedProperties[h]!==true)m=false;if(m){r.overflow!=null&&!j.support.shrinkWrapBlocks&&
j.each(["","X","Y"],function(w,B){n.style["overflow"+B]=r.overflow[w]});r.hide&&j(n).hide();if(r.hide||r.show)for(h in r.animatedProperties){j.style(n,h,r.orig[h]);j.removeData(n,"fxshow"+h,true);j.removeData(n,"toggle"+h,true)}if(d=r.complete){r.complete=false;d.call(n)}}return false}else{if(r.duration==Infinity)this.now=k;else{d=k-this.startTime;this.state=d/r.duration;this.pos=j.easing[r.animatedProperties[this.prop]](this.state,d,0,1,r.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};
j.extend(j.fx,{tick:function(){for(var d,h=j.timers,k=0;k<h.length;k++){d=h[k];!d()&&h[k]===d&&h.splice(k--,1)}h.length||j.fx.stop()},interval:13,stop:function(){clearInterval(Xa);Xa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(d){j.style(d.elem,"opacity",d.now)},_default:function(d){if(d.elem.style&&d.elem.style[d.prop]!=null)d.elem.style[d.prop]=d.now+d.unit;else d.elem[d.prop]=d.now}}});j.each(["width","height"],function(d,h){j.fx.step[h]=function(k){j.style(k.elem,h,Math.max(0,
k.now)+k.unit)}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(d){return j.grep(j.timers,function(h){return d===h.elem}).length};var rc=/^t(?:able|d|h)$/i,Cb=/^(?:body|html)$/i;j.fn.offset="getBoundingClientRect"in S.documentElement?function(d){var h=this[0],k;if(d)return this.each(function(w){j.offset.setOffset(this,d,w)});if(!h||!h.ownerDocument)return null;if(h===h.ownerDocument.body)return j.offset.bodyOffset(h);try{k=h.getBoundingClientRect()}catch(m){}var n=h.ownerDocument,r=n.documentElement;
if(!k||!j.contains(r,h))return k?{top:k.top,left:k.left}:{top:0,left:0};h=n.body;n=Ba(n);return{top:k.top+(n.pageYOffset||j.support.boxModel&&r.scrollTop||h.scrollTop)-(r.clientTop||h.clientTop||0),left:k.left+(n.pageXOffset||j.support.boxModel&&r.scrollLeft||h.scrollLeft)-(r.clientLeft||h.clientLeft||0)}}:function(d){var h=this[0];if(d)return this.each(function(H){j.offset.setOffset(this,d,H)});if(!h||!h.ownerDocument)return null;if(h===h.ownerDocument.body)return j.offset.bodyOffset(h);var k,m=
h.offsetParent,n=h.ownerDocument,r=n.documentElement,w=n.body;k=(n=n.defaultView)?n.getComputedStyle(h,null):h.currentStyle;for(var B=h.offsetTop,C=h.offsetLeft;(h=h.parentNode)&&h!==w&&h!==r;){if(j.support.fixedPosition&&k.position==="fixed")break;k=n?n.getComputedStyle(h,null):h.currentStyle;B-=h.scrollTop;C-=h.scrollLeft;if(h===m){B+=h.offsetTop;C+=h.offsetLeft;if(j.support.doesNotAddBorder&&!(j.support.doesAddBorderForTableAndCells&&rc.test(h.nodeName))){B+=parseFloat(k.borderTopWidth)||0;C+=
parseFloat(k.borderLeftWidth)||0}m=h.offsetParent}if(j.support.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"){B+=parseFloat(k.borderTopWidth)||0;C+=parseFloat(k.borderLeftWidth)||0}}if(k.position==="relative"||k.position==="static"){B+=w.offsetTop;C+=w.offsetLeft}if(j.support.fixedPosition&&k.position==="fixed"){B+=Math.max(r.scrollTop,w.scrollTop);C+=Math.max(r.scrollLeft,w.scrollLeft)}return{top:B,left:C}};j.offset={bodyOffset:function(d){var h=d.offsetTop,k=d.offsetLeft;if(j.support.doesNotIncludeMarginInBodyOffset){h+=
parseFloat(j.css(d,"marginTop"))||0;k+=parseFloat(j.css(d,"marginLeft"))||0}return{top:h,left:k}},setOffset:function(d,h,k){var m=j.css(d,"position");if(m==="static")d.style.position="relative";var n=j(d),r=n.offset(),w=j.css(d,"top"),B=j.css(d,"left"),C={},H={};if((m==="absolute"||m==="fixed")&&j.inArray("auto",[w,B])>-1){H=n.position();m=H.top;B=H.left}else{m=parseFloat(w)||0;B=parseFloat(B)||0}if(j.isFunction(h))h=h.call(d,k,r);if(h.top!=null)C.top=h.top-r.top+m;if(h.left!=null)C.left=h.left-r.left+
B;"using"in h?h.using.call(d,C):n.css(C)}};j.fn.extend({position:function(){if(!this[0])return null;var d=this[0],h=this.offsetParent(),k=this.offset(),m=Cb.test(h[0].nodeName)?{top:0,left:0}:h.offset();k.top-=parseFloat(j.css(d,"marginTop"))||0;k.left-=parseFloat(j.css(d,"marginLeft"))||0;m.top+=parseFloat(j.css(h[0],"borderTopWidth"))||0;m.left+=parseFloat(j.css(h[0],"borderLeftWidth"))||0;return{top:k.top-m.top,left:k.left-m.left}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent||
S.body;d&&!Cb.test(d.nodeName)&&j.css(d,"position")==="static";)d=d.offsetParent;return d})}});j.each(["Left","Top"],function(d,h){var k="scroll"+h;j.fn[k]=function(m){var n,r;if(m===c){n=this[0];if(!n)return null;return(r=Ba(n))?"pageXOffset"in r?r[d?"pageYOffset":"pageXOffset"]:j.support.boxModel&&r.document.documentElement[k]||r.document.body[k]:n[k]}return this.each(function(){if(r=Ba(this))r.scrollTo(!d?m:j(r).scrollLeft(),d?m:j(r).scrollTop());else this[k]=m})}});j.each(["Height","Width"],function(d,
h){var k=h.toLowerCase();j.fn["inner"+h]=function(){var m=this[0];return m?m.style?parseFloat(j.css(m,k,"padding")):this[k]():null};j.fn["outer"+h]=function(m){var n=this[0];return n?n.style?parseFloat(j.css(n,k,m?"margin":"border")):this[k]():null};j.fn[k]=function(m){var n=this[0];if(!n)return m==null?null:this;if(j.isFunction(m))return this.each(function(B){var C=j(this);C[k](m.call(this,B,C[k]()))});if(j.isWindow(n)){var r=n.document.documentElement["client"+h],w=n.document.body;return n.document.compatMode===
"CSS1Compat"&&r||w&&w["client"+h]||r}else if(n.nodeType===9)return Math.max(n.documentElement["client"+h],n.body["scroll"+h],n.documentElement["scroll"+h],n.body["offset"+h],n.documentElement["offset"+h]);else if(m===c){n=j.css(n,k);r=parseFloat(n);return j.isNumeric(r)?r:n}else return this.css(k,typeof m==="string"?m:m+"px")}});a.jQuery=a.$=j;typeof define==="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return j})})(window);
(function(a){a.fn.autogrow=function(c){return this.each(function(){new a.autogrow(this,c)})};a.autogrow=function(c,g){this.options=g||{};this.interval=this.dummy=null;this.line_height=this.options.lineHeight||parseInt(a(c).css("line-height"),10);this.min_height=this.options.minHeight||parseInt(a(c).css("min-height"),10);this.max_height=this.options.maxHeight||parseInt(a(c).css("max-height"),10);this.textarea=a(c);this.expand_tolerance=!isNaN(this.options.expandTolerance)&&this.options.expandTolerance>
0?this.options.expandTolerance:4;if(isNaN(this.line_height))this.line_height=0;this.init()};a.autogrow.fn=a.autogrow.prototype={autogrow:"1.2.3"};a.autogrow.fn.extend=a.autogrow.extend=a.extend;a.autogrow.fn.extend({init:function(){var c=this;this.textarea.css({overflow:"hidden",display:"block"});this.textarea.bind("focus",function(){c.startExpand()}).bind("blur",function(){c.stopExpand()});this.checkExpand()},startExpand:function(){var c=this;this.interval=window.setInterval(function(){c.checkExpand()},
400)},stopExpand:function(){clearInterval(this.interval)},checkExpand:function(){if(this.dummy==null){this.dummy=a("<div></div>");this.dummy.css({"font-size":this.textarea.css("font-size"),"font-family":this.textarea.css("font-family"),width:this.textarea.css("width"),"padding-top":this.textarea.css("padding-top"),"padding-right":this.textarea.css("padding-right"),"padding-bottom":this.textarea.css("padding-bottom"),"padding-left":this.textarea.css("padding-left"),"line-height":this.line_height+"px",
"overflow-x":"hidden",position:"absolute",top:0,left:-9999}).appendTo("body")}else this.dummy.show();var c=this.textarea.val().replace(/(<|>)/g,"");c=a.browser.msie?c.replace(/\n/g,"<BR/>new"):c.replace(/\n/g,"<br/>new");if(this.dummy.html()!=c){this.dummy.html(c);if(this.max_height>0&&this.dummy.height()+this.expand_tolerance*this.line_height>this.max_height){this.textarea.css("overflow-y","auto");this.textarea.height()<this.max_height&&this.textarea.animate({height:this.max_height+this.expand_tolerance*
this.line_height+"px"},100)}else{this.textarea.css("overflow-y","hidden");if(this.textarea.height()<this.dummy.height()+this.expand_tolerance*this.line_height||this.dummy.height()<this.textarea.height())this.dummy.height()<this.min_height?this.textarea.animate({height:this.min_height+this.expand_tolerance*this.line_height+"px"},100):this.textarea.animate({height:this.dummy.height()+this.expand_tolerance*this.line_height+"px"},100)}}this.dummy.hide()}})})(jQuery);
jQuery.cookie=function(a,c,g){if(arguments.length>1&&String(c)!=="[object Object]"){g=jQuery.extend({},g);if(c===null||c===undefined)g.expires=-1;if(typeof g.expires==="number"){var i=g.expires,e=g.expires=new Date;e.setDate(e.getDate()+i)}c=String(c);return document.cookie=[encodeURIComponent(a),"=",g.raw?c:encodeURIComponent(c),g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+g.domain:"",g.secure?"; secure":""].join("")}g=c||{};e=g.raw?function(b){return b}:
decodeURIComponent;return(i=RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?e(i[1]):null};
(function(a,c){function g(i){return!a(i).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.9",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}});a.fn.extend({_focus:a.fn.focus,focus:function(i,e){return typeof i==="number"?this.each(function(){var b=this;setTimeout(function(){a(b).focus();e&&e.call(b)},i)}):this._focus.apply(this,arguments)},scrollParent:function(){var i;i=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,
"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!i.length?a(document):i},zIndex:function(i){if(i!==c)return this.css("zIndex",i);if(this.length){i=a(this[0]);for(var e;i.length&&i[0]!==document;){e=i.css("position");
if(e==="absolute"||e==="relative"||e==="fixed"){e=parseInt(i.css("zIndex"),10);if(!isNaN(e)&&e!==0)return e}i=i.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(i){i.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(i,e){function b(q,y,u,o){a.each(f,function(){y-=parseFloat(a.curCSS(q,"padding"+this,true))||0;if(u)y-=parseFloat(a.curCSS(q,
"border"+this+"Width",true))||0;if(o)y-=parseFloat(a.curCSS(q,"margin"+this,true))||0});return y}var f=e==="Width"?["Left","Right"]:["Top","Bottom"],l=e.toLowerCase(),p={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+e]=function(q){if(q===c)return p["inner"+e].call(this);return this.each(function(){a(this).css(l,b(this,q)+"px")})};a.fn["outer"+e]=function(q,y){if(typeof q!=="number")return p["outer"+e].call(this,q);return this.each(function(){a(this).css(l,
b(this,q,true,y)+"px")})}});a.extend(a.expr[":"],{data:function(i,e,b){return!!a.data(i,b[3])},focusable:function(i){var e=i.nodeName.toLowerCase(),b=a.attr(i,"tabindex");if("area"===e){e=i.parentNode;b=e.name;if(!i.href||!b||e.nodeName.toLowerCase()!=="map")return false;i=a("img[usemap=#"+b+"]")[0];return!!i&&g(i)}return(/input|select|textarea|button|object/.test(e)?!i.disabled:"a"==e?i.href||!isNaN(b):!isNaN(b))&&g(i)},tabbable:function(i){var e=a.attr(i,"tabindex");return(isNaN(e)||e>=0)&&a(i).is(":focusable")}});
a(function(){var i=document.body,e=i.appendChild(e=document.createElement("div"));a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=e.offsetHeight===100;a.support.selectstart="onselectstart"in e;i.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(i,e,b){i=a.ui[i].prototype;for(var f in b){i.plugins[f]=i.plugins[f]||[];i.plugins[f].push([e,b[f]])}},call:function(i,e,b){if((e=i.plugins[e])&&i.element[0].parentNode)for(var f=0;f<e.length;f++)i.options[e[f][0]]&&
e[f][1].apply(i.element,b)}},contains:function(i,e){return document.compareDocumentPosition?i.compareDocumentPosition(e)&16:i!==e&&i.contains(e)},hasScroll:function(i,e){if(a(i).css("overflow")==="hidden")return false;e=e&&e==="left"?"scrollLeft":"scrollTop";var b=false;if(i[e]>0)return true;i[e]=1;b=i[e]>0;i[e]=0;return b},isOverAxis:function(i,e,b){return i>e&&i<e+b},isOver:function(i,e,b,f,l,p){return a.ui.isOverAxis(i,b,l)&&a.ui.isOverAxis(e,f,p)}})}})(jQuery);
(function(a,c){if(a.cleanData){var g=a.cleanData;a.cleanData=function(e){for(var b=0,f;(f=e[b])!=null;b++)a(f).triggerHandler("remove");g(e)}}else{var i=a.fn.remove;a.fn.remove=function(e,b){return this.each(function(){if(!b)if(!e||a.filter(e,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return i.call(a(this),e,b)})}}a.widget=function(e,b,f){var l=e.split(".")[0],p;e=e.split(".")[1];p=l+"-"+e;if(!f){f=b;b=a.Widget}a.expr[":"][p]=function(q){return!!a.data(q,
e)};a[l]=a[l]||{};a[l][e]=function(q,y){arguments.length&&this._createWidget(q,y)};b=new b;b.options=a.extend(true,{},b.options);a[l][e].prototype=a.extend(true,b,{namespace:l,widgetName:e,widgetEventPrefix:a[l][e].prototype.widgetEventPrefix||e,widgetBaseClass:p},f);a.widget.bridge(e,a[l][e])};a.widget.bridge=function(e,b){a.fn[e]=function(f){var l=typeof f==="string",p=Array.prototype.slice.call(arguments,1),q=this;f=!l&&p.length?a.extend.apply(null,[true,f].concat(p)):f;if(l&&f.charAt(0)==="_")return q;
l?this.each(function(){var y=a.data(this,e),u=y&&a.isFunction(y[f])?y[f].apply(y,p):y;if(u!==y&&u!==c){q=u;return false}}):this.each(function(){var y=a.data(this,e);y?y.option(f||{})._init():a.data(this,e,new b(f,this))});return q}};a.Widget=function(e,b){arguments.length&&this._createWidget(e,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(e,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,
this._getCreateOptions(),e);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.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(e,b){var f=e;if(arguments.length===0)return a.extend({},this.options);if(typeof e==="string"){if(b===c)return this.options[e];f={};f[e]=b}this._setOptions(f);return this},_setOptions:function(e){var b=this;a.each(e,function(f,l){b._setOption(f,l)});return this},_setOption:function(e,b){this.options[e]=b;if(e==="disabled")this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,b,f){var l=this.options[e];b=a.Event(b);b.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();f=f||{};if(b.originalEvent){e=a.event.props.length;for(var p;e;){p=a.event.props[--e];b[p]=b.originalEvent[p]}}this.element.trigger(b,f);return!(a.isFunction(l)&&l.call(this.element[0],b,f)===false||b.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(g){return c._mouseDown(g)}).bind("click."+this.widgetName,function(g){if(true===a.data(g.target,c.widgetName+".preventClickEvent")){a.removeData(g.target,c.widgetName+".preventClickEvent");g.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){c.originalEvent=
c.originalEvent||{};if(!c.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(c);this._mouseDownEvent=c;var g=this,i=c.which==1,e=typeof this.options.cancel=="string"?a(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!i||e||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=
this._mouseStart(c)!==false;if(!this._mouseStarted){c.preventDefault();return true}}this._mouseMoveDelegate=function(b){return g._mouseMove(b)};this._mouseUpDelegate=function(b){return g._mouseUp(b)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(a.browser.msie&&!(document.documentMode>=9)&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);
return c.preventDefault()}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;c.target==this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",
true);this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.ui=a.ui||{};var c=/left|center|right/,g=/top|center|bottom/,i=a.fn.position,e=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return i.apply(this,arguments);b=a.extend({},b);var f=a(b.of),l=f[0],p=(b.collision||"flip").split(" "),q=b.offset?b.offset.split(" "):[0,0],y,u,o;if(l.nodeType===9){y=f.width();u=f.height();o={top:0,left:0}}else if(l.setTimeout){y=f.width();u=f.height();o={top:f.scrollTop(),left:f.scrollLeft()}}else if(l.preventDefault){b.at="left top";y=u=0;o={top:b.of.pageY,
left:b.of.pageX}}else{y=f.outerWidth();u=f.outerHeight();o=f.offset()}a.each(["my","at"],function(){var v=(b[this]||"").split(" ");if(v.length===1)v=c.test(v[0])?v.concat(["center"]):g.test(v[0])?["center"].concat(v):["center","center"];v[0]=c.test(v[0])?v[0]:"center";v[1]=g.test(v[1])?v[1]:"center";b[this]=v});if(p.length===1)p[1]=p[0];q[0]=parseInt(q[0],10)||0;if(q.length===1)q[1]=q[0];q[1]=parseInt(q[1],10)||0;if(b.at[0]==="right")o.left+=y;else if(b.at[0]==="center")o.left+=y/2;if(b.at[1]==="bottom")o.top+=
u;else if(b.at[1]==="center")o.top+=u/2;o.left+=q[0];o.top+=q[1];return this.each(function(){var v=a(this),z=v.outerWidth(),D=v.outerHeight(),I=parseInt(a.curCSS(this,"marginLeft",true))||0,R=parseInt(a.curCSS(this,"marginTop",true))||0,V=z+I+(parseInt(a.curCSS(this,"marginRight",true))||0),Z=D+R+(parseInt(a.curCSS(this,"marginBottom",true))||0),ca=a.extend({},o),ea;if(b.my[0]==="right")ca.left-=z;else if(b.my[0]==="center")ca.left-=z/2;if(b.my[1]==="bottom")ca.top-=D;else if(b.my[1]==="center")ca.top-=
D/2;ca.left=Math.round(ca.left);ca.top=Math.round(ca.top);ea={left:ca.left-I,top:ca.top-R};a.each(["left","top"],function(oa,ma){a.ui.position[p[oa]]&&a.ui.position[p[oa]][ma](ca,{targetWidth:y,targetHeight:u,elemWidth:z,elemHeight:D,collisionPosition:ea,collisionWidth:V,collisionHeight:Z,offset:q,my:b.my,at:b.at})});a.fn.bgiframe&&v.bgiframe();v.offset(a.extend(ca,{using:b.using}))})};a.ui.position={fit:{left:function(b,f){var l=a(window);l=f.collisionPosition.left+f.collisionWidth-l.width()-l.scrollLeft();
b.left=l>0?b.left-l:Math.max(b.left-f.collisionPosition.left,b.left)},top:function(b,f){var l=a(window);l=f.collisionPosition.top+f.collisionHeight-l.height()-l.scrollTop();b.top=l>0?b.top-l:Math.max(b.top-f.collisionPosition.top,b.top)}},flip:{left:function(b,f){if(f.at[0]!=="center"){var l=a(window);l=f.collisionPosition.left+f.collisionWidth-l.width()-l.scrollLeft();var p=f.my[0]==="left"?-f.elemWidth:f.my[0]==="right"?f.elemWidth:0,q=f.at[0]==="left"?f.targetWidth:-f.targetWidth,y=-2*f.offset[0];
b.left+=f.collisionPosition.left<0?p+q+y:l>0?p+q+y:0}},top:function(b,f){if(f.at[1]!=="center"){var l=a(window);l=f.collisionPosition.top+f.collisionHeight-l.height()-l.scrollTop();var p=f.my[1]==="top"?-f.elemHeight:f.my[1]==="bottom"?f.elemHeight:0,q=f.at[1]==="top"?f.targetHeight:-f.targetHeight,y=-2*f.offset[1];b.top+=f.collisionPosition.top<0?p+q+y:l>0?p+q+y:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(b,f){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var l=
a(b),p=l.offset(),q=parseInt(a.curCSS(b,"top",true),10)||0,y=parseInt(a.curCSS(b,"left",true),10)||0;p={top:f.top-p.top+q,left:f.left-p.left+y};"using"in f?f.using.call(b,p):l.css(p)};a.fn.offset=function(b){var f=this[0];if(!f||!f.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return e.call(this)}}})(jQuery);
(function(a){a.widget("ui.draggable",a.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(c){var g=
this.options;if(this.helper||g.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var g=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.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};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);g.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,g){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!g){g=this._uiHash();if(this._trigger("drag",c,g)===false){this._mouseUp({});return false}this.position=g.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";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var g=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)g=a.ui.ddmanager.drop(this,c);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||a.isFunction(this.options.revert)&&
this.options.revert.call(this.element,g)){var i=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",c)!==false&&i._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var g=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
c.target)g=true});return g},_createHelper:function(c){var g=this.options;c=a.isFunction(g.helper)?a(g.helper.apply(this.element[0],[c])):g.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(g.appendTo=="parent"?this.element[0].parentNode:g.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.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 c=this.options;if(c.containment==
"parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[(c.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(c.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:a(window).scrollLeft())+a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c.containment=="document"?
0:a(window).scrollTop())+(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var g=a(c.containment)[0];if(g){c=a(c.containment).offset();var i=a(g).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(g).css("borderLeftWidth"),10)||0)+(parseInt(a(g).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(g).css("borderTopWidth"),
10)||0)+(parseInt(a(g).css("paddingTop"),10)||0)-this.margins.top,c.left+(i?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-(parseInt(a(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(i?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-(parseInt(a(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==
Array)this.containment=c.containment},_convertPositionTo:function(c,g){if(!g)g=this.position;c=c=="absolute"?1:-1;var i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(i[0].tagName);return{top:g.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
e?0:i.scrollTop())*c),left:g.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:i.scrollLeft())*c)}},_generatePosition:function(c){var g=this.options,i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(i[0].tagName),b=c.pageX,f=c.pageY;
if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])f=this.containment[3]+this.offset.click.top}if(g.grid){f=this.originalPageY+Math.round((f-this.originalPageY)/
g.grid[1])*g.grid[1];f=this.containment?!(f-this.offset.click.top<this.containment[1]||f-this.offset.click.top>this.containment[3])?f:!(f-this.offset.click.top<this.containment[1])?f-g.grid[1]:f+g.grid[1]:f;b=this.originalPageX+Math.round((b-this.originalPageX)/g.grid[0])*g.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-g.grid[0]:b+g.grid[0]:b}}return{top:f-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:i.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:i.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(c,g,i){i=i||this._uiHash();a.ui.plugin.call(this,c,[g,i]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,g,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.9"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(c,g){var i=a(this).data("draggable"),e=i.options,b=a.extend({},g,{item:i.element});i.sortables=[];a(e.connectToSortable).each(function(){var f=a.data(this,"sortable");if(f&&!f.options.disabled){i.sortables.push({instance:f,shouldRevert:f.options.revert});f._refreshItems();f._trigger("activate",c,b)}})},stop:function(c,g){var i=a(this).data("draggable"),e=a.extend({},g,{item:i.element});a.each(i.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;i.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;i.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,e)}})},drag:function(c,g){var i=a(this).data("draggable"),e=this;a.each(i.sortables,function(){this.instance.positionAbs=
i.positionAbs;this.instance.helperProportions=i.helperProportions;this.instance.offset.click=i.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(e).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]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,
true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=i.offset.click.top;this.instance.offset.click.left=i.offset.click.left;this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top;i._trigger("toSortable",c);i.dropped=this.instance.element;i.currentItem=i.element;this.instance.fromOutside=i}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();i._trigger("fromSortable",c);i.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),g=a(this).data("draggable").options;if(c.css("cursor"))g._cursor=
c.css("cursor");c.css("cursor",g.cursor)},stop:function(){var c=a(this).data("draggable").options;c._cursor&&a("body").css("cursor",c._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var c=a(this).data("draggable").options;a(c.iframeFix===true?"iframe":c.iframeFix).each(function(){a('<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(a(this).offset()).appendTo("body")})},
stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,g){c=a(g.helper);g=a(this).data("draggable").options;if(c.css("opacity"))g._opacity=c.css("opacity");c.css("opacity",g.opacity)},stop:function(c,g){c=a(this).data("draggable").options;c._opacity&&a(g.helper).css("opacity",c._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=a(this).data("draggable");if(c.scrollParent[0]!=
document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var g=a(this).data("draggable"),i=g.options,e=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!i.axis||i.axis!="x")if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-c.pageY<i.scrollSensitivity)g.scrollParent[0].scrollTop=e=g.scrollParent[0].scrollTop+i.scrollSpeed;else if(c.pageY-g.overflowOffset.top<i.scrollSensitivity)g.scrollParent[0].scrollTop=e=g.scrollParent[0].scrollTop-
i.scrollSpeed;if(!i.axis||i.axis!="y")if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-c.pageX<i.scrollSensitivity)g.scrollParent[0].scrollLeft=e=g.scrollParent[0].scrollLeft+i.scrollSpeed;else if(c.pageX-g.overflowOffset.left<i.scrollSensitivity)g.scrollParent[0].scrollLeft=e=g.scrollParent[0].scrollLeft-i.scrollSpeed}else{if(!i.axis||i.axis!="x")if(c.pageY-a(document).scrollTop()<i.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()-i.scrollSpeed);else if(a(window).height()-
(c.pageY-a(document).scrollTop())<i.scrollSensitivity)e=a(document).scrollTop(a(document).scrollTop()+i.scrollSpeed);if(!i.axis||i.axis!="y")if(c.pageX-a(document).scrollLeft()<i.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()-i.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<i.scrollSensitivity)e=a(document).scrollLeft(a(document).scrollLeft()+i.scrollSpeed)}e!==false&&a.ui.ddmanager&&!i.dropBehaviour&&a.ui.ddmanager.prepareOffsets(g,c)}});a.ui.plugin.add("draggable",
"snap",{start:function(){var c=a(this).data("draggable"),g=c.options;c.snapElements=[];a(g.snap.constructor!=String?g.snap.items||":data(draggable)":g.snap).each(function(){var i=a(this),e=i.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:e.top,left:e.left})})},drag:function(c,g){for(var i=a(this).data("draggable"),e=i.options,b=e.snapTolerance,f=g.offset.left,l=f+i.helperProportions.width,p=g.offset.top,q=p+i.helperProportions.height,y=
i.snapElements.length-1;y>=0;y--){var u=i.snapElements[y].left,o=u+i.snapElements[y].width,v=i.snapElements[y].top,z=v+i.snapElements[y].height;if(u-b<f&&f<o+b&&v-b<p&&p<z+b||u-b<f&&f<o+b&&v-b<q&&q<z+b||u-b<l&&l<o+b&&v-b<p&&p<z+b||u-b<l&&l<o+b&&v-b<q&&q<z+b){if(e.snapMode!="inner"){var D=Math.abs(v-q)<=b,I=Math.abs(z-p)<=b,R=Math.abs(u-l)<=b,V=Math.abs(o-f)<=b;if(D)g.position.top=i._convertPositionTo("relative",{top:v-i.helperProportions.height,left:0}).top-i.margins.top;if(I)g.position.top=i._convertPositionTo("relative",
{top:z,left:0}).top-i.margins.top;if(R)g.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left-i.margins.left;if(V)g.position.left=i._convertPositionTo("relative",{top:0,left:o}).left-i.margins.left}var Z=D||I||R||V;if(e.snapMode!="outer"){D=Math.abs(v-p)<=b;I=Math.abs(z-q)<=b;R=Math.abs(u-f)<=b;V=Math.abs(o-l)<=b;if(D)g.position.top=i._convertPositionTo("relative",{top:v,left:0}).top-i.margins.top;if(I)g.position.top=i._convertPositionTo("relative",{top:z-i.helperProportions.height,
left:0}).top-i.margins.top;if(R)g.position.left=i._convertPositionTo("relative",{top:0,left:u}).left-i.margins.left;if(V)g.position.left=i._convertPositionTo("relative",{top:0,left:o-i.helperProportions.width}).left-i.margins.left}if(!i.snapElements[y].snapping&&(D||I||R||V||Z))i.options.snap.snap&&i.options.snap.snap.call(i.element,c,a.extend(i._uiHash(),{snapItem:i.snapElements[y].item}));i.snapElements[y].snapping=D||I||R||V||Z}else{i.snapElements[y].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,
c,a.extend(i._uiHash(),{snapItem:i.snapElements[y].item}));i.snapElements[y].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=a(this).data("draggable").options;c=a.makeArray(a(c.stack)).sort(function(i,e){return(parseInt(a(i).css("zIndex"),10)||0)-(parseInt(a(e).css("zIndex"),10)||0)});if(c.length){var g=parseInt(c[0].style.zIndex)||0;a(c).each(function(i){this.style.zIndex=g+i});this[0].style.zIndex=g+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,
g){c=a(g.helper);g=a(this).data("draggable").options;if(c.css("zIndex"))g._zIndex=c.css("zIndex");c.css("zIndex",g.zIndex)},stop:function(c,g){c=a(this).data("draggable").options;c._zIndex&&a(g.helper).css("zIndex",c._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,g=c.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(g)?g:function(i){return i.is(g)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[];a.ui.ddmanager.droppables[c.scope].push(this);
c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],g=0;g<c.length;g++)c[g]==this&&c.splice(g,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,g){if(c=="accept")this.accept=a.isFunction(g)?g:function(i){return i.is(g)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var g=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);g&&this._trigger("activate",c,this.ui(g))},_deactivate:function(c){var g=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);g&&this._trigger("deactivate",c,this.ui(g))},_over:function(c){var g=a.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",c,this.ui(g))}},_out:function(c){var g=a.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",c,this.ui(g))}},_drop:function(c,g){var i=g||a.ui.ddmanager.current;if(!i||(i.currentItem||i.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=
a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==i.options.scope&&b.accept.call(b.element[0],i.currentItem||i.element)&&a.ui.intersect(i,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],i.currentItem||i.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
c,this.ui(i));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.9"});a.ui.intersect=function(c,g,i){if(!g.offset)return false;var e=(c.positionAbs||c.position.absolute).left,b=e+c.helperProportions.width,f=(c.positionAbs||c.position.absolute).top,l=f+c.helperProportions.height,p=g.offset.left,q=p+g.proportions.width,y=g.offset.top,u=y+g.proportions.height;switch(i){case "fit":return p<=
e&&b<=q&&y<=f&&l<=u;case "intersect":return p<e+c.helperProportions.width/2&&b-c.helperProportions.width/2<q&&y<f+c.helperProportions.height/2&&l-c.helperProportions.height/2<u;case "pointer":return a.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,y,p,g.proportions.height,g.proportions.width);case "touch":return(f>=y&&f<=u||l>=y&&l<=u||f<y&&l>u)&&(e>=p&&e<=q||b>=p&&b<=q||e<p&&b>q);
default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,g){var i=a.ui.ddmanager.droppables[c.options.scope]||[],e=g?g.type:null,b=(c.currentItem||c.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<i.length;f++)if(!(i[f].options.disabled||c&&!i[f].accept.call(i[f].element[0],c.currentItem||c.element))){for(var l=0;l<b.length;l++)if(b[l]==i[f].element[0]){i[f].proportions.height=0;continue a}i[f].visible=i[f].element.css("display")!="none";if(i[f].visible){i[f].offset=
i[f].element.offset();i[f].proportions={width:i[f].element[0].offsetWidth,height:i[f].element[0].offsetHeight};e=="mousedown"&&i[f]._activate.call(i[f],g)}}},drop:function(c,g){var i=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance))i=i||this._drop.call(this,g);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,g)}}});return i},drag:function(c,g){c.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(c,g);a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var i=a.ui.intersect(c,this,this.options.tolerance);if(i=!i&&this.isover==1?"isout":i&&this.isover==0?"isover":null){var e;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){e=a.data(b[0],"droppable");
e.greedyChild=i=="isover"?1:0}}if(e&&i=="isover"){e.isover=0;e.isout=1;e._out.call(e,g)}this[i]=1;this[i=="isout"?"isover":"isout"]=0;this[i=="isover"?"_over":"_out"].call(this,g);if(e&&i=="isout"){e.isout=0;e.isover=1;e._over.call(e,g)}}}})}}})(jQuery);
(function(a){a.widget("ui.resizable",a.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 i=this,e=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<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=e.handles||(!a(".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 b=this.handles.split(",");this.handles={};for(var f=0;f<b.length;f++){var l=a.trim(b[f]),p=a('<div class="ui-resizable-handle '+("ui-resizable-"+l)+'"></div>');/sw|se|ne|nw/.test(l)&&p.css({zIndex:++e.zIndex});"se"==l&&p.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[l]=".ui-resizable-"+l;this.element.append(p)}}this._renderAxis=function(q){q=q||this.element;for(var y in this.handles){if(this.handles[y].constructor==
String)this.handles[y]=a(this.handles[y],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var u=a(this.handles[y],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(y)?u.outerHeight():u.outerWidth();u=["padding",/ne|nw|n/.test(y)?"Top":/se|sw|s/.test(y)?"Bottom":/^e$/.test(y)?"Right":"Left"].join("");q.css(u,o);this._proportionallyResize()}a(this.handles[y])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!i.resizing){if(this.className)var q=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);i.axis=q&&q[1]?q[1]:"se"}});if(e.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");i._handles.show()},function(){if(!i.resizing){a(this).addClass("ui-resizable-autohide");i._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var i=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){i(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);i(this.originalElement);return this},_mouseCapture:function(i){var e=false,b;for(b in this.handles)if(a(this.handles[b])[0]==i.target)e=true;return!this.options.disabled&&e},_mouseStart:function(i){var e=this.options,b=this.element.position(),
f=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(f.is(".ui-draggable")||/absolute/.test(f.css("position")))f.css({position:"absolute",top:b.top,left:b.left});a.browser.opera&&/relative/.test(f.css("position"))&&f.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();b=c(this.helper.css("left"));var l=c(this.helper.css("top"));if(e.containment){b+=a(e.containment).scrollLeft()||0;l+=a(e.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:b,top:l};this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalPosition={left:b,top:l};this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()};this.originalMousePosition={left:i.pageX,top:i.pageY};this.aspectRatio=typeof e.aspectRatio=="number"?e.aspectRatio:
this.originalSize.width/this.originalSize.height||1;e=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",e=="auto"?this.axis+"-resize":e);f.addClass("ui-resizable-resizing");this._propagate("start",i);return true},_mouseDrag:function(i){var e=this.helper,b=this.originalMousePosition,f=this._change[this.axis];if(!f)return false;b=f.apply(this,[i,i.pageX-b.left||0,i.pageY-b.top||0]);if(this._aspectRatio||i.shiftKey)b=this._updateRatio(b,i);b=this._respectSize(b,i);this._propagate("resize",
i);e.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(b);this._trigger("resize",i,this.ui());return false},_mouseStop:function(i){this.resizing=false;var e=this.options;if(this._helper){var b=this._proportionallyResizeElements,f=b.length&&/textarea/i.test(b[0].nodeName);b=f&&a.ui.hasScroll(b[0],"left")?0:this.sizeDiff.height;
f={width:this.size.width-(f?0:this.sizeDiff.width),height:this.size.height-b};b=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var l=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;e.animate||this.element.css(a.extend(f,{top:l,left:b}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!e.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",i);this._helper&&this.helper.remove();return false},_updateCache:function(i){this.offset=this.helper.offset();if(g(i.left))this.position.left=i.left;if(g(i.top))this.position.top=i.top;if(g(i.height))this.size.height=i.height;if(g(i.width))this.size.width=i.width},_updateRatio:function(i){var e=this.position,b=this.size,f=this.axis;if(i.height)i.width=b.height*this.aspectRatio;else if(i.width)i.height=b.width/this.aspectRatio;if(f=="sw"){i.left=e.left+(b.width-i.width);i.top=
null}if(f=="nw"){i.top=e.top+(b.height-i.height);i.left=e.left+(b.width-i.width)}return i},_respectSize:function(i){var e=this.options,b=this.axis,f=g(i.width)&&e.maxWidth&&e.maxWidth<i.width,l=g(i.height)&&e.maxHeight&&e.maxHeight<i.height,p=g(i.width)&&e.minWidth&&e.minWidth>i.width,q=g(i.height)&&e.minHeight&&e.minHeight>i.height;if(p)i.width=e.minWidth;if(q)i.height=e.minHeight;if(f)i.width=e.maxWidth;if(l)i.height=e.maxHeight;var y=this.originalPosition.left+this.originalSize.width,u=this.position.top+
this.size.height,o=/sw|nw|w/.test(b);b=/nw|ne|n/.test(b);if(p&&o)i.left=y-e.minWidth;if(f&&o)i.left=y-e.maxWidth;if(q&&b)i.top=u-e.minHeight;if(l&&b)i.top=u-e.maxHeight;if((e=!i.width&&!i.height)&&!i.left&&i.top)i.top=null;else if(e&&!i.top&&i.left)i.left=null;return i},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var i=this.helper||this.element,e=0;e<this._proportionallyResizeElements.length;e++){var b=this._proportionallyResizeElements[e];if(!this.borderDif){var f=
[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],l=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(f,function(p,q){p=parseInt(p,10)||0;q=parseInt(l[q],10)||0;return p+q})}a.browser.msie&&(a(i).is(":hidden")||a(i).parents(":hidden").length)||b.css({height:i.height()-this.borderDif[0]-this.borderDif[2]||0,width:i.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var i=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var e=a.browser.msie&&a.browser.version<7,b=e?1:0;e=e?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+e,height:this.element.outerHeight()+e,position:"absolute",left:this.elementOffset.left-b+"px",top:this.elementOffset.top-b+"px",zIndex:++i.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(i,
e){return{width:this.originalSize.width+e}},w:function(i,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(i,e,b){return{top:this.originalPosition.top+b,height:this.originalSize.height-b}},s:function(i,e,b){return{height:this.originalSize.height+b}},se:function(i,e,b){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[i,e,b]))},sw:function(i,e,b){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[i,e,
b]))},ne:function(i,e,b){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[i,e,b]))},nw:function(i,e,b){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[i,e,b]))}},_propagate:function(i,e){a.ui.plugin.call(this,i,[e,this.ui()]);i!="resize"&&this._trigger(i,e,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}}});a.extend(a.ui.resizable,{version:"1.8.9"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var i=a(this).data("resizable").options,e=function(b){a(b).each(function(){var f=a(this);f.data("resizable-alsoresize",{width:parseInt(f.width(),10),height:parseInt(f.height(),10),left:parseInt(f.css("left"),10),top:parseInt(f.css("top"),10),position:f.css("position")})})};if(typeof i.alsoResize=="object"&&!i.alsoResize.parentNode)if(i.alsoResize.length){i.alsoResize=
i.alsoResize[0];e(i.alsoResize)}else a.each(i.alsoResize,function(b){e(b)});else e(i.alsoResize)},resize:function(i,e){var b=a(this).data("resizable");i=b.options;var f=b.originalSize,l=b.originalPosition,p={height:b.size.height-f.height||0,width:b.size.width-f.width||0,top:b.position.top-l.top||0,left:b.position.left-l.left||0},q=function(y,u){a(y).each(function(){var o=a(this),v=a(this).data("resizable-alsoresize"),z={},D=u&&u.length?u:o.parents(e.originalElement[0]).length?["width","height"]:["width",
"height","top","left"];a.each(D,function(I,R){if((I=(v[R]||0)+(p[R]||0))&&I>=0)z[R]=I||null});if(a.browser.opera&&/relative/.test(o.css("position"))){b._revertToRelativePosition=true;o.css({position:"absolute",top:"auto",left:"auto"})}o.css(z)})};typeof i.alsoResize=="object"&&!i.alsoResize.nodeType?a.each(i.alsoResize,function(y,u){q(y,u)}):q(i.alsoResize)},stop:function(){var i=a(this).data("resizable"),e=i.options,b=function(f){a(f).each(function(){var l=a(this);l.css({position:l.data("resizable-alsoresize").position})})};
if(i._revertToRelativePosition){i._revertToRelativePosition=false;typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?a.each(e.alsoResize,function(f){b(f)}):b(e.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(i){var e=a(this).data("resizable"),b=e.options,f=e._proportionallyResizeElements,l=f.length&&/textarea/i.test(f[0].nodeName),p=l&&a.ui.hasScroll(f[0],"left")?0:e.sizeDiff.height;l={width:e.size.width-(l?0:e.sizeDiff.width),height:e.size.height-
p};p=parseInt(e.element.css("left"),10)+(e.position.left-e.originalPosition.left)||null;var q=parseInt(e.element.css("top"),10)+(e.position.top-e.originalPosition.top)||null;e.element.animate(a.extend(l,q&&p?{top:q,left:p}:{}),{duration:b.animateDuration,easing:b.animateEasing,step:function(){var y={width:parseInt(e.element.css("width"),10),height:parseInt(e.element.css("height"),10),top:parseInt(e.element.css("top"),10),left:parseInt(e.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:y.width,
height:y.height});e._updateCache(y);e._propagate("resize",i)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var i=a(this).data("resizable"),e=i.element,b=i.options.containment;if(e=b instanceof a?b.get(0):/parent/.test(b)?e.parent().get(0):b){i.containerElement=a(e);if(/document/.test(b)||b==document){i.containerOffset={left:0,top:0};i.containerPosition={left:0,top:0};i.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var f=
a(e),l=[];a(["Top","Right","Left","Bottom"]).each(function(y,u){l[y]=c(f.css("padding"+u))});i.containerOffset=f.offset();i.containerPosition=f.position();i.containerSize={height:f.innerHeight()-l[3],width:f.innerWidth()-l[1]};b=i.containerOffset;var p=i.containerSize.height,q=i.containerSize.width;q=a.ui.hasScroll(e,"left")?e.scrollWidth:q;p=a.ui.hasScroll(e)?e.scrollHeight:p;i.parentData={element:e,left:b.left,top:b.top,width:q,height:p}}}},resize:function(i){var e=a(this).data("resizable"),b=e.options,
f=e.containerOffset,l=e.position;i=e._aspectRatio||i.shiftKey;var p={top:0,left:0},q=e.containerElement;if(q[0]!=document&&/static/.test(q.css("position")))p=f;if(l.left<(e._helper?f.left:0)){e.size.width+=e._helper?e.position.left-f.left:e.position.left-p.left;if(i)e.size.height=e.size.width/b.aspectRatio;e.position.left=b.helper?f.left:0}if(l.top<(e._helper?f.top:0)){e.size.height+=e._helper?e.position.top-f.top:e.position.top;if(i)e.size.width=e.size.height*b.aspectRatio;e.position.top=e._helper?
f.top:0}e.offset.left=e.parentData.left+e.position.left;e.offset.top=e.parentData.top+e.position.top;b=Math.abs((e._helper?e.offset.left-p.left:e.offset.left-p.left)+e.sizeDiff.width);f=Math.abs((e._helper?e.offset.top-p.top:e.offset.top-f.top)+e.sizeDiff.height);l=e.containerElement.get(0)==e.element.parent().get(0);p=/relative|absolute/.test(e.containerElement.css("position"));if(l&&p)b-=e.parentData.left;if(b+e.size.width>=e.parentData.width){e.size.width=e.parentData.width-b;if(i)e.size.height=
e.size.width/e.aspectRatio}if(f+e.size.height>=e.parentData.height){e.size.height=e.parentData.height-f;if(i)e.size.width=e.size.height*e.aspectRatio}},stop:function(){var i=a(this).data("resizable"),e=i.options,b=i.containerOffset,f=i.containerPosition,l=i.containerElement,p=a(i.helper),q=p.offset(),y=p.outerWidth()-i.sizeDiff.width;p=p.outerHeight()-i.sizeDiff.height;i._helper&&!e.animate&&/relative/.test(l.css("position"))&&a(this).css({left:q.left-f.left-b.left,width:y,height:p});i._helper&&!e.animate&&
/static/.test(l.css("position"))&&a(this).css({left:q.left-f.left-b.left,width:y,height:p})}});a.ui.plugin.add("resizable","ghost",{start:function(){var i=a(this).data("resizable"),e=i.options,b=i.size;i.ghost=i.originalElement.clone();i.ghost.css({opacity:0.25,display:"block",position:"relative",height:b.height,width:b.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:"");i.ghost.appendTo(i.helper)},resize:function(){var i=a(this).data("resizable");
i.ghost&&i.ghost.css({position:"relative",height:i.size.height,width:i.size.width})},stop:function(){var i=a(this).data("resizable");i.ghost&&i.helper&&i.helper.get(0).removeChild(i.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(){var i=a(this).data("resizable"),e=i.options,b=i.size,f=i.originalSize,l=i.originalPosition,p=i.axis;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var q=Math.round((b.width-f.width)/(e.grid[0]||1))*(e.grid[0]||1);e=Math.round((b.height-f.height)/
(e.grid[1]||1))*(e.grid[1]||1);if(/^(se|s|e)$/.test(p)){i.size.width=f.width+q;i.size.height=f.height+e}else if(/^(ne)$/.test(p)){i.size.width=f.width+q;i.size.height=f.height+e;i.position.top=l.top-e}else{if(/^(sw)$/.test(p)){i.size.width=f.width+q;i.size.height=f.height+e}else{i.size.width=f.width+q;i.size.height=f.height+e;i.position.top=l.top-e}i.position.left=l.left-q}}});var c=function(i){return parseInt(i,10)||0},g=function(i){return!isNaN(parseInt(i,10))}})(jQuery);
(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var g;this.refresh=function(){g=a(c.options.filter,c.element[0]);g.each(function(){var i=a(this),e=i.offset();a.data(this,"selectable-item",{element:this,$element:i,left:e.left,top:e.top,right:e.left+i.outerWidth(),bottom:e.top+i.outerHeight(),startselected:false,selected:i.hasClass("ui-selected"),
selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})};this.refresh();this.selectees=g.addClass("ui-selectee");this._mouseInit();this.helper=a("<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(c){var g=this;this.opos=[c.pageX,
c.pageY];if(!this.options.disabled){var i=this.options;this.selectees=a(i.filter,this.element[0]);this._trigger("start",c);a(i.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});i.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var e=a.data(this,"selectable-item");e.startselected=true;if(!c.metaKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;g._trigger("unselecting",
c,{unselecting:e.element})}});a(c.target).parents().andSelf().each(function(){var e=a.data(this,"selectable-item");if(e){var b=!c.metaKey||!e.$element.hasClass("ui-selected");e.$element.removeClass(b?"ui-unselecting":"ui-selected").addClass(b?"ui-selecting":"ui-unselecting");e.unselecting=!b;e.selecting=b;(e.selected=b)?g._trigger("selecting",c,{selecting:e.element}):g._trigger("unselecting",c,{unselecting:e.element});return false}})}},_mouseDrag:function(c){var g=this;this.dragged=true;if(!this.options.disabled){var i=
this.options,e=this.opos[0],b=this.opos[1],f=c.pageX,l=c.pageY;if(e>f){var p=f;f=e;e=p}if(b>l){p=l;l=b;b=p}this.helper.css({left:e,top:b,width:f-e,height:l-b});this.selectees.each(function(){var q=a.data(this,"selectable-item");if(!(!q||q.element==g.element[0])){var y=false;if(i.tolerance=="touch")y=!(q.left>f||q.right<e||q.top>l||q.bottom<b);else if(i.tolerance=="fit")y=q.left>e&&q.right<f&&q.top>b&&q.bottom<l;if(y){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",c,{selecting:q.element})}}else{if(q.selecting)if(c.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",c,{unselecting:q.element})}if(q.selected)if(!c.metaKey&&
!q.startselected){q.$element.removeClass("ui-selected");q.selected=false;q.$element.addClass("ui-unselecting");q.unselecting=true;g._trigger("unselecting",c,{unselecting:q.element})}}}});return false}},_mouseStop:function(c){var g=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var i=a.data(this,"selectable-item");i.$element.removeClass("ui-unselecting");i.unselecting=false;i.startselected=false;g._trigger("unselected",c,{unselected:i.element})});a(".ui-selecting",this.element[0]).each(function(){var i=
a.data(this,"selectable-item");i.$element.removeClass("ui-selecting").addClass("ui-selected");i.selecting=false;i.selected=true;i.startselected=true;g._trigger("selected",c,{selected:i.element})});this._trigger("stop",c);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.9"})})(jQuery);
(function(a){a.widget("ui.sortable",a.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 c=this.items.length-1;c>=0;c--)this.items[c].item.removeData("sortable-item");return this},_setOption:function(c,g){if(c==="disabled"){this.options[c]=g;this.widget()[g?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(c,g){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var i=null,e=this;a(c.target).parents().each(function(){if(a.data(this,"sortable-item")==e){i=a(this);return false}});if(a.data(c.target,"sortable-item")==e)i=a(c.target);if(!i)return false;if(this.options.handle&&!g){var b=false;a(this.options.handle,i).find("*").andSelf().each(function(){if(this==c.target)b=true});if(!b)return false}this.currentItem=
i;this._removeCurrentsFromItems();return true},_mouseStart:function(c,g,i){g=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);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");a.extend(this.offset,
{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.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(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("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",
c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!i)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",c,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var g=this.options,i=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<g.scrollSensitivity)this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+g.scrollSpeed;else if(c.pageY-this.overflowOffset.top<g.scrollSensitivity)this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-g.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-c.pageX<g.scrollSensitivity)this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+g.scrollSpeed;else if(c.pageX-this.overflowOffset.left<g.scrollSensitivity)this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-g.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<g.scrollSensitivity)i=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<g.scrollSensitivity)i=a(document).scrollTop(a(document).scrollTop()+
g.scrollSpeed);if(c.pageX-a(document).scrollLeft()<g.scrollSensitivity)i=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<g.scrollSensitivity)i=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}i!==false&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}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--){i=this.items[g];var e=i.item[0],b=this._intersectsWithPointer(i);if(b)if(e!=this.currentItem[0]&&this.placeholder[b==1?"next":"prev"]()[0]!=e&&!a.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],e):1)){this.direction=b==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(i))this._rearrange(c,
i);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,g){if(c){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var i=this;g=i.placeholder.offset();i.reverting=true;a(this.helper).animate({left:g.left-this.offset.parent.left-i.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:g.top-this.offset.parent.top-i.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){i._clear(c)})}else this._clear(c,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 c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,this._uiHash(this));this.containers[c].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();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(c){var g=this._getItemsAsjQuery(c&&c.connected),i=[];c=c||{};a(g).each(function(){var e=(a(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[-=_](.+)/);if(e)i.push((c.key||e[1]+"[]")+"="+(c.key&&c.expression?e[1]:e[2]))});!i.length&&c.key&&i.push(c.key+"=");return i.join("&")},toArray:function(c){var g=this._getItemsAsjQuery(c&&c.connected),i=[];c=c||{};g.each(function(){i.push(a(c.item||this).attr(c.attribute||
"id")||"")});return i},_intersectsWith:function(c){var g=this.positionAbs.left,i=g+this.helperProportions.width,e=this.positionAbs.top,b=e+this.helperProportions.height,f=c.left,l=f+c.width,p=c.top,q=p+c.height,y=this.offset.click.top,u=this.offset.click.left;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?e+y>p&&e+y<q&&g+u>f&&g+u<l:f<g+this.helperProportions.width/
2&&i-this.helperProportions.width/2<l&&p<e+this.helperProportions.height/2&&b-this.helperProportions.height/2<q},_intersectsWithPointer:function(c){var g=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);g=g&&c;c=this._getDragVerticalDirection();var i=this._getDragHorizontalDirection();if(!g)return false;return this.floating?i&&i=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(c){var g=
a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width);var i=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&c||e=="left"&&!c:i&&(i=="down"&&g||i=="up"&&!g)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=
this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var g=[],i=[],e=this._connectWith();if(e&&c)for(c=e.length-1;c>=0;c--)for(var b=a(e[c]),f=b.length-1;f>=0;f--){var l=a.data(b[f],"sortable");if(l&&l!=this&&!l.options.disabled)i.push([a.isFunction(l.options.items)?
l.options.items.call(l.element):a(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}i.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(c=i.length-1;c>=0;c--)i[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),
g=0;g<this.items.length;g++)for(var i=0;i<c.length;i++)c[i]==this.items[g].item[0]&&this.items.splice(g,1)},_refreshItems:function(c){this.items=[];this.containers=[this];var g=this.items,i=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):a(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var b=e.length-1;b>=0;b--)for(var f=a(e[b]),l=f.length-1;l>=0;l--){var p=a.data(f[l],"sortable");if(p&&p!=this&&!p.options.disabled){i.push([a.isFunction(p.options.items)?
p.options.items.call(p.element[0],c,{item:this.currentItem}):a(p.options.items,p.element),p]);this.containers.push(p)}}for(b=i.length-1;b>=0;b--){c=i[b][1];e=i[b][0];l=0;for(f=e.length;l<f;l++){p=a(e[l]);p.data("sortable-item",c);g.push({item:p,instance:c,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var g=this.items.length-1;g>=0;g--){var i=this.items[g],e=this.options.toleranceElement?a(this.options.toleranceElement,
i.item):i.item;if(!c){i.width=e.outerWidth();i.height=e.outerHeight()}e=e.offset();i.left=e.left;i.top=e.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--){e=this.containers[g].element.offset();this.containers[g].containerCache.left=e.left;this.containers[g].containerCache.top=e.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(c){var g=c||this,i=g.options;if(!i.placeholder||i.placeholder.constructor==String){var e=i.placeholder;i.placeholder={element:function(){var b=a(document.createElement(g.currentItem[0].nodeName)).addClass(e||g.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)b.style.visibility="hidden";return b},update:function(b,f){if(!(e&&!i.forcePlaceholderSize)){f.height()||f.height(g.currentItem.innerHeight()-
parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10));f.width()||f.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||0,10)-parseInt(g.currentItem.css("paddingRight")||0,10))}}}}g.placeholder=a(i.placeholder.element.call(g.element,g.currentItem));g.currentItem.after(g.placeholder);i.placeholder.update(g,g.placeholder)},_contactContainers:function(c){for(var g=null,i=null,e=this.containers.length-1;e>=0;e--)if(!a.ui.contains(this.currentItem[0],
this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(g&&a.ui.contains(this.containers[e].element[0],g.element[0]))){g=this.containers[e];i=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",c,this._uiHash(this));this.containers[e].containerCache.over=0}if(g)if(this.containers.length===1){this.containers[i]._trigger("over",c,this._uiHash(this));this.containers[i].containerCache.over=1}else if(this.currentContainer!=this.containers[i]){g=
1E4;e=null;for(var b=this.positionAbs[this.containers[i].floating?"left":"top"],f=this.items.length-1;f>=0;f--)if(a.ui.contains(this.containers[i].element[0],this.items[f].item[0])){var l=this.items[f][this.containers[i].floating?"left":"top"];if(Math.abs(l-b)<g){g=Math.abs(l-b);e=this.items[f]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[i];e?this._rearrange(c,e,null,true):this._rearrange(c,null,this.containers[i].element,true);this._trigger("change",c,this._uiHash());this.containers[i]._trigger("change",
c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",c,this._uiHash(this));this.containers[i].containerCache.over=1}}},_createHelper:function(c){var g=this.options;c=a.isFunction(g.helper)?a(g.helper.apply(this.element[0],[c,this.currentItem])):g.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||a(g.appendTo!="parent"?g.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[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(c[0].style.width==""||g.forceHelperSize)c.width(this.currentItem.width());if(c[0].style.height==""||g.forceHelperSize)c.height(this.currentItem.height());return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.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 c=this.options;
if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var g=
a(c.containment)[0];c=a(c.containment).offset();var i=a(g).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(g).css("borderLeftWidth"),10)||0)+(parseInt(a(g).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(g).css("borderTopWidth"),10)||0)+(parseInt(a(g).css("paddingTop"),10)||0)-this.margins.top,c.left+(i?Math.max(g.scrollWidth,g.offsetWidth):g.offsetWidth)-(parseInt(a(g).css("borderLeftWidth"),10)||0)-(parseInt(a(g).css("paddingRight"),10)||0)-this.helperProportions.width-
this.margins.left,c.top+(i?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(a(g).css("borderTopWidth"),10)||0)-(parseInt(a(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,g){if(!g)g=this.position;c=c=="absolute"?1:-1;var i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(i[0].tagName);return{top:g.top+
this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:i.scrollTop())*c),left:g.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:i.scrollLeft())*c)}},_generatePosition:function(c){var g=this.options,i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(i[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var b=c.pageX,f=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])b=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])f=this.containment[1]+this.offset.click.top;
if(c.pageX-this.offset.click.left>this.containment[2])b=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])f=this.containment[3]+this.offset.click.top}if(g.grid){f=this.originalPageY+Math.round((f-this.originalPageY)/g.grid[1])*g.grid[1];f=this.containment?!(f-this.offset.click.top<this.containment[1]||f-this.offset.click.top>this.containment[3])?f:!(f-this.offset.click.top<this.containment[1])?f-g.grid[1]:f+g.grid[1]:f;b=this.originalPageX+Math.round((b-
this.originalPageX)/g.grid[0])*g.grid[0];b=this.containment?!(b-this.offset.click.left<this.containment[0]||b-this.offset.click.left>this.containment[2])?b:!(b-this.offset.click.left<this.containment[0])?b-g.grid[0]:b+g.grid[0]:b}}return{top:f-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:i.scrollTop()),left:b-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:i.scrollLeft())}},_rearrange:function(c,g,i,e){i?i[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 b=this,f=this.counter;window.setTimeout(function(){f==b.counter&&b.refreshPositions(!e)},0)},_clear:function(c,g){this.reverting=false;var i=[];!this._noFinalSort&&
this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!g&&i.push(function(b){this._trigger("receive",b,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)i.push(function(b){this._trigger("update",b,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){g||i.push(function(b){this._trigger("remove",b,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(a.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!g){i.push(function(b){return function(f){b._trigger("receive",f,this._uiHash(this))}}.call(this,this.containers[e]));i.push(function(b){return function(f){b._trigger("update",
f,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){g||i.push(function(b){return function(f){b._trigger("deactivate",f,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){i.push(function(b){return function(f){b._trigger("out",f,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&a("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",c,this._uiHash());for(e=0;e<i.length;e++)i[e].call(this,c);this._trigger("stop",c,this._uiHash())}return false}g||this._trigger("beforeStop",c,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(e=
0;e<i.length;e++)i[e].call(this,c);this._trigger("stop",c,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var g=c||this;return{helper:g.helper,placeholder:g.placeholder||a([]),position:g.position,originalPosition:g.originalPosition,offset:g.positionAbs,item:g.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.9"})})(jQuery);
(function(a){a.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 c=this,g=c.options;c.running=0;c.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
c.headers=c.element.find(g.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){g.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){g.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){g.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){g.disabled||a(this).removeClass("ui-state-focus")});c.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(g.navigation){var i=c.element.find("a").filter(g.navigationFilter).eq(0);if(i.length){var e=i.closest(".ui-accordion-header");c.active=e.length?e:i.closest(".ui-accordion-content").prev()}}c.active=c._findActive(c.active||g.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");c.active.next().addClass("ui-accordion-content-active");c._createIcons();c.resize();c.element.attr("role","tablist");c.headers.attr("role","tab").bind("keydown.accordion",
function(b){return c._keydown(b)}).next().attr("role","tabpanel");c.headers.not(c.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();c.active.length?c.active.attr({"aria-expanded":"true",tabIndex:0}):c.headers.eq(0).attr("tabIndex",0);a.browser.safari||c.headers.find("a").attr("tabIndex",-1);g.event&&c.headers.bind(g.event.split(" ").join(".accordion ")+".accordion",function(b){c._clickHandler.call(c,b,this);b.preventDefault()})},_createIcons:function(){var c=this.options;if(c.icons){a("<span></span>").addClass("ui-icon "+
c.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(c.icons.header).toggleClass(c.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 c=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(c.autoHeight||c.fillHeight)g.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(c,g){a.Widget.prototype._setOption.apply(this,arguments);c=="active"&&this.activate(g);if(c=="icons"){this._destroyIcons();
g&&this._createIcons()}if(c=="disabled")this.headers.add(this.headers.next())[g?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(c){if(!(this.options.disabled||c.altKey||c.ctrlKey)){var g=a.ui.keyCode,i=this.headers.length,e=this.headers.index(c.target),b=false;switch(c.keyCode){case g.RIGHT:case g.DOWN:b=this.headers[(e+1)%i];break;case g.LEFT:case g.UP:b=this.headers[(e-1+i)%i];break;case g.SPACE:case g.ENTER:this._clickHandler({target:c.target},c.target);
c.preventDefault()}if(b){a(c.target).attr("tabIndex",-1);a(b).attr("tabIndex",0);b.focus();return false}return true}},resize:function(){var c=this.options,g;if(c.fillSpace){if(a.browser.msie){var i=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}g=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",i);this.headers.each(function(){g-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,g-a(this).innerHeight()+
a(this).height()))}).css("overflow","auto")}else if(c.autoHeight){g=0;this.headers.next().each(function(){g=Math.max(g,a(this).height("").height())}).height(g)}return this},activate:function(c){this.options.active=c;c=this._findActive(c)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c==="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,g){var i=this.options;
if(!i.disabled)if(c.target){c=a(c.currentTarget||g);g=c[0]===this.active[0];i.active=i.collapsible&&g?false:this.headers.index(c);if(!(this.running||!i.collapsible&&g)){var e=this.active;p=c.next();f=this.active.next();l={options:i,newHeader:g&&i.collapsible?a([]):c,oldHeader:this.active,newContent:g&&i.collapsible?a([]):p,oldContent:f};var b=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=g?a([]):c;this._toggle(p,f,l,g,b);e.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(i.icons.headerSelected).addClass(i.icons.header);
if(!g){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(i.icons.header).addClass(i.icons.headerSelected);c.next().addClass("ui-accordion-content-active")}}}else if(i.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(i.icons.headerSelected).addClass(i.icons.header);this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),
l={options:i,newHeader:a([]),oldHeader:i.active,newContent:a([]),oldContent:f},p=this.active=a([]);this._toggle(p,f,l)}},_toggle:function(c,g,i,e,b){var f=this,l=f.options;f.toShow=c;f.toHide=g;f.data=i;var p=function(){if(f)return f._completed.apply(f,arguments)};f._trigger("changestart",null,f.data);f.running=g.size()===0?c.size():g.size();if(l.animated){i={};i=l.collapsible&&e?{toShow:a([]),toHide:g,complete:p,down:b,autoHeight:l.autoHeight||l.fillSpace}:{toShow:c,toHide:g,complete:p,down:b,autoHeight:l.autoHeight||
l.fillSpace};if(!l.proxied)l.proxied=l.animated;if(!l.proxiedDuration)l.proxiedDuration=l.duration;l.animated=a.isFunction(l.proxied)?l.proxied(i):l.proxied;l.duration=a.isFunction(l.proxiedDuration)?l.proxiedDuration(i):l.proxiedDuration;e=a.ui.accordion.animations;var q=l.duration,y=l.animated;if(y&&!e[y]&&!a.easing[y])y="slide";e[y]||(e[y]=function(u){this.slide(u,{easing:y,duration:q||700})});e[y](i)}else{if(l.collapsible&&e)c.toggle();else{g.hide();c.show()}p(true)}g.prev().attr({"aria-expanded":"false",
tabIndex:-1}).blur();c.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(c){this.running=c?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)}}});a.extend(a.ui.accordion,{version:"1.8.9",animations:{slide:function(c,g){c=a.extend({easing:"swing",
duration:300},c,g);if(c.toHide.size())if(c.toShow.size()){var i=c.toShow.css("overflow"),e=0,b={},f={},l;g=c.toShow;l=g[0].style.width;g.width(parseInt(g.parent().width(),10)-parseInt(g.css("paddingLeft"),10)-parseInt(g.css("paddingRight"),10)-(parseInt(g.css("borderLeftWidth"),10)||0)-(parseInt(g.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(p,q){f[q]="hide";p=(""+a.css(c.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);b[q]={value:p[1],unit:p[2]||"px"}});c.toShow.css({height:0,
overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate(f,{step:function(p,q){if(q.prop=="height")e=q.end-q.start===0?0:(q.now-q.start)/(q.end-q.start);c.toShow[0].style[q.prop]=e*b[q.prop].value+b[q.prop].unit},duration:c.duration,easing:c.easing,complete:function(){c.autoHeight||c.toShow.css("height","");c.toShow.css({width:l,overflow:i});c.complete()}})}else c.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},c);else c.toShow.animate({height:"show",
paddingTop:"show",paddingBottom:"show"},c)},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1E3:200})}}})})(jQuery);
(function(a){a.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 c=this,g=this.element[0].ownerDocument,i;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){if(!(c.options.disabled||c.element.attr("readonly"))){i=false;var b=a.ui.keyCode;
switch(e.keyCode){case b.PAGE_UP:c._move("previousPage",e);break;case b.PAGE_DOWN:c._move("nextPage",e);break;case b.UP:c._move("previous",e);e.preventDefault();break;case b.DOWN:c._move("next",e);e.preventDefault();break;case b.ENTER:case b.NUMPAD_ENTER:if(c.menu.active){i=true;e.preventDefault()}case b.TAB:if(!c.menu.active)break;c.menu.select(e);break;case b.ESCAPE:c.element.val(c.term);c.close(e);break;default:clearTimeout(c.searching);c.searching=setTimeout(function(){if(c.term!=c.element.val()){c.selectedItem=
null;c.search(null,e)}},c.options.delay)}}}).bind("keypress.autocomplete",function(e){if(i){i=false;e.preventDefault()}}).bind("focus.autocomplete",function(){if(!c.options.disabled){c.selectedItem=null;c.previous=c.element.val()}}).bind("blur.autocomplete",function(e){if(!c.options.disabled){clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(e);c._change(e)},150)}});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||
"body",g)[0]).mousedown(function(e){var b=c.menu.element[0];a(e.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(f){f.target!==c.element[0]&&f.target!==b&&!a.ui.contains(b,f.target)&&c.close()})},1);setTimeout(function(){clearTimeout(c.closing)},13)}).menu({focus:function(e,b){b=b.item.data("item.autocomplete");false!==c._trigger("focus",e,{item:b})&&/^key/.test(e.originalEvent.type)&&c.element.val(b.value)},selected:function(e,b){var f=b.item.data("item.autocomplete"),
l=c.previous;if(c.element[0]!==g.activeElement){c.element.focus();c.previous=l;setTimeout(function(){c.previous=l;c.selectedItem=f},1)}false!==c._trigger("select",e,{item:f})&&c.element.val(f.value);c.term=c.element.val();c.close(e);c.selectedItem=f},blur:function(){c.menu.element.is(":visible")&&c.element.val()!==c.term&&c.element.val(c.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.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();a.Widget.prototype.destroy.call(this)},_setOption:function(c,g){a.Widget.prototype._setOption.apply(this,arguments);c==="source"&&this._initSource();if(c==="appendTo")this.menu.element.appendTo(a(g||"body",this.element[0].ownerDocument)[0]);c==="disabled"&&g&&this.xhr&&this.xhr.abort()},_initSource:function(){var c=this,g,i;if(a.isArray(this.options.source)){g=this.options.source;this.source=function(e,b){b(a.ui.autocomplete.filter(g,e.term))}}else if(typeof this.options.source===
"string"){i=this.options.source;this.source=function(e,b){c.xhr&&c.xhr.abort();c.xhr=a.ajax({url:i,data:e,dataType:"json",success:function(f,l,p){p===c.xhr&&b(f);c.xhr=null},error:function(f){f===c.xhr&&b([]);c.xhr=null}})}}else this.source=this.options.source},search:function(c,g){c=c!=null?c:this.element.val();this.term=this.element.val();if(c.length<this.options.minLength)return this.close(g);clearTimeout(this.closing);if(this._trigger("search",g)!==false)return this._search(c)},_search:function(c){this.pending++;
this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c)}},_change:function(c){this.previous!==
this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value)return c;return a.map(c,function(g){if(typeof g==="string")return{label:g,value:g};return a.extend({label:g.label||g.value,value:g.value||g.label},g)})},_suggest:function(c){var g=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(g,c);this.menu.deactivate();this.menu.refresh();g.show();this._resizeMenu();g.position(a.extend({of:this.element},this.options.position))},
_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(c,g){var i=this;a.each(g,function(e,b){i._renderItem(c,b)})},_renderItem:function(c,g){return a("<li></li>").data("item.autocomplete",g).append(a("<a></a>").text(g.label)).appendTo(c)},_move:function(c,g){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(c)||this.menu.last()&&/^next/.test(c)){this.element.val(this.term);this.menu.deactivate()}else this.menu[c](g);
else this.search(null,g)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(c,g){var i=RegExp(a.ui.autocomplete.escapeRegex(g),"i");return a.grep(c,function(e){return i.test(e.label||e.value||e)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var c=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(a(g.target).closest(".ui-menu-item a").length){g.preventDefault();c.select(g)}});this.refresh()},refresh:function(){var c=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){c.activate(g,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(c,g){this.deactivate();if(this.hasScroll()){var i=g.offset().top-this.element.offset().top,e=this.element.attr("scrollTop"),b=this.element.height();if(i<0)this.element.attr("scrollTop",e+i);else i>=b&&this.element.attr("scrollTop",e+i-b+g.height())}this.active=g.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",c,{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(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},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(c,g,i){if(this.active){c=this.active[c+"All"](".ui-menu-item").eq(0);
c.length?this.activate(i,c):this.activate(i,this.element.children(g))}else this.activate(i,this.element.children(g))},nextPage:function(c){if(this.hasScroll())if(!this.active||this.last())this.activate(c,this.element.children(".ui-menu-item:first"));else{var g=this.active.offset().top,i=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-g-i+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last"));this.activate(c,
e)}else this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(c){if(this.hasScroll())if(!this.active||this.first())this.activate(c,this.element.children(".ui-menu-item:last"));else{var g=this.active.offset().top,i=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var e=a(this).offset().top-g+i-a(this).height();return e<10&&e>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
this.activate(c,result)}else this.activate(c,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(c){this._trigger("selected",c,{item:this.active})}})})(jQuery);
(function(a){var c,g=function(e){a(":ui-button",e.target.form).each(function(){var b=a(this).data("button");setTimeout(function(){b.refresh()},1)})},i=function(e){var b=e.name,f=e.form,l=a([]);if(b)l=f?a(f).find("[name='"+b+"']"):a("[name='"+b+"']",e.ownerDocument).filter(function(){return!this.form});return l};a.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 e=this,b=this.options,f=this.type==="checkbox"||this.type==="radio",l="ui-state-hover"+(!f?" ui-state-active":"");if(b.label===null)b.label=this.buttonElement.html();if(this.element.is(":disabled"))b.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
function(){if(!b.disabled){a(this).addClass("ui-state-hover");this===c&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){b.disabled||a(this).removeClass(l)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});f&&this.element.bind("change.button",function(){e.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).toggleClass("ui-state-active");
e.buttonElement.attr("aria-pressed",e.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");e.buttonElement.attr("aria-pressed",true);var p=e.element[0];i(p).not(p).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(b.disabled)return false;a(this).addClass("ui-state-active");
c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(b.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(p){if(b.disabled)return false;if(p.keyCode==a.ui.keyCode.SPACE||p.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(p){p.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
b.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 e=this.element.is(":checked");e&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",e)}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");a.Widget.prototype.destroy.call(this)},_setOption:function(e,b){a.Widget.prototype._setOption.apply(this,arguments);if(e==="disabled")b?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var e=this.element.is(":disabled");e!==this.options.disabled&&this._setOption("disabled",e);if(this.type==="radio")i(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):a(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 e=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"),
b=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),f=this.options.icons,l=f.primary&&f.secondary;if(f.primary||f.secondary){e.addClass("ui-button-text-icon"+(l?"s":f.primary?"-primary":"-secondary"));f.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+f.primary+"'></span>");f.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+f.secondary+"'></span>");if(!this.options.text){e.addClass(l?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
this.hasTitle||e.attr("title",b)}}else e.addClass("ui-button-text-only")}}});a.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(e,b){e==="disabled"&&this.buttons.button("option",e,b);a.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 a(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 a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a,c){var g={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},i={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};a.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(e){var b=a(this).css(e).offset().top;b<0&&
a(this).css("top",e.top-b)}},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 e=this,b=e.options,f=b.title||"&#160;",l=a.ui.dialog.getTitleId(e.element),p=(e.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",
-1).css("outline",0).keydown(function(u){if(b.closeOnEscape&&u.keyCode&&u.keyCode===a.ui.keyCode.ESCAPE){e.close(u);u.preventDefault()}}).attr({role:"dialog","aria-labelledby":l}).mousedown(function(u){e.moveToTop(false,u)});e.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(p);var q=(e.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(p),y=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
"button").hover(function(){y.addClass("ui-state-hover")},function(){y.removeClass("ui-state-hover")}).focus(function(){y.addClass("ui-state-focus")}).blur(function(){y.removeClass("ui-state-focus")}).click(function(u){e.close(u);return false}).appendTo(q);(e.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(y);a("<span></span>").addClass("ui-dialog-title").attr("id",l).html(f).prependTo(q);if(a.isFunction(b.beforeclose)&&!a.isFunction(b.beforeClose))b.beforeClose=
b.beforeclose;q.find("*").add(q).disableSelection();b.draggable&&a.fn.draggable&&e._makeDraggable();b.resizable&&a.fn.resizable&&e._makeResizable();e._createButtons(b.buttons);e._isOpen=false;a.fn.bgiframe&&p.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(e){var b=this,f,l;if(false!==b._trigger("beforeClose",e)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",e)});else{b.uiDialog.hide();b._trigger("close",e)}a.ui.dialog.overlay.resize();if(b.options.modal){f=0;a(".ui-dialog").each(function(){if(this!==
b.uiDialog[0]){l=a(this).css("z-index");isNaN(l)||(f=Math.max(f,l))}});a.ui.dialog.maxZ=f}return b}},isOpen:function(){return this._isOpen},moveToTop:function(e,b){var f=this.options;if(f.modal&&!e||!f.stack&&!f.modal)return this._trigger("focus",b);if(f.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=f.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}e={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(e);this._trigger("focus",b);return this},open:function(){if(!this._isOpen){var e=this.options,b=this.uiDialog;this.overlay=e.modal?new a.ui.dialog.overlay(this):null;this._size();this._position(e.position);b.show(e.show);this.moveToTop(true);e.modal&&b.bind("keypress.ui-dialog",function(f){if(f.keyCode===a.ui.keyCode.TAB){var l=a(":tabbable",this),p=l.filter(":first");l=l.filter(":last");if(f.target===l[0]&&!f.shiftKey){p.focus(1);
return false}else if(f.target===p[0]&&f.shiftKey){l.focus(1);return false}}});a(this.element.find(":tabbable").get().concat(b.find(".ui-dialog-buttonpane :tabbable").get().concat(b.get()))).eq(0).focus();this._isOpen=true;this._trigger("open");return this}},_createButtons:function(e){var b=this,f=false,l=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),p=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(l);b.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof e==="object"&&e!==null&&a.each(e,function(){return!(f=true)});if(f){a.each(e,function(q,y){y=a.isFunction(y)?{click:y,text:q}:y;q=a('<button type="button"></button>').attr(y,true).unbind("click").click(function(){y.click.apply(b.element[0],arguments)}).appendTo(p);a.fn.button&&q.button()});l.appendTo(b.uiDialog)}},_makeDraggable:function(){function e(q){return{position:q.position,offset:q.offset}}var b=this,f=b.options,l=a(document),p;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(q,y){p=f.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",q,e(y))},drag:function(q,y){b._trigger("drag",q,e(y))},stop:function(q,y){f.position=[y.position.left-l.scrollLeft(),y.position.top-l.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(p);b._trigger("dragStop",q,e(y));a.ui.dialog.overlay.resize()}})},_makeResizable:function(e){function b(q){return{originalPosition:q.originalPosition,
originalSize:q.originalSize,position:q.position,size:q.size}}e=e===c?this.options.resizable:e;var f=this,l=f.options,p=f.uiDialog.css("position");e=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";f.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:f.element,maxWidth:l.maxWidth,maxHeight:l.maxHeight,minWidth:l.minWidth,minHeight:f._minHeight(),handles:e,start:function(q,y){a(this).addClass("ui-dialog-resizing");f._trigger("resizeStart",q,b(y))},resize:function(q,y){f._trigger("resize",
q,b(y))},stop:function(q,y){a(this).removeClass("ui-dialog-resizing");l.height=a(this).height();l.width=a(this).width();f._trigger("resizeStop",q,b(y));a.ui.dialog.overlay.resize()}}).css("position",p).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(e){var b=[],f=[0,0],l;if(e){if(typeof e==="string"||typeof e==="object"&&"0"in e){b=e.split?e.split(" "):
[e[0],e[1]];if(b.length===1)b[1]=b[0];a.each(["left","top"],function(p,q){if(+b[p]===b[p]){f[p]=b[p];b[p]=q}});e={my:b.join(" "),at:b.join(" "),offset:f.join(" ")}}e=a.extend({},a.ui.dialog.prototype.options.position,e)}else e=a.ui.dialog.prototype.options.position;(l=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},e));l||this.uiDialog.hide()},_setOptions:function(e){var b=this,f={},l=false;a.each(e,function(p,q){b._setOption(p,q);
if(p in g)l=true;if(p in i)f[p]=q});l&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(e,b){var f=this.uiDialog;switch(e){case "beforeclose":e="beforeClose";break;case "buttons":this._createButtons(b);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":f.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?f.addClass("ui-dialog-disabled"):
f.removeClass("ui-dialog-disabled");break;case "draggable":var l=f.is(":data(draggable)");l&&!b&&f.draggable("destroy");!l&&b&&this._makeDraggable();break;case "position":this._position(b);break;case "resizable":(l=f.is(":data(resizable)"))&&!b&&f.resizable("destroy");l&&typeof b==="string"&&f.resizable("option","handles",b);!l&&b!==false&&this._makeResizable(b);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(b||"&#160;"))}a.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var e=this.options,b,f,l=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(e.minWidth>e.width)e.width=e.minWidth;b=this.uiDialog.css({height:"auto",width:e.width}).height();f=Math.max(0,e.minHeight-b);if(e.height==="auto")if(a.support.minHeight)this.element.css({minHeight:f,height:"auto"});else{this.uiDialog.show();e=this.element.css("height","auto").height();l||this.uiDialog.hide();this.element.height(Math.max(e,f))}else this.element.height(Math.max(e.height-
b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.9",uuid:0,maxZ:0,getTitleId:function(e){e=e.attr("id");if(!e){this.uuid+=1;e=this.uuid}return"ui-dialog-title-"+e},overlay:function(e){this.$el=a.ui.dialog.overlay.create(e)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),
create:function(e){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(f){if(a(f.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(f){if(e.options.closeOnEscape&&f.keyCode&&f.keyCode===a.ui.keyCode.ESCAPE){e.close(f);f.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});a.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(e){var b=a.inArray(e,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");e.remove();var f=0;a.each(this.instances,function(){f=Math.max(f,this.css("z-index"))});this.maxZ=f},height:function(){var e,b;if(a.browser.msie&&a.browser.version<7){e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return e<b?a(window).height()+"px":e+"px"}else return a(document).height()+"px"},width:function(){var e,b;if(a.browser.msie&&a.browser.version<7){e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return e<b?a(window).width()+"px":e+"px"}else return a(document).width()+"px"},resize:function(){var e=a([]);a.each(a.ui.dialog.overlay.instances,
function(){e=e.add(this)});e.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.widget("ui.slider",a.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 c=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=a([]);if(g.range){if(g.range===true){this.range=a("<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=a("<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")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(g.values&&g.values.length)for(;a(".ui-slider-handle",this.element).length<g.values.length;)a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".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(i){i.preventDefault()}).hover(function(){g.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(g.disabled)a(this).blur();
else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(i){a(this).data("index.ui-slider-handle",i)});this.handles.keydown(function(i){var e=true,b=a(this).data("index.ui-slider-handle"),f,l,p;if(!c.options.disabled){switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:e=
false;if(!c._keySliding){c._keySliding=true;a(this).addClass("ui-state-active");f=c._start(i,b);if(f===false)return}}p=c.options.step;f=c.options.values&&c.options.values.length?l=c.values(b):l=c.value();switch(i.keyCode){case a.ui.keyCode.HOME:l=c._valueMin();break;case a.ui.keyCode.END:l=c._valueMax();break;case a.ui.keyCode.PAGE_UP:l=c._trimAlignValue(f+(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:l=c._trimAlignValue(f-(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(f===
c._valueMax())return;l=c._trimAlignValue(f+p);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f===c._valueMin())return;l=c._trimAlignValue(f-p)}c._slide(i,b,l);return e}}).keyup(function(i){var e=a(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(i,e);c._change(i,e);a(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(c){var g=this.options,i,e,b,f,l;if(g.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();i=this._normValueFromMouse({x:c.pageX,y:c.pageY});e=this._valueMax()-this._valueMin()+1;f=this;this.handles.each(function(p){var q=Math.abs(i-f.values(p));if(e>q){e=q;b=a(this);l=p}});if(g.range===true&&this.values(1)===g.min){l+=1;b=a(this.handles[l])}if(this._start(c,
l)===false)return false;this._mouseSliding=true;f._handleIndex=l;b.addClass("ui-state-active").focus();g=b.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-g.left-b.width()/2,top:c.pageY-g.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(c,l,i);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(c){var g=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,g);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var g;
if(this.orientation==="horizontal"){g=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{g=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=c/g;if(g>1)g=1;if(g<0)g=0;if(this.orientation==="vertical")g=1-g;c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+g*c)},_start:function(c,g){var i={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){i.value=
this.values(g);i.values=this.values()}return this._trigger("start",c,i)},_slide:function(c,g,i){var e;if(this.options.values&&this.options.values.length){e=this.values(g?0:1);if(this.options.values.length===2&&this.options.range===true&&(g===0&&i>e||g===1&&i<e))i=e;if(i!==this.values(g)){e=this.values();e[g]=i;c=this._trigger("slide",c,{handle:this.handles[g],value:i,values:e});this.values(g?0:1);c!==false&&this.values(g,i,true)}}else if(i!==this.value()){c=this._trigger("slide",c,{handle:this.handles[g],
value:i});c!==false&&this.value(i)}},_stop:function(c,g){var i={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){i.value=this.values(g);i.values=this.values()}this._trigger("stop",c,i)},_change:function(c,g){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[g],value:this.value()};if(this.options.values&&this.options.values.length){i.value=this.values(g);i.values=this.values()}this._trigger("change",c,i)}},value:function(c){if(arguments.length){this.options.value=
this._trimAlignValue(c);this._refreshValue();this._change(null,0)}return this._value()},values:function(c,g){var i,e,b;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(g);this._refreshValue();this._change(null,c)}if(arguments.length)if(a.isArray(arguments[0])){i=this.options.values;e=arguments[0];for(b=0;b<i.length;b+=1){i[b]=this._trimAlignValue(e[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();
else return this._values()},_setOption:function(c,g){var i,e=0;if(a.isArray(this.options.values))e=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(c){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(i=0;i<e;i+=1)this._change(null,i);this._animateOff=false}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(c){var g,i;if(arguments.length){g=this.options.values[c];
return this._trimAlignValue(g)}else{g=this.options.values.slice();for(i=0;i<g.length;i+=1)g[i]=this._trimAlignValue(g[i]);return g}},_trimAlignValue:function(c){if(c<=this._valueMin())return this._valueMin();if(c>=this._valueMax())return this._valueMax();var g=this.options.step>0?this.options.step:1,i=(c-this._valueMin())%g;alignValue=c-i;if(Math.abs(i)*2>=g)alignValue+=i>0?g:-g;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(){var c=this.options.range,g=this.options,i=this,e=!this._animateOff?g.animate:false,b,f={},l,p,q,y;if(this.options.values&&this.options.values.length)this.handles.each(function(u){b=(i.values(u)-i._valueMin())/(i._valueMax()-i._valueMin())*100;f[i.orientation==="horizontal"?"left":"bottom"]=b+"%";a(this).stop(1,1)[e?"animate":"css"](f,g.animate);if(i.options.range===true)if(i.orientation==="horizontal"){if(u===0)i.range.stop(1,1)[e?"animate":"css"]({left:b+"%"},g.animate);
if(u===1)i.range[e?"animate":"css"]({width:b-l+"%"},{queue:false,duration:g.animate})}else{if(u===0)i.range.stop(1,1)[e?"animate":"css"]({bottom:b+"%"},g.animate);if(u===1)i.range[e?"animate":"css"]({height:b-l+"%"},{queue:false,duration:g.animate})}l=b});else{p=this.value();q=this._valueMin();y=this._valueMax();b=y!==q?(p-q)/(y-q)*100:0;f[i.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[e?"animate":"css"](f,g.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,
1)[e?"animate":"css"]({width:b+"%"},g.animate);if(c==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-b+"%"},{queue:false,duration:g.animate});if(c==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:b+"%"},g.animate);if(c==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-b+"%"},{queue:false,duration:g.animate})}}});a.extend(a.ui.slider,{version:"1.8.9"})})(jQuery);
(function(a,c){var g=0,i=0;a.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(e,b){if(e=="selected")this.options.collapsible&&b==this.options.selected||
this.select(b);else{this.options[e]=b;this._tabify()}},_tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++g},_sanitizeSelector:function(e){return e.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++i);return a.cookie.apply(null,[e].concat(a.makeArray(arguments)))},_ui:function(e,b){return{tab:e,panel:b,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=
a(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(e){function b(D,I){D.css("display","");!a.support.opacity&&I.opacity&&D[0].style.removeAttribute("filter")}var f=this,l=this.options,p=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(D,I){var R=a(I).attr("href"),V=R.split("#")[0],Z;if(V&&(V===location.toString().split("#")[0]||
(Z=a("base")[0])&&V===Z.href)){R=I.hash;I.href=R}if(p.test(R))f.panels=f.panels.add(f.element.find(f._sanitizeSelector(R)));else if(R&&R!=="#"){a.data(I,"href.tabs",R);a.data(I,"load.tabs",R.replace(/#.*$/,""));R=f._tabId(I);I.href="#"+R;I=f.element.find("#"+R);if(!I.length){I=a(l.panelTemplate).attr("id",R).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(f.panels[D-1]||f.list);I.data("destroy.tabs",true)}f.panels=f.panels.add(I)}else l.disabled.push(D)});if(e){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(l.selected===c){location.hash&&this.anchors.each(function(D,I){if(I.hash==location.hash){l.selected=D;return false}});if(typeof l.selected!=="number"&&l.cookie)l.selected=parseInt(f._cookie(),10);if(typeof l.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)l.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));l.selected=l.selected||(this.lis.length?0:-1)}else if(l.selected===null)l.selected=-1;l.selected=l.selected>=0&&this.anchors[l.selected]||l.selected<0?l.selected:0;l.disabled=a.unique(l.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(D){return f.lis.index(D)}))).sort();a.inArray(l.selected,l.disabled)!=-1&&l.disabled.splice(a.inArray(l.selected,l.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(l.selected>=0&&this.anchors.length){f.element.find(f._sanitizeSelector(f.anchors[l.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(l.selected).addClass("ui-tabs-selected ui-state-active");f.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[l.selected],f.element.find(f._sanitizeSelector(f.anchors[l.selected].hash))[0]))});this.load(l.selected)}a(window).bind("unload",function(){f.lis.add(f.anchors).unbind(".tabs");f.lis=f.anchors=f.panels=null})}else l.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[l.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");l.cookie&&this._cookie(l.selected,l.cookie);e=0;for(var q;q=this.lis[e];e++)a(q)[a.inArray(e,l.disabled)!=-1&&!a(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");l.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(l.event!=="mouseover"){var y=function(D,I){I.is(":not(.ui-state-disabled)")&&I.addClass("ui-state-"+D)};this.lis.bind("mouseover.tabs",
function(){y("hover",a(this))});this.lis.bind("mouseout.tabs",function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){y("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var u,o;if(l.fx)if(a.isArray(l.fx)){u=l.fx[0];o=l.fx[1]}else u=o=l.fx;var v=o?function(D,I){a(D).closest("li").addClass("ui-tabs-selected ui-state-active");I.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
function(){b(I,o);f._trigger("show",null,f._ui(D,I[0]))})}:function(D,I){a(D).closest("li").addClass("ui-tabs-selected ui-state-active");I.removeClass("ui-tabs-hide");f._trigger("show",null,f._ui(D,I[0]))},z=u?function(D,I){I.animate(u,u.duration||"normal",function(){f.lis.removeClass("ui-tabs-selected ui-state-active");I.addClass("ui-tabs-hide");b(I,u);f.element.dequeue("tabs")})}:function(D,I){f.lis.removeClass("ui-tabs-selected ui-state-active");I.addClass("ui-tabs-hide");f.element.dequeue("tabs")};
this.anchors.bind(l.event+".tabs",function(){var D=this,I=a(D).closest("li"),R=f.panels.filter(":not(.ui-tabs-hide)"),V=f.element.find(f._sanitizeSelector(D.hash));if(I.hasClass("ui-tabs-selected")&&!l.collapsible||I.hasClass("ui-state-disabled")||I.hasClass("ui-state-processing")||f.panels.filter(":animated").length||f._trigger("select",null,f._ui(this,V[0]))===false){this.blur();return false}l.selected=f.anchors.index(this);f.abort();if(l.collapsible)if(I.hasClass("ui-tabs-selected")){l.selected=
-1;l.cookie&&f._cookie(l.selected,l.cookie);f.element.queue("tabs",function(){z(D,R)}).dequeue("tabs");this.blur();return false}else if(!R.length){l.cookie&&f._cookie(l.selected,l.cookie);f.element.queue("tabs",function(){v(D,V)});f.load(f.anchors.index(this));this.blur();return false}l.cookie&&f._cookie(l.selected,l.cookie);if(V.length){R.length&&f.element.queue("tabs",function(){z(D,R)});f.element.queue("tabs",function(){v(D,V)});f.load(f.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(e){if(typeof e=="string")e=this.anchors.index(this.anchors.filter("[href$="+e+"]"));return e},destroy:function(){var e=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 b=
a.data(this,"href.tabs");if(b)this.href=b;var f=a(this).unbind(".tabs");a.each(["href","load","cache"],function(l,p){f.removeData(p+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(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")});e.cookie&&this._cookie(null,e.cookie);return this},add:function(e,
b,f){if(f===c)f=this.anchors.length;var l=this,p=this.options;b=a(p.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,b));e=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",b)[0]);b.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=l.element.find("#"+e);q.length||(q=a(p.panelTemplate).attr("id",e).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(f>=this.lis.length){b.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{b.insertBefore(this.lis[f]);
q.insertBefore(this.panels[f])}p.disabled=a.map(p.disabled,function(y){return y>=f?++y:y});this._tabify();if(this.anchors.length==1){p.selected=0;b.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){l._trigger("show",null,l._ui(l.anchors[0],l.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[f],this.panels[f]));return this},remove:function(e){e=this._getIndex(e);var b=this.options,f=this.lis.eq(e).remove(),l=this.panels.eq(e).remove();
if(f.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(e+(e+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(p){return p!=e}),function(p){return p>=e?--p:p});this._tabify();this._trigger("remove",null,this._ui(f.find("a")[0],l[0]));return this},enable:function(e){e=this._getIndex(e);var b=this.options;if(a.inArray(e,b.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");b.disabled=a.grep(b.disabled,function(f){return f!=e});this._trigger("enable",null,
this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){e=this._getIndex(e);var b=this.options;if(e!=b.selected){this.lis.eq(e).addClass("ui-state-disabled");b.disabled.push(e);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},select:function(e){e=this._getIndex(e);if(e==-1)if(this.options.collapsible&&this.options.selected!=-1)e=this.options.selected;else return this;this.anchors.eq(e).trigger(this.options.event+".tabs");return this},
load:function(e){e=this._getIndex(e);var b=this,f=this.options,l=this.anchors.eq(e)[0],p=a.data(l,"load.tabs");this.abort();if(!p||this.element.queue("tabs").length!==0&&a.data(l,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(e).addClass("ui-state-processing");if(f.spinner){var q=a("span",l);q.data("label.tabs",q.html()).html(f.spinner)}this.xhr=a.ajax(a.extend({},f.ajaxOptions,{url:p,success:function(y,u){b.element.find(b._sanitizeSelector(l.hash)).html(y);b._cleanup();f.cache&&a.data(l,
"cache.tabs",true);b._trigger("load",null,b._ui(b.anchors[e],b.panels[e]));try{f.ajaxOptions.success(y,u)}catch(o){}},error:function(y,u){b._cleanup();b._trigger("load",null,b._ui(b.anchors[e],b.panels[e]));try{f.ajaxOptions.error(y,u,e,l)}catch(o){}}}));b.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(e,b){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.9"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(e,b){var f=this,l=this.options,p=f._rotate||(f._rotate=function(q){clearTimeout(f.rotation);f.rotation=setTimeout(function(){var y=l.selected;f.select(++y<f.anchors.length?y:0)},e);q&&q.stopPropagation()});b=f._unrotate||(f._unrotate=!b?function(q){q.clientX&&
f.rotate(null)}:function(){t=l.selected;p()});if(e){this.element.bind("tabsshow",p);this.anchors.bind(l.event+".tabs",b);p()}else{clearTimeout(f.rotation);this.element.unbind("tabsshow",p);this.anchors.unbind(l.event+".tabs",b);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(a,c){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};a.extend(this._defaults,this.regional[""]);this.dpDiv=a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function i(b,f){a.extend(b,f);for(var l in f)if(f[l]==
null||f[l]==c)b[l]=f[l];return b}a.extend(a.ui,{datepicker:{version:"1.8.9"}});var e=(new Date).getTime();a.extend(g.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){i(this._defaults,b||{});return this},_attachDatepicker:function(b,f){var l=null,p;for(p in this._defaults){var q=b.getAttribute("date:"+p);if(q){l=l||{};try{l[p]=eval(q)}catch(y){l[p]=q}}}p=b.nodeName.toLowerCase();
q=p=="div"||p=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var u=this._newInst(a(b),q);u.settings=a.extend({},f||{},l||{});if(p=="input")this._connectDatepicker(b,u);else q&&this._inlineDatepicker(b,u)},_newInst:function(b,f){return{id:b[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(b,f){var l=a(b);f.append=a([]);f.trigger=a([]);if(!l.hasClass(this.markerClassName)){this._attachments(l,f);l.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(p,q,y){f.settings[q]=y}).bind("getData.datepicker",function(p,q){return this._get(f,q)});this._autoSize(f);a.data(b,"datepicker",f)}},_attachments:function(b,f){var l=this._get(f,"appendText"),p=this._get(f,"isRTL");f.append&&
f.append.remove();if(l){f.append=a('<span class="'+this._appendClass+'">'+l+"</span>");b[p?"before":"after"](f.append)}b.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();l=this._get(f,"showOn");if(l=="focus"||l=="both")b.focus(this._showDatepicker);if(l=="button"||l=="both"){l=this._get(f,"buttonText");var q=this._get(f,"buttonImage");f.trigger=a(this._get(f,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:q,alt:l,title:l}):a('<button type="button"></button>').addClass(this._triggerClass).html(q==
""?l:a("<img/>").attr({src:q,alt:l,title:l})));b[p?"before":"after"](f.trigger);f.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var f=new Date(2009,11,20),l=this._get(b,"dateFormat");if(l.match(/[DM]/)){var p=function(q){for(var y=0,u=0,o=0;o<q.length;o++)if(q[o].length>y){y=q[o].length;u=o}return u};f.setMonth(p(this._get(b,
l.match(/MM/)?"monthNames":"monthNamesShort")));f.setDate(p(this._get(b,l.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())}b.input.attr("size",this._formatDate(b,f).length)}},_inlineDatepicker:function(b,f){var l=a(b);if(!l.hasClass(this.markerClassName)){l.addClass(this.markerClassName).append(f.dpDiv).bind("setData.datepicker",function(p,q,y){f.settings[q]=y}).bind("getData.datepicker",function(p,q){return this._get(f,q)});a.data(b,"datepicker",f);this._setDate(f,this._getDefaultDate(f),
true);this._updateDatepicker(f);this._updateAlternate(f);f.dpDiv.show()}},_dialogDatepicker:function(b,f,l,p,q){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}i(b.settings,p||{});
f=f&&f.constructor==Date?this._formatDate(b,f):f;this._dialogInput.val(f);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");b.settings.onSelect=l;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var f=a(b),l=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var p=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(p=="input"){l.append.remove();l.trigger.remove();f.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
this._doKeyUp)}else if(p=="div"||p=="span")f.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(b){var f=a(b),l=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var p=b.nodeName.toLowerCase();if(p=="input"){b.disabled=false;l.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(p=="div"||p=="span")f.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,
function(q){return q==b?null:q})}},_disableDatepicker:function(b){var f=a(b),l=a.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var p=b.nodeName.toLowerCase();if(p=="input"){b.disabled=true;l.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(p=="div"||p=="span")f.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(q){return q==b?null:
q});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;for(var f=0;f<this._disabledInputs.length;f++)if(this._disabledInputs[f]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(f){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,f,l){var p=this._getInst(b);if(arguments.length==2&&typeof f=="string")return f=="defaults"?a.extend({},a.datepicker._defaults):p?f=="all"?a.extend({},
p.settings):this._get(p,f):null;var q=f||{};if(typeof f=="string"){q={};q[f]=l}if(p){this._curInst==p&&this._hideDatepicker();var y=this._getDateDatepicker(b,true);i(p.settings,q);this._attachments(a(b),p);this._autoSize(p);this._setDateDatepicker(b,y);this._updateDatepicker(p)}},_changeDatepicker:function(b,f,l){this._optionDatepicker(b,f,l)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,f){if(b=this._getInst(b)){this._setDate(b,f);
this._updateDatepicker(b);this._updateAlternate(b)}},_getDateDatepicker:function(b,f){(b=this._getInst(b))&&!b.inline&&this._setDateFromField(b,f);return b?this._getDate(b):null},_doKeyDown:function(b){var f=a.datepicker._getInst(b.target),l=true,p=f.dpDiv.is(".ui-datepicker-rtl");f._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();l=false;break;case 13:l=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv);l[0]?
a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,l[0]):a.datepicker._hideDatepicker();return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)a.datepicker._clearDate(b.target);l=b.ctrlKey||
b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)a.datepicker._gotoToday(b.target);l=b.ctrlKey||b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,p?+1:-1,"D");l=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,-7,"D");l=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,
p?-1:+1,"D");l=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,+7,"D");l=b.ctrlKey||b.metaKey;break;default:l=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else l=false;if(l){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var f=a.datepicker._getInst(b.target);if(a.datepicker._get(f,
"constrainInput")){f=a.datepicker._possibleChars(a.datepicker._get(f,"dateFormat"));var l=String.fromCharCode(b.charCode==c?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||l<" "||!f||f.indexOf(l)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(f){a.datepicker.log(f)}return true},
_showDatepicker:function(b){b=b.target||b;if(b.nodeName.toLowerCase()!="input")b=a("input",b.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var f=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=f&&a.datepicker._curInst.dpDiv.stop(true,true);var l=a.datepicker._get(f,"beforeShow");i(f.settings,l?l.apply(b,[b,f]):{});f.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(f);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos){a.datepicker._pos=
a.datepicker._findPos(b);a.datepicker._pos[1]+=b.offsetHeight}var p=false;a(b).parents().each(function(){p|=a(this).css("position")=="fixed";return!p});if(p&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}l={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;f.dpDiv.empty();f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(f);l=a.datepicker._checkOffset(f,
l,p);f.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":p?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"});if(!f.inline){l=a.datepicker._get(f,"showAnim");var q=a.datepicker._get(f,"duration"),y=function(){a.datepicker._datepickerShowing=true;var u=f.dpDiv.find("iframe.ui-datepicker-cover");if(u.length){var o=a.datepicker._getBorders(f.dpDiv);u.css({left:-o[0],top:-o[1],width:f.dpDiv.outerWidth(),height:f.dpDiv.outerHeight()})}};f.dpDiv.zIndex(a(b).zIndex()+1);a.effects&&
a.effects[l]?f.dpDiv.show(l,a.datepicker._get(f,"showOptions"),q,y):f.dpDiv[l||"show"](l?q:null,y);if(!l||!q)y();f.input.is(":visible")&&!f.input.is(":disabled")&&f.input.focus();a.datepicker._curInst=f}}},_updateDatepicker:function(b){var f=this,l=a.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b));var p=b.dpDiv.find("iframe.ui-datepicker-cover");p.length&&p.css({left:-l[0],top:-l[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()});b.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",
function(){a(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!f._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");a(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=
-1&&a(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();l=this._getNumberOfMonths(b);p=l[1];p>1?b.dpDiv.addClass("ui-datepicker-multi-"+p).css("width",17*p+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(l[0]!=1||l[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,
"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();if(b.yearshtml){var q=b.yearshtml;setTimeout(function(){q===b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);q=b.yearshtml=null},0)}},_getBorders:function(b){var f=function(l){return{thin:1,medium:2,thick:3}[l]||l};return[parseFloat(f(b.css("border-left-width"))),parseFloat(f(b.css("border-top-width")))]},
_checkOffset:function(b,f,l){var p=b.dpDiv.outerWidth(),q=b.dpDiv.outerHeight(),y=b.input?b.input.outerWidth():0,u=b.input?b.input.outerHeight():0,o=document.documentElement.clientWidth+a(document).scrollLeft(),v=document.documentElement.clientHeight+a(document).scrollTop();f.left-=this._get(b,"isRTL")?p-y:0;f.left-=l&&f.left==b.input.offset().left?a(document).scrollLeft():0;f.top-=l&&f.top==b.input.offset().top+u?a(document).scrollTop():0;f.left-=Math.min(f.left,f.left+p>o&&o>p?Math.abs(f.left+p-
o):0);f.top-=Math.min(f.top,f.top+q>v&&v>q?Math.abs(q+u):0);return f},_findPos:function(b){for(var f=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[f?"previousSibling":"nextSibling"];b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var f=this._curInst;if(!(!f||b&&f!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(f,"showAnim");var l=this._get(f,"duration"),p=function(){a.datepicker._tidyDialog(f);this._curInst=null};a.effects&&a.effects[b]?
f.dpDiv.hide(b,a.datepicker._get(f,"showOptions"),l,p):f.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?l:null,p);b||p();if(b=this._get(f,"onClose"))b.apply(f.input?f.input[0]:null,[f.input?f.input.val():"",f]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,f,l){b=a(b);var p=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(p,f+(l=="M"?this._get(p,"showCurrentAtPos"):
0),l);this._updateDatepicker(p)}},_gotoToday:function(b){b=a(b);var f=this._getInst(b[0]);if(this._get(f,"gotoCurrent")&&f.currentDay){f.selectedDay=f.currentDay;f.drawMonth=f.selectedMonth=f.currentMonth;f.drawYear=f.selectedYear=f.currentYear}else{var l=new Date;f.selectedDay=l.getDate();f.drawMonth=f.selectedMonth=l.getMonth();f.drawYear=f.selectedYear=l.getFullYear()}this._notifyChange(f);this._adjustDate(b)},_selectMonthYear:function(b,f,l){b=a(b);var p=this._getInst(b[0]);p._selectingMonthYear=
false;p["selected"+(l=="M"?"Month":"Year")]=p["draw"+(l=="M"?"Month":"Year")]=parseInt(f.options[f.selectedIndex].value,10);this._notifyChange(p);this._adjustDate(b)},_clickMonthYear:function(b){var f=this._getInst(a(b)[0]);f.input&&f._selectingMonthYear&&setTimeout(function(){f.input.focus()},0);f._selectingMonthYear=!f._selectingMonthYear},_selectDay:function(b,f,l,p){var q=a(b);if(!(a(p).hasClass(this._unselectableClass)||this._isDisabledDatepicker(q[0]))){q=this._getInst(q[0]);q.selectedDay=q.currentDay=
a("a",p).html();q.selectedMonth=q.currentMonth=f;q.selectedYear=q.currentYear=l;this._selectDate(b,this._formatDate(q,q.currentDay,q.currentMonth,q.currentYear))}},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,f){b=this._getInst(a(b)[0]);f=f!=null?f:this._formatDate(b);b.input&&b.input.val(f);this._updateAlternate(b);var l=this._get(b,"onSelect");if(l)l.apply(b.input?b.input[0]:null,[f,b]);else b.input&&b.input.trigger("change");if(b.inline)this._updateDatepicker(b);
else{this._hideDatepicker();this._lastInput=b.input[0];typeof b.input[0]!="object"&&b.input.focus();this._lastInput=null}},_updateAlternate:function(b){var f=this._get(b,"altField");if(f){var l=this._get(b,"altFormat")||this._get(b,"dateFormat"),p=this._getDate(b),q=this.formatDate(l,p,this._getFormatConfig(b));a(f).each(function(){a(this).val(q)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var f=
b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((f-b)/864E5)/7)+1},parseDate:function(b,f,l){if(b==null||f==null)throw"Invalid arguments";f=typeof f=="object"?f.toString():f+"";if(f=="")return null;var p=(l?l.shortYearCutoff:null)||this._defaults.shortYearCutoff;p=typeof p!="string"?p:(new Date).getFullYear()%100+parseInt(p,10);for(var q=(l?l.dayNamesShort:null)||this._defaults.dayNamesShort,y=(l?l.dayNames:null)||this._defaults.dayNames,u=(l?l.monthNamesShort:null)||this._defaults.monthNamesShort,
o=(l?l.monthNames:null)||this._defaults.monthNames,v=l=-1,z=-1,D=-1,I=false,R=function(fa){(fa=oa+1<b.length&&b.charAt(oa+1)==fa)&&oa++;return fa},V=function(fa){var na=R(fa);fa=f.substring(ea).match(RegExp("^\\d{1,"+(fa=="@"?14:fa=="!"?20:fa=="y"&&na?4:fa=="o"?3:2)+"}"));if(!fa)throw"Missing number at position "+ea;ea+=fa[0].length;return parseInt(fa[0],10)},Z=function(fa,na,Ba){fa=R(fa)?Ba:na;for(na=0;na<fa.length;na++)if(f.substr(ea,fa[na].length).toLowerCase()==fa[na].toLowerCase()){ea+=fa[na].length;
return na+1}throw"Unknown name at position "+ea;},ca=function(){if(f.charAt(ea)!=b.charAt(oa))throw"Unexpected literal at position "+ea;ea++},ea=0,oa=0;oa<b.length;oa++)if(I)if(b.charAt(oa)=="'"&&!R("'"))I=false;else ca();else switch(b.charAt(oa)){case "d":z=V("d");break;case "D":Z("D",q,y);break;case "o":D=V("o");break;case "m":v=V("m");break;case "M":v=Z("M",u,o);break;case "y":l=V("y");break;case "@":var ma=new Date(V("@"));l=ma.getFullYear();v=ma.getMonth()+1;z=ma.getDate();break;case "!":ma=
new Date((V("!")-this._ticksTo1970)/1E4);l=ma.getFullYear();v=ma.getMonth()+1;z=ma.getDate();break;case "'":if(R("'"))ca();else I=true;break;default:ca()}if(l==-1)l=(new Date).getFullYear();else if(l<100)l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(l<=p?0:-100);if(D>-1){v=1;z=D;do{p=this._getDaysInMonth(l,v-1);if(z<=p)break;v++;z-=p}while(1)}ma=this._daylightSavingAdjust(new Date(l,v-1,z));if(ma.getFullYear()!=l||ma.getMonth()+1!=v||ma.getDate()!=z)throw"Invalid date";return ma},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))*864E9,formatDate:function(b,f,l){if(!f)return"";var p=(l?l.dayNamesShort:null)||this._defaults.dayNamesShort,q=(l?l.dayNames:null)||this._defaults.dayNames,y=(l?l.monthNamesShort:null)||this._defaults.monthNamesShort;l=(l?l.monthNames:
null)||this._defaults.monthNames;var u=function(R){(R=I+1<b.length&&b.charAt(I+1)==R)&&I++;return R},o=function(R,V,Z){V=""+V;if(u(R))for(;V.length<Z;)V="0"+V;return V},v=function(R,V,Z,ca){return u(R)?ca[V]:Z[V]},z="",D=false;if(f)for(var I=0;I<b.length;I++)if(D)if(b.charAt(I)=="'"&&!u("'"))D=false;else z+=b.charAt(I);else switch(b.charAt(I)){case "d":z+=o("d",f.getDate(),2);break;case "D":z+=v("D",f.getDay(),p,q);break;case "o":z+=o("o",(f.getTime()-(new Date(f.getFullYear(),0,0)).getTime())/864E5,
3);break;case "m":z+=o("m",f.getMonth()+1,2);break;case "M":z+=v("M",f.getMonth(),y,l);break;case "y":z+=u("y")?f.getFullYear():(f.getYear()%100<10?"0":"")+f.getYear()%100;break;case "@":z+=f.getTime();break;case "!":z+=f.getTime()*1E4+this._ticksTo1970;break;case "'":if(u("'"))z+="'";else D=true;break;default:z+=b.charAt(I)}return z},_possibleChars:function(b){for(var f="",l=false,p=function(y){(y=q+1<b.length&&b.charAt(q+1)==y)&&q++;return y},q=0;q<b.length;q++)if(l)if(b.charAt(q)=="'"&&!p("'"))l=
false;else f+=b.charAt(q);else switch(b.charAt(q)){case "d":case "m":case "y":case "@":f+="0123456789";break;case "D":case "M":return null;case "'":if(p("'"))f+="'";else l=true;break;default:f+=b.charAt(q)}return f},_get:function(b,f){return b.settings[f]!==c?b.settings[f]:this._defaults[f]},_setDateFromField:function(b,f){if(b.input.val()!=b.lastVal){var l=this._get(b,"dateFormat"),p=b.lastVal=b.input?b.input.val():null,q,y;q=y=this._getDefaultDate(b);var u=this._getFormatConfig(b);try{q=this.parseDate(l,
p,u)||y}catch(o){this.log(o);p=f?"":p}b.selectedDay=q.getDate();b.drawMonth=b.selectedMonth=q.getMonth();b.drawYear=b.selectedYear=q.getFullYear();b.currentDay=p?q.getDate():0;b.currentMonth=p?q.getMonth():0;b.currentYear=p?q.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},_determineDate:function(b,f,l){var p=function(q){var y=new Date;y.setDate(y.getDate()+q);return y};if(f=(f=f==null||
f===""?l:typeof f=="string"?function(q){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),q,a.datepicker._getFormatConfig(b))}catch(y){}var u=(q.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,o=u.getFullYear(),v=u.getMonth();u=u.getDate();for(var z=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,D=z.exec(q);D;){switch(D[2]||"d"){case "d":case "D":u+=parseInt(D[1],10);break;case "w":case "W":u+=parseInt(D[1],10)*7;break;case "m":case "M":v+=parseInt(D[1],10);u=Math.min(u,
a.datepicker._getDaysInMonth(o,v));break;case "y":case "Y":o+=parseInt(D[1],10);u=Math.min(u,a.datepicker._getDaysInMonth(o,v))}D=z.exec(q)}return new Date(o,v,u)}(f):typeof f=="number"?isNaN(f)?l:p(f):new Date(f.getTime()))&&f.toString()=="Invalid Date"?l:f){f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0)}return this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,f,l){var p=
!f,q=b.selectedMonth,y=b.selectedYear;f=this._restrictMinMax(b,this._determineDate(b,f,new Date));b.selectedDay=b.currentDay=f.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=f.getMonth();b.drawYear=b.selectedYear=b.currentYear=f.getFullYear();if((q!=b.selectedMonth||y!=b.selectedYear)&&!l)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(p?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,
b.currentMonth,b.currentDay))},_generateHTML:function(b){var f=new Date;f=this._daylightSavingAdjust(new Date(f.getFullYear(),f.getMonth(),f.getDate()));var l=this._get(b,"isRTL"),p=this._get(b,"showButtonPanel"),q=this._get(b,"hideIfNoPrevNext"),y=this._get(b,"navigationAsDateFormat"),u=this._getNumberOfMonths(b),o=this._get(b,"showCurrentAtPos"),v=this._get(b,"stepMonths"),z=u[0]!=1||u[1]!=1,D=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),
I=this._getMinMaxDate(b,"min"),R=this._getMinMaxDate(b,"max");o=b.drawMonth-o;var V=b.drawYear;if(o<0){o+=12;V--}if(R){var Z=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth()-u[0]*u[1]+1,R.getDate()));for(Z=I&&Z<I?I:Z;this._daylightSavingAdjust(new Date(V,o,1))>Z;){o--;if(o<0){o=11;V--}}}b.drawMonth=o;b.drawYear=V;Z=this._get(b,"prevText");Z=!y?Z:this.formatDate(Z,this._daylightSavingAdjust(new Date(V,o-v,1)),this._getFormatConfig(b));Z=this._canAdjustMonth(b,-1,V,o)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+
e+".datepicker._adjustDate('#"+b.id+"', -"+v+", 'M');\" title=\""+Z+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"e":"w")+'">'+Z+"</span></a>":q?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+Z+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"e":"w")+'">'+Z+"</span></a>";var ca=this._get(b,"nextText");ca=!y?ca:this.formatDate(ca,this._daylightSavingAdjust(new Date(V,o+v,1)),this._getFormatConfig(b));q=this._canAdjustMonth(b,+1,V,o)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+
e+".datepicker._adjustDate('#"+b.id+"', +"+v+", 'M');\" title=\""+ca+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"w":"e")+'">'+ca+"</span></a>":q?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ca+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"w":"e")+'">'+ca+"</span></a>";v=this._get(b,"currentText");ca=this._get(b,"gotoCurrent")&&b.currentDay?D:f;v=!y?v:this.formatDate(v,ca,this._getFormatConfig(b));y=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+
e+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";p=p?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(l?y:"")+(this._isInRange(b,ca)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+e+".datepicker._gotoToday('#"+b.id+"');\">"+v+"</button>":"")+(l?"":y)+"</div>":"";y=parseInt(this._get(b,"firstDay"),10);y=isNaN(y)?0:y;v=this._get(b,"showWeek");ca=this._get(b,"dayNames");this._get(b,
"dayNamesShort");var ea=this._get(b,"dayNamesMin"),oa=this._get(b,"monthNames"),ma=this._get(b,"monthNamesShort"),fa=this._get(b,"beforeShowDay"),na=this._get(b,"showOtherMonths"),Ba=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var S=this._getDefaultDate(b),Pa="",Ca=0;Ca<u[0];Ca++){for(var j="",wa=0;wa<u[1];wa++){var Ja=this._daylightSavingAdjust(new Date(V,o,b.selectedDay)),la=" ui-corner-all",pa="";if(z){pa+='<div class="ui-datepicker-group';if(u[1]>1)switch(wa){case 0:pa+=
" ui-datepicker-group-first";la=" ui-corner-"+(l?"right":"left");break;case u[1]-1:pa+=" ui-datepicker-group-last";la=" ui-corner-"+(l?"left":"right");break;default:pa+=" ui-datepicker-group-middle";la=""}pa+='">'}pa+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+la+'">'+(/all|left/.test(la)&&Ca==0?l?q:Z:"")+(/all|right/.test(la)&&Ca==0?l?Z:q:"")+this._generateMonthYearHeader(b,o,V,I,R,Ca>0||wa>0,oa,ma)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var ua=v?'<th class="ui-datepicker-week-col">'+
this._get(b,"weekHeader")+"</th>":"";for(la=0;la<7;la++){var ia=(la+y)%7;ua+="<th"+((la+y+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+ca[ia]+'">'+ea[ia]+"</span></th>"}pa+=ua+"</tr></thead><tbody>";ua=this._getDaysInMonth(V,o);if(V==b.selectedYear&&o==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,ua);la=(this._getFirstDayOfMonth(V,o)-y+7)%7;ua=z?6:Math.ceil((la+ua)/7);ia=this._daylightSavingAdjust(new Date(V,o,1-la));for(var Sa=0;Sa<ua;Sa++){pa+="<tr>";var Ta=!v?"":'<td class="ui-datepicker-week-col">'+
this._get(b,"calculateWeek")(ia)+"</td>";for(la=0;la<7;la++){var Ka=fa?fa.apply(b.input?b.input[0]:null,[ia]):[true,""],ya=ia.getMonth()!=o,La=ya&&!Ba||!Ka[0]||I&&ia<I||R&&ia>R;Ta+='<td class="'+((la+y+6)%7>=5?" ui-datepicker-week-end":"")+(ya?" ui-datepicker-other-month":"")+(ia.getTime()==Ja.getTime()&&o==b.selectedMonth&&b._keyEvent||S.getTime()==ia.getTime()&&S.getTime()==Ja.getTime()?" "+this._dayOverClass:"")+(La?" "+this._unselectableClass+" ui-state-disabled":"")+(ya&&!na?"":" "+Ka[1]+(ia.getTime()==
D.getTime()?" "+this._currentClass:"")+(ia.getTime()==f.getTime()?" ui-datepicker-today":""))+'"'+((!ya||na)&&Ka[2]?' title="'+Ka[2]+'"':"")+(La?"":' onclick="DP_jQuery_'+e+".datepicker._selectDay('#"+b.id+"',"+ia.getMonth()+","+ia.getFullYear()+', this);return false;"')+">"+(ya&&!na?"&#xa0;":La?'<span class="ui-state-default">'+ia.getDate()+"</span>":'<a class="ui-state-default'+(ia.getTime()==f.getTime()?" ui-state-highlight":"")+(ia.getTime()==D.getTime()?" ui-state-active":"")+(ya?" ui-priority-secondary":
"")+'" href="#">'+ia.getDate()+"</a>")+"</td>";ia.setDate(ia.getDate()+1);ia=this._daylightSavingAdjust(ia)}pa+=Ta+"</tr>"}o++;if(o>11){o=0;V++}pa+="</tbody></table>"+(z?"</div>"+(u[0]>0&&wa==u[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");j+=pa}Pa+=j}Pa+=p+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");b._keyEvent=false;return Pa},_generateMonthYearHeader:function(b,f,l,p,q,y,u,
o){var v=this._get(b,"changeMonth"),z=this._get(b,"changeYear"),D=this._get(b,"showMonthAfterYear"),I='<div class="ui-datepicker-title">',R="";if(y||!v)R+='<span class="ui-datepicker-month">'+u[f]+"</span>";else{u=p&&p.getFullYear()==l;var V=q&&q.getFullYear()==l;R+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+e+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+b.id+"');\">";for(var Z=0;Z<12;Z++)if((!u||Z>=p.getMonth())&&
(!V||Z<=q.getMonth()))R+='<option value="'+Z+'"'+(Z==f?' selected="selected"':"")+">"+o[Z]+"</option>";R+="</select>"}D||(I+=R+(y||!(v&&z)?"&#xa0;":""));b.yearshtml="";if(y||!z)I+='<span class="ui-datepicker-year">'+l+"</span>";else{o=this._get(b,"yearRange").split(":");var ca=(new Date).getFullYear();u=function(ea){ea=ea.match(/c[+-].*/)?l+parseInt(ea.substring(1),10):ea.match(/[+-].*/)?ca+parseInt(ea,10):parseInt(ea,10);return isNaN(ea)?ca:ea};f=u(o[0]);o=Math.max(f,u(o[1]||""));f=p?Math.max(f,
p.getFullYear()):f;o=q?Math.min(o,q.getFullYear()):o;for(b.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+e+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+b.id+"');\">";f<=o;f++)b.yearshtml+='<option value="'+f+'"'+(f==l?' selected="selected"':"")+">"+f+"</option>";b.yearshtml+="</select>";if(a.browser.mozilla)I+='<select class="ui-datepicker-year"><option value="'+l+'" selected="selected">'+l+"</option></select>";
else{I+=b.yearshtml;b.yearshtml=null}}I+=this._get(b,"yearSuffix");if(D)I+=(y||!(v&&z)?"&#xa0;":"")+R;I+="</div>";return I},_adjustInstDate:function(b,f,l){var p=b.drawYear+(l=="Y"?f:0),q=b.drawMonth+(l=="M"?f:0);f=Math.min(b.selectedDay,this._getDaysInMonth(p,q))+(l=="D"?f:0);p=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(p,q,f)));b.selectedDay=p.getDate();b.drawMonth=b.selectedMonth=p.getMonth();b.drawYear=b.selectedYear=p.getFullYear();if(l=="M"||l=="Y")this._notifyChange(b)},_restrictMinMax:function(b,
f){var l=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");f=l&&f<l?l:f;return b&&f>b?b:f},_notifyChange:function(b){var f=this._get(b,"onChangeMonthYear");if(f)f.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,f){return this._determineDate(b,this._get(b,f+"Date"),null)},_getDaysInMonth:function(b,f){return 32-(new Date(b,f,32)).getDate()},
_getFirstDayOfMonth:function(b,f){return(new Date(b,f,1)).getDay()},_canAdjustMonth:function(b,f,l,p){var q=this._getNumberOfMonths(b);l=this._daylightSavingAdjust(new Date(l,p+(f<0?f:q[0]*q[1]),1));f<0&&l.setDate(this._getDaysInMonth(l.getFullYear(),l.getMonth()));return this._isInRange(b,l)},_isInRange:function(b,f){var l=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");return(!l||f.getTime()>=l.getTime())&&(!b||f.getTime()<=b.getTime())},_getFormatConfig:function(b){var f=this._get(b,
"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,f,l,p){if(!f){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(p,l,f)):this._daylightSavingAdjust(new Date(b.currentYear,
b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),f,this._getFormatConfig(b))}});a.fn.datepicker=function(b){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(f));if(b=="option"&&
arguments.length==2&&typeof arguments[1]=="string")return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(f));return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(f)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new g;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.9";window["DP_jQuery_"+e]=a})(jQuery);
(function(a,c){a.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=a("<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();a.Widget.prototype.destroy.apply(this,arguments)},value:function(g){if(g===c)return this._value();this._setOption("value",g);return this},_setOption:function(g,i){if(g==="value"){this.options.value=i;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.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(),i=this._percentage();if(this.oldValue!==g){this.oldValue=g;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",g===this.options.max).width(i.toFixed(0)+"%");this.element.attr("aria-valuenow",g)}});a.extend(a.ui.progressbar,{version:"1.8.9"})})(jQuery);
jQuery.effects||function(a,c){function g(u){var o;if(u&&u.constructor==Array&&u.length==3)return u;if(o=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(u))return[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10)];if(o=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(u))return[parseFloat(o[1])*2.55,parseFloat(o[2])*2.55,parseFloat(o[3])*2.55];if(o=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(u))return[parseInt(o[1],
16),parseInt(o[2],16),parseInt(o[3],16)];if(o=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(u))return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(u))return p.transparent;return p[a.trim(u).toLowerCase()]}function i(){var u=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,o={},v,z;if(u&&u.length&&u[0]&&u[u[0]])for(var D=u.length;D--;){v=u[D];if(typeof u[v]=="string"){z=v.replace(/\-(\w)/g,function(I,R){return R.toUpperCase()});
o[z]=u[v]}}else for(v in u)if(typeof u[v]==="string")o[v]=u[v];return o}function e(u){var o,v;for(o in u){v=u[o];if(v==null||a.isFunction(v)||o in y||/scrollbar/.test(o)||!/color/i.test(o)&&isNaN(parseFloat(v)))delete u[o]}return u}function b(u,o){var v={_:0},z;for(z in o)if(u[z]!=o[z])v[z]=o[z];return v}function f(u,o,v,z){if(typeof u=="object"){z=o;v=null;o=u;u=o.effect}if(a.isFunction(o)){z=o;v=null;o={}}if(typeof o=="number"||a.fx.speeds[o]){z=v;v=o;o={}}if(a.isFunction(v)){z=v;v=null}o=o||{};
v=v||o.duration;v=a.fx.off?0:typeof v=="number"?v:v in a.fx.speeds?a.fx.speeds[v]:a.fx.speeds._default;z=z||o.complete;return[u,o,v,z]}function l(u){if(!u||typeof u==="number"||a.fx.speeds[u])return true;if(typeof u==="string"&&!a.effects[u])return true;return false}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(u,o){a.fx.step[o]=function(v){if(!v.colorInit){var z;z=v.elem;var D=o,I;do{I=
a.curCSS(z,D);if(I!=""&&I!="transparent"||a.nodeName(z,"body"))break;D="backgroundColor"}while(z=z.parentNode);z=g(I);v.start=z;v.end=g(v.end);v.colorInit=true}v.elem.style[o]="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 p={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"],y={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(u,o,v,
z){if(a.isFunction(v)){z=v;v=null}return this.queue("fx",function(){var D=a(this),I=D.attr("style")||" ",R=e(i.call(this)),V,Z=D.attr("className");a.each(q,function(ca,ea){u[ea]&&D[ea+"Class"](u[ea])});V=e(i.call(this));D.attr("className",Z);D.animate(b(R,V),o,v,function(){a.each(q,function(ca,ea){u[ea]&&D[ea+"Class"](u[ea])});if(typeof D.attr("style")=="object"){D.attr("style").cssText="";D.attr("style").cssText=I}else D.attr("style",I);z&&z.apply(this,arguments)});R=a.queue(this);V=R.splice(R.length-
1,1)[0];R.splice(1,0,V);a.dequeue(this)})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(u,o,v,z){return o?a.effects.animateClass.apply(this,[{add:u},o,v,z]):this._addClass(u)},_removeClass:a.fn.removeClass,removeClass:function(u,o,v,z){return o?a.effects.animateClass.apply(this,[{remove:u},o,v,z]):this._removeClass(u)},_toggleClass:a.fn.toggleClass,toggleClass:function(u,o,v,z,D){return typeof o=="boolean"||o===c?v?a.effects.animateClass.apply(this,[o?{add:u}:{remove:u},v,z,D]):this._toggleClass(u,
o):a.effects.animateClass.apply(this,[{toggle:u},o,v,z])},switchClass:function(u,o,v,z,D){return a.effects.animateClass.apply(this,[{add:o,remove:u},v,z,D])}});a.extend(a.effects,{version:"1.8.9",save:function(u,o){for(var v=0;v<o.length;v++)o[v]!==null&&u.data("ec.storage."+o[v],u[0].style[o[v]])},restore:function(u,o){for(var v=0;v<o.length;v++)o[v]!==null&&u.css(o[v],u.data("ec.storage."+o[v]))},setMode:function(u,o){if(o=="toggle")o=u.is(":hidden")?"show":"hide";return o},getBaseline:function(u,
o){var v;switch(u[0]){case "top":v=0;break;case "middle":v=0.5;break;case "bottom":v=1;break;default:v=u[0]/o.height}switch(u[1]){case "left":u=0;break;case "center":u=0.5;break;case "right":u=1;break;default:u=u[1]/o.width}return{x:u,y:v}},createWrapper:function(u){if(u.parent().is(".ui-effects-wrapper"))return u.parent();var o={width:u.outerWidth(true),height:u.outerHeight(true),"float":u.css("float")},v=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
border:"none",margin:0,padding:0});u.wrap(v);v=u.parent();if(u.css("position")=="static"){v.css({position:"relative"});u.css({position:"relative"})}else{a.extend(o,{position:u.css("position"),zIndex:u.css("z-index")});a.each(["top","left","bottom","right"],function(z,D){o[D]=u.css(D);if(isNaN(parseInt(o[D],10)))o[D]="auto"});u.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return v.css(o).show()},removeWrapper:function(u){if(u.parent().is(".ui-effects-wrapper"))return u.parent().replaceWith(u);
return u},setTransition:function(u,o,v,z){z=z||{};a.each(o,function(D,I){unit=u.cssUnit(I);if(unit[0]>0)z[I]=unit[0]*v+unit[1]});return z}});a.fn.extend({effect:function(u){var o=f.apply(this,arguments),v={options:o[1],duration:o[2],callback:o[3]};o=v.options.mode;var z=a.effects[u];if(a.fx.off||!z)return o?this[o](v.duration,v.callback):this.each(function(){v.callback&&v.callback.call(this)});return z.call(this,v)},_show:a.fn.show,show:function(u){if(l(u))return this._show.apply(this,arguments);
else{var o=f.apply(this,arguments);o[1].mode="show";return this.effect.apply(this,o)}},_hide:a.fn.hide,hide:function(u){if(l(u))return this._hide.apply(this,arguments);else{var o=f.apply(this,arguments);o[1].mode="hide";return this.effect.apply(this,o)}},__toggle:a.fn.toggle,toggle:function(u){if(l(u)||typeof u==="boolean"||a.isFunction(u))return this.__toggle.apply(this,arguments);else{var o=f.apply(this,arguments);o[1].mode="toggle";return this.effect.apply(this,o)}},cssUnit:function(u){var o=this.css(u),
v=[];a.each(["em","px","%","pt"],function(z,D){if(o.indexOf(D)>0)v=[parseFloat(o),D]});return v}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(u,o,v,z,D){return a.easing[a.easing.def](u,o,v,z,D)},easeInQuad:function(u,o,v,z,D){return z*(o/=D)*o+v},easeOutQuad:function(u,o,v,z,D){return-z*(o/=D)*(o-2)+v},easeInOutQuad:function(u,o,v,z,D){if((o/=D/2)<1)return z/2*o*o+v;return-z/2*(--o*(o-2)-1)+v},easeInCubic:function(u,o,v,z,D){return z*(o/=D)*o*o+v},easeOutCubic:function(u,
o,v,z,D){return z*((o=o/D-1)*o*o+1)+v},easeInOutCubic:function(u,o,v,z,D){if((o/=D/2)<1)return z/2*o*o*o+v;return z/2*((o-=2)*o*o+2)+v},easeInQuart:function(u,o,v,z,D){return z*(o/=D)*o*o*o+v},easeOutQuart:function(u,o,v,z,D){return-z*((o=o/D-1)*o*o*o-1)+v},easeInOutQuart:function(u,o,v,z,D){if((o/=D/2)<1)return z/2*o*o*o*o+v;return-z/2*((o-=2)*o*o*o-2)+v},easeInQuint:function(u,o,v,z,D){return z*(o/=D)*o*o*o*o+v},easeOutQuint:function(u,o,v,z,D){return z*((o=o/D-1)*o*o*o*o+1)+v},easeInOutQuint:function(u,
o,v,z,D){if((o/=D/2)<1)return z/2*o*o*o*o*o+v;return z/2*((o-=2)*o*o*o*o+2)+v},easeInSine:function(u,o,v,z,D){return-z*Math.cos(o/D*(Math.PI/2))+z+v},easeOutSine:function(u,o,v,z,D){return z*Math.sin(o/D*(Math.PI/2))+v},easeInOutSine:function(u,o,v,z,D){return-z/2*(Math.cos(Math.PI*o/D)-1)+v},easeInExpo:function(u,o,v,z,D){return o==0?v:z*Math.pow(2,10*(o/D-1))+v},easeOutExpo:function(u,o,v,z,D){return o==D?v+z:z*(-Math.pow(2,-10*o/D)+1)+v},easeInOutExpo:function(u,o,v,z,D){if(o==0)return v;if(o==
D)return v+z;if((o/=D/2)<1)return z/2*Math.pow(2,10*(o-1))+v;return z/2*(-Math.pow(2,-10*--o)+2)+v},easeInCirc:function(u,o,v,z,D){return-z*(Math.sqrt(1-(o/=D)*o)-1)+v},easeOutCirc:function(u,o,v,z,D){return z*Math.sqrt(1-(o=o/D-1)*o)+v},easeInOutCirc:function(u,o,v,z,D){if((o/=D/2)<1)return-z/2*(Math.sqrt(1-o*o)-1)+v;return z/2*(Math.sqrt(1-(o-=2)*o)+1)+v},easeInElastic:function(u,o,v,z,D){var I=0,R=z;if(o==0)return v;if((o/=D)==1)return v+z;I||(I=D*0.3);if(R<Math.abs(z)){R=z;u=I/4}else u=I/(2*Math.PI)*
Math.asin(z/R);return-(R*Math.pow(2,10*(o-=1))*Math.sin((o*D-u)*2*Math.PI/I))+v},easeOutElastic:function(u,o,v,z,D){var I=0,R=z;if(o==0)return v;if((o/=D)==1)return v+z;I||(I=D*0.3);if(R<Math.abs(z)){R=z;u=I/4}else u=I/(2*Math.PI)*Math.asin(z/R);return R*Math.pow(2,-10*o)*Math.sin((o*D-u)*2*Math.PI/I)+z+v},easeInOutElastic:function(u,o,v,z,D){var I=0,R=z;if(o==0)return v;if((o/=D/2)==2)return v+z;I||(I=D*0.3*1.5);if(R<Math.abs(z)){R=z;u=I/4}else u=I/(2*Math.PI)*Math.asin(z/R);if(o<1)return-0.5*R*
Math.pow(2,10*(o-=1))*Math.sin((o*D-u)*2*Math.PI/I)+v;return R*Math.pow(2,-10*(o-=1))*Math.sin((o*D-u)*2*Math.PI/I)*0.5+z+v},easeInBack:function(u,o,v,z,D,I){if(I==c)I=1.70158;return z*(o/=D)*o*((I+1)*o-I)+v},easeOutBack:function(u,o,v,z,D,I){if(I==c)I=1.70158;return z*((o=o/D-1)*o*((I+1)*o+I)+1)+v},easeInOutBack:function(u,o,v,z,D,I){if(I==c)I=1.70158;if((o/=D/2)<1)return z/2*o*o*(((I*=1.525)+1)*o-I)+v;return z/2*((o-=2)*o*(((I*=1.525)+1)*o+I)+2)+v},easeInBounce:function(u,o,v,z,D){return z-a.easing.easeOutBounce(u,
D-o,0,z,D)+v},easeOutBounce:function(u,o,v,z,D){return(o/=D)<1/2.75?z*7.5625*o*o+v:o<2/2.75?z*(7.5625*(o-=1.5/2.75)*o+0.75)+v:o<2.5/2.75?z*(7.5625*(o-=2.25/2.75)*o+0.9375)+v:z*(7.5625*(o-=2.625/2.75)*o+0.984375)+v},easeInOutBounce:function(u,o,v,z,D){if(o<D/2)return a.easing.easeInBounce(u,o*2,0,z,D)*0.5+v;return a.easing.easeOutBounce(u,o*2-D,0,z,D)*0.5+z*0.5+v}})}(jQuery);
(function(a){a.effects.blind=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"],e=a.effects.setMode(g,c.options.mode||"hide"),b=c.options.direction||"vertical";a.effects.save(g,i);g.show();var f=a.effects.createWrapper(g).css({overflow:"hidden"}),l=b=="vertical"?"height":"width";b=b=="vertical"?f.height():f.width();e=="show"&&f.css(l,0);var p={};p[l]=e=="show"?b:0;f.animate(p,c.duration,c.options.easing,function(){e=="hide"&&g.hide();a.effects.restore(g,
i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(a){a.effects.bounce=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"],e=a.effects.setMode(g,c.options.mode||"effect"),b=c.options.direction||"up",f=c.options.distance||20,l=c.options.times||5,p=c.duration||250;/show|hide/.test(e)&&i.push("opacity");a.effects.save(g,i);g.show();a.effects.createWrapper(g);var q=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";f=c.options.distance||(q=="top"?g.outerHeight({margin:true})/3:g.outerWidth({margin:true})/
3);if(e=="show")g.css("opacity",0).css(q,b=="pos"?-f:f);if(e=="hide")f/=l*2;e!="hide"&&l--;if(e=="show"){var y={opacity:1};y[q]=(b=="pos"?"+=":"-=")+f;g.animate(y,p/2,c.options.easing);f/=2;l--}for(y=0;y<l;y++){var u={},o={};u[q]=(b=="pos"?"-=":"+=")+f;o[q]=(b=="pos"?"+=":"-=")+f;g.animate(u,p/2,c.options.easing).animate(o,p/2,c.options.easing);f=e=="hide"?f*2:f/2}if(e=="hide"){y={opacity:0};y[q]=(b=="pos"?"-=":"+=")+f;g.animate(y,p/2,c.options.easing,function(){g.hide();a.effects.restore(g,i);a.effects.removeWrapper(g);
c.callback&&c.callback.apply(this,arguments)})}else{u={};o={};u[q]=(b=="pos"?"-=":"+=")+f;o[q]=(b=="pos"?"+=":"-=")+f;g.animate(u,p/2,c.options.easing).animate(o,p/2,c.options.easing,function(){a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(this,arguments)})}g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(a){a.effects.clip=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right","height","width"],e=a.effects.setMode(g,c.options.mode||"hide"),b=c.options.direction||"vertical";a.effects.save(g,i);g.show();var f=a.effects.createWrapper(g).css({overflow:"hidden"});f=g[0].tagName=="IMG"?f:g;var l={size:b=="vertical"?"height":"width",position:b=="vertical"?"top":"left"};b=b=="vertical"?f.height():f.width();if(e=="show"){f.css(l.size,0);f.css(l.position,
b/2)}var p={};p[l.size]=e=="show"?b:0;p[l.position]=e=="show"?0:b/2;f.animate(p,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){e=="hide"&&g.hide();a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(g[0],arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.drop=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right","opacity"],e=a.effects.setMode(g,c.options.mode||"hide"),b=c.options.direction||"left";a.effects.save(g,i);g.show();a.effects.createWrapper(g);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var l=c.options.distance||(f=="top"?g.outerHeight({margin:true})/2:g.outerWidth({margin:true})/2);if(e=="show")g.css("opacity",0).css(f,b=="pos"?-l:l);var p={opacity:e==
"show"?1:0};p[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+l;g.animate(p,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){e=="hide"&&g.hide();a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.explode=function(c){return this.queue(function(){var g=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3,i=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":c.options.mode;var e=a(this).show().css("visibility","hidden"),b=e.offset();b.top-=parseInt(e.css("marginTop"),10)||0;b.left-=parseInt(e.css("marginLeft"),10)||0;for(var f=e.outerWidth(true),l=e.outerHeight(true),p=0;p<g;p++)for(var q=
0;q<i;q++)e.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-q*(f/i),top:-p*(l/g)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f/i,height:l/g,left:b.left+q*(f/i)+(c.options.mode=="show"?(q-Math.floor(i/2))*(f/i):0),top:b.top+p*(l/g)+(c.options.mode=="show"?(p-Math.floor(g/2))*(l/g):0),opacity:c.options.mode=="show"?0:1}).animate({left:b.left+q*(f/i)+(c.options.mode=="show"?0:(q-Math.floor(i/2))*(f/i)),top:b.top+
p*(l/g)+(c.options.mode=="show"?0:(p-Math.floor(g/2))*(l/g)),opacity:c.options.mode=="show"?1:0},c.duration||500);setTimeout(function(){c.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide();c.callback&&c.callback.apply(e[0]);e.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);
(function(a){a.effects.fade=function(c){return this.queue(function(){var g=a(this),i=a.effects.setMode(g,c.options.mode||"hide");g.animate({opacity:i},{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){c.callback&&c.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.fold=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"],e=a.effects.setMode(g,c.options.mode||"hide"),b=c.options.size||15,f=!!c.options.horizFirst,l=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(g,i);g.show();var p=a.effects.createWrapper(g).css({overflow:"hidden"}),q=e=="show"!=f,y=q?["width","height"]:["height","width"];q=q?[p.width(),p.height()]:[p.height(),p.width()];var u=/([0-9]+)%/.exec(b);if(u)b=parseInt(u[1],
10)/100*q[e=="hide"?0:1];if(e=="show")p.css(f?{height:0,width:b}:{height:b,width:0});f={};u={};f[y[0]]=e=="show"?q[0]:b;u[y[1]]=e=="show"?q[1]:0;p.animate(f,l,c.options.easing).animate(u,l,c.options.easing,function(){e=="hide"&&g.hide();a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);
(function(a){a.effects.highlight=function(c){return this.queue(function(){var g=a(this),i=["backgroundImage","backgroundColor","opacity"],e=a.effects.setMode(g,c.options.mode||"show"),b={backgroundColor:g.css("backgroundColor")};if(e=="hide")b.opacity=0;a.effects.save(g,i);g.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(b,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){e=="hide"&&g.hide();a.effects.restore(g,i);e=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.pulsate=function(c){return this.queue(function(){var g=a(this),i=a.effects.setMode(g,c.options.mode||"show");times=(c.options.times||5)*2-1;duration=c.duration?c.duration/2:a.fx.speeds._default/2;isVisible=g.is(":visible");animateTo=0;if(!isVisible){g.css("opacity",0).show();animateTo=1}if(i=="hide"&&isVisible||i=="show"&&!isVisible)times--;for(i=0;i<times;i++){g.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}g.animate({opacity:animateTo},duration,
c.options.easing,function(){animateTo==0&&g.hide();c.callback&&c.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()}).dequeue()})}})(jQuery);
(function(a){a.effects.puff=function(c){return this.queue(function(){var g=a(this),i=a.effects.setMode(g,c.options.mode||"hide"),e=parseInt(c.options.percent,10)||150,b=e/100,f={height:g.height(),width:g.width()};a.extend(c.options,{fade:true,mode:i,percent:i=="hide"?e:100,from:i=="hide"?f:{height:f.height*b,width:f.width*b}});g.effect("scale",c.options,c.duration,c.callback);g.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var g=a(this),i=a.extend(true,{},c.options),e=a.effects.setMode(g,
c.options.mode||"effect"),b=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:e=="hide"?0:100),f=c.options.direction||"both",l=c.options.origin;if(e!="effect"){i.origin=l||["middle","center"];i.restore=true}l={height:g.height(),width:g.width()};g.from=c.options.from||(e=="show"?{height:0,width:0}:l);b={y:f!="horizontal"?b/100:1,x:f!="vertical"?b/100:1};g.to={height:l.height*b.y,width:l.width*b.x};if(c.options.fade){if(e=="show"){g.from.opacity=0;g.to.opacity=1}if(e=="hide"){g.from.opacity=
1;g.to.opacity=0}}i.from=g.from;i.to=g.to;i.mode=e;g.effect("size",i,c.duration,c.callback);g.dequeue()})};a.effects.size=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],e=["position","top","bottom","left","right","overflow","opacity"],b=["width","height","overflow"],f=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],p=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
q=a.effects.setMode(g,c.options.mode||"effect"),y=c.options.restore||false,u=c.options.scale||"both",o=c.options.origin,v={height:g.height(),width:g.width()};g.from=c.options.from||v;g.to=c.options.to||v;if(o){o=a.effects.getBaseline(o,v);g.from.top=(v.height-g.from.height)*o.y;g.from.left=(v.width-g.from.width)*o.x;g.to.top=(v.height-g.to.height)*o.y;g.to.left=(v.width-g.to.width)*o.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(u=="box"||u=="both"){if(z.from.y!=z.to.y){i=i.concat(l);g.from=a.effects.setTransition(g,l,z.from.y,g.from);g.to=a.effects.setTransition(g,l,z.to.y,g.to)}if(z.from.x!=z.to.x){i=i.concat(p);g.from=a.effects.setTransition(g,p,z.from.x,g.from);g.to=a.effects.setTransition(g,p,z.to.x,g.to)}}if(u=="content"||u=="both")if(z.from.y!=z.to.y){i=i.concat(f);g.from=a.effects.setTransition(g,f,z.from.y,g.from);g.to=a.effects.setTransition(g,f,z.to.y,g.to)}a.effects.save(g,y?i:e);g.show();a.effects.createWrapper(g);
g.css("overflow","hidden").css(g.from);if(u=="content"||u=="both"){l=l.concat(["marginTop","marginBottom"]).concat(f);p=p.concat(["marginLeft","marginRight"]);b=i.concat(l).concat(p);g.find("*[width]").each(function(){child=a(this);y&&a.effects.save(child,b);var D={height:child.height(),width:child.width()};child.from={height:D.height*z.from.y,width:D.width*z.from.x};child.to={height:D.height*z.to.y,width:D.width*z.to.x};if(z.from.y!=z.to.y){child.from=a.effects.setTransition(child,l,z.from.y,child.from);
child.to=a.effects.setTransition(child,l,z.to.y,child.to)}if(z.from.x!=z.to.x){child.from=a.effects.setTransition(child,p,z.from.x,child.from);child.to=a.effects.setTransition(child,p,z.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){y&&a.effects.restore(child,b)})})}g.animate(g.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){g.to.opacity===0&&g.css("opacity",g.from.opacity);q=="hide"&&g.hide();a.effects.restore(g,
y?i:e);a.effects.removeWrapper(g);c.callback&&c.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.shake=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"];a.effects.setMode(g,c.options.mode||"effect");var e=c.options.direction||"left",b=c.options.distance||20,f=c.options.times||3,l=c.duration||c.options.duration||140;a.effects.save(g,i);g.show();a.effects.createWrapper(g);var p=e=="up"||e=="down"?"top":"left",q=e=="up"||e=="left"?"pos":"neg";e={};var y={},u={};e[p]=(q=="pos"?"-=":"+=")+b;y[p]=(q=="pos"?"+=":"-=")+b*2;u[p]=
(q=="pos"?"-=":"+=")+b*2;g.animate(e,l,c.options.easing);for(b=1;b<f;b++)g.animate(y,l,c.options.easing).animate(u,l,c.options.easing);g.animate(y,l,c.options.easing).animate(e,l/2,c.options.easing,function(){a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(this,arguments)});g.queue("fx",function(){g.dequeue()});g.dequeue()})}})(jQuery);
(function(a){a.effects.slide=function(c){return this.queue(function(){var g=a(this),i=["position","top","bottom","left","right"],e=a.effects.setMode(g,c.options.mode||"show"),b=c.options.direction||"left";a.effects.save(g,i);g.show();a.effects.createWrapper(g).css({overflow:"hidden"});var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var l=c.options.distance||(f=="top"?g.outerHeight({margin:true}):g.outerWidth({margin:true}));if(e=="show")g.css(f,b=="pos"?isNaN(l)?"-"+l:-l:l);
var p={};p[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+l;g.animate(p,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){e=="hide"&&g.hide();a.effects.restore(g,i);a.effects.removeWrapper(g);c.callback&&c.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);
(function(a){a.effects.transfer=function(c){return this.queue(function(){var g=a(this),i=a(c.options.to),e=i.offset();i={top:e.top,left:e.left,height:i.innerHeight(),width:i.innerWidth()};e=g.offset();var b=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:e.top,left:e.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(i,c.duration,c.options.easing,function(){b.remove();c.callback&&c.callback.apply(g[0],arguments);
g.dequeue()})})}})(jQuery);
jQuery(function(a){a.datepicker.regional.de={closeText:"schlie\u00dfen",prevText:"&#x3c;zur\u00fcck",nextText:"Vor&#x3e;",currentText:"heute",monthNames:["Januar","Februar","M\u00e4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\u00e4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So",
"Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"Wo",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.de)});
(function(a){a.fn.resizeTo=function(c){return this.css("display","block").width(a(c).width()).height(a(c).height())};a.fn.swapWith=function(c){a(c).size()&&this.first().each(function(){var g=a(c).clone(true),i=a(this).clone(true),e=g.clone().empty().resizeTo(c),b=i.clone().empty().resizeTo(this);a(c).replaceWith(e);a(this).replaceWith(b);e.animate({width:b.width(),height:b.height()});b.animate({width:e.width(),height:e.height()});a(c).replaceWith(i);a(this).replaceWith(g)});return this.first()};a.fn.saveInputValues=
function(){this.find(":input").each(function(){$this=a(this);$this.data("storedvalue",$this.val())});return this};a.fn.restoreInputValues=function(){this.find(":input").each(function(){$this=a(this);$this.val($this.data("storedvalue"))});return this};a.fn.swapWith=function(c){a(c).size()&&this.first().each(function(){var g=a(c).saveInputValues().clone(true),i=a(this).saveInputValues().clone(true);a(c).replaceWith(i);a(this).replaceWith(g);g.restoreInputValues();i.restoreInputValues()});return this.first()}})(jQuery);
(function(a){a.pad=function(c,g,i,e){c=""+c;g-=c.length;if(g>0){i=Array(1+g).join(i||" ").substr(0,g);return e?[c,i].join(""):[i,c].join("")}return c};a.parseNumber=function(c){c=parseFloat(a.trim(c).replace(/\./g,"").replace(",","."));return isNaN(c)?0:c};a.formatNumber=function(c,g){g=g||2;var i=a.pad("",g,"0"),e=parseInt("1"+i,10);e=""+Math.round(parseFloat(c)*e)/e;if(e.indexOf(".")==-1)e=[e,"."].join("");i=[e,i].join("").split(".");e=i[0];for(var b=[],f=e.length,l=f;l>0;l--){l!=f&&(f-l)%3==0&&
b.unshift(".");b.unshift(e.charAt(l-1))}return b.concat([",",i[1].substr(0,g)]).join("")}})(jQuery);(function(a){a.formatCurrency=function(c,g){return[a.formatNumber(c,2),"&nbsp;",g||"&euro;"].join("")}})(jQuery);(function(a){a.tag=function(c,g,i){var e=["<",c];a.each(g,function(b,f){f!==null&&e.push([" ",b.replace(/"/g,"&quot;"),'="',f.replace(/"/g,"&quot;"),'"'].join(""))});if(i===undefined)e.push(["></",c,">"].join(""));else i?e.push([">",i,"</",c,">"].join("")):e.push(" />");return e.join("")}})(jQuery);
(function(a){a.formatDate=function(c,g){var i=new Date(1E3*c);td=function(e){return a.pad(e,2,"0")};switch(g){case "short":case "date":return[td(i.getDate()),td(1+i.getMonth()),i.getFullYear()].join(".");default:return[td(i.getDate()),td(1+i.getMonth()),i.getFullYear()].join(".")+" "+[td(i.getHours()),td(i.getMinutes())].join(":")}}})(jQuery);
(function(a){a.popup=function(c,g){a("ul.popup").fadeOut("fast",function(){a(this).remove()});var i=a('<ul class="popup"></ul>').appendTo("body").hide();hidePopup=function(){i.fadeOut("fast",function(){a(this).remove()});return false};a.each(c,function(e,b){a(['<li><a href="#">',b.label,"</a></li>"].join("")).appendTo(i).find("a").click(function(){b.action();hidePopup();return false})});i.mouseleave(hidePopup).css(a(g).offset()).fadeIn("slow")}})(jQuery);
(function(a){a.dim=function(){if(a("#dimmer").size()<1){a("body").data("orig-overflow",a("body").css("overflow"));a('<div id="dimmer"></div>').prependTo("body").css("opacity",0.2).hide()}a("body").css("overflow","hidden");a("#dimmer").fadeIn()};a.undim=function(){a("#dimmer").fadeOut(function(){a("body").css("overflow",a("body").data("orig-overflow"))})}})(jQuery);(function(a){a.deferSingle=function(){}})(jQuery);
(function(a){a.confirm=function(c,g,i,e){if(a.isFunction(i)){e=i;i=g;g=c;c=null}a.dim();a("#modal-panel").remove();var b=['<div id="modal-panel"><p></p>'];if(i)b.push('<a href="#" class="button confirm">Ok.</a>');else{b.push('<a href="#" class="button cancel">Abbrechen</a>');b.push('<a href="#" class="button confirm">Ja, ich bin sicher.</a>')}b.push("</div>");a(b.join("")).prependTo("body");a("#modal-panel p").text(g);a("#modal-panel a.cancel").click(function(){a.undim();a("#modal-panel").fadeOut("fast",
function(){a("#modal-panel").remove()});return false});a("#modal-panel a.confirm").click(function(){a.undim();a("#modal-panel").fadeOut("fast",function(){a("#modal-panel").remove()});if(e)e();else if(c)location.href=c.href;return false});return false};a.alert=function(c){a.confirm(null,c,true)};a.progressWheel=function(){a.dim();a("#dimmer").stop().css({background:"white url(/images/loading.gif) no-repeat 50% 50%",opacity:0}).fadeTo(1500,0.8)}})(jQuery);
(function(a){a.fn.updateCharCount=function(c,g){this.each(function(){var i=a(this);a.each(["keydown","keyup","change","click","focus","blur"],function(){i.unbind(this+".update-char-count").bind(this+".update-char-count",function(){a(c).text(Math.max(0,g-a(this).val().length))})});i.trigger("change")});return this};a('input[type="text"], input[type="email"], input[type="password"]').live("keydown",function(c){if(c.which===13){a(this).closest("form").submit();return false}return true})})(jQuery);
$(function(){$(".xi-remove-file").live("click",function(){var a=$(this);$.confirm("Die Datei wirklich l\u00f6schen?",false,function(){var c=a.closest(".xi-file");c.find(".xi-remove-file-input").val("true").end().find(".xi-add-file").fadeIn().end().find(".xi-stored-file").add(c.nextAll("li.xi-file-description").first()).add(c.nextAll("li.xi-image-align").first()).slideUp(function(){$(this).filter(".xi-stored-file").remove();return false});$.notify("Datei l\u00f6schen","Die Datei wurde zum L\u00f6schen vorgemerkt. Um sie dauerhaft zu entfernen, m\u00fcssen Sie den Eintrag speichern.")});
return false});$(".xi-new-file").each(function(){var a=$(this),c=a.closest(".xi-file");!c.find(".error").size()&&c.find(".xi-add-file").size()&&a.hide();if(!c.find(".xi-stored-file").size()){a=c.nextAll("li.xi-file-description").first();a.find("input, textarea").first().val("");c.find(".xi-add-file").size()&&a.add(c.nextAll("li.xi-image-align").first()).hide()}});$(".xi-file .xi-stored-file, .xi-file .error").closest(".xi-file").find(".xi-add-file").hide();$(".xi-add-file").live("click",function(){var a=
$(this).hide().closest(".xi-file"),c=a.nextAll("li.xi-file-description").first();c.find("input, textarea").first().val("");a.find(".xi-new-file").add(c).add(a.nextAll("li.xi-image-align").first()).fadeIn();return false});$(".xi-sortable .xi-move-up").live("click",function(){var a=$(this).closest(".xi-sortable > li"),c=a.prev("li");a.swapWith(c);return false});$(".xi-sortable .xi-move-down").live("click",function(){var a=$(this).closest(".xi-sortable > li"),c=a.next("li");a.swapWith(c);return false});
$(".xi-appendable").each(function(){var a=$(this),c=a.siblings("ul.xi-template:first").find("li:first").detach();a.siblings().find(".xi-append").first().bind("click",function(){c.removeClass("xi-template").clone(true).appendTo(a).hide().slideDown().find("textarea.autosize").autogrow();return false});$(".xi-appendable .xi-remove").live("click",function(){var g=$(this).closest(".xi-appendable > li");$.confirm("Dieses Element wirklich l\u00f6schen?",false,function(){g.fadeOut("slow",function(){$(this).remove();
$.notify("Element l\u00f6schen","Das Element wurde entfernt. Damit es dauerhaft gel\u00f6scht wird, m\u00fcssen Sie den Eintrag speichern.")})});return false})});$("input.xi-count-chars, textarea.xi-count-chars").each(function(){function a(){var e=$.trim(c.val()).length;g.text(Math.max(0,i-e));if(e>i){g.removeClass("xi-count-warn");g.addClass("xi-count-err")}else if(e>=i-20){g.removeClass("xi-count-err");g.addClass("xi-count-warn")}else g.removeClass("xi-count-err xi-count-warn")}var c=$(this),g=
c.closest("li").find(".xi-chars-left"),i=parseInt(g.text(),10);c.unbind(".xi-count-chars").bind("keyup.xi-count-chars mousedown.xi-count-chars mouseup.xi-count-chars focus.xi-count-chars blur.xi-count-chars change.xi-count-chars update.xi-count-chars",a);setInterval(a,250);a()});(function(){var a=null;$(".button, .icon-button, .toolbar a, .menu a, .summary-items a").mousedown(function(){$(this).addClass("pressed");return false}).bind("mouseup mouseleave",function(){if($(this).hasClass("pressed")){$(this).removeClass("pressed");
a=this}}).bind("mouseenter",function(){this===a&&$(this).addClass("pressed")});$("body").mouseup(function(){a=null})})()});
(function(a){a.xiModuleId=function(c){return typeof c=="string"?parseInt(c.replace(/[^@]+@/,""),10):"module"in c?a.xiModuleId(c.module):""};a.fn.xiTable=function(c){var g=a.extend(a.fn.xiTable.defaults,c);_update=function(i,e,b){if(!a.isArray(b.rows))b.rows=[];var f=g.columns,l=b.rows,p=0,q=l.length,y=["<tbody>"],u=0,o=0,v;if("categories"in b){var z=[];for(u=b.categories.length;o<u;){v=b.categories[o];z=z.concat(['<li><a href="#category-',v._id,'">',v[g.categoryTitleColumn],"</a></li>"]);o++}i.find("div.categories ul").html(z.join(""))}for(;p<
q;){u=l[p++];o=0;v=f.length;for(y.push('<tr id="xisortorder_'+u._id+'">');o<v;){z=f[o++];y.push("<td");z.style&&y.push(' style="'+z.style+'"');z["class"]&&y.push(' class="'+z["class"]+'"');y.push(">");z=z.display;y.push(a.isFunction(z)?a.proxy(z,u)():u[z]);y.push("</td>")}y.push("</tr>")}y.push("</tbody>");i.find(g.tbody).replaceWith(y.join(""));var D=i.find(g.tbody);D.find("tr").removeClass("even odd").filter(":even").addClass("even").end().filter(":odd").addClass("odd").end();"sortable"in g&&D.sortable({axis:"y",
containment:"parent",update:function(){a.post(g.queryUrl,[a.param(a.extend({},b,{action:"change-order"})),"&",D.sortable("serialize")].join(""),function(I){if(I=="ok"){a.notify("Reihenfolge","Die neue Reihenfolge wurde gespeichert.");load(i,e)}},"json");a.post(g.queryUrl,"action=change-order&"+D.sortable("serialize"),function(I){I=="ok"&&a.notify("Reihenfolge","Die neue Reihenfolge wurde gespeichert.")})}}).disableSelection();if("categories"in b){f=i.find("div.categories li");f.find("a").click(function(){var I=
a(this),R=I.attr("href").match(/\#category\-([a-z0-9-]+)$/);if(R){var V=R[1];I.closest("ul").find("li").removeClass("active loading");if(e.category!=V){I.closest("li").addClass("active loading");e.category=R[1]}else e.category=null}else e.category=null;load(i,e);return false});D.find("div.categories").add(i.find("div.categories")).click(function(){e.category=null;load(i,e);return false});e.category&&f.find('a[href $= "#category-'+e.category+'"]').closest("li").addClass("active")}a.extend(g.paginator,
b.paginator);paginator(i,b.paginator)};load=function(i,e){var b={},f;for(f in e)b[e.prefix+f]=e[f];a.getJSON(g.queryUrl,b,function(l){_update(i,e,l)})};_navigate=function(i,e,b){var f=e.page;switch(b){case "left":f--;break;case "right":f++;break;case "first":f=1;break;case "last":f=e.pagesTotal;break;default:f=parseInt(b,10)}e.page=f;a.cookie("table-page",f);load(i,e)};buildNav=function(i,e,b){if(e>b){b=parseInt(b/2,10);if(i-b<1)i=b+1;else if(i+b>e)i=e-b;return[i-b,i+b]}else return[1,e]};paginator=
function(i,e){var b=i.find(".paginator .scroll-x:first"),f=['<li class="scroll-? xioni-scrolltpl">',b.html(),"</li>"].join(""),l=[];if(e.pagesTotal>1)for(var p=buildNav(e.page,e.pagesTotal,g.maxPages),q=p[0];q<=p[1];q++)l.push(f.replace(/\?/g,q));i.find(".paginator ul li.xioni-scrolltpl").remove();b.hide().after(l.join(""));i.find(".paginator").find(".paginator-count").text(e.total).end().find(".paginator-page").text(e.page).end().find(".paginator-pagecount").text(e.pagesTotal).end().find(".paginator-button-items").text(e.items).unbind("click.paginator").bind("click.paginator",
function(){a.popup(a.map(g.itemCounts,function(y){return{label:y+" Eintr&auml;ge je Seite",action:function(){e.items=y;e.page=Math.max(1,parseInt(e.items*e.page/y,10));load(i,e)}}}),this);return false}).end().find("ul .scroll-first:first, ul .scroll-left:first")[e.page>1?"fadeIn":"fadeOut"]().end().find("ul .scroll-last:first, ul .scroll-right:first")[e.page<e.pagesTotal?"fadeIn":"fadeOut"]().end().find('ul li[class*="scroll-'+e.page+'"]').addClass("active").end().find('ul li[class*="scroll-"] a.button').unbind("click.paginator").bind("click.paginator",
function(){var y=a(this).parent("li:first").attr("class").match(/scroll-([a-z0-9]+)/);y&&_navigate(i,e,y[1]);return false}).end()};searchfield=function(i){a(g.searchfield).each(function(){var e=null,b=a(this),f=a.trim(b.val());b.data("xioni-placeholder",f).val(f).focusin(function(){a.trim(b.val())==b.data("xioni-placeholder")&&b.val("")}).focusout(function(){a.trim(b.val())==""&&b.val(b.data("xioni-placeholder"))}).unbind("keyup.search").bind("keyup.search",function(){var l=g.paginator;l.filter=a.trim(a(this).val());
l.page=1;if(e){clearTimeout(e);e=null}e=setTimeout(function(){load(i,l)},g.filterDelay)})})};sorting=function(i){var e=i.find(g.thead);e.find("th:not(.categories)").each(function(b){if(b in g.columns&&"sort"in g.columns[b]){var f=g.columns[b].sort,l=a(this);l.bind("click.sorting",function(){e.find('th[class*="sort-"]').removeClass("sort-asc sort-desc");if(g.paginator.order.split(",")[0]!=f){g.paginator.order=f;l.addClass("sort-asc")}else{g.paginator.order="-"+f;l.addClass("sort-desc")}a.cookie("table-sort-order",
g.paginator.order);load(i,g.paginator);return false})}})};this.each(function(){var i=a(this);i.find(g.tbody);var e=a.cookie("table-sort-order"),b=a.cookie("table-page");if(e!=null)g.paginator.order=e;if(b!=null)g.paginator.page=b;paginator(i,g.paginator);searchfield(i);sorting(i);load(i,g.paginator)});return this};a.fn.xiTable.defaults={queryUrl:location.href,columns:["_id"],searchfield:"#filter",tbody:"tbody",thead:"thead",maxPages:7,itemCounts:[5,10,15,25,50,100],filterDelay:500,categoryTitleColumn:"title",
debug:false}})(jQuery);(function(a){a.notify=function(c,g,i){a("#notifications").size()||a('<ul id="notifications"></ul>').appendTo("body");(new Date).getTime();var e=a(["<li><h3>",c,"</h3><p>",g,"</p></li>"].join("")).appendTo("#notifications").hide().fadeIn().click(function(){a(this).stop().fadeOut("fast",function(){a(this).hide().remove()});return false});i!==true&&setTimeout(function(){e.stop().fadeOut("slow",function(){a(this).hide().remove()})},5E3)}})(jQuery);
$(function(){$(".hidden").hide();$("a[rel~=external]").click(function(){window.open(this.href);return false});$(".admin-news-panel-edit-news").click(function(){$(".admin-news-panel div:first").hide();$("#editnews").fadeIn();return false});$("a.button.submit-form").click(function(){$.progressWheel();$(this).closest("form").submit();return false});$("a.button.reset-form").click(function(){$(this).closest("form")[0].reset();return false});$("a.button.logout").click(function(){location.href="/logout";
return false});$("table tbody td").live("mouseenter",function(){$(this).parents("tr:first").addClass("hover")}).live("mouseleave",function(){$(this).parents("tr:first").removeClass("hover")});$("table tbody > tr:even").addClass("even");$("#tooltip").size()==0&&$('<div id="tooltip"></div>').prependTo("body").hide();(function(){var a=window.status,c=[-24,32];$("a").live("mouseenter.tooltip",function(g){var i=$(this),e=i.attr("title");if(e)i.data("title",e).prop("title","");else{e=i.data("title");if(!e)return}a=
window.status;window.status=e;i=$("#tooltip").text(e).show();e=parseInt(g.pageY,10)+c[0]+32;g=parseInt(g.pageX,10)+c[1];i.hide();g=Math.min(g,$(document.body).width()-i.width()-32);i.stop().fadeTo("fast",1).css({top:e+"px",left:g+"px"})}).live("mouseleave.tooltip",function(){window.status=a;$("#tooltip").stop().fadeOut("fast")});$("a[title]").live("mousemove",function(g){var i=$("#tooltip"),e=parseInt(g.pageY,10)+c[0]+32;g=parseInt(g.pageX,10)+c[1];g=Math.min(g,$(document.body).width()-i.width()-
32);i.css({top:e+"px",left:g+"px"})})})();$("textarea.autosize").autogrow();$.each(window.notifications||[],function(){$.notify(this.title,this.message)});$(".xi-date-field").datepicker({dateFormat:"dd.mm.yy"})});

