You are on page 1of 47

(function(){var z=this,m,q=z.jQuery,D=z.$,C=z.jQuery=z.$=function(E,F){return ne w C.fn.init(E,F)},f=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,j=/^.[^:#\[\.,]*$/;C.f n=C.prototype={init:function(I,G){I=I||document;if(I.nodeType){this[0]=I;this.le ngth=1;this.context=I;return this}if(typeof I==="string"){var F=f.exec(I);if(F&& (F[1]||!G)){if(F[1]){I=C.clean([F[1]],G)}else{var H=document.getElementById(F[3] );if(H&&H.id!=F[3]){return C().find(I)}var E=C(H||[]);E.context=document;E.

selec tor=I;return E}}else{return C(G).find(I)}}else{if(C.isFunction(I)){return C(docu ment).ready(I)}}if(I.selector&&I.context){this.selector=I.selector;this.context= I.context}return this.setArray(C.isArray(I)?I:C.makeArray(I))},selector:"",jquer y:"1.3.2",size:function(){return this.length},get:function(E){return E===m?Array .prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=C(F);G.prev Object=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this .selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return C.each(this,F,E)},index:function(E){return C.inA rray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="strin g"){if(H===m){return this[0]&&C[G||"attr"](this[0],F)}else{E={};E[F]=H}}return t his.each(function(I){for(F in E){C.attr(G?this.style:this,F,C.prop(this,E[F],G,I ,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=m}re turn this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){ return this.empty().append((this[0]&&this[0].ownerDocument||document).createText Node(F))}var E="";C.each(F||this,function(){C.each(this.childNodes,function(){if (this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:C.fn.text([this])}})});ret urn E},wrapAll:function(E){if(this[0]){var F=C(E,this[0].ownerDocument).clone(); if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while (G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:fun ction(E){return this.each(function(){C(this).contents().wrapAll(E)})},wrap:funct ion(E){return this.each(function(){C(this).wrapAll(E)})},append:function(){retur n this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild (E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(th is.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){retur n this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this) })},after:function(){return this.domManip(arguments,false,function(E){this.paren tNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject| |C([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.leng th===1){var F=this.pushStack([],"find",E);F.length=0;C.find(E,this[0],F);return F}else{return this.pushStack(C.unique(C.map(this,function(G){return C.find(E,G)} )),"find",E)}},clone:function(G){var E=this.map(function(){if(!C.support.noClone Event&&!C.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.c reateElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return C.c lean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{re turn this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.f ind("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=C.data(H[F],"events");for(var K in I){for(var J in I[K]){C.event.add(this,K,I[ K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(C. isFunction(E)&&C.grep(this,function(G,F){return E.call(G,F)})||C.multiFilter(E,C .grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(F) {var E=C.expr.match.POS.test(F)?C(F):null,G=0;return this.map(function(){var H=t his;while(H&&H.ownerDocument){if(E?E.index(H)>-1:C(H).is(F)){C.data(H,"closest", G);return H}H=H.parentNode;G++}})},not:function(E){if(typeof E==="string"){if(j. test(E)){return this.pushStack(C.multiFilter(E,this,true),"not",E)}else{E=C.mult iFilter(E,this)}}var F=E.length&&E[E.length-1]!==m&&!E.nodeType;return this.filt er(function(){return F?C.inArray(this,E)<0:this!=E})},add:function(E){return thi s.pushStack(C.unique(C.merge(this.get(),typeof E==="string"?C(E):C.makeArray(E)) ))},is:function(E){return !!E&&C.multiFilter(E,this).length>0},hasClass:function (E){return !!E&&this.is("."+E)},val:function(K){if(K===m){var E=this[0];if(E){if (C.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text }if(C.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="se lect-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[ F];if(G.selected){K=C(G).val();if(H){return K}L.push(K)}}return L}return(E.value

||"").replace(/\r/g,"")}return m}if(typeof K==="number"){K+=""}return this.each( function(){if(this.nodeType!=1){return}if(C.isArray(K)&&/radio|checkbox/.test(th is.type)){this.checked=(C.inArray(this.value,K)>=0||C.inArray(this.name,K)>=0)}e lse{if(C.nodeName(this,"select")){var N=C.makeArray(K);C("option",this).each(fun ction(){this.selected=(C.inArray(this.value,N)>=0||C.inArray(this.text,N)>=0)}); if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){ret urn E===m?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):nu ll):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove( )},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushSt ack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.ca ll(arguments).join(","))},map:function(E){return this.pushStack(C.map(this,funct ion(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevOb ject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0 ]).createDocumentFragment(),F=C.clean(J,(this[0].ownerDocument||this[0]),I),H=I. firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.len gth>1||G>0?I.cloneNode(true):I)}}if(F){C.each(F,r)}}return this;function K(N,O){ return M&&C.nodeName(N,"table")&&C.nodeName(O,"tr")?(N.getElementsByTagName("tbo dy")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};C.fn.init.p rototype=C.fn;function r(E,F){if(F.src){C.ajax({url:F.src,async:false,dataType:" script"})}else{C.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentN ode){F.parentNode.removeChild(F)}}function h(){return +new Date}C.extend=C.fn.ex tend=function(){var F=arguments[0]||{},L=1,E=arguments.length,I=false,K;if(typeo f F==="boolean"){I=F;F=arguments[1]||{};L=2}if(typeof F!=="object"&&!C.isFunctio n(F)){F={}}if(E==L){F=this;--L}for(;L<E;L++){if((K=arguments[L])!=null){for(var J in K){var G=F[J],H=K[J];if(F===H){continue}if(I&&H&&typeof H==="object"&&!H.no deType){F[J]=C.extend(I,G||(H.length!=null?[]:{}),H)}else{if(H!==m){F[J]=H}}}}}r eturn F};var t=/z-?index|font-?weight|opacity|zoom|line-?height/i,b=document.def aultView||{},g=Object.prototype.toString;C.extend({noConflict:function(E){z.$=D; if(E){z.jQuery=q}return C},isFunction:function(E){return g.call(E)==="[object Fu nction]"},isArray:function(E){return g.call(E)==="[object Array]"},isXMLDoc:func tion(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDoc ument&&C.isXMLDoc(E.ownerDocument)},globalEval:function(E){if(E&&/\S/.test(E)){v ar G=document.getElementsByTagName("head")[0]||document.documentElement,F=docume nt.createElement("script");F.type="text/javascript";if(C.support.scriptEval){F.a ppendChild(document.createTextNode(E))}else{F.text=E}G.insertBefore(F,G.firstChi ld);G.removeChild(F)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUp perCase()==E.toUpperCase()},each:function(K,H,J){var I,E=0,F=K.length;if(J){if(F ===m){for(I in K){if(H.apply(K[I],J)===false){break}}}else{for(;E<F;){if(H.apply (K[E++],J)===false){break}}}}else{if(F===m){for(I in K){if(H.call(K[I],I,K[I])== =false){break}}}else{for(var G=K[0];E<F&&H.call(G,E,G)!==false;G=K[++E]){}}}retu rn K},prop:function(G,H,F,E,I){if(C.isFunction(H)){H=H.call(G,E)}return typeof H ==="number"&&F=="curCSS"&&!t.test(I)?H+"px":H},className:{add:function(E,F){C.ea ch((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!C.className.has(E.class Name,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeT ype==1){E.className=F!==m?C.grep(E.className.split(/\s+/),function(G){return !C. className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&C.inArray(E,(F.c lassName||F).toString().split(/\s+/))>-1}},swap:function(G,F,H){var I={};for(var E in F){I[E]=G.style[E];G.style[E]=F[E]}H.call(G);for(var E in F){G.style[E]=I[ E]}},css:function(L,J,F,I){if(J=="width"||J=="height"){var H,K={position:"absolu te",visibility:"hidden",display:"block"},G=J=="width"?["Left","Right"]:["Top","B ottom"];function E(){H=J=="width"?L.offsetWidth:L.offsetHeight;if(I==="border"){ return}C.each(G,function(){if(!I){H-=parseFloat(C.curCSS(L,"padding"+this,true)) ||0}if(I==="margin"){H+=parseFloat(C.curCSS(L,"margin"+this,true))||0}else{H-=pa rseFloat(C.curCSS(L,"border"+this+"Width",true))||0}})}if(L.offsetWidth!==0){E() }else{C.swap(L,K,E)}return Math.max(0,Math.round(H))}return C.curCSS(L,J,F)},cur CSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!C.support.opacity){L=C.att r(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=o}if(!G&&E&&E[F]){L=E[ F]}else{if(b.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([AZ])/g,"-$1").toLowerCase();var M=b.getComputedStyle(I,null);if(M){L=M.getPropert yValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace

(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.current Style[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle .left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.l eft=H;I.runtimeStyle.left=K}}}}return L},clean:function(J,G,E){G=G||document;if( typeof G.createElement==="undefined"){G=G.ownerDocument||G[0]&&G[0].ownerDocumen t||document}if(!E&&J.length===1&&typeof J[0]==="string"){var L=/^<(\w+)\s*\/?>$/ .exec(J[0]);if(L){return[G.createElement(L[1])]}}var K=[],I=[],H=G.createElement ("div");C.each(J,function(S,O){if(typeof O==="number"){O+=""}if(!O){return}if(ty peof O==="string"){O=O.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.mat ch(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"}) ;var R=O.replace(/^\s+/,"").substring(0,10).toLowerCase();var M=!R.indexOf("<opt ")&&[1,"<select multiple='multiple'>","</select>"]||!R.indexOf("<leg")&&[1,"<fie ldset>","</fieldset>"]||R.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>", "</table>"]||!R.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!R.ind exOf("<td")||!R.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>" ]||!R.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table >"]||!C.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];H.innerHTML=M[ 1]+O+M[2];while(M[0]--){H=H.lastChild}if(!C.support.tbody){var N=/<tbody/i.test( O),Q=!R.indexOf("<table")&&!N?H.firstChild&&H.firstChild.childNodes:M[1]=="<tabl e>"&&!N?H.childNodes:[];for(var P=Q.length-1;P>=0;--P){if(C.nodeName(Q[P],"tbody ")&&!Q[P].childNodes.length){Q[P].parentNode.removeChild(Q[P])}}}if(!C.support.l eadingWhitespace&&/^\s/.test(O)){H.insertBefore(G.createTextNode(O.match(/^\s*/) [0]),H.firstChild)}O=C.makeArray(H.childNodes)}if(O.nodeType){K.push(O)}else{K=C .merge(K,O)}});if(E){for(var F=0;K[F];F++){if(C.nodeName(K[F],"script")&&(!K[F]. type||K[F].type.toLowerCase()==="text/javascript")){I.push(K[F].parentNode?K[F]. parentNode.removeChild(K[F]):K[F])}else{if(K[F].nodeType===1){K.splice.apply(K,[ F+1,0].concat(C.makeArray(K[F].getElementsByTagName("script"))))}E.appendChild(K [F])}}return I}return K},attr:function(F,K,G){if(!F||F.nodeType==3||F.nodeType== 8){return m}var L=!C.isXMLDoc(F),H=G!==m;K=L&&C.props[K]||K;if(F.tagName){var J= /href|src|style/.test(K);if(K=="selected"&&F.parentNode){F.parentNode.selectedIn dex}if(K in F&&L&&!J){if(H){if(K=="type"&&C.nodeName(F,"input")&&F.parentNode){t hrow"type property can't be changed"}F[K]=G}if(C.nodeName(F,"form")&&F.getAttrib uteNode(K)){return F.getAttributeNode(K).nodeValue}if(K=="tabIndex"){var E=F.get AttributeNode("tabIndex");return E&&E.specified?E.value:F.nodeName.match(/(butto n|input|object|select|textarea)/i)?0:F.nodeName.match(/^(a|area)$/i)&&F.href?0:m }return F[K]}if(!C.support.style&&L&&K=="style"){return C.attr(F.style,"cssText" ,G)}if(H){F.setAttribute(K,""+G)}var I=!C.support.hrefNormalized&&L&&J?F.getAttr ibute(K,2):F.getAttribute(K);return I===null?m:I}if(!C.support.opacity&&K=="opac ity"){if(H){F.zoom=1;F.filter=(F.filter||"").replace(/alpha\([^)]*\)/,"")+(parse Int(G)+""=="NaN"?"":"alpha(opacity="+G*100+")")}return F.filter&&F.filter.indexO f("opacity=")>=0?(parseFloat(F.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}K= K.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(H){F[K]=G}retur n F[K]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:funct ion(E){var F=[];if(E!=null){var G=E.length;if(G==null||typeof E==="string"||C.is Function(E)||E.setInterval){F[0]=E}else{while(G){F[--G]=E[G]}}}return F},inArray :function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1} ,merge:function(G,I){var E=0,F,H=G.length;if(!C.support.getAll){while((F=I[E++]) !=null){if(F.nodeType!=8){G[H++]=F}}}else{while((F=I[E++])!=null){G[H++]=F}}retu rn G},unique:function(H){var J=[],I={};try{for(var K=0,E=H.length;K<E;K++){var G =C.data(H[K]);if(!I[G]){I[G]=true;J.push(H[K])}}}catch(F){J=H}return J},grep:fun ction(J,H,I){var E=[];for(var F=0,G=J.length;F<G;F++){if(!I!=!H(J[F],F)){E.push( J[F])}}return E},map:function(I,H){var J=[];for(var E=0,F=I.length;E<F;E++){var G=H(I[E],E);if(G!=null){J[J.length]=G}}return J.concat.apply([],J)}});var d=navi gator.userAgent.toLowerCase();C.browser={version:(d.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(d),opera:/opera/.test(d),msie:/ms ie/.test(d)&&!/opera/.test(d),mozilla:/mozilla/.test(d)&&!/(compatible|webkit)/. test(d)};C.each({parent:function(E){return E.parentNode},parents:function(E){ret urn C.dir(E,"parentNode")},next:function(E){return C.nth(E,2,"nextSibling")},pre v:function(E){return C.nth(E,2,"previousSibling")},nextAll:function(E){return C. dir(E,"nextSibling")},prevAll:function(E){return C.dir(E,"previousSibling")},sib

lings:function(E){return C.sibling(E.parentNode.firstChild,E)},children:function (E){return C.sibling(E.firstChild)},contents:function(E){return C.nodeName(E,"if rame")?E.contentDocument||E.contentWindow.document:C.makeArray(E.childNodes)}},f unction(E,F){C.fn[E]=function(G){var H=C.map(this,F);if(G&&typeof G=="string"){H =C.multiFilter(G,H)}return this.pushStack(C.unique(H),E,G)}});C.each({appendTo:" append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll :"replaceWith"},function(E,F){C.fn[E]=function(G){var J=[],L=C(G);for(var K=0,H= L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();C.fn[F].apply(C(L[K]), I);J=J.concat(I)}return this.pushStack(J,E,G)}});C.each({removeAttr:function(E){ C.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:functi on(E){C.className.add(this,E)},removeClass:function(E){C.className.remove(this,E )},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!C.className.has(this,F) }C.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||C.filter(E,[th is]).length){C("*",this).add([this]).each(function(){C.event.remove(this);C.remo veData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:fu nction(){C(this).children().remove();while(this.firstChild){this.removeChild(thi s.firstChild)}}},function(E,F){C.fn[E]=function(){return this.each(F,arguments)} });function x(E,F){return E[0]&&parseInt(C.curCSS(E[0],F,true),10)||0}var n="jQu ery"+h(),l=0,a={};C.extend({cache:{},data:function(F,E,G){F=F==z?a:F;var H=F[n]; if(!H){H=F[n]=++l}if(E&&!C.cache[H]){C.cache[H]={}}if(G!==m){C.cache[H][E]=G}ret urn E?C.cache[H][E]:H},removeData:function(F,E){F=F==z?a:F;var H=F[n];if(E){if(C .cache[H]){delete C.cache[H][E];E="";for(E in C.cache[H]){break}if(!E){C.removeD ata(F)}}}else{try{delete F[n]}catch(G){if(F.removeAttribute){F.removeAttribute(n )}}delete C.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=C.d ata(F,E);if(!G||C.isArray(H)){G=C.data(F,E,C.makeArray(H))}else{if(H){G.push(H)} }}return G},dequeue:function(H,G){var E=C.queue(H,G),F=E.shift();if(!G||G==="fx" ){F=E[0]}if(F!==m){F.call(H)}}});C.fn.extend({data:function(E,G){var H=E.split(" .");H[1]=H[1]?"."+H[1]:"";if(G===m){var F=this.triggerHandler("getData"+H[1]+"!" ,[H[0]]);if(F===m&&this.length){F=C.data(this[0],E)}return F===m&&H[1]?this.data (H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){C .data(this,E,G)})}},removeData:function(E){return this.each(function(){C.removeD ata(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===m){ return C.queue(this[0],E)}return this.each(function(){var G=C.queue(this,E,F);if (E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each( function(){C.dequeue(this,E)})}});(function(){var R=/((?:\((?:\([^()]+\)|[^()]+) +\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s *,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(af,Z,ab,ae){ab=ab||[];Z =Z||document;if(Z.nodeType!==1&&Z.nodeType!==9){return[]}if(!af||typeof af!=="st ring"){return ab}var ah=[],ac,W,V,Y,ag,aa,ad=true;R.lastIndex=0;while((ac=R.exec (af))!==null){ah.push(ac[1]);if(ac[2]){aa=RegExp.rightContext;break}}if(ah.lengt h>1&&M.exec(af)){if(ah.length===2&&I.relative[ah[0]]){W=J(ah[0]+ah[1],Z)}else{W= I.relative[ah[0]]?[Z]:F(ah.shift(),Z);while(ah.length){af=ah.shift();if(I.relati ve[af]){af+=ah.shift()}W=J(af,W)}}}else{var U=ae?{expr:ah.pop(),set:E(ae)}:F.fin d(ah.pop(),ah.length===1&&Z.parentNode?Z.parentNode:Z,Q(Z));W=F.filter(U.expr,U. set);if(ah.length>0){V=E(W)}else{ad=false}while(ah.length){var T=ah.pop(),X=T;if (!I.relative[T]){T=""}else{X=ah.pop()}if(X==null){X=Z}I.relative[T](V,X,Q(Z))}}i f(!V){V=W}if(!V){throw"Syntax error, unrecognized expression: "+(T||af)}if(H.cal l(V)==="[object Array]"){if(!ad){ab.push.apply(ab,V)}else{if(Z.nodeType===1){for (var aj=0;V[aj]!=null;aj++){if(V[aj]&&(V[aj]===true||V[aj].nodeType===1&&K(Z,V[a j]))){ab.push(W[aj])}}}else{for(var aj=0;V[aj]!=null;aj++){if(V[aj]&&V[aj].nodeT ype===1){ab.push(W[aj])}}}}}else{E(V,ab)}if(aa){F(aa,Z,ab,ae);if(G){hasDuplicate =false;ab.sort(G);if(hasDuplicate){for(var aj=1;aj<ab.length;aj++){if(ab[aj]===a b[aj-1]){ab.splice(aj--,1)}}}}}return ab};F.matches=function(T,U){return F(T,nul l,null,U)};F.find=function(Z,ab,aa){var Y,W;if(!Z){return[]}for(var V=0,U=I.orde r.length;V<U;V++){var X=I.order[V],W;if((W=I.match[X].exec(Z))){var T=RegExp.lef tContext;if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");Y=I.f ind[X](W,ab,aa);if(Y!=null){Z=Z.replace(I.match[X],"");break}}}}if(!Y){Y=ab.getE lementsByTagName("*")}return{set:Y,expr:Z}};F.filter=function(ah,ae,ab,ac){var a a=ah,W=[],U=ae,af,Y,ag=ae&&ae[0]&&Q(ae[0]);while(ah&&ae.length){for(var X in I.f ilter){if((af=I.match[X].exec(ah))!=null){var Z=I.filter[X],T,V;Y=false;if(U==W)

{W=[]}if(I.preFilter[X]){af=I.preFilter[X](af,U,ab,W,ac,ag);if(!af){Y=T=true}els e{if(af===true){continue}}}if(af){for(var ad=0;(V=U[ad])!=null;ad++){if(V){T=Z(V ,af,ad,U);var aj=ac^!!T;if(ab&&T!=null){if(aj){Y=true}else{U[ad]=false}}else{if( aj){W.push(V);Y=true}}}}}if(T!==m){if(!ab){U=W}ah=ah.replace(I.match[X],"");if(! Y){return[]}break}}}if(ah==aa){if(Y==null){throw"Syntax error, unrecognized expr ession: "+ah}else{break}}aa=ah}return U};var I=F.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|)\s*\]/,TAG:/^((?:[\w \u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\d n+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PS EUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\ ))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T) {return T.getAttribute("href")}},relative:{"+":function(Z,ab,Y){var W=typeof ab= =="string",aa=W&&!/\W/.test(ab),X=W&&!aa;if(aa&&!Y){ab=ab.toUpperCase()}for(var V=0,U=Z.length,T;V<U;V++){if((T=Z[V])){while((T=T.previousSibling)&&T.nodeType!= =1){}Z[V]=X||T&&T.nodeName===ab?T||false:T===ab}}if(X){F.filter(ab,Z,true)}},">" :function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUppe rCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V] =W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){ Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(U, Y,W){var T=L++,X=S;if(!Y.match(/\W/)){var V=Y=W?Y:Y.toUpperCase();X=P}X("parentN ode",Y,T,U,V,W)},"~":function(U,Y,W){var T=L++,X=S;if(typeof Y==="string"&&!Y.ma tch(/\W/)){var V=Y=W?Y:Y.toUpperCase();X=P}X("previousSibling",Y,T,U,V,W)}},find :{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getEl ementById(U[1]);return T?[T]:[]}},NAME:function(U,X,Y){if(typeof X.getElementsBy Name!=="undefined"){var T=[],W=X.getElementsByName(U[1]);for(var V=0,Z=W.length; V<Z;V++){if(W[V].getAttribute("name")===U[1]){T.push(W[V])}}return T.length===0? null:T}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLAS S:function(V,U,W,T,Z,aa){V=" "+V[1].replace(/\\/g,"")+" ";if(aa){return V}for(va r X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").index Of(V)>=0)){if(!W){T.push(Y)}}else{if(W){U[X]=false}}}}return false},ID:function( T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++ ){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth "){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1" ||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L ++;return T},ATTR:function(W,T,U,Z,X,Y){var V=W[1].replace(/\\/g,"");if(!Y&&I.at trMap[V]){W[1]=I.attrMap[V]}if(W[2]==="~="){W[4]=" "+W[4]+" "}return W},PSEUDO:f unction(V,Y,T,X,W){if(V[1]==="not"){if(V[3].match(R).length>1||/^\w/.test(V[3])) {V[3]=F(V[3],null,null,Y)}else{var U=F.filter(V[3],Y,T,true^W);if(!T){X.push.app ly(X,U)}return false}}else{if(I.match.POS.test(V[0])||I.match.CHILD.test(V[0])){ return true}}return V},POS:function(T){T.unshift(true);return T}},filters:{enabl ed:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T ){return T.disabled===true},checked:function(T){return T.checked===true},selecte d:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:functi on(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:functio n(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeN ame)},text:function(T){return"text"===T.type},radio:function(T){return"radio"=== T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return" file"===T.type},password:function(T){return"password"===T.type},submit:function( T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:func tion(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.no deName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea| button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:f unction(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:f unction(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U ,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){re turn T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if( X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText| |"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W

++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U= T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1) {return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){ if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V== 1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nod eIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nod eIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{retur n(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("i d")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLAS S:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T )>-1},ATTR:function(X,V){var U=V[1],Z=I.attrHandle[U]?I.attrHandle[U](X):X[U]!=n ull?X[U]:X.getAttribute(U),Y=Z+"",W=V[2],T=V[4];return Z==null?W==="!=":W==="="? Y===T:W==="*="?Y.indexOf(T)>=0:W==="~="?(" "+Y+" ").indexOf(T)>=0:!T?Y&&Z!==fals e:W==="!="?Y!=T:W==="^="?Y.indexOf(T)===0:W==="$="?Y.substr(Y.length-T.length)== =T:W==="|="?Y===T||Y.substr(0,T.length+1)===T+"-":false},POS:function(V,Y,T,W){v ar X=Y[2],U=I.setFilters[X];if(U){return U(V,T,Y,W)}}}};var M=I.match.POS;for(va r O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.s ource)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T, U);return T}return U};try{Array.prototype.slice.call(document.documentElement.ch ildNodes)}catch(N){E=function(U,T){var W=T||[];if(H.call(U)==="[object Array]"){ Array.prototype.push.apply(W,U)}else{if(typeof U.length==="number"){for(var X=0, V=U.length;X<V;X++){W.push(U[X])}}else{for(var X=0;U[X];X++){W.push(U[X])}}}retu rn W}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T) {var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}r eturn V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(docu ment.createRange){G=function(T,W){var X=T.ownerDocument.createRange(),V=W.ownerD ocument.createRange();X.selectNode(T);X.collapse(true);V.selectNode(W);V.collaps e(true);var U=X.compareBoundaryPoints(Range.START_TO_END,V);if(U===0){hasDuplica te=true}return U}}}}(function(){var U=document.createElement("form"),V="script"+ (new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.document Element;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.I D=function(Z,W,X){if(typeof W.getElementById!=="undefined"&&!X){var Y=W.getEleme ntById(Z[1]);return Y?Y.id===Z[1]||typeof Y.getAttributeNode!=="undefined"&&Y.ge tAttributeNode("id").nodeValue===Z[1]?[Y]:m:[]}};I.filter.ID=function(W,X){var Y =typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id");return W.node Type===1&&Y&&Y.nodeValue===X}}T.removeChild(U)})();(function(){var T=document.cr eateElement("div");T.appendChild(document.createComment(""));if(T.getElementsByT agName("*").length>0){I.find.TAG=function(Y,X){var W=X.getElementsByTagName(Y[1] );if(Y[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U ])}}W=V}return W}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.first Child.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.att rHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.query SelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length=== 0){return}F=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!Q(Y)){try{re turn E(Y.querySelectorAll(Z),W)}catch(V){}}return T(Z,Y,W,X)};F.find=T.find;F.fi lter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getEle mentsByClassName&&document.documentElement.getElementsByClassName){(function(){v ar T=document.createElement("div");T.innerHTML="<div class='test e'></div><div c lass='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastCh ild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.sp lice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassNam e!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(V,aa ,Z,T,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=T.length;X<W;X++){var U=T[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false; while(U){if(U.sizcache===Z){Y=T[U.sizset];break}if(U.nodeType===1&&!ad){U.sizcac he=Z;U.sizset=X}if(U.nodeName===aa){Y=U;break}U=U[V]}T[X]=Y}}}function S(V,aa,Z, T,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=T.length;X<W;X++){var U= T[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;whi

le(U){if(U.sizcache===Z){Y=T[U.sizset];break}if(U.nodeType===1){if(!ad){U.sizcac he=Z;U.sizset=X}if(typeof aa!=="string"){if(U===aa){Y=true;break}}else{if(F.filt er(aa,[U]).length>0){Y=U;break}}}U=U[V]}T[X]=Y}}}var K=document.compareDocumentP osition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){retu rn U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType== =9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)}; var J=function(T,Z){var V=[],X="",Y,W=Z.nodeType?[Z]:Z;while((Y=I.match.PSEUDO.e xec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var aa=0,U=W.length;aa<U;aa++){F(T,W[aa],V)}return F.filter(X,V)};C.find=F;C.filter= F.filter;C.expr=F.selectors;C.expr[":"]=C.expr.filters;F.selectors.filters.hidde n=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters. visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filter s.animated=function(T){return C.grep(C.timers,function(U){return T===U.elem}).le ngth};C.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)} ;C.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.p ush(W)}W=W[U]}return T};C.nth=function(U,V,X,T){V=V||1;var W=0;for(;U;U=U[X]){if (U.nodeType==1&&++W==V){break}}return U};C.sibling=function(V,U){var T=[];for(;V ;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;z.Sizzle=F })();C.event={add:function(F,J,E,H){if(F.nodeType==3||F.nodeType==8){return}if(F .setInterval&&F!=z){F=z}if(!E.guid){E.guid=this.guid++}if(H!==m){var K=E;E=this. proxy(K);E.data=H}var I=C.data(F,"events")||C.data(F,"events",{}),G=C.data(F,"ha ndle")||C.data(F,"handle",function(){return typeof C!=="undefined"&&!C.event.tri ggered?C.event.handle.apply(arguments.callee.elem,arguments):m});G.elem=F;C.each (J.split(/\s+/),function(O,L){var M=L.split(".");L=M.shift();E.type=M.slice().so rt().join(".");var N=I[L];if(C.event.specialAll[L]){C.event.specialAll[L].setup. call(F,H,M)}if(!N){N=I[L]={};if(!C.event.special[L]||C.event.special[L].setup.ca ll(F,H,M)===false){if(F.addEventListener){F.addEventListener(L,G,false)}else{if( F.attachEvent){F.attachEvent("on"+L,G)}}}}N[E.guid]=E;C.event.global[L]=true});F =null},guid:1,global:{},remove:function(G,L,F){if(G.nodeType==3||G.nodeType==8){ return}var K=C.data(G,"events"),J,I;if(K){if(L===m||(typeof L==="string"&&L.char At(0)==".")){for(var E in K){this.remove(G,E+(L||""))}}else{if(L.type){F=L.handl er;L=L.type}C.each(L.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();v ar N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(K[O]){if(F){d elete K[O][F.guid]}else{for(var P in K[O]){if(N.test(K[O][P].type)){delete K[O][ P]}}}if(C.event.specialAll[O]){C.event.specialAll[O].teardown.call(G,Q)}for(J in K[O]){break}if(!J){if(!C.event.special[O]||C.event.special[O].teardown.call(G,Q )===false){if(G.removeEventListener){G.removeEventListener(O,C.data(G,"handle"), false)}else{if(G.detachEvent){G.detachEvent("on"+O,C.data(G,"handle"))}}}J=null; delete K[O]}}})}for(J in K){break}if(!J){var H=C.data(G,"handle");if(H){H.elem=n ull}C.removeData(G,"events");C.removeData(G,"handle")}}},trigger:function(E,G,L, I){var K=E.type||E;if(!I){E=typeof E==="object"?E[n]?E:C.extend(C.Event(K),E):C. Event(K);if(K.indexOf("!")>=0){E.type=K=K.slice(0,-1);E.exclusive=true}if(!L){E. stopPropagation();if(this.global[K]){C.each(C.cache,function(){if(this.events&&t his.events[K]){C.event.trigger(E,G,this.handle.elem)}})}}if(!L||L.nodeType==3||L .nodeType==8){return m}E.result=m;E.target=L;G=C.makeArray(G);G.unshift(E)}E.cur rentTarget=L;var F=C.data(L,"handle");if(F){F.apply(L,G)}if((!L[K]||(C.nodeName( L,"a")&&K=="click"))&&L["on"+K]&&L["on"+K].apply(L,G)===false){E.result=false}if (!I&&L[K]&&!E.isDefaultPrevented()&&!(C.nodeName(L,"a")&&K=="click")){this.trigg ered=true;try{L[K]()}catch(H){}}this.triggered=false;if(!E.isPropagationStopped( )){var J=L.parentNode||L.ownerDocument;if(J){C.event.trigger(E,G,J,true)}}},hand le:function(G){var F,I;G=arguments[0]=C.event.fix(G||z.event);G.currentTarget=th is;var H=G.type.split(".");G.type=H.shift();F=!H.length&&!G.exclusive;var E=RegE xp("(^|\\.)"+H.slice().sort().join(".*\\.")+"(\\.|$)");I=(C.data(this,"events")| |{})[G.type];for(var K in I){var L=I[K];if(F||E.test(L.type)){G.handler=L;G.data =L.data;var J=L.apply(this,arguments);if(J!==m){G.result=J;if(J===false){G.preve ntDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}} ,props:"altKey attrChange attrName bubbles button cancelable charCode clientX cl ientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode m etaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget s creenX screenY shiftKey srcElement target toElement view wheelDelta which".split

(" "),fix:function(F){if(F[n]){return F}var J=F;F=C.Event(J);for(var E=this.prop s.length,H;E;){H=this.props[--E];F[H]=J[H]}if(!F.target){F.target=F.srcElement|| document}if(F.target.nodeType==3){F.target=F.target.parentNode}if(!F.relatedTarg et&&F.fromElement){F.relatedTarget=F.fromElement==F.target?F.toElement:F.fromEle ment}if(F.pageX==null&&F.clientX!=null){var G=document.documentElement,I=documen t.body;F.pageX=F.clientX+(G&&G.scrollLeft||I&&I.scrollLeft||0)-(G.clientLeft||0) ;F.pageY=F.clientY+(G&&G.scrollTop||I&&I.scrollTop||0)-(G.clientTop||0)}if(!F.wh ich&&((F.charCode||F.charCode===0)?F.charCode:F.keyCode)){F.which=F.charCode||F. keyCode}if(!F.metaKey&&F.ctrlKey){F.metaKey=F.ctrlKey}if(!F.which&&F.button){F.w hich=(F.button&1?1:(F.button&2?3:(F.button&4?2:0)))}return F},proxy:function(F,E ){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid|| this.guid++;return E},special:{ready:{setup:c,teardown:function(){}}},specialAll :{live:{setup:function(E,F){C.event.add(this,F[0],u)},teardown:function(E){if(E. length){var F=0,G=RegExp("(^|\\.)"+E[0]+"(\\.|$)");C.each((C.data(this,"events") .live||{}),function(){if(G.test(this.type)){F++}});if(F<1){C.event.remove(this,E [0],u)}}}}}};C.Event=function(E){if(!this.preventDefault){return new C.Event(E)} if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeSt amp=h();this[n]=true};function y(){return false}function k(){return true}C.Event .prototype={preventDefault:function(){this.isDefaultPrevented=k;var E=this.origi nalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=fal se},stopPropagation:function(){this.isPropagationStopped=k;var E=this.originalEv ent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true} ,stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k;this.s topPropagation()},isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropaga tionStopped:y};var s=function(G){var F=G.relatedTarget;while(F&&F!=this){try{F=F .parentNode}catch(E){F=this}}if(F!=this){G.type=G.data;C.event.handle.apply(this ,arguments)}};C.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E ){C.event.special[E]={setup:function(){C.event.add(this,F,s,E)},teardown:functio n(){C.event.remove(this,F,s)}}});C.fn.extend({bind:function(G,E,F){return G=="un load"?this.one(G,E,F):this.each(function(){C.event.add(this,G,F||E,F&&E)})},one: function(G,H,F){var E=C.event.proxy(F||H,function(I){C(this).unbind(I,E);return( F||H).apply(this,arguments)});return this.each(function(){C.event.add(this,G,E,F &&H)})},unbind:function(F,E){return this.each(function(){C.event.remove(this,F,E )})},trigger:function(E,F){return this.each(function(){C.event.trigger(E,F,this) })},triggerHandler:function(F,E){if(this[0]){var G=C.Event(F);G.preventDefault() ;G.stopPropagation();C.event.trigger(G,E,this[0]);return G.result}},toggle:funct ion(E){var F=arguments,G=1;while(G<F.length){C.event.proxy(E,F[G++])}return this .click(C.event.proxy(E,function(H){this.lastToggle=(this.lastToggle||0)%G;H.prev entDefault();return F[this.lastToggle++].apply(this,arguments)||false}))},hover: function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){c();if( C.isReady){E.call(document,C)}else{C.readyList.push(E)}return this},live:functio n(E,G){var F=C.event.proxy(G);F.guid+=this.selector+E;C(document).bind(w(E,this. selector),this.selector,F);return this},die:function(F,E){C(document).unbind(w(F ,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function u( H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];C.each(C.data(this,"even ts").live||[],function(I,J){if(E.test(J.type)){var K=C(H.target).closest(J.data) [0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return C.data(J.elem,"c losest")-C.data(I.elem,"closest")});C.each(F,function(){if(this.fn.call(this.ele m,H,this.fn.data)===false){return(G=false)}});return G}function w(F,E){return["l ive",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}C.extend({isReady:false ,readyList:[],ready:function(){if(!C.isReady){C.isReady=true;if(C.readyList){C.e ach(C.readyList,function(){this.call(document,C)});C.readyList=null}C(document). triggerHandler("ready")}}});var p=false;function c(){if(p){return}p=true;if(docu ment.addEventListener){document.addEventListener("DOMContentLoaded",function(){d ocument.removeEventListener("DOMContentLoaded",arguments.callee,false);C.ready() },false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange" ,function(){if(document.readyState==="complete"){document.detachEvent("onreadyst atechange",arguments.callee);C.ready()}});if(document.documentElement.doScroll&& z==z.top){(function(){if(C.isReady){return}try{document.documentElement.doScroll ("left")}catch(E){setTimeout(arguments.callee,0);return}C.ready()})()}}}C.event.

add(z,"load",C.ready)}C.each(("blur,focus,load,resize,scroll,unload,click,dblcli ck,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,s elect,submit,keydown,keypress,keyup,error").split(","),function(F,E){C.fn[E]=fun ction(G){return G?this.bind(E,G):this.trigger(E)}});C(z).bind("unload",function( ){for(var E in C.cache){if(E!=1&&C.cache[E].handle){C.event.remove(C.cache[E].ha ndle.elem)}}});(function(){C.support={};var J=document.documentElement,K=documen t.createElement("script"),H=document.createElement("div"),G="script"+(new Date). getTime();H.style.display="none";H.innerHTML=' <link/><table></table><a href=" /a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option>< /select><object><param/></object>';var E=H.getElementsByTagName("*"),I=H.getElem entsByTagName("a")[0];if(!E||!E.length||!I){return}C.support={leadingWhitespace: H.firstChild.nodeType==3,tbody:!H.getElementsByTagName("tbody").length,objectAll :!!H.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSeri alize:!!H.getElementsByTagName("link").length,style:/red/.test(I.getAttribute("s tyle")),hrefNormalized:I.getAttribute("href")==="/a",opacity:I.style.opacity===" 0.5",cssFloat:!!I.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:nul l};K.type="text/javascript";try{K.appendChild(document.createTextNode("window."+ G+"=1;"))}catch(F){}J.insertBefore(K,J.firstChild);if(z[G]){C.support.scriptEval =true;delete z[G]}J.removeChild(K);if(H.attachEvent&&H.fireEvent){H.attachEvent( "onclick",function(){C.support.noCloneEvent=false;H.detachEvent("onclick",argume nts.callee)});H.cloneNode(true).fireEvent("onclick")}C(function(){var L=document .createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appe ndChild(L);C.boxModel=C.support.boxModel=L.offsetWidth===2;document.body.removeC hild(L).style.display="none"})})();var o=C.support.cssFloat?"cssFloat":"styleFlo at";C.props={"for":"htmlFor","class":"className","float":o,cssFloat:o,styleFloat :o,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:" rowSpan",tabindex:"tabIndex"};C.fn.extend({_load:C.fn.load,load:function(K,G,H){ if(typeof K!=="string"){return this._load(K)}var F=K.indexOf(" ");if(F>=0){var I =K.slice(F,K.length);K=K.slice(0,F)}var E="GET";if(G){if(C.isFunction(G)){H=G;G= null}else{if(typeof G==="object"){G=C.param(G);E="POST"}}}var J=this;C.ajax({url :K,type:E,dataType:"html",data:G,complete:function(M,L){if(L=="success"||L=="not modified"){J.html(I?C("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/ script>/g,"")).find(I):M.responseText)}if(H){J.each(H,[M.responseText,L,M])}}}); return this},serialize:function(){return C.param(this.serializeArray())},seriali zeArray:function(){return this.map(function(){return this.elements?C.makeArray(t his.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.c hecked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.t est(this.type))}).map(function(F,G){var E=C(this).val();return E==null?null:C.is Array(E)?C.map(E,function(I,H){return{name:G.name,value:I}}):{name:G.name,value: E}}).get()}});C.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajax Send".split(","),function(E,F){C.fn[F]=function(G){return this.bind(F,G)}});var e=h();C.extend({get:function(E,G,H,F){if(C.isFunction(G)){H=G;G=null}return C.aj ax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){retu rn C.get(E,null,F,"script")},getJSON:function(F,G,E){return C.get(F,G,E,"json")} ,post:function(E,G,H,F){if(C.isFunction(G)){H=G;G={}}return C.ajax({type:"POST", url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){C.extend(C.ajaxSettin gs,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"appli cation/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return z.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},acc epts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plai n",_default:"*/*"}},lastModified:{},ajax:function(M){M=C.extend(true,M,C.extend( true,{},C.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.d ata&&M.processData&&typeof M.data!=="string"){M.data=C.param(M.data)}if(M.dataTy pe=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?") +(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M .data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json "&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+e++;if(M.data){M.data=(M .data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="sc ript";z[W]=function(X){V=X;I();L();z[W]=m;try{delete z[W]}catch(Y){}if(H){H.remo

veChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache=== false&&G=="GET"){var E=h();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2") ;M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET") {M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!C.active++) {C.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.da taType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.ho st)){var H=document.getElementsByTagName("head")[0];var T=document.createElement ("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this. readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.on readystatechange=null;H.removeChild(T)}}}H.appendChild(T);return m}var K=false;v ar J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J .open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.conten tType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",C.lastModified[M. url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XM LHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.a ccepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.befo reSend(J,M)===false){if(M.global&&!--C.active){C.event.trigger("ajaxStop")}J.abo rt();return false}if(M.global){C.event.trigger("ajaxSend",[J,M])}var N=function( X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--C.active){C .event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=t rue;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!C.httpSuccess(J)?"er ror":M.ifModified&&C.httpNotModified(J,M.url)?"notmodified":"success";if(R=="suc cess"){try{V=C.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success "){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y ){C.lastModified[M.url]=Y}if(!W){I()}}else{C.handleError(M,J,R)}L();if(X){J.abor t()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){s etTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}cat ch(S){C.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.su ccess(V,R)}if(M.global){C.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M. complete){M.complete(J,R)}if(M.global){C.event.trigger("ajaxComplete",[J,M])}if( M.global&&!--C.active){C.event.trigger("ajaxStop")}}return J},handleError:functi on(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){C.event.trigger("ajaxError", [H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.proto col=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch (E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader(" Last-Modified");return G.status==304||H==C.lastModified[E]}catch(F){}return fals e},httpData:function(H,F,E){var J=H.getResponseHeader("content-type"),I=F=="xml" ||!F&&J&&J.indexOf("xml")>=0,G=I?H.responseXML:H.responseText;if(I&&G.documentEl ement.tagName=="parsererror"){throw"parsererror"}if(E&&E.dataFilter){G=E.dataFil ter(G,F)}if(typeof G==="string"){if(F=="script"){C.globalEval(G)}if(F=="json"){G =z["eval"]("("+G+")")}}return G},param:function(E){var G=[];function H(I,J){G[G. length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(C.isArray(E)||E.jquer y){C.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(C.isArr ay(E[F])){C.each(E[F],function(){H(F,this)})}else{H(F,C.isFunction(E[F])?E[F](): E[F])}}}return G.join("&").replace(/%20/g,"+")}});var A={},B,v=[["height","margi nTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","margin Right","paddingLeft","paddingRight"],["opacity"]];function i(G,F){var E={};C.eac h(v.concat.apply([],v.slice(0,F)),function(){E[this]=G});return E}C.fn.extend({s how:function(F,H){if(F){return this.animate(i("show",3),F,H)}else{for(var L=0,J= this.length;L<J;L++){var I=C.data(this[L],"olddisplay");this[L].style.display=I| |"";if(C.css(this[L],"display")==="none"){var K=this[L].tagName,G;if(A[K]){G=A[K ]}else{var E=C("<"+K+" />").appendTo("body");G=E.css("display");if(G==="none"){G ="block"}E.remove();A[K]=G}C.data(this[L],"olddisplay",G)}}for(var L=0,J=this.le ngth;L<J;L++){this[L].style.display=C.data(this[L],"olddisplay")||""}return this }},hide:function(G,H){if(G){return this.animate(i("hide",3),G,H)}else{for(var F= 0,E=this.length;F<E;F++){var I=C.data(this[F],"olddisplay");if(!I&&I!=="none"){C .data(this[F],"olddisplay",C.css(this[F],"display"))}}for(var F=0,E=this.length; F<E;F++){this[F].style.display="none"}return this}},_toggle:C.fn.toggle,toggle:f unction(E,G){var F=typeof E==="boolean";return C.isFunction(E)&&C.isFunction(G)?

this._toggle.apply(this,arguments):E==null||F?this.each(function(){var H=F?E:C(t his).is(":hidden");C(this)[H?"show":"hide"]()}):this.animate(i("toggle",3),E,G)} ,fadeTo:function(F,E,G){return this.animate({opacity:E},F,G)},animate:function(H ,E,G,F){var I=C.speed(E,G,F);return this[I.queue===false?"each":"queue"](functio n(){var M=C.extend({},I),K,J=this.nodeType==1&&C(this).is(":hidden"),L=this;for( K in H){if(H[K]=="hide"&&J||H[K]=="show"&&!J){return M.complete.call(this)}if((K =="height"||K=="width")&&this.style){M.display=C.css(this,"display");M.overflow= this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim =C.extend({},H);C.each(H,function(P,T){var S=new C.fx(L,M,P);if(/toggle|show|hid e/.test(T)){S[T=="toggle"?J?"show":"hide":T](H)}else{var R=T.toString().match(/^ ([+-]=)?([\d+-.]+)(.*)$/),N=S.cur(true)||0;if(R){var O=parseFloat(R[2]),Q=R[3]|| "px";if(Q!="px"){L.style[P]=(O||1)+Q;N=((O||1)/S.cur(true))*N;L.style[P]=N+Q}if( R[1]){O=((R[1]=="-="?-1:1)*O)+N}S.custom(N,O,Q)}else{S.custom(N,T,"")}}});return true})},stop:function(G,F){var E=C.timers;if(G){this.queue([])}this.each(functi on(){for(var H=E.length-1;H>=0;H--){if(E[H].elem==this){if(F){E[H](true)}E.splic e(H,1)}}});if(!F){this.dequeue()}return this}});C.each({slideDown:i("show",1),sl ideUp:i("hide",1),slideToggle:i("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opa city:"hide"}},function(E,F){C.fn[E]=function(G,H){return this.animate(F,G,H)}}); C.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H|| C.isFunction(G)&&G,duration:G,easing:F&&H||H&&!C.isFunction(H)&&H};E.duration=C. fx.off?0:typeof E.duration==="number"?E.duration:C.fx.speeds[E.duration]||C.fx.s peeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){C(this ).dequeue()}if(C.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear: function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math .PI)/2)+0.5)*F+E}},timers:[],fx:function(G,F,E){this.options=F;this.elem=G;this. prop=E;if(!F.orig){F.orig={}}}});C.fx.prototype={update:function(){if(this.optio ns.step){this.options.step.call(this.elem,this.now,this)}(C.fx.step[this.prop]|| C.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.ele m.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.pro p]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem [this.prop]}var E=parseFloat(C.css(this.elem,this.prop,F));return E&&E>-10000?E: parseFloat(C.curCSS(this.elem,this.prop))||0},custom:function(H,G,F){this.startT ime=h();this.start=H;this.end=G;this.unit=F||this.unit||"px";this.now=this.start ;this.pos=this.state=0;var I=this;function E(J){return I.step(J)}E.elem=this.ele m;if(E()&&C.timers.push(E)&&!B){B=setInterval(function(){var K=C.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(B); B=m}},13)}},show:function(){this.options.orig[this.prop]=C.attr(this.elem.style, this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="he ight"?1:0,this.cur());C(this.elem).show()},hide:function(){this.options.orig[thi s.prop]=C.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(thi s.cur(),0)},step:function(F){var E=h();if(F||E>=this.options.duration+this.start Time){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim [this.prop]=true;var I=true;for(var J in this.options.curAnim){if(this.options.c urAnim[J]!==true){I=false}}if(I){if(this.options.display!=null){this.elem.style. overflow=this.options.overflow;this.elem.style.display=this.options.display;if(C .css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.opti ons.hide){C(this.elem).hide()}if(this.options.hide||this.options.show){for(var G in this.options.curAnim){C.attr(this.elem.style,G,this.options.orig[G])}}this.o ptions.complete.call(this.elem)}return false}else{var H=E-this.startTime;this.st ate=H/this.options.duration;this.pos=C.easing[this.options.easing||(C.easing.swi ng?"swing":"linear")](this.state,H,0,1,this.options.duration);this.now=this.star t+((this.end-this.start)*this.pos);this.update()}return true}};C.extend(C.fx,{sp eeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){C.attr(E.elem.st yle,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop] !=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(docu ment.documentElement.getBoundingClientRect){C.fn.offset=function(){if(!this[0]){ return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return C.offset.bo dyOffset(this[0])}var K=this[0].getBoundingClientRect(),F=this[0].ownerDocument, J=F.body,I=F.documentElement,H=I.clientTop||J.clientTop||0,G=I.clientLeft||J.cli entLeft||0,E=K.top+(self.pageYOffset||C.boxModel&&I.scrollTop||J.scrollTop)-H,L=

K.left+(self.pageXOffset||C.boxModel&&I.scrollLeft||J.scrollLeft)-G;return{top:E ,left:L}}}else{C.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[ 0]===this[0].ownerDocument.body){return C.offset.bodyOffset(this[0])}C.offset.in itialized||C.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDoc ument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null ),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComp utedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.o ffsetLeft;if(C.offset.doesNotAddBorder&&!(C.offset.doesAddBorderForTableAndCells &&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=pars eInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(C.offset.subtractsBorderFo rOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0 ,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position ==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max (H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,le ft:I}}}C.offset={initialize:function(){if(this.initialized){return}var L=documen t.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div s tyle="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;wi dth:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left :0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding=" 0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left :0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F .style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.f irstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetT op!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="h idden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G. offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L .offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},body Offset:function(F){C.offset.initialized||C.offset.initialize();var E=F.offsetTop ,G=F.offsetLeft;if(C.offset.doesNotIncludeMarginInBodyOffset){E+=parseInt(C.curC SS(F,"marginTop",true),10)||0,G+=parseInt(C.curCSS(F,"marginLeft",true),10)||0}r eturn{top:E,left:G}}};C.fn.extend({position:function(){var G=0,F=0,J;if(this[0]) {var E=this.offsetParent(),H=this.offset(),I=/^body|html$/i.test(E[0].tagName)?{ top:0,left:0}:E.offset();H.top-=x(this,"marginTop");H.left-=x(this,"marginLeft") ;I.top+=x(E,"borderTopWidth");I.left+=x(E,"borderLeftWidth");J={top:H.top-I.top, left:H.left-I.left}}return J},offsetParent:function(){var E=this[0].offsetParent ||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&C.css(E,"position")== "static")){E=E.offsetParent}return C(E)}});C.each(["Left","Top"],function(G,F){v ar E="scroll"+F;C.fn[E]=function(H){if(!this[0]){return null}return H!==m?this.e ach(function(){this==z||this==document?z.scrollTo(!G?H:C(z).scrollLeft(),G?H:C(z ).scrollTop()):this[E]=H}):this[0]==z||this[0]==document?self[G?"pageYOffset":"p ageXOffset"]||C.boxModel&&document.documentElement[E]||document.body[E]:this[0][ E]}});C.each(["Height","Width"],function(G,E){var I=G?"Left":"Top",F=G?"Right":" Bottom",J=E.toLowerCase();C.fn["inner"+E]=function(){return this[0]?C.css(this[0 ],J,false,"padding"):null};C.fn["outer"+E]=function(K){return this[0]?C.css(this [0],J,false,K?"margin":"border"):null};var H=E.toLowerCase();C.fn[H]=function(K) {return this[0]==z?document.compatMode=="CSS1Compat"&&document.documentElement[" client"+E]||document.body["client"+E]:this[0]==document?Math.max(document.docume ntElement["client"+E],document.body["scroll"+E],document.documentElement["scroll "+E],document.body["offset"+E],document.documentElement["offset"+E]):K===m?(this .length?C.css(this[0],H):null):this.css(H,typeof K==="string"?K:K+"px")}})})();( function(e){e.ui={plugin:{add:function(b,a,i){var j=e.ui[b].prototype;for(var c in i){j.plugins[c]=j.plugins[c]||[];j.plugins[c].push([a,i[c]])}},call:function( c,a,b){var i=c.plugins[a];if(!i){return}for(var j=0;j<i.length;j++){if(c.options [i[j][0]]){i[j][1].apply(c.element,b)}}}},cssCache:{},css:function(a){if(e.ui.cs sCache[a]){return e.ui.cssCache[a]}var c=e('<div class="ui-gen">').addClass(a).c ss({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo( "body");e.ui.cssCache[a]=!!((!(/auto|default/).test(c.css("cursor"))||(/^[1-9]/) .test(c.css("height"))||(/^[1-9]/).test(c.css("width"))||!(/none/).test(c.css("b ackgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(c.css("backgroundCol or"))));try{e("body").get(0).removeChild(c.get(0))}catch(b){}return e.ui.cssCach

e[a]},disableSelection:function(a){e(a).attr("unselectable","on").css("MozUserSe lect","none")},enableSelection:function(a){e(a).attr("unselectable","off").css(" MozUserSelect","")},hasScroll:function(c,a){var b=/top/.test(a||"top")?"scrollTo p":"scrollLeft",h=false;if(c[b]>0){return true}c[b]=1;h=c[b]>0?true:false;c[b]=0 ;return h}};var f=e.fn.remove;e.fn.remove=function(){e("*",this).add(this).trigg erHandler("remove");return f.apply(this,arguments)};function d(a,h,c){var b=e[a] [h].getter||[];b=(typeof b=="string"?b.split(/,?\s+/):b);return(e.inArray(c,b)!= -1)}e.widget=function(c,a){var b=c.split(".")[0];c=c.split(".")[1];e.fn[c]=funct ion(l){var n=(typeof l=="string"),m=Array.prototype.slice.call(arguments,1);if(n &&d(b,c,l)){var k=e.data(this[0],c);return(k?k[l].apply(k,m):undefined)}return t his.each(function(){var g=e.data(this,c);if(n&&g&&e.isFunction(g[l])){g[l].apply (g,m)}else{if(!n){e.data(this,c,new e[b][c](this,l))}}})};e[b][c]=function(j,k){ var l=this;this.widgetName=c;this.widgetBaseClass=b+"-"+c;this.options=e.extend( {},e.widget.defaults,e[b][c].defaults,k);this.element=e(j).bind("setData."+c,fun ction(g,i,h){return l.setData(i,h)}).bind("getData."+c,function(g,h){return l.ge tData(h)}).bind("remove",function(){return l.destroy()});this.init()};e[b][c].pr ototype=e.extend({},e.widget.prototype,a)};e.widget.prototype={init:function(){} ,destroy:function(){this.element.removeData(this.widgetName)},getData:function(a ){return this.options[a]},setData:function(b,a){this.options[b]=a;if(b=="disable d"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}} ,enable:function(){this.setData("disabled",false)},disable:function(){this.setDa ta("disabled",true)}};e.widget.defaults={disabled:false};e.ui.mouse={mouseInit:f unction(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){ return a.mouseDown(b)});if(e.browser.msie){this._mouseUnselectable=this.element. attr("unselectable");this.element.attr("unselectable","on")}this.started=false}, mouseDestroy:function(){this.element.unbind("."+this.widgetName);(e.browser.msie &&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function (h){(this._mouseStarted&&this.mouseUp(h));this._mouseDownEvent=h;var a=this,c=(h .which==1),b=(typeof this.options.cancel=="string"?e(h.target).parents().add(h.t arget).filter(this.options.cancel).length:false);if(!c||b||!this.mouseCapture(h) ){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){t his._mouseDelayTimer=setTimeout(function(){a._mouseDelayMet=true},this.options.d elay)}if(this.mouseDistanceMet(h)&&this.mouseDelayMet(h)){this._mouseStarted=(th is.mouseStart(h)!==false);if(!this._mouseStarted){h.preventDefault();return true }}this._mouseMoveDelegate=function(g){return a.mouseMove(g)};this._mouseUpDelega te=function(g){return a.mouseUp(g)};e(document).bind("mousemove."+this.widgetNam e,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate );return false},mouseMove:function(a){if(e.browser.msie&&!a.button){return this. mouseUp(a)}if(this._mouseStarted){this.mouseDrag(a);return false}if(this.mouseDi stanceMet(a)&&this.mouseDelayMet(a)){this._mouseStarted=(this.mouseStart(this._m ouseDownEvent,a)!==false);(this._mouseStarted?this.mouseDrag(a):this.mouseUp(a)) }return !this._mouseStarted},mouseUp:function(a){e(document).unbind("mousemove." +this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this ._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseSto p(a)}return false},mouseDistanceMet:function(a){return(Math.max(Math.abs(this._m ouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this .options.distance)},mouseDelayMet:function(a){return this._mouseDelayMet},mouseS tart:function(a){},mouseDrag:function(a){},mouseStop:function(a){},mouseCapture: function(a){return true}};e.ui.mouse.defaults={cancel:null,distance:1,delay:0}}) (jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{init:funct ion(){var a=this.options;if(a.helper=="original"&&!(/(relative|absolute|fixed)/) .test(this.element.css("position"))){this.element.css("position","relative")}thi s.element.addClass("ui-draggable");(a.disabled&&this.element.addClass("ui-dragga ble-disabled"));this.mouseInit()},mouseStart:function(l){var j=this.options;if(t his.helper||j.disabled||b(l.target).is(".ui-resizable-handle")){return false}var e=!this.options.handle||!b(this.options.handle,this.element).length?true:false; b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this= =l.target){e=true}});if(!e){return false}if(b.ui.ddmanager){b.ui.ddmanager.curre nt=this}this.helper=b.isFunction(j.helper)?b(j.helper.apply(this.element[0],[l]) ):(j.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents(

"body").length){this.helper.appendTo((j.appendTo=="parent"?this.element[0].paren tNode:j.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).tes t(this.helper.css("position"))){this.helper.css("position","absolute")}this.marg ins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.el ement.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");thi s.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top ,left:this.offset.left-this.margins.left};this.offset.click={left:l.pageX-this.o ffset.left,top:l.pageY-this.offset.top};this.offsetParent=this.helper.offsetPare nt();var m=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&b. browser.mozilla){m={top:0,left:0}}this.offset.parent={top:m.top+(parseInt(this.o ffsetParent.css("borderTopWidth"),10)||0),left:m.left+(parseInt(this.offsetParen t.css("borderLeftWidth"),10)||0)};var n=this.element.position();this.offset.rela tive=this.cssPosition=="relative"?{top:n.top-(parseInt(this.helper.css("top"),10 )||0)+this.offsetParent[0].scrollTop,left:n.left-(parseInt(this.helper.css("left "),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition =this.generatePosition(l);this.helperProportions={width:this.helper.outerWidth() ,height:this.helper.outerHeight()};if(j.cursorAt){if(j.cursorAt.left!=undefined) {this.offset.click.left=j.cursorAt.left+this.margins.left}if(j.cursorAt.right!=u ndefined){this.offset.click.left=this.helperProportions.width-j.cursorAt.right+t his.margins.left}if(j.cursorAt.top!=undefined){this.offset.click.top=j.cursorAt. top+this.margins.top}if(j.cursorAt.bottom!=undefined){this.offset.click.top=this .helperProportions.height-j.cursorAt.bottom+this.margins.top}}if(j.containment){ if(j.containment=="parent"){j.containment=this.helper[0].parentNode}if(j.contain ment=="document"||j.containment=="window"){this.containment=[0-this.offset.relat ive.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.t op,b(j.containment=="document"?document:window).width()-this.offset.relative.lef t-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseI nt(this.element.css("marginRight"),10)||0),(b(j.containment=="document"?document :window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.t op-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseI nt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/). test(j.containment)){var a=b(j.containment)[0];var k=b(j.containment).offset();t his.containment=[k.left+(parseInt(b(a).css("borderLeftWidth"),10)||0)-this.offse t.relative.left-this.offset.parent.left,k.top+(parseInt(b(a).css("borderTopWidth "),10)||0)-this.offset.relative.top-this.offset.parent.top,k.left+Math.max(a.scr ollWidth,a.offsetWidth)-(parseInt(b(a).css("borderLeftWidth"),10)||0)-this.offse t.relative.left-this.offset.parent.left-this.helperProportions.width-this.margin s.left-(parseInt(this.element.css("marginRight"),10)||0),k.top+Math.max(a.scroll Height,a.offsetHeight)-(parseInt(b(a).css("borderTopWidth"),10)||0)-this.offset. relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.t op-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",l );this.helperProportions={width:this.helper.outerWidth(),height:this.helper.oute rHeight()};if(b.ui.ddmanager&&!j.dropBehaviour){b.ui.ddmanager.prepareOffsets(th is,l)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(l);return tru e},convertPositionTo:function(f,d){if(!d){d=this.position}var a=f=="absolute"?1: -1;return{top:(d.top+this.offset.relative.top*a+this.offset.parent.top*a-(this.c ssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==docume nt.body)?0:this.offsetParent[0].scrollTop)*a+(this.cssPosition=="fixed"?b(docume nt).scrollTop():0)*a+this.margins.top*a),left:(d.left+this.offset.relative.left* a+this.offset.parent.left*a-(this.cssPosition=="fixed"||(this.cssPosition=="abso lute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*a +(this.cssPosition=="fixed"?b(document).scrollLeft():0)*a+this.margins.left*a)}} ,generatePosition:function(h){var e=this.options;var a={top:(h.pageY-this.offset .click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="f ixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:thi s.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?b(document).scrollTop(): 0)),left:(h.pageX-this.offset.click.left-this.offset.relative.left-this.offset.p arent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offse tParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition= ="fixed"?b(document).scrollLeft():0))};if(!this.originalPosition){return a}if(th

is.containment){if(a.left<this.containment[0]){a.left=this.containment[0]}if(a.t op<this.containment[1]){a.top=this.containment[1]}if(a.left>this.containment[2]) {a.left=this.containment[2]}if(a.top>this.containment[3]){a.top=this.containment [3]}}if(e.grid){var i=this.originalPosition.top+Math.round((a.top-this.originalP osition.top)/e.grid[1])*e.grid[1];a.top=this.containment?(!(i<this.containment[1 ]||i>this.containment[3])?i:(!(i<this.containment[1])?i-e.grid[1]:i+e.grid[1])): i;var j=this.originalPosition.left+Math.round((a.left-this.originalPosition.left )/e.grid[0])*e.grid[0];a.left=this.containment?(!(j<this.containment[0]||j>this. containment[2])?j:(!(j<this.containment[0])?j-e.grid[0]:j+e.grid[0])):j}return a },mouseDrag:function(a){this.position=this.generatePosition(a);this.positionAbs= this.convertPositionTo("absolute");this.position=this.propagate("drag",a)||this. position;if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.lef t=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.he lper[0].style.top=this.position.top+"px"}if(b.ui.ddmanager){b.ui.ddmanager.drag( this,a)}return false},mouseStop:function(f){var e=false;if(b.ui.ddmanager&&!this .options.dropBehaviour){var e=b.ui.ddmanager.drop(this,f)}if((this.options.rever t=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true ){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options. revert,10)||500,function(){a.propagate("stop",f);a.clear()})}else{this.propagate ("stop",f);this.clear()}return false},clear:function(){this.helper.removeClass(" ui-draggable-dragging");if(this.options.helper!="original"&&!this.cancelHelperRe moval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},plu gins:{},uiHash:function(a){return{helper:this.helper,position:this.position,abso lutePosition:this.positionAbs,options:this.options}},propagate:function(d,a){b.u i.plugin.call(this,d,[a,this.uiHash()]);if(d=="drag"){this.positionAbs=this.conv ertPositionTo("absolute")}return this.element.triggerHandler(d=="drag"?d:"drag"+ d,[a,this.uiHash()],this.options[d])},destroy:function(){if(!this.element.data(" draggable")){return}this.element.removeData("draggable").unbind(".draggable").re moveClass("ui-draggable");this.mouseDestroy()}}));b.extend(b.ui.draggable,{defau lts:{appendTo:"parent",axis:false,cancel:":input",delay:0,distance:1,helper:"ori ginal"}});b.ui.plugin.add("draggable","cursor",{start:function(e,f){var a=b("bod y");if(a.css("cursor")){f.options._cursor=a.css("cursor")}a.css("cursor",f.optio ns.cursor)},stop:function(d,a){if(a.options._cursor){b("body").css("cursor",a.op tions._cursor)}}});b.ui.plugin.add("draggable","zIndex",{start:function(e,f){var a=b(f.helper);if(a.css("zIndex")){f.options._zIndex=a.css("zIndex")}a.css("zInd ex",f.options.zIndex)},stop:function(d,a){if(a.options._zIndex){b(a.helper).css( "zIndex",a.options._zIndex)}}});b.ui.plugin.add("draggable","opacity",{start:fun ction(e,f){var a=b(f.helper);if(a.css("opacity")){f.options._opacity=a.css("opac ity")}a.css("opacity",f.options.opacity)},stop:function(d,a){if(a.options._opaci ty){b(a.helper).css("opacity",a.options._opacity)}}});b.ui.plugin.add("draggable ","iframeFix",{start:function(d,a){b(a.options.iframeFix===true?"iframe":a.optio ns.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="back ground: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeigh t+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).a ppendTo("body")})},stop:function(d,a){b("div.DragDropIframeFix").each(function() {this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","scroll",{st art:function(g,h){var e=h.options;var a=b(this).data("draggable");e.scrollSensit ivity=e.scrollSensitivity||20;e.scrollSpeed=e.scrollSpeed||20;a.overflowY=functi on(c){do{if(/auto|scroll/.test(c.css("overflow"))||(/auto|scroll/).test(c.css("o verflow-y"))){return c}c=c.parent()}while(c[0].parentNode);return b(document)}(t his);a.overflowX=function(c){do{if(/auto|scroll/.test(c.css("overflow"))||(/auto |scroll/).test(c.css("overflow-x"))){return c}c=c.parent()}while(c[0].parentNode );return b(document)}(this);if(a.overflowY[0]!=document&&a.overflowY[0].tagName! ="HTML"){a.overflowYOffset=a.overflowY.offset()}if(a.overflowX[0]!=document&&a.o verflowX[0].tagName!="HTML"){a.overflowXOffset=a.overflowX.offset()}},drag:funct ion(g,h){var e=h.options;var a=b(this).data("draggable");if(a.overflowY[0]!=docu ment&&a.overflowY[0].tagName!="HTML"){if((a.overflowYOffset.top+a.overflowY[0].o ffsetHeight)-g.pageY<e.scrollSensitivity){a.overflowY[0].scrollTop=a.overflowY[0 ].scrollTop+e.scrollSpeed}if(g.pageY-a.overflowYOffset.top<e.scrollSensitivity){ a.overflowY[0].scrollTop=a.overflowY[0].scrollTop-e.scrollSpeed}}else{if(g.pageY

-b(document).scrollTop()<e.scrollSensitivity){b(document).scrollTop(b(document). scrollTop()-e.scrollSpeed)}if(b(window).height()-(g.pageY-b(document).scrollTop( ))<e.scrollSensitivity){b(document).scrollTop(b(document).scrollTop()+e.scrollSp eed)}}if(a.overflowX[0]!=document&&a.overflowX[0].tagName!="HTML"){if((a.overflo wXOffset.left+a.overflowX[0].offsetWidth)-g.pageX<e.scrollSensitivity){a.overflo wX[0].scrollLeft=a.overflowX[0].scrollLeft+e.scrollSpeed}if(g.pageX-a.overflowXO ffset.left<e.scrollSensitivity){a.overflowX[0].scrollLeft=a.overflowX[0].scrollL eft-e.scrollSpeed}}else{if(g.pageX-b(document).scrollLeft()<e.scrollSensitivity) {b(document).scrollLeft(b(document).scrollLeft()-e.scrollSpeed)}if(b(window).wid th()-(g.pageX-b(document).scrollLeft())<e.scrollSensitivity){b(document).scrollL eft(b(document).scrollLeft()+e.scrollSpeed)}}}});b.ui.plugin.add("draggable","sn ap",{start:function(e,f){var a=b(this).data("draggable");a.snapElements=[];b(f.o ptions.snap===true?".ui-draggable":f.options.snap).each(function(){var c=b(this) ;var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c. outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(l, H){var r=b(this).data("draggable");var d=H.options.snapTolerance||20;var y=H.abs olutePosition.left,z=y+r.helperProportions.width,E=H.absolutePosition.top,G=E+r. helperProportions.height;for(var t=r.snapElements.length-1;t>=0;t--){var e=r.sna pElements[t].left,A=e+r.snapElements[t].width,B=r.snapElements[t].top,a=B+r.snap Elements[t].height;if(!((e-d<y&&y<A+d&&B-d<E&&E<a+d)||(e-d<y&&y<A+d&&B-d<G&&G<a+ d)||(e-d<z&&z<A+d&&B-d<E&&E<a+d)||(e-d<z&&z<A+d&&B-d<G&&G<a+d))){continue}if(H.o ptions.snapMode!="inner"){var i=Math.abs(B-G)<=20;var D=Math.abs(a-E)<=20;var C= Math.abs(e-z)<=20;var F=Math.abs(A-y)<=20;if(i){H.position.top=r.convertPosition To("relative",{top:B-r.helperProportions.height,left:0}).top}if(D){H.position.to p=r.convertPositionTo("relative",{top:a,left:0}).top}if(C){H.position.left=r.con vertPositionTo("relative",{top:0,left:e-r.helperProportions.width}).left}if(F){H .position.left=r.convertPositionTo("relative",{top:0,left:A}).left}}if(H.options .snapMode!="outer"){var i=Math.abs(B-E)<=20;var D=Math.abs(a-G)<=20;var C=Math.a bs(e-y)<=20;var F=Math.abs(A-z)<=20;if(i){H.position.top=r.convertPositionTo("re lative",{top:B,left:0}).top}if(D){H.position.top=r.convertPositionTo("relative", {top:a-r.helperProportions.height,left:0}).top}if(C){H.position.left=r.convertPo sitionTo("relative",{top:0,left:e}).left}if(F){H.position.left=r.convertPosition To("relative",{top:0,left:A-r.helperProportions.width}).left}}}}});b.ui.plugin.a dd("draggable","connectToSortable",{start:function(e,f){var a=b(this).data("drag gable");a.sortables=[];b(f.options.connectToSortable).each(function(){if(b.data( this,"sortable")){var c=b.data(this,"sortable");a.sortables.push({instance:c,sho uldRevert:c.options.revert});c.refreshItems();c.propagate("activate",e,a)}})},st op:function(e,f){var a=b(this).data("draggable");b.each(a.sortables,function(){i f(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.i nstance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.re vert=true}this.instance.mouseStop(e);this.instance.element.triggerHandler("sortr eceive",[e,b.extend(this.instance.ui(),{sender:a.element})],this.instance.option s.receive);this.instance.options.helper=this.instance.options._helper}else{this. instance.propagate("deactivate",e,a)}})},drag:function(e,h){var i=b(this).data(" draggable"),a=this;var j=function(c){var g=c.left,d=g+c.width,f=c.top,l=f+c.heig ht;return(g<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.le ft+this.offset.click.left)<d&&f<(this.positionAbs.top+this.offset.click.top)&&(t his.positionAbs.top+this.offset.click.top)<l)};b.each(i.sortables,function(c){if (j.call(i,this.instance.containerCache)){if(!this.instance.isOver){this.instance .isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element) .data("sortable-item",true);this.instance.options._helper=this.instance.options. helper;this.instance.options.helper=function(){return h.helper[0]};e.target=this .instance.currentItem[0];this.instance.mouseCapture(e,true);this.instance.mouseS tart(e,true,true);this.instance.offset.click.top=i.offset.click.top;this.instanc e.offset.click.left=i.offset.click.left;this.instance.offset.parent.left-=i.offs et.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top=i.offset.parent.top-this.instance.offset.parent.top;i.propagate("toSortable",e) }if(this.instance.currentItem){this.instance.mouseDrag(e)}}else{if(this.instance .isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.inst ance.options.revert=false;this.instance.mouseStop(e,true);this.instance.options.

helper=this.instance.options._helper;this.instance.currentItem.remove();if(this. instance.placeholder){this.instance.placeholder.remove()}i.propagate("fromSortab le",e)}}})}});b.ui.plugin.add("draggable","stack",{start:function(e,a){var f=b.m akeArray(b(a.options.stack.group)).sort(function(c,d){return(parseInt(b(c).css(" zIndex"),10)||a.options.stack.min)-(parseInt(b(d).css("zIndex"),10)||a.options.s tack.min)});b(f).each(function(c){this.style.zIndex=a.options.stack.min+c});this [0].style.zIndex=a.options.stack.min+f.length}})})(jQuery);(function(b){b.widget ("ui.droppable",{init:function(){this.element.addClass("ui-droppable");this.isov er=0;this.isout=1;var d=this.options,a=d.accept;d=b.extend(d,{accept:d.accept&&d .accept.constructor==Function?d.accept:function(c){return b(c).is(a)}});this.pro portions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight} ;b.ui.ddmanager.droppables.push(this)},plugins:{},ui:function(a){return{draggabl e:(a.currentItem||a.element),helper:a.helper,position:a.position,absolutePositio n:a.positionAbs,options:this.options,element:this.element}},destroy:function(){v ar a=b.ui.ddmanager.droppables;for(var d=0;d<a.length;d++){if(a[d]==this){a.spli ce(d,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeDa ta("droppable").unbind(".droppable")},over:function(d){var a=b.ui.ddmanager.curr ent;if(!a||(a.currentItem||a.element)[0]==this.element[0]){return}if(this.option s.accept.call(this.element,(a.currentItem||a.element))){b.ui.plugin.call(this,"o ver",[d,this.ui(a)]);this.element.triggerHandler("dropover",[d,this.ui(a)],this. options.over)}},out:function(d){var a=b.ui.ddmanager.current;if(!a||(a.currentIt em||a.element)[0]==this.element[0]){return}if(this.options.accept.call(this.elem ent,(a.currentItem||a.element))){b.ui.plugin.call(this,"out",[d,this.ui(a)]);thi s.element.triggerHandler("dropout",[d,this.ui(a)],this.options.out)}},drop:funct ion(g,h){var a=h||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==t his.element[0]){return false}var e=false;this.element.find(".ui-droppable").not( ".ui-draggable-dragging").each(function(){var c=b.data(this,"droppable");if(c.op tions.greedy&&b.ui.intersect(a,b.extend(c,{offset:c.element.offset()}),c.options .tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.ca ll(this.element,(a.currentItem||a.element))){b.ui.plugin.call(this,"drop",[g,thi s.ui(a)]);this.element.triggerHandler("drop",[g,this.ui(a)],this.options.drop);r eturn true}return false},activate:function(d){var a=b.ui.ddmanager.current;b.ui. plugin.call(this,"activate",[d,this.ui(a)]);if(a){this.element.triggerHandler("d ropactivate",[d,this.ui(a)],this.options.activate)}},deactivate:function(d){var a=b.ui.ddmanager.current;b.ui.plugin.call(this,"deactivate",[d,this.ui(a)]);if(a ){this.element.triggerHandler("dropdeactivate",[d,this.ui(a)],this.options.deact ivate)}}});b.extend(b.ui.droppable,{defaults:{disabled:false,tolerance:"intersec t"}});b.ui.intersect=function(q,a,s){if(!a.offset){return false}var n=(q.positio nAbs||q.position.absolute).left,o=n+q.helperProportions.width,t=(q.positionAbs|| q.position.absolute).top,u=t+q.helperProportions.height;var l=a.offset.left,p=l+ a.proportions.width,r=a.offset.top,v=r+a.proportions.height;switch(s){case"fit": return(l<n&&o<p&&r<t&&u<v);break;case"intersect":return(l<n+(q.helperProportions .width/2)&&o-(q.helperProportions.width/2)<p&&r<t+(q.helperProportions.height/2) &&u-(q.helperProportions.height/2)<v);break;case"pointer":return(l<((q.positionA bs||q.position.absolute).left+(q.clickOffset||q.offset.click).left)&&((q.positio nAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left)<p&&r<((q.p ositionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top)&&((q.p ositionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top)<v);bre ak;case"touch":return((t>=r&&t<=v)||(u>=r&&u<=v)||(t<r&&u>v))&&((n>=l&&n<=p)||(o >=l&&o<=p)||(n<l&&o>p));break;default:return false;break}};b.ui.ddmanager={curre nt:null,droppables:[],prepareOffsets:function(i,e){var a=b.ui.ddmanager.droppabl es;var h=e?e.type:null;for(var j=0;j<a.length;j++){if(a[j].options.disabled||(i& &!a[j].options.accept.call(a[j].element,(i.currentItem||i.element)))){continue}a [j].visible=a[j].element.css("display")!="none";if(!a[j].visible){continue}a[j]. offset=a[j].element.offset();a[j].proportions={width:a[j].element[0].offsetWidth ,height:a[j].element[0].offsetHeight};if(h=="dragstart"||h=="sortactivate"){a[j] .activate.call(a[j],e)}}},drop:function(a,f){var e=false;b.each(b.ui.ddmanager.d roppables,function(){if(!this.options){return}if(!this.options.disabled&&this.vi sible&&b.ui.intersect(a,this,this.options.tolerance)){e=this.drop.call(this,f)}i f(!this.options.disabled&&this.visible&&this.options.accept.call(this.element,(a

.currentItem||a.element))){this.isout=1;this.isover=0;this.deactivate.call(this, f)}});return e},drag:function(a,d){if(a.options.refreshPositions){b.ui.ddmanager .prepareOffsets(a,d)}b.each(b.ui.ddmanager.droppables,function(){if(this.options .disabled||this.greedyChild||!this.visible){return}var i=b.ui.intersect(a,this,t his.options.tolerance);var c=!i&&this.isover==1?"isout":(i&&this.isover==0?"isov er":null);if(!c){return}var h;if(this.options.greedy){var j=this.element.parents (".ui-droppable:eq(0)");if(j.length){h=b.data(j[0],"droppable");h.greedyChild=(c =="isover"?1:0)}}if(h&&c=="isover"){h.isover=0;h.isout=1;h.out.call(h,d)}this[c] =1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"over":"out"].call(this, d);if(h&&c=="isout"){h.isout=0;h.isover=1;h.over.call(h,d)}})}};b.ui.plugin.add( "droppable","activeClass",{activate:function(d,a){b(this).addClass(a.options.act iveClass)},deactivate:function(d,a){b(this).removeClass(a.options.activeClass)}, drop:function(d,a){b(this).removeClass(a.options.activeClass)}});b.ui.plugin.add ("droppable","hoverClass",{over:function(d,a){b(this).addClass(a.options.hoverCl ass)},out:function(d,a){b(this).removeClass(a.options.hoverClass)},drop:function (d,a){b(this).removeClass(a.options.hoverClass)}})})(jQuery);(function(b){b.widg et("ui.resizable",b.extend({},b.ui.mouse,{init:function(){var x=this,J=this.opti ons;var o=this.element.css("position");this.originalElement=this.element;this.el ement.addClass("ui-resizable").css({position:/static/.test(o)?"relative":o});b.e xtend(J,{_aspectRatio:!!(J.aspectRatio),helper:J.helper||J.ghost||J.animate?J.he lper||"proxy":null,knobHandles:J.knobHandles===true?"ui-resizable-knob-handle":J .knobHandles});var C="1px solid #DEDEDE";J.defaultTheme={"ui-resizable":{display :"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSi ze:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0 px",borderTop:C},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",rig ht:"0px",borderBottom:C},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0p x",bottom:"0px",borderRight:C},"ui-resizable-w":{cursor:"w-resize",width:"4px",t op:"0px",bottom:"0px",borderLeft:C},"ui-resizable-se":{cursor:"se-resize",width: "4px",height:"4px",borderRight:C,borderBottom:C},"ui-resizable-sw":{cursor:"sw-r esize",width:"4px",height:"4px",borderBottom:C,borderLeft:C},"ui-resizable-ne":{ cursor:"ne-resize",width:"4px",height:"4px",borderRight:C,borderTop:C},"ui-resiz able-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:C,borderTop:C}} ;J.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808 080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",lef t:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resiza ble-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-res ize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bot tom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-re sizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor: "ne-resize",right:"0px",top:"0px"}};J._nodeName=this.element[0].nodeName;if(J._n odeName.match(/canvas|textarea|input|select|button|img/i)){var L=this.element;if (/relative/.test(L.css("position"))&&b.browser.opera){L.css({position:"relative" ,top:"auto",left:"auto"})}L.wrap(b('<div class="ui-wrapper" style="overflow: hid den;"></div>').css({position:L.css("position"),width:L.outerWidth(),height:L.out erHeight(),top:L.css("top"),left:L.css("left")}));var A=this.element;this.elemen t=this.element.parent();this.element.data("resizable",this);this.element.css({ma rginLeft:A.css("marginLeft"),marginTop:A.css("marginTop"),marginRight:A.css("mar ginRight"),marginBottom:A.css("marginBottom")});A.css({marginLeft:0,marginTop:0, marginRight:0,marginBottom:0});if(b.browser.safari&&J.preventDefault){A.css("res ize","none")}J.proportionallyResize=A.css({position:"static",zoom:1,display:"blo ck"});this.element.css({margin:A.css("margin")});this._proportionallyResize()}if (!J.handles){J.handles=!b(".ui-resizable-handle",this.element).length?"e,s,se":{ n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w", se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resiza ble-nw"}}if(J.handles.constructor==String){J.zIndex=J.zIndex||1000;if(J.handles= ="all"){J.handles="n,e,s,w,se,sw,ne,nw"}var H=J.handles.split(",");J.handles={}; var D={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",n e:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var n=0;n<H.length;n++)

{var i=b.trim(H[n]),y=J.defaultTheme,E="ui-resizable-"+i,K=!b.ui.css(E)&&!J.knob Handles,F=b.ui.css("ui-resizable-knob-handle"),a=b.extend(y[E],y["ui-resizable-h andle"]),I=b.extend(J.knobTheme[E],!F?J.knobTheme["ui-resizable-handle"]:{});var z=/sw|se|ne|nw/.test(i)?{zIndex:++J.zIndex}:{};var B=(K?D[i]:""),G=b(['<div cla ss="ui-resizable-handle ',E,'" style="',B,D.handle,'"></div>'].join("")).css(z); J.handles[i]=".ui-resizable-"+i;this.element.append(G.css(K?a:{}).css(J.knobHand les?I:{}).addClass(J.knobHandles?"ui-resizable-knob-handle":"").addClass(J.knobH andles))}if(J.knobHandles){this.element.addClass("ui-resizable-knob").css(!b.ui. css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(e){e=e||this.element; for(var c in J.handles){if(J.handles[c].constructor==String){J.handles[c]=b(J.ha ndles[c],this.element).show()}if(J.transparent){J.handles[c].css({opacity:0})}if (this.element.is(".ui-wrapper")&&J._nodeName.match(/textarea|input|select|button /i)){var g=b(J.handles[c],this.element),d=0;d=/sw|ne|nw|se|n|s/.test(c)?g.outerH eight():g.outerWidth();var f=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c )?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");if(!J.transparent){e.css(f,d)} this._proportionallyResize()}if(!b(J.handles[c]).length){continue}}};this._rende rAxis(this.element);J._handles=b(".ui-resizable-handle",x.element);if(J.disableS election){J._handles.each(function(c,d){b.ui.disableSelection(d)})}J._handles.mo useover(function(){if(!J.resizing){if(this.className){var c=this.className.match (/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}x.axis=J.axis=c&&c[1]?c[1]:"se"}});if(J. autoHide){J._handles.hide();b(x.element).addClass("ui-resizable-autohide").hover (function(){b(this).removeClass("ui-resizable-autohide");J._handles.show()},func tion(){if(!J.resizing){b(this).addClass("ui-resizable-autohide");J._handles.hide ()}})}this.mouseInit()},plugins:{},ui:function(){return{originalElement:this.ori ginalElement,element:this.element,helper:this.helper,position:this.position,size :this.size,options:this.options,originalSize:this.originalSize,originalPosition: this.originalPosition}},propagate:function(d,a){b.ui.plugin.call(this,d,[a,this. ui()]);if(d!="resize"){this.element.triggerHandler(["resize",d].join(""),[a,this .ui()],this.options[d])}},destroy:function(){var e=this.element,f=e.children(".u i-resizable").get(0);this.mouseDestroy();var a=function(c){b(c).removeClass("uiresizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").f ind(".ui-resizable-handle").remove()};a(e);if(e.is(".ui-wrapper")&&f){e.parent() .append(b(f).css({position:e.css("position"),width:e.outerWidth(),height:e.outer Height(),top:e.css("top"),left:e.css("left")})).end().remove();a(f)}},mouseStart :function(y){if(this.options.disabled){return false}var z=false;for(var e in thi s.options.handles){if(b(this.options.handles[e])[0]==y.target){z=true}}if(!z){re turn false}var u=this.options,v=this.element.position(),s=this.element,a=functio n(c){return parseInt(c,10)||0},i=b.browser.msie&&b.browser.version<7;u.resizing= true;u.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft() };if(s.is(".ui-draggable")||(/absolute/).test(s.css("position"))){var w=b.browse r.msie&&!u.containment&&(/absolute/).test(s.css("position"))&&!(/relative/).test (s.parent().css("position"));var x=w?u.documentScroll.top:0,o=w?u.documentScroll .left:0;s.css({position:"absolute",top:(v.top+x),left:(v.left+o)})}if(b.browser. opera&&/relative/.test(s.css("position"))){s.css({position:"relative",top:"auto" ,left:"auto"})}this._renderProxy();var t=a(this.helper.css("left")),r=a(this.hel per.css("top"));if(u.containment){t+=b(u.containment).scrollLeft()||0;r+=b(u.con tainment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:t, top:r};this.size=u.helper||i?{width:s.outerWidth(),height:s.outerHeight()}:{widt h:s.width(),height:s.height()};this.originalSize=u.helper||i?{width:s.outerWidth (),height:s.outerHeight()}:{width:s.width(),height:s.height()};this.originalPosi tion={left:t,top:r};this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outer Height()-s.height()};this.originalMousePosition={left:y.pageX,top:y.pageY};u.asp ectRatio=(typeof u.aspectRatio=="number")?u.aspectRatio:((this.originalSize.heig ht/this.originalSize.width)||1);if(u.preserveCursor){b("body").css("cursor",this .axis+"-resize")}this.propagate("start",y);return true},mouseDrag:function(a){va r s=this.helper,u=this.options,z={},w=this,q=this.originalMousePosition,y=this.a xis;var t=(a.pageX-q.left)||0,x=(a.pageY-q.top)||0;var r=this._change[y];if(!r){ return false}var e=r.apply(this,[a,t,x]),o=b.browser.msie&&b.browser.version<7,v =this.sizeDiff;if(u._aspectRatio||a.shiftKey){e=this._updateRatio(e,a)}e=this._r espectSize(e,a);this.propagate("resize",a);s.css({top:this.position.top+"px",lef

t:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px "});if(!u.helper&&u.proportionallyResize){this._proportionallyResize()}this._upd ateCache(e);this.element.triggerHandler("resize",[a,this.ui()],this.options.resi ze);return false},mouseStop:function(s){this.options.resizing=false;var a=this.o ptions,t=function(c){return parseInt(c,10)||0},q=this;if(a.helper){var e=a.propo rtionallyResize,o=e&&(/textarea/i).test(e.get(0).nodeName),n=o&&b.ui.hasScroll(e .get(0),"left")?0:q.sizeDiff.height,u=o?0:q.sizeDiff.width;var p={width:(q.size. width-u),height:(q.size.height-n)},v=(parseInt(q.element.css("left"),10)+(q.posi tion.left-q.originalPosition.left))||null,r=(parseInt(q.element.css("top"),10)+( q.position.top-q.originalPosition.top))||null;if(!a.animate){this.element.css(b. extend(p,{top:r,left:v}))}if(a.helper&&!a.animate){this._proportionallyResize()} }if(a.preserveCursor){b("body").css("cursor","auto")}this.propagate("stop",s);if (a.helper){this.helper.remove()}return false},_updateCache:function(a){var d=thi s.options;this.offset=this.helper.offset();if(a.left){this.position.left=a.left} if(a.top){this.position.top=a.top}if(a.height){this.size.height=a.height}if(a.wi dth){this.size.width=a.width}},_updateRatio:function(k,j){var i=this.options,e=t his.position,l=this.size,a=this.axis;if(k.height){k.width=(l.height/i.aspectRati o)}else{if(k.width){k.height=(l.width*i.aspectRatio)}}if(a=="sw"){k.left=e.left+ (l.width-k.width);k.top=null}if(a=="nw"){k.top=e.top+(l.height-k.height);k.left= e.left+(l.width-k.width)}return k},_respectSize:function(u,t){var x=this.helper, z=this.options,A=z._aspectRatio||t.shiftKey,a=this.axis,v=u.width&&z.maxWidth&&z .maxWidth<u.width,s=u.height&&z.maxHeight&&z.maxHeight<u.height,B=u.width&&z.min Width&&z.minWidth>u.width,y=u.height&&z.minHeight&&z.minHeight>u.height;if(B){u. width=z.minWidth}if(y){u.height=z.minHeight}if(v){u.width=z.maxWidth}if(s){u.hei ght=z.maxHeight}var C=this.originalPosition.left+this.originalSize.width,e=this. position.top+this.size.height;var w=/sw|nw|w/.test(a),D=/nw|ne|n/.test(a);if(B&& w){u.left=C-z.minWidth}if(v&&w){u.left=C-z.maxWidth}if(y&&D){u.top=e-z.minHeight }if(s&&D){u.top=e-z.maxHeight}var o=!u.width&&!u.height;if(o&&!u.left&&u.top){u. top=null}else{if(o&&!u.top&&u.left){u.left=null}}return u},_proportionallyResize :function(){var a=this.options;if(!a.proportionallyResize){return}var h=a.propor tionallyResize,i=this.helper||this.element;if(!a.borderDif){var j=[h.css("border TopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLef tWidth")],g=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h. css("paddingLeft")];a.borderDif=b.map(j,function(c,e){var f=parseInt(c,10)||0,d= parseInt(g[e],10)||0;return f+d})}h.css({height:(i.height()-a.borderDif[0]-a.bor derDif[2])+"px",width:(i.width()-a.borderDif[1]-a.borderDif[3])+"px"})},_renderP roxy:function(){var j=this.element,g=this.options;this.elementOffset=j.offset(); if(g.helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>'); var a=b.browser.msie&&b.browser.version<7,i=(a?1:0),h=(a?2:-1);this.helper.addCl ass(g.helper).css({width:j.outerWidth()+h,height:j.outerHeight()+h,position:"abs olute",left:this.elementOffset.left-i+"px",top:this.elementOffset.top-i+"px",zIn dex:++g.zIndex});this.helper.appendTo("body");if(g.disableSelection){b.ui.disabl eSelection(this.helper.get(0))}}else{this.helper=j}},_change:{e:function(e,f,a){ return{width:this.originalSize.width+f}},w:function(i,l,a){var e=this.options,k= this.originalSize,j=this.originalPosition;return{left:j.left+l,width:k.width-l}} ,n:function(i,l,a){var e=this.options,k=this.originalSize,j=this.originalPositio n;return{top:j.top+a,height:k.height-a}},s:function(e,f,a){return{height:this.or iginalSize.height+a}},se:function(e,f,a){return b.extend(this._change.s.apply(th is,arguments),this._change.e.apply(this,[e,f,a]))},sw:function(e,f,a){return b.e xtend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,f,a]))}, ne:function(e,f,a){return b.extend(this._change.n.apply(this,arguments),this._ch ange.e.apply(this,[e,f,a]))},nw:function(e,f,a){return b.extend(this._change.n.a pply(this,arguments),this._change.w.apply(this,[e,f,a]))}}}));b.extend(b.ui.resi zable,{defaults:{cancel:":input",distance:1,delay:0,preventDefault:true,transpar ent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,prese rveCursor:true,autoHide:false,knobHandles:false}});b.ui.plugin.add("resizable"," containment",{start:function(w,u){var o=u.options,r=b(this).data("resizable"),a= r.element;var q=o.containment,e=(q instanceof b)?q.get(0):(/parent/.test(q))?a.p arent().get(0):q;if(!e){return}r.containerElement=b(e);if(/document/.test(q)||q= =document){r.containerOffset={left:0,top:0};r.containerPosition={left:0,top:0};r

.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b (document).height()||document.body.parentNode.scrollHeight}}else{r.containerOffs et=b(e).offset();r.containerPosition=b(e).position();r.containerSize={height:b(e ).innerHeight(),width:b(e).innerWidth()};var v=r.containerOffset,s=r.containerSi ze.height,x=r.containerSize.width,p=(b.ui.hasScroll(e,"left")?e.scrollWidth:x),t =(b.ui.hasScroll(e)?e.scrollHeight:s);r.parentData={element:e,left:v.left,top:v. top,width:p,height:t}}},resize:function(e,y){var r=y.options,s=b(this).data("res izable"),u=s.containerSize,z=s.containerOffset,o=s.size,a=s.position,x=r._aspect Ratio||e.shiftKey,v={top:0,left:0},t=s.containerElement;if(t[0]!=document&&/stat ic/.test(t.css("position"))){v=s.containerPosition}if(a.left<(r.helper?z.left:v. left)){s.size.width=s.size.width+(r.helper?(s.position.left-z.left):(s.position. left-v.left));if(x){s.size.height=s.size.width*r.aspectRatio}s.position.left=r.h elper?z.left:v.left}if(a.top<(r.helper?z.top:0)){s.size.height=s.size.height+(r. helper?(s.position.top-z.top):s.position.top);if(x){s.size.width=s.size.height/r .aspectRatio}s.position.top=r.helper?z.top:0}var q=(r.helper?s.offset.left-z.lef t:(s.position.left-v.left))+s.sizeDiff.width,w=(r.helper?s.offset.top-z.top:s.po sition.top)+s.sizeDiff.height;if(q+s.size.width>=s.parentData.width){s.size.widt h=s.parentData.width-q;if(x){s.size.height=s.size.width*r.aspectRatio}}if(w+s.si ze.height>=s.parentData.height){s.size.height=s.parentData.height-w;if(x){s.size .width=s.size.height/r.aspectRatio}}},stop:function(a,v){var q=v.options,t=b(thi s).data("resizable"),x=t.position,w=t.containerOffset,r=t.containerPosition,o=t. containerElement;var h=b(t.helper),s=h.offset(),u=h.innerWidth(),e=h.innerHeight ();if(q.helper&&!q.animate&&/relative/.test(o.css("position"))){b(this).css({lef t:(s.left-w.left),top:(s.top-w.top),width:u,height:e})}if(q.helper&&!q.animate&& /static/.test(o.css("position"))){b(this).css({left:r.left+(s.left-w.left),top:r .top+(s.top-w.top),width:u,height:e})}}});b.ui.plugin.add("resizable","grid",{re size:function(t,r){var e=r.options,p=b(this).data("resizable"),u=p.size,a=p.orig inalSize,v=p.originalPosition,q=p.axis,s=e._aspectRatio||t.shiftKey;e.grid=typeo f e.grid=="number"?[e.grid,e.grid]:e.grid;var n=Math.round((u.width-a.width)/(e. grid[0]||1))*(e.grid[0]||1),o=Math.round((u.height-a.height)/(e.grid[1]||1))*(e. grid[1]||1);if(/^(se|s|e)$/.test(q)){p.size.width=a.width+n;p.size.height=a.heig ht+o}else{if(/^(ne)$/.test(q)){p.size.width=a.width+n;p.size.height=a.height+o;p .position.top=v.top-o}else{if(/^(sw)$/.test(q)){p.size.width=a.width+n;p.size.he ight=a.height+o;p.position.left=v.left-n}else{p.size.width=a.width+n;p.size.heig ht=a.height+o;p.position.top=v.top-o;p.position.left=v.left-n}}}}});b.ui.plugin. add("resizable","animate",{stop:function(s,q){var v=q.options,p=b(this).data("re sizable");var a=v.proportionallyResize,o=a&&(/textarea/i).test(a.get(0).nodeName ),n=o&&b.ui.hasScroll(a.get(0),"left")?0:p.sizeDiff.height,t=o?0:p.sizeDiff.widt h;var e={width:(p.size.width-t),height:(p.size.height-n)},u=(parseInt(p.element. css("left"),10)+(p.position.left-p.originalPosition.left))||null,r=(parseInt(p.e lement.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.a nimate(b.extend(e,r&&u?{top:r,left:u}:{}),{duration:v.animateDuration||"slow",ea sing:v.animateEasing||"swing",step:function(){var c={width:parseInt(p.element.cs s("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.elemen t.css("top"),10),left:parseInt(p.element.css("left"),10)};if(a){a.css({width:c.w idth,height:c.height})}p._updateCache(c);p.propagate("animate",s)}})}});b.ui.plu gin.add("resizable","ghost",{start:function(j,k){var i=k.options,l=b(this).data( "resizable"),e=i.proportionallyResize,a=l.size;if(!e){l.ghost=l.element.clone()} else{l.ghost=e.clone()}l.ghost.css({opacity:0.25,display:"block",position:"relat ive",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizabl e-ghost").addClass(typeof i.ghost=="string"?i.ghost:"");l.ghost.appendTo(l.helpe r)},resize:function(i,j){var h=j.options,a=b(this).data("resizable"),e=h.proport ionallyResize;if(a.ghost){a.ghost.css({position:"relative",height:a.size.height, width:a.size.width})}},stop:function(i,j){var h=j.options,a=b(this).data("resiza ble"),e=h.proportionallyResize;if(a.ghost&&a.helper){a.helper.get(0).removeChild (a.ghost.get(0))}}});b.ui.plugin.add("resizable","alsoResize",{start:function(h, j){var e=j.options,a=b(this).data("resizable"),i=function(c){b(c).each(function( ){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height :parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseIn t(b(this).css("top"),10)})})};if(typeof(e.alsoResize)=="object"){if(e.alsoResize

.length){e.alsoResize=e.alsoResize[0];i(e.alsoResize)}else{b.each(e.alsoResize,f unction(d,c){i(d)})}}else{i(e.alsoResize)}},resize:function(a,e){var o=e.options ,l=b(this).data("resizable"),k=l.originalSize,m=l.originalPosition;var n={height :(l.size.height-k.height)||0,width:(l.size.width-k.width)||0,top:(l.position.top -m.top)||0,left:(l.position.left-m.left)||0},p=function(d,c){b(d).each(function( ){var g=b(this).data("resizable-alsoresize"),h={},f=c&&c.length?c:["width","heig ht","top","left"];b.each(f||["width","height","top","left"],function(i,j){var r= (g[j]||0)+(n[j]||0);if(r&&r>=0){h[j]=r||null}});b(this).css(h)})};if(typeof(o.al soResize)=="object"){b.each(o.alsoResize,function(d,c){p(d,c)})}else{p(o.alsoRes ize)}},stop:function(d,a){b(this).removeData("resizable-alsoresize-start")}})})( jQuery);(function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{init:funct ion(){var a=this;this.element.addClass("ui-selectable");this.dragged=false;var d ;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){va r f=b(this);var c=f.offset();b.data(this,"selectable-item",{element:this,$elemen t:f,left:c.left,top:c.top,right:c.left+f.width(),bottom:c.top+f.height(),startse lected:false,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecti ng"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees =d.addClass("ui-selectee");this.mouseInit();this.helper=b(document.createElement ("div")).css({border:"1px dotted black"})},toggle:function(){if(this.options.dis abled){this.enable()}else{this.disable()}},destroy:function(){this.element.remov eClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(" .selectable");this.mouseDestroy()},mouseStart:function(e){var h=this;this.opos=[ e.pageX,e.pageY];if(this.options.disabled){return}var g=this.options;this.select ees=b(g.filter,this.element[0]);this.element.triggerHandler("selectablestart",[e ,{selectable:this.element[0],options:g}],g.start);b("body").append(this.helper); this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY, width:0,height:0});if(g.autoRefresh){this.refresh()}this.selectees.filter(".ui-s elected").each(function(){var c=b.data(this,"selectable-item");c.startselected=t rue;if(!e.ctrlKey){c.$element.removeClass("ui-selected");c.selected=false;c.$ele ment.addClass("ui-unselecting");c.unselecting=true;h.element.triggerHandler("sel ectableunselecting",[e,{selectable:h.element[0],unselecting:c.element,options:g} ],g.unselecting)}});var a=false;b(e.target).parents().andSelf().each(function(){ if(b.data(this,"selectable-item")){a=true}});return this.options.keyboard?!a:tru e},mouseDrag:function(l){var m=this;this.dragged=true;if(this.options.disabled){ return}var e=this.options;var k=this.opos[0],n=this.opos[1],o=l.pageX,p=l.pageY; if(k>o){var a=o;o=k;k=a}if(n>p){var a=p;p=n;n=a}this.helper.css({left:k,top:n,wi dth:o-k,height:p-n});this.selectees.each(function(){var d=b.data(this,"selectabl e-item");if(!d||d.element==m.element[0]){return}var c=false;if(e.tolerance=="tou ch"){c=(!(d.left>o||d.right<k||d.top>p||d.bottom<n))}else{if(e.tolerance=="fit") {c=(d.left>k&&d.right<o&&d.top>n&&d.bottom<p)}}if(c){if(d.selected){d.$element.r emoveClass("ui-selected");d.selected=false}if(d.unselecting){d.$element.removeCl ass("ui-unselecting");d.unselecting=false}if(!d.selecting){d.$element.addClass(" ui-selecting");d.selecting=true;m.element.triggerHandler("selectableselecting",[ l,{selectable:m.element[0],selecting:d.element,options:e}],e.selecting)}}else{if (d.selecting){if(l.ctrlKey&&d.startselected){d.$element.removeClass("ui-selectin g");d.selecting=false;d.$element.addClass("ui-selected");d.selected=true}else{d. $element.removeClass("ui-selecting");d.selecting=false;if(d.startselected){d.$el ement.addClass("ui-unselecting");d.unselecting=true}m.element.triggerHandler("se lectableunselecting",[l,{selectable:m.element[0],unselecting:d.element,options:e }],e.unselecting)}}if(d.selected){if(!l.ctrlKey&&!d.startselected){d.$element.re moveClass("ui-selected");d.selected=false;d.$element.addClass("ui-unselecting"); d.unselecting=true;m.element.triggerHandler("selectableunselecting",[l,{selectab le:m.element[0],unselecting:d.element,options:e}],e.unselecting)}}}});return fal se},mouseStop:function(e){var a=this;this.dragged=false;var f=this.options;b(".u i-unselecting",this.element[0]).each(function(){var c=b.data(this,"selectable-it em");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselecte d=false;a.element.triggerHandler("selectableunselected",[e,{selectable:a.element [0],unselected:c.element,options:f}],f.unselected)});b(".ui-selecting",this.elem ent[0]).each(function(){var c=b.data(this,"selectable-item");c.$element.removeCl ass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.

startselected=true;a.element.triggerHandler("selectableselected",[e,{selectable: a.element[0],selected:c.element,options:f}],f.selected)});this.element.triggerHa ndler("selectablestop",[e,{selectable:a.element[0],options:this.options}],this.o ptions.stop);this.helper.remove();return false}}));b.extend(b.ui.selectable,{def aults:{distance:1,delay:0,cancel:":input",appendTo:"body",autoRefresh:true,filte r:"*",tolerance:"touch"}})})(jQuery);(function(c){function d(b,f){var a=c.browse r.safari&&c.browser.version<522;if(b.contains&&!a){return b.contains(f)}if(b.com pareDocumentPosition){return !!(b.compareDocumentPosition(f)&16)}while(f=f.paren tNode){if(f==b){return true}}return false}c.widget("ui.sortable",c.extend({},c.u i.mouse,{init:function(){var a=this.options;this.containerCache={};this.element. addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|ri ght/).test(this.items[0].item.css("float")):false;if(!(/(relative|absolute|fixed )/).test(this.element.css("position"))){this.element.css("position","relative")} this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(a){re turn{helper:(a||this)["helper"],placeholder:(a||this)["placeholder"]||c([]),posi tion:(a||this)["position"],absolutePosition:(a||this)["positionAbs"],options:thi s.options,element:this.element,item:(a||this)["currentItem"],sender:a?a.element: null}},propagate:function(e,h,b,a){c.ui.plugin.call(this,e,[h,this.ui(b)]);if(!a ){this.element.triggerHandler(e=="sort"?e:"sort"+e,[h,this.ui(b)],this.options[e ])}},serialize:function(b){var a=(c.isFunction(this.options.items)?this.options. items.call(this.element):c(this.options.items,this.element)).not(".ui-sortable-h elper");var f=[];b=b||{};a.each(function(){var e=(c(this).attr(b.attribute||"id" )||"").match(b.expression||(/(.+)[-=_](.+)/));if(e){f.push((b.key||e[1])+"[]="+( b.key&&b.expression?e[1]:e[2]))}});return f.join("&")},toArray:function(a){var f =(c.isFunction(this.options.items)?this.options.items.call(this.element):c(this. options.items,this.element)).not(".ui-sortable-helper");var b=[];f.each(function (){b.push(c(this).attr(a||"id"))});return b},intersectsWith:function(b){var p=th is.positionAbs.left,q=p+this.helperProportions.width,l=this.positionAbs.top,m=l+ this.helperProportions.height;var o=b.left,r=o+b.width,a=b.top,n=a+b.height;if(t his.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this. options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height "]>b[this.floating?"width":"height"])){return(l+this.offset.click.top>a&&l+this. offset.click.top<n&&p+this.offset.click.left>o&&p+this.offset.click.left<r)}else {return(o<p+(this.helperProportions.width/2)&&q-(this.helperProportions.width/2) <r&&a<l+(this.helperProportions.height/2)&&m-(this.helperProportions.height/2)<n )}},intersectsWithEdge:function(b){var p=this.positionAbs.left,q=p+this.helperPr oportions.width,l=this.positionAbs.top,m=l+this.helperProportions.height;var o=b .left,r=o+b.width,a=b.top,n=a+b.height;if(this.options.tolerance=="pointer"||(th is.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"hei ght"]>b[this.floating?"width":"height"])){if(!(l+this.offset.click.top>a&&l+this .offset.click.top<n&&p+this.offset.click.left>o&&p+this.offset.click.left<r)){re turn false}if(this.floating){if(p+this.offset.click.left>o&&p+this.offset.click. left<o+b.width/2){return 2}if(p+this.offset.click.left>o+b.width/2&&p+this.offse t.click.left<r){return 1}}else{if(l+this.offset.click.top>a&&l+this.offset.click .top<a+b.height/2){return 2}if(l+this.offset.click.top>a+b.height/2&&l+this.offs et.click.top<n){return 1}}}else{if(!(o<p+(this.helperProportions.width/2)&&q-(th is.helperProportions.width/2)<r&&a<l+(this.helperProportions.height/2)&&m-(this. helperProportions.height/2)<n)){return false}if(this.floating){if(q>o&&p<o){retu rn 2}if(p<r&&q>r){return 1}}else{if(m>a&&l<a){return 1}if(l<n&&m>n){return 2}}}r eturn false},refresh:function(){this.refreshItems();this.refreshPositions()},ref reshItems:function(){this.items=[];this.containers=[this];var m=this.items;var a =this;var i=[[c.isFunction(this.options.items)?this.options.items.call(this.elem ent,null,{options:this.options,item:this.currentItem}):c(this.options.items,this .element),this]];if(this.options.connectWith){for(var b=this.options.connectWith .length-1;b>=0;b--){var j=c(this.options.connectWith[b]);for(var l=j.length-1;l> =0;l--){var n=c.data(j[l],"sortable");if(n&&!n.options.disabled){i.push([c.isFun ction(n.options.items)?n.options.items.call(n.element):c(n.options.items,n.eleme nt),n]);this.containers.push(n)}}}}for(var b=i.length-1;b>=0;b--){i[b][0].each(f unction(){c.data(this,"sortable-item",i[b][1]);m.push({item:c(this),instance:i[b ][1],width:0,height:0,left:0,top:0})})}},refreshPositions:function(b){if(this.of

fsetParent){var h=this.offsetParent.offset();this.offset.parent={top:h.top+this. offsetParentBorders.top,left:h.left+this.offsetParentBorders.left}}for(var j=thi s.items.length-1;j>=0;j--){if(this.items[j].instance!=this.currentContainer&&thi s.currentContainer&&this.items[j].item[0]!=this.currentItem[0]){continue}var a=t his.options.toleranceElement?c(this.options.toleranceElement,this.items[j].item) :this.items[j].item;if(!b){this.items[j].width=a[0].offsetWidth;this.items[j].he ight=a[0].offsetHeight}var i=a.offset();this.items[j].left=i.left;this.items[j]. top=i.top}if(this.options.custom&&this.options.custom.refreshContainers){this.op tions.custom.refreshContainers.call(this)}else{for(var j=this.containers.length1;j>=0;j--){var i=this.containers[j].element.offset();this.containers[j].contain erCache.left=i.left;this.containers[j].containerCache.top=i.top;this.containers[ j].containerCache.width=this.containers[j].element.outerWidth();this.containers[ j].containerCache.height=this.containers[j].element.outerHeight()}}},destroy:fun ction(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData( "sortable").unbind(".sortable");this.mouseDestroy();for(var a=this.items.length1;a>=0;a--){this.items[a].item.removeData("sortable-item")}},createPlaceholder:f unction(h){var b=h||this,g=b.options;if(g.placeholder.constructor==String){var a =g.placeholder;g.placeholder={element:function(){return c("<div></div>").addClas s(a)[0]},update:function(f,e){e.css(f.offset()).css({width:f.outerWidth(),height :f.outerHeight()})}}}b.placeholder=c(g.placeholder.element.call(b.element,b.curr entItem)).appendTo("body").css({position:"absolute"});g.placeholder.update.call( b.element,b.currentItem,b.placeholder)},contactContainers:function(e){for(var m= this.containers.length-1;m>=0;m--){if(this.intersectsWith(this.containers[m].con tainerCache)){if(!this.containers[m].containerCache.over){if(this.currentContain er!=this.containers[m]){var j=10000;var n=null;var i=this.positionAbs[this.conta iners[m].floating?"left":"top"];for(var a=this.items.length-1;a>=0;a--){if(!d(th is.containers[m].element[0],this.items[a].item[0])){continue}var b=this.items[a] [this.containers[m].floating?"left":"top"];if(Math.abs(b-i)<j){j=Math.abs(b-i);n =this.items[a]}}if(!n&&!this.options.dropOnEmpty){continue}if(this.placeholder){ this.placeholder.remove()}if(this.containers[m].options.placeholder){this.contai ners[m].createPlaceholder(this)}else{this.placeholder=null}this.currentContainer =this.containers[m];n?this.rearrange(e,n,null,true):this.rearrange(e,null,this.c ontainers[m].element,true);this.propagate("change",e);this.containers[m].propaga te("change",e,this)}this.containers[m].propagate("over",e,this);this.containers[ m].containerCache.over=1}}else{if(this.containers[m].containerCache.over){this.c ontainers[m].propagate("out",e,this);this.containers[m].containerCache.over=0}}} },mouseCapture:function(l,a){if(this.options.disabled||this.options.type=="stati c"){return false}this.refreshItems();var b=null,e=this,j=c(l.target).parents().e ach(function(){if(c.data(this,"sortable-item")==e){b=c(this);return false}});if( c.data(l.target,"sortable-item")==e){b=c(l.target)}if(!b){return false}if(this.o ptions.handle&&!a){var k=false;c(this.options.handle,b).find("*").andSelf().each (function(){if(this==l.target){k=true}});if(!k){return false}}this.currentItem=b ;return true},mouseStart:function(e,o,i){var n=this.options;this.currentContaine r=this;this.refreshPositions();this.helper=typeof n.helper=="function"?c(n.helpe r.apply(this.element[0],[e,this.currentItem])):this.currentItem.clone();if(!this .helper.parents("body").length){c(n.appendTo!="parent"?n.appendTo:this.currentIt em[0].parentNode)[0].appendChild(this.helper[0])}this.helper.css({position:"abso lute",clear:"both"}).addClass("ui-sortable-helper");this.margins={left:(parseInt (this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css(" marginTop"),10)||0)};this.offset=this.currentItem.offset();this.offset={top:this .offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offse t.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top};this.offsetP arent=this.helper.offsetParent();var b=this.offsetParent.offset();this.offsetPar entBorders={top:(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:( parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};this.offset.parent={t op:b.top+this.offsetParentBorders.top,left:b.left+this.offsetParentBorders.left} ;this.originalPosition=this.generatePosition(e);this.domPosition={prev:this.curr entItem.prev()[0],parent:this.currentItem.parent()[0]};this.helperProportions={w idth:this.helper.outerWidth(),height:this.helper.outerHeight()};if(n.placeholder ){this.createPlaceholder()}this.propagate("start",e);this.helperProportions={wid

th:this.helper.outerWidth(),height:this.helper.outerHeight()};if(n.cursorAt){if( n.cursorAt.left!=undefined){this.offset.click.left=n.cursorAt.left}if(n.cursorAt .right!=undefined){this.offset.click.left=this.helperProportions.width-n.cursorA t.right}if(n.cursorAt.top!=undefined){this.offset.click.top=n.cursorAt.top}if(n. cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.heightn.cursorAt.bottom}}if(n.containment){if(n.containment=="parent"){n.containment=t his.helper[0].parentNode}if(n.containment=="document"||n.containment=="window"){ this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,c(n.contain ment=="document"?document:window).width()-this.offset.parent.left-this.helperPro portions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)|| 0),(c(n.containment=="document"?document:window).height()||document.body.parentN ode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.marg ins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|win dow|parent)$/).test(n.containment)){var m=c(n.containment)[0];var p=c(n.containm ent).offset();this.containment=[p.left+(parseInt(c(m).css("borderLeftWidth"),10) ||0)-this.offset.parent.left,p.top+(parseInt(c(m).css("borderTopWidth"),10)||0)this.offset.parent.top,p.left+Math.max(m.scrollWidth,m.offsetWidth)-(parseInt(c( m).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions .width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),p .top+Math.max(m.scrollHeight,m.offsetHeight)-(parseInt(c(m).css("borderTopWidth" ),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(this.options.placeho lder!="clone"){this.currentItem.css("visibility","hidden")}if(!i){for(var a=this .containers.length-1;a>=0;a--){this.containers[a].propagate("activate",e,this)}} if(c.ui.ddmanager){c.ui.ddmanager.current=this}if(c.ui.ddmanager&&!n.dropBehavio ur){c.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.mouseDrag(e);r eturn true},convertPositionTo:function(f,b){if(!b){b=this.position}var a=f=="abs olute"?1:-1;return{top:(b.top+this.offset.parent.top*a-(this.offsetParent[0]==do cument.body?0:this.offsetParent[0].scrollTop)*a+this.margins.top*a),left:(b.left +this.offset.parent.left*a-(this.offsetParent[0]==document.body?0:this.offsetPar ent[0].scrollLeft)*a+this.margins.left*a)}},generatePosition:function(j){var i=t his.options;var e={top:(j.pageY-this.offset.click.top-this.offset.parent.top+(th is.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(j.pag eX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==documen t.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){return e} if(this.containment){if(e.left<this.containment[0]){e.left=this.containment[0]}i f(e.top<this.containment[1]){e.top=this.containment[1]}if(e.left>this.containmen t[2]){e.left=this.containment[2]}if(e.top>this.containment[3]){e.top=this.contai nment[3]}}if(i.grid){var a=this.originalPosition.top+Math.round((e.top-this.orig inalPosition.top)/i.grid[1])*i.grid[1];e.top=this.containment?(!(a<this.containm ent[1]||a>this.containment[3])?a:(!(a<this.containment[1])?a-i.grid[1]:a+i.grid[ 1])):a;var b=this.originalPosition.left+Math.round((e.left-this.originalPosition .left)/i.grid[0])*i.grid[0];e.left=this.containment?(!(b<this.containment[0]||b> this.containment[2])?b:(!(b<this.containment[0])?b-i.grid[0]:b+i.grid[0])):b}ret urn e},mouseDrag:function(e){this.position=this.generatePosition(e);this.positio nAbs=this.convertPositionTo("absolute");c.ui.plugin.call(this,"sort",[e,this.ui( )]);this.positionAbs=this.convertPositionTo("absolute");this.helper[0].style.lef t=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";for(va r a=this.items.length-1;a>=0;a--){var b=this.intersectsWithEdge(this.items[a]);i f(!b){continue}if(this.items[a].item[0]!=this.currentItem[0]&&this.currentItem[b ==1?"next":"prev"]()[0]!=this.items[a].item[0]&&!d(this.currentItem[0],this.item s[a].item[0])&&(this.options.type=="semi-dynamic"?!d(this.element[0],this.items[ a].item[0]):true)){this.direction=b==1?"down":"up";this.rearrange(e,this.items[a ]);this.propagate("change",e);break}}this.contactContainers(e);if(c.ui.ddmanager ){c.ui.ddmanager.drag(this,e)}this.element.triggerHandler("sort",[e,this.ui()],t his.options.sort);return false},rearrange:function(i,l,e,a){e?e[0].appendChild(t his.currentItem[0]):l.item[0].parentNode.insertBefore(this.currentItem[0],(this. direction=="down"?l.item[0]:l.item[0].nextSibling));this.counter=this.counter?++ this.counter:1;var b=this,k=this.counter;window.setTimeout(function(){if(k==b.co unter){b.refreshPositions(!a)}},0);if(this.options.placeholder){this.options.pla

ceholder.update.call(this.element,this.currentItem,this.placeholder)}},mouseStop :function(h,a){if(c.ui.ddmanager&&!this.options.dropBehaviour){c.ui.ddmanager.dr op(this,h)}if(this.options.revert){var b=this;var e=b.currentItem.offset();if(b. placeholder){b.placeholder.animate({opacity:"hide"},(parseInt(this.options.rever t,10)||500)-50)}c(this.helper).animate({left:e.left-this.offset.parent.left-b.ma rgins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLef t),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==documen t.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500, function(){b.clear(h)})}else{this.clear(h,a)}return false},clear:function(b,e){i f(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]|| this.domPosition.parent!=this.currentItem.parent()[0]){this.propagate("update",b ,null,e)}if(!d(this.element[0],this.currentItem[0])){this.propagate("remove",b,n ull,e);for(var a=this.containers.length-1;a>=0;a--){if(d(this.containers[a].elem ent[0],this.currentItem[0])){this.containers[a].propagate("update",b,this,e);thi s.containers[a].propagate("receive",b,this,e)}}}for(var a=this.containers.length -1;a>=0;a--){this.containers[a].propagate("deactivate",b,this,e);if(this.contain ers[a].containerCache.over){this.containers[a].propagate("out",b,this);this.cont ainers[a].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval ){this.propagate("stop",b,null,e);return false}c(this.currentItem).css("visibili ty","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();this .helper=null;this.propagate("stop",b,null,e);return true}}));c.extend(c.ui.sorta ble,{getter:"serialize toArray",defaults:{helper:"clone",tolerance:"guess",dista nce:1,delay:0,scroll:true,scrollSensitivity:20,scrollSpeed:20,cancel:":input",it ems:"> *",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});c.ui.plugin.add("sor table","cursor",{start:function(b,e){var a=c("body");if(a.css("cursor")){e.optio ns._cursor=a.css("cursor")}a.css("cursor",e.options.cursor)},stop:function(a,b){ if(b.options._cursor){c("body").css("cursor",b.options._cursor)}}});c.ui.plugin. add("sortable","zIndex",{start:function(b,e){var a=e.helper;if(a.css("zIndex")){ e.options._zIndex=a.css("zIndex")}a.css("zIndex",e.options.zIndex)},stop:functio n(a,b){if(b.options._zIndex){c(b.helper).css("zIndex",b.options._zIndex)}}});c.u i.plugin.add("sortable","opacity",{start:function(b,e){var a=e.helper;if(a.css(" opacity")){e.options._opacity=a.css("opacity")}a.css("opacity",e.options.opacity )},stop:function(a,b){if(b.options._opacity){c(b.helper).css("opacity",b.options ._opacity)}}});c.ui.plugin.add("sortable","scroll",{start:function(h,a){var e=a. options;var b=c(this).data("sortable");b.overflowY=function(f){do{if(/auto|scrol l/.test(f.css("overflow"))||(/auto|scroll/).test(f.css("overflow-y"))){return f} f=f.parent()}while(f[0].parentNode);return c(document)}(b.currentItem);b.overflo wX=function(f){do{if(/auto|scroll/.test(f.css("overflow"))||(/auto|scroll/).test (f.css("overflow-x"))){return f}f=f.parent()}while(f[0].parentNode);return c(doc ument)}(b.currentItem);if(b.overflowY[0]!=document&&b.overflowY[0].tagName!="HTM L"){b.overflowYOffset=b.overflowY.offset()}if(b.overflowX[0]!=document&&b.overfl owX[0].tagName!="HTML"){b.overflowXOffset=b.overflowX.offset()}},sort:function(h ,a){var e=a.options;var b=c(this).data("sortable");if(b.overflowY[0]!=document&& b.overflowY[0].tagName!="HTML"){if((b.overflowYOffset.top+b.overflowY[0].offsetH eight)-h.pageY<e.scrollSensitivity){b.overflowY[0].scrollTop=b.overflowY[0].scro llTop+e.scrollSpeed}if(h.pageY-b.overflowYOffset.top<e.scrollSensitivity){b.over flowY[0].scrollTop=b.overflowY[0].scrollTop-e.scrollSpeed}}else{if(h.pageY-c(doc ument).scrollTop()<e.scrollSensitivity){c(document).scrollTop(c(document).scroll Top()-e.scrollSpeed)}if(c(window).height()-(h.pageY-c(document).scrollTop())<e.s crollSensitivity){c(document).scrollTop(c(document).scrollTop()+e.scrollSpeed)}} if(b.overflowX[0]!=document&&b.overflowX[0].tagName!="HTML"){if((b.overflowXOffs et.left+b.overflowX[0].offsetWidth)-h.pageX<e.scrollSensitivity){b.overflowX[0]. scrollLeft=b.overflowX[0].scrollLeft+e.scrollSpeed}if(h.pageX-b.overflowXOffset. left<e.scrollSensitivity){b.overflowX[0].scrollLeft=b.overflowX[0].scrollLeft-e. scrollSpeed}}else{if(h.pageX-c(document).scrollLeft()<e.scrollSensitivity){c(doc ument).scrollLeft(c(document).scrollLeft()-e.scrollSpeed)}if(c(window).width()-( h.pageX-c(document).scrollLeft())<e.scrollSensitivity){c(document).scrollLeft(c( document).scrollLeft()+e.scrollSpeed)}}}});c.ui.plugin.add("sortable","axis",{so rt:function(b,e){var a=c(this).data("sortable");if(e.options.axis=="y"){a.positi on.left=a.originalPosition.left}if(e.options.axis=="x"){a.position.top=a.origina

lPosition.top}}})})(jQuery);(function(l){l.widget("ui.accordion",{init:function( ){var b=this.options;if(b.navigation){var c=this.element.find("a").filter(b.navi gationFilter);if(c.length){if(c.filter(b.header).length){b.active=c}else{b.activ e=c.parent().parent().prev();c.addClass("current")}}}b.headers=this.element.find (b.header);b.active=h(b.headers,b.active);if(l.browser.msie){this.element.find(" a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addC lass("ui-accordion");l("<span class='ui-accordion-left'/>").insertBefore(b.heade rs);l("<span class='ui-accordion-right'/>").appendTo(b.headers);b.headers.addCla ss("ui-accordion-header").attr("tabindex","0")}var d;if(b.fillSpace){d=this.elem ent.parent().height();b.headers.each(function(){d-=l(this).outerHeight()});var a =0;b.headers.next().each(function(){a=Math.max(a,l(this).innerHeight()-l(this).h eight())}).height(d-a)}else{if(b.autoHeight){d=0;b.headers.next().each(function( ){d=Math.max(d,l(this).outerHeight())}).height(d)}}b.headers.not(b.active||"").n ext().hide();b.active.parent().andSelf().addClass(b.selectedClass);if(b.event){t his.element.bind((b.event)+".accordion",k)}},activate:function(a){k.call(this.el ement[0],{target:h(this.options.headers,a)[0]})},destroy:function(){this.options .headers.next().css("display","");if(this.options.fillSpace||this.options.autoHe ight){this.options.headers.next().css("height","")}l.removeData(this.element[0], "accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});fu nction i(a,b){return function(){return a.apply(b,arguments)}}function g(b){if(!l .data(this,"accordion")){return}var a=l.data(this,"accordion");var c=a.options;c .running=b?0:--c.running;if(c.running){return}if(c.clearStyle){c.toShow.add(c.to Hide).css({height:"",overflow:""})}l(this).triggerHandler("accordionchange",[l.e vent.fix({type:"accordionchange",target:a.element[0]}),c.data],c.change)}functio n j(a,b,n,c,f){var d=l.data(this,"accordion").options;d.toShow=a;d.toHide=b;d.da ta=n;var e=i(g,this);d.running=b.size()===0?a.size():b.size();if(d.animated){if( !d.alwaysOpen&&c){l.ui.accordion.animations[d.animated]({toShow:jQuery([]),toHid e:b,complete:e,down:f,autoHeight:d.autoHeight})}else{l.ui.accordion.animations[d .animated]({toShow:a,toHide:b,complete:e,down:f,autoHeight:d.autoHeight})}}else{ if(!d.alwaysOpen&&c){a.toggle()}else{b.hide();a.show()}e(true)}}function k(o){va r a=l.data(this,"accordion").options;if(a.disabled){return false}if(!o.target&&! a.alwaysOpen){a.active.parent().andSelf().toggleClass(a.selectedClass);var c=a.a ctive.next(),f={options:a,newHeader:jQuery([]),oldHeader:a.active,newContent:jQu ery([]),oldContent:c},b=(a.active=l([]));j.call(this,b,c,f);return false}var p=l (o.target);p=l(p.parents(a.header)[0]||p);var e=p[0]==a.active[0];if(a.running|| (a.alwaysOpen&&e)){return false}if(!p.is(a.header)){return}a.active.parent().and Self().toggleClass(a.selectedClass);if(!e){p.parent().andSelf().addClass(a.selec tedClass)}var b=p.next(),c=a.active.next(),f={options:a,newHeader:p,oldHeader:a. active,newContent:b,oldContent:c},d=a.headers.index(a.active[0])>a.headers.index (p[0]);a.active=e?l([]):p;j.call(this,b,c,f,e,d);return false}function h(a,b){re turn b!=undefined?typeof b=="number"?a.filter(":eq("+b+")"):a.not(a.not(b)):b=== false?l([]):a.filter(":eq(0)")}l.extend(l.ui.accordion,{defaults:{selectedClass: "selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight: true,running:0,navigationFilter:function(){return this.href.toLowerCase()==locat ion.href.toLowerCase()}},animations:{slide:function(c,a){c=l.extend({easing:"swi ng",duration:300},c,a);if(!c.toHide.size()){c.toShow.animate({height:"show"},c); return}var b=c.toHide.height(),e=c.toShow.height(),d=e/b;c.toShow.css({height:0, overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().fil ter(":visible").animate({height:"hide"},{step:function(f){var n=(b-f)*d;if(l.bro wser.msie||l.browser.opera){n=Math.ceil(n)}c.toShow.height(n)},duration:c.durati on,easing:c.easing,complete:function(){if(!c.autoHeight){c.toShow.css("height"," auto")}c.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"bou nceout":"swing",duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{ easing:"easeinout",duration:700})}}});l.fn.activate=function(a){return this.acco rdion("activate",a)}})(jQuery);(function(c){var d={dragStart:"start.draggable",d rag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",m inHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth. resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"sto p.resizable"};c.widget("ui.dialog",{init:function(){var b=this,a=this.options,q= typeof a.resizable=="string"?a.resizable:"n,e,s,w,se,sw,ne,nw",p=this.element.ad

dClass("ui-dialog-content").wrap("<div/>").wrap("<div/>"),n=(this.uiDialogContai ner=p.parent().addClass("ui-dialog-container").css({position:"relative",width:"1 00%",height:"100%"})),m=a.title||p.attr("title")||"",r=(this.uiDialogTitlebar=c( '<div class="ui-dialog-titlebar"/>')).append('<span class="ui-dialog-title">'+m+ "</span>").append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></ a>').prependTo(n),l=(this.uiDialog=n.parent()).appendTo(document.body).hide().ad dClass("ui-dialog").addClass(a.dialogClass).addClass(p.attr("className")).remove Class("ui-dialog-content").css({position:"absolute",width:a.width,height:a.heigh t,overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydo wn(function(f){if(a.closeOnEscape){var e=27;(f.keyCode&&f.keyCode==e&&b.close()) }}).mousedown(function(){b.moveToTop()}),o=(this.uiDialogButtonPane=c("<div/>")) .addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(l );this.uiDialogTitlebarClose=c(".ui-dialog-titlebar-close",r).hover(function(){c (this).addClass("ui-dialog-titlebar-close-hover")},function(){c(this).removeClas s("ui-dialog-titlebar-close-hover")}).mousedown(function(e){e.stopPropagation()} ).click(function(){b.close();return false});this.uiDialogTitlebar.find("*").add( this.uiDialogTitlebar).each(function(){c.ui.disableSelection(this)});if(c.fn.dra ggable){l.draggable({cancel:".ui-dialog-content",helper:a.dragHelper,handle:".ui -dialog-titlebar",start:function(e,f){b.moveToTop();(a.dragStart&&a.dragStart.ap ply(b.element[0],arguments))},drag:function(e,f){(a.drag&&a.drag.apply(b.element [0],arguments))},stop:function(e,f){(a.dragStop&&a.dragStop.apply(b.element[0],a rguments));c.ui.dialog.overlay.resize()}});(a.draggable||l.draggable("disable")) }if(c.fn.resizable){l.resizable({cancel:".ui-dialog-content",helper:a.resizeHelp er,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:a.min Height,start:function(){(a.resizeStart&&a.resizeStart.apply(b.element[0],argumen ts))},resize:function(e,f){(a.autoResize&&b.size.apply(b));(a.resize&&a.resize.a pply(b.element[0],arguments))},handles:q,stop:function(e,f){(a.autoResize&&b.siz e.apply(b));(a.resizeStop&&a.resizeStop.apply(b.element[0],arguments));c.ui.dial og.overlay.resize()}});(a.resizable||l.resizable("disable"))}this.createButtons( a.buttons);this.isOpen=false;(a.bgiframe&&c.fn.bgiframe&&l.bgiframe());(a.autoOp en&&this.open())},setData:function(b,a){(d[b]&&this.uiDialog.data(d[b],a));switc h(b){case"buttons":this.createButtons(a);break;case"draggable":this.uiDialog.dra ggable(a?"enable":"disable");break;case"height":this.uiDialog.height(a);break;ca se"position":this.position(a);break;case"resizable":(typeof a=="string"&&this.ui Dialog.data("handles.resizable",a));this.uiDialog.resizable(a?"enable":"disable" );break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).text(a);break;ca se"width":this.uiDialog.width(a);break}c.widget.prototype.setData.apply(this,arg uments)},position:function(j){var i=c(window),b=c(document),a=b.scrollTop(),k=b. scrollLeft(),l=a;if(c.inArray(j,["center","top","right","bottom","left"])>=0){j= [j=="right"||j=="left"?j:"center",j=="top"||j=="bottom"?j:"middle"]}if(j.constru ctor!=Array){j=["center","middle"]}if(j[0].constructor==Number){k+=j[0]}else{swi tch(j[0]){case"left":k+=0;break;case"right":k+=i.width()-this.uiDialog.width();b reak;default:case"center":k+=(i.width()-this.uiDialog.width())/2}}if(j[1].constr uctor==Number){a+=j[1]}else{switch(j[1]){case"top":a+=0;break;case"bottom":a+=i. height()-this.uiDialog.height();break;default:case"middle":a+=(i.height()-this.u iDialog.height())/2}}a=Math.max(a,l);this.uiDialog.css({top:a,left:k})},size:fun ction(){var b=this.uiDialogContainer,i=this.uiDialogTitlebar,a=this.element,j=pa rseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10),h=parseInt(a. css("margin-left"),10)+parseInt(a.css("margin-right"),10);a.height(b.height()-i. outerHeight()-j);a.width(b.width()-h)},open:function(){if(this.isOpen){return}th is.overlay=this.options.modal?new c.ui.dialog.overlay(this):null;(this.uiDialog. next().length>0)&&this.uiDialog.appendTo("body");this.position(this.options.posi tion);this.uiDialog.show(this.options.show);this.options.autoResize&&this.size() ;this.moveToTop(true);var b=null;var a={options:this.options};this.uiDialogTitle barClose.focus();this.element.triggerHandler("dialogopen",[b,a],this.options.ope n);this.isOpen=true},moveToTop:function(b){if((this.options.modal&&!b)||(!this.o ptions.stack&&!this.options.modal)){return this.element.triggerHandler("dialogfo cus",[null,{options:this.options}],this.options.focus)}var f=this.options.zIndex ,a=this.options;c(".ui-dialog:visible").each(function(){f=Math.max(f,parseInt(c( this).css("z-index"),10)||a.zIndex)});(this.overlay&&this.overlay.$el.css("z-ind

ex",++f));this.uiDialog.css("z-index",++f);this.element.triggerHandler("dialogfo cus",[null,{options:this.options}],this.options.focus)},close:function(){(this.o verlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide);var a=null ;var b={options:this.options};this.element.triggerHandler("dialogclose",[a,b],th is.options.close);c.ui.dialog.overlay.resize();this.isOpen=false},destroy:functi on(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.un bind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().app endTo("body");this.uiDialog.remove()},createButtons:function(g){var h=this,b=fal se,a=this.uiDialogButtonPane;a.empty().hide();c.each(g,function(){return !(b=tru e)});if(b){a.show();c.each(g,function(f,e){c("<button/>").text(f).click(function (){e.apply(h.element[0],arguments)}).appendTo(a)})}}});c.extend(c.ui.dialog,{def aults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:tru e,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},po sition:"center",resizable:true,stack:true,width:300,zIndex:1000},overlay:functio n(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{ins tances:[],events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(", "),function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this .instances.length===0){setTimeout(function(){c("a, :input").bind(c.ui.dialog.ove rlay.events,function(){var k=false;var i=c(this).parents(".ui-dialog");if(i.leng th){var l=c(".ui-dialog-overlay");if(l.length){var j=parseInt(l.css("z-index"),1 0);l.each(function(){j=Math.max(j,parseInt(c(this).css("z-index"),10))});k=parse Int(i.css("z-index"),10)>j}else{k=true}}return k})},1);c(document).bind("keydown .dialog-overlay",function(h){var e=27;(h.keyCode&&h.keyCode==e&&a.close())});c(w indow).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=c("<div/>" ).appendTo(document.body).addClass("ui-dialog-overlay").css(c.extend({borderWidt h:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),heigh t:this.height()},a.options.overlay));(a.options.bgiframe&&c.fn.bgiframe&&b.bgifr ame());this.instances.push(b);return b},destroy:function(a){this.instances.splic e(c.inArray(this.instances,a),1);if(this.instances.length===0){c("a, :input").ad d([document,window]).unbind(".dialog-overlay")}a.remove()},height:function(){if( c.browser.msie&&c.browser.version<7){var a=Math.max(document.documentElement.scr ollHeight,document.body.scrollHeight);var b=Math.max(document.documentElement.of fsetHeight,document.body.offsetHeight);if(a<b){return c(window).height()+"px"}el se{return a+"px"}}else{return c(document).height()+"px"}},width:function(){if(c. browser.msie&&c.browser.version<7){var b=Math.max(document.documentElement.scrol lWidth,document.body.scrollWidth);var a=Math.max(document.documentElement.offset Width,document.body.offsetWidth);if(b<a){return c(window).width()+"px"}else{retu rn b+"px"}}else{return c(document).width()+"px"}},resize:function(){var a=c([]); c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,h eight:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.heig ht()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog .overlay.destroy(this.$el)}})})(jQuery);(function(b){b.fn.unwrap=b.fn.unwrap||fu nction(a){return this.each(function(){b(this).parents(a).eq(0).after(this).remov e()})};b.widget("ui.slider",{plugins:{},ui:function(a){return{options:this.optio ns,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis ?Math.round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:Math.roun d(this.value(null,"x")),y:Math.round(this.value(null,"y"))},range:this.getRange( )}},propagate:function(d,a){b.ui.plugin.call(this,d,[a,this.ui()]);this.element. triggerHandler(d=="slide"?d:"slide"+d,[a,this.ui()],this.options[d])},destroy:fu nction(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("sl ider").unbind(".slider");if(this.handle&&this.handle.length){this.handle.unwrap( "a");this.handle.each(function(){b(this).data("mouse").mouseDestroy()})}this.gen erated&&this.generated.remove()},setData:function(a,d){b.widget.prototype.setDat a.apply(this,arguments);if(/min|max|steps/.test(a)){this.initBoundaries()}if(a== "range"){d?this.handle.length==2&&this.createRange():this.removeRange()}},init:f unction(){var a=this;this.element.addClass("ui-slider");this.initBoundaries();th is.handle=b(this.options.handle,this.element);if(!this.handle.length){a.handle=a .generated=b(a.options.handles||[0]).map(function(){var c=b("<div/>").addClass(" ui-slider-handle").appendTo(a.element);if(this.id){c.attr("id",this.id)}return c [0]})}var d=function(c){this.element=b(c);this.element.data("mouse",this);this.o

ptions=a.options;this.element.bind("mousedown",function(){if(a.currentHandle){th is.blur(a.currentHandle)}a.focus(this,1)});this.mouseInit()};b.extend(d.prototyp e,b.ui.mouse,{mouseStart:function(c){return a.start.call(a,c,this.element[0])},m ouseStop:function(c){return a.stop.call(a,c,this.element[0])},mouseDrag:function (c){return a.drag.call(a,c,this.element[0])},mouseCapture:function(){return true },trigger:function(c){this.mouseDown(c)}});b(this.handle).each(function(){new d( this)}).wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a >').parent().bind("focus",function(c){a.focus(this.firstChild)}).bind("blur",fun ction(c){a.blur(this.firstChild)}).bind("keydown",function(c){if(!a.options.noKe yboard){a.keydown(c.keyCode,this.firstChild)}});this.element.bind("mousedown.sli der",function(c){a.click.apply(a,[c]);a.currentHandle.data("mouse").trigger(c);a .firstValue=a.firstValue+1});b.each(this.options.handles||[],function(f,c){a.mov eTo(c.start,f,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.optio ns.startValue,0,true)}this.previousHandle=b(this.handle[0]);if(this.handle.lengt h==2&&this.options.range){this.createRange()}},initBoundaries:function(){var a=t his.element[0],d=this.options;this.actualSize={width:this.element.outerWidth(),h eight:this.element.outerHeight()};b.extend(d,{axis:d.axis||(a.offsetWidth<a.offs etHeight?"vertical":"horizontal"),max:!isNaN(parseInt(d.max,10))?{x:parseInt(d.m ax,10),y:parseInt(d.max,10)}:({x:d.max&&d.max.x||100,y:d.max&&d.max.y||100}),min :!isNaN(parseInt(d.min,10))?{x:parseInt(d.min,10),y:parseInt(d.min,10)}:({x:d.mi n&&d.min.x||0,y:d.min&&d.min.y||0})});d.realMax={x:d.max.x-d.min.x,y:d.max.y-d.m in.y};d.stepping={x:d.stepping&&d.stepping.x||parseInt(d.stepping,10)||(d.steps? d.realMax.x/(d.steps.x||parseInt(d.steps,10)||d.realMax.x):0),y:d.stepping&&d.st epping.y||parseInt(d.stepping,10)||(d.steps?d.realMax.y/(d.steps.y||parseInt(d.s teps,10)||d.realMax.y):0)}},keydown:function(d,a){if(/(37|38|39|40)/.test(d)){th is.moveTo({x:/(37|39)/.test(d)?(d==37?"-":"+")+"="+this.oneStep("x"):0,y:/(38|40 )/.test(d)?(d==38?"-":"+")+"="+this.oneStep("y"):0},a)}},focus:function(a,d){thi s.currentHandle=b(a).addClass("ui-slider-handle-active");if(d){this.currentHandl e.parent()[0].focus()}},blur:function(a){b(a).removeClass("ui-slider-handle-acti ve");if(this.currentHandle&&this.currentHandle[0]==a){this.previousHandle=this.c urrentHandle;this.currentHandle=null}},click:function(f){var e=[f.pageX,f.pageY] ;var a=false;this.handle.each(function(){if(this==f.target){a=true}});if(a||this .options.disabled||!(this.currentHandle||this.previousHandle)){return}if(!this.c urrentHandle&&this.previousHandle){this.focus(this.previousHandle,true)}this.off set=this.element.offset();this.moveTo({y:this.convertValue(f.pageY-this.offset.t op-this.currentHandle[0].offsetHeight/2,"y"),x:this.convertValue(f.pageX-this.of fset.left-this.currentHandle[0].offsetWidth/2,"x")},null,!this.options.distance) },createRange:function(){if(this.rangeElement){return}this.rangeElement=b("<div> </div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.el ement);this.updateRange()},removeRange:function(){this.rangeElement.remove();thi s.rangeElement=null},updateRange:function(){var d=this.options.axis=="vertical"? "top":"left";var a=this.options.axis=="vertical"?"height":"width";this.rangeElem ent.css(d,(parseInt(b(this.handle[0]).css(d),10)||0)+this.handleSize(0,this.opti ons.axis=="vertical"?"y":"x")/2);this.rangeElement.css(a,(parseInt(b(this.handle [1]).css(d),10)||0)-(parseInt(b(this.handle[0]).css(d),10)||0))},getRange:functi on(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css(t his.options.axis=="vertical"?"height":"width"),10),this.options.axis=="vertical" ?"y":"x"):null},handleIndex:function(){return this.handle.index(this.currentHand le[0])},value:function(e,a){if(this.handle.length==1){this.currentHandle=this.ha ndle}if(!a){a=this.options.axis=="vertical"?"y":"x"}var f=b(e!=undefined&&e!==nu ll?this.handle[e]||e:this.currentHandle);if(f.data("mouse").sliderValue){return parseInt(f.data("mouse").sliderValue[a],10)}else{return parseInt(((parseInt(f.cs s(a=="x"?"left":"top"),10)/(this.actualSize[a=="x"?"width":"height"]-this.handle Size(e,a)))*this.options.realMax[a])+this.options.min[a],10)}},convertValue:func tion(d,a){return this.options.min[a]+(d/(this.actualSize[a=="x"?"width":"height" ]-this.handleSize(null,a)))*this.options.realMax[a]},translateValue:function(d,a ){return((d-this.options.min[a])/this.options.realMax[a])*(this.actualSize[a=="x "?"width":"height"]-this.handleSize(null,a))},translateRange:function(e,a){if(th is.rangeElement){if(this.currentHandle[0]==this.handle[0]&&e>=this.translateValu e(this.value(1),a)){e=this.translateValue(this.value(1,a)-this.oneStep(a),a)}if(

this.currentHandle[0]==this.handle[1]&&e<=this.translateValue(this.value(0),a)){ e=this.translateValue(this.value(0,a)+this.oneStep(a),a)}}if(this.options.handle s){var f=this.options.handles[this.handleIndex()];if(e<this.translateValue(f.min ,a)){e=this.translateValue(f.min,a)}else{if(e>this.translateValue(f.max,a)){e=th is.translateValue(f.max,a)}}}return e},translateLimits:function(d,a){if(d>=this. actualSize[a=="x"?"width":"height"]-this.handleSize(null,a)){d=this.actualSize[a =="x"?"width":"height"]-this.handleSize(null,a)}if(d<=0){d=0}return d},handleSiz e:function(d,a){return b(d!=undefined&&d!==null?this.handle[d]:this.currentHandl e)[0]["offset"+(a=="x"?"Width":"Height")]},oneStep:function(a){return this.optio ns.stepping[a]||1},start:function(f,a){var e=this.options;if(e.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outer Height()};if(!this.currentHandle){this.focus(this.previousHandle,true)}this.offs et=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clic kOffset={top:f.pageY-this.handleOffset.top,left:f.pageX-this.handleOffset.left}; this.firstValue=this.value();this.propagate("start",f);this.drag(f,a);return tru e},stop:function(a){this.propagate("stop",a);if(this.firstValue!=this.value()){t his.propagate("change",a)}this.focus(this.currentHandle,true);return false},drag :function(h,i){var e=this.options;var a={top:h.pageY-this.offset.top-this.clickO ffset.top,left:h.pageX-this.offset.left-this.clickOffset.left};if(!this.currentH andle){this.focus(this.previousHandle,true)}a.left=this.translateLimits(a.left," x");a.top=this.translateLimits(a.top,"y");if(e.stepping.x){var j=this.convertVal ue(a.left,"x");j=Math.round(j/e.stepping.x)*e.stepping.x;a.left=this.translateVa lue(j,"x")}if(e.stepping.y){var j=this.convertValue(a.top,"y");j=Math.round(j/e. stepping.y)*e.stepping.y;a.top=this.translateValue(j,"y")}a.left=this.translateR ange(a.left,"x");a.top=this.translateRange(a.top,"y");if(e.axis!="vertical"){thi s.currentHandle.css({left:a.left})}if(e.axis!="horizontal"){this.currentHandle.c ss({top:a.top})}this.currentHandle.data("mouse").sliderValue={x:Math.round(this. convertValue(a.left,"x"))||0,y:Math.round(this.convertValue(a.top,"y"))||0};if(t his.rangeElement){this.updateRange()}this.propagate("slide",h);return false},mov eTo:function(a,j,o){var n=this.options;this.actualSize={width:this.element.outer Width(),height:this.element.outerHeight()};if(j==undefined&&!this.currentHandle& &this.handle.length!=1){return false}if(j==undefined&&!this.currentHandle){j=0}i f(j!=undefined){this.currentHandle=this.previousHandle=b(this.handle[j]||j)}if(a .x!==undefined&&a.y!==undefined){var p=a.x,m=a.y}else{var p=a,m=a}if(p!==undefin ed&&p.constructor!=Number){var k=/^\-\=/.test(p),l=/^\+\=/.test(p);if(k||l){p=th is.value(null,"x")+parseInt(p.replace(k?"=":"+=",""),10)}else{p=isNaN(parseInt(p ,10))?undefined:parseInt(p,10)}}if(m!==undefined&&m.constructor!=Number){var k=/ ^\-\=/.test(m),l=/^\+\=/.test(m);if(k||l){m=this.value(null,"y")+parseInt(m.repl ace(k?"=":"+=",""),10)}else{m=isNaN(parseInt(m,10))?undefined:parseInt(m,10)}}if (n.axis!="vertical"&&p!==undefined){if(n.stepping.x){p=Math.round(p/n.stepping.x )*n.stepping.x}p=this.translateValue(p,"x");p=this.translateLimits(p,"x");p=this .translateRange(p,"x");n.animate?this.currentHandle.stop().animate({left:p},(Mat h.abs(parseInt(this.currentHandle.css("left"))-p))*(!isNaN(parseInt(n.animate))? n.animate:5)):this.currentHandle.css({left:p})}if(n.axis!="horizontal"&&m!==unde fined){if(n.stepping.y){m=Math.round(m/n.stepping.y)*n.stepping.y}m=this.transla teValue(m,"y");m=this.translateLimits(m,"y");m=this.translateRange(m,"y");n.anim ate?this.currentHandle.stop().animate({top:m},(Math.abs(parseInt(this.currentHan dle.css("top"))-m))*(!isNaN(parseInt(n.animate))?n.animate:5)):this.currentHandl e.css({top:m})}if(this.rangeElement){this.updateRange()}this.currentHandle.data( "mouse").sliderValue={x:Math.round(this.convertValue(p,"x"))||0,y:Math.round(thi s.convertValue(m,"y"))||0};if(!o){this.propagate("start",null);this.propagate("s top",null);this.propagate("change",null);this.propagate("slide",null)}}});b.ui.s lider.getter="value";b.ui.slider.defaults={handle:".ui-slider-handle",distance:1 ,animate:false}})(jQuery);(function(b){b.widget("ui.tabs",{init:function(){this. options.event+=".tabs";this.tabify(true)},setData:function(a,d){if((/^selected/) .test(a)){this.select(d)}else{this.options[a]=d;this.tabify()}},length:function( ){return this.$tabs.length},tabId:function(a){return a.title&&a.title.replace(/\ s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+b.data(a)},ui: function(d,a){return{options:this.options,tab:d,panel:a,index:this.$tabs.index(d )}},tabify:function(y){this.$lis=b("li:has(a[href])",this.element);this.$tabs=th

is.$lis.map(function(){return b("a",this)[0]});this.$panels=b([]);var u=this,B=t his.options;this.$tabs.each(function(f,d){if(d.hash&&d.hash.replace("#","")){u.$ panels=u.$panels.add(d.hash)}else{if(b(d).attr("href")!="#"){b.data(d,"href.tabs ",d.href);b.data(d,"load.tabs",d.href);var c=u.tabId(d);d.href="#"+c;var e=b("#" +c);if(!e.length){e=b(B.panelTemplate).attr("id",c).addClass(B.panelClass).inser tAfter(u.$panels[f-1]||u.element);e.data("destroy.tabs",true)}u.$panels=u.$panel s.add(e)}else{B.disabled.push(f+1)}}});if(y){this.element.addClass(B.navClass);t his.$panels.each(function(){var c=b(this);c.addClass(B.panelClass)});if(B.select ed===undefined){if(location.hash){this.$tabs.each(function(e,d){if(d.hash==locat ion.hash){B.selected=e;if(b.browser.msie||b.browser.opera){var f=b(location.hash ),c=f.attr("id");f.attr("id","");setTimeout(function(){f.attr("id",c)},500)}scro llTo(0,0);return false}})}else{if(B.cookie){var s=parseInt(b.cookie("ui-tabs"+b. data(u.element)),10);if(s&&u.$tabs[s]){B.selected=s}}else{if(u.$lis.filter("."+B .selectedClass).length){B.selected=u.$lis.index(u.$lis.filter("."+B.selectedClas s)[0])}}}}B.selected=B.selected===null||B.selected!==undefined?B.selected:0;B.di sabled=b.unique(B.disabled.concat(b.map(this.$lis.filter("."+B.disabledClass),fu nction(d,c){return u.$lis.index(d)}))).sort();if(b.inArray(B.selected,B.disabled )!=-1){B.disabled.splice(b.inArray(B.selected,B.disabled),1)}this.$panels.addCla ss(B.hideClass);this.$lis.removeClass(B.selectedClass);if(B.selected!==null){thi s.$panels.eq(B.selected).show().removeClass(B.hideClass);this.$lis.eq(B.selected ).addClass(B.selectedClass);var o=function(){b(u.element).triggerHandler("tabssh ow",[u.fakeEvent("tabsshow"),u.ui(u.$tabs[B.selected],u.$panels[B.selected])],B. show)};if(b.data(this.$tabs[B.selected],"load.tabs")){this.load(B.selected,o)}el se{o()}}b(window).bind("unload",function(){u.$tabs.unbind(".tabs");u.$lis=u.$tab s=u.$panels=null})}for(var w=0,z;z=this.$lis[w];w++){b(z)[b.inArray(w,B.disabled )!=-1&&!b(z).hasClass(B.selectedClass)?"addClass":"removeClass"](B.disabledClass )}if(B.cache===false){this.$tabs.removeData("cache.tabs")}var C,t,D={"min-width" :0,duration:1},A="normal";if(B.fx&&B.fx.constructor==Array){C=B.fx[0]||D,t=B.fx[ 1]||D}else{C=t=B.fx||D}var v={display:"",overflow:"",height:""};if(!b.browser.ms ie){v.opacity=""}function a(c,d,e){d.animate(C,C.duration||A,function(){d.addCla ss(B.hideClass).css(v);if(b.browser.msie&&C.opacity){d[0].style.filter=""}if(e){ i(c,e,d)}})}function i(c,e,d){if(t===D){e.css("display","block")}e.animate(t,t.d uration||A,function(){e.removeClass(B.hideClass).css(v);if(b.browser.msie&&t.opa city){e[0].style.filter=""}b(u.element).triggerHandler("tabsshow",[u.fakeEvent(" tabsshow"),u.ui(c,e[0])],B.show)})}function x(d,e,c,f){e.addClass(B.selectedClas s).siblings().removeClass(B.selectedClass);a(d,c,f)}this.$tabs.unbind(".tabs").b ind(B.event,function(){var e=b(this).parents("li:eq(0)"),d=u.$panels.filter(":vi sible"),f=b(this.hash);if((e.hasClass(B.selectedClass)&&!B.unselect)||e.hasClass (B.disabledClass)||b(this).hasClass(B.loadingClass)||b(u.element).triggerHandler ("tabsselect",[u.fakeEvent("tabsselect"),u.ui(this,f[0])],B.select)===false){thi s.blur();return false}u.options.selected=u.$tabs.index(this);if(B.unselect){if(e .hasClass(B.selectedClass)){u.options.selected=null;e.removeClass(B.selectedClas s);u.$panels.stop();a(this,d);this.blur();return false}else{if(!d.length){u.$pan els.stop();var c=this;u.load(u.$tabs.index(this),function(){e.addClass(B.selecte dClass).addClass(B.unselectClass);i(c,f)});this.blur();return false}}}if(B.cooki e){b.cookie("ui-tabs"+b.data(u.element),u.options.selected,B.cookie)}u.$panels.s top();if(f.length){var c=this;u.load(u.$tabs.index(this),d.length?function(){x(c ,e,d,f)}:function(){e.addClass(B.selectedClass);i(c,f)})}else{throw"jQuery UI Ta bs: Mismatching fragment identifier."}if(b.browser.msie){this.blur()}return fals e});if(!(/^click/).test(B.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(j,k,l){if(l==undefined){l=this.$tabs.length}var o=this.o ptions;var m=b(o.tabTemplate.replace(/#\{href\}/g,j).replace(/#\{label\}/g,k));m .data("destroy.tabs",true);var n=j.indexOf("#")==0?j.replace("#",""):this.tabId( b("a:first-child",m)[0]);var a=b("#"+n);if(!a.length){a=b(o.panelTemplate).attr( "id",n).addClass(o.hideClass).data("destroy.tabs",true)}a.addClass(o.panelClass) ;if(l>=this.$lis.length){m.appendTo(this.element);a.appendTo(this.element[0].par entNode)}else{m.insertBefore(this.$lis[l]);a.insertBefore(this.$panels[l])}o.dis abled=b.map(o.disabled,function(c,d){return c>=l?++c:c});this.tabify();if(this.$ tabs.length==1){m.addClass(o.selectedClass);a.removeClass(o.hideClass);var p=b.d ata(this.$tabs[0],"load.tabs");if(p){this.load(l,p)}}this.element.triggerHandler

("tabsadd",[this.fakeEvent("tabsadd"),this.ui(this.$tabs[l],this.$panels[l])],o. add)},remove:function(a){var g=this.options,f=this.$lis.eq(a).remove(),h=this.$p anels.eq(a).remove();if(f.hasClass(g.selectedClass)&&this.$tabs.length>1){this.s elect(a+(a+1<this.$tabs.length?1:-1))}g.disabled=b.map(b.grep(g.disabled,functio n(c,d){return c!=a}),function(c,d){return c>=a?--c:c});this.tabify();this.elemen t.triggerHandler("tabsremove",[this.fakeEvent("tabsremove"),this.ui(f.find("a")[ 0],h[0])],g.remove)},enable:function(a){var f=this.options;if(b.inArray(a,f.disa bled)==-1){return}var e=this.$lis.eq(a).removeClass(f.disabledClass);if(b.browse r.safari){e.css("display","inline-block");setTimeout(function(){e.css("display", "block")},0)}f.disabled=b.grep(f.disabled,function(c,d){return c!=a});this.eleme nt.triggerHandler("tabsenable",[this.fakeEvent("tabsenable"),this.ui(this.$tabs[ a],this.$panels[a])],f.enable)},disable:function(f){var a=this,e=this.options;if (f!=e.selected){this.$lis.eq(f).addClass(e.disabledClass);e.disabled.push(f);e.d isabled.sort();this.element.triggerHandler("tabsdisable",[this.fakeEvent("tabsdi sable"),this.ui(this.$tabs[f],this.$panels[f])],e.disable)}},select:function(a){ if(typeof a=="string"){a=this.$tabs.index(this.$tabs.filter("[href$="+a+"]")[0]) }this.$tabs.eq(a).trigger(this.options.event)},load:function(a,u){var t=this,p=t his.options,o=this.$tabs.eq(a),v=o[0],x=u==undefined||u===false,r=o.data("load.t abs");u=u||function(){};if(!r||!x&&b.data(v,"cache.tabs")){u();return}var s=func tion(e){var d=b(e),c=d.find("*:last");return c.length&&c.is(":not(img)")&&c||d}; var q=function(){t.$tabs.filter("."+p.loadingClass).removeClass(p.loadingClass). each(function(){if(p.spinner){s(this).parent().html(s(this).data("label.tabs"))} });t.xhr=null};if(p.spinner){var w=s(v).html();s(v).wrapInner("<em></em>").find( "em").data("label.tabs",w).html(p.spinner)}var n=b.extend({},p.ajaxOptions,{url: r,success:function(c,d){b(v.hash).html(c);q();if(p.cache){b.data(v,"cache.tabs", true)}b(t.element).triggerHandler("tabsload",[t.fakeEvent("tabsload"),t.ui(t.$ta bs[a],t.$panels[a])],p.load);p.ajaxOptions.success&&p.ajaxOptions.success(c,d);u ()}});if(this.xhr){this.xhr.abort();q()}o.addClass(p.loadingClass);setTimeout(fu nction(){t.xhr=b.ajax(n)},0)},url:function(d,a){this.$tabs.eq(d).removeData("cac he.tabs").data("load.tabs",a)},destroy:function(){var a=this.options;this.elemen t.unbind(".tabs").removeClass(a.navClass).removeData("tabs");this.$tabs.each(fun ction(){var f=b.data(this,"href.tabs");if(f){this.href=f}var e=b(this).unbind(". tabs");b.each(["href","load","cache"],function(d,c){e.removeData(c+".tabs")})}); this.$lis.add(this.$panels).each(function(){if(b.data(this,"destroy.tabs")){b(th is).remove()}else{b(this).removeClass([a.selectedClass,a.unselectClass,a.disable dClass,a.panelClass,a.hideClass].join(" "))}})},fakeEvent:function(a){return b.e vent.fix({type:a,target:this.element[0]})}});b.ui.tabs.defaults={unselect:false, event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPre fix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span># {label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",sele ctedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"uitabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass: "ui-tabs-loading"};b.ui.tabs.getter="length";b.extend(b.ui.tabs.prototype,{rotat ion:null,rotate:function(l,i){i=i||false;var a=this,j=this.options.selected;func tion h(){a.rotation=setInterval(function(){j=++j<a.$tabs.length?j:0;a.select(j)} ,l)}function k(c){if(!c||c.clientX){clearInterval(a.rotation)}}if(l){h();if(!i){ this.$tabs.bind(this.options.event,k)}else{this.$tabs.bind(this.options.event,fu nction(){k();j=a.options.selected;h()})}}else{k();this.$tabs.unbind(this.options .event,k)}}})})(jQuery);(function($){var PROP_NAME="datepicker";function Datepic ker(){this.debug=false;this._curInst=null;this._disabledInputs=[];this._datepick erShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._a ppendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";thi s._dialogClass="ui-datepicker-dialog";this._promptClass="ui-datepicker-prompt";t his._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datep icker-current-day";this.regional=[];this.regional[""]={clearText:"Clear",clearSt atus:"Erase the current date",closeText:"Close",closeStatus:"Close without chang e",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3 e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","J uly","August","September","October","November","December"],monthNamesShort:["Jan

","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus :"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",wee kStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Th ursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri", "Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as fir st week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initSt atus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show" ,showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",b uttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navi gationAsDateFormat:false,gotoCurrent:false,changeMonth:true,changeYear:true,year Range:"-10:+10",changeFirstDay:true,highlightWeek:false,showOtherMonths:false,sh owWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:fa lse,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:"normal",be foreShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:nu ll,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - ",altField :"",altFormat:""};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" style="display: none;"></div>')}$.extend(Datepicker.pro totype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.lo g.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaul ts,settings||{});return this},_attachDatepicker:function(target,settings){var in lineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttrib ute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inline Settings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue }}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeN ame=="span");if(!target.id){target.id="dp"+new Date().getTime()}var inst=this._n ewInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings|| {});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){t his._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){return{id :target[0].id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMont h:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="ui-datepic ker-inline"></div>'))}},_connectDatepicker:function(target,inst){var input=$(tar get);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(in st,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){input[isRTL?"b efore":"after"]('<span class="'+this._appendClass+'">'+appendText+"</span>")}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus (this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this. _get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");var trigge r=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).a ttr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"> </button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img />").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"befo re":"after"](trigger);trigger.click(function(){if($.datepicker._datepickerShowin g&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepi cker._showDatepicker(target)}return false})}input.addClass(this.markerClassName) .keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",f unction(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",fu nction(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_i nlineDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this .markerClassName)){return}input.addClass(this.markerClassName).append(inst.dpDiv ).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}) .bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.da ta(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._u pdateDatepicker(inst)},_dialogDatepicker:function(input,dateText,onSelect,settin gs,pos){var inst=this._dialogInst;if(!inst){var id="dp"+new Date().getTime();thi s._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absol ute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").appe nd(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,fals e);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(ins t.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.len gth?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.inne

rWidth||document.documentElement.clientWidth||document.body.clientWidth;var brow serHeight=window.innerHeight||document.documentElement.clientHeight||document.bo dy.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.s crollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTo p;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._d ialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.setti ngs.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass) ;this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)} $.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:func tion(target){var nodeName=target.nodeName.toLowerCase();var $target=$(target);$. removeData(target,PROP_NAME);if(nodeName=="input"){$target.siblings("."+this._ap pendClass).remove().end().siblings("."+this._triggerClass).remove().end().remove Class(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown ",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"|| nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDa tepicker:function(target){target.disabled=false;$(target).siblings("button."+thi s._triggerClass).each(function(){this.disabled=false}).end().siblings("img."+thi s._triggerClass).css({opacity:"1.0",cursor:""});this._disabledInputs=$.map(this. _disabledInputs,function(value){return(value==target?null:value)})},_disableDate picker:function(target){target.disabled=true;$(target).siblings("button."+this._ triggerClass).each(function(){this.disabled=true}).end().siblings("img."+this._t riggerClass).css({opacity:"0.5",cursor:"default"});this._disabledInputs=$.map(th is._disabledInputs,function(value){return(value==target?null:value)});this._disa bledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(t arget){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){i f(this._disabledInputs[i]==target){return true}}return false},_changeDatepicker: function(target,name,value){var settings=name||{};if(typeof name=="string"){sett ings={};settings[name]=value}if(inst=$.data(target,PROP_NAME)){extendRemove(inst .settings,settings);this._updateDatepicker(inst)}},_setDateDatepicker:function(t arget,date,endDate){var inst=$.data(target,PROP_NAME);if(inst){this._setDate(ins t,date,endDate);this._updateDatepicker(inst)}},_getDateDatepicker:function(targe t){var inst=$.data(target,PROP_NAME);if(inst){this._setDateFromField(inst)}retur n(inst?this._getDate(inst):null)},_doKeyDown:function(e){var inst=$.data(e.targe t,PROP_NAME);var handled=true;if($.datepicker._datepickerShowing){switch(e.keyCo de){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:$.datepicker._sel ectDay(e.target,inst.selectedMonth,inst.selectedYear,$("td.ui-datepicker-days-ce ll-over",inst.dpDiv)[0]);return false;break;case 27:$.datepicker._hideDatepicker (null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate (e.target,(e.ctrlKey?-1:-$.datepicker._get(inst,"stepMonths")),(e.ctrlKey?"Y":"M "));break;case 34:$.datepicker._adjustDate(e.target,(e.ctrlKey?+1:+$.datepicker. _get(inst,"stepMonths")),(e.ctrlKey?"Y":"M"));break;case 35:if(e.ctrlKey){$.date picker._clearDate(e.target)}break;case 36:if(e.ctrlKey){$.datepicker._gotoToday( e.target)}break;case 37:if(e.ctrlKey){$.datepicker._adjustDate(e.target,-1,"D")} break;case 38:if(e.ctrlKey){$.datepicker._adjustDate(e.target,-7,"D")}break;case 39:if(e.ctrlKey){$.datepicker._adjustDate(e.target,+1,"D")}break;case 40:if(e.c trlKey){$.datepicker._adjustDate(e.target,+7,"D")}break;default:handled=false}}e lse{if(e.keyCode==36&&e.ctrlKey){$.datepicker._showDatepicker(this)}else{handled =false}}if(handled){e.preventDefault();e.stopPropagation()}},_doKeyPress:functio n(e){var inst=$.data(e.target,PROP_NAME);var chars=$.datepicker._possibleChars($ .datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(e.charCode==und efined?e.keyCode:e.charCode);return e.ctrlKey||(chr<" "||!chars||chars.indexOf(c hr)>-1)},_showDatepicker:function(input){input=input.target||input;if(input.node Name.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicke r._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst= $.data(input,PROP_NAME);var beforeShow=$.datepicker._get(inst,"beforeShow");exte ndRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.d atepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._s etDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker ._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=inpu t.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(t

his).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.d atepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=doc ument.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.date picker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({posi tion:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(i nst);inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1]*$(".ui-datepicker ",inst.dpDiv[0])[0].offsetWidth);offset=$.datepicker._checkOffset(inst,offset,is Fixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isF ixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"p x"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";va r duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datep icker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version)<7){ $("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDi v.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.d atepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAni m](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!=" hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:fu nction(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4}; inst.dpDiv.empty().append(this._generateDatepicker(inst)).find("iframe.ui-datepi cker-cover").css({width:dims.width,height:dims.height});var numMonths=this._getN umberOfMonths(inst);inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove") +"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remo ve")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"){ $(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var pos=in st.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||d ocument.documentElement.clientWidth;var browserHeight=window.innerHeight||docume nt.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft| |document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||docume nt.body.scrollTop;if(this._get(inst,"isRTL")||(offset.left+inst.dpDiv.width()-sc rollX)>browserWidth){offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input ?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()-(isFixed&&$.browse r.opera?document.documentElement.scrollLeft:0))}else{offset.left-=(isFixed?scrol lX:0)}if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight){offset.top=Math .max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv .height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))}else {offset.top-=(isFixed?scrollY:0)}return offset},_findPos:function(obj){while(obj &&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj) .offset();return[position.left,position.top]},_hideDatepicker:function(input,dur ation){var inst=this._curInst;if(!inst){return}var rangeSelect=this._get(inst,"r angeSelect");if(rangeSelect&&this._stayOpen){this._selectDate("#"+inst.id,this._ formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}this._stayO pen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._ge t(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=func tion(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[sho wAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration, postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideU p":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==" "){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onCl ose.apply((inst.input?inst.input[0]:null),[this._getDate(inst),inst])}this._date pickerShowing=false;this._lastInput=null;inst.settings.prompt=null;if(this._inDi alog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.bl ockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._cu rInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass) .unbind(".ui-datepicker");$("."+this._promptClass,inst.dpDiv).remove()},_checkEx ternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(even t.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target. hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerC lass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$. datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=$.data(target[0],PROP_NAME);this._adjustInstDate(inst,off

set,period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(i d);var inst=$.data(target[0],PROP_NAME);if(this._get(inst,"gotoCurrent")&&inst.c urrentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=in st.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=n ew Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date .getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._adjustDate( target);this._notifyChange(inst)},_selectMonthYear:function(id,select,period){va r target=$(id);var inst=$.data(target[0],PROP_NAME);inst._selectingMonthYear=fal se;inst[period=="M"?"drawMonth":"drawYear"]=select.options[select.selectedIndex] .value-0;this._adjustDate(target);this._notifyChange(inst)},_clickMonthYear:func tion(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if(inst.input&&in st._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMo nthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var target=$ (id);var inst=$.data(target[0],PROP_NAME);inst.settings.firstDay=day;this._updat eDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).hasClass(this. _unselectableClass)){return}var target=$(id);var inst=$.data(target[0],PROP_NAME );var rangeSelect=this._get(inst,"rangeSelect");if(rangeSelect){this._stayOpen=! this._stayOpen;if(this._stayOpen){$(".ui-datepicker td").removeClass(this._curre ntClass);$(td).addClass(this._currentClass)}}inst.selectedDay=inst.currentDay=$( "a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst .currentYear=year;if(this._stayOpen){inst.endDay=inst.endMonth=inst.endYear=null }else{if(rangeSelect){inst.endDay=inst.currentDay;inst.endMonth=inst.currentMont h;inst.endYear=inst.currentYear}}this._selectDate(id,this._formatDate(inst,inst. currentDay,inst.currentMonth,inst.currentYear));if(this._stayOpen){inst.rangeSta rt=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.c urrentDay));this._updateDatepicker(inst)}else{if(rangeSelect){inst.selectedDay=i nst.currentDay=inst.rangeStart.getDate();inst.selectedMonth=inst.currentMonth=in st.rangeStart.getMonth();inst.selectedYear=inst.currentYear=inst.rangeStart.getF ullYear();inst.rangeStart=null;if(inst.inline){this._updateDatepicker(inst)}}}}, _clearDate:function(id){var target=$(id);var inst=$.data(target[0],PROP_NAME);if (this._get(inst,"mandatory")){return}this._stayOpen=false;inst.endDay=inst.endMo nth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:f unction(id,dateStr){var target=$(id);var inst=$.data(target[0],PROP_NAME);dateSt r=(dateStr!=null?dateStr:this._formatDate(inst));if(this._get(inst,"rangeSelect" )&&dateStr){dateStr=(inst.rangeStart?this._formatDate(inst,inst.rangeStart):date Str)+this._get(inst,"rangeSeparator")+dateStr}if(inst.input){inst.input.val(date Str)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSe lect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(ins t.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(in st)}else{if(!this._stayOpen){this._hideDatepicker(null,this._get(inst,"duration" ));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[ 0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField= this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat" );var date=this._getDate(inst);dateStr=(isArray(date)?(!date[0]&&!date[1]?"":thi s.formatDate(altFormat,date[0],this._getFormatConfig(inst))+this._get(inst,"rang eSeparator")+this.formatDate(altFormat,date[1]||date[0],this._getFormatConfig(in st))):this.formatDate(altFormat,date,this._getFormatConfig(inst)));$(altField).e ach(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.g etDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(ch eckDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate( firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setD ate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(ch eckDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.g etFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDa y-3){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(ch eckDate)}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},dateStatus:fu nction(date,inst){return $.datepicker.formatDate($.datepicker._get(inst,"dateSta tus"),date,$.datepicker._getFormatConfig(inst))},parseDate:function(format,value ,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof

value=="object"?value.toString():value+"");if(value==""){return null}var shortYe arCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutof f;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNa mesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames ;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.mo nthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults .monthNames;var year=-1;var month=-1;var day=-1;var literal=false;var lookAhead= function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)== match);if(matches){iFormat++}return matches};var getNumber=function(match){lookA head(match);var origSize=(match=="@"?14:(match=="y"?4:2));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt (iValue)<="9"){num=num*10+(value.charAt(iValue++)-0);size--}if(size==origSize){t hrow"Missing number at position "+iValue}return num};var getName=function(match, shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size =0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name= "";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue ++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw" Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iV alue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iVa lue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(litera l){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLite ral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case "D":getName("D",dayNamesShort,dayNames);break;case"m":month=getNumber("m");break ;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNum ber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear() ;month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){che ckLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year<100){year+= new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:100)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.get FullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid d ate"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_82 2:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2 822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function( format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.da yNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings. dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.m onthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?se ttings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match) {var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(match es){iFormat++}return matches};var formatNumber=function(match,value){return(look Ahead(match)&&value<10?"0":"")+value};var formatName=function(match,value,shortN ames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iF ormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=fa lse}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){cas e"d":output+=formatNumber("d",date.getDate());break;case"D":output+=formatName(" D",date.getDay(),dayNamesShort,dayNames);break;case"m":output+=formatNumber("m", date.getMonth()+1);break;case"M":output+=formatName("M",date.getMonth(),monthNam esShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(da te.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTi me();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;defaul t:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(forma t){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iForma t++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false} else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d": case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;ca se"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=forma t.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[ name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:fu nction(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?in

st.input.val().split(this._get(inst,"rangeSeparator")):null;inst.endDay=inst.end Month=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);if(dates .length>0){var settings=this._getFormatConfig(inst);if(dates.length>1){date=this .parseDate(dateFormat,dates[1],settings)||defaultDate;inst.endDay=date.getDate() ;inst.endMonth=date.getMonth();inst.endYear=date.getFullYear()}try{date=this.par seDate(dateFormat,dates[0],settings)||defaultDate}catch(e){this.log(e);date=defa ultDate}}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date. getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(d ates[0]?date.getDate():0);inst.currentMonth=(dates[0]?date.getMonth():0);inst.cu rrentYear=(dates[0]?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaul tDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"), new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._g etMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate &&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDa te){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.get Date()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=d ate.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=patt ern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=(ma tches[1]-0);break;case"w":case"W":day+=(matches[1]*7);break;case"m":case"M":mont h+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;case"y":cas e"Y":year+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break}mat ches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defa ultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof d ate=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&& date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date .setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightS avingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}da te.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:functi on(inst,date,endDate){var clear=!(date);date=this._determineDate(date,new Date() );inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMo nth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.curre ntYear=date.getFullYear();if(this._get(inst,"rangeSelect")){if(endDate){endDate= this._determineDate(endDate,null);inst.endDay=endDate.getDate();inst.endMonth=en dDate.getMonth();inst.endYear=endDate.getFullYear()}else{inst.endDay=inst.curren tDay;inst.endMonth=inst.currentMonth;inst.endYear=inst.currentYear}}this._adjust InstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst)+(!t his._get(inst,"rangeSelect")?"":this._get(inst,"rangeSeparator")+this._formatDat e(inst,inst.endDay,inst.endMonth,inst.endYear)))}},_getDate:function(inst){var s tartDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._dayli ghtSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));i f(this._get(inst,"rangeSelect")){return[inst.rangeStart||startDate,(!inst.endYea r?inst.rangeStart||startDate:this._daylightSavingAdjust(new Date(inst.endYear,in st.endMonth,inst.endDay)))]}else{return startDate}},_generateDatepicker:function (inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getF ullYear(),today.getMonth(),today.getDate()));var showStatus=this._get(inst,"show Status");var isRTL=this._get(inst,"isRTL");var clear=(this._get(inst,"mandatory" )?"":'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate( \'#'+inst.id+"');\""+(showStatus?this._addStatus(inst,this._get(inst,"clearStatu s")||"&#xa0;"):"")+">"+this._get(inst,"clearText")+"</a></div>");var controls='< div class="ui-datepicker-control">'+(isRTL?"":clear)+'<div class="ui-datepickerclose"><a onclick="jQuery.datepicker._hideDatepicker();"'+(showStatus?this._addS tatus(inst,this._get(inst,"closeStatus")||"&#xa0;"):"")+">"+this._get(inst,"clos eText")+"</a></div>"+(isRTL?clear:"")+"</div>";var prompt=this._get(inst,"prompt ");var closeAtTop=this._get(inst,"closeAtTop");var hideIfNoPrevNext=this._get(in st,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDa teFormat");var numMonths=this._getNumberOfMonths(inst);var stepMonths=this._get( inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var curre ntDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date( inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMa

xDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth =inst.drawMonth;var drawYear=inst.drawYear;if(maxDate){var maxDraw=this._dayligh tSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,m axDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this ._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(d rawMonth<0){drawMonth=11;drawYear--}}}var prevText=this._get(inst,"prevText");pr evText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylight SavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(in st)));var prev='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(inst,-1, drawYear,drawMonth)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\""+(showStatus?this._addStatus(inst,this._get(inst,"prevS tatus")||"&#xa0;"):"")+">"+prevText+"</a>":(hideIfNoPrevNext?"":"<label>"+prevTe xt+"</label>"))+"</div>";var nextText=this._get(inst,"nextText");nextText=(!navi gationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust( new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var nex t='<div class="ui-datepicker-next">'+(this._canAdjustMonth(inst,+1,drawYear,draw Month)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+inst.id+"', +"+stepMonths +", 'M');\""+(showStatus?this._addStatus(inst,this._get(inst,"nextStatus")||"&#x a0;"):"")+">"+nextText+"</a>":(hideIfNoPrevNext?"":"<label>"+nextText+"</label>" ))+"</div>";var currentText=this._get(inst,"currentText");currentText=(!navigati onAsDateFormat?currentText:this.formatDate(currentText,today,this._getFormatConf ig(inst)));var html=(prompt?'<div class="'+this._promptClass+'">'+prompt+"</div> ":"")+(closeAtTop&&!inst.inline?controls:"")+'<div class="ui-datepicker-links">' +(isRTL?next:prev)+(this._isInRange(inst,(this._get(inst,"gotoCurrent")&&inst.cu rrentDay?currentDate:today))?'<div class="ui-datepicker-current"><a onclick="jQu ery.datepicker._gotoToday(\'#'+inst.id+"');\""+(showStatus?this._addStatus(inst, this._get(inst,"currentStatus")||"&#xa0;"):"")+">"+currentText+"</a></div>":"")+ (isRTL?prev:next)+"</div>";var firstDay=this._get(inst,"firstDay");var changeFir stDay=this._get(inst,"changeFirstDay");var dayNames=this._get(inst,"dayNames");v ar dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst, "dayNamesMin");var monthNames=this._get(inst,"monthNames");var beforeShowDay=thi s._get(inst,"beforeShowDay");var highlightWeek=this._get(inst,"highlightWeek");v ar showOtherMonths=this._get(inst,"showOtherMonths");var showWeeks=this._get(ins t,"showWeeks");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601We ek;var status=(showStatus?this._get(inst,"dayStatus")||"&#xa0;":"");var dateStat us=this._get(inst,"statusForDate")||this.dateStatus;var endDate=inst.endDay?this ._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):current Date;for(var row=0;row<numMonths[0];row++){for(var col=0;col<numMonths[1];col++) {var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.se lectedDay));html+='<div class="ui-datepicker-one-month'+(col==0?" ui-datepickernew-row":"")+'">'+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate, maxDate,selectedDate,row>0||col>0,showStatus,monthNames)+'<table class="ui-datep icker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row ">'+(showWeeks?"<td>"+this._get(inst,"weekHeader")+"</td>":"");for(var dow=0;dow <7;dow++){var day=(dow+firstDay)%7;var dayStatus=(status.indexOf("DD")>-1?status .replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="<td" +((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeF irstDay?"<span":"<a onclick=\"jQuery.datepicker._changeFirstDay('#"+inst.id+"', "+day+');"')+(showStatus?this._addStatus(inst,dayStatus):"")+' title="'+dayNames [day]+'">'+dayNamesMin[day]+(changeFirstDay?"</a>":"</span>")+"</td>"}html+="</t r></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(d rawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math .min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYe ar,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+days InMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMont h,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){html+='<tr class="ui-datepick er-days-row">'+(showWeeks?'<td class="ui-datepicker-week-col">'+calculateWeek(pr intDate)+"</td>":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?b eforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var o therMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySet

tings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);html+='<td class="ui-datepicker-days-cell'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-endcell":"")+(otherMonth?" ui-datepicker-otherMonth":"")+(printDate.getTime()==sele ctedDate.getTime()&&drawMonth==inst.selectedMonth?" ui-datepicker-days-cell-over ":"")+(unselectable?" "+this._unselectableClass:"")+(otherMonth&&!showOtherMonth s?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.g etTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==tod ay.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&da ySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?(highlightWeek?" on mouseover=\"jQuery(this).parent().addClass('ui-datepicker-week-over');\" onmouse out=\"jQuery(this).parent().removeClass('ui-datepicker-week-over');\"":""):" onm ouseover=\"jQuery(this).addClass('ui-datepicker-days-cell-over')"+(highlightWeek ?".parent().addClass('ui-datepicker-week-over')":"")+";"+(!showStatus||(otherMon th&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.id+"').html('"+(d ateStatus.apply((inst.input?inst.input[0]:null),[printDate,inst])||"&#xa0;")+"') ;")+"\" onmouseout=\"jQuery(this).removeClass('ui-datepicker-days-cell-over')"+( highlightWeek?".parent().removeClass('ui-datepicker-week-over')":"")+";"+(!showS tatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+inst.i d+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay(\'#'+inst.id+"' ,"+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDat e.getDate():"&#xa0;"):(unselectable?printDate.getDate():"<a>"+printDate.getDate( )+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._dayl ightSavingAdjust(printDate)}html+="</tr>"}drawMonth++;if(drawMonth>11){drawMonth =0;drawYear++}html+="</tbody></table></div>"}}html+=(showStatus?'<div style="cle ar: both;"></div><div id="ui-datepicker-status-'+inst.id+'" class="ui-datepicker -status">'+(this._get(inst,"initStatus")||"&#xa0;")+"</div>":"")+(!closeAtTop&&! inst.inline?controls:"")+'<div style="clear: both;"></div>'+($.browser.msie&&par seInt($.browser.version)<7&&!inst.inline?'<iframe src="javascript:false;" class= "ui-datepicker-cover"></iframe>':"");return html},_generateMonthYearHeader:funct ion(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,showStatus,mo nthNames){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:m inDate);var html='<div class="ui-datepicker-header">';if(secondary||!this._get(i nst,"changeMonth")){html+=monthNames[drawMonth]+"&#xa0;"}else{var inMinYear=(min Date&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYe ar()==drawYear);html+='<select class="ui-datepicker-new-month" onchange="jQuery. datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"jQuery.date picker._clickMonthYear('#"+inst.id+"');\""+(showStatus?this._addStatus(inst,this ._get(inst,"monthStatus")||"&#xa0;"):"")+">";for(var month=0;month<12;month++){i f((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth( ))){html+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':" ")+">"+monthNames[month]+"</option>"}}html+="</select>"}if(secondary||!this._get (inst,"changeYear")){html+=drawYear}else{var years=this._get(inst,"yearRange").s plit(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear= drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=endYe ar=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=parseInt(years[ 1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minD ate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear ,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-new-year" o nchange="jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" oncli ck=\"jQuery.datepicker._clickMonthYear('#"+inst.id+"');\""+(showStatus?this._add Status(inst,this._get(inst,"yearStatus")||"&#xa0;"):"")+">";for(;year<=endYear;y ear++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':" ")+">"+year+"</option>"}html+="</select>"}html+="</div>";return html},_addStatus :function(inst,text){return" onmouseover=\"jQuery('#ui-datepicker-status-"+inst. id+"').html('"+text+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+inst.id+ "').html('&#xa0;');\""},_adjustInstDate:function(inst,offset,period){var year=in st.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset: 0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period== "D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(ins

t,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?m axDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=d ate.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M" ||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onCha nge=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input? inst.input[0]:null),[new Date(inst.selectedYear,inst.selectedMonth,1),inst])}},_ getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths"); return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths ))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate (this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:( !date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(yea r,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:functi on(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function( inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var da te=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMont hs[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),dat e.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date) {var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst. selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst .rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this. _getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((! minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(i nst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(type of shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseI nt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:thi s._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort :this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_fo rmatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay ;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var dat e=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month, day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,in st.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._ getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,pr ops);for(var name in props){if(props[name]==null||props[name]==undefined){target [name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safa ri&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().matc h(/\Array\(\)/))))}$.fn.datepicker=function(options){var otherArgs=Array.prototy pe.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"|| options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datep icker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==" string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat( otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Dat epicker();$(document).ready(function(){$(document.body).append($.datepicker.dpDi v).mousedown($.datepicker._checkExternalClick)})})(jQuery);(function(f){f.effect s=f.effects||{};f.extend(f.effects,{save:function(c,b){for(var a=0;a<b.length;a+ +){if(b[a]!==null){f.data(c[0],"ec.storage."+b[a],c[0].style[b[a]])}}},restore:f unction(c,b){for(var a=0;a<b.length;a++){if(b[a]!==null){c.css(b[a],f.data(c[0], "ec.storage."+b[a]))}}},setMode:function(b,a){if(a=="toggle"){a=b.is(":hidden")? "show":"hide"}return a},getBaseline:function(a,d){var c,b;switch(a[0]){case"top" :c=0;break;case"middle":c=0.5;break;case"bottom":c=1;break;default:c=a[0]/d.heig ht}switch(a[1]){case"left":b=0;break;case"center":b=0.5;break;case"right":b=1;br eak;default:b=a[1]/d.width}return{x:b,y:c}},createWrapper:function(b){if(b.paren t().attr("id")=="fxWrapper"){return b}var c={width:b.outerWidth({margin:true}),h eight:b.outerHeight({margin:true}),"float":b.css("float")};b.wrap('<div id="fxWr apper" style="font-size:100%;background:transparent;border:none;margin:0;padding :0"></div>');var d=b.parent();if(b.css("position")=="static"){d.css({position:"r elative"});b.css({position:"relative"})}else{var j=b.css("top");if(isNaN(parseIn t(j))){j="auto"}var a=b.css("left");if(isNaN(parseInt(a))){a="auto"}d.css({posit ion:b.css("position"),top:j,left:a,zIndex:b.css("z-index")}).show();b.css({posit ion:"relative",top:0,left:0})}d.css(c);return d},removeWrapper:function(a){if(a.

parent().attr("id")=="fxWrapper"){return a.parent().replaceWith(a)}return a},set Transition:function(a,d,b,c){c=c||{};f.each(d,function(i,l){unit=a.cssUnit(l);if (unit[0]>0){c[l]=unit[0]*b+unit[1]}});return c},animateClass:function(b,a,d,l){v ar k=(typeof d=="function"?d:(l?l:null));var c=(typeof d=="object"?d:null);retur n this.each(function(){var t={};var i=f(this);var j=i.attr("style")||"";if(typeo f j=="object"){j=j.cssText}if(b.toggle){i.hasClass(b.toggle)?b.remove=b.toggle:b .add=b.toggle}var r=f.extend({},(document.defaultView?document.defaultView.getCo mputedStyle(this,null):this.currentStyle));if(b.add){i.addClass(b.add)}if(b.remo ve){i.removeClass(b.remove)}var n=f.extend({},(document.defaultView?document.def aultView.getComputedStyle(this,null):this.currentStyle));if(b.add){i.removeClass (b.add)}if(b.remove){i.addClass(b.remove)}for(var s in n){if(typeof n[s]!="funct ion"&&n[s]&&s.indexOf("Moz")==-1&&s.indexOf("length")==-1&&n[s]!=r[s]&&(s.match( /color/i)||(!s.match(/color/i)&&!isNaN(parseInt(n[s],10))))&&(r.position!="stati c"||(r.position=="static"&&!s.match(/left|top|bottom|right/)))){t[s]=n[s]}}i.ani mate(t,a,c,function(){if(typeof f(this).attr("style")=="object"){f(this).attr("s tyle")["cssText"]="";f(this).attr("style")["cssText"]=j}else{f(this).attr("style ",j)}if(b.add){f(this).addClass(b.add)}if(b.remove){f(this).removeClass(b.remove )}if(k){k.apply(this,arguments)}})})}});f.fn.extend({_show:f.fn.show,_hide:f.fn. hide,__toggle:f.fn.toggle,_addClass:f.fn.addClass,_removeClass:f.fn.removeClass, _toggleClass:f.fn.toggleClass,effect:function(b,d,a,c){return f.effects[b]?f.eff ects[b].call(this,{method:b,options:d||{},duration:a,callback:c}):null},show:fun ction(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast) /.test(arguments[0]))){return this._show.apply(this,arguments)}else{var a=argume nts[1]||{};a.mode="show";return this.effect.apply(this,[arguments[0],a,arguments [2]||a.duration,arguments[3]||a.callback])}},hide:function(){if(!arguments[0]||( arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){retu rn this._hide.apply(this,arguments)}else{var a=arguments[1]||{};a.mode="hide";re turn this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3 ]||a.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor= =Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Fu nction)){return this.__toggle.apply(this,arguments)}else{var a=arguments[1]||{}; a.mode="toggle";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.du ration,arguments[3]||a.callback])}},addClass:function(a,b,c,d){return b?f.effect s.animateClass.apply(this,[{add:a},b,c,d]):this._addClass(a)},removeClass:functi on(a,b,c,d){return b?f.effects.animateClass.apply(this,[{remove:a},b,c,d]):this. _removeClass(a)},toggleClass:function(a,b,c,d){return b?f.effects.animateClass.a pply(this,[{toggle:a},b,c,d]):this._toggleClass(a)},morph:function(c,a,b,d,j){re turn f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,j])},switchClass:fu nction(){return this.morph.apply(this,arguments)},cssUnit:function(a){var c=this .css(a),b=[];f.each(["em","px","%","pt"],function(i,d){if(c.indexOf(d)>0){b=[par seFloat(c),d]}});return b}});jQuery.each(["backgroundColor","borderBottomColor", "borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],fu nction(a,b){jQuery.fx.step[b]=function(c){if(c.state==0){c.start=e(c.elem,b);c.e nd=g(c.end)}c.elem.style[b]="rgb("+[Math.max(Math.min(parseInt((c.pos*(c.end[0]c.start[0]))+c.start[0]),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[1]-c.s tart[1]))+c.start[1]),255),0),Math.max(Math.min(parseInt((c.pos*(c.end[2]-c.star t[2]))+c.start[2]),255),0)].join(",")+")"}});function g(a){var b;if(a&&a.constru ctor==Array&&a.length==3){return a}if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3}) \s*,\s*([0-9]{1,3})\s*\)/.exec(a)){return[parseInt(b[1]),parseInt(b[2]),parseInt (b[3])]}if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\ s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a)){return[parseFloat(b[1])*2.55,parseFloat (b[2])*2.55,parseFloat(b[3])*2.55]}if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA -F0-9]{2})/.exec(a)){return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16 )]}if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a)){return[parseInt(b[1] +b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]}if(b=/rgba\(0, 0, 0, 0\ )/.exec(a)){return h.transparent}return h[jQuery.trim(a).toLowerCase()]}function e(b,a){var c;do{c=jQuery.curCSS(b,a);if(c!=""&&c!="transparent"||jQuery.nodeNam e(b,"body")){break}a="backgroundColor"}while(b=b.parentNode);return g(c)}var h={ 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,14 0],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],ligh tgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,25 5,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orang e:[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:[25 5,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing ,{def:"easeOutQuad",swing:function(b,a,c,d,j){return jQuery.easing[jQuery.easing .def](b,a,c,d,j)},easeInQuad:function(b,a,c,d,j){return d*(a/=j)*a+c},easeOutQua d:function(b,a,c,d,j){return -d*(a/=j)*(a-2)+c},easeInOutQuad:function(b,a,c,d,j ){if((a/=j/2)<1){return d/2*a*a+c}return -d/2*((--a)*(a-2)-1)+c},easeInCubic:fun ction(b,a,c,d,j){return d*(a/=j)*a*a+c},easeOutCubic:function(b,a,c,d,j){return d*((a=a/j-1)*a*a+1)+c},easeInOutCubic:function(b,a,c,d,j){if((a/=j/2)<1){return d/2*a*a*a+c}return d/2*((a-=2)*a*a+2)+c},easeInQuart:function(b,a,c,d,j){return d*(a/=j)*a*a*a+c},easeOutQuart:function(b,a,c,d,j){return -d*((a=a/j-1)*a*a*a-1) +c},easeInOutQuart:function(b,a,c,d,j){if((a/=j/2)<1){return d/2*a*a*a*a+c}retur n -d/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(b,a,c,d,j){return d*(a/=j)*a*a*a *a+c},easeOutQuint:function(b,a,c,d,j){return d*((a=a/j-1)*a*a*a*a+1)+c},easeInO utQuint:function(b,a,c,d,j){if((a/=j/2)<1){return d/2*a*a*a*a*a+c}return d/2*((a -=2)*a*a*a*a+2)+c},easeInSine:function(b,a,c,d,j){return -d*Math.cos(a/j*(Math.P I/2))+d+c},easeOutSine:function(b,a,c,d,j){return d*Math.sin(a/j*(Math.PI/2))+c} ,easeInOutSine:function(b,a,c,d,j){return -d/2*(Math.cos(Math.PI*a/j)-1)+c},ease InExpo:function(b,a,c,d,j){return(a==0)?c:d*Math.pow(2,10*(a/j-1))+c},easeOutExp o:function(b,a,c,d,j){return(a==j)?c+d:d*(-Math.pow(2,-10*a/j)+1)+c},easeInOutEx po:function(b,a,c,d,j){if(a==0){return c}if(a==j){return c+d}if((a/=j/2)<1){retu rn d/2*Math.pow(2,10*(a-1))+c}return d/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc: function(b,a,c,d,j){return -d*(Math.sqrt(1-(a/=j)*a)-1)+c},easeOutCirc:function( b,a,c,d,j){return d*Math.sqrt(1-(a=a/j-1)*a)+c},easeInOutCirc:function(b,a,c,d,j ){if((a/=j/2)<1){return -d/2*(Math.sqrt(1-a*a)-1)+c}return d/2*(Math.sqrt(1-(a-= 2)*a)+1)+c},easeInElastic:function(c,o,m,n,p){var d=1.70158;var a=0;var b=n;if(o ==0){return m}if((o/=p)==1){return m+n}if(!a){a=p*0.3}if(b<Math.abs(n)){b=n;var d=a/4}else{var d=a/(2*Math.PI)*Math.asin(n/b)}return -(b*Math.pow(2,10*(o-=1))*M ath.sin((o*p-d)*(2*Math.PI)/a))+m},easeOutElastic:function(c,o,m,n,p){var d=1.70 158;var a=0;var b=n;if(o==0){return m}if((o/=p)==1){return m+n}if(!a){a=p*0.3}if (b<Math.abs(n)){b=n;var d=a/4}else{var d=a/(2*Math.PI)*Math.asin(n/b)}return b*M ath.pow(2,-10*o)*Math.sin((o*p-d)*(2*Math.PI)/a)+n+m},easeInOutElastic:function( c,o,m,n,p){var d=1.70158;var a=0;var b=n;if(o==0){return m}if((o/=p/2)==2){retur n m+n}if(!a){a=p*(0.3*1.5)}if(b<Math.abs(n)){b=n;var d=a/4}else{var d=a/(2*Math. PI)*Math.asin(n/b)}if(o<1){return -0.5*(b*Math.pow(2,10*(o-=1))*Math.sin((o*p-d) *(2*Math.PI)/a))+m}return b*Math.pow(2,-10*(o-=1))*Math.sin((o*p-d)*(2*Math.PI)/ a)*0.5+n+m},easeInBack:function(c,b,d,k,l,a){if(a==undefined){a=1.70158}return k *(b/=l)*b*((a+1)*b-a)+d},easeOutBack:function(c,b,d,k,l,a){if(a==undefined){a=1. 70158}return k*((b=b/l-1)*b*((a+1)*b+a)+1)+d},easeInOutBack:function(c,b,d,k,l,a ){if(a==undefined){a=1.70158}if((b/=l/2)<1){return k/2*(b*b*(((a*=(1.525))+1)*ba))+d}return k/2*((b-=2)*b*(((a*=(1.525))+1)*b+a)+2)+d},easeInBounce:function(b, a,c,d,j){return d-jQuery.easing.easeOutBounce(b,j-a,0,d,j)+c},easeOutBounce:func tion(b,a,c,d,j){if((a/=j)<(1/2.75)){return d*(7.5625*a*a)+c}else{if(a<(2/2.75)){ return d*(7.5625*(a-=(1.5/2.75))*a+0.75)+c}else{if(a<(2.5/2.75)){return d*(7.562 5*(a-=(2.25/2.75))*a+0.9375)+c}else{return d*(7.5625*(a-=(2.625/2.75))*a+0.98437 5)+c}}}},easeInOutBounce:function(b,a,c,d,j){if(a<j/2){return jQuery.easing.ease InBounce(b,a*2,0,d,j)*0.5+c}return jQuery.easing.easeOutBounce(b,a*2-j,0,d,j)*0. 5+d*0.5+c}})})(jQuery);(function(b){b.effects.blind=function(a){return this.queu e(function(){var n=b(this),o=["position","top","left"];var r=b.effects.setMode(n ,a.options.mode||"hide");var k=a.options.direction||"vertical";b.effects.save(n, o);n.show();var p=b.effects.createWrapper(n).css({overflow:"hidden"});var m=(k== "vertical")?"height":"width";var q=(k=="vertical")?p.height():p.width();if(r=="s how"){p.css(m,0)}var l={};l[m]=r=="show"?q:0;p.animate(l,a.duration,a.options.ea

sing,function(){if(r=="hide"){n.hide()}b.effects.restore(n,o);b.effects.removeWr apper(n);if(a.callback){a.callback.apply(n[0],arguments)}n.dequeue()})})}})(jQue ry);(function(b){b.effects.bounce=function(a){return this.queue(function(){var w =b(this),q=["position","top","left"];var r=b.effects.setMode(w,a.options.mode||" effect");var B=a.options.direction||"up";var z=a.options.distance||20;var y=a.op tions.times||5;var u=a.duration||250;if(/show|hide/.test(r)){q.push("opacity")}b .effects.save(w,q);w.show();b.effects.createWrapper(w);var v=(B=="up"||B=="down" )?"top":"left";var x=(B=="up"||B=="left")?"pos":"neg";var z=a.options.distance|| (v=="top"?w.outerHeight({margin:true})/3:w.outerWidth({margin:true})/3);if(r=="s how"){w.css("opacity",0).css(v,x=="pos"?-z:z)}if(r=="hide"){z=z/(y*2)}if(r!="hid e"){y--}if(r=="show"){var t={opacity:1};t[v]=(x=="pos"?"+=":"-=")+z;w.animate(t, u/2,a.options.easing);z=z/2;y--}for(var s=0;s<y;s++){var A={},i={};A[v]=(x=="pos "?"-=":"+=")+z;i[v]=(x=="pos"?"+=":"-=")+z;w.animate(A,u/2,a.options.easing).ani mate(i,u/2,a.options.easing);z=(r=="hide")?z*2:z/2}if(r=="hide"){var t={opacity: 0};t[v]=(x=="pos"?"-=":"+=")+z;w.animate(t,u/2,a.options.easing,function(){w.hid e();b.effects.restore(w,q);b.effects.removeWrapper(w);if(a.callback){a.callback. apply(this,arguments)}})}else{var A={},i={};A[v]=(x=="pos"?"-=":"+=")+z;i[v]=(x= ="pos"?"+=":"-=")+z;w.animate(A,u/2,a.options.easing).animate(i,u/2,a.options.ea sing,function(){b.effects.restore(w,q);b.effects.removeWrapper(w);if(a.callback) {a.callback.apply(this,arguments)}})}w.queue("fx",function(){w.dequeue()});w.deq ueue()})}})(jQuery);(function(b){b.effects.clip=function(a){return this.queue(fu nction(){var s=b(this),o=["position","top","left","height","width"];var p=b.effe cts.setMode(s,a.options.mode||"hide");var n=a.options.direction||"vertical";b.ef fects.save(s,o);s.show();var m=b.effects.createWrapper(s).css({overflow:"hidden" });var t=s[0].tagName=="IMG"?m:s;var r={size:(n=="vertical")?"height":"width",po sition:(n=="vertical")?"top":"left"};var l=(n=="vertical")?t.height():t.width(); if(p=="show"){t.css(r.size,0);t.css(r.position,l/2)}var q={};q[r.size]=p=="show" ?l:0;q[r.position]=p=="show"?0:l/2;t.animate(q,{queue:false,duration:a.duration, easing:a.options.easing,complete:function(){if(p=="hide"){s.hide()}b.effects.res tore(s,o);b.effects.removeWrapper(s);if(a.callback){a.callback.apply(s[0],argume nts)}s.dequeue()}})})}})(jQuery);(function(b){b.effects.drop=function(a){return this.queue(function(){var m=b(this),n=["position","top","left","opacity"];var q= b.effects.setMode(m,a.options.mode||"hide");var r=a.options.direction||"left";b. effects.save(m,n);m.show();b.effects.createWrapper(m);var l=(r=="up"||r=="down") ?"top":"left";var o=(r=="up"||r=="left")?"pos":"neg";var p=a.options.distance||( l=="top"?m.outerHeight({margin:true})/2:m.outerWidth({margin:true})/2);if(q=="sh ow"){m.css("opacity",0).css(l,o=="pos"?-p:p)}var k={opacity:q=="show"?1:0};k[l]= (q=="show"?(o=="pos"?"+=":"-="):(o=="pos"?"-=":"+="))+p;m.animate(k,{queue:false ,duration:a.duration,easing:a.options.easing,complete:function(){if(q=="hide"){m .hide()}b.effects.restore(m,n);b.effects.removeWrapper(m);if(a.callback){a.callb ack.apply(this,arguments)}m.dequeue()}})})}})(jQuery);(function(b){b.effects.exp lode=function(a){return this.queue(function(){var q=a.options.pieces?Math.round( Math.sqrt(a.options.pieces)):3;var m=a.options.pieces?Math.round(Math.sqrt(a.opt ions.pieces)):3;a.options.mode=a.options.mode=="toggle"?(b(this).is(":visible")? "hide":"show"):a.options.mode;var r=b(this).show().css("visibility","hidden");va r p=r.offset();p.top-=parseInt(r.css("marginTop"))||0;p.left-=parseInt(r.css("ma rginLeft"))||0;var i=r.outerWidth(true);var o=r.outerHeight(true);for(var j=0;j< q;j++){for(var n=0;n<m;n++){r.clone().appendTo("body").wrap("<div></div>").css({ position:"absolute",visibility:"visible",left:-n*(i/m),top:-j*(o/q)}).parent().a ddClass("effects-explode").css({position:"absolute",overflow:"hidden",width:i/m, height:o/q,left:p.left+n*(i/m)+(a.options.mode=="show"?(n-Math.floor(m/2))*(i/m) :0),top:p.top+j*(o/q)+(a.options.mode=="show"?(j-Math.floor(q/2))*(o/q):0),opaci ty:a.options.mode=="show"?0:1}).animate({left:p.left+n*(i/m)+(a.options.mode=="s how"?0:(n-Math.floor(m/2))*(i/m)),top:p.top+j*(o/q)+(a.options.mode=="show"?0:(j -Math.floor(q/2))*(o/q)),opacity:a.options.mode=="show"?1:0},a.duration||500)}}s etTimeout(function(){a.options.mode=="show"?r.css({visibility:"visible"}):r.css( {visibility:"visible"}).hide();if(a.callback){a.callback.apply(r[0])}r.dequeue() ;b(".effects-explode").remove()},a.duration||500)})}})(jQuery);(function(b){b.ef fects.fold=function(a){return this.queue(function(){var t=b(this),o=["position", "top","left"];var r=b.effects.setMode(t,a.options.mode||"hide");var w=a.options.

size||15;var x=!(!a.options.horizFirst);b.effects.save(t,o);t.show();var u=b.eff ects.createWrapper(t).css({overflow:"hidden"});var q=((r=="show")!=x);var s=q?[" width","height"]:["height","width"];var v=q?[u.width(),u.height()]:[u.height(),u .width()];var p=/([0-9]+)%/.exec(w);if(p){w=parseInt(p[1])/100*v[r=="hide"?0:1]} if(r=="show"){u.css(x?{height:0,width:w}:{height:w,width:0})}var y={},z={};y[s[0 ]]=r=="show"?v[0]:w;z[s[1]]=r=="show"?v[1]:0;u.animate(y,a.duration/2,a.options. easing).animate(z,a.duration/2,a.options.easing,function(){if(r=="hide"){t.hide( )}b.effects.restore(t,o);b.effects.removeWrapper(t);if(a.callback){a.callback.ap ply(t[0],arguments)}t.dequeue()})})}})(jQuery);(function(b){b.effects.highlight= function(a){return this.queue(function(){var m=b(this),n=["backgroundImage","bac kgroundColor","opacity"];var j=b.effects.setMode(m,a.options.mode||"show");var i =a.options.color||"#ffff99";var k=m.css("backgroundColor");b.effects.save(m,n);m .show();m.css({backgroundImage:"none",backgroundColor:i});var l={backgroundColor :k};if(j=="hide"){l.opacity=0}m.animate(l,{queue:false,duration:a.duration,easin g:a.options.easing,complete:function(){if(j=="hide"){m.hide()}b.effects.restore( m,n);if(j=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if( a.callback){a.callback.apply(this,arguments)}m.dequeue()}})})}})(jQuery);(functi on(b){b.effects.pulsate=function(a){return this.queue(function(){var i=b(this);v ar g=b.effects.setMode(i,a.options.mode||"show");var h=a.options.times||5;if(g== "hide"){h--}if(i.is(":hidden")){i.css("opacity",0);i.show();i.animate({opacity:1 },a.duration/2,a.options.easing);h=h-2}for(var j=0;j<h;j++){i.animate({opacity:0 },a.duration/2,a.options.easing).animate({opacity:1},a.duration/2,a.options.easi ng)}if(g=="hide"){i.animate({opacity:0},a.duration/2,a.options.easing,function() {i.hide();if(a.callback){a.callback.apply(this,arguments)}})}else{i.animate({opa city:0},a.duration/2,a.options.easing).animate({opacity:1},a.duration/2,a.option s.easing,function(){if(a.callback){a.callback.apply(this,arguments)}})}i.queue(" fx",function(){i.dequeue()});i.dequeue()})}})(jQuery);(function(b){b.effects.puf f=function(a){return this.queue(function(){var l=b(this);var i=b.extend(true,{}, a.options);var j=b.effects.setMode(l,a.options.mode||"hide");var k=parseInt(a.op tions.percent)||150;i.fade=true;var m={height:l.height(),width:l.width()};var n= k/100;l.from=(j=="hide")?m:{height:m.height*n,width:m.width*n};i.from=l.from;i.p ercent=(j=="hide")?k:100;i.mode=j;l.effect("scale",i,a.duration,a.callback);l.de queue()})};b.effects.scale=function(a){return this.queue(function(){var k=b(this );var n=b.extend(true,{},a.options);var p=b.effects.setMode(k,a.options.mode||"e ffect");var r=parseInt(a.options.percent)||(parseInt(a.options.percent)==0?0:(p= ="hide"?0:100));var q=a.options.direction||"both";var o=a.options.origin;if(p!=" effect"){n.origin=o||["middle","center"];n.restore=true}var l={height:k.height() ,width:k.width()};k.from=a.options.from||(p=="show"?{height:0,width:0}:l);var m= {y:q!="horizontal"?(r/100):1,x:q!="vertical"?(r/100):1};k.to={height:l.height*m. y,width:l.width*m.x};if(a.options.fade){if(p=="show"){k.from.opacity=0;k.to.opac ity=1}if(p=="hide"){k.from.opacity=1;k.to.opacity=0}}n.from=k.from;n.to=k.to;n.m ode=p;k.effect("size",n,a.duration,a.callback);k.dequeue()})};b.effects.size=fun ction(a){return this.queue(function(){var C=b(this),q=["position","top","left"," width","height","overflow","opacity"];var r=["position","top","left","overflow", "opacity"];var u=["width","height","overflow"];var A=["fontSize"];var t=["border TopWidth","borderBottomWidth","paddingTop","paddingBottom"];var y=["borderLeftWi dth","borderRightWidth","paddingLeft","paddingRight"];var x=b.effects.setMode(C, a.options.mode||"effect");var v=a.options.restore||false;var z=a.options.scale|| "both";var D=a.options.origin;var B={height:C.height(),width:C.width()};C.from=a .options.from||B;C.to=a.options.to||B;if(D){var w=b.effects.getBaseline(D,B);C.f rom.top=(B.height-C.from.height)*w.y;C.from.left=(B.width-C.from.width)*w.x;C.to .top=(B.height-C.to.height)*w.y;C.to.left=(B.width-C.to.width)*w.x}var s={from:{ y:C.from.height/B.height,x:C.from.width/B.width},to:{y:C.to.height/B.height,x:C. to.width/B.width}};if(z=="box"||z=="both"){if(s.from.y!=s.to.y){q=q.concat(t);C. from=b.effects.setTransition(C,t,s.from.y,C.from);C.to=b.effects.setTransition(C ,t,s.to.y,C.to)}if(s.from.x!=s.to.x){q=q.concat(y);C.from=b.effects.setTransitio n(C,y,s.from.x,C.from);C.to=b.effects.setTransition(C,y,s.to.x,C.to)}}if(z=="con tent"||z=="both"){if(s.from.y!=s.to.y){q=q.concat(A);C.from=b.effects.setTransit ion(C,A,s.from.y,C.from);C.to=b.effects.setTransition(C,A,s.to.y,C.to)}}b.effect s.save(C,v?q:r);C.show();b.effects.createWrapper(C);C.css("overflow","hidden").c

ss(C.from);if(z=="content"||z=="both"){t=t.concat(["marginTop","marginBottom"]). concat(A);y=y.concat(["marginLeft","marginRight"]);u=q.concat(t).concat(y);C.fin d("*[width]").each(function(){child=b(this);if(v){b.effects.save(child,u)}var c= {height:child.height(),width:child.width()};child.from={height:c.height*s.from.y ,width:c.width*s.from.x};child.to={height:c.height*s.to.y,width:c.width*s.to.x}; if(s.from.y!=s.to.y){child.from=b.effects.setTransition(child,t,s.from.y,child.f rom);child.to=b.effects.setTransition(child,t,s.to.y,child.to)}if(s.from.x!=s.to .x){child.from=b.effects.setTransition(child,y,s.from.x,child.from);child.to=b.e ffects.setTransition(child,y,s.to.x,child.to)}child.css(child.from);child.animat e(child.to,a.duration,a.options.easing,function(){if(v){b.effects.restore(child, u)}})})}C.animate(C.to,{queue:false,duration:a.duration,easing:a.options.easing, complete:function(){if(x=="hide"){C.hide()}b.effects.restore(C,v?q:r);b.effects. removeWrapper(C);if(a.callback){a.callback.apply(this,arguments)}C.dequeue()}})} )}})(jQuery);(function(b){b.effects.shake=function(a){return this.queue(function (){var w=b(this),q=["position","top","left"];var r=b.effects.setMode(w,a.options .mode||"effect");var B=a.options.direction||"left";var z=a.options.distance||20; var y=a.options.times||3;var u=a.duration||a.options.duration||140;b.effects.sav e(w,q);w.show();b.effects.createWrapper(w);var v=(B=="up"||B=="down")?"top":"lef t";var x=(B=="up"||B=="left")?"pos":"neg";var t={},A={},i={};t[v]=(x=="pos"?"-=" :"+=")+z;A[v]=(x=="pos"?"+=":"-=")+z*2;i[v]=(x=="pos"?"-=":"+=")+z*2;w.animate(t ,u,a.options.easing);for(var s=1;s<y;s++){w.animate(A,u,a.options.easing).animat e(i,u,a.options.easing)}w.animate(A,u,a.options.easing).animate(t,u/2,a.options. easing,function(){b.effects.restore(w,q);b.effects.removeWrapper(w);if(a.callbac k){a.callback.apply(this,arguments)}});w.queue("fx",function(){w.dequeue()});w.d equeue()})}})(jQuery);(function(b){b.effects.slide=function(a){return this.queue (function(){var m=b(this),n=["position","top","left"];var q=b.effects.setMode(m, a.options.mode||"show");var r=a.options.direction||"left";b.effects.save(m,n);m. show();b.effects.createWrapper(m).css({overflow:"hidden"});var l=(r=="up"||r=="d own")?"top":"left";var o=(r=="up"||r=="left")?"pos":"neg";var p=a.options.distan ce||(l=="top"?m.outerHeight({margin:true}):m.outerWidth({margin:true}));if(q=="s how"){m.css(l,o=="pos"?-p:p)}var k={};k[l]=(q=="show"?(o=="pos"?"+=":"-="):(o==" pos"?"-=":"+="))+p;m.animate(k,{queue:false,duration:a.duration,easing:a.options .easing,complete:function(){if(q=="hide"){m.hide()}b.effects.restore(m,n);b.effe cts.removeWrapper(m);if(a.callback){a.callback.apply(this,arguments)}m.dequeue() }})})}})(jQuery);(function(b){b.effects.transfer=function(a){return this.queue(f unction(){var j=b(this);var h=b.effects.setMode(j,a.options.mode||"effect");var i=b(a.options.to);var l=j.offset();var k=b('<div class="ui-effects-transfer"></d iv>').appendTo(document.body);if(a.options.className){k.addClass(a.options.class Name)}k.addClass(a.options.className);k.css({top:l.top,left:l.left,height:j.oute rHeight()-parseInt(k.css("borderTopWidth"))-parseInt(k.css("borderBottomWidth")) ,width:j.outerWidth()-parseInt(k.css("borderLeftWidth"))-parseInt(k.css("borderR ightWidth")),position:"absolute"});l=i.offset();animation={top:l.top,left:l.left ,height:i.outerHeight()-parseInt(k.css("borderTopWidth"))-parseInt(k.css("border BottomWidth")),width:i.outerWidth()-parseInt(k.css("borderLeftWidth"))-parseInt( k.css("borderRightWidth"))};k.animate(animation,a.duration,a.options.easing,func tion(){k.remove();if(a.callback){a.callback.apply(j[0],arguments)}j.dequeue()})} )}})(jQuery);

You might also like