/*
 * jQuery JavaScript Library v1.4.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Nov 11 19:04:53 2010 -0500
 */
(function(aB,aF){function m(B,c,P){if(P===aF&&B.nodeType===1){P=B.getAttribute("data-"+c);if(typeof P==="string"){try{P=P==="true"?true:P==="false"?false:P==="null"?null:!af.isNaN(P)?parseFloat(P):ag.test(P)?af.parseJSON(P):P}catch(E){}af.data(B,c,P)}else{P=aF}}return P}function aq(){return false}function O(){return true}function a3(B,c,E){E[0].type=B;return af.event.handle.apply(c,E)}function H(ab){var Y,X,W,V,U,S,T,P,aa,c,E,B=[];V=[];U=af.data(this,this.nodeType?"events":"__events__");if(typeof U==="function"){U=U.events}if(!(ab.liveFired===this||!U||!U.live||ab.button&&ab.type==="click")){if(ab.namespace){E=RegExp("(^|\\.)"+ab.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}ab.liveFired=this;var Z=U.live.slice(0);for(T=0;T<Z.length;T++){U=Z[T];U.origType.replace(an,"")===ab.type?V.push(U.selector):Z.splice(T--,1)}V=af(ab.target).closest(V,ab.currentTarget);P=0;for(aa=V.length;P<aa;P++){c=V[P];for(T=0;T<Z.length;T++){U=Z[T];if(c.selector===U.selector&&(!E||E.test(U.namespace))){S=c.elem;W=null;if(U.preType==="mouseenter"||U.preType==="mouseleave"){ab.type=U.preType;W=af(ab.relatedTarget).closest(U.selector)[0]}if(!W||W!==S){B.push({elem:S,handleObj:U,level:c.level})}}}}P=0;for(aa=B.length;P<aa;P++){V=B[P];if(X&&V.level>X){break}ab.currentTarget=V.elem;ab.data=V.handleObj.data;ab.handleObj=V.handleObj;E=V.handleObj.origHandler.apply(V.elem,arguments);if(E===false||ab.isPropagationStopped()){X=V.level;if(E===false){Y=false}if(ab.isImmediatePropagationStopped()){break}}}return Y}}function am(B,c){return(B&&B!=="*"?B+".":"")+c.replace(s,"`").replace(a7,"&")}function aQ(B,c,P){if(af.isFunction(c)){return af.grep(B,function(T,S){return !!c.call(T,S,T)===P})}else{if(c.nodeType){return af.grep(B,function(S){return S===c===P})}else{if(typeof c==="string"){var E=af.grep(B,function(S){return S.nodeType===1});if(aV.test(c)){return af.filter(c,E,!P)}else{c=af.filter(c,E)}}}}return af.grep(B,function(S){return af.inArray(S,c)>=0===P})}function aC(B,c){var E=0;c.each(function(){if(this.nodeName===(B[E]&&B[E].nodeName)){var U=af.data(B[E++]),T=af.data(this,U);if(U=U&&U.events){delete T.handle;T.events={};for(var S in U){for(var P in U[S]){af.event.add(this,S,U[S][P],U[S][P].data)}}}}})}function aI(B,c){c.src?af.ajax({url:c.src,async:false,dataType:"script"}):af.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function ae(B,c,P){var E=c==="width"?B.offsetWidth:B.offsetHeight;if(P==="border"){return E}af.each(c==="width"?aj:K,function(){P||(E-=parseFloat(af.css(B,"padding"+this))||0);if(P==="margin"){E+=parseFloat(af.css(B,"margin"+this))||0}else{E-=parseFloat(af.css(B,"border"+this+"Width"))||0}});return E}function z(B,c,P,E){if(af.isArray(c)&&c.length){af.each(c,function(T,S){P||w.test(B)?E(B,S):z(B+"["+(typeof S==="object"||af.isArray(S)?T:"")+"]",S,P,E)})}else{if(!P&&c!=null&&typeof c==="object"){af.isEmptyObject(c)?E(B,""):af.each(c,function(T,S){z(B+"["+T+"]",S,P,E)})}else{E(B,c)}}}function at(B,c){var E={};af.each(G.concat.apply([],G.slice(0,c)),function(){E[this]=B});return E}function r(B){if(!k[B]){var c=af("<"+B+">").appendTo("body"),E=c.css("display");c.remove();if(E==="none"||E===""){E="block"}k[B]=E}return k[B]}function a0(c){return af.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var M=aB.document,af=function(){function bo(){if(!bn.isReady){try{M.documentElement.doScroll("left")}catch(bp){setTimeout(bo,1);return}bn.ready()}}var bn=function(bp,bq){return new bn.fn.init(bp,bq)},bm=aB.jQuery,bl=aB.$,bk,bi=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bf=/\S/,bg=/^\s+/,bc=/\s+$/,W=/\W/,a8=/\d/,bb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ab=/^[\],:{}\s]*$/,U=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,X=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,V=/(?:^|:|,)(?:\s*\[)+/g,S=/(webkit)[ \/]([\w.]+)/,bj=/(opera)(?:.*version)?[ \/]([\w.]+)/,bh=/(msie) ([\w.]+)/,bd=/(mozilla)(?:.*? rv:([\w.]+))?/,be=navigator.userAgent,ba=false,a9=[],Z,T=Object.prototype.toString,Y=Object.prototype.hasOwnProperty,P=Array.prototype.push,E=Array.prototype.slice,B=String.prototype.trim,aa=Array.prototype.indexOf,c={};bn.fn=bn.prototype={init:function(bq,bs){var bp,bt,br;if(!bq){return this}if(bq.nodeType){this.context=this[0]=bq;this.length=1;return this}if(bq==="body"&&!bs&&M.body){this.context=M;this[0]=M.body;this.selector="body";this.length=1;return this}if(typeof bq==="string"){if((bp=bi.exec(bq))&&(bp[1]||!bs)){if(bp[1]){br=bs?bs.ownerDocument||bs:M;if(bt=bb.exec(bq)){if(bn.isPlainObject(bs)){bq=[M.createElement(bt[1])];bn.fn.attr.call(bq,bs,true)}else{bq=[br.createElement(bt[1])]}}else{bt=bn.buildFragment([bp[1]],[br]);bq=(bt.cacheable?bt.fragment.cloneNode(true):bt.fragment).childNodes}return bn.merge(this,bq)}else{if((bt=M.getElementById(bp[2]))&&bt.parentNode){if(bt.id!==bp[2]){return bk.find(bq)}this.length=1;this[0]=bt}this.context=M;this.selector=bq;return this}}else{if(!bs&&!W.test(bq)){this.selector=bq;this.context=M;bq=M.getElementsByTagName(bq);return bn.merge(this,bq)}else{return !bs||bs.jquery?(bs||bk).find(bq):bn(bs).find(bq)}}}else{if(bn.isFunction(bq)){return bk.ready(bq)}}if(bq.selector!==aF){this.selector=bq.selector;this.context=bq.context}return bn.makeArray(bq,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(bp){return bp==null?this.toArray():bp<0?this.slice(bp)[0]:this[bp]},pushStack:function(bq,br,bp){var bs=bn();bn.isArray(bq)?P.apply(bs,bq):bn.merge(bs,bq);bs.prevObject=this;bs.context=this.context;if(br==="find"){bs.selector=this.selector+(this.selector?" ":"")+bp}else{if(br){bs.selector=this.selector+"."+br+"("+bp+")"}}return bs},each:function(bp,bq){return bn.each(this,bp,bq)},ready:function(bp){bn.bindReady();if(bn.isReady){bp.call(M,bn)}else{a9&&a9.push(bp)}return this},eq:function(bp){return bp===-1?this.slice(bp):this.slice(bp,+bp+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(bp){return this.pushStack(bn.map(this,function(br,bq){return bp.call(br,bq,br)}))},end:function(){return this.prevObject||bn(null)},push:P,sort:[].sort,splice:[].splice};bn.fn.init.prototype=bn.fn;bn.extend=bn.fn.extend=function(){var bp,bx,bu,br,bt,bv=arguments[0]||{},bs=1,bq=arguments.length,bw=false;if(typeof bv==="boolean"){bw=bv;bv=arguments[1]||{};bs=2}if(typeof bv!=="object"&&!bn.isFunction(bv)){bv={}}if(bq===bs){bv=this;--bs}for(;bs<bq;bs++){if((bp=arguments[bs])!=null){for(bx in bp){bu=bv[bx];br=bp[bx];if(bv!==br){if(bw&&br&&(bn.isPlainObject(br)||(bt=bn.isArray(br)))){if(bt){bt=false;bu=bu&&bn.isArray(bu)?bu:[]}else{bu=bu&&bn.isPlainObject(bu)?bu:{}}bv[bx]=bn.extend(bw,bu,br)}else{if(br!==aF){bv[bx]=br}}}}}}return bv};bn.extend({noConflict:function(bp){aB.$=bl;if(bp){aB.jQuery=bm}return bn},isReady:false,readyWait:1,ready:function(bq){bq===true&&bn.readyWait--;if(!bn.readyWait||bq!==true&&!bn.isReady){if(!M.body){return setTimeout(bn.ready,1)}bn.isReady=true;if(!(bq!==true&&--bn.readyWait>0)){if(a9){var br=0,bp=a9;for(a9=null;bq=bp[br++];){bq.call(M,bn)}bn.fn.trigger&&bn(M).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!ba){ba=true;if(M.readyState==="complete"){return setTimeout(bn.ready,1)}if(M.addEventListener){M.addEventListener("DOMContentLoaded",Z,false);aB.addEventListener("load",bn.ready,false)}else{if(M.attachEvent){M.attachEvent("onreadystatechange",Z);aB.attachEvent("onload",bn.ready);var bp=false;try{bp=aB.frameElement==null}catch(bq){}M.documentElement.doScroll&&bp&&bo()}}}},isFunction:function(bp){return bn.type(bp)==="function"},isArray:Array.isArray||function(bp){return bn.type(bp)==="array"},isWindow:function(bp){return bp&&typeof bp==="object"&&"setInterval" in bp},isNaN:function(bp){return bp==null||!a8.test(bp)||isNaN(bp)},type:function(bp){return bp==null?String(bp):c[T.call(bp)]||"object"},isPlainObject:function(bp){if(!bp||bn.type(bp)!=="object"||bp.nodeType||bn.isWindow(bp)){return false}if(bp.constructor&&!Y.call(bp,"constructor")&&!Y.call(bp.constructor.prototype,"isPrototypeOf")){return false}for(var bq in bp){}return bq===aF||Y.call(bp,bq)},isEmptyObject:function(bp){for(var bq in bp){return false}return true},error:function(bp){throw bp},parseJSON:function(bp){if(typeof bp!=="string"||!bp){return null}bp=bn.trim(bp);if(ab.test(bp.replace(U,"@").replace(X,"]").replace(V,""))){return aB.JSON&&aB.JSON.parse?aB.JSON.parse(bp):(new Function("return "+bp))()}else{bn.error("Invalid JSON: "+bp)}},noop:function(){},globalEval:function(bq){if(bq&&bf.test(bq)){var br=M.getElementsByTagName("head")[0]||M.documentElement,bp=M.createElement("script");bp.type="text/javascript";if(bn.support.scriptEval){bp.appendChild(M.createTextNode(bq))}else{bp.text=bq}br.insertBefore(bp,br.firstChild);br.removeChild(bp)}},nodeName:function(bp,bq){return bp.nodeName&&bp.nodeName.toUpperCase()===bq.toUpperCase()},each:function(br,bu,bq){var bv,bs=0,bt=br.length,bp=bt===aF||bn.isFunction(br);if(bq){if(bp){for(bv in br){if(bu.apply(br[bv],bq)===false){break}}}else{for(;bs<bt;){if(bu.apply(br[bs++],bq)===false){break}}}}else{if(bp){for(bv in br){if(bu.call(br[bv],bv,br[bv])===false){break}}}else{for(bq=br[0];bs<bt&&bu.call(bq,bs,bq)!==false;bq=br[++bs]){}}}return br},trim:B?function(bp){return bp==null?"":B.call(bp)}:function(bp){return bp==null?"":bp.toString().replace(bg,"").replace(bc,"")},makeArray:function(bq,br){var bp=br||[];if(bq!=null){var bs=bn.type(bq);bq.length==null||bs==="string"||bs==="function"||bs==="regexp"||bn.isWindow(bq)?P.call(bp,bq):bn.merge(bp,bq)}return bp},inArray:function(bq,br){if(br.indexOf){return br.indexOf(bq)}for(var bp=0,bs=br.length;bp<bs;bp++){if(br[bp]===bq){return bp}}return -1},merge:function(bq,bs){var bp=bq.length,bt=0;if(typeof bs.length==="number"){for(var br=bs.length;bt<br;bt++){bq[bp++]=bs[bt]}}else{for(;bs[bt]!==aF;){bq[bp++]=bs[bt++]}}bq.length=bp;return bq},grep:function(br,bu,bq){var bv=[],bs;bq=!!bq;for(var bt=0,bp=br.length;bt<bp;bt++){bs=!!bu(br[bt],bt);bq!==bs&&bv.push(br[bt])}return bv},map:function(br,bu,bq){for(var bv=[],bs,bt=0,bp=br.length;bt<bp;bt++){bs=bu(br[bt],bt,bq);if(bs!=null){bv[bv.length]=bs}}return bv.concat.apply([],bv)},guid:1,proxy:function(bq,br,bp){if(arguments.length===2){if(typeof br==="string"){bp=bq;bq=bp[br];br=aF}else{if(br&&!bn.isFunction(br)){bp=br;br=aF}}}if(!br&&bq){br=function(){return bq.apply(bp||this,arguments)}}if(bq){br.guid=bq.guid=bq.guid||br.guid||bn.guid++}return br},access:function(br,bu,bq,bw,bs,bt){var bp=br.length;if(typeof bu==="object"){for(var bv in bu){bn.access(br,bv,bu[bv],bw,bs,bq)}return br}if(bq!==aF){bw=!bt&&bw&&bn.isFunction(bq);for(bv=0;bv<bp;bv++){bs(br[bv],bu,bw?bq.call(br[bv],bv,bs(br[bv],bu)):bq,bt)}return br}return bp?bs(br[0],bu):aF},now:function(){return(new Date).getTime()},uaMatch:function(bp){bp=bp.toLowerCase();bp=S.exec(bp)||bj.exec(bp)||bh.exec(bp)||bp.indexOf("compatible")<0&&bd.exec(bp)||[];return{browser:bp[1]||"",version:bp[2]||"0"}},browser:{}});bn.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bp,bq){c["[object "+bq+"]"]=bq.toLowerCase()});be=bn.uaMatch(be);if(be.browser){bn.browser[be.browser]=true;bn.browser.version=be.version}if(bn.browser.webkit){bn.browser.safari=true}if(aa){bn.inArray=function(bp,bq){return aa.call(bq,bp)}}if(!/\s/.test("\u00a0")){bg=/^[\s\xA0]+/;bc=/[\s\xA0]+$/}bk=bn(M);if(M.addEventListener){Z=function(){M.removeEventListener("DOMContentLoaded",Z,false);bn.ready()}}else{if(M.attachEvent){Z=function(){if(M.readyState==="complete"){M.detachEvent("onreadystatechange",Z);bn.ready()}}}}return aB.jQuery=aB.$=bn}();(function(){af.support={};var Y=M.documentElement,W=M.createElement("script"),V=M.createElement("div"),U="script"+af.now();V.style.display="none";V.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var T=V.getElementsByTagName("*"),S=V.getElementsByTagName("a")[0],E=M.createElement("select"),P=E.appendChild(M.createElement("option"));if(!(!T||!T.length||!S)){af.support={leadingWhitespace:V.firstChild.nodeType===3,tbody:!V.getElementsByTagName("tbody").length,htmlSerialize:!!V.getElementsByTagName("link").length,style:/red/.test(S.getAttribute("style")),hrefNormalized:S.getAttribute("href")==="/a",opacity:/^0.55$/.test(S.style.opacity),cssFloat:!!S.style.cssFloat,checkOn:V.getElementsByTagName("input")[0].value==="on",optSelected:P.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};E.disabled=true;af.support.optDisabled=!P.disabled;W.type="text/javascript";try{W.appendChild(M.createTextNode("window."+U+"=1;"))}catch(B){}Y.insertBefore(W,Y.firstChild);if(aB[U]){af.support.scriptEval=true;delete aB[U]}try{delete W.test}catch(X){af.support.deleteExpando=false}Y.removeChild(W);if(V.attachEvent&&V.fireEvent){V.attachEvent("onclick",function c(){af.support.noCloneEvent=false;V.detachEvent("onclick",c)});V.cloneNode(true).fireEvent("onclick")}V=M.createElement("div");V.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";Y=M.createDocumentFragment();Y.appendChild(V.firstChild);af.support.checkClone=Y.cloneNode(true).cloneNode(true).lastChild.checked;af(function(){var aa=M.createElement("div");aa.style.width=aa.style.paddingLeft="1px";M.body.appendChild(aa);af.boxModel=af.support.boxModel=aa.offsetWidth===2;if("zoom" in aa.style){aa.style.display="inline";aa.style.zoom=1;af.support.inlineBlockNeedsLayout=aa.offsetWidth===2;aa.style.display="";aa.innerHTML="<div style='width:4px;'></div>";af.support.shrinkWrapBlocks=aa.offsetWidth!==2}aa.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var Z=aa.getElementsByTagName("td");af.support.reliableHiddenOffsets=Z[0].offsetHeight===0;Z[0].style.display="";Z[1].style.display="none";af.support.reliableHiddenOffsets=af.support.reliableHiddenOffsets&&Z[0].offsetHeight===0;aa.innerHTML="";M.body.removeChild(aa).style.display="none"});Y=function(aa){var Z=M.createElement("div");aa="on"+aa;var ab=aa in Z;if(!ab){Z.setAttribute(aa,"return;");ab=typeof Z[aa]==="function"}return ab};af.support.submitBubbles=Y("submit");af.support.changeBubbles=Y("change");Y=W=V=T=S=null}})();var a6={},ag=/^(?:\{.*\}|\[.*\])$/;af.extend({cache:{},uuid:0,expando:"jQuery"+af.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(B,c,T){if(af.acceptData(B)){B=B==aB?a6:B;var S=B.nodeType,P=S?B[af.expando]:null,E=af.cache;if(!(S&&!P&&typeof c==="string"&&T===aF)){if(S){P||(B[af.expando]=P=++af.uuid)}else{E=B}if(typeof c==="object"){if(S){E[P]=af.extend(E[P],c)}else{af.extend(E,c)}}else{if(S&&!E[P]){E[P]={}}}B=S?E[P]:E;if(T!==aF){B[c]=T}return typeof c==="string"?B[c]:B}}},removeData:function(E,c){if(af.acceptData(E)){E=E==aB?a6:E;var U=E.nodeType,T=U?E[af.expando]:E,S=af.cache,P=U?S[T]:T;if(c){if(P){delete P[c];U&&af.isEmptyObject(P)&&af.removeData(E)}}else{if(U&&af.support.deleteExpando){delete E[af.expando]}else{if(E.removeAttribute){E.removeAttribute(af.expando)}else{if(U){delete S[T]}else{for(var B in E){delete E[B]}}}}}}},acceptData:function(B){if(B.nodeName){var c=af.noData[B.nodeName.toLowerCase()];if(c){return !(c===true||B.getAttribute("classid")!==c)}}return true}});af.fn.extend({data:function(E,c){var V=null;if(typeof E==="undefined"){if(this.length){var U=this[0].attributes,T;V=af.data(this[0]);for(var S=0,B=U.length;S<B;S++){T=U[S].name;if(T.indexOf("data-")===0){T=T.substr(5);m(this[0],T,V[T])}}}return V}else{if(typeof E==="object"){return this.each(function(){af.data(this,E)})}}var P=E.split(".");P[1]=P[1]?"."+P[1]:"";if(c===aF){V=this.triggerHandler("getData"+P[1]+"!",[P[0]]);if(V===aF&&this.length){V=af.data(this[0],E);V=m(this[0],E,V)}return V===aF&&P[1]?this.data(P[0]):V}else{return this.each(function(){var X=af(this),W=[P[0],c];X.triggerHandler("setData"+P[1]+"!",W);af.data(this,E,c);X.triggerHandler("changeData"+P[1]+"!",W)})}},removeData:function(c){return this.each(function(){af.removeData(this,c)})}});af.extend({queue:function(B,c,P){if(B){c=(c||"fx")+"queue";var E=af.data(B,c);if(!P){return E||[]}if(!E||af.isArray(P)){E=af.data(B,c,af.makeArray(P))}else{E.push(P)}return E}},dequeue:function(B,c){c=c||"fx";var P=af.queue(B,c),E=P.shift();if(E==="inprogress"){E=P.shift()}if(E){c==="fx"&&P.unshift("inprogress");E.call(B,function(){af.dequeue(B,c)})}}});af.fn.extend({queue:function(B,c){if(typeof B!=="string"){c=B;B="fx"}if(c===aF){return af.queue(this[0],B)}return this.each(function(){var E=af.queue(this,B,c);B==="fx"&&E[0]!=="inprogress"&&af.dequeue(this,B)})},dequeue:function(c){return this.each(function(){af.dequeue(this,c)})},delay:function(B,c){B=af.fx?af.fx.speeds[B]||B:B;c=c||"fx";return this.queue(c,function(){var E=this;setTimeout(function(){af.dequeue(E,c)},B)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aU=/[\n\t]/g,ay=/\s+/,f=/\r/g,aX=/^(?:href|src|style)$/,aK=/^(?:button|input)$/i,al=/^(?:button|input|object|select|textarea)$/i,L=/^a(?:rea)?$/i,aH=/^(?:radio|checkbox)$/i;af.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};af.fn.extend({attr:function(B,c){return af.access(this,B,c,true,af.attr)},removeAttr:function(c){return this.each(function(){af.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(W){if(af.isFunction(W)){return this.each(function(X){var Y=af(this);Y.addClass(W.call(this,X,Y.attr("class")))})}if(W&&typeof W==="string"){for(var V=(W||"").split(ay),U=0,T=this.length;U<T;U++){var S=this[U];if(S.nodeType===1){if(S.className){for(var P=" "+S.className+" ",B=S.className,E=0,c=V.length;E<c;E++){if(P.indexOf(" "+V[E]+" ")<0){B+=" "+V[E]}}S.className=af.trim(B)}else{S.className=W}}}}return this},removeClass:function(E){if(af.isFunction(E)){return this.each(function(X){var W=af(this);W.removeClass(E.call(this,X,W.attr("class")))})}if(E&&typeof E==="string"||E===aF){for(var c=(E||"").split(ay),V=0,U=this.length;V<U;V++){var T=this[V];if(T.nodeType===1&&T.className){if(E){for(var S=(" "+T.className+" ").replace(aU," "),B=0,P=c.length;B<P;B++){S=S.replace(" "+c[B]+" "," ")}T.className=af.trim(S)}else{T.className=""}}}}return this},toggleClass:function(B,c){var P=typeof B,E=typeof c==="boolean";if(af.isFunction(B)){return this.each(function(T){var S=af(this);S.toggleClass(B.call(this,T,S.attr("class"),c),c)})}return this.each(function(){if(P==="string"){for(var V,U=0,S=af(this),T=c,W=B.split(ay);V=W[U++];){T=E?T:!S.hasClass(V);S[T?"addClass":"removeClass"](V)}}else{if(P==="undefined"||P==="boolean"){this.className&&af.data(this,"__className__",this.className);this.className=this.className||B===false?"":af.data(this,"__className__")||""}}})},hasClass:function(B){B=" "+B+" ";for(var c=0,E=this.length;c<E;c++){if((" "+this[c].className+" ").replace(aU," ").indexOf(B)>-1){return true}}return false},val:function(E){if(!arguments.length){var c=this[0];if(c){if(af.nodeName(c,"option")){var V=c.attributes.value;return !V||V.specified?c.value:c.text}if(af.nodeName(c,"select")){var U=c.selectedIndex;V=[];var T=c.options;c=c.type==="select-one";if(U<0){return null}var S=c?U:0;for(U=c?U+1:T.length;S<U;S++){var B=T[S];if(B.selected&&(af.support.optDisabled?!B.disabled:B.getAttribute("disabled")===null)&&(!B.parentNode.disabled||!af.nodeName(B.parentNode,"optgroup"))){E=af(B).val();if(c){return E}V.push(E)}}return V}if(aH.test(c.type)&&!af.support.checkOn){return c.getAttribute("value")===null?"on":c.value}return(c.value||"").replace(f,"")}return aF}var P=af.isFunction(E);return this.each(function(Z){var X=af(this),Y=E;if(this.nodeType===1){if(P){Y=E.call(this,Z,X.val())}if(Y==null){Y=""}else{if(typeof Y==="number"){Y+=""}else{if(af.isArray(Y)){Y=af.map(Y,function(aa){return aa==null?"":aa+""})}}}if(af.isArray(Y)&&aH.test(this.type)){this.checked=af.inArray(X.val(),Y)>=0}else{if(af.nodeName(this,"select")){var W=af.makeArray(Y);af("option",this).each(function(){this.selected=af.inArray(af(this).val(),W)>=0});if(!W.length){this.selectedIndex=-1}}else{this.value=Y}}}})}});af.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(B,c,T,S){if(!B||B.nodeType===3||B.nodeType===8){return aF}if(S&&c in af.attrFn){return af(B)[c](T)}S=B.nodeType!==1||!af.isXMLDoc(B);var P=T!==aF;c=S&&af.props[c]||c;var E=aX.test(c);if((c in B||B[c]!==aF)&&S&&!E){if(P){c==="type"&&aK.test(B.nodeName)&&B.parentNode&&af.error("type property can't be changed");if(T===null){B.nodeType===1&&B.removeAttribute(c)}else{B[c]=T}}if(af.nodeName(B,"form")&&B.getAttributeNode(c)){return B.getAttributeNode(c).nodeValue}if(c==="tabIndex"){return(c=B.getAttributeNode("tabIndex"))&&c.specified?c.value:al.test(B.nodeName)||L.test(B.nodeName)&&B.href?0:aF}return B[c]}if(!af.support.style&&S&&c==="style"){if(P){B.style.cssText=""+T}return B.style.cssText}P&&B.setAttribute(c,""+T);if(!B.attributes[c]&&B.hasAttribute&&!B.hasAttribute(c)){return aF}B=!af.support.hrefNormalized&&S&&E?B.getAttribute(c,2):B.getAttribute(c);return B===null?aF:B}});var an=/\.(.*)$/,R=/^(?:textarea|input|select)$/i,s=/\./g,a7=/ /g,x=/[^\w\s.|`]/g,g=function(c){return c.replace(x,"\\$&")},ai={focusin:0,focusout:0};af.event={add:function(aa,Y,X,W){if(!(aa.nodeType===3||aa.nodeType===8)){if(af.isWindow(aa)&&aa!==aB&&!aa.frameElement){aa=aB}if(X===false){X=aq}else{if(!X){return}}var V,U;if(X.handler){V=X;X=V.handler}if(!X.guid){X.guid=af.guid++}if(U=af.data(aa)){var S=aa.nodeType?"events":"__events__",T=U[S],P=U.handle;if(typeof T==="function"){P=T.handle;T=T.events}else{if(!T){aa.nodeType||(U[S]=U=function(){});U.events=T={}}}if(!P){U.handle=P=function(){return typeof af!=="undefined"&&!af.event.triggered?af.event.handle.apply(P.elem,arguments):aF}}P.elem=aa;Y=Y.split(" ");for(var Z=0,c;S=Y[Z++];){U=V?af.extend({},V):{handler:X,data:W};if(S.indexOf(".")>-1){c=S.split(".");S=c.shift();U.namespace=c.slice(0).sort().join(".")}else{c=[];U.namespace=""}U.type=S;if(!U.guid){U.guid=X.guid}var E=T[S],B=af.event.special[S]||{};if(!E){E=T[S]=[];if(!B.setup||B.setup.call(aa,W,c,P)===false){if(aa.addEventListener){aa.addEventListener(S,P,false)}else{aa.attachEvent&&aa.attachEvent("on"+S,P)}}}if(B.add){B.add.call(aa,U);if(!U.handler.guid){U.handler.guid=X.guid}}E.push(U);af.event.global[S]=true}aa=null}}},global:{},remove:function(ab,Y,X,W){if(!(ab.nodeType===3||ab.nodeType===8)){if(X===false){X=aq}var V,U,S=0,T,P,aa,c,E,B,Z=ab.nodeType?"events":"__events__",a9=af.data(ab),a8=a9&&a9[Z];if(a9&&a8){if(typeof a8==="function"){a9=a8;a8=a8.events}if(Y&&Y.type){X=Y.handler;Y=Y.type}if(!Y||typeof Y==="string"&&Y.charAt(0)==="."){Y=Y||"";for(V in a8){af.event.remove(ab,V+Y)}}else{for(Y=Y.split(" ");V=Y[S++];){c=V;T=V.indexOf(".")<0;P=[];if(!T){P=V.split(".");V=P.shift();aa=RegExp("(^|\\.)"+af.map(P.slice(0).sort(),g).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(E=a8[V]){if(X){c=af.event.special[V]||{};for(U=W||0;U<E.length;U++){B=E[U];if(X.guid===B.guid){if(T||aa.test(B.namespace)){W==null&&E.splice(U--,1);c.remove&&c.remove.call(ab,B)}if(W!=null){break}}}if(E.length===0||W!=null&&E.length===1){if(!c.teardown||c.teardown.call(ab,P)===false){af.removeEvent(ab,V,a9.handle)}delete a8[V]}}else{for(U=0;U<E.length;U++){B=E[U];if(T||aa.test(B.namespace)){af.event.remove(ab,c,B.handler,U);E.splice(U--,1)}}}}}if(af.isEmptyObject(a8)){if(Y=a9.handle){Y.elem=null}delete a9.events;delete a9.handle;if(typeof a9==="function"){af.removeData(ab,Z)}else{af.isEmptyObject(a9)&&af.removeData(ab)}}}}}},trigger:function(Y,W,V,U){var T=Y.type||Y;if(!U){Y=typeof Y==="object"?Y[af.expando]?Y:af.extend(af.Event(T),Y):af.Event(T);if(T.indexOf("!")>=0){Y.type=T=T.slice(0,-1);Y.exclusive=true}if(!V){Y.stopPropagation();af.event.global[T]&&af.each(af.cache,function(){this.events&&this.events[T]&&af.event.trigger(Y,W,this.handle.elem)})}if(!V||V.nodeType===3||V.nodeType===8){return aF}Y.result=aF;Y.target=V;W=af.makeArray(W);W.unshift(Y)}Y.currentTarget=V;(U=V.nodeType?af.data(V,"handle"):(af.data(V,"__events__")||{}).handle)&&U.apply(V,W);U=V.parentNode||V.ownerDocument;try{if(!(V&&V.nodeName&&af.noData[V.nodeName.toLowerCase()])){if(V["on"+T]&&V["on"+T].apply(V,W)===false){Y.result=false;Y.preventDefault()}}}catch(S){}if(!Y.isPropagationStopped()&&U){af.event.trigger(Y,W,U,true)}else{if(!Y.isDefaultPrevented()){var E;U=Y.target;var P=T.replace(an,""),B=af.nodeName(U,"a")&&P==="click",X=af.event.special[P]||{};if((!X._default||X._default.call(V,Y)===false)&&!B&&!(U&&U.nodeName&&af.noData[U.nodeName.toLowerCase()])){try{if(U[P]){if(E=U["on"+P]){U["on"+P]=null}af.event.triggered=true;U[P]()}}catch(c){}if(E){U["on"+P]=E}af.event.triggered=false}}}},handle:function(E){var c,V,U,T;V=[];var S=af.makeArray(arguments);E=S[0]=af.event.fix(E||aB.event);E.currentTarget=this;c=E.type.indexOf(".")<0&&!E.exclusive;if(!c){U=E.type.split(".");E.type=U.shift();V=U.slice(0).sort();U=RegExp("(^|\\.)"+V.join("\\.(?:.*\\.)?")+"(\\.|$)")}E.namespace=E.namespace||V.join(".");T=af.data(this,this.nodeType?"events":"__events__");if(typeof T==="function"){T=T.events}V=(T||{})[E.type];if(T&&V){V=V.slice(0);T=0;for(var B=V.length;T<B;T++){var P=V[T];if(c||U.test(P.namespace)){E.handler=P.handler;E.data=P.data;E.handleObj=P;P=P.handler.apply(this,S);if(P!==aF){E.result=P;if(P===false){E.preventDefault();E.stopPropagation()}}if(E.isImmediatePropagationStopped()){break}}}}return E.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(B){if(B[af.expando]){return B}var c=B;B=af.Event(c);for(var P=this.props.length,E;P;){E=this.props[--P];B[E]=c[E]}if(!B.target){B.target=B.srcElement||M}if(B.target.nodeType===3){B.target=B.target.parentNode}if(!B.relatedTarget&&B.fromElement){B.relatedTarget=B.fromElement===B.target?B.toElement:B.fromElement}if(B.pageX==null&&B.clientX!=null){c=M.documentElement;P=M.body;B.pageX=B.clientX+(c&&c.scrollLeft||P&&P.scrollLeft||0)-(c&&c.clientLeft||P&&P.clientLeft||0);B.pageY=B.clientY+(c&&c.scrollTop||P&&P.scrollTop||0)-(c&&c.clientTop||P&&P.clientTop||0)}if(B.which==null&&(B.charCode!=null||B.keyCode!=null)){B.which=B.charCode!=null?B.charCode:B.keyCode}if(!B.metaKey&&B.ctrlKey){B.metaKey=B.ctrlKey}if(!B.which&&B.button!==aF){B.which=B.button&1?1:B.button&2?3:B.button&4?2:0}return B},guid:100000000,proxy:af.proxy,special:{ready:{setup:af.bindReady,teardown:af.noop},live:{add:function(c){af.event.add(this,am(c.origType,c.selector),af.extend({},c,{handler:H,guid:c.handler.guid}))},remove:function(c){af.event.remove(this,am(c.origType,c.selector),c)}},beforeunload:{setup:function(B,c,E){if(af.isWindow(this)){this.onbeforeunload=E}},teardown:function(B,c){if(this.onbeforeunload===c){this.onbeforeunload=null}}}}};af.removeEvent=M.removeEventListener?function(B,c,E){B.removeEventListener&&B.removeEventListener(c,E,false)}:function(B,c,E){B.detachEvent&&B.detachEvent("on"+c,E)};af.Event=function(c){if(!this.preventDefault){return new af.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=af.now();this[af.expando]=true};af.Event.prototype={preventDefault:function(){this.isDefaultPrevented=O;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=O;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=O;this.stopPropagation()},isDefaultPrevented:aq,isPropagationStopped:aq,isImmediatePropagationStopped:aq};var J=function(B){var c=B.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode}if(c!==this){B.type=B.data;af.event.handle.apply(this,arguments)}}catch(E){}},v=function(c){c.type=c.data;af.event.handle.apply(this,arguments)};af.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(B,c){af.event.special[B]={setup:function(E){af.event.add(this,c,E&&E.selector?v:J,B)},teardown:function(E){af.event.remove(this,c,E&&E.selector?v:J)}}});if(!af.support.submitBubbles){af.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){af.event.add(this,"click.specialSubmit",function(B){var c=B.target,E=c.type;if((E==="submit"||E==="image")&&af(c).closest("form").length){B.liveFired=aF;return a3("submit",this,arguments)}});af.event.add(this,"keypress.specialSubmit",function(B){var c=B.target,E=c.type;if((E==="text"||E==="password")&&af(c).closest("form").length&&B.keyCode===13){B.liveFired=aF;return a3("submit",this,arguments)}})}else{return false}},teardown:function(){af.event.remove(this,".specialSubmit")}}}if(!af.support.changeBubbles){var ap,e=function(B){var c=B.type,E=B.value;if(c==="radio"||c==="checkbox"){E=B.checked}else{if(c==="select-multiple"){E=B.selectedIndex>-1?af.map(B.options,function(P){return P.selected}).join("-"):""}else{if(B.nodeName.toLowerCase()==="select"){E=B.selectedIndex}}}return E},ak=function(B,c){var S=B.target,P,E;if(!(!R.test(S.nodeName)||S.readOnly)){P=af.data(S,"_change_data");E=e(S);if(B.type!=="focusout"||S.type!=="radio"){af.data(S,"_change_data",E)}if(!(P===aF||E===P)){if(P!=null||E){B.type="change";B.liveFired=aF;return af.event.trigger(B,c,S)}}}};af.event.special.change={filters:{focusout:ak,beforedeactivate:ak,click:function(B){var c=B.target,E=c.type;if(E==="radio"||E==="checkbox"||c.nodeName.toLowerCase()==="select"){return ak.call(this,B)}},keydown:function(B){var c=B.target,E=c.type;if(B.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||B.keyCode===32&&(E==="checkbox"||E==="radio")||E==="select-multiple"){return ak.call(this,B)}},beforeactivate:function(c){c=c.target;af.data(c,"_change_data",e(c))}},setup:function(){if(this.type==="file"){return false}for(var c in ap){af.event.add(this,c+".specialChange",ap[c])}return R.test(this.nodeName)},teardown:function(){af.event.remove(this,".specialChange");return R.test(this.nodeName)}};ap=af.event.special.change.filters;ap.focus=ap.beforeactivate}M.addEventListener&&af.each({focus:"focusin",blur:"focusout"},function(B,c){function E(P){P=af.event.fix(P);P.type=c;return af.event.trigger(P,null,P.target)}af.event.special[c]={setup:function(){ai[c]++===0&&M.addEventListener(B,E,true)},teardown:function(){--ai[c]===0&&M.removeEventListener(B,E,true)}}});af.each(["bind","one"],function(B,c){af.fn[c]=function(V,U,T){if(typeof V==="object"){for(var S in V){this[c](S,U,V[S],T)}return this}if(af.isFunction(U)||U===false){T=U;U=aF}var E=c==="one"?af.proxy(T,function(W){af(this).unbind(W,E);return T.apply(this,arguments)}):T;if(V==="unload"&&c!=="one"){this.one(V,U,T)}else{S=0;for(var P=this.length;S<P;S++){af.event.add(this[S],V,E,U)}}return this}});af.fn.extend({unbind:function(B,c){if(typeof B==="object"&&!B.preventDefault){for(var P in B){this.unbind(P,B[P])}}else{P=0;for(var E=this.length;P<E;P++){af.event.remove(this[P],B,c)}}return this},delegate:function(B,c,P,E){return this.live(c,P,E,B)},undelegate:function(B,c,E){return arguments.length===0?this.unbind("live"):this.die(c,null,E,B)},trigger:function(B,c){return this.each(function(){af.event.trigger(B,c,this)})},triggerHandler:function(B,c){if(this[0]){var E=af.Event(B);E.preventDefault();E.stopPropagation();af.event.trigger(E,c,this[0]);return E.result}},toggle:function(B){for(var c=arguments,E=1;E<c.length;){af.proxy(B,c[E++])}return this.click(af.proxy(B,function(S){var P=(af.data(this,"lastToggle"+B.guid)||0)%E;af.data(this,"lastToggle"+B.guid,P+1);S.preventDefault();return c[P].apply(this,arguments)||false}))},hover:function(B,c){return this.mouseenter(B).mouseleave(c||B)}});var aW={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};af.each(["live","die"],function(B,c){af.fn[c]=function(Y,X,W,V){var T,U=0,S,Z,E=V||this.selector;V=V?this:af(this.context);if(typeof Y==="object"&&!Y.preventDefault){for(T in Y){V[c](T,X,Y[T],E)}return this}if(af.isFunction(X)){W=X;X=aF}for(Y=(Y||"").split(" ");(T=Y[U++])!=null;){S=an.exec(T);Z="";if(S){Z=S[0];T=T.replace(an,"")}if(T==="hover"){Y.push("mouseenter"+Z,"mouseleave"+Z)}else{S=T;if(T==="focus"||T==="blur"){Y.push(aW[T]+Z);T+=Z}else{T=(aW[T]||T)+Z}if(c==="live"){Z=0;for(var P=V.length;Z<P;Z++){af.event.add(V[Z],"live."+am(T,E),{data:X,selector:E,handler:W,origType:T,origHandler:W,preType:S})}}else{V.unbind("live."+am(T,E),W)}}}return this}});af.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(B,c){af.fn[c]=function(P,E){if(E==null){E=P;P=null}return arguments.length>0?this.bind(c,P,E):this.trigger(c)};if(af.attrFn){af.attrFn[c]=true}});aB.attachEvent&&!aB.addEventListener&&af(aB).bind("unload",function(){for(var B in af.cache){if(af.cache[B].handle){try{af.event.remove(af.cache[B].handle.elem)}catch(c){}}}});(function(){function a8(bg,bf,bd,be,bc,bb){bc=0;for(var bi=be.length;bc<bi;bc++){var bh=be[bc];if(bh){var bj=false;for(bh=bh[bg];bh;){if(bh.sizcache===bd){bj=be[bh.sizset];break}if(bh.nodeType===1&&!bb){bh.sizcache=bd;bh.sizset=bc}if(bh.nodeName.toLowerCase()===bf){bj=bh;break}bh=bh[bg]}be[bc]=bj}}}function Z(bg,bf,bd,be,bc,bb){bc=0;for(var bi=be.length;bc<bi;bc++){var bh=be[bc];if(bh){var bj=false;for(bh=bh[bg];bh;){if(bh.sizcache===bd){bj=be[bh.sizset];break}if(bh.nodeType===1){if(!bb){bh.sizcache=bd;bh.sizset=bc}if(typeof bf!=="string"){if(bh===bf){bj=true;break}}else{if(T.filter(bf,[bh]).length>0){bj=bh;break}}}bh=bh[bg]}be[bc]=bj}}}var X=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,W=0,V=Object.prototype.toString,U=false,S=true;[0,0].sort(function(){S=false;return 0});var T=function(bi,bh,be,bf){be=be||[];var bd=bh=bh||M;if(bh.nodeType!==1&&bh.nodeType!==9){return[]}if(!bi||typeof bi!=="string"){return be}var bc,bn,bm,bo,bl,bk=true,bj=T.isXML(bh),bb=[],bg=bi;do{X.exec("");if(bc=X.exec(bg)){bg=bc[3];bb.push(bc[1]);if(bc[2]){bo=bc[3];break}}}while(bc);if(bb.length>1&&ab.exec(bi)){if(bb.length===2&&P.relative[bb[0]]){bn=Y(bb[0]+bb[1],bh)}else{for(bn=P.relative[bb[0]]?[bh]:T(bb.shift(),bh);bb.length;){bi=bb.shift();if(P.relative[bi]){bi+=bb.shift()}bn=Y(bi,bn)}}}else{if(!bf&&bb.length>1&&bh.nodeType===9&&!bj&&P.match.ID.test(bb[0])&&!P.match.ID.test(bb[bb.length-1])){bc=T.find(bb.shift(),bh,bj);bh=bc.expr?T.filter(bc.expr,bc.set)[0]:bc.set[0]}if(bh){bc=bf?{expr:bb.pop(),set:B(bf)}:T.find(bb.pop(),bb.length===1&&(bb[0]==="~"||bb[0]==="+")&&bh.parentNode?bh.parentNode:bh,bj);bn=bc.expr?T.filter(bc.expr,bc.set):bc.set;if(bb.length>0){bm=B(bn)}else{bk=false}for(;bb.length;){bc=bl=bb.pop();if(P.relative[bl]){bc=bb.pop()}else{bl=""}if(bc==null){bc=bh}P.relative[bl](bm,bc,bj)}}else{bm=[]}}bm||(bm=bn);bm||T.error(bl||bi);if(V.call(bm)==="[object Array]"){if(bk){if(bh&&bh.nodeType===1){for(bi=0;bm[bi]!=null;bi++){if(bm[bi]&&(bm[bi]===true||bm[bi].nodeType===1&&T.contains(bh,bm[bi]))){be.push(bn[bi])}}}else{for(bi=0;bm[bi]!=null;bi++){bm[bi]&&bm[bi].nodeType===1&&be.push(bn[bi])}}}else{be.push.apply(be,bm)}}else{B(bm,be)}if(bo){T(bo,bd,be,bf);T.uniqueSort(be)}return be};T.uniqueSort=function(bc){if(ba){U=S;bc.sort(ba);if(U){for(var bb=1;bb<bc.length;bb++){bc[bb]===bc[bb-1]&&bc.splice(bb--,1)}}}return bc};T.matches=function(bc,bb){return T(bc,null,null,bb)};T.matchesSelector=function(bc,bb){return T(bb,null,null,[bc]).length>0};T.find=function(bg,bf,bd){var be;if(!bg){return[]}for(var bc=0,bb=P.order.length;bc<bb;bc++){var bi,bh=P.order[bc];if(bi=P.leftMatch[bh].exec(bg)){var bj=bi[1];bi.splice(1,1);if(bj.substr(bj.length-1)!=="\\"){bi[1]=(bi[1]||"").replace(/\\/g,"");be=P.find[bh](bi,bf,bd);if(be!=null){bg=bg.replace(P.match[bh],"");break}}}}be||(be=bf.getElementsByTagName("*"));return{set:be,expr:bg}};T.filter=function(bj,bi,be,bf){for(var bd,bc,bo=bj,bn=[],bp=bi,bm=bi&&bi[0]&&T.isXML(bi[0]);bj&&bi.length;){for(var bl in P.filter){if((bd=P.leftMatch[bl].exec(bj))!=null&&bd[2]){var bk,bb,bh=P.filter[bl];bb=bd[1];bc=false;bd.splice(1,1);if(bb.substr(bb.length-1)!=="\\"){if(bp===bn){bn=[]}if(P.preFilter[bl]){if(bd=P.preFilter[bl](bd,bp,be,bn,bf,bm)){if(bd===true){continue}}else{bc=bk=true}}if(bd){for(var bg=0;(bb=bp[bg])!=null;bg++){if(bb){bk=bh(bb,bd,bg,bp);var bq=bf^!!bk;if(be&&bk!=null){if(bq){bc=true}else{bp[bg]=false}}else{if(bq){bn.push(bb);bc=true}}}}}if(bk!==aF){be||(bp=bn);bj=bj.replace(P.match[bl],"");if(!bc){return[]}break}}}}if(bj===bo){if(bc==null){T.error(bj)}else{break}}bo=bj}return bp};T.error=function(bb){throw"Syntax error, unrecognized expression: "+bb};var P=T.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|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(bb){return bb.getAttribute("href")}},relative:{"+":function(bd,bc){var bg=typeof bc==="string",bb=bg&&!/\W/.test(bc);bg=bg&&!bb;if(bb){bc=bc.toLowerCase()}bb=0;for(var bf=bd.length,be;bb<bf;bb++){if(be=bd[bb]){for(;(be=be.previousSibling)&&be.nodeType!==1;){}bd[bb]=bg||be&&be.nodeName.toLowerCase()===bc?be||false:be===bc}}bg&&T.filter(bc,bd,true)},">":function(bd,bc){var bg,bb=typeof bc==="string",bf=0,be=bd.length;if(bb&&!/\W/.test(bc)){for(bc=bc.toLowerCase();bf<be;bf++){if(bg=bd[bf]){bg=bg.parentNode;bd[bf]=bg.nodeName.toLowerCase()===bc?bg:false}}}else{for(;bf<be;bf++){if(bg=bd[bf]){bd[bf]=bb?bg.parentNode:bg.parentNode===bc}}bb&&T.filter(bc,bd,true)}},"":function(bd,bc,bg){var bb,bf=W++,be=Z;if(typeof bc==="string"&&!/\W/.test(bc)){bb=bc=bc.toLowerCase();be=a8}be("parentNode",bc,bf,bd,bb,bg)},"~":function(bd,bc,bg){var bb,bf=W++,be=Z;if(typeof bc==="string"&&!/\W/.test(bc)){bb=bc=bc.toLowerCase();be=a8}be("previousSibling",bc,bf,bd,bb,bg)}},find:{ID:function(bc,bb,bd){if(typeof bb.getElementById!=="undefined"&&!bd){return(bc=bb.getElementById(bc[1]))&&bc.parentNode?[bc]:[]}},NAME:function(bd,bc){if(typeof bc.getElementsByName!=="undefined"){for(var bg=[],bb=bc.getElementsByName(bd[1]),bf=0,be=bb.length;bf<be;bf++){bb[bf].getAttribute("name")===bd[1]&&bg.push(bb[bf])}return bg.length===0?null:bg}},TAG:function(bc,bb){return bb.getElementsByTagName(bc[1])}},preFilter:{CLASS:function(be,bd,bh,bb,bg,bf){be=" "+be[1].replace(/\\/g,"")+" ";if(bf){return be}bf=0;for(var bc;(bc=bd[bf])!=null;bf++){if(bc){if(bg^(bc.className&&(" "+bc.className+" ").replace(/[\t\n]/g," ").indexOf(be)>=0)){bh||bb.push(bc)}else{if(bh){bd[bf]=false}}}}return false},ID:function(bb){return bb[1].replace(/\\/g,"")},TAG:function(bb){return bb[1].toLowerCase()},CHILD:function(bc){if(bc[1]==="nth"){var bb=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(bc[2]==="even"&&"2n"||bc[2]==="odd"&&"2n+1"||!/\D/.test(bc[2])&&"0n+"+bc[2]||bc[2]);bc[2]=bb[1]+(bb[2]||1)-0;bc[3]=bb[3]-0}bc[0]=W++;return bc},ATTR:function(bd,bc,bg,bb,bf,be){bc=bd[1].replace(/\\/g,"");if(!be&&P.attrMap[bc]){bd[1]=P.attrMap[bc]}if(bd[2]==="~="){bd[4]=" "+bd[4]+" "}return bd},PSEUDO:function(bd,bc,bf,bb,be){if(bd[1]==="not"){if((X.exec(bd[3])||"").length>1||/^\w/.test(bd[3])){bd[3]=T(bd[3],null,null,bc)}else{bd=T.filter(bd[3],bc,bf,true^be);bf||bb.push.apply(bb,bd);return false}}else{if(P.match.POS.test(bd[0])||P.match.CHILD.test(bd[0])){return true}}return bd},POS:function(bb){bb.unshift(true);return bb}},filters:{enabled:function(bb){return bb.disabled===false&&bb.type!=="hidden"},disabled:function(bb){return bb.disabled===true},checked:function(bb){return bb.checked===true},selected:function(bb){return bb.selected===true},parent:function(bb){return !!bb.firstChild},empty:function(bb){return !bb.firstChild},has:function(bc,bb,bd){return !!T(bd[3],bc).length},header:function(bb){return/h\d/i.test(bb.nodeName)},text:function(bb){return"text"===bb.type},radio:function(bb){return"radio"===bb.type},checkbox:function(bb){return"checkbox"===bb.type},file:function(bb){return"file"===bb.type},password:function(bb){return"password"===bb.type},submit:function(bb){return"submit"===bb.type},image:function(bb){return"image"===bb.type},reset:function(bb){return"reset"===bb.type},button:function(bb){return"button"===bb.type||bb.nodeName.toLowerCase()==="button"},input:function(bb){return/input|select|textarea|button/i.test(bb.nodeName)}},setFilters:{first:function(bc,bb){return bb===0},last:function(bd,bc,be,bb){return bc===bb.length-1},even:function(bc,bb){return bb%2===0},odd:function(bc,bb){return bb%2===1},lt:function(bc,bb,bd){return bb<bd[3]-0},gt:function(bc,bb,bd){return bb>bd[3]-0},nth:function(bc,bb,bd){return bd[3]-0===bb},eq:function(bc,bb,bd){return bd[3]-0===bb}},filter:{PSEUDO:function(bd,bc,bg,bb){var bf=bc[1],be=P.filters[bf];if(be){return be(bd,bg,bc,bb)}else{if(bf==="contains"){return(bd.textContent||bd.innerText||T.getText([bd])||"").indexOf(bc[3])>=0}else{if(bf==="not"){bc=bc[3];bg=0;for(bb=bc.length;bg<bb;bg++){if(bc[bg]===bd){return false}}return true}else{T.error("Syntax error, unrecognized expression: "+bf)}}}},CHILD:function(be,bd){var bi=bd[1],bb=be;switch(bi){case"only":case"first":for(;bb=bb.previousSibling;){if(bb.nodeType===1){return false}}if(bi==="first"){return true}bb=be;case"last":for(;bb=bb.nextSibling;){if(bb.nodeType===1){return false}}return true;case"nth":bi=bd[2];var bg=bd[3];if(bi===1&&bg===0){return true}var bf=bd[0],bc=be.parentNode;if(bc&&(bc.sizcache!==bf||!be.nodeIndex)){var bh=0;for(bb=bc.firstChild;bb;bb=bb.nextSibling){if(bb.nodeType===1){bb.nodeIndex=++bh}}bc.sizcache=bf}bb=be.nodeIndex-bg;return bi===0?bb===0:bb%bi===0&&bb/bi>=0}},ID:function(bc,bb){return bc.nodeType===1&&bc.getAttribute("id")===bb},TAG:function(bc,bb){return bb==="*"&&bc.nodeType===1||bc.nodeName.toLowerCase()===bb},CLASS:function(bc,bb){return(" "+(bc.className||bc.getAttribute("class"))+" ").indexOf(bb)>-1},ATTR:function(bd,bc){var bg=bc[1];bg=P.attrHandle[bg]?P.attrHandle[bg](bd):bd[bg]!=null?bd[bg]:bd.getAttribute(bg);var bb=bg+"",bf=bc[2],be=bc[4];return bg==null?bf==="!=":bf==="="?bb===be:bf==="*="?bb.indexOf(be)>=0:bf==="~="?(" "+bb+" ").indexOf(be)>=0:!be?bb&&bg!==false:bf==="!="?bb!==be:bf==="^="?bb.indexOf(be)===0:bf==="$="?bb.substr(bb.length-be.length)===be:bf==="|="?bb===be||bb.substr(0,be.length+1)===be+"-":false},POS:function(bd,bc,bf,bb){var be=P.setFilters[bc[2]];if(be){return be(bd,bf,bc,bb)}}}},ab=P.match.POS,c=function(bc,bb){return"\\"+(bb-0+1)},E;for(E in P.match){P.match[E]=RegExp(P.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source);P.leftMatch[E]=RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[E].source.replace(/\\(\d+)/g,c))}var B=function(bc,bb){bc=Array.prototype.slice.call(bc,0);if(bb){bb.push.apply(bb,bc);return bb}return bc};try{Array.prototype.slice.call(M.documentElement.childNodes,0)}catch(aa){B=function(bd,bc){var bf=0,bb=bc||[];if(V.call(bd)==="[object Array]"){Array.prototype.push.apply(bb,bd)}else{if(typeof bd.length==="number"){for(var be=bd.length;bf<be;bf++){bb.push(bd[bf])}}else{for(;bd[bf];bf++){bb.push(bd[bf])}}}return bb}}var ba,a9;if(M.documentElement.compareDocumentPosition){ba=function(bc,bb){if(bc===bb){U=true;return 0}if(!bc.compareDocumentPosition||!bb.compareDocumentPosition){return bc.compareDocumentPosition?-1:1}return bc.compareDocumentPosition(bb)&4?-1:1}}else{ba=function(be,bd){var bh,bb,bg=[],bf=[];bh=be.parentNode;bb=bd.parentNode;var bc=bh;if(be===bd){U=true;return 0}else{if(bh===bb){return a9(be,bd)}else{if(bh){if(!bb){return 1}}else{return -1}}}for(;bc;){bg.unshift(bc);bc=bc.parentNode}for(bc=bb;bc;){bf.unshift(bc);bc=bc.parentNode}bh=bg.length;bb=bf.length;for(bc=0;bc<bh&&bc<bb;bc++){if(bg[bc]!==bf[bc]){return a9(bg[bc],bf[bc])}}return bc===bh?a9(be,bf[bc],-1):a9(bg[bc],bd,1)};a9=function(bc,bb,bd){if(bc===bb){return bd}for(bc=bc.nextSibling;bc;){if(bc===bb){return -1}bc=bc.nextSibling}return 1}}T.getText=function(bd){for(var bc="",be,bb=0;bd[bb];bb++){be=bd[bb];if(be.nodeType===3||be.nodeType===4){bc+=be.nodeValue}else{if(be.nodeType!==8){bc+=T.getText(be.childNodes)}}}return bc};(function(){var bc=M.createElement("div"),bb="script"+(new Date).getTime(),bd=M.documentElement;bc.innerHTML="<a name='"+bb+"'/>";bd.insertBefore(bc,bd.firstChild);if(M.getElementById(bb)){P.find.ID=function(be,bg,bf){if(typeof bg.getElementById!=="undefined"&&!bf){return(bg=bg.getElementById(be[1]))?bg.id===be[1]||typeof bg.getAttributeNode!=="undefined"&&bg.getAttributeNode("id").nodeValue===be[1]?[bg]:aF:[]}};P.filter.ID=function(be,bg){var bf=typeof be.getAttributeNode!=="undefined"&&be.getAttributeNode("id");return be.nodeType===1&&bf&&bf.nodeValue===bg}}bd.removeChild(bc);bd=bc=null})();(function(){var bb=M.createElement("div");bb.appendChild(M.createComment(""));if(bb.getElementsByTagName("*").length>0){P.find.TAG=function(bd,bg){var bc=bg.getElementsByTagName(bd[1]);if(bd[1]==="*"){for(var bf=[],be=0;bc[be];be++){bc[be].nodeType===1&&bf.push(bc[be])}bc=bf}return bc}}bb.innerHTML="<a href='#'></a>";if(bb.firstChild&&typeof bb.firstChild.getAttribute!=="undefined"&&bb.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(bc){return bc.getAttribute("href",2)}}bb=null})();M.querySelectorAll&&function(){var bc=T,bb=M.createElement("div");bb.innerHTML="<p class='TEST'></p>";if(!(bb.querySelectorAll&&bb.querySelectorAll(".TEST").length===0)){T=function(be,bi,bh,bf){bi=bi||M;be=be.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bf&&!T.isXML(bi)){if(bi.nodeType===9){try{return B(bi.querySelectorAll(be),bh)}catch(bl){}}else{if(bi.nodeType===1&&bi.nodeName.toLowerCase()!=="object"){var bg=bi.getAttribute("id"),bk=bg||"__sizzle__";bg||bi.setAttribute("id",bk);try{return B(bi.querySelectorAll("#"+bk+" "+be),bh)}catch(bj){}finally{bg||bi.removeAttribute("id")}}}}return bc(be,bi,bh,bf)};for(var bd in bc){T[bd]=bc[bd]}bb=null}}();(function(){var bd=M.documentElement,bc=bd.matchesSelector||bd.mozMatchesSelector||bd.webkitMatchesSelector||bd.msMatchesSelector,be=false;try{bc.call(M.documentElement,"[test!='']:sizzle")}catch(bb){be=true}if(bc){T.matchesSelector=function(bh,bg){bg=bg.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!T.isXML(bh)){try{if(be||!P.match.PSEUDO.test(bg)&&!/!=/.test(bg)){return bc.call(bh,bg)}}catch(bf){}}return T(bg,null,null,[bh]).length>0}}})();(function(){var bb=M.createElement("div");bb.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!bb.getElementsByClassName||bb.getElementsByClassName("e").length===0)){bb.lastChild.className="e";if(bb.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");P.find.CLASS=function(bd,be,bc){if(typeof be.getElementsByClassName!=="undefined"&&!bc){return be.getElementsByClassName(bd[1])}};bb=null}}})();T.contains=M.documentElement.contains?function(bc,bb){return bc!==bb&&(bc.contains?bc.contains(bb):true)}:M.documentElement.compareDocumentPosition?function(bc,bb){return !!(bc.compareDocumentPosition(bb)&16)}:function(){return false};T.isXML=function(bb){return(bb=(bb?bb.ownerDocument||bb:0).documentElement)?bb.nodeName!=="HTML":false};var Y=function(be,bd){for(var bh,bb=[],bg="",bf=bd.nodeType?[bd]:bd;bh=P.match.PSEUDO.exec(be);){bg+=bh[0];be=be.replace(P.match.PSEUDO,"")}be=P.relative[be]?be+"*":be;bh=0;for(var bc=bf.length;bh<bc;bh++){T(be,bf[bh],bb)}return T.filter(bg,bb)};af.find=T;af.expr=T.selectors;af.expr[":"]=af.expr.filters;af.unique=T.uniqueSort;af.text=T.getText;af.isXMLDoc=T.isXML;af.contains=T.contains})();var aY=/Until$/,aE=/^(?:parents|prevUntil|prevAll)/,aL=/,/,aV=/^.[^:#\[\.,]*$/,au=Array.prototype.slice,N=af.expr.match.POS;af.fn.extend({find:function(E){for(var c=this.pushStack("","find",E),U=0,T=0,S=this.length;T<S;T++){U=c.length;af.find(E,this[T],c);if(T>0){for(var P=U;P<c.length;P++){for(var B=0;B<U;B++){if(c[B]===c[P]){c.splice(P--,1);break}}}}}return c},has:function(B){var c=af(B);return this.filter(function(){for(var P=0,E=c.length;P<E;P++){if(af.contains(this,c[P])){return true}}})},not:function(c){return this.pushStack(aQ(this,c,false),"not",c)},filter:function(c){return this.pushStack(aQ(this,c,true),"filter",c)},is:function(c){return !!c&&af.filter(c,this).length>0},closest:function(W,V){var U=[],T,S,P=this[0];if(af.isArray(W)){var B,E={},c=1;if(P&&W.length){T=0;for(S=W.length;T<S;T++){B=W[T];E[B]||(E[B]=af.expr.match.POS.test(B)?af(B,V||this.context):B)}for(;P&&P.ownerDocument&&P!==V;){for(B in E){T=E[B];if(T.jquery?T.index(P)>-1:af(P).is(T)){U.push({selector:B,elem:P,level:c})}}P=P.parentNode;c++}}return U}B=N.test(W)?af(W,V||this.context):null;T=0;for(S=this.length;T<S;T++){for(P=this[T];P;){if(B?B.index(P)>-1:af.find.matchesSelector(P,W)){U.push(P);break}else{P=P.parentNode;if(!P||!P.ownerDocument||P===V){break}}}}U=U.length>1?af.unique(U):U;return this.pushStack(U,"closest",W)},index:function(c){if(!c||typeof c==="string"){return af.inArray(this[0],c?af(c):this.parent().children())}return af.inArray(c.jquery?c[0]:c,this)},add:function(B,c){var P=typeof B==="string"?af(B,c||this.context):af.makeArray(B),E=af.merge(this.get(),P);return this.pushStack(!P[0]||!P[0].parentNode||P[0].parentNode.nodeType===11||!E[0]||!E[0].parentNode||E[0].parentNode.nodeType===11?E:af.unique(E))},andSelf:function(){return this.add(this.prevObject)}});af.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return af.dir(c,"parentNode")},parentsUntil:function(B,c,E){return af.dir(B,"parentNode",E)},next:function(c){return af.nth(c,2,"nextSibling")},prev:function(c){return af.nth(c,2,"previousSibling")},nextAll:function(c){return af.dir(c,"nextSibling")},prevAll:function(c){return af.dir(c,"previousSibling")},nextUntil:function(B,c,E){return af.dir(B,"nextSibling",E)},prevUntil:function(B,c,E){return af.dir(B,"previousSibling",E)},siblings:function(c){return af.sibling(c.parentNode.firstChild,c)},children:function(c){return af.sibling(c.firstChild)},contents:function(c){return af.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:af.makeArray(c.childNodes)}},function(B,c){af.fn[B]=function(S,P){var E=af.map(this,c,S);aY.test(B)||(P=S);if(P&&typeof P==="string"){E=af.filter(P,E)}E=this.length>1?af.unique(E):E;if((this.length>1||aL.test(P))&&aE.test(B)){E=E.reverse()}return this.pushStack(E,B,au.call(arguments).join(","))}});af.extend({filter:function(B,c,E){if(E){B=":not("+B+")"}return c.length===1?af.find.matchesSelector(c[0],B)?[c[0]]:[]:af.find.matches(B,c)},dir:function(B,c,P){var E=[];for(B=B[c];B&&B.nodeType!==9&&(P===aF||B.nodeType!==1||!af(B).is(P));){B.nodeType===1&&E.push(B);B=B[c]}return E},nth:function(B,c,P){c=c||1;for(var E=0;B;B=B[P]){if(B.nodeType===1&&++E===c){break}}return B},sibling:function(B,c){for(var E=[];B;B=B.nextSibling){B.nodeType===1&&B!==c&&E.push(B)}return E}});var aJ=/ jQuery\d+="(?:\d+|null)"/g,aS=/^\s+/,a1=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aO=/<([\w:]+)/,y=/<tbody/i,h=/<|&#?\w+;/,az=/<(?:script|object|embed|option|style)/i,ac=/checked\s*(?:[^=]|=\s*.checked.)/i,aZ=/\=([^="'>\s]+\/)>/g,av={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};av.optgroup=av.option;av.tbody=av.tfoot=av.colgroup=av.caption=av.thead;av.th=av.td;if(!af.support.htmlSerialize){av._default=[1,"div<div>","</div>"]}af.fn.extend({text:function(c){if(af.isFunction(c)){return this.each(function(B){var E=af(this);E.text(c.call(this,B,E.text()))})}if(typeof c!=="object"&&c!==aF){return this.empty().append((this[0]&&this[0].ownerDocument||M).createTextNode(c))}return af.text(this)},wrapAll:function(B){if(af.isFunction(B)){return this.each(function(E){af(this).wrapAll(B.call(this,E))})}if(this[0]){var c=af(B,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var E=this;E.firstChild&&E.firstChild.nodeType===1;){E=E.firstChild}return E}).append(this)}return this},wrapInner:function(c){if(af.isFunction(c)){return this.each(function(B){af(this).wrapInner(c.call(this,B))})}return this.each(function(){var B=af(this),E=B.contents();E.length?E.wrapAll(c):B.append(c)})},wrap:function(c){return this.each(function(){af(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){af.nodeName(this,"body")||af(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(B){this.parentNode.insertBefore(B,this)})}else{if(arguments.length){var c=af(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(B){this.parentNode.insertBefore(B,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,af(arguments[0]).toArray());return c}}},remove:function(B,c){for(var P=0,E;(E=this[P])!=null;P++){if(!B||af.filter(B,[E]).length){if(!c&&E.nodeType===1){af.cleanData(E.getElementsByTagName("*"));af.cleanData([E])}E.parentNode&&E.parentNode.removeChild(E)}}return this},empty:function(){for(var B=0,c;(c=this[B])!=null;B++){for(c.nodeType===1&&af.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild)}}return this},clone:function(B){var c=this.map(function(){if(!af.support.noCloneEvent&&!af.isXMLDoc(this)){var P=this.outerHTML,E=this.ownerDocument;if(!P){P=E.createElement("div");P.appendChild(this.cloneNode(true));P=P.innerHTML}return af.clean([P.replace(aJ,"").replace(aZ,'="$1">').replace(aS,"")],E)[0]}else{return this.cloneNode(true)}});if(B===true){aC(this,c);aC(this.find("*"),c.find("*"))}return c},html:function(B){if(B===aF){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aJ,""):null}else{if(typeof B==="string"&&!az.test(B)&&(af.support.leadingWhitespace||!aS.test(B))&&!av[(aO.exec(B)||["",""])[1].toLowerCase()]){B=B.replace(a1,"<$1></$2>");try{for(var c=0,P=this.length;c<P;c++){if(this[c].nodeType===1){af.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=B}}}catch(E){this.empty().append(B)}}else{af.isFunction(B)?this.each(function(T){var S=af(this);S.html(B.call(this,T,S.html()))}):this.empty().append(B)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(af.isFunction(c)){return this.each(function(B){var P=af(this),E=P.html();P.replaceWith(c.call(this,B,E))})}if(typeof c!=="string"){c=af(c).detach()}return this.each(function(){var B=this.nextSibling,E=this.parentNode;af(this).remove();B?af(B).before(c):af(E).append(c)})}else{return this.pushStack(af(af.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(W,V,U){var T,S,P,B=W[0],E=[];if(!af.support.checkClone&&arguments.length===3&&typeof B==="string"&&ac.test(B)){return this.each(function(){af(this).domManip(W,V,U,true)})}if(af.isFunction(B)){return this.each(function(X){var Y=af(this);W[0]=B.call(this,X,V?Y.html():aF);Y.domManip(W,V,U)})}if(this[0]){T=B&&B.parentNode;T=af.support.parentNode&&T&&T.nodeType===11&&T.childNodes.length===this.length?{fragment:T}:af.buildFragment(W,this,E);P=T.fragment;if(S=P.childNodes.length===1?P=P.firstChild:P.firstChild){V=V&&af.nodeName(S,"tr");S=0;for(var c=this.length;S<c;S++){U.call(V?af.nodeName(this[S],"table")?this[S].getElementsByTagName("tbody")[0]||this[S].appendChild(this[S].ownerDocument.createElement("tbody")):this[S]:this[S],S>0||T.cacheable||this.length>1?P.cloneNode(true):P)}}E.length&&af.each(E,aI)}return this}});af.buildFragment=function(B,c,T){var S,P,E;c=c&&c[0]?c[0].ownerDocument||c[0]:M;if(B.length===1&&typeof B[0]==="string"&&B[0].length<512&&c===M&&!az.test(B[0])&&(af.support.checkClone||!ac.test(B[0]))){P=true;if(E=af.fragments[B[0]]){if(E!==1){S=E}}}if(!S){S=c.createDocumentFragment();af.clean(B,c,S,T)}if(P){af.fragments[B[0]]=E?S:1}return{fragment:S,cacheable:P}};af.fragments={};af.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(B,c){af.fn[B]=function(U){var T=[];U=af(U);var S=this.length===1&&this[0].parentNode;if(S&&S.nodeType===11&&S.childNodes.length===1&&U.length===1){U[c](this[0]);return this}else{S=0;for(var P=U.length;S<P;S++){var E=(S>0?this.clone(true):this).get();af(U[S])[c](E);T=T.concat(E)}return this.pushStack(T,B,U.selector)}}});af.extend({clean:function(Y,W,V,U){W=W||M;if(typeof W.createElement==="undefined"){W=W.ownerDocument||W[0]&&W[0].ownerDocument||M}for(var T=[],S=0,E;(E=Y[S])!=null;S++){if(typeof E==="number"){E+=""}if(E){if(typeof E==="string"&&!h.test(E)){E=W.createTextNode(E)}else{if(typeof E==="string"){E=E.replace(a1,"<$1></$2>");var P=(aO.exec(E)||["",""])[1].toLowerCase(),B=av[P]||av._default,X=B[0],c=W.createElement("div");for(c.innerHTML=B[1]+E+B[2];X--;){c=c.lastChild}if(!af.support.tbody){X=y.test(E);P=P==="table"&&!X?c.firstChild&&c.firstChild.childNodes:B[1]==="<table>"&&!X?c.childNodes:[];for(B=P.length-1;B>=0;--B){af.nodeName(P[B],"tbody")&&!P[B].childNodes.length&&P[B].parentNode.removeChild(P[B])}}!af.support.leadingWhitespace&&aS.test(E)&&c.insertBefore(W.createTextNode(aS.exec(E)[0]),c.firstChild);E=c.childNodes}}if(E.nodeType){T.push(E)}else{T=af.merge(T,E)}}}if(V){for(S=0;T[S];S++){if(U&&af.nodeName(T[S],"script")&&(!T[S].type||T[S].type.toLowerCase()==="text/javascript")){U.push(T[S].parentNode?T[S].parentNode.removeChild(T[S]):T[S])}else{T[S].nodeType===1&&T.splice.apply(T,[S+1,0].concat(af.makeArray(T[S].getElementsByTagName("script"))));V.appendChild(T[S])}}}return T},cleanData:function(W){for(var V,U,T=af.cache,S=af.event.special,P=af.support.deleteExpando,B=0,E;(E=W[B])!=null;B++){if(!(E.nodeName&&af.noData[E.nodeName.toLowerCase()])){if(U=E[af.expando]){if((V=T[U])&&V.events){for(var c in V.events){S[c]?af.event.remove(E,c):af.removeEvent(E,c,V.handle)}}if(P){delete E[af.expando]}else{E.removeAttribute&&E.removeAttribute(af.expando)}delete T[U]}}}}});var D=/alpha\([^)]*\)/i,aN=/opacity=([^)]*)/,ax=/-([a-z])/ig,Q=/([A-Z])/g,n=/^-?\d+(?:px)?$/i,A=/^-?\d/,l={position:"absolute",visibility:"hidden",display:"block"},aj=["Left","Right"],K=["Top","Bottom"],ao,a4,aM,a2=function(B,c){return c.toUpperCase()};af.fn.css=function(B,c){if(arguments.length===2&&c===aF){return this}return af.access(this,B,c,true,function(S,P,E){return E!==aF?af.style(S,P,E):af.css(S,P)})};af.extend({cssHooks:{opacity:{get:function(B,c){if(c){var E=ao(B,"opacity","opacity");return E===""?"1":E}else{return B.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":af.support.cssFloat?"cssFloat":"styleFloat"},style:function(W,V,U,T){if(!(!W||W.nodeType===3||W.nodeType===8||!W.style)){var S,P=af.camelCase(V),B=W.style,E=af.cssHooks[P];V=af.cssProps[P]||P;if(U!==aF){if(!(typeof U==="number"&&isNaN(U)||U==null)){if(typeof U==="number"&&!af.cssNumber[P]){U+="px"}if(!E||!("set" in E)||(U=E.set(W,U))!==aF){try{B[V]=U}catch(c){}}}}else{if(E&&"get" in E&&(S=E.get(W,false,T))!==aF){return S}return B[V]}}},css:function(B,c,T){var S,P=af.camelCase(c),E=af.cssHooks[P];c=af.cssProps[P]||P;if(E&&"get" in E&&(S=E.get(B,true,T))!==aF){return S}else{if(ao){return ao(B,c,P)}}},swap:function(B,c,S){var P={},E;for(E in c){P[E]=B.style[E];B.style[E]=c[E]}S.call(B);for(E in c){B.style[E]=P[E]}},camelCase:function(c){return c.replace(ax,a2)}});af.curCSS=af.css;af.each(["height","width"],function(B,c){af.cssHooks[c]={get:function(T,S,P){var E;if(S){if(T.offsetWidth!==0){E=ae(T,c,P)}else{af.swap(T,l,function(){E=ae(T,c,P)})}if(E<=0){E=ao(T,c,c);if(E==="0px"&&aM){E=aM(T,c,c)}if(E!=null){return E===""||E==="auto"?"0px":E}}if(E<0||E==null){E=T.style[c];return E===""||E==="auto"?"0px":E}return typeof E==="string"?E:E+"px"}},set:function(P,E){if(n.test(E)){E=parseFloat(E);if(E>=0){return E+"px"}}else{return E}}}});if(!af.support.opacity){af.cssHooks.opacity={get:function(B,c){return aN.test((c&&B.currentStyle?B.currentStyle.filter:B.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(B,c){var S=B.style;S.zoom=1;var P=af.isNaN(c)?"":"alpha(opacity="+c*100+")",E=S.filter||"";S.filter=D.test(E)?E.replace(D,P):S.filter+" "+P}}}if(M.defaultView&&M.defaultView.getComputedStyle){a4=function(B,c,P){var E;P=P.replace(Q,"-$1").toLowerCase();if(!(c=B.ownerDocument.defaultView)){return aF}if(c=c.getComputedStyle(B,null)){E=c.getPropertyValue(P);if(E===""&&!af.contains(B.ownerDocument.documentElement,B)){E=af.style(B,P)}}return E}}if(M.documentElement.currentStyle){aM=function(B,c){var T,S,P=B.currentStyle&&B.currentStyle[c],E=B.style;if(!n.test(P)&&A.test(P)){T=E.left;S=B.runtimeStyle.left;B.runtimeStyle.left=B.currentStyle.left;E.left=c==="fontSize"?"1em":P||0;P=E.pixelLeft+"px";E.left=T;B.runtimeStyle.left=S}return P===""?"auto":P}}ao=a4||aM;if(af.expr&&af.expr.filters){af.expr.filters.hidden=function(B){var c=B.offsetHeight;return B.offsetWidth===0&&c===0||!af.support.reliableHiddenOffsets&&(B.style.display||af.css(B,"display"))==="none"};af.expr.filters.visible=function(c){return !af.expr.filters.hidden(c)}}var aP=af.now(),aA=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ad=/^(?:select|textarea)/i,F=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,o=/^(?:GET|HEAD)$/,w=/\[\]$/,ar=/\=\?(&|$)/,C=/\?/,a5=/([?&])_=[^&]*/,aT=/^(\w+:)?\/\/([^\/?#]+)/,aG=/%20/g,ah=/#.*$/,aR=af.fn.load;af.fn.extend({load:function(B,c,T){if(typeof B!=="string"&&aR){return aR.apply(this,arguments)}else{if(!this.length){return this}}var S=B.indexOf(" ");if(S>=0){var P=B.slice(S,B.length);B=B.slice(0,S)}S="GET";if(c){if(af.isFunction(c)){T=c;c=null}else{if(typeof c==="object"){c=af.param(c,af.ajaxSettings.traditional);S="POST"}}}var E=this;af.ajax({url:B,type:S,dataType:"html",data:c,complete:function(U,V){if(V==="success"||V==="notmodified"){E.html(P?af("<div>").append(U.responseText.replace(aA,"")).find(P):U.responseText)}T&&E.each(T,[U.responseText,V,U])}});return this},serialize:function(){return af.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?af.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ad.test(this.nodeName)||F.test(this.type))}).map(function(B,c){var E=af(this).val();return E==null?null:af.isArray(E)?af.map(E,function(P){return{name:c.name,value:P}}):{name:c.name,value:E}}).get()}});af.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(B,c){af.fn[c]=function(E){return this.bind(c,E)}});af.extend({get:function(B,c,P,E){if(af.isFunction(c)){E=E||P;P=c;c=null}return af.ajax({type:"GET",url:B,data:c,success:P,dataType:E})},getScript:function(B,c){return af.get(B,null,c,"script")},getJSON:function(B,c,E){return af.get(B,c,E,"json")},post:function(B,c,P,E){if(af.isFunction(c)){E=E||P;P=c;c={}}return af.ajax({type:"POST",url:B,data:c,success:P,dataType:E})},ajaxSetup:function(c){af.extend(af.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new aB.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(bd){var bc=af.extend(true,{},af.ajaxSettings,bd),bb,ba,a9,ab=bc.type.toUpperCase(),Y=o.test(ab);bc.url=bc.url.replace(ah,"");bc.context=bd&&bd.context!=null?bd.context:bc;if(bc.data&&bc.processData&&typeof bc.data!=="string"){bc.data=af.param(bc.data,bc.traditional)}if(bc.dataType==="jsonp"){if(ab==="GET"){ar.test(bc.url)||(bc.url+=(C.test(bc.url)?"&":"?")+(bc.jsonp||"callback")+"=?")}else{if(!bc.data||!ar.test(bc.data)){bc.data=(bc.data?bc.data+"&":"")+(bc.jsonp||"callback")+"=?"}}bc.dataType="json"}if(bc.dataType==="json"&&(bc.data&&ar.test(bc.data)||ar.test(bc.url))){bb=bc.jsonpCallback||"jsonp"+aP++;if(bc.data){bc.data=(bc.data+"").replace(ar,"="+bb+"$1")}bc.url=bc.url.replace(ar,"="+bb+"$1");bc.dataType="script";var Z=aB[bb];aB[bb]=function(be){if(af.isFunction(Z)){Z(be)}else{aB[bb]=aF;try{delete aB[bb]}catch(bf){}}a9=be;af.handleSuccess(bc,S,ba,a9);af.handleComplete(bc,S,ba,a9);U&&U.removeChild(V)}}if(bc.dataType==="script"&&bc.cache===null){bc.cache=false}if(bc.cache===false&&Y){var W=af.now(),P=bc.url.replace(a5,"$1_="+W);bc.url=P+(P===bc.url?(C.test(bc.url)?"&":"?")+"_="+W:"")}if(bc.data&&Y){bc.url+=(C.test(bc.url)?"&":"?")+bc.data}bc.global&&af.active++===0&&af.event.trigger("ajaxStart");W=(W=aT.exec(bc.url))&&(W[1]&&W[1].toLowerCase()!==location.protocol||W[2].toLowerCase()!==location.host);if(bc.dataType==="script"&&ab==="GET"&&W){var U=M.getElementsByTagName("head")[0]||M.documentElement,V=M.createElement("script");if(bc.scriptCharset){V.charset=bc.scriptCharset}V.src=bc.url;if(!bb){var T=false;V.onload=V.onreadystatechange=function(){if(!T&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){T=true;af.handleSuccess(bc,S,ba,a9);af.handleComplete(bc,S,ba,a9);V.onload=V.onreadystatechange=null;U&&V.parentNode&&U.removeChild(V)}}}U.insertBefore(V,U.firstChild);return aF}var B=false,S=bc.xhr();if(S){bc.username?S.open(ab,bc.url,bc.async,bc.username,bc.password):S.open(ab,bc.url,bc.async);try{if(bc.data!=null&&!Y||bd&&bd.contentType){S.setRequestHeader("Content-Type",bc.contentType)}if(bc.ifModified){af.lastModified[bc.url]&&S.setRequestHeader("If-Modified-Since",af.lastModified[bc.url]);af.etag[bc.url]&&S.setRequestHeader("If-None-Match",af.etag[bc.url])}W||S.setRequestHeader("X-Requested-With","XMLHttpRequest");S.setRequestHeader("Accept",bc.dataType&&bc.accepts[bc.dataType]?bc.accepts[bc.dataType]+", */*; q=0.01":bc.accepts._default)}catch(E){}if(bc.beforeSend&&bc.beforeSend.call(bc.context,S,bc)===false){bc.global&&af.active--===1&&af.event.trigger("ajaxStop");S.abort();return false}bc.global&&af.triggerGlobal(bc,"ajaxSend",[S,bc]);var c=S.onreadystatechange=function(be){if(!S||S.readyState===0||be==="abort"){B||af.handleComplete(bc,S,ba,a9);B=true;if(S){S.onreadystatechange=af.noop}}else{if(!B&&S&&(S.readyState===4||be==="timeout")){B=true;S.onreadystatechange=af.noop;ba=be==="timeout"?"timeout":!af.httpSuccess(S)?"error":bc.ifModified&&af.httpNotModified(S,bc.url)?"notmodified":"success";var bg;if(ba==="success"){try{a9=af.httpData(S,bc.dataType,bc)}catch(bf){ba="parsererror";bg=bf}}if(ba==="success"||ba==="notmodified"){bb||af.handleSuccess(bc,S,ba,a9)}else{af.handleError(bc,S,ba,bg)}bb||af.handleComplete(bc,S,ba,a9);be==="timeout"&&S.abort();if(bc.async){S=null}}}};try{var a8=S.abort;S.abort=function(){S&&Function.prototype.call.call(a8,S);c("abort")}}catch(aa){}bc.async&&bc.timeout>0&&setTimeout(function(){S&&!B&&c("timeout")},bc.timeout);try{S.send(Y||bc.data==null?null:bc.data)}catch(X){af.handleError(bc,S,null,X);af.handleComplete(bc,S,ba,a9)}bc.async||c();return S}},param:function(B,c){var S=[],P=function(U,T){T=af.isFunction(T)?T():T;S[S.length]=encodeURIComponent(U)+"="+encodeURIComponent(T)};if(c===aF){c=af.ajaxSettings.traditional}if(af.isArray(B)||B.jquery){af.each(B,function(){P(this.name,this.value)})}else{for(var E in B){z(E,B[E],c,P)}}return S.join("&").replace(aG,"+")}});af.extend({active:0,lastModified:{},etag:{},handleError:function(B,c,P,E){B.error&&B.error.call(B.context,c,P,E);B.global&&af.triggerGlobal(B,"ajaxError",[c,B,E])},handleSuccess:function(B,c,P,E){B.success&&B.success.call(B.context,E,P,c);B.global&&af.triggerGlobal(B,"ajaxSuccess",[c,B])},handleComplete:function(B,c,E){B.complete&&B.complete.call(B.context,c,E);B.global&&af.triggerGlobal(B,"ajaxComplete",[c,B]);B.global&&af.active--===1&&af.event.trigger("ajaxStop")},triggerGlobal:function(B,c,E){(B.context&&B.context.url==null?af(B.context):af.event).trigger(c,E)},httpSuccess:function(B){try{return !B.status&&location.protocol==="file:"||B.status>=200&&B.status<300||B.status===304||B.status===1223}catch(c){}return false},httpNotModified:function(B,c){var P=B.getResponseHeader("Last-Modified"),E=B.getResponseHeader("Etag");if(P){af.lastModified[c]=P}if(E){af.etag[c]=E}return B.status===304},httpData:function(B,c,S){var P=B.getResponseHeader("content-type")||"",E=c==="xml"||!c&&P.indexOf("xml")>=0;B=E?B.responseXML:B.responseText;E&&B.documentElement.nodeName==="parsererror"&&af.error("parsererror");if(S&&S.dataFilter){B=S.dataFilter(B,c)}if(typeof B==="string"){if(c==="json"||!c&&P.indexOf("json")>=0){B=af.parseJSON(B)}else{if(c==="script"||!c&&P.indexOf("javascript")>=0){af.globalEval(B)}}}return B}});if(aB.ActiveXObject){af.ajaxSettings.xhr=function(){if(aB.location.protocol!=="file:"){try{return new aB.XMLHttpRequest}catch(B){}}try{return new aB.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}af.support.ajax=!!af.ajaxSettings.xhr();var k={},I=/^(?:toggle|show|hide)$/,u=/^([+\-]=)?([\d+.\-]+)(.*)$/,aw,G=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];af.fn.extend({show:function(B,c,P){if(B||B===0){return this.animate(at("show",3),B,c,P)}else{P=0;for(var E=this.length;P<E;P++){B=this[P];c=B.style.display;if(!af.data(B,"olddisplay")&&c==="none"){c=B.style.display=""}c===""&&af.css(B,"display")==="none"&&af.data(B,"olddisplay",r(B.nodeName))}for(P=0;P<E;P++){B=this[P];c=B.style.display;if(c===""||c==="none"){B.style.display=af.data(B,"olddisplay")||""}}return this}},hide:function(B,c,E){if(B||B===0){return this.animate(at("hide",3),B,c,E)}else{B=0;for(c=this.length;B<c;B++){E=af.css(this[B],"display");E!=="none"&&af.data(this[B],"olddisplay",E)}for(B=0;B<c;B++){this[B].style.display="none"}return this}},_toggle:af.fn.toggle,toggle:function(B,c,P){var E=typeof B==="boolean";if(af.isFunction(B)&&af.isFunction(c)){this._toggle.apply(this,arguments)}else{B==null||E?this.each(function(){var S=E?B:af(this).is(":hidden");af(this)[S?"show":"hide"]()}):this.animate(at("toggle",3),B,c,P)}return this},fadeTo:function(B,c,P,E){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},B,P,E)},animate:function(B,c,S,P){var E=af.speed(c,S,P);if(af.isEmptyObject(B)){return this.each(E.complete)}return this[E.queue===false?"each":"queue"](function(){var W=af.extend({},E),U,V=this.nodeType===1,Y=V&&af(this).is(":hidden"),T=this;for(U in B){var X=af.camelCase(U);if(U!==X){B[X]=B[U];delete B[U];U=X}if(B[U]==="hide"&&Y||B[U]==="show"&&!Y){return W.complete.call(this)}if(V&&(U==="height"||U==="width")){W.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(af.css(this,"display")==="inline"&&af.css(this,"float")==="none"){if(af.support.inlineBlockNeedsLayout){if(r(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(af.isArray(B[U])){(W.specialEasing=W.specialEasing||{})[U]=B[U][1];B[U]=B[U][0]}}if(W.overflow!=null){this.style.overflow="hidden"}W.curAnim=af.extend({},B);af.each(B,function(aa,bb){var a8=new af.fx(T,W,aa);if(I.test(bb)){a8[bb==="toggle"?Y?"show":"hide":bb](B)}else{var ab=u.exec(bb),a9=a8.cur()||0;if(ab){var Z=parseFloat(ab[2]),ba=ab[3]||"px";if(ba!=="px"){af.style(T,aa,(Z||1)+ba);a9=(Z||1)/a8.cur()*a9;af.style(T,aa,a9+ba)}if(ab[1]){Z=(ab[1]==="-="?-1:1)*Z+a9}a8.custom(a9,Z,ba)}else{a8.custom(a9,bb,"")}}});return true})},stop:function(B,c){var E=af.timers;B&&this.queue([]);this.each(function(){for(var P=E.length-1;P>=0;P--){if(E[P].elem===this){c&&E[P](true);E.splice(P,1)}}});c||this.dequeue();return this}});af.each({slideDown:at("show",1),slideUp:at("hide",1),slideToggle:at("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(B,c){af.fn[B]=function(S,P,E){return this.animate(c,S,P,E)}});af.extend({speed:function(B,c,P){var E=B&&typeof B==="object"?af.extend({},B):{complete:P||!P&&c||af.isFunction(B)&&B,duration:B,easing:P&&c||c&&!af.isFunction(c)&&c};E.duration=af.fx.off?0:typeof E.duration==="number"?E.duration:E.duration in af.fx.speeds?af.fx.speeds[E.duration]:af.fx.speeds._default;E.old=E.complete;E.complete=function(){E.queue!==false&&af(this).dequeue();af.isFunction(E.old)&&E.old.call(this)};return E},easing:{linear:function(B,c,P,E){return P+E*B},swing:function(B,c,P,E){return(-Math.cos(B*Math.PI)/2+0.5)*E+P}},timers:[],fx:function(B,c,E){this.options=c;this.elem=B;this.prop=E;if(!c.orig){c.orig={}}}});af.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(af.fx.step[this.prop]||af.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var c=parseFloat(af.css(this.elem,this.prop));return c&&c>-10000?c:0},custom:function(B,c,T){function S(U){return P.step(U)}var P=this,E=af.fx;this.startTime=af.now();this.start=B;this.end=c;this.unit=T||this.unit||"px";this.now=this.start;this.pos=this.state=0;S.elem=this.elem;if(S()&&af.timers.push(S)&&!aw){aw=setInterval(E.tick,E.interval)}},show:function(){this.options.orig[this.prop]=af.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());af(this.elem).show()},hide:function(){this.options.orig[this.prop]=af.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(E){var c=af.now(),U=true;if(E||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var T in this.options.curAnim){if(this.options.curAnim[T]!==true){U=false}}if(U){if(this.options.overflow!=null&&!af.support.shrinkWrapBlocks){var S=this.elem,P=this.options;af.each(["","X","Y"],function(V,W){S.style["overflow"+W]=P.overflow[V]})}this.options.hide&&af(this.elem).hide();if(this.options.hide||this.options.show){for(var B in this.options.curAnim){af.style(this.elem,B,this.options.orig[B])}}this.options.complete.call(this.elem)}return false}else{E=c-this.startTime;this.state=E/this.options.duration;c=this.options.easing||(af.easing.swing?"swing":"linear");this.pos=af.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,E,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};af.extend(af.fx,{tick:function(){for(var B=af.timers,c=0;c<B.length;c++){B[c]()||B.splice(c--,1)}B.length||af.fx.stop()},interval:13,stop:function(){clearInterval(aw);aw=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){af.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(af.expr&&af.expr.filters){af.expr.filters.animated=function(c){return af.grep(af.timers,function(B){return c===B.elem}).length}}var d=/^t(?:able|d|h)$/i,aD=/^(?:body|html)$/i;af.fn.offset="getBoundingClientRect" in M.documentElement?function(B){var c=this[0],T;if(B){return this.each(function(U){af.offset.setOffset(this,B,U)})}if(!c||!c.ownerDocument){return null}if(c===c.ownerDocument.body){return af.offset.bodyOffset(c)}try{T=c.getBoundingClientRect()}catch(S){}var P=c.ownerDocument,E=P.documentElement;if(!T||!af.contains(E,c)){return T||{top:0,left:0}}c=P.body;P=a0(P);return{top:T.top+(P.pageYOffset||af.support.boxModel&&E.scrollTop||c.scrollTop)-(E.clientTop||c.clientTop||0),left:T.left+(P.pageXOffset||af.support.boxModel&&E.scrollLeft||c.scrollLeft)-(E.clientLeft||c.clientLeft||0)}}:function(W){var V=this[0];if(W){return this.each(function(X){af.offset.setOffset(this,W,X)})}if(!V||!V.ownerDocument){return null}if(V===V.ownerDocument.body){return af.offset.bodyOffset(V)}af.offset.initialize();var U,T=V.offsetParent,S=V.ownerDocument,P=S.documentElement,B=S.body;U=(S=S.defaultView)?S.getComputedStyle(V,null):V.currentStyle;for(var E=V.offsetTop,c=V.offsetLeft;(V=V.parentNode)&&V!==B&&V!==P;){if(af.offset.supportsFixedPosition&&U.position==="fixed"){break}U=S?S.getComputedStyle(V,null):V.currentStyle;E-=V.scrollTop;c-=V.scrollLeft;if(V===T){E+=V.offsetTop;c+=V.offsetLeft;if(af.offset.doesNotAddBorder&&!(af.offset.doesAddBorderForTableAndCells&&d.test(V.nodeName))){E+=parseFloat(U.borderTopWidth)||0;c+=parseFloat(U.borderLeftWidth)||0}T=V.offsetParent}if(af.offset.subtractsBorderForOverflowNotVisible&&U.overflow!=="visible"){E+=parseFloat(U.borderTopWidth)||0;c+=parseFloat(U.borderLeftWidth)||0}U=U}if(U.position==="relative"||U.position==="static"){E+=B.offsetTop;c+=B.offsetLeft}if(af.offset.supportsFixedPosition&&U.position==="fixed"){E+=Math.max(P.scrollTop,B.scrollTop);c+=Math.max(P.scrollLeft,B.scrollLeft)}return{top:E,left:c}};af.offset={initialize:function(){var B=M.body,c=M.createElement("div"),T,S,P,E=parseFloat(af.css(B,"marginTop"))||0;af.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";B.insertBefore(c,B.firstChild);T=c.firstChild;S=T.firstChild;P=T.nextSibling.firstChild.firstChild;this.doesNotAddBorder=S.offsetTop!==5;this.doesAddBorderForTableAndCells=P.offsetTop===5;S.style.position="fixed";S.style.top="20px";this.supportsFixedPosition=S.offsetTop===20||S.offsetTop===15;S.style.position=S.style.top="";T.style.overflow="hidden";T.style.position="relative";this.subtractsBorderForOverflowNotVisible=S.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=B.offsetTop!==E;B.removeChild(c);af.offset.initialize=af.noop},bodyOffset:function(B){var c=B.offsetTop,E=B.offsetLeft;af.offset.initialize();if(af.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(af.css(B,"marginTop"))||0;E+=parseFloat(af.css(B,"marginLeft"))||0}return{top:c,left:E}},setOffset:function(X,V,U){var T=af.css(X,"position");if(T==="static"){X.style.position="relative"}var S=af(X),P=S.offset(),B=af.css(X,"top"),E=af.css(X,"left"),c=T==="absolute"&&af.inArray("auto",[B,E])>-1;T={};var W={};if(c){W=S.position()}B=c?W.top:parseInt(B,10)||0;E=c?W.left:parseInt(E,10)||0;if(af.isFunction(V)){V=V.call(X,U,P)}if(V.top!=null){T.top=V.top-P.top+B}if(V.left!=null){T.left=V.left-P.left+E}"using" in V?V.using.call(X,T):S.css(T)}};af.fn.extend({position:function(){if(!this[0]){return null}var B=this[0],c=this.offsetParent(),P=this.offset(),E=aD.test(c[0].nodeName)?{top:0,left:0}:c.offset();P.top-=parseFloat(af.css(B,"marginTop"))||0;P.left-=parseFloat(af.css(B,"marginLeft"))||0;E.top+=parseFloat(af.css(c[0],"borderTopWidth"))||0;E.left+=parseFloat(af.css(c[0],"borderLeftWidth"))||0;return{top:P.top-E.top,left:P.left-E.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||M.body;c&&!aD.test(c.nodeName)&&af.css(c,"position")==="static";){c=c.offsetParent}return c})}});af.each(["Left","Top"],function(B,c){var E="scroll"+c;af.fn[E]=function(T){var S=this[0],P;if(!S){return null}if(T!==aF){return this.each(function(){if(P=a0(this)){P.scrollTo(!B?T:af(P).scrollLeft(),B?T:af(P).scrollTop())}else{this[E]=T}})}else{return(P=a0(S))?"pageXOffset" in P?P[B?"pageYOffset":"pageXOffset"]:af.support.boxModel&&P.document.documentElement[E]||P.document.body[E]:S[E]}}});af.each(["Height","Width"],function(B,c){var E=c.toLowerCase();af.fn["inner"+c]=function(){return this[0]?parseFloat(af.css(this[0],E,"padding")):null};af.fn["outer"+c]=function(P){return this[0]?parseFloat(af.css(this[0],E,P?"margin":"border")):null};af.fn[E]=function(T){var S=this[0];if(!S){return T==null?null:this}if(af.isFunction(T)){return this.each(function(U){var V=af(this);V[E](T.call(this,U,V[E]()))})}if(af.isWindow(S)){return S.document.compatMode==="CSS1Compat"&&S.document.documentElement["client"+c]||S.document.body["client"+c]}else{if(S.nodeType===9){return Math.max(S.documentElement["client"+c],S.body["scroll"+c],S.documentElement["scroll"+c],S.body["offset"+c],S.documentElement["offset"+c])}else{if(T===aF){S=af.css(S,E);var P=parseFloat(S);return af.isNaN(P)?S:P}else{return this.css(E,typeof T==="string"?T:T+"px")}}}}})})(window);
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.12 (23-MAY-2011)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(e){var c=document.createElement("div").style,l=c.MozBorderRadius!==undefined,n=c.WebkitBorderRadius!==undefined,g=c.borderRadius!==undefined||c.BorderRadius!==undefined,f=document.documentMode||0,r=e.browser.msie&&((e.browser.version<8&&!f)||f<8),m=e.browser.msie&&(function(){var u=document.createElement("div");try{u.style.setExpression("width","0+0");u.style.removeExpression("width")}catch(s){return false}return true})();e.support=e.support||{};e.support.borderRadius=l||n||g;function k(s,u){return parseInt(e.css(s,u))||0}function o(u){u=parseInt(u).toString(16);return(u.length<2)?"0"+u:u}function d(w){while(w){var s=e.css(w,"backgroundColor"),u;if(s&&s!="transparent"&&s!="rgba(0, 0, 0, 0)"){if(s.indexOf("rgb")>=0){u=s.match(/\d+/g);return"#"+o(u[0])+o(u[1])+o(u[2])}return s}if(w.nodeName.toLowerCase()=="html"){break}w=w.parentNode}return"#ffffff"}function h(v,s,u){switch(v){case"round":return Math.round(u*(1-Math.cos(Math.asin(s/u))));case"cool":return Math.round(u*(1+Math.cos(Math.asin(s/u))));case"sharp":return u-s;case"bite":return Math.round(u*(Math.cos(Math.asin((u-s-1)/u))));case"slide":return Math.round(u*(Math.atan2(s,u/s)));case"jut":return Math.round(u*(Math.atan2(u,(u-s-1))));case"curl":return Math.round(u*(Math.atan(s)));case"tear":return Math.round(u*(Math.cos(s)));case"wicked":return Math.round(u*(Math.tan(s)));case"long":return Math.round(u*(Math.sqrt(s)));case"sculpt":return Math.round(u*(Math.log((u-s-1),u)));case"dogfold":case"dog":return(s&1)?(s+1):u;case"dog2":return(s&2)?(s+1):u;case"dog3":return(s&3)?(s+1):u;case"fray":return(s%2)*u;case"notch":return u;case"bevelfold":case"bevel":return s+1;case"steep":return s/2+1;case"invsteep":return(u-s)/2+1}}e.fn.corner=function(u){if(this.length==0){if(!e.isReady&&this.selector){var v=this.selector,w=this.context;e(function(){e(v,w).corner(u)})}return this}return this.each(function(C){var B=e(this),J=[B.attr(e.fn.corner.defaults.metaAttr)||"",u||""].join(" ").toLowerCase(),Q=/keep/.test(J),I=((J.match(/cc:(#[0-9a-f]+)/)||[])[1]),s=((J.match(/sc:(#[0-9a-f]+)/)||[])[1]),M=parseInt((J.match(/(\d+)px/)||[])[1])||10,K=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/,y=((J.match(K)||["round"])[0]),z=/dogfold|bevelfold/.test(J),x={T:0,B:1},F={TL:/top|tl|left/.test(J),TR:/top|tr|right/.test(J),BL:/bottom|bl|left/.test(J),BR:/bottom|br|right/.test(J)},N,T,L,O,E,U,H,R,P,D,S,V,G,A;if(!F.TL&&!F.TR&&!F.BL&&!F.BR){F={TL:1,TR:1,BL:1,BR:1}}if(e.fn.corner.defaults.useNative&&y=="round"&&(g||l||n)&&!I&&!s){if(F.TL){B.css(g?"border-top-left-radius":l?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",M+"px")}if(F.TR){B.css(g?"border-top-right-radius":l?"-moz-border-radius-topright":"-webkit-border-top-right-radius",M+"px")}if(F.BL){B.css(g?"border-bottom-left-radius":l?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",M+"px")}if(F.BR){B.css(g?"border-bottom-right-radius":l?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",M+"px")}return}N=document.createElement("div");e(N).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:s||"transparent",borderStyle:"solid"});T={T:parseInt(e.css(this,"paddingTop"))||0,R:parseInt(e.css(this,"paddingRight"))||0,B:parseInt(e.css(this,"paddingBottom"))||0,L:parseInt(e.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!Q){this.style.border="none"}N.style.borderColor=I||d(this.parentNode);L=e(this).outerHeight();for(O in x){E=x[O];if((E&&(F.BL||F.BR))||(!E&&(F.TL||F.TR))){N.style.borderStyle="none "+(F[O+"R"]?"solid":"none")+" none "+(F[O+"L"]?"solid":"none");U=document.createElement("div");e(U).addClass("jquery-corner");H=U.style;E?this.appendChild(U):this.insertBefore(U,this.firstChild);if(E&&L!="auto"){if(e.css(this,"position")=="static"){this.style.position="relative"}H.position="absolute";H.bottom=H.left=H.padding=H.margin="0";if(m){H.setExpression("width","this.parentNode.offsetWidth")}else{H.width="100%"}}else{if(!E&&e.browser.msie){if(e.css(this,"position")=="static"){this.style.position="relative"}H.position="absolute";H.top=H.left=H.right=H.padding=H.margin="0";if(m){R=k(this,"borderLeftWidth")+k(this,"borderRightWidth");H.setExpression("width","this.parentNode.offsetWidth - "+R+'+ "px"')}else{H.width="100%"}}else{H.position="relative";H.margin=!E?"-"+T.T+"px -"+T.R+"px "+(T.T-M)+"px -"+T.L+"px":(T.B-M)+"px -"+T.R+"px -"+T.B+"px -"+T.L+"px"}}for(P=0;P<M;P++){D=Math.max(0,h(y,P,M));S=N.cloneNode(false);S.style.borderWidth="0 "+(F[O+"R"]?D:0)+"px 0 "+(F[O+"L"]?D:0)+"px";E?U.appendChild(S):U.insertBefore(S,U.firstChild)}if(z&&e.support.boxModel){if(E&&r){continue}for(V in F){if(!F[V]){continue}if(E&&(V=="TL"||V=="TR")){continue}if(!E&&(V=="BL"||V=="BR")){continue}G={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:N.style.borderColor};A=e("<div/>").css(G).css({width:M+"px",height:"1px"});switch(V){case"TL":A.css({bottom:0,left:0});break;case"TR":A.css({bottom:0,right:0});break;case"BL":A.css({top:0,left:0});break;case"BR":A.css({top:0,right:0});break}U.appendChild(A[0]);var W=e("<div/>").css(G).css({top:0,bottom:0,width:"1px",height:M+"px"});switch(V){case"TL":W.css({left:M});break;case"TR":W.css({right:M});break;case"BL":W.css({left:M});break;case"BR":W.css({right:M});break}U.appendChild(W[0])}}}}})};e.fn.uncorner=function(){if(g||l||n){this.css(g?"border-radius":l?"-moz-border-radius":"-webkit-border-radius",0)}e("div.jquery-corner",this).remove();return this};e.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
/*
 * jQuery UI 1.8.10
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,g){function f(d){return !c(d).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.10",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(d,e){return typeof d==="number"?this.each(function(){var h=this;setTimeout(function(){c(h).focus();e&&e.call(h)},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;d=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!d.length?c(document):d},zIndex:function(d){if(d!==g){return this.css("zIndex",d)}if(this.length){d=c(this[0]);for(var e;d.length&&d[0]!==document;){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){e=parseInt(d.css("zIndex"),10);if(!isNaN(e)&&e!==0){return e}}d=d.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(d){d.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(l,m){function d(o,s,r,h){c.each(n,function(){s-=parseFloat(c.curCSS(o,"padding"+this,true))||0;if(r){s-=parseFloat(c.curCSS(o,"border"+this+"Width",true))||0}if(h){s-=parseFloat(c.curCSS(o,"margin"+this,true))||0}});return s}var n=m==="Width"?["Left","Right"]:["Top","Bottom"],k=m.toLowerCase(),e={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+m]=function(h){if(h===g){return e["inner"+m].call(this)}return this.each(function(){c(this).css(k,d(this,h)+"px")})};c.fn["outer"+m]=function(h,o){if(typeof h!=="number"){return e["outer"+m].call(this,h)}return this.each(function(){c(this).css(k,d(this,h,true,o)+"px")})}});c.extend(c.expr[":"],{data:function(e,h,d){return !!c.data(e,d[3])},focusable:function(e){var h=e.nodeName.toLowerCase(),d=c.attr(e,"tabindex");if("area"===h){h=e.parentNode;d=h.name;if(!e.href||!d||h.nodeName.toLowerCase()!=="map"){return false}e=c("img[usemap=#"+d+"]")[0];return !!e&&f(e)}return(/input|select|textarea|button|object/.test(h)?!e.disabled:"a"==h?e.href||!isNaN(d):!isNaN(d))&&f(e)},tabbable:function(d){var e=c.attr(d,"tabindex");return(isNaN(e)||e>=0)&&c(d).is(":focusable")}});c(function(){var d=document.body,e=d.appendChild(e=document.createElement("div"));c.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=e.offsetHeight===100;c.support.selectstart="onselectstart" in e;d.removeChild(e).style.display="none"});c.extend(c.ui,{plugin:{add:function(e,h,d){e=c.ui[e].prototype;for(var k in d){e.plugins[k]=e.plugins[k]||[];e.plugins[k].push([h,d[k]])}},call:function(e,h,d){if((h=e.plugins[h])&&e.element[0].parentNode){for(var k=0;k<h.length;k++){e.options[h[k][0]]&&h[k][1].apply(e.element,d)}}}},contains:function(d,e){return document.compareDocumentPosition?d.compareDocumentPosition(e)&16:d!==e&&d.contains(e)},hasScroll:function(e,h){if(c(e).css("overflow")==="hidden"){return false}h=h&&h==="left"?"scrollLeft":"scrollTop";var d=false;if(e[h]>0){return true}e[h]=1;d=e[h]>0;e[h]=0;return d},isOverAxis:function(e,h,d){return e>h&&e<h+d},isOver:function(l,m,d,n,k,e){return c.ui.isOverAxis(l,d,k)&&c.ui.isOverAxis(m,n,e)}})}})(jQuery);(function(c,k){if(c.cleanData){var h=c.cleanData;c.cleanData=function(e){for(var d=0,g;(g=e[d])!=null;d++){c(g).triggerHandler("remove")}h(e)}}else{var f=c.fn.remove;c.fn.remove=function(e,d){return this.each(function(){if(!d){if(!e||c.filter(e,[this]).length){c("*",this).add([this]).each(function(){c(this).triggerHandler("remove")})}}return f.call(c(this),e,d)})}}c.widget=function(l,d,m){var g=l.split(".")[0],e;l=l.split(".")[1];e=g+"-"+l;if(!m){m=d;d=c.Widget}c.expr[":"][e]=function(n){return !!c.data(n,l)};c[g]=c[g]||{};c[g][l]=function(o,r){arguments.length&&this._createWidget(o,r)};d=new d;d.options=c.extend(true,{},d.options);c[g][l].prototype=c.extend(true,d,{namespace:g,widgetName:l,widgetEventPrefix:c[g][l].prototype.widgetEventPrefix||l,widgetBaseClass:e},m);c.widget.bridge(l,c[g][l])};c.widget.bridge=function(e,d){c.fn[e]=function(n){var m=typeof n==="string",l=Array.prototype.slice.call(arguments,1),g=this;n=!m&&l.length?c.extend.apply(null,[true,n].concat(l)):n;if(m&&n.charAt(0)==="_"){return g}m?this.each(function(){var r=c.data(this,e),o=r&&c.isFunction(r[n])?r[n].apply(r,l):r;if(o!==r&&o!==k){g=o;return false}}):this.each(function(){var o=c.data(this,e);o?o.option(n||{})._init():c.data(this,e,new d(n,this))});return g}};c.Widget=function(e,d){arguments.length&&this._createWidget(e,d)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(e,d){c.data(d,this.widgetName,this);this.element=c(d);this.options=c.extend(true,{},this.options,this._getCreateOptions(),e);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return c.metadata&&c.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(e,d){var g=e;if(arguments.length===0){return c.extend({},this.options)}if(typeof e==="string"){if(d===k){return this.options[e]}g={};g[e]=d}this._setOptions(g);return this},_setOptions:function(e){var d=this;c.each(e,function(l,g){d._setOption(l,g)});return this},_setOption:function(e,d){this.options[e]=d;if(e==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",d)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(l,d,m){var g=this.options[l];d=c.Event(d);d.type=(l===this.widgetEventPrefix?l:this.widgetEventPrefix+l).toLowerCase();m=m||{};if(d.originalEvent){l=c.event.props.length;for(var e;l;){e=c.event.props[--l];d[e]=d.originalEvent[e]}}this.element.trigger(d,m);return !(c.isFunction(g)&&g.call(this.element[0],d,m)===false||d.isDefaultPrevented())}}})(jQuery);(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(d){return e._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===c.data(d.target,e.widgetName+".preventClickEvent")){c.removeData(d.target,e.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(m){m.originalEvent=m.originalEvent||{};if(!m.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(m);this._mouseDownEvent=m;var l=this,h=m.which==1,k=typeof this.options.cancel=="string"?c(m.target).parents().add(m.target).filter(this.options.cancel).length:false;if(!h||k||!this._mouseCapture(m)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){l.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=this._mouseStart(m)!==false;if(!this._mouseStarted){m.preventDefault();return true}}this._mouseMoveDelegate=function(d){return l._mouseMove(d)};this._mouseUpDelegate=function(d){return l._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);m.preventDefault();return m.originalEvent.mouseHandled=true}},_mouseMove:function(e){if(c.browser.msie&&!(document.documentMode>=9)&&!e.button){return this._mouseUp(e)}if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==false)?this._mouseDrag(e):this._mouseUp(e)}return !this._mouseStarted},_mouseUp:function(e){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;e.target==this._mouseDownEvent.target&&c.data(e.target,this.widgetName+".preventClickEvent",true);this._mouseStop(e)}return false},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(c){c.widget("ui.draggable",c.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(g){var f=this.options;if(this.helper||f.disabled||c(g.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(g);if(!this.handle){return false}return true},_mouseStart:function(g){var f=this.options;this.helper=this._createHelper(g);this._cacheHelperProportions();if(c.ui.ddmanager){c.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};c.extend(this.offset,{click:{left:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(g);this.originalPageX=g.pageX;this.originalPageY=g.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();if(this._trigger("start",g)===false){this._clear();return false}this._cacheHelperProportions();c.ui.ddmanager&&!f.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,g);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(g,true);return true},_mouseDrag:function(g,f){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!f){f=this._uiHash();if(this._trigger("drag",g,f)===false){this._mouseUp({});return false}this.position=f.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}c.ui.ddmanager&&c.ui.ddmanager.drag(this,g);return false},_mouseStop:function(k){var h=false;if(c.ui.ddmanager&&!this.options.dropBehaviour){h=c.ui.ddmanager.drop(this,k)}if(this.dropped){h=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if(this.options.revert=="invalid"&&!h||this.options.revert=="valid"&&h||this.options.revert===true||c.isFunction(this.options.revert)&&this.options.revert.call(this.element,h)){var f=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",k)!==false&&f._clear()})}else{this._trigger("stop",k)!==false&&this._clear()}return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(g){var f=!this.options.handle||!c(this.options.handle,this.element).length?true:false;c(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==g.target){f=true}});return f},_createHelper:function(g){var f=this.options;g=c.isFunction(f.helper)?c(f.helper.apply(this.element[0],[g])):f.helper=="clone"?this.element.clone():this.element;g.parents("body").length||g.appendTo(f.appendTo=="parent"?this.element[0].parentNode:f.appendTo);g[0]!=this.element[0]&&!/(fixed|absolute)/.test(g.css("position"))&&g.css("position","absolute");return g},_adjustOffsetFromHelper:function(e){if(typeof e=="string"){e=e.split(" ")}if(c.isArray(e)){e={left:+e[0],top:+e[1]||0}}if("left" in e){this.offset.click.left=e.left+this.margins.left}if("right" in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left}if("top" in e){this.offset.click.top=e.top+this.margins.top}if("bottom" in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie){e={top:0,left:0}}return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var k=this.options;if(k.containment=="parent"){k.containment=this.helper[0].parentNode}if(k.containment=="document"||k.containment=="window"){this.containment=[(k.containment=="document"?0:c(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(k.containment=="document"?0:c(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(k.containment=="document"?0:c(window).scrollLeft())+c(k.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(k.containment=="document"?0:c(window).scrollTop())+(c(k.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(k.containment)&&k.containment.constructor!=Array){var h=c(k.containment)[0];if(h){k=c(k.containment).offset();var f=c(h).css("overflow")!="hidden";this.containment=[k.left+(parseInt(c(h).css("borderLeftWidth"),10)||0)+(parseInt(c(h).css("paddingLeft"),10)||0)-this.margins.left,k.top+(parseInt(c(h).css("borderTopWidth"),10)||0)+(parseInt(c(h).css("paddingTop"),10)||0)-this.margins.top,k.left+(f?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(c(h).css("borderLeftWidth"),10)||0)-(parseInt(c(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,k.top+(f?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(c(h).css("borderTopWidth"),10)||0)-(parseInt(c(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else{if(k.containment.constructor==Array){this.containment=k.containment}}},_convertPositionTo:function(m,l){if(!l){l=this.position}m=m=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=/(html|body)/i.test(h[0].tagName);return{top:l.top+this.offset.relative.top*m+this.offset.parent.top*m-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():k?0:h.scrollTop())*m),left:l.left+this.offset.relative.left*m+this.offset.parent.left*m-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:h.scrollLeft())*m)}},_generatePosition:function(n){var m=this.options,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(k[0].tagName),h=n.pageX,o=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left<this.containment[0]){h=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top<this.containment[1]){o=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left>this.containment[2]){h=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top>this.containment[3]){o=this.containment[3]+this.offset.click.top}}if(m.grid){o=this.originalPageY+Math.round((o-this.originalPageY)/m.grid[1])*m.grid[1];o=this.containment?!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:!(o-this.offset.click.top<this.containment[1])?o-m.grid[1]:o+m.grid[1]:o;h=this.originalPageX+Math.round((h-this.originalPageX)/m.grid[0])*m.grid[0];h=this.containment?!(h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2])?h:!(h-this.offset.click.left<this.containment[0])?h-m.grid[0]:h+m.grid[0]:h}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:k.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:k.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(k,h,f){f=f||this._uiHash();c.ui.plugin.call(this,k,[h,f]);if(k=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return c.Widget.prototype._trigger.call(this,k,h,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8.10"});c.ui.plugin.add("draggable","connectToSortable",{start:function(n,m){var k=c(this).data("draggable"),l=k.options,h=c.extend({},m,{item:k.element});k.sortables=[];c(l.connectToSortable).each(function(){var d=c.data(this,"sortable");if(d&&!d.options.disabled){k.sortables.push({instance:d,shouldRevert:d.options.revert});d._refreshItems();d._trigger("activate",n,h)}})},stop:function(m,l){var h=c(this).data("draggable"),k=c.extend({},l,{item:h.element});c.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(m);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",m,k)}})},drag:function(m,l){var h=c(this).data("draggable"),k=this;c.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=c(k).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return l.helper[0]};m.target=this.instance.currentItem[0];this.instance._mouseCapture(m,true);this.instance._mouseStart(m,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",m);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(m)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",m,this.instance._uiHash(this.instance));this.instance._mouseStop(m,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",m);h.dropped=false}}})}});c.ui.plugin.add("draggable","cursor",{start:function(){var g=c("body"),f=c(this).data("draggable").options;if(g.css("cursor")){f._cursor=g.css("cursor")}g.css("cursor",f.cursor)},stop:function(){var e=c(this).data("draggable").options;e._cursor&&c("body").css("cursor",e._cursor)}});c.ui.plugin.add("draggable","iframeFix",{start:function(){var e=c(this).data("draggable").options;c(e.iframeFix===true?"iframe":e.iframeFix).each(function(){c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(c(this).offset()).appendTo("body")})},stop:function(){c("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});c.ui.plugin.add("draggable","opacity",{start:function(g,f){g=c(f.helper);f=c(this).data("draggable").options;if(g.css("opacity")){f._opacity=g.css("opacity")}g.css("opacity",f.opacity)},stop:function(g,f){g=c(this).data("draggable").options;g._opacity&&c(f.helper).css("opacity",g._opacity)}});c.ui.plugin.add("draggable","scroll",{start:function(){var e=c(this).data("draggable");if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){e.overflowOffset=e.scrollParent.offset()}},drag:function(m){var l=c(this).data("draggable"),h=l.options,k=false;if(l.scrollParent[0]!=document&&l.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(l.overflowOffset.top+l.scrollParent[0].offsetHeight-m.pageY<h.scrollSensitivity){l.scrollParent[0].scrollTop=k=l.scrollParent[0].scrollTop+h.scrollSpeed}else{if(m.pageY-l.overflowOffset.top<h.scrollSensitivity){l.scrollParent[0].scrollTop=k=l.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if(l.overflowOffset.left+l.scrollParent[0].offsetWidth-m.pageX<h.scrollSensitivity){l.scrollParent[0].scrollLeft=k=l.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(m.pageX-l.overflowOffset.left<h.scrollSensitivity){l.scrollParent[0].scrollLeft=k=l.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(m.pageY-c(document).scrollTop()<h.scrollSensitivity){k=c(document).scrollTop(c(document).scrollTop()-h.scrollSpeed)}else{if(c(window).height()-(m.pageY-c(document).scrollTop())<h.scrollSensitivity){k=c(document).scrollTop(c(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(m.pageX-c(document).scrollLeft()<h.scrollSensitivity){k=c(document).scrollLeft(c(document).scrollLeft()-h.scrollSpeed)}else{if(c(window).width()-(m.pageX-c(document).scrollLeft())<h.scrollSensitivity){k=c(document).scrollLeft(c(document).scrollLeft()+h.scrollSpeed)}}}}k!==false&&c.ui.ddmanager&&!h.dropBehaviour&&c.ui.ddmanager.prepareOffsets(l,m)}});c.ui.plugin.add("draggable","snap",{start:function(){var g=c(this).data("draggable"),f=g.options;g.snapElements=[];c(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var d=c(this),e=d.offset();this!=g.element[0]&&g.snapElements.push({item:this,width:d.outerWidth(),height:d.outerHeight(),top:e.top,left:e.left})})},drag:function(L,K){for(var I=c(this).data("draggable"),J=I.options,N=J.snapTolerance,M=K.offset.left,H=M+I.helperProportions.width,G=K.offset.top,F=G+I.helperProportions.height,B=I.snapElements.length-1;B>=0;B--){var y=I.snapElements[B].left,D=y+I.snapElements[B].width,E=I.snapElements[B].top,C=E+I.snapElements[B].height;if(y-N<M&&M<D+N&&E-N<G&&G<C+N||y-N<M&&M<D+N&&E-N<F&&F<C+N||y-N<H&&H<D+N&&E-N<G&&G<C+N||y-N<H&&H<D+N&&E-N<F&&F<C+N){if(J.snapMode!="inner"){var A=Math.abs(E-F)<=N,z=Math.abs(C-G)<=N,w=Math.abs(y-H)<=N,x=Math.abs(D-M)<=N;if(A){K.position.top=I._convertPositionTo("relative",{top:E-I.helperProportions.height,left:0}).top-I.margins.top}if(z){K.position.top=I._convertPositionTo("relative",{top:C,left:0}).top-I.margins.top}if(w){K.position.left=I._convertPositionTo("relative",{top:0,left:y-I.helperProportions.width}).left-I.margins.left}if(x){K.position.left=I._convertPositionTo("relative",{top:0,left:D}).left-I.margins.left}}var v=A||z||w||x;if(J.snapMode!="outer"){A=Math.abs(E-G)<=N;z=Math.abs(C-F)<=N;w=Math.abs(y-M)<=N;x=Math.abs(D-H)<=N;if(A){K.position.top=I._convertPositionTo("relative",{top:E,left:0}).top-I.margins.top}if(z){K.position.top=I._convertPositionTo("relative",{top:C-I.helperProportions.height,left:0}).top-I.margins.top}if(w){K.position.left=I._convertPositionTo("relative",{top:0,left:y}).left-I.margins.left}if(x){K.position.left=I._convertPositionTo("relative",{top:0,left:D-I.helperProportions.width}).left-I.margins.left}}if(!I.snapElements[B].snapping&&(A||z||w||x||v)){I.options.snap.snap&&I.options.snap.snap.call(I.element,L,c.extend(I._uiHash(),{snapItem:I.snapElements[B].item}))}I.snapElements[B].snapping=A||z||w||x||v}else{I.snapElements[B].snapping&&I.options.snap.release&&I.options.snap.release.call(I.element,L,c.extend(I._uiHash(),{snapItem:I.snapElements[B].item}));I.snapElements[B].snapping=false}}}});c.ui.plugin.add("draggable","stack",{start:function(){var g=c(this).data("draggable").options;g=c.makeArray(c(g.stack)).sort(function(d,e){return(parseInt(c(d).css("zIndex"),10)||0)-(parseInt(c(e).css("zIndex"),10)||0)});if(g.length){var f=parseInt(g[0].style.zIndex)||0;c(g).each(function(d){this.style.zIndex=f+d});this[0].style.zIndex=f+g.length}}});c.ui.plugin.add("draggable","zIndex",{start:function(g,f){g=c(f.helper);f=c(this).data("draggable").options;if(g.css("zIndex")){f._zIndex=g.css("zIndex")}g.css("zIndex",f.zIndex)},stop:function(g,f){g=c(this).data("draggable").options;g._zIndex&&c(f.helper).css("zIndex",g._zIndex)}})})(jQuery);(function(c){c.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var g=this.options,f=g.accept;this.isover=0;this.isout=1;this.accept=c.isFunction(f)?f:function(d){return d.is(f)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};c.ui.ddmanager.droppables[g.scope]=c.ui.ddmanager.droppables[g.scope]||[];c.ui.ddmanager.droppables[g.scope].push(this);g.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var g=c.ui.ddmanager.droppables[this.options.scope],f=0;f<g.length;f++){g[f]==this&&g.splice(f,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(g,f){if(g=="accept"){this.accept=c.isFunction(f)?f:function(d){return d.is(f)}}c.Widget.prototype._setOption.apply(this,arguments)},_activate:function(g){var f=c.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);f&&this._trigger("activate",g,this.ui(f))},_deactivate:function(g){var f=c.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",g,this.ui(f))},_over:function(g){var f=c.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0])){if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",g,this.ui(f))}}},_out:function(g){var f=c.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0])){if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",g,this.ui(f))}}},_drop:function(m,l){var h=l||c.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0]){return false}var k=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=c.data(this,"droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope==h.options.scope&&d.accept.call(d.element[0],h.currentItem||h.element)&&c.ui.intersect(h,c.extend(d,{offset:d.element.offset()}),d.options.tolerance)){k=true;return false}});if(k){return false}if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",m,this.ui(h));return this.element}return false},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8.10"});c.ui.intersect=function(w,v,s){if(!v.offset){return false}var u=(w.positionAbs||w.position.absolute).left,y=u+w.helperProportions.width,x=(w.positionAbs||w.position.absolute).top,r=x+w.helperProportions.height,o=v.offset.left,m=o+v.proportions.width,l=v.offset.top,k=l+v.proportions.height;switch(s){case"fit":return o<=u&&y<=m&&l<=x&&r<=k;case"intersect":return o<u+w.helperProportions.width/2&&y-w.helperProportions.width/2<m&&l<x+w.helperProportions.height/2&&r-w.helperProportions.height/2<k;case"pointer":return c.ui.isOver((w.positionAbs||w.position.absolute).top+(w.clickOffset||w.offset.click).top,(w.positionAbs||w.position.absolute).left+(w.clickOffset||w.offset.click).left,l,o,v.proportions.height,v.proportions.width);case"touch":return(x>=l&&x<=k||r>=l&&r<=k||x<l&&r>k)&&(u>=o&&u<=m||y>=o&&y<=m||u<o&&y>m);default:return false}};c.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(r,o){var m=c.ui.ddmanager.droppables[r.options.scope]||[],n=o?o.type:null,k=(r.currentItem||r.element).find(":data(droppable)").andSelf(),s=0;k:for(;s<m.length;s++){if(!(m[s].options.disabled||r&&!m[s].accept.call(m[s].element[0],r.currentItem||r.element))){for(var l=0;l<k.length;l++){if(k[l]==m[s].element[0]){m[s].proportions.height=0;continue k}}m[s].visible=m[s].element.css("display")!="none";if(m[s].visible){m[s].offset=m[s].element.offset();m[s].proportions={width:m[s].element[0].offsetWidth,height:m[s].element[0].offsetHeight};n=="mousedown"&&m[s]._activate.call(m[s],o)}}}},drop:function(k,h){var f=false;c.each(c.ui.ddmanager.droppables[k.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&c.ui.intersect(k,this,this.options.tolerance)){f=f||this._drop.call(this,h)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],k.currentItem||k.element)){this.isout=1;this.isover=0;this._deactivate.call(this,h)}}});return f},drag:function(g,f){g.options.refreshPositions&&c.ui.ddmanager.prepareOffsets(g,f);c.each(c.ui.ddmanager.droppables[g.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=c.ui.intersect(g,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var h;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length){h=c.data(d[0],"droppable");h.greedyChild=e=="isover"?1:0}}if(h&&e=="isover"){h.isover=0;h.isout=1;h._out.call(h,f)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,f);if(h&&e=="isout"){h.isout=0;h.isover=1;h._over.call(h,f)}}}})}}})(jQuery);(function(c){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var l=this,m=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!m.aspectRatio,aspectRatio:m.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:m.helper||m.ghost||m.animate?m.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=m.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var d=this.handles.split(",");this.handles={};for(var n=0;n<d.length;n++){var k=c.trim(d[n]),e=c('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&e.css({zIndex:++m.zIndex});"se"==k&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(e)}}this._renderAxis=function(o){o=o||this.element;for(var s in this.handles){if(this.handles[s].constructor==String){this.handles[s]=c(this.handles[s],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var r=c(this.handles[s],this.element),h=0;h=/sw|ne|nw|se|n|s/.test(s)?r.outerHeight():r.outerWidth();r=["padding",/ne|nw|n/.test(s)?"Top":/se|sw|s/.test(s)?"Bottom":/^e$/.test(s)?"Right":"Left"].join("");o.css(r,h);this._proportionallyResize()}c(this.handles[s])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!l.resizing){if(this.className){var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}l.axis=h&&h[1]?h[1]:"se"}});if(m.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");l._handles.show()},function(){if(!l.resizing){c(this).addClass("ui-resizable-autohide");l._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(h){c(h).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);return this},_mouseCapture:function(e){var h=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){h=true}}return !this.options.disabled&&h},_mouseStart:function(k){var l=this.options,d=this.element.position(),m=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(m.is(".ui-draggable")||/absolute/.test(m.css("position"))){m.css({position:"absolute",top:d.top,left:d.left})}c.browser.opera&&/relative/.test(m.css("position"))&&m.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();d=g(this.helper.css("left"));var e=g(this.helper.css("top"));if(l.containment){d+=c(l.containment).scrollLeft()||0;e+=c(l.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:d,top:e};this.size=this._helper?{width:m.outerWidth(),height:m.outerHeight()}:{width:m.width(),height:m.height()};this.originalSize=this._helper?{width:m.outerWidth(),height:m.outerHeight()}:{width:m.width(),height:m.height()};this.originalPosition={left:d,top:e};this.sizeDiff={width:m.outerWidth()-m.width(),height:m.outerHeight()-m.height()};this.originalMousePosition={left:k.pageX,top:k.pageY};this.aspectRatio=typeof l.aspectRatio=="number"?l.aspectRatio:this.originalSize.width/this.originalSize.height||1;l=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",l=="auto"?this.axis+"-resize":l);m.addClass("ui-resizable-resizing");this._propagate("start",k);return true},_mouseDrag:function(e){var h=this.helper,d=this.originalMousePosition,k=this._change[this.axis];if(!k){return false}d=k.apply(this,[e,e.pageX-d.left||0,e.pageY-d.top||0]);if(this._aspectRatio||e.shiftKey){d=this._updateRatio(d,e)}d=this._respectSize(d,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(d);this._trigger("resize",e,this.ui());return false},_mouseStop:function(l){this.resizing=false;var m=this.options,d=this;if(this._helper){var n=this._proportionallyResizeElements,k=n.length&&/textarea/i.test(n[0].nodeName);n=k&&c.ui.hasScroll(n[0],"left")?0:d.sizeDiff.height;k=k?0:d.sizeDiff.width;k={width:d.helper.width()-k,height:d.helper.height()-n};n=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var e=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;m.animate||this.element.css(c.extend(k,{top:e,left:n}));d.helper.height(d.size.height);d.helper.width(d.size.width);this._helper&&!m.animate&&this._proportionallyResize()}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",l);this._helper&&this.helper.remove();return false},_updateCache:function(d){this.offset=this.helper.offset();if(f(d.left)){this.position.left=d.left}if(f(d.top)){this.position.top=d.top}if(f(d.height)){this.size.height=d.height}if(f(d.width)){this.size.width=d.width}},_updateRatio:function(e){var h=this.position,d=this.size,k=this.axis;if(e.height){e.width=d.height*this.aspectRatio}else{if(e.width){e.height=d.width/this.aspectRatio}}if(k=="sw"){e.left=h.left+(d.width-e.width);e.top=null}if(k=="nw"){e.top=h.top+(d.height-e.height);e.left=h.left+(d.width-e.width)}return e},_respectSize:function(s){var u=this.options,w=this.axis,v=f(s.width)&&u.maxWidth&&u.maxWidth<s.width,r=f(s.height)&&u.maxHeight&&u.maxHeight<s.height,o=f(s.width)&&u.minWidth&&u.minWidth>s.width,m=f(s.height)&&u.minHeight&&u.minHeight>s.height;if(o){s.width=u.minWidth}if(m){s.height=u.minHeight}if(v){s.width=u.maxWidth}if(r){s.height=u.maxHeight}var e=this.originalPosition.left+this.originalSize.width,d=this.position.top+this.size.height,k=/sw|nw|w/.test(w);w=/nw|ne|n/.test(w);if(o&&k){s.left=e-u.minWidth}if(v&&k){s.left=e-u.maxWidth}if(m&&w){s.top=d-u.minHeight}if(r&&w){s.top=d-u.maxHeight}if((u=!s.width&&!s.height)&&!s.left&&s.top){s.top=null}else{if(u&&!s.top&&s.left){s.left=null}}return s},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var k=this.helper||this.element,l=0;l<this._proportionallyResizeElements.length;l++){var d=this._proportionallyResizeElements[l];if(!this.borderDif){var m=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],e=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=c.map(m,function(n,h){n=parseInt(n,10)||0;h=parseInt(e[h],10)||0;return n+h})}c.browser.msie&&(c(k).is(":hidden")||c(k).parents(":hidden").length)||d.css({height:k.height()-this.borderDif[0]-this.borderDif[2]||0,width:k.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var h=c.browser.msie&&c.browser.version<7,d=h?1:0;h=h?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(d,e){return{width:this.originalSize.width+e}},w:function(d,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(e,h,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(e,h,d){return{height:this.originalSize.height+d}},se:function(e,h,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,h,d]))},sw:function(e,h,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,h,d]))},ne:function(e,h,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,h,d]))},nw:function(e,h,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,h,d]))}},_propagate:function(d,e){c.ui.plugin.call(this,d,[e,this.ui()]);d!="resize"&&this._trigger(d,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.10"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var d=c(this).data("resizable").options,e=function(h){c(h).each(function(){var k=c(this);k.data("resizable-alsoresize",{width:parseInt(k.width(),10),height:parseInt(k.height(),10),left:parseInt(k.css("left"),10),top:parseInt(k.css("top"),10),position:k.css("position")})})};if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];e(d.alsoResize)}else{c.each(d.alsoResize,function(h){e(h)})}}else{e(d.alsoResize)}},resize:function(m,n){var d=c(this).data("resizable");m=d.options;var o=d.originalSize,l=d.originalPosition,k={height:d.size.height-o.height||0,width:d.size.width-o.width||0,top:d.position.top-l.top||0,left:d.position.left-l.left||0},e=function(r,h){c(r).each(function(){var u=c(this),v=c(this).data("resizable-alsoresize"),s={},w=h&&h.length?h:u.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(w,function(y,x){if((y=(v[x]||0)+(k[x]||0))&&y>=0){s[x]=y||null}});if(c.browser.opera&&/relative/.test(u.css("position"))){d._revertToRelativePosition=true;u.css({position:"absolute",top:"auto",left:"auto"})}u.css(s)})};typeof m.alsoResize=="object"&&!m.alsoResize.nodeType?c.each(m.alsoResize,function(r,h){e(r,h)}):e(m.alsoResize)},stop:function(){var e=c(this).data("resizable"),h=e.options,d=function(k){c(k).each(function(){var l=c(this);l.css({position:l.data("resizable-alsoresize").position})})};if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?c.each(h.alsoResize,function(k){d(k)}):d(h.alsoResize)}c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(m){var n=c(this).data("resizable"),d=n.options,o=n._proportionallyResizeElements,l=o.length&&/textarea/i.test(o[0].nodeName),k=l&&c.ui.hasScroll(o[0],"left")?0:n.sizeDiff.height;l={width:n.size.width-(l?0:n.sizeDiff.width),height:n.size.height-k};k=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null;var e=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(c.extend(l,e&&k?{top:e,left:k}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var h={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};o&&o.length&&c(o[0]).css({width:h.width,height:h.height});n._updateCache(h);n._propagate("resize",m)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var m=c(this).data("resizable"),n=m.element,d=m.options.containment;if(n=d instanceof c?d.get(0):/parent/.test(d)?n.parent().get(0):d){m.containerElement=c(n);if(/document/.test(d)||d==document){m.containerOffset={left:0,top:0};m.containerPosition={left:0,top:0};m.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var o=c(n),l=[];c(["Top","Right","Left","Bottom"]).each(function(r,h){l[r]=g(o.css("padding"+h))});m.containerOffset=o.offset();m.containerPosition=o.position();m.containerSize={height:o.innerHeight()-l[3],width:o.innerWidth()-l[1]};d=m.containerOffset;var k=m.containerSize.height,e=m.containerSize.width;e=c.ui.hasScroll(n,"left")?n.scrollWidth:e;k=c.ui.hasScroll(n)?n.scrollHeight:k;m.parentData={element:n,left:d.left,top:d.top,width:e,height:k}}}},resize:function(m){var n=c(this).data("resizable"),d=n.options,o=n.containerOffset,l=n.position;m=n._aspectRatio||m.shiftKey;var k={top:0,left:0},e=n.containerElement;if(e[0]!=document&&/static/.test(e.css("position"))){k=o}if(l.left<(n._helper?o.left:0)){n.size.width+=n._helper?n.position.left-o.left:n.position.left-k.left;if(m){n.size.height=n.size.width/d.aspectRatio}n.position.left=d.helper?o.left:0}if(l.top<(n._helper?o.top:0)){n.size.height+=n._helper?n.position.top-o.top:n.position.top;if(m){n.size.width=n.size.height*d.aspectRatio}n.position.top=n._helper?o.top:0}n.offset.left=n.parentData.left+n.position.left;n.offset.top=n.parentData.top+n.position.top;d=Math.abs((n._helper?n.offset.left-k.left:n.offset.left-k.left)+n.sizeDiff.width);o=Math.abs((n._helper?n.offset.top-k.top:n.offset.top-o.top)+n.sizeDiff.height);l=n.containerElement.get(0)==n.element.parent().get(0);k=/relative|absolute/.test(n.containerElement.css("position"));if(l&&k){d-=n.parentData.left}if(d+n.size.width>=n.parentData.width){n.size.width=n.parentData.width-d;if(m){n.size.height=n.size.width/n.aspectRatio}}if(o+n.size.height>=n.parentData.height){n.size.height=n.parentData.height-o;if(m){n.size.width=n.size.height*n.aspectRatio}}},stop:function(){var m=c(this).data("resizable"),o=m.options,d=m.containerOffset,s=m.containerPosition,l=m.containerElement,k=c(m.helper),e=k.offset(),r=k.outerWidth()-m.sizeDiff.width;k=k.outerHeight()-m.sizeDiff.height;m._helper&&!o.animate&&/relative/.test(l.css("position"))&&c(this).css({left:e.left-s.left-d.left,width:r,height:k});m._helper&&!o.animate&&/static/.test(l.css("position"))&&c(this).css({left:e.left-s.left-d.left,width:r,height:k})}});c.ui.plugin.add("resizable","ghost",{start:function(){var e=c(this).data("resizable"),h=e.options,d=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var d=c(this).data("resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=c(this).data("resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}});c.ui.plugin.add("resizable","grid",{resize:function(){var m=c(this).data("resizable"),n=m.options,d=m.size,o=m.originalSize,l=m.originalPosition,k=m.axis;n.grid=typeof n.grid=="number"?[n.grid,n.grid]:n.grid;var e=Math.round((d.width-o.width)/(n.grid[0]||1))*(n.grid[0]||1);n=Math.round((d.height-o.height)/(n.grid[1]||1))*(n.grid[1]||1);if(/^(se|s|e)$/.test(k)){m.size.width=o.width+e;m.size.height=o.height+n}else{if(/^(ne)$/.test(k)){m.size.width=o.width+e;m.size.height=o.height+n;m.position.top=l.top-n}else{if(/^(sw)$/.test(k)){m.size.width=o.width+e;m.size.height=o.height+n}else{m.size.width=o.width+e;m.size.height=o.height+n;m.position.top=l.top-n}m.position.left=l.left-e}}}});var g=function(d){return parseInt(d,10)||0},f=function(d){return !isNaN(parseInt(d,10))}})(jQuery);(function(c){c.widget("ui.selectable",c.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var g=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=c(g.options.filter,g.element[0]);f.each(function(){var d=c(this),e=d.offset();c.data(this,"selectable-item",{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=c("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(k){var h=this;this.opos=[k.pageX,k.pageY];if(!this.options.disabled){var f=this.options;this.selectees=c(f.filter,this.element[0]);this._trigger("start",k);c(f.appendTo).append(this.helper);this.helper.css({left:k.clientX,top:k.clientY,width:0,height:0});f.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var d=c.data(this,"selectable-item");d.startselected=true;if(!k.metaKey){d.$element.removeClass("ui-selected");d.selected=false;d.$element.addClass("ui-unselecting");d.unselecting=true;h._trigger("unselecting",k,{unselecting:d.element})}});c(k.target).parents().andSelf().each(function(){var e=c.data(this,"selectable-item");if(e){var d=!k.metaKey||!e.$element.hasClass("ui-selected");e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting");e.unselecting=!d;e.selecting=d;(e.selected=d)?h._trigger("selecting",k,{selecting:e.element}):h._trigger("unselecting",k,{unselecting:e.element});return false}})}},_mouseDrag:function(s){var r=this;this.dragged=true;if(!this.options.disabled){var n=this.options,o=this.opos[0],k=this.opos[1],u=s.pageX,m=s.pageY;if(o>u){var l=u;u=o;o=l}if(k>m){l=m;m=k;k=l}this.helper.css({left:o,top:k,width:u-o,height:m-k});this.selectees.each(function(){var d=c.data(this,"selectable-item");if(!(!d||d.element==r.element[0])){var e=false;if(n.tolerance=="touch"){e=!(d.left>u||d.right<o||d.top>m||d.bottom<k)}else{if(n.tolerance=="fit"){e=d.left>o&&d.right<u&&d.top>k&&d.bottom<m}}if(e){if(d.selected){d.$element.removeClass("ui-selected");d.selected=false}if(d.unselecting){d.$element.removeClass("ui-unselecting");d.unselecting=false}if(!d.selecting){d.$element.addClass("ui-selecting");d.selecting=true;r._trigger("selecting",s,{selecting:d.element})}}else{if(d.selecting){if(s.metaKey&&d.startselected){d.$element.removeClass("ui-selecting");d.selecting=false;d.$element.addClass("ui-selected");d.selected=true}else{d.$element.removeClass("ui-selecting");d.selecting=false;if(d.startselected){d.$element.addClass("ui-unselecting");d.unselecting=true}r._trigger("unselecting",s,{unselecting:d.element})}}if(d.selected){if(!s.metaKey&&!d.startselected){d.$element.removeClass("ui-selected");d.selected=false;d.$element.addClass("ui-unselecting");d.unselecting=true;r._trigger("unselecting",s,{unselecting:d.element})}}}}});return false}},_mouseStop:function(g){var f=this;this.dragged=false;c(".ui-unselecting",this.element[0]).each(function(){var d=c.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",g,{unselected:d.element})});c(".ui-selecting",this.element[0]).each(function(){var d=c.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",g,{selected:d.element})});this._trigger("stop",g);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8.10"})})(jQuery);(function(c){c.widget("ui.sortable",c.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--){this.items[e].item.removeData("sortable-item")}return this},_setOption:function(g,f){if(g==="disabled"){this.options[g]=f;this.widget()[f?"addClass":"removeClass"]("ui-sortable-disabled")}else{c.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(n,m){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(n);var k=null,l=this;c(n.target).parents().each(function(){if(c.data(this,"sortable-item")==l){k=c(this);return false}});if(c.data(n.target,"sortable-item")==l){k=c(n.target)}if(!k){return false}if(this.options.handle&&!m){var h=false;c(this.options.handle,k).find("*").andSelf().each(function(){if(this==n.target){h=true}});if(!h){return false}}this.currentItem=k;this._removeCurrentsFromItems();return true},_mouseStart:function(m,l,h){l=this.options;var k=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(m);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");c.extend(this.offset,{click:{left:m.pageX-this.offset.left,top:m.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(m);this.originalPageX=m.pageX;this.originalPageY=m.pageY;l.cursorAt&&this._adjustOffsetFromHelper(l.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();l.containment&&this._setContainment();if(l.cursor){if(c("body").css("cursor")){this._storedCursor=c("body").css("cursor")}c("body").css("cursor",l.cursor)}if(l.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",l.opacity)}if(l.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",l.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",m,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h){for(h=this.containers.length-1;h>=0;h--){this.containers[h]._trigger("activate",m,k._uiHash(this))}}if(c.ui.ddmanager){c.ui.ddmanager.current=this}c.ui.ddmanager&&!l.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,m);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(m);return true},_mouseDrag:function(n){this.position=this._generatePosition(n);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var m=this.options,k=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-n.pageY<m.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop+m.scrollSpeed}else{if(n.pageY-this.overflowOffset.top<m.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop-m.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-n.pageX<m.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft+m.scrollSpeed}else{if(n.pageX-this.overflowOffset.left<m.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft-m.scrollSpeed}}}else{if(n.pageY-c(document).scrollTop()<m.scrollSensitivity){k=c(document).scrollTop(c(document).scrollTop()-m.scrollSpeed)}else{if(c(window).height()-(n.pageY-c(document).scrollTop())<m.scrollSensitivity){k=c(document).scrollTop(c(document).scrollTop()+m.scrollSpeed)}}if(n.pageX-c(document).scrollLeft()<m.scrollSensitivity){k=c(document).scrollLeft(c(document).scrollLeft()-m.scrollSpeed)}else{if(c(window).width()-(n.pageX-c(document).scrollLeft())<m.scrollSensitivity){k=c(document).scrollLeft(c(document).scrollLeft()+m.scrollSpeed)}}}k!==false&&c.ui.ddmanager&&!m.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,n)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(m=this.items.length-1;m>=0;m--){k=this.items[m];var l=k.item[0],h=this._intersectsWithPointer(k);if(h){if(l!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=l&&!c.ui.contains(this.placeholder[0],l)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],l):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(k)){this._rearrange(n,k)}else{break}this._trigger("change",n,this._uiHash());break}}}this._contactContainers(n);c.ui.ddmanager&&c.ui.ddmanager.drag(this,n);this._trigger("sort",n,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(k,h){if(k){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,k);if(this.options.revert){var f=this;h=f.placeholder.offset();f.reverting=true;c(this.helper).animate({left:h.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:h.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(k)})}else{this._clear(k,h)}return false}},cancel:function(){var g=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",null,g._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,g._uiHash(this));this.containers[f].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):c(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(k){var h=this._getItemsAsjQuery(k&&k.connected),f=[];k=k||{};c(h).each(function(){var d=(c(k.item||this).attr(k.attribute||"id")||"").match(k.expression||/(.+)[-=_](.+)/);if(d){f.push((k.key||d[1]+"[]")+"="+(k.key&&k.expression?d[1]:d[2]))}});!f.length&&k.key&&f.push(k.key+"=");return f.join("&")},toArray:function(k){var h=this._getItemsAsjQuery(k&&k.connected),f=[];k=k||{};h.each(function(){f.push(c(k.item||this).attr(k.attribute||"id")||"")});return f},_intersectsWith:function(w){var v=this.positionAbs.left,s=v+this.helperProportions.width,u=this.positionAbs.top,y=u+this.helperProportions.height,x=w.left,r=x+w.width,o=w.top,m=o+w.height,l=this.offset.click.top,k=this.offset.click.left;l=u+l>o&&u+l<m&&v+k>x&&v+k<r;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>w[this.floating?"width":"height"]?l:x<v+this.helperProportions.width/2&&s-this.helperProportions.width/2<r&&o<u+this.helperProportions.height/2&&y-this.helperProportions.height/2<m},_intersectsWithPointer:function(k){var h=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,k.top,k.height);k=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,k.left,k.width);h=h&&k;k=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!h){return false}return this.floating?f&&f=="right"||k=="down"?2:1:k&&(k=="down"?2:1)},_intersectsWithSides:function(m){var l=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,m.top+m.height/2,m.height);m=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,m.left+m.width/2,m.width);var h=this._getDragVerticalDirection(),k=this._getDragHorizontalDirection();return this.floating&&k?k=="right"&&m||k=="left"&&!m:h&&(h=="down"&&l||h=="up"&&!l)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!=0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!=0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this.refreshPositions();return this},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(r){var o=[],m=[],n=this._connectWith();if(n&&r){for(r=n.length-1;r>=0;r--){for(var k=c(n[r]),s=k.length-1;s>=0;s--){var l=c.data(k[s],"sortable");if(l&&l!=this&&!l.options.disabled){m.push([c.isFunction(l.options.items)?l.options.items.call(l.element):c(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}}}}m.push([c.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(r=m.length-1;r>=0;r--){m[r][0].each(function(){o.push(this)})}return c(o)},_removeCurrentsFromItems:function(){for(var k=this.currentItem.find(":data(sortable-item)"),h=0;h<this.items.length;h++){for(var f=0;f<k.length;f++){k[f]==this.items[h].item[0]&&this.items.splice(h,1)}}},_refreshItems:function(s){this.items=[];this.containers=[this];var r=this.items,n=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],s,{item:this.currentItem}):c(this.options.items,this.element),this]],o=this._connectWith();if(o){for(var k=o.length-1;k>=0;k--){for(var u=c(o[k]),m=u.length-1;m>=0;m--){var l=c.data(u[m],"sortable");if(l&&l!=this&&!l.options.disabled){n.push([c.isFunction(l.options.items)?l.options.items.call(l.element[0],s,{item:this.currentItem}):c(l.options.items,l.element),l]);this.containers.push(l)}}}}for(k=n.length-1;k>=0;k--){s=n[k][1];o=n[k][0];m=0;for(u=o.length;m<u;m++){l=c(o[m]);l.data("sortable-item",s);r.push({item:l,instance:s,width:0,height:0,left:0,top:0})}}},refreshPositions:function(m){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var l=this.items.length-1;l>=0;l--){var h=this.items[l],k=this.options.toleranceElement?c(this.options.toleranceElement,h.item):h.item;if(!m){h.width=k.outerWidth();h.height=k.outerHeight()}k=k.offset();h.left=k.left;h.top=k.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(l=this.containers.length-1;l>=0;l--){k=this.containers[l].element.offset();this.containers[l].containerCache.left=k.left;this.containers[l].containerCache.top=k.top;this.containers[l].containerCache.width=this.containers[l].element.outerWidth();this.containers[l].containerCache.height=this.containers[l].element.outerHeight()}}return this},_createPlaceholder:function(m){var l=m||this,h=l.options;if(!h.placeholder||h.placeholder.constructor==String){var k=h.placeholder;h.placeholder={element:function(){var d=c(document.createElement(l.currentItem[0].nodeName)).addClass(k||l.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!k){d.style.visibility="hidden"}return d},update:function(d,e){if(!(k&&!h.forcePlaceholderSize)){e.height()||e.height(l.currentItem.innerHeight()-parseInt(l.currentItem.css("paddingTop")||0,10)-parseInt(l.currentItem.css("paddingBottom")||0,10));e.width()||e.width(l.currentItem.innerWidth()-parseInt(l.currentItem.css("paddingLeft")||0,10)-parseInt(l.currentItem.css("paddingRight")||0,10))}}}}l.placeholder=c(h.placeholder.element.call(l.element,l.currentItem));l.currentItem.after(l.placeholder);h.placeholder.update(l,l.placeholder)},_contactContainers:function(r){for(var o=null,m=null,n=this.containers.length-1;n>=0;n--){if(!c.ui.contains(this.currentItem[0],this.containers[n].element[0])){if(this._intersectsWith(this.containers[n].containerCache)){if(!(o&&c.ui.contains(this.containers[n].element[0],o.element[0]))){o=this.containers[n];m=n}}else{if(this.containers[n].containerCache.over){this.containers[n]._trigger("out",r,this._uiHash(this));this.containers[n].containerCache.over=0}}}}if(o){if(this.containers.length===1){this.containers[m]._trigger("over",r,this._uiHash(this));this.containers[m].containerCache.over=1}else{if(this.currentContainer!=this.containers[m]){o=10000;n=null;for(var k=this.positionAbs[this.containers[m].floating?"left":"top"],s=this.items.length-1;s>=0;s--){if(c.ui.contains(this.containers[m].element[0],this.items[s].item[0])){var l=this.items[s][this.containers[m].floating?"left":"top"];if(Math.abs(l-k)<o){o=Math.abs(l-k);n=this.items[s]}}}if(n||this.options.dropOnEmpty){this.currentContainer=this.containers[m];n?this._rearrange(r,n,null,true):this._rearrange(r,null,this.containers[m].element,true);this._trigger("change",r,this._uiHash());this.containers[m]._trigger("change",r,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[m]._trigger("over",r,this._uiHash(this));this.containers[m].containerCache.over=1}}}}},_createHelper:function(g){var f=this.options;g=c.isFunction(f.helper)?c(f.helper.apply(this.element[0],[g,this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;g.parents("body").length||c(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(g[0]);if(g[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(g[0].style.width==""||f.forceHelperSize){g.width(this.currentItem.width())}if(g[0].style.height==""||f.forceHelperSize){g.height(this.currentItem.height())}return g},_adjustOffsetFromHelper:function(e){if(typeof e=="string"){e=e.split(" ")}if(c.isArray(e)){e={left:+e[0],top:+e[1]||0}}if("left" in e){this.offset.click.left=e.left+this.margins.left}if("right" in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left}if("top" in e){this.offset.click.top=e.top+this.margins.top}if("bottom" in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie){e={top:0,left:0}}return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var k=this.options;if(k.containment=="parent"){k.containment=this.helper[0].parentNode}if(k.containment=="document"||k.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(k.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(k.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(k.containment)){var h=c(k.containment)[0];k=c(k.containment).offset();var f=c(h).css("overflow")!="hidden";this.containment=[k.left+(parseInt(c(h).css("borderLeftWidth"),10)||0)+(parseInt(c(h).css("paddingLeft"),10)||0)-this.margins.left,k.top+(parseInt(c(h).css("borderTopWidth"),10)||0)+(parseInt(c(h).css("paddingTop"),10)||0)-this.margins.top,k.left+(f?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(c(h).css("borderLeftWidth"),10)||0)-(parseInt(c(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,k.top+(f?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(c(h).css("borderTopWidth"),10)||0)-(parseInt(c(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(m,l){if(!l){l=this.position}m=m=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=/(html|body)/i.test(h[0].tagName);return{top:l.top+this.offset.relative.top*m+this.offset.parent.top*m-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():k?0:h.scrollTop())*m),left:l.left+this.offset.relative.left*m+this.offset.parent.left*m-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:h.scrollLeft())*m)}},_generatePosition:function(n){var m=this.options,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(k[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var h=n.pageX,o=n.pageY;if(this.originalPosition){if(this.containment){if(n.pageX-this.offset.click.left<this.containment[0]){h=this.containment[0]+this.offset.click.left}if(n.pageY-this.offset.click.top<this.containment[1]){o=this.containment[1]+this.offset.click.top}if(n.pageX-this.offset.click.left>this.containment[2]){h=this.containment[2]+this.offset.click.left}if(n.pageY-this.offset.click.top>this.containment[3]){o=this.containment[3]+this.offset.click.top}}if(m.grid){o=this.originalPageY+Math.round((o-this.originalPageY)/m.grid[1])*m.grid[1];o=this.containment?!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:!(o-this.offset.click.top<this.containment[1])?o-m.grid[1]:o+m.grid[1]:o;h=this.originalPageX+Math.round((h-this.originalPageX)/m.grid[0])*m.grid[0];h=this.containment?!(h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2])?h:!(h-this.offset.click.left<this.containment[0])?h-m.grid[0]:h+m.grid[0]:h}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():l?0:k.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():l?0:k.scrollLeft())}},_rearrange:function(n,m,k,l){k?k[0].appendChild(this.placeholder[0]):m.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?m.item[0]:m.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var h=this,o=this.counter;window.setTimeout(function(){o==h.counter&&h.refreshPositions(!l)},0)},_clear:function(m,l){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var k in this._storedCSS){if(this._storedCSS[k]=="auto"||this._storedCSS[k]=="static"){this._storedCSS[k]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!l&&h.push(function(d){this._trigger("receive",d,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!l){h.push(function(d){this._trigger("update",d,this._uiHash())})}if(!c.ui.contains(this.element[0],this.currentItem[0])){l||h.push(function(d){this._trigger("remove",d,this._uiHash())});for(k=this.containers.length-1;k>=0;k--){if(c.ui.contains(this.containers[k].element[0],this.currentItem[0])&&!l){h.push(function(d){return function(e){d._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[k]));h.push(function(d){return function(e){d._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[k]))}}}for(k=this.containers.length-1;k>=0;k--){l||h.push(function(d){return function(e){d._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[k]));if(this.containers[k].containerCache.over){h.push(function(d){return function(e){d._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[k]));this.containers[k].containerCache.over=0}}this._storedCursor&&c("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!l){this._trigger("beforeStop",m,this._uiHash());for(k=0;k<h.length;k++){h[k].call(this,m)}this._trigger("stop",m,this._uiHash())}return false}l||this._trigger("beforeStop",m,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!l){for(k=0;k<h.length;k++){h[k].call(this,m)}this._trigger("stop",m,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(g){var f=g||this;return{helper:f.helper,placeholder:f.placeholder||c([]),position:f.position,originalPosition:f.originalPosition,offset:f.positionAbs,item:f.currentItem,sender:g?g.element:null}}});c.extend(c.ui.sortable,{version:"1.8.10"})})(jQuery);jQuery.effects||function(y,w){function v(c){var d;if(c&&c.constructor==Array&&c.length==3){return c}if(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c)){return[parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)]}if(d=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c)){return[parseFloat(d[1])*2.55,parseFloat(d[2])*2.55,parseFloat(d[3])*2.55]}if(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c)){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}if(d=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c)){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(c)){return m.transparent}return m[y.trim(c).toLowerCase()]}function s(d,e){var c;do{c=y.curCSS(d,e);if(c!=""&&c!="transparent"||y.nodeName(d,"body")){break}e="backgroundColor"}while(d=d.parentNode);return v(c)}function u(){var d=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,e={},c,g;if(d&&d.length&&d[0]&&d[d[0]]){for(var f=d.length;f--;){c=d[f];if(typeof d[c]=="string"){g=c.replace(/\-(\w)/g,function(h,n){return n.toUpperCase()});e[g]=d[c]}}}else{for(c in d){if(typeof d[c]==="string"){e[c]=d[c]}}}return e}function z(d){var e,c;for(e in d){c=d[e];if(c==null||y.isFunction(c)||e in k||/scrollbar/.test(e)||!/color/i.test(e)&&isNaN(parseFloat(c))){delete d[e]}}return d}function x(d,e){var c={_:0},f;for(f in e){if(d[f]!=e[f]){c[f]=e[f]}}return c}function r(d,e,c,f){if(typeof d=="object"){f=e;c=null;e=d;d=e.effect}if(y.isFunction(e)){f=e;c=null;e={}}if(typeof e=="number"||y.fx.speeds[e]){f=c;c=e;e={}}if(y.isFunction(c)){f=c;c=null}e=e||{};c=c||e.duration;c=y.fx.off?0:typeof c=="number"?c:c in y.fx.speeds?y.fx.speeds[c]:y.fx.speeds._default;f=f||e.complete;return[d,e,c,f]}function o(c){if(!c||typeof c==="number"||y.fx.speeds[c]){return true}if(typeof c==="string"&&!y.effects[c]){return true}return false}y.effects={};y.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,d){y.fx.step[d]=function(e){if(!e.colorInit){e.start=s(e.elem,d);e.end=v(e.end);e.colorInit=true}e.elem.style[d]="rgb("+Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1],10),255),0)+","+Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2],10),255),0)+")"}});var m={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},l=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};y.effects.animateClass=function(d,e,c,f){if(y.isFunction(c)){f=c;c=null}return this.queue("fx",function(){var B=y(this),n=B.attr("style")||" ",A=z(u.call(this)),h,g=B.attr("className");y.each(l,function(C,D){d[D]&&B[D+"Class"](d[D])});h=z(u.call(this));B.attr("className",g);B.animate(x(A,h),e,c,function(){y.each(l,function(C,D){d[D]&&B[D+"Class"](d[D])});if(typeof B.attr("style")=="object"){B.attr("style").cssText="";B.attr("style").cssText=n}else{B.attr("style",n)}f&&f.apply(this,arguments)});A=y.queue(this);h=A.splice(A.length-1,1)[0];A.splice(1,0,h);y.dequeue(this)})};y.fn.extend({_addClass:y.fn.addClass,addClass:function(d,e,c,f){return e?y.effects.animateClass.apply(this,[{add:d},e,c,f]):this._addClass(d)},_removeClass:y.fn.removeClass,removeClass:function(d,e,c,f){return e?y.effects.animateClass.apply(this,[{remove:d},e,c,f]):this._removeClass(d)},_toggleClass:y.fn.toggleClass,toggleClass:function(d,e,c,g,f){return typeof e=="boolean"||e===w?c?y.effects.animateClass.apply(this,[e?{add:d}:{remove:d},c,g,f]):this._toggleClass(d,e):y.effects.animateClass.apply(this,[{toggle:d},e,c,g])},switchClass:function(d,e,c,g,f){return y.effects.animateClass.apply(this,[{add:e,remove:d},c,g,f])}});y.extend(y.effects,{version:"1.8.10",save:function(d,e){for(var c=0;c<e.length;c++){e[c]!==null&&d.data("ec.storage."+e[c],d[0].style[e[c]])}},restore:function(d,e){for(var c=0;c<e.length;c++){e[c]!==null&&d.css(e[c],d.data("ec.storage."+e[c]))}},setMode:function(c,d){if(d=="toggle"){d=c.is(":hidden")?"show":"hide"}return d},getBaseline:function(d,e){var c;switch(d[0]){case"top":c=0;break;case"middle":c=0.5;break;case"bottom":c=1;break;default:c=d[0]/e.height}switch(d[1]){case"left":d=0;break;case"center":d=0.5;break;case"right":d=1;break;default:d=d[1]/e.width}return{x:d,y:c}},createWrapper:function(d){if(d.parent().is(".ui-effects-wrapper")){return d.parent()}var e={width:d.outerWidth(true),height:d.outerHeight(true),"float":d.css("float")},c=y("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});d.wrap(c);c=d.parent();if(d.css("position")=="static"){c.css({position:"relative"});d.css({position:"relative"})}else{y.extend(e,{position:d.css("position"),zIndex:d.css("z-index")});y.each(["top","left","bottom","right"],function(g,f){e[f]=d.css(f);if(isNaN(parseInt(e[f],10))){e[f]="auto"}});d.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return c.css(e).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper")){return c.parent().replaceWith(c)}return c},setTransition:function(d,e,c,f){f=f||{};y.each(e,function(h,g){unit=d.cssUnit(g);if(unit[0]>0){f[g]=unit[0]*c+unit[1]}});return f}});y.fn.extend({effect:function(d){var e=r.apply(this,arguments),c={options:e[1],duration:e[2],callback:e[3]};e=c.options.mode;var f=y.effects[d];if(y.fx.off||!f){return e?this[e](c.duration,c.callback):this.each(function(){c.callback&&c.callback.call(this)})}return f.call(this,c)},_show:y.fn.show,show:function(c){if(o(c)){return this._show.apply(this,arguments)}else{var d=r.apply(this,arguments);d[1].mode="show";return this.effect.apply(this,d)}},_hide:y.fn.hide,hide:function(c){if(o(c)){return this._hide.apply(this,arguments)}else{var d=r.apply(this,arguments);d[1].mode="hide";return this.effect.apply(this,d)}},__toggle:y.fn.toggle,toggle:function(c){if(o(c)||typeof c==="boolean"||y.isFunction(c)){return this.__toggle.apply(this,arguments)}else{var d=r.apply(this,arguments);d[1].mode="toggle";return this.effect.apply(this,d)}},cssUnit:function(d){var e=this.css(d),c=[];y.each(["em","px","%","pt"],function(g,f){if(e.indexOf(f)>0){c=[parseFloat(e),f]}});return c}});y.easing.jswing=y.easing.swing;y.extend(y.easing,{def:"easeOutQuad",swing:function(d,e,c,g,f){return y.easing[y.easing.def](d,e,c,g,f)},easeInQuad:function(d,e,c,g,f){return g*(e/=f)*e+c},easeOutQuad:function(d,e,c,g,f){return -g*(e/=f)*(e-2)+c},easeInOutQuad:function(d,e,c,g,f){if((e/=f/2)<1){return g/2*e*e+c}return -g/2*(--e*(e-2)-1)+c},easeInCubic:function(d,e,c,g,f){return g*(e/=f)*e*e+c},easeOutCubic:function(d,e,c,g,f){return g*((e=e/f-1)*e*e+1)+c},easeInOutCubic:function(d,e,c,g,f){if((e/=f/2)<1){return g/2*e*e*e+c}return g/2*((e-=2)*e*e+2)+c},easeInQuart:function(d,e,c,g,f){return g*(e/=f)*e*e*e+c},easeOutQuart:function(d,e,c,g,f){return -g*((e=e/f-1)*e*e*e-1)+c},easeInOutQuart:function(d,e,c,g,f){if((e/=f/2)<1){return g/2*e*e*e*e+c}return -g/2*((e-=2)*e*e*e-2)+c},easeInQuint:function(d,e,c,g,f){return g*(e/=f)*e*e*e*e+c},easeOutQuint:function(d,e,c,g,f){return g*((e=e/f-1)*e*e*e*e+1)+c},easeInOutQuint:function(d,e,c,g,f){if((e/=f/2)<1){return g/2*e*e*e*e*e+c}return g/2*((e-=2)*e*e*e*e+2)+c},easeInSine:function(d,e,c,g,f){return -g*Math.cos(e/f*(Math.PI/2))+g+c},easeOutSine:function(d,e,c,g,f){return g*Math.sin(e/f*(Math.PI/2))+c},easeInOutSine:function(d,e,c,g,f){return -g/2*(Math.cos(Math.PI*e/f)-1)+c},easeInExpo:function(d,e,c,g,f){return e==0?c:g*Math.pow(2,10*(e/f-1))+c},easeOutExpo:function(d,e,c,g,f){return e==f?c+g:g*(-Math.pow(2,-10*e/f)+1)+c},easeInOutExpo:function(d,e,c,g,f){if(e==0){return c}if(e==f){return c+g}if((e/=f/2)<1){return g/2*Math.pow(2,10*(e-1))+c}return g/2*(-Math.pow(2,-10*--e)+2)+c},easeInCirc:function(d,e,c,g,f){return -g*(Math.sqrt(1-(e/=f)*e)-1)+c},easeOutCirc:function(d,e,c,g,f){return g*Math.sqrt(1-(e=e/f-1)*e)+c},easeInOutCirc:function(d,e,c,g,f){if((e/=f/2)<1){return -g/2*(Math.sqrt(1-e*e)-1)+c}return g/2*(Math.sqrt(1-(e-=2)*e)+1)+c},easeInElastic:function(d,e,c,n,h){d=1.70158;var f=0,g=n;if(e==0){return c}if((e/=h)==1){return c+n}f||(f=h*0.3);if(g<Math.abs(n)){g=n;d=f/4}else{d=f/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(e-=1))*Math.sin((e*h-d)*2*Math.PI/f))+c},easeOutElastic:function(d,e,c,n,h){d=1.70158;var f=0,g=n;if(e==0){return c}if((e/=h)==1){return c+n}f||(f=h*0.3);if(g<Math.abs(n)){g=n;d=f/4}else{d=f/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*e)*Math.sin((e*h-d)*2*Math.PI/f)+n+c},easeInOutElastic:function(d,e,c,n,h){d=1.70158;var f=0,g=n;if(e==0){return c}if((e/=h/2)==2){return c+n}f||(f=h*0.3*1.5);if(g<Math.abs(n)){g=n;d=f/4}else{d=f/(2*Math.PI)*Math.asin(n/g)}if(e<1){return -0.5*g*Math.pow(2,10*(e-=1))*Math.sin((e*h-d)*2*Math.PI/f)+c}return g*Math.pow(2,-10*(e-=1))*Math.sin((e*h-d)*2*Math.PI/f)*0.5+n+c},easeInBack:function(d,e,c,h,g,f){if(f==w){f=1.70158}return h*(e/=g)*e*((f+1)*e-f)+c},easeOutBack:function(d,e,c,h,g,f){if(f==w){f=1.70158}return h*((e=e/g-1)*e*((f+1)*e+f)+1)+c},easeInOutBack:function(d,e,c,h,g,f){if(f==w){f=1.70158}if((e/=g/2)<1){return h/2*e*e*(((f*=1.525)+1)*e-f)+c}return h/2*((e-=2)*e*(((f*=1.525)+1)*e+f)+2)+c},easeInBounce:function(d,e,c,g,f){return g-y.easing.easeOutBounce(d,f-e,0,g,f)+c},easeOutBounce:function(d,e,c,g,f){return(e/=f)<1/2.75?g*7.5625*e*e+c:e<2/2.75?g*(7.5625*(e-=1.5/2.75)*e+0.75)+c:e<2.5/2.75?g*(7.5625*(e-=2.25/2.75)*e+0.9375)+c:g*(7.5625*(e-=2.625/2.75)*e+0.984375)+c},easeInOutBounce:function(d,e,c,g,f){if(e<f/2){return y.easing.easeInBounce(d,e*2,0,g,f)*0.5+c}return y.easing.easeOutBounce(d,e*2-f,0,g,f)*0.5+g*0.5+c}})}(jQuery);(function(c){c.effects.blind=function(e){return this.queue(function(){var o=c(this),m=["position","top","bottom","left","right"],n=c.effects.setMode(o,e.options.mode||"hide"),d=e.options.direction||"vertical";c.effects.save(o,m);o.show();var r=c.effects.createWrapper(o).css({overflow:"hidden"}),l=d=="vertical"?"height":"width";d=d=="vertical"?r.height():r.width();n=="show"&&r.css(l,0);var k={};k[l]=n=="show"?d:0;r.animate(k,e.duration,e.options.easing,function(){n=="hide"&&o.hide();c.effects.restore(o,m);c.effects.removeWrapper(o);e.callback&&e.callback.apply(o[0],arguments);o.dequeue()})})}})(jQuery);(function(c){c.effects.bounce=function(e){return this.queue(function(){var w=c(this),u=["position","top","bottom","left","right"],v=c.effects.setMode(w,e.options.mode||"effect"),y=e.options.direction||"up",x=e.options.distance||20,s=e.options.times||5,r=e.duration||250;/show|hide/.test(v)&&u.push("opacity");c.effects.save(w,u);w.show();c.effects.createWrapper(w);var o=y=="up"||y=="down"?"top":"left";y=y=="up"||y=="left"?"pos":"neg";x=e.options.distance||(o=="top"?w.outerHeight({margin:true})/3:w.outerWidth({margin:true})/3);if(v=="show"){w.css("opacity",0).css(o,y=="pos"?-x:x)}if(v=="hide"){x/=s*2}v!="hide"&&s--;if(v=="show"){var k={opacity:1};k[o]=(y=="pos"?"+=":"-=")+x;w.animate(k,r/2,e.options.easing);x/=2;s--}for(k=0;k<s;k++){var d={},m={};d[o]=(y=="pos"?"-=":"+=")+x;m[o]=(y=="pos"?"+=":"-=")+x;w.animate(d,r/2,e.options.easing).animate(m,r/2,e.options.easing);x=v=="hide"?x*2:x/2}if(v=="hide"){k={opacity:0};k[o]=(y=="pos"?"-=":"+=")+x;w.animate(k,r/2,e.options.easing,function(){w.hide();c.effects.restore(w,u);c.effects.removeWrapper(w);e.callback&&e.callback.apply(this,arguments)})}else{d={};m={};d[o]=(y=="pos"?"-=":"+=")+x;m[o]=(y=="pos"?"+=":"-=")+x;w.animate(d,r/2,e.options.easing).animate(m,r/2,e.options.easing,function(){c.effects.restore(w,u);c.effects.removeWrapper(w);e.callback&&e.callback.apply(this,arguments)})}w.queue("fx",function(){w.dequeue()});w.dequeue()})}})(jQuery);(function(c){c.effects.clip=function(e){return this.queue(function(){var o=c(this),m=["position","top","bottom","left","right","height","width"],n=c.effects.setMode(o,e.options.mode||"hide"),d=e.options.direction||"vertical";c.effects.save(o,m);o.show();var r=c.effects.createWrapper(o).css({overflow:"hidden"});r=o[0].tagName=="IMG"?r:o;var l={size:d=="vertical"?"height":"width",position:d=="vertical"?"top":"left"};d=d=="vertical"?r.height():r.width();if(n=="show"){r.css(l.size,0);r.css(l.position,d/2)}var k={};k[l.size]=n=="show"?d:0;k[l.position]=n=="show"?0:d/2;r.animate(k,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){n=="hide"&&o.hide();c.effects.restore(o,m);c.effects.removeWrapper(o);e.callback&&e.callback.apply(o[0],arguments);o.dequeue()}})})}})(jQuery);(function(c){c.effects.drop=function(e){return this.queue(function(){var o=c(this),m=["position","top","bottom","left","right","opacity"],n=c.effects.setMode(o,e.options.mode||"hide"),d=e.options.direction||"left";c.effects.save(o,m);o.show();c.effects.createWrapper(o);var r=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var l=e.options.distance||(r=="top"?o.outerHeight({margin:true})/2:o.outerWidth({margin:true})/2);if(n=="show"){o.css("opacity",0).css(r,d=="pos"?-l:l)}var k={opacity:n=="show"?1:0};k[r]=(n=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+l;o.animate(k,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){n=="hide"&&o.hide();c.effects.restore(o,m);c.effects.removeWrapper(o);e.callback&&e.callback.apply(this,arguments);o.dequeue()}})})}})(jQuery);(function(c){c.effects.explode=function(e){return this.queue(function(){var r=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,n=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode=e.options.mode=="toggle"?c(this).is(":visible")?"hide":"show":e.options.mode;var o=c(this).show().css("visibility","hidden"),d=o.offset();d.top-=parseInt(o.css("marginTop"),10)||0;d.left-=parseInt(o.css("marginLeft"),10)||0;for(var s=o.outerWidth(true),m=o.outerHeight(true),l=0;l<r;l++){for(var k=0;k<n;k++){o.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-k*(s/n),top:-l*(m/r)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s/n,height:m/r,left:d.left+k*(s/n)+(e.options.mode=="show"?(k-Math.floor(n/2))*(s/n):0),top:d.top+l*(m/r)+(e.options.mode=="show"?(l-Math.floor(r/2))*(m/r):0),opacity:e.options.mode=="show"?0:1}).animate({left:d.left+k*(s/n)+(e.options.mode=="show"?0:(k-Math.floor(n/2))*(s/n)),top:d.top+l*(m/r)+(e.options.mode=="show"?0:(l-Math.floor(r/2))*(m/r)),opacity:e.options.mode=="show"?1:0},e.duration||500)}}setTimeout(function(){e.options.mode=="show"?o.css({visibility:"visible"}):o.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(o[0]);o.dequeue();c("div.ui-effects-explode").remove()},e.duration||500)})}})(jQuery);(function(c){c.effects.fade=function(e){return this.queue(function(){var f=c(this),d=c.effects.setMode(f,e.options.mode||"hide");f.animate({opacity:d},{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);(function(c){c.effects.fold=function(e){return this.queue(function(){var u=c(this),r=["position","top","bottom","left","right"],s=c.effects.setMode(u,e.options.mode||"hide"),w=e.options.size||15,v=!!e.options.horizFirst,o=e.duration?e.duration/2:c.fx.speeds._default/2;c.effects.save(u,r);u.show();var m=c.effects.createWrapper(u).css({overflow:"hidden"}),l=s=="show"!=v,k=l?["width","height"]:["height","width"];l=l?[m.width(),m.height()]:[m.height(),m.width()];var d=/([0-9]+)%/.exec(w);if(d){w=parseInt(d[1],10)/100*l[s=="hide"?0:1]}if(s=="show"){m.css(v?{height:0,width:w}:{height:w,width:0})}v={};d={};v[k[0]]=s=="show"?l[0]:w;d[k[1]]=s=="show"?l[1]:0;m.animate(v,o,e.options.easing).animate(d,o,e.options.easing,function(){s=="hide"&&u.hide();c.effects.restore(u,r);c.effects.removeWrapper(u);e.callback&&e.callback.apply(u[0],arguments);u.dequeue()})})}})(jQuery);(function(c){c.effects.highlight=function(e){return this.queue(function(){var l=c(this),h=["backgroundImage","backgroundColor","opacity"],k=c.effects.setMode(l,e.options.mode||"show"),d={backgroundColor:l.css("backgroundColor")};if(k=="hide"){d.opacity=0}c.effects.save(l,h);l.show().css({backgroundImage:"none",backgroundColor:e.options.color||"#ffff99"}).animate(d,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){k=="hide"&&l.hide();c.effects.restore(l,h);k=="show"&&!c.support.opacity&&this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);l.dequeue()}})})}})(jQuery);(function(c){c.effects.pulsate=function(e){return this.queue(function(){var f=c(this),d=c.effects.setMode(f,e.options.mode||"show");times=(e.options.times||5)*2-1;duration=e.duration?e.duration/2:c.fx.speeds._default/2;isVisible=f.is(":visible");animateTo=0;if(!isVisible){f.css("opacity",0).show();animateTo=1}if(d=="hide"&&isVisible||d=="show"&&!isVisible){times--}for(d=0;d<times;d++){f.animate({opacity:animateTo},duration,e.options.easing);animateTo=(animateTo+1)%2}f.animate({opacity:animateTo},duration,e.options.easing,function(){animateTo==0&&f.hide();e.callback&&e.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()}).dequeue()})}})(jQuery);(function(c){c.effects.puff=function(e){return this.queue(function(){var l=c(this),h=c.effects.setMode(l,e.options.mode||"hide"),k=parseInt(e.options.percent,10)||150,d=k/100,m={height:l.height(),width:l.width()};c.extend(e.options,{fade:true,mode:h,percent:h=="hide"?k:100,from:h=="hide"?m:{height:m.height*d,width:m.width*d}});l.effect("scale",e.options,e.duration,e.callback);l.dequeue()})};c.effects.scale=function(e){return this.queue(function(){var n=c(this),l=c.extend(true,{},e.options),m=c.effects.setMode(n,e.options.mode||"effect"),d=parseInt(e.options.percent,10)||(parseInt(e.options.percent,10)==0?0:m=="hide"?0:100),o=e.options.direction||"both",k=e.options.origin;if(m!="effect"){l.origin=k||["middle","center"];l.restore=true}k={height:n.height(),width:n.width()};n.from=e.options.from||(m=="show"?{height:0,width:0}:k);d={y:o!="horizontal"?d/100:1,x:o!="vertical"?d/100:1};n.to={height:k.height*d.y,width:k.width*d.x};if(e.options.fade){if(m=="show"){n.from.opacity=0;n.to.opacity=1}if(m=="hide"){n.from.opacity=1;n.to.opacity=0}}l.from=n.from;l.to=n.to;l.mode=m;n.effect("size",l,e.duration,e.callback);n.dequeue()})};c.effects.size=function(e){return this.queue(function(){var A=c(this),y=["position","top","bottom","left","right","width","height","overflow","opacity"],z=["position","top","bottom","left","right","overflow","opacity"],C=["width","height","overflow"],B=["fontSize"],x=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],w=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],v=c.effects.setMode(A,e.options.mode||"effect"),o=e.options.restore||false,d=e.options.scale||"both",s=e.options.origin,u={height:A.height(),width:A.width()};A.from=e.options.from||u;A.to=e.options.to||u;if(s){s=c.effects.getBaseline(s,u);A.from.top=(u.height-A.from.height)*s.y;A.from.left=(u.width-A.from.width)*s.x;A.to.top=(u.height-A.to.height)*s.y;A.to.left=(u.width-A.to.width)*s.x}var r={from:{y:A.from.height/u.height,x:A.from.width/u.width},to:{y:A.to.height/u.height,x:A.to.width/u.width}};if(d=="box"||d=="both"){if(r.from.y!=r.to.y){y=y.concat(x);A.from=c.effects.setTransition(A,x,r.from.y,A.from);A.to=c.effects.setTransition(A,x,r.to.y,A.to)}if(r.from.x!=r.to.x){y=y.concat(w);A.from=c.effects.setTransition(A,w,r.from.x,A.from);A.to=c.effects.setTransition(A,w,r.to.x,A.to)}}if(d=="content"||d=="both"){if(r.from.y!=r.to.y){y=y.concat(B);A.from=c.effects.setTransition(A,B,r.from.y,A.from);A.to=c.effects.setTransition(A,B,r.to.y,A.to)}}c.effects.save(A,o?y:z);A.show();c.effects.createWrapper(A);A.css("overflow","hidden").css(A.from);if(d=="content"||d=="both"){x=x.concat(["marginTop","marginBottom"]).concat(B);w=w.concat(["marginLeft","marginRight"]);C=y.concat(x).concat(w);A.find("*[width]").each(function(){child=c(this);o&&c.effects.save(child,C);var f={height:child.height(),width:child.width()};child.from={height:f.height*r.from.y,width:f.width*r.from.x};child.to={height:f.height*r.to.y,width:f.width*r.to.x};if(r.from.y!=r.to.y){child.from=c.effects.setTransition(child,x,r.from.y,child.from);child.to=c.effects.setTransition(child,x,r.to.y,child.to)}if(r.from.x!=r.to.x){child.from=c.effects.setTransition(child,w,r.from.x,child.from);child.to=c.effects.setTransition(child,w,r.to.x,child.to)}child.css(child.from);child.animate(child.to,e.duration,e.options.easing,function(){o&&c.effects.restore(child,C)})})}A.animate(A.to,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){A.to.opacity===0&&A.css("opacity",A.from.opacity);v=="hide"&&A.hide();c.effects.restore(A,o?y:z);c.effects.removeWrapper(A);e.callback&&e.callback.apply(this,arguments);A.dequeue()}})})}})(jQuery);(function(c){c.effects.shake=function(e){return this.queue(function(){var u=c(this),r=["position","top","bottom","left","right"];c.effects.setMode(u,e.options.mode||"effect");var s=e.options.direction||"left",w=e.options.distance||20,v=e.options.times||3,o=e.duration||e.options.duration||140;c.effects.save(u,r);u.show();c.effects.createWrapper(u);var m=s=="up"||s=="down"?"top":"left",l=s=="up"||s=="left"?"pos":"neg";s={};var k={},d={};s[m]=(l=="pos"?"-=":"+=")+w;k[m]=(l=="pos"?"+=":"-=")+w*2;d[m]=(l=="pos"?"-=":"+=")+w*2;u.animate(s,o,e.options.easing);for(w=1;w<v;w++){u.animate(k,o,e.options.easing).animate(d,o,e.options.easing)}u.animate(k,o,e.options.easing).animate(s,o/2,e.options.easing,function(){c.effects.restore(u,r);c.effects.removeWrapper(u);e.callback&&e.callback.apply(this,arguments)});u.queue("fx",function(){u.dequeue()});u.dequeue()})}})(jQuery);(function(c){c.effects.slide=function(e){return this.queue(function(){var o=c(this),m=["position","top","bottom","left","right"],n=c.effects.setMode(o,e.options.mode||"show"),d=e.options.direction||"left";c.effects.save(o,m);o.show();c.effects.createWrapper(o).css({overflow:"hidden"});var r=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";var l=e.options.distance||(r=="top"?o.outerHeight({margin:true}):o.outerWidth({margin:true}));if(n=="show"){o.css(r,d=="pos"?isNaN(l)?"-"+l:-l:l)}var k={};k[r]=(n=="show"?d=="pos"?"+=":"-=":d=="pos"?"-=":"+=")+l;o.animate(k,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){n=="hide"&&o.hide();c.effects.restore(o,m);c.effects.removeWrapper(o);e.callback&&e.callback.apply(this,arguments);o.dequeue()}})})}})(jQuery);(function(c){c.effects.transfer=function(e){return this.queue(function(){var l=c(this),h=c(e.options.to),k=h.offset();h={top:k.top,left:k.left,height:h.innerHeight(),width:h.innerWidth()};k=l.offset();var d=c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:k.top,left:k.left,height:l.innerHeight(),width:l.innerWidth(),position:"absolute"}).animate(h,e.duration,e.options.easing,function(){d.remove();e.callback&&e.callback.apply(l[0],arguments);l.dequeue()})})}})(jQuery);(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var m=this,l=m.options;m.running=0;m.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");m.headers=m.element.find(l.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){l.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){l.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){l.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){l.disabled||c(this).removeClass("ui-state-focus")});m.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(l.navigation){var h=m.element.find("a").filter(l.navigationFilter).eq(0);if(h.length){var k=h.closest(".ui-accordion-header");m.active=k.length?k:h.closest(".ui-accordion-content").prev()}}m.active=m._findActive(m.active||l.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");m.active.next().addClass("ui-accordion-content-active");m._createIcons();m.resize();m.element.attr("role","tablist");m.headers.attr("role","tab").bind("keydown.accordion",function(d){return m._keydown(d)}).next().attr("role","tabpanel");m.headers.not(m.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();m.active.length?m.active.attr({"aria-expanded":"true",tabIndex:0}):m.headers.eq(0).attr("tabIndex",0);c.browser.safari||m.headers.find("a").attr("tabIndex",-1);l.event&&m.headers.bind(l.event.split(" ").join(".accordion ")+".accordion",function(d){m._clickHandler.call(m,d,this);d.preventDefault()})},_createIcons:function(){var e=this.options;if(e.icons){c("<span></span>").addClass("ui-icon "+e.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var g=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(g.autoHeight||g.fillHeight){f.css("height","")}return c.Widget.prototype.destroy.call(this)},_setOption:function(g,f){c.Widget.prototype._setOption.apply(this,arguments);g=="active"&&this.activate(f);if(g=="icons"){this._destroyIcons();f&&this._createIcons()}if(g=="disabled"){this.headers.add(this.headers.next())[f?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(n){if(!(this.options.disabled||n.altKey||n.ctrlKey)){var m=c.ui.keyCode,k=this.headers.length,l=this.headers.index(n.target),h=false;switch(n.keyCode){case m.RIGHT:case m.DOWN:h=this.headers[(l+1)%k];break;case m.LEFT:case m.UP:h=this.headers[(l-1+k)%k];break;case m.SPACE:case m.ENTER:this._clickHandler({target:n.target},n.target);n.preventDefault()}if(h){c(n.target).attr("tabIndex",-1);c(h).attr("tabIndex",0);h.focus();return false}return true}},resize:function(){var k=this.options,h;if(k.fillSpace){if(c.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}h=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){h-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,h-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else{if(k.autoHeight){h=0;this.headers.next().each(function(){h=Math.max(h,c(this).height("").height())}).height(h)}}return this},activate:function(e){this.options.active=e;e=this._findActive(e)[0];this._clickHandler({target:e},e);return this},_findActive:function(e){return e?typeof e==="number"?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):e===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(s,r){var n=this.options;if(!n.disabled){if(s.target){s=c(s.currentTarget||r);r=s[0]===this.active[0];n.active=n.collapsible&&r?false:this.headers.index(s);if(!(this.running||!n.collapsible&&r)){var o=this.active;l=s.next();u=this.active.next();m={options:n,newHeader:r&&n.collapsible?c([]):s,oldHeader:this.active,newContent:r&&n.collapsible?c([]):l,oldContent:u};var k=this.headers.index(this.active[0])>this.headers.index(s[0]);this.active=r?c([]):s;this._toggle(l,u,m,r,k);o.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);if(!r){s.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(n.icons.header).addClass(n.icons.headerSelected);s.next().addClass("ui-accordion-content-active")}}}else{if(n.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header);this.active.next().addClass("ui-accordion-content-active");var u=this.active.next(),m={options:n,newHeader:c([]),oldHeader:n.active,newContent:c([]),oldContent:u},l=this.active=c([]);this._toggle(l,u,m)}}}},_toggle:function(v,u,r,s,x){var w=this,o=w.options;w.toShow=v;w.toHide=u;w.data=r;var m=function(){if(w){return w._completed.apply(w,arguments)}};w._trigger("changestart",null,w.data);w.running=u.size()===0?v.size():u.size();if(o.animated){r={};r=o.collapsible&&s?{toShow:c([]),toHide:u,complete:m,down:x,autoHeight:o.autoHeight||o.fillSpace}:{toShow:v,toHide:u,complete:m,down:x,autoHeight:o.autoHeight||o.fillSpace};if(!o.proxied){o.proxied=o.animated}if(!o.proxiedDuration){o.proxiedDuration=o.duration}o.animated=c.isFunction(o.proxied)?o.proxied(r):o.proxied;o.duration=c.isFunction(o.proxiedDuration)?o.proxiedDuration(r):o.proxiedDuration;s=c.ui.accordion.animations;var l=o.duration,k=o.animated;if(k&&!s[k]&&!c.easing[k]){k="slide"}s[k]||(s[k]=function(d){this.slide(d,{easing:k,duration:l||700})});s[k](r)}else{if(o.collapsible&&s){v.toggle()}else{u.hide();v.show()}m(true)}u.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();v.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(e){this.running=e?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className}this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.10",animations:{slide:function(r,o){r=c.extend({easing:"swing",duration:300},r,o);if(r.toHide.size()){if(r.toShow.size()){var m=r.toShow.css("overflow"),n=0,k={},s={},l;o=r.toShow;l=o[0].style.width;o.width(parseInt(o.parent().width(),10)-parseInt(o.css("paddingLeft"),10)-parseInt(o.css("paddingRight"),10)-(parseInt(o.css("borderLeftWidth"),10)||0)-(parseInt(o.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(e,d){s[d]="hide";e=(""+c.css(r.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);k[d]={value:e[1],unit:e[2]||"px"}});r.toShow.css({height:0,overflow:"hidden"}).show();r.toHide.filter(":hidden").each(r.complete).end().filter(":visible").animate(s,{step:function(e,d){if(d.prop=="height"){n=d.end-d.start===0?0:(d.now-d.start)/(d.end-d.start)}r.toShow[0].style[d.prop]=n*k[d.prop].value+k[d.prop].unit},duration:r.duration,easing:r.easing,complete:function(){r.autoHeight||r.toShow.css("height","");r.toShow.css({width:l,overflow:m});r.complete()}})}else{r.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},r)}}else{r.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},r)}},bounceslide:function(e){this.slide(e,{easing:e.down?"easeOutBounce":"swing",duration:e.down?1000:200})}}})})(jQuery);(function(c){var e=0;c.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var k=this,d=this.element[0].ownerDocument,h;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(f){if(!(k.options.disabled||k.element.attr("readonly"))){h=false;var g=c.ui.keyCode;switch(f.keyCode){case g.PAGE_UP:k._move("previousPage",f);break;case g.PAGE_DOWN:k._move("nextPage",f);break;case g.UP:k._move("previous",f);f.preventDefault();break;case g.DOWN:k._move("next",f);f.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(k.menu.active){h=true;f.preventDefault()}case g.TAB:if(!k.menu.active){return}k.menu.select(f);break;case g.ESCAPE:k.element.val(k.term);k.close(f);break;default:clearTimeout(k.searching);k.searching=setTimeout(function(){if(k.term!=k.element.val()){k.selectedItem=null;k.search(null,f)}},k.options.delay);break}}}).bind("keypress.autocomplete",function(f){if(h){h=false;f.preventDefault()}}).bind("focus.autocomplete",function(){if(!k.options.disabled){k.selectedItem=null;k.previous=k.element.val()}}).bind("blur.autocomplete",function(f){if(!k.options.disabled){clearTimeout(k.searching);k.closing=setTimeout(function(){k.close(f);k._change(f)},150)}});this._initSource();this.response=function(){return k._response.apply(k,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo(c(this.options.appendTo||"body",d)[0]).mousedown(function(f){var g=k.menu.element[0];c(f.target).closest(".ui-menu-item").length||setTimeout(function(){c(document).one("mousedown",function(l){l.target!==k.element[0]&&l.target!==g&&!c.ui.contains(g,l.target)&&k.close()})},1);setTimeout(function(){clearTimeout(k.closing)},13)}).menu({focus:function(f,g){g=g.item.data("item.autocomplete");false!==k._trigger("focus",f,{item:g})&&/^key/.test(f.originalEvent.type)&&k.element.val(g.value)},selected:function(f,m){var l=m.item.data("item.autocomplete"),g=k.previous;if(k.element[0]!==d.activeElement){k.element.focus();k.previous=g;setTimeout(function(){k.previous=g;k.selectedItem=l},1)}false!==k._trigger("select",f,{item:l})&&k.element.val(l.value);k.term=k.element.val();k.close(f);k.selectedItem=l},blur:function(){k.menu.element.is(":visible")&&k.element.val()!==k.term&&k.element.val(k.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(f,d){c.Widget.prototype._setOption.apply(this,arguments);f==="source"&&this._initSource();if(f==="appendTo"){this.menu.element.appendTo(c(d||"body",this.element[0].ownerDocument)[0])}f==="disabled"&&d&&this.xhr&&this.xhr.abort()},_initSource:function(){var k=this,d,h;if(c.isArray(this.options.source)){d=this.options.source;this.source=function(f,g){g(c.ui.autocomplete.filter(d,f.term))}}else{if(typeof this.options.source==="string"){h=this.options.source;this.source=function(f,g){k.xhr&&k.xhr.abort();k.xhr=c.ajax({url:h,data:f,dataType:"json",autocompleteRequest:++e,success:function(l){this.autocompleteRequest===e&&g(l)},error:function(){this.autocompleteRequest===e&&g([])}})}}else{this.source=this.options.source}}},search:function(f,d){f=f!=null?f:this.element.val();this.term=this.element.val();if(f.length<this.options.minLength){return this.close(d)}clearTimeout(this.closing);if(this._trigger("search",d)!==false){return this._search(f)}},_search:function(d){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response)},_response:function(d){if(!this.options.disabled&&d&&d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else{this.close()}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",d)}},_change:function(d){this.previous!==this.element.val()&&this._trigger("change",d,{item:this.selectedItem})},_normalize:function(d){if(d.length&&d[0].label&&d[0].value){return d}return c.map(d,function(f){if(typeof f==="string"){return{label:f,value:f}}return c.extend({label:f.label||f.value,value:f.value||f.label},f)})},_suggest:function(f){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(d,f);this.menu.deactivate();this.menu.refresh();d.show();this._resizeMenu();d.position(c.extend({of:this.element},this.options.position))},_resizeMenu:function(){var d=this.menu.element;d.outerWidth(Math.max(d.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(k,d){var h=this;c.each(d,function(f,g){h._renderItem(k,g)})},_renderItem:function(f,d){return c("<li></li>").data("item.autocomplete",d).append(c("<a></a>").text(d.label)).appendTo(f)},_move:function(f,d){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(f)||this.menu.last()&&/^next/.test(f)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[f](d)}}else{this.search(null,d)}},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(k,d){var h=new RegExp(c.ui.autocomplete.escapeRegex(d),"i");return c.grep(k,function(f){return h.test(f.label||f.value||f)})}})})(jQuery);(function(c){c.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(c(d.target).closest(".ui-menu-item a").length){d.preventDefault();e.select(d)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(d){e.activate(d,c(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(n,m){this.deactivate();if(this.hasScroll()){var k=m.offset().top-this.element.offset().top,l=this.element.attr("scrollTop"),h=this.element.height();if(k<0){this.element.attr("scrollTop",l+k)}else{k>=h&&this.element.attr("scrollTop",l+k-h+m.height())}}this.active=m.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",n,{item:m})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(k,h,f){if(this.active){k=this.active[k+"All"](".ui-menu-item").eq(0);k.length?this.activate(f,k):this.activate(f,this.element.children(h))}else{this.activate(f,this.element.children(h))}},nextPage:function(m){if(this.hasScroll()){if(!this.active||this.last()){this.activate(m,this.element.children(".ui-menu-item:first"))}else{var l=this.active.offset().top,h=this.element.height(),k=this.element.children(".ui-menu-item").filter(function(){var d=c(this).offset().top-l-h+c(this).height();return d<10&&d>-10});k.length||(k=this.element.children(".ui-menu-item:last"));this.activate(m,k)}}else{this.activate(m,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(k){if(this.hasScroll()){if(!this.active||this.first()){this.activate(k,this.element.children(".ui-menu-item:last"))}else{var h=this.active.offset().top,f=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var d=c(this).offset().top-h+f-c(this).height();return d<10&&d>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(k,result)}}else{this.activate(k,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);(function(c){var k,h=function(d){c(":ui-button",d.target.form).each(function(){var e=c(this).data("button");setTimeout(function(){e.refresh()},1)})},f=function(g){var d=g.name,l=g.form,e=c([]);if(d){e=l?c(l).find("[name='"+d+"']"):c("[name='"+d+"']",g.ownerDocument).filter(function(){return !this.form})}return e};c.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,d=this.options,l=this.type==="checkbox"||this.type==="radio",e="ui-state-hover"+(!l?" ui-state-active":"");if(d.label===null){d.label=this.buttonElement.html()}if(this.element.is(":disabled")){d.disabled=true}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!d.disabled){c(this).addClass("ui-state-hover");this===k&&c(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){d.disabled||c(this).removeClass(e)}).bind("focus.button",function(){c(this).addClass("ui-state-focus")}).bind("blur.button",function(){c(this).removeClass("ui-state-focus")});l&&this.element.bind("change.button",function(){g.refresh()});if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(d.disabled){return false}c(this).toggleClass("ui-state-active");g.buttonElement.attr("aria-pressed",g.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(d.disabled){return false}c(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",true);var m=g.element[0];f(m).not(m).map(function(){return c(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(d.disabled){return false}c(this).addClass("ui-state-active");k=this;c(document).one("mouseup",function(){k=null})}).bind("mouseup.button",function(){if(d.disabled){return false}c(this).removeClass("ui-state-active")}).bind("keydown.button",function(m){if(d.disabled){return false}if(m.keyCode==c.ui.keyCode.SPACE||m.keyCode==c.ui.keyCode.ENTER){c(this).addClass("ui-state-active")}}).bind("keyup.button",function(){c(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(m){m.keyCode===c.ui.keyCode.SPACE&&c(this).click()})}}this._setOption("disabled",d.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var d=this.element.is(":checked");d&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",d)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");c.Widget.prototype.destroy.call(this)},_setOption:function(e,d){c.Widget.prototype._setOption.apply(this,arguments);if(e==="disabled"){d?this.element.attr("disabled",true):this.element.removeAttr("disabled")}this._resetButton()},refresh:function(){var d=this.element.is(":disabled");d!==this.options.disabled&&this._setOption("disabled",d);if(this.type==="radio"){f(this.element[0]).each(function(){c(this).is(":checked")?c(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):c(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)})}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label)}else{var l=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),d=c("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(l.empty()).text(),m=this.options.icons,g=m.primary&&m.secondary,e=[];if(m.primary||m.secondary){e.push("ui-button-text-icon"+(g?"s":m.primary?"-primary":"-secondary"));m.primary&&l.prepend("<span class='ui-button-icon-primary ui-icon "+m.primary+"'></span>");m.secondary&&l.append("<span class='ui-button-icon-secondary ui-icon "+m.secondary+"'></span>");if(!this.options.text){e.push(g?"ui-button-icons-only":"ui-button-icon-only");l.removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");this.hasTitle||l.attr("title",d)}}else{e.push("ui-button-text-only")}l.addClass(e.join(" "))}}});c.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,d){e==="disabled"&&this.buttons.button("option",e,d);c.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");c.Widget.prototype.destroy.call(this)}})})(jQuery);(function(b,d){function e(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function g(a,c){b.extend(a,c);for(var h in c){if(c[h]==null||c[h]==d){a[h]=c[h]}}return a}b.extend(b.ui,{datepicker:{version:"1.8.10"}});var f=(new Date).getTime();b.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){g(this._defaults,a||{});return this},_attachDatepicker:function(a,c){var h=null;for(var i in this._defaults){var j=a.getAttribute("date:"+i);if(j){h=h||{};try{h[i]=eval(j)}catch(n){h[i]=j}}}i=a.nodeName.toLowerCase();j=i=="div"||i=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var q=this._newInst(b(a),j);q.settings=b.extend({},c||{},h||{});if(i=="input"){this._connectDatepicker(a,q)}else{j&&this._inlineDatepicker(a,q)}},_newInst:function(a,c){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,c){var h=b(a);c.append=b([]);c.trigger=b([]);if(!h.hasClass(this.markerClassName)){this._attachments(h,c);h.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,j,n){c.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(c,j)});this._autoSize(c);b.data(a,"datepicker",c)}},_attachments:function(a,c){var h=this._get(c,"appendText"),i=this._get(c,"isRTL");c.append&&c.append.remove();if(h){c.append=b('<span class="'+this._appendClass+'">'+h+"</span>");a[i?"before":"after"](c.append)}a.unbind("focus",this._showDatepicker);c.trigger&&c.trigger.remove();h=this._get(c,"showOn");if(h=="focus"||h=="both"){a.focus(this._showDatepicker)}if(h=="button"||h=="both"){h=this._get(c,"buttonText");var j=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:j,alt:h,title:h}):b('<button type="button"></button>').addClass(this._triggerClass).html(j==""?h:b("<img/>").attr({src:j,alt:h,title:h})));a[i?"before":"after"](c.trigger);c.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var c=new Date(2009,11,20),h=this._get(a,"dateFormat");if(h.match(/[DM]/)){var i=function(j){for(var n=0,q=0,l=0;l<j.length;l++){if(j[l].length>n){n=j[l].length;q=l}}return q};c.setMonth(i(this._get(a,h.match(/MM/)?"monthNames":"monthNamesShort")));c.setDate(i(this._get(a,h.match(/DD/)?"dayNames":"dayNamesShort"))+20-c.getDay())}a.input.attr("size",this._formatDate(a,c).length)}},_inlineDatepicker:function(a,c){var h=b(a);if(!h.hasClass(this.markerClassName)){h.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(i,j,n){c.settings[j]=n}).bind("getData.datepicker",function(i,j){return this._get(c,j)});b.data(a,"datepicker",c);this._setDate(c,this._getDefaultDate(c),true);this._updateDatepicker(c);this._updateAlternate(c);c.dpDiv.show()}},_dialogDatepicker:function(a,c,h,i,j){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}g(a.settings,i||{});c=c&&c.constructor==Date?this._formatDate(a,c):c;this._dialogInput.val(c);this._pos=j?j.length?j:[j.pageX,j.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=h;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();b.removeData(a,"datepicker");if(i=="input"){h.append.remove();h.trigger.remove();c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(i=="div"||i=="span"){c.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=false;h.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(i=="div"||i=="span"){c.children("."+this._inlineClass).children().removeClass("ui-state-disabled")}}this._disabledInputs=b.map(this._disabledInputs,function(j){return j==a?null:j})}},_disableDatepicker:function(a){var c=b(a),h=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var i=a.nodeName.toLowerCase();if(i=="input"){a.disabled=true;h.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(i=="div"||i=="span"){c.children("."+this._inlineClass).children().addClass("ui-state-disabled")}}this._disabledInputs=b.map(this._disabledInputs,function(j){return j==a?null:j});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var c=0;c<this._disabledInputs.length;c++){if(this._disabledInputs[c]==a){return true}}return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,c,h){var i=this._getInst(a);if(arguments.length==2&&typeof c=="string"){return c=="defaults"?b.extend({},b.datepicker._defaults):i?c=="all"?b.extend({},i.settings):this._get(i,c):null}var j=c||{};if(typeof c=="string"){j={};j[c]=h}if(i){this._curInst==i&&this._hideDatepicker();var n=this._getDateDatepicker(a,true);g(i.settings,j);this._attachments(b(a),i);this._autoSize(i);this._setDateDatepicker(a,n);this._updateDatepicker(i)}},_changeDatepicker:function(a,c,h){this._optionDatepicker(a,c,h)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,c){if(a=this._getInst(a)){this._setDate(a,c);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,c){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,c);return a?this._getDate(a):null},_doKeyDown:function(a){var c=b.datepicker._getInst(a.target),h=true,i=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=true;if(b.datepicker._datepickerShowing){switch(a.keyCode){case 9:b.datepicker._hideDatepicker();h=false;break;case 13:h=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",c.dpDiv);h[0]?b.datepicker._selectDay(a.target,c.selectedMonth,c.selectedYear,h[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey){b.datepicker._clearDate(a.target)}h=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey){b.datepicker._gotoToday(a.target)}h=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey){b.datepicker._adjustDate(a.target,i?+1:-1,"D")}h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M")}break;case 38:if(a.ctrlKey||a.metaKey){b.datepicker._adjustDate(a.target,-7,"D")}h=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){b.datepicker._adjustDate(a.target,i?-1:+1,"D")}h=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M")}break;case 40:if(a.ctrlKey||a.metaKey){b.datepicker._adjustDate(a.target,+7,"D")}h=a.ctrlKey||a.metaKey;break;default:h=false}}else{if(a.keyCode==36&&a.ctrlKey){b.datepicker._showDatepicker(this)}else{h=false}}if(h){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat"));var h=String.fromCharCode(a.charCode==d?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||h<" "||!c||c.indexOf(h)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a))){b.datepicker._setDateFromField(a);b.datepicker._updateAlternate(a);b.datepicker._updateDatepicker(a)}}catch(c){b.datepicker.log(c)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=b("input",a.parentNode)[0]}if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var c=b.datepicker._getInst(a);b.datepicker._curInst&&b.datepicker._curInst!=c&&b.datepicker._curInst.dpDiv.stop(true,true);var h=b.datepicker._get(c,"beforeShow");g(c.settings,h?h.apply(a,[a,c]):{});c.lastVal=null;b.datepicker._lastInput=a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog){a.value=""}if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var i=false;b(a).parents().each(function(){i|=b(this).css("position")=="fixed";return !i});if(i&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}h={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.dpDiv.empty();c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);h=b.datepicker._checkOffset(c,h,i);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":i?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"});if(!c.inline){h=b.datepicker._get(c,"showAnim");var j=b.datepicker._get(c,"duration"),n=function(){b.datepicker._datepickerShowing=true;var q=c.dpDiv.find("iframe.ui-datepicker-cover");if(q.length){var l=b.datepicker._getBorders(c.dpDiv);q.css({left:-l[0],top:-l[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()})}};c.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[h]?c.dpDiv.show(h,b.datepicker._get(c,"showOptions"),j,n):c.dpDiv[h||"show"](h?j:null,n);if(!h||!j){n()}c.input.is(":visible")&&!c.input.is(":disabled")&&c.input.focus();b.datepicker._curInst=c}}},_updateDatepicker:function(a){var c=this,h=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var i=a.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-h[0],top:-h[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!c._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();h=this._getNumberOfMonths(a);i=h[1];i>1?a.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(h[0]!=1||h[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var j=a.yearshtml;setTimeout(function(){j===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);j=a.yearshtml=null},0)}},_getBorders:function(a){var c=function(h){return{thin:1,medium:2,thick:3}[h]||h};return[parseFloat(c(a.css("border-left-width"))),parseFloat(c(a.css("border-top-width")))]},_checkOffset:function(a,c,h){var i=a.dpDiv.outerWidth(),j=a.dpDiv.outerHeight(),n=a.input?a.input.outerWidth():0,q=a.input?a.input.outerHeight():0,l=document.documentElement.clientWidth+b(document).scrollLeft(),k=document.documentElement.clientHeight+b(document).scrollTop();c.left-=this._get(a,"isRTL")?i-n:0;c.left-=h&&c.left==a.input.offset().left?b(document).scrollLeft():0;c.top-=h&&c.top==a.input.offset().top+q?b(document).scrollTop():0;c.left-=Math.min(c.left,c.left+i>l&&l>i?Math.abs(c.left+i-l):0);c.top-=Math.min(c.top,c.top+j>k&&k>j?Math.abs(j+q):0);return c},_findPos:function(a){for(var c=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));){a=a[c?"previousSibling":"nextSibling"]}a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var c=this._curInst;if(!(!c||a&&c!=b.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(c,"showAnim");var h=this._get(c,"duration"),i=function(){b.datepicker._tidyDialog(c);this._curInst=null};b.effects&&b.effects[a]?c.dpDiv.hide(a,b.datepicker._get(c,"showOptions"),h,i):c.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?h:null,i);a||i();if(a=this._get(c,"onClose")){a.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(a,c,h){a=b(a);var i=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(i,c+(h=="M"?this._get(i,"showCurrentAtPos"):0),h);this._updateDatepicker(i)}},_gotoToday:function(a){a=b(a);var c=this._getInst(a[0]);if(this._get(c,"gotoCurrent")&&c.currentDay){c.selectedDay=c.currentDay;c.drawMonth=c.selectedMonth=c.currentMonth;c.drawYear=c.selectedYear=c.currentYear}else{var h=new Date;c.selectedDay=h.getDate();c.drawMonth=c.selectedMonth=h.getMonth();c.drawYear=c.selectedYear=h.getFullYear()}this._notifyChange(c);this._adjustDate(a)},_selectMonthYear:function(a,c,h){a=b(a);var i=this._getInst(a[0]);i._selectingMonthYear=false;i["selected"+(h=="M"?"Month":"Year")]=i["draw"+(h=="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(i);this._adjustDate(a)},_clickMonthYear:function(a){var c=this._getInst(b(a)[0]);c.input&&c._selectingMonthYear&&setTimeout(function(){c.input.focus()},0);c._selectingMonthYear=!c._selectingMonthYear},_selectDay:function(a,c,h,i){var j=b(a);if(!(b(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(j[0]))){j=this._getInst(j[0]);j.selectedDay=j.currentDay=b("a",i).html();j.selectedMonth=j.currentMonth=c;j.selectedYear=j.currentYear=h;this._selectDate(a,this._formatDate(j,j.currentDay,j.currentMonth,j.currentYear))}},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,c){a=this._getInst(b(a)[0]);c=c!=null?c:this._formatDate(a);a.input&&a.input.val(c);this._updateAlternate(a);var h=this._get(a,"onSelect");if(h){h.apply(a.input?a.input[0]:null,[c,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var c=this._get(a,"altField");if(c){var h=this._get(a,"altFormat")||this._get(a,"dateFormat"),i=this._getDate(a),j=this.formatDate(h,i,this._getFormatConfig(a));b(c).each(function(){b(this).val(j)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var c=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((c-a)/86400000)/7)+1},parseDate:function(a,c,h){if(a==null||c==null){throw"Invalid arguments"}c=typeof c=="object"?c.toString():c+"";if(c==""){return null}var i=(h?h.shortYearCutoff:null)||this._defaults.shortYearCutoff;i=typeof i!="string"?i:(new Date).getFullYear()%100+parseInt(i,10);for(var j=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,n=(h?h.dayNames:null)||this._defaults.dayNames,q=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort,l=(h?h.monthNames:null)||this._defaults.monthNames,k=h=-1,m=-1,o=-1,p=false,s=function(x){(x=y+1<a.length&&a.charAt(y+1)==x)&&y++;return x},r=function(x){var C=s(x);x=new RegExp("^\\d{1,"+(x=="@"?14:x=="!"?20:x=="y"&&C?4:x=="o"?3:2)+"}");x=c.substring(w).match(x);if(!x){throw"Missing number at position "+w}w+=x[0].length;return parseInt(x[0],10)},u=function(x,C,J){x=s(x)?J:C;for(C=0;C<x.length;C++){if(c.substr(w,x[C].length).toLowerCase()==x[C].toLowerCase()){w+=x[C].length;return C+1}}throw"Unknown name at position "+w},v=function(){if(c.charAt(w)!=a.charAt(y)){throw"Unexpected literal at position "+w}w++},w=0,y=0;y<a.length;y++){if(p){if(a.charAt(y)=="'"&&!s("'")){p=false}else{v()}}else{switch(a.charAt(y)){case"d":m=r("d");break;case"D":u("D",j,n);break;case"o":o=r("o");break;case"m":k=r("m");break;case"M":k=u("M",q,l);break;case"y":h=r("y");break;case"@":var B=new Date(r("@"));h=B.getFullYear();k=B.getMonth()+1;m=B.getDate();break;case"!":B=new Date((r("!")-this._ticksTo1970)/10000);h=B.getFullYear();k=B.getMonth()+1;m=B.getDate();break;case"'":if(s("'")){v()}else{p=true}break;default:v()}}}if(h==-1){h=(new Date).getFullYear()}else{if(h<100){h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=i?0:-100)}}if(o>-1){k=1;m=o;do{i=this._getDaysInMonth(h,k-1);if(m<=i){break}k++;m-=i}while(1)}B=this._daylightSavingAdjust(new Date(h,k-1,m));if(B.getFullYear()!=h||B.getMonth()+1!=k||B.getDate()!=m){throw"Invalid date"}return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,c,h){if(!c){return""}var i=(h?h.dayNamesShort:null)||this._defaults.dayNamesShort,j=(h?h.dayNames:null)||this._defaults.dayNames,n=(h?h.monthNamesShort:null)||this._defaults.monthNamesShort;h=(h?h.monthNames:null)||this._defaults.monthNames;var q=function(s){(s=p+1<a.length&&a.charAt(p+1)==s)&&p++;return s},l=function(s,r,u){r=""+r;if(q(s)){for(;r.length<u;){r="0"+r}}return r},k=function(s,r,u,v){return q(s)?v[r]:u[r]},m="",o=false;if(c){for(var p=0;p<a.length;p++){if(o){if(a.charAt(p)=="'"&&!q("'")){o=false}else{m+=a.charAt(p)}}else{switch(a.charAt(p)){case"d":m+=l("d",c.getDate(),2);break;case"D":m+=k("D",c.getDay(),i,j);break;case"o":m+=l("o",(c.getTime()-(new Date(c.getFullYear(),0,0)).getTime())/86400000,3);break;case"m":m+=l("m",c.getMonth()+1,2);break;case"M":m+=k("M",c.getMonth(),n,h);break;case"y":m+=q("y")?c.getFullYear():(c.getYear()%100<10?"0":"")+c.getYear()%100;break;case"@":m+=c.getTime();break;case"!":m+=c.getTime()*10000+this._ticksTo1970;break;case"'":if(q("'")){m+="'"}else{o=true}break;default:m+=a.charAt(p)}}}}return m},_possibleChars:function(a){for(var c="",h=false,i=function(n){(n=j+1<a.length&&a.charAt(j+1)==n)&&j++;return n},j=0;j<a.length;j++){if(h){if(a.charAt(j)=="'"&&!i("'")){h=false}else{c+=a.charAt(j)}}else{switch(a.charAt(j)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":if(i("'")){c+="'"}else{h=true}break;default:c+=a.charAt(j)}}}return c},_get:function(a,c){return a.settings[c]!==d?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,c){if(a.input.val()!=a.lastVal){var h=this._get(a,"dateFormat"),i=a.lastVal=a.input?a.input.val():null,j,n;j=n=this._getDefaultDate(a);var q=this._getFormatConfig(a);try{j=this.parseDate(h,i,q)||n}catch(l){this.log(l);i=c?"":i}a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();a.currentDay=i?j.getDate():0;a.currentMonth=i?j.getMonth():0;a.currentYear=i?j.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,c,h){var i=function(n){var q=new Date;q.setDate(q.getDate()+n);return q},j=function(n){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),n,b.datepicker._getFormatConfig(a))}catch(q){}var l=(n.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,k=l.getFullYear(),m=l.getMonth();l=l.getDate();for(var o=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,p=o.exec(n);p;){switch(p[2]||"d"){case"d":case"D":l+=parseInt(p[1],10);break;case"w":case"W":l+=parseInt(p[1],10)*7;break;case"m":case"M":m+=parseInt(p[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break;case"y":case"Y":k+=parseInt(p[1],10);l=Math.min(l,b.datepicker._getDaysInMonth(k,m));break}p=o.exec(n)}return new Date(k,m,l)};if(c=(c=c==null||c===""?h:typeof c=="string"?j(c):typeof c=="number"?isNaN(c)?h:i(c):new Date(c.getTime()))&&c.toString()=="Invalid Date"?h:c){c.setHours(0);c.setMinutes(0);c.setSeconds(0);c.setMilliseconds(0)}return this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,c,h){var i=!c,j=a.selectedMonth,n=a.selectedYear;c=this._restrictMinMax(a,this._determineDate(a,c,new Date));a.selectedDay=a.currentDay=c.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=c.getMonth();a.drawYear=a.selectedYear=a.currentYear=c.getFullYear();if((j!=a.selectedMonth||n!=a.selectedYear)&&!h){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(i?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var c=new Date;c=this._daylightSavingAdjust(new Date(c.getFullYear(),c.getMonth(),c.getDate()));var h=this._get(a,"isRTL"),i=this._get(a,"showButtonPanel"),j=this._get(a,"hideIfNoPrevNext"),n=this._get(a,"navigationAsDateFormat"),q=this._getNumberOfMonths(a),l=this._get(a,"showCurrentAtPos"),k=this._get(a,"stepMonths"),m=q[0]!=1||q[1]!=1,o=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),p=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max");l=a.drawMonth-l;var r=a.drawYear;if(l<0){l+=12;r--}if(s){var u=this._daylightSavingAdjust(new Date(s.getFullYear(),s.getMonth()-q[0]*q[1]+1,s.getDate()));for(u=p&&u<p?p:u;this._daylightSavingAdjust(new Date(r,l,1))>u;){l--;if(l<0){l=11;r--}}}a.drawMonth=l;a.drawYear=r;u=this._get(a,"prevText");u=!n?u:this.formatDate(u,this._daylightSavingAdjust(new Date(r,l-k,1)),this._getFormatConfig(a));u=this._canAdjustMonth(a,-1,r,l)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+u+"</span></a>":j?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"e":"w")+'">'+u+"</span></a>";var v=this._get(a,"nextText");v=!n?v:this.formatDate(v,this._daylightSavingAdjust(new Date(r,l+k,1)),this._getFormatConfig(a));j=this._canAdjustMonth(a,+1,r,l)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+v+"</span></a>":j?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(h?"w":"e")+'">'+v+"</span></a>";k=this._get(a,"currentText");v=this._get(a,"gotoCurrent")&&a.currentDay?o:c;k=!n?k:this.formatDate(k,v,this._getFormatConfig(a));n=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+f+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";i=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(h?n:"")+(this._isInRange(a,v)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(h?"":n)+"</div>":"";n=parseInt(this._get(a,"firstDay"),10);n=isNaN(n)?0:n;k=this._get(a,"showWeek");v=this._get(a,"dayNames");this._get(a,"dayNamesShort");var w=this._get(a,"dayNamesMin"),y=this._get(a,"monthNames"),B=this._get(a,"monthNamesShort"),x=this._get(a,"beforeShowDay"),C=this._get(a,"showOtherMonths"),J=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),K="",G=0;G<q[0];G++){for(var N="",H=0;H<q[1];H++){var O=this._daylightSavingAdjust(new Date(r,l,a.selectedDay)),A=" ui-corner-all",D="";if(m){D+='<div class="ui-datepicker-group';if(q[1]>1){switch(H){case 0:D+=" ui-datepicker-group-first";A=" ui-corner-"+(h?"right":"left");break;case q[1]-1:D+=" ui-datepicker-group-last";A=" ui-corner-"+(h?"left":"right");break;default:D+=" ui-datepicker-group-middle";A="";break}}D+='">'}D+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+A+'">'+(/all|left/.test(A)&&G==0?h?j:u:"")+(/all|right/.test(A)&&G==0?h?u:j:"")+this._generateMonthYearHeader(a,l,r,p,s,G>0||H>0,y,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var E=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(A=0;A<7;A++){var z=(A+n)%7;E+="<th"+((A+n+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+v[z]+'">'+w[z]+"</span></th>"}D+=E+"</tr></thead><tbody>";E=this._getDaysInMonth(r,l);if(r==a.selectedYear&&l==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,E)}A=(this._getFirstDayOfMonth(r,l)-n+7)%7;E=m?6:Math.ceil((A+E)/7);z=this._daylightSavingAdjust(new Date(r,l,1-A));for(var P=0;P<E;P++){D+="<tr>";var Q=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(z)+"</td>";for(A=0;A<7;A++){var I=x?x.apply(a.input?a.input[0]:null,[z]):[true,""],F=z.getMonth()!=l,L=F&&!J||!I[0]||p&&z<p||s&&z>s;Q+='<td class="'+((A+n+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(z.getTime()==O.getTime()&&l==a.selectedMonth&&a._keyEvent||M.getTime()==z.getTime()&&M.getTime()==O.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!C?"":" "+I[1]+(z.getTime()==o.getTime()?" "+this._currentClass:"")+(z.getTime()==c.getTime()?" ui-datepicker-today":""))+'"'+((!F||C)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+f+".datepicker._selectDay('#"+a.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(F&&!C?"&#xa0;":L?'<span class="ui-state-default">'+z.getDate()+"</span>":'<a class="ui-state-default'+(z.getTime()==c.getTime()?" ui-state-highlight":"")+(z.getTime()==o.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+1);z=this._daylightSavingAdjust(z)}D+=Q+"</tr>"}l++;if(l>11){l=0;r++}D+="</tbody></table>"+(m?"</div>"+(q[0]>0&&H==q[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");N+=D}K+=N}K+=i+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return K},_generateMonthYearHeader:function(a,c,h,i,j,n,q,l){var k=this._get(a,"changeMonth"),m=this._get(a,"changeYear"),o=this._get(a,"showMonthAfterYear"),p='<div class="ui-datepicker-title">',s="";if(n||!k){s+='<span class="ui-datepicker-month">'+q[c]+"</span>"}else{q=i&&i.getFullYear()==h;var r=j&&j.getFullYear()==h;s+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var u=0;u<12;u++){if((!q||u>=i.getMonth())&&(!r||u<=j.getMonth())){s+='<option value="'+u+'"'+(u==c?' selected="selected"':"")+">"+l[u]+"</option>"}}s+="</select>"}o||(p+=s+(n||!(k&&m)?"&#xa0;":""));a.yearshtml="";if(n||!m){p+='<span class="ui-datepicker-year">'+h+"</span>"}else{l=this._get(a,"yearRange").split(":");var v=(new Date).getFullYear();q=function(w){w=w.match(/c[+-].*/)?h+parseInt(w.substring(1),10):w.match(/[+-].*/)?v+parseInt(w,10):parseInt(w,10);return isNaN(w)?v:w};c=q(l[0]);l=Math.max(c,q(l[1]||""));c=i?Math.max(c,i.getFullYear()):c;l=j?Math.min(l,j.getFullYear()):l;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";c<=l;c++){a.yearshtml+='<option value="'+c+'"'+(c==h?' selected="selected"':"")+">"+c+"</option>"}a.yearshtml+="</select>";if(b.browser.mozilla){p+='<select class="ui-datepicker-year"><option value="'+h+'" selected="selected">'+h+"</option></select>"}else{p+=a.yearshtml;a.yearshtml=null}}p+=this._get(a,"yearSuffix");if(o){p+=(n||!(k&&m)?"&#xa0;":"")+s}p+="</div>";return p},_adjustInstDate:function(a,c,h){var i=a.drawYear+(h=="Y"?c:0),j=a.drawMonth+(h=="M"?c:0);c=Math.min(a.selectedDay,this._getDaysInMonth(i,j))+(h=="D"?c:0);i=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(i,j,c)));a.selectedDay=i.getDate();a.drawMonth=a.selectedMonth=i.getMonth();a.drawYear=a.selectedYear=i.getFullYear();if(h=="M"||h=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,c){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");c=h&&c<h?h:c;return c=a&&c>a?a:c},_notifyChange:function(a){var c=this._get(a,"onChangeMonthYear");if(c){c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,c){return this._determineDate(a,this._get(a,c+"Date"),null)},_getDaysInMonth:function(a,c){return 32-this._daylightSavingAdjust(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return(new Date(a,c,1)).getDay()},_canAdjustMonth:function(a,c,h,i){var j=this._getNumberOfMonths(a);h=this._daylightSavingAdjust(new Date(h,i+(c<0?c:j[0]*j[1]),1));c<0&&h.setDate(this._getDaysInMonth(h.getFullYear(),h.getMonth()));return this._isInRange(a,h)},_isInRange:function(a,c){var h=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!h||c.getTime()>=h.getTime())&&(!a||c.getTime()<=a.getTime())},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff");c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);return{shortYearCutoff:c,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,c,h,i){if(!c){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}c=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(i,h,c)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),c,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!this.length){return this}if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c))}return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new e;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.10";window["DP_jQuery_"+f]=b})(jQuery);(function(c,k){var h={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},f={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(e){var d=c(this).css(e).offset().top;d<0&&c(this).css("top",e.top-d)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var m=this,d=m.options,r=d.title||"&#160;",l=c.ui.dialog.getTitleId(m.element),g=(m.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){if(d.closeOnEscape&&n.keyCode&&n.keyCode===c.ui.keyCode.ESCAPE){m.close(n);n.preventDefault()}}).attr({role:"dialog","aria-labelledby":l}).mousedown(function(n){m.moveToTop(false,n)});m.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var e=(m.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),o=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(n){m.close(n);return false}).appendTo(e);(m.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(o);c("<span></span>").addClass("ui-dialog-title").attr("id",l).html(r).prependTo(e);if(c.isFunction(d.beforeclose)&&!c.isFunction(d.beforeClose)){d.beforeClose=d.beforeclose}e.find("*").add(e).disableSelection();d.draggable&&c.fn.draggable&&m._makeDraggable();d.resizable&&c.fn.resizable&&m._makeResizable();m._createButtons(d.buttons);m._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var d=this;d.overlay&&d.overlay.destroy();d.uiDialog.hide();d.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");d.uiDialog.remove();d.originalTitle&&d.element.attr("title",d.originalTitle);return d},widget:function(){return this.uiDialog},close:function(g){var d=this,l,e;if(false!==d._trigger("beforeClose",g)){d.overlay&&d.overlay.destroy();d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide){d.uiDialog.hide(d.options.hide,function(){d._trigger("close",g)})}else{d.uiDialog.hide();d._trigger("close",g)}c.ui.dialog.overlay.resize();if(d.options.modal){l=0;c(".ui-dialog").each(function(){if(this!==d.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(l=Math.max(l,e))}});c.ui.dialog.maxZ=l}return d}},isOpen:function(){return this._isOpen},moveToTop:function(g,d){var l=this,e=l.options;if(e.modal&&!g||!e.stack&&!e.modal){return l._trigger("focus",d)}if(e.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=e.zIndex}if(l.overlay){c.ui.dialog.maxZ+=1;l.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}g={scrollTop:l.element.attr("scrollTop"),scrollLeft:l.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;l.uiDialog.css("z-index",c.ui.dialog.maxZ);l.element.attr(g);l._trigger("focus",d);return l},open:function(){if(!this._isOpen){var e=this,d=e.options,g=e.uiDialog;e.overlay=d.modal?new c.ui.dialog.overlay(e):null;e._size();e._position(d.position);g.show(d.show);e.moveToTop(true);d.modal&&g.bind("keypress.ui-dialog",function(n){if(n.keyCode===c.ui.keyCode.TAB){var m=c(":tabbable",this),l=m.filter(":first");m=m.filter(":last");if(n.target===m[0]&&!n.shiftKey){l.focus(1);return false}else{if(n.target===l[0]&&n.shiftKey){m.focus(1);return false}}}});c(e.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();e._isOpen=true;e._trigger("open");return e}},_createButtons:function(l){var d=this,m=false,g=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),e=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(g);d.uiDialog.find(".ui-dialog-buttonpane").remove();typeof l==="object"&&l!==null&&c.each(l,function(){return !(m=true)});if(m){c.each(l,function(o,r){r=c.isFunction(r)?{click:r,text:o}:r;o=c('<button type="button"></button>').attr(r,true).unbind("click").click(function(){r.click.apply(d.element[0],arguments)}).appendTo(e);c.fn.button&&o.button()});g.appendTo(d.uiDialog)}},_makeDraggable:function(){function l(n){return{position:n.position,offset:n.offset}}var d=this,m=d.options,g=c(document),e;d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,r){e=m.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");d._trigger("dragStart",o,l(r))},drag:function(o,r){d._trigger("drag",o,l(r))},stop:function(o,r){m.position=[r.position.left-g.scrollLeft(),r.position.top-g.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(e);d._trigger("dragStop",o,l(r));c.ui.dialog.overlay.resize()}})},_makeResizable:function(l){function d(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}l=l===k?this.options.resizable:l;var m=this,g=m.options,e=m.uiDialog.css("position");l=typeof l==="string"?l:"n,e,s,w,se,sw,ne,nw";m.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:m.element,maxWidth:g.maxWidth,maxHeight:g.maxHeight,minWidth:g.minWidth,minHeight:m._minHeight(),handles:l,start:function(o,r){c(this).addClass("ui-dialog-resizing");m._trigger("resizeStart",o,d(r))},resize:function(o,r){m._trigger("resize",o,d(r))},stop:function(o,r){c(this).removeClass("ui-dialog-resizing");g.height=c(this).height();g.width=c(this).width();m._trigger("resizeStop",o,d(r));c.ui.dialog.overlay.resize()}}).css("position",e).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var d=this.options;return d.height==="auto"?d.minHeight:Math.min(d.minHeight,d.height)},_position:function(g){var d=[],l=[0,0],e;if(g){if(typeof g==="string"||typeof g==="object"&&"0" in g){d=g.split?g.split(" "):[g[0],g[1]];if(d.length===1){d[1]=d[0]}c.each(["left","top"],function(n,m){if(+d[n]===d[n]){l[n]=d[n];d[n]=m}});g={my:d.join(" "),at:d.join(" "),offset:l.join(" ")}}g=c.extend({},c.ui.dialog.prototype.options.position,g)}else{g=c.ui.dialog.prototype.options.position}(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},g));e||this.uiDialog.hide()},_setOptions:function(g){var d=this,l={},e=false;c.each(g,function(n,m){d._setOption(n,m);if(n in h){e=true}if(n in f){l[n]=m}});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",l)},_setOption:function(l,d){var m=this,g=m.uiDialog;switch(l){case"beforeclose":l="beforeClose";break;case"buttons":m._createButtons(d);break;case"closeText":m.uiDialogTitlebarCloseText.text(""+d);break;case"dialogClass":g.removeClass(m.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case"disabled":d?g.addClass("ui-dialog-disabled"):g.removeClass("ui-dialog-disabled");break;case"draggable":var e=g.is(":data(draggable)");e&&!d&&g.draggable("destroy");!e&&d&&m._makeDraggable();break;case"position":m._position(d);break;case"resizable":(e=g.is(":data(resizable)"))&&!d&&g.resizable("destroy");e&&typeof d==="string"&&g.resizable("option","handles",d);!e&&d!==false&&m._makeResizable(d);break;case"title":c(".ui-dialog-title",m.uiDialogTitlebar).html(""+(d||"&#160;"));break}c.Widget.prototype._setOption.apply(m,arguments)},_size:function(){var g=this.options,d,l,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(g.minWidth>g.width){g.width=g.minWidth}d=this.uiDialog.css({height:"auto",width:g.width}).height();l=Math.max(0,g.minHeight-d);if(g.height==="auto"){if(c.support.minHeight){this.element.css({minHeight:l,height:"auto"})}else{this.uiDialog.show();g=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(g,l))}}else{this.element.height(Math.max(g.height-d,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.10",uuid:0,maxZ:0,getTitleId:function(d){d=d.attr("id");if(!d){this.uuid+=1;d=this.uuid}return"ui-dialog-title-"+d},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(g){if(c(g.target).zIndex()<c.ui.dialog.overlay.maxZ){return false}})},1);c(document).bind("keydown.dialog-overlay",function(g){if(e.options.closeOnEscape&&g.keyCode&&g.keyCode===c.ui.keyCode.ESCAPE){e.close(g);g.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&d.bgiframe();this.instances.push(d);return d},destroy:function(e){var d=c.inArray(e,this.instances);d!=-1&&this.oldInstances.push(this.instances.splice(d,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");e.remove();var g=0;c.each(this.instances,function(){g=Math.max(g,this.css("z-index"))});this.maxZ=g},height:function(){var e,d;if(c.browser.msie&&c.browser.version<7){e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return e<d?c(window).height()+"px":e+"px"}else{return c(document).height()+"px"}},width:function(){var e,d;if(c.browser.msie&&c.browser.version<7){e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return e<d?c(window).width()+"px":e+"px"}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(c){c.ui=c.ui||{};var m=/left|center|right/,l=/top|center|bottom/,h=c.fn.position,k=c.fn.offset;c.fn.position=function(e){if(!e||!e.of){return h.apply(this,arguments)}e=c.extend({},e);var u=c(e.of),o=u[0],g=(e.collision||"flip").split(" "),f=e.offset?e.offset.split(" "):[0,0],s,r,d;if(o.nodeType===9){s=u.width();r=u.height();d={top:0,left:0}}else{if(o.setTimeout){s=u.width();r=u.height();d={top:u.scrollTop(),left:u.scrollLeft()}}else{if(o.preventDefault){e.at="left top";s=r=0;d={top:e.of.pageY,left:e.of.pageX}}else{s=u.outerWidth();r=u.outerHeight();d=u.offset()}}}c.each(["my","at"],function(){var n=(e[this]||"").split(" ");if(n.length===1){n=m.test(n[0])?n.concat(["center"]):l.test(n[0])?["center"].concat(n):["center","center"]}n[0]=m.test(n[0])?n[0]:"center";n[1]=l.test(n[1])?n[1]:"center";e[this]=n});if(g.length===1){g[1]=g[0]}f[0]=parseInt(f[0],10)||0;if(f.length===1){f[1]=f[0]}f[1]=parseInt(f[1],10)||0;if(e.at[0]==="right"){d.left+=s}else{if(e.at[0]==="center"){d.left+=s/2}}if(e.at[1]==="bottom"){d.top+=r}else{if(e.at[1]==="center"){d.top+=r/2}}d.left+=f[0];d.top+=f[1];return this.each(function(){var A=c(this),z=A.outerWidth(),y=A.outerHeight(),x=parseInt(c.curCSS(this,"marginLeft",true))||0,E=parseInt(c.curCSS(this,"marginTop",true))||0,n=z+x+(parseInt(c.curCSS(this,"marginRight",true))||0),D=y+E+(parseInt(c.curCSS(this,"marginBottom",true))||0),C=c.extend({},d),B;if(e.my[0]==="right"){C.left-=z}else{if(e.my[0]==="center"){C.left-=z/2}}if(e.my[1]==="bottom"){C.top-=y}else{if(e.my[1]==="center"){C.top-=y/2}}C.left=Math.round(C.left);C.top=Math.round(C.top);B={left:C.left-x,top:C.top-E};c.each(["left","top"],function(w,v){c.ui.position[g[w]]&&c.ui.position[g[w]][v](C,{targetWidth:s,targetHeight:r,elemWidth:z,elemHeight:y,collisionPosition:B,collisionWidth:n,collisionHeight:D,offset:f,my:e.my,at:e.at})});c.fn.bgiframe&&A.bgiframe();A.offset(c.extend(C,{using:e.using}))})};c.ui.position={fit:{left:function(d,f){var e=c(window);e=f.collisionPosition.left+f.collisionWidth-e.width()-e.scrollLeft();d.left=e>0?d.left-e:Math.max(d.left-f.collisionPosition.left,d.left)},top:function(d,f){var e=c(window);e=f.collisionPosition.top+f.collisionHeight-e.height()-e.scrollTop();d.top=e>0?d.top-e:Math.max(d.top-f.collisionPosition.top,d.top)}},flip:{left:function(d,r){if(r.at[0]!=="center"){var g=c(window);g=r.collisionPosition.left+r.collisionWidth-g.width()-g.scrollLeft();var f=r.my[0]==="left"?-r.elemWidth:r.my[0]==="right"?r.elemWidth:0,e=r.at[0]==="left"?r.targetWidth:-r.targetWidth,o=-2*r.offset[0];d.left+=r.collisionPosition.left<0?f+e+o:g>0?f+e+o:0}},top:function(d,r){if(r.at[1]!=="center"){var g=c(window);g=r.collisionPosition.top+r.collisionHeight-g.height()-g.scrollTop();var f=r.my[1]==="top"?-r.elemHeight:r.my[1]==="bottom"?r.elemHeight:0,e=r.at[1]==="top"?r.targetHeight:-r.targetHeight,o=-2*r.offset[1];d.top+=r.collisionPosition.top<0?f+e+o:g>0?f+e+o:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(d,r){if(/static/.test(c.curCSS(d,"position"))){d.style.position="relative"}var g=c(d),f=g.offset(),e=parseInt(c.curCSS(d,"top",true),10)||0,o=parseInt(c.curCSS(d,"left",true),10)||0;f={top:r.top-f.top+e,left:r.left-f.left+o};"using" in r?r.using.call(d,f):g.css(f)};c.fn.offset=function(d){var e=this[0];if(!e||!e.ownerDocument){return null}if(d){return this.each(function(){c.offset.setOffset(this,d)})}return k.call(this)}}})(jQuery);(function(c,e){c.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=c("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();c.Widget.prototype.destroy.apply(this,arguments)},value:function(d){if(d===e){return this._value()}this._setOption("value",d);return this},_setOption:function(f,d){if(f==="value"){this.options.value=d;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}c.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var d=this.options.value;if(typeof d!=="number"){d=0}return Math.min(this.options.max,Math.max(this.min,d))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var f=this.value(),d=this._percentage();if(this.oldValue!==f){this.oldValue=f;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",f===this.options.max).width(d.toFixed(0)+"%");this.element.attr("aria-valuenow",f)}});c.extend(c.ui.progressbar,{version:"1.8.10"})})(jQuery);(function(c){c.widget("ui.slider",c.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var g=this,f=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");f.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");this.range=c([]);if(f.range){if(f.range===true){this.range=c("<div></div>");if(!f.values){f.values=[this._valueMin(),this._valueMin()]}if(f.values.length&&f.values.length!==2){f.values=[f.values[0],f.values[0]]}}else{this.range=c("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range==="min"||f.range==="max"){this.range.addClass("ui-slider-range-"+f.range)}this.range.addClass("ui-widget-header")}c(".ui-slider-handle",this.element).length===0&&c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(f.values&&f.values.length){for(;c(".ui-slider-handle",this.element).length<f.values.length;){c("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=c(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){f.disabled||c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled){c(this).blur()}else{c(".ui-slider .ui-state-focus").removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(d){c(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(l){var m=true,d=c(this).data("index.ui-slider-handle"),n,k,e;if(!g.options.disabled){switch(l.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.PAGE_UP:case c.ui.keyCode.PAGE_DOWN:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:m=false;if(!g._keySliding){g._keySliding=true;c(this).addClass("ui-state-active");n=g._start(l,d);if(n===false){return}}break}e=g.options.step;n=g.options.values&&g.options.values.length?(k=g.values(d)):(k=g.value());switch(l.keyCode){case c.ui.keyCode.HOME:k=g._valueMin();break;case c.ui.keyCode.END:k=g._valueMax();break;case c.ui.keyCode.PAGE_UP:k=g._trimAlignValue(n+(g._valueMax()-g._valueMin())/5);break;case c.ui.keyCode.PAGE_DOWN:k=g._trimAlignValue(n-(g._valueMax()-g._valueMin())/5);break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:if(n===g._valueMax()){return}k=g._trimAlignValue(n+e);break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(n===g._valueMin()){return}k=g._trimAlignValue(n-e);break}g._slide(l,d,k);return m}}).keyup(function(d){var e=c(this).data("index.ui-slider-handle");if(g._keySliding){g._keySliding=false;g._stop(d,e);g._change(d,e);c(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(r){var o=this.options,m,n,k,s,l;if(o.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();m=this._normValueFromMouse({x:r.pageX,y:r.pageY});n=this._valueMax()-this._valueMin()+1;s=this;this.handles.each(function(e){var d=Math.abs(m-s.values(e));if(n>d){n=d;k=c(this);l=e}});if(o.range===true&&this.values(1)===o.min){l+=1;k=c(this.handles[l])}if(this._start(r,l)===false){return false}this._mouseSliding=true;s._handleIndex=l;k.addClass("ui-state-active").focus();o=k.offset();this._clickOffset=!c(r.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:r.pageX-o.left-k.width()/2,top:r.pageY-o.top-k.height()/2-(parseInt(k.css("borderTopWidth"),10)||0)-(parseInt(k.css("borderBottomWidth"),10)||0)+(parseInt(k.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(r,l,m);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(g){var f=this._normValueFromMouse({x:g.pageX,y:g.pageY});this._slide(g,this._handleIndex,f);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(g){var f;if(this.orientation==="horizontal"){f=this.elementSize.width;g=g.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;g=g.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=g/f;if(f>1){f=1}if(f<0){f=0}if(this.orientation==="vertical"){f=1-f}g=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+f*g)},_start:function(k,h){var f={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(h);f.values=this.values()}return this._trigger("start",k,f)},_slide:function(m,l,h){var k;if(this.options.values&&this.options.values.length){k=this.values(l?0:1);if(this.options.values.length===2&&this.options.range===true&&(l===0&&h>k||l===1&&h<k)){h=k}if(h!==this.values(l)){k=this.values();k[l]=h;m=this._trigger("slide",m,{handle:this.handles[l],value:h,values:k});this.values(l?0:1);m!==false&&this.values(l,h,true)}}else{if(h!==this.value()){m=this._trigger("slide",m,{handle:this.handles[l],value:h});m!==false&&this.value(h)}}},_stop:function(k,h){var f={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(h);f.values=this.values()}this._trigger("stop",k,f)},_change:function(k,h){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[h],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(h);f.values=this.values()}this._trigger("change",k,f)}},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e);this._refreshValue();this._change(null,0)}return this._value()},values:function(n,m){var k,l,h;if(arguments.length>1){this.options.values[n]=this._trimAlignValue(m);this._refreshValue();this._change(null,n)}if(arguments.length){if(c.isArray(arguments[0])){k=this.options.values;l=arguments[0];for(h=0;h<k.length;h+=1){k[h]=this._trimAlignValue(l[h]);this._change(null,h)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(n):this.value()}}else{return this._values()}},_setOption:function(m,l){var h,k=0;if(c.isArray(this.options.values)){k=this.options.values.length}c.Widget.prototype._setOption.apply(this,arguments);switch(m){case"disabled":if(l){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(h=0;h<k;h+=1){this._change(null,h)}this._animateOff=false;break}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(k){var h,f;if(arguments.length){h=this.options.values[k];return h=this._trimAlignValue(h)}else{h=this.options.values.slice();for(f=0;f<h.length;f+=1){h[f]=this._trimAlignValue(h[f])}return h}},_trimAlignValue:function(k){if(k<=this._valueMin()){return this._valueMin()}if(k>=this._valueMax()){return this._valueMax()}var h=this.options.step>0?this.options.step:1,f=(k-this._valueMin())%h;alignValue=k-f;if(Math.abs(f)*2>=h){alignValue+=f>0?h:-h}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var v=this.options.range,u=this.options,r=this,s=!this._animateOff?u.animate:false,x,w={},o,m,l,k;if(this.options.values&&this.options.values.length){this.handles.each(function(d){x=(r.values(d)-r._valueMin())/(r._valueMax()-r._valueMin())*100;w[r.orientation==="horizontal"?"left":"bottom"]=x+"%";c(this).stop(1,1)[s?"animate":"css"](w,u.animate);if(r.options.range===true){if(r.orientation==="horizontal"){if(d===0){r.range.stop(1,1)[s?"animate":"css"]({left:x+"%"},u.animate)}if(d===1){r.range[s?"animate":"css"]({width:x-o+"%"},{queue:false,duration:u.animate})}}else{if(d===0){r.range.stop(1,1)[s?"animate":"css"]({bottom:x+"%"},u.animate)}if(d===1){r.range[s?"animate":"css"]({height:x-o+"%"},{queue:false,duration:u.animate})}}}o=x})}else{m=this.value();l=this._valueMin();k=this._valueMax();x=k!==l?(m-l)/(k-l)*100:0;w[r.orientation==="horizontal"?"left":"bottom"]=x+"%";this.handle.stop(1,1)[s?"animate":"css"](w,u.animate);if(v==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[s?"animate":"css"]({width:x+"%"},u.animate)}if(v==="max"&&this.orientation==="horizontal"){this.range[s?"animate":"css"]({width:100-x+"%"},{queue:false,duration:u.animate})}if(v==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[s?"animate":"css"]({height:x+"%"},u.animate)}if(v==="max"&&this.orientation==="vertical"){this.range[s?"animate":"css"]({height:100-x+"%"},{queue:false,duration:u.animate})}}}});c.extend(c.ui.slider,{version:"1.8.10"})})(jQuery);(function(c,n){function m(){return ++l}function k(){return ++h}var l=0,h=0;c.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(e,d){if(e=="selected"){this.options.collapsible&&d==this.options.selected||this.select(d)}else{this.options[e]=d;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+m()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+k());return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(e,d){return{tab:e,panel:d,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=c(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(z){function y(s,o){s.css("display","");!c.support.opacity&&o.opacity&&s[0].style.removeAttribute("filter")}var x=this,w=this.options,g=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=c(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);this.anchors.each(function(C,B){var s=c(B).attr("href"),o=s.split("#")[0],D;if(o&&(o===location.toString().split("#")[0]||(D=c("base")[0])&&o===D.href)){s=B.hash;B.href=s}if(g.test(s)){x.panels=x.panels.add(x.element.find(x._sanitizeSelector(s)))}else{if(s&&s!=="#"){c.data(B,"href.tabs",s);c.data(B,"load.tabs",s.replace(/#.*$/,""));s=x._tabId(B);B.href="#"+s;B=x.element.find("#"+s);if(!B.length){B=c(w.panelTemplate).attr("id",s).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(x.panels[C-1]||x.list);B.data("destroy.tabs",true)}x.panels=x.panels.add(B)}else{w.disabled.push(C)}}});if(z){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(w.selected===n){location.hash&&this.anchors.each(function(s,o){if(o.hash==location.hash){w.selected=s;return false}});if(typeof w.selected!=="number"&&w.cookie){w.selected=parseInt(x._cookie(),10)}if(typeof w.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){w.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}w.selected=w.selected||(this.lis.length?0:-1)}else{if(w.selected===null){w.selected=-1}}w.selected=w.selected>=0&&this.anchors[w.selected]||w.selected<0?w.selected:0;w.disabled=c.unique(w.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(o){return x.lis.index(o)}))).sort();c.inArray(w.selected,w.disabled)!=-1&&w.disabled.splice(c.inArray(w.selected,w.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(w.selected>=0&&this.anchors.length){x.element.find(x._sanitizeSelector(x.anchors[w.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(w.selected).addClass("ui-tabs-selected ui-state-active");x.element.queue("tabs",function(){x._trigger("show",null,x._ui(x.anchors[w.selected],x.element.find(x._sanitizeSelector(x.anchors[w.selected].hash))[0]))});this.load(w.selected)}c(window).bind("unload",function(){x.lis.add(x.anchors).unbind(".tabs");x.lis=x.anchors=x.panels=null})}else{w.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[w.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");w.cookie&&this._cookie(w.selected,w.cookie);z=0;for(var d;d=this.lis[z];z++){c(d)[c.inArray(z,w.disabled)!=-1&&!c(d).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}w.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(w.event!=="mouseover"){var u=function(s,o){o.is(":not(.ui-state-disabled)")&&o.addClass("ui-state-"+s)},v=function(s,o){o.removeClass("ui-state-"+s)};this.lis.bind("mouseover.tabs",function(){u("hover",c(this))});this.lis.bind("mouseout.tabs",function(){v("hover",c(this))});this.anchors.bind("focus.tabs",function(){u("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){v("focus",c(this).closest("li"))})}var r,f;if(w.fx){if(c.isArray(w.fx)){r=w.fx[0];f=w.fx[1]}else{r=f=w.fx}}var e=f?function(s,o){c(s).closest("li").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(f,f.duration||"normal",function(){y(o,f);x._trigger("show",null,x._ui(s,o[0]))})}:function(s,o){c(s).closest("li").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");x._trigger("show",null,x._ui(s,o[0]))},A=r?function(s,o){o.animate(r,r.duration||"normal",function(){x.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");y(o,r);x.element.dequeue("tabs")})}:function(s,o){x.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");x.element.dequeue("tabs")};this.anchors.bind(w.event+".tabs",function(){var C=this,B=c(C).closest("li"),s=x.panels.filter(":not(.ui-tabs-hide)"),o=x.element.find(x._sanitizeSelector(C.hash));if(B.hasClass("ui-tabs-selected")&&!w.collapsible||B.hasClass("ui-state-disabled")||B.hasClass("ui-state-processing")||x.panels.filter(":animated").length||x._trigger("select",null,x._ui(this,o[0]))===false){this.blur();return false}w.selected=x.anchors.index(this);x.abort();if(w.collapsible){if(B.hasClass("ui-tabs-selected")){w.selected=-1;w.cookie&&x._cookie(w.selected,w.cookie);x.element.queue("tabs",function(){A(C,s)}).dequeue("tabs");this.blur();return false}else{if(!s.length){w.cookie&&x._cookie(w.selected,w.cookie);x.element.queue("tabs",function(){e(C,o)});x.load(x.anchors.index(this));this.blur();return false}}}w.cookie&&x._cookie(w.selected,w.cookie);if(o.length){s.length&&x.element.queue("tabs",function(){A(C,s)});x.element.queue("tabs",function(){e(C,o)});x.load(x.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}c.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))}return d},destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var f=c.data(this,"href.tabs");if(f){this.href=f}var e=c(this).unbind(".tabs");c.each(["href","load","cache"],function(g,o){e.removeData(o+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){c.data(this,"destroy.tabs")?c(this).remove():c(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(r,f,e){if(e===n){e=this.anchors.length}var d=this,o=this.options;f=c(o.tabTemplate.replace(/#\{href\}/g,r).replace(/#\{label\}/g,f));r=!r.indexOf("#")?r.replace("#",""):this._tabId(c("a",f)[0]);f.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var g=d.element.find("#"+r);g.length||(g=c(o.panelTemplate).attr("id",r).data("destroy.tabs",true));g.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(e>=this.lis.length){f.appendTo(this.list);g.appendTo(this.list[0].parentNode)}else{f.insertBefore(this.lis[e]);g.insertBefore(this.panels[e])}o.disabled=c.map(o.disabled,function(s){return s>=e?++s:s});this._tabify();if(this.anchors.length==1){o.selected=0;f.addClass("ui-tabs-selected ui-state-active");g.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(g){g=this._getIndex(g);var f=this.options,e=this.lis.eq(g).remove(),d=this.panels.eq(g).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(g+(g+1<this.anchors.length?1:-1))}f.disabled=c.map(c.grep(f.disabled,function(o){return o!=g}),function(o){return o>=g?--o:o});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],d[0]));return this},enable:function(e){e=this._getIndex(e);var d=this.options;if(c.inArray(e,d.disabled)!=-1){this.lis.eq(e).removeClass("ui-state-disabled");d.disabled=c.grep(d.disabled,function(f){return f!=e});this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]));return this}},disable:function(e){e=this._getIndex(e);var d=this.options;if(e!=d.selected){this.lis.eq(e).addClass("ui-state-disabled");d.disabled.push(e);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}return this},select:function(d){d=this._getIndex(d);if(d==-1){if(this.options.collapsible&&this.options.selected!=-1){d=this.options.selected}else{return this}}this.anchors.eq(d).trigger(this.options.event+".tabs");return this},load:function(r){r=this._getIndex(r);var f=this,e=this.options,d=this.anchors.eq(r)[0],o=c.data(d,"load.tabs");this.abort();if(!o||this.element.queue("tabs").length!==0&&c.data(d,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(r).addClass("ui-state-processing");if(e.spinner){var g=c("span",d);g.data("label.tabs",g.html()).html(e.spinner)}this.xhr=c.ajax(c.extend({},e.ajaxOptions,{url:o,success:function(u,v){f.element.find(f._sanitizeSelector(d.hash)).html(u);f._cleanup();e.cache&&c.data(d,"cache.tabs",true);f._trigger("load",null,f._ui(f.anchors[r],f.panels[r]));try{e.ajaxOptions.success(u,v)}catch(s){}},error:function(u,v){f._cleanup();f._trigger("load",null,f._ui(f.anchors[r],f.panels[r]));try{e.ajaxOptions.error(u,v,r,d)}catch(s){}}}));f.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,d){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",d);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8.10"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(o,f){var e=this,d=this.options,g=e._rotate||(e._rotate=function(r){clearTimeout(e.rotation);e.rotation=setTimeout(function(){var s=d.selected;e.select(++s<e.anchors.length?s:0)},o);r&&r.stopPropagation()});f=e._unrotate||(e._unrotate=!f?function(r){r.clientX&&e.rotate(null)}:function(){t=d.selected;g()});if(o){this.element.bind("tabsshow",g);this.anchors.bind(d.event+".tabs",f);g()}else{clearTimeout(e.rotation);this.element.unbind("tabsshow",g);this.anchors.unbind(d.event+".tabs",f);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(l){var o="2.63";if(l.support==undefined){l.support={opacity:!(l.browser.msie)}}function g(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}l.fn.cycle=function(w,v){var x={s:this.selector,c:this.context};if(this.length==0&&w!="stop"){if(!l.isReady&&x.s){g("DOM not ready, queuing slideshow");l(function(){l(x.s,x.c).cycle(w,v)});return this}g("terminating; zero elements found by selector"+(l.isReady?"":" (DOM not ready)"));return this}return this.each(function(){w=r(this,w,v);if(w===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var A=l(this);var B=w.slideExpr?l(w.slideExpr,this):A.children();var y=B.get();if(y.length<2){g("terminating; too few slides: "+y.length);return}var z=n(A,B,y,w,x);if(z===false){return}if(z.timeout||z.continuous){this.cycleTimeout=setTimeout(function(){f(y,z,0,!z.rev)},z.continuous?10:z.timeout+(z.delay||0))}})};function r(v,y,w){if(v.cycleStop==undefined){v.cycleStop=0}if(y===undefined||y===null){y={}}if(y.constructor==String){switch(y){case"stop":v.cycleStop++;if(v.cycleTimeout){clearTimeout(v.cycleTimeout)}v.cycleTimeout=0;l(v).removeData("cycle.opts");return false;case"pause":v.cyclePause=1;return false;case"resume":v.cyclePause=0;if(w===true){y=l(v).data("cycle.opts");if(!y){g("options not found, can not resume");return false}if(v.cycleTimeout){clearTimeout(v.cycleTimeout);v.cycleTimeout=0}f(y.elements,y,1,1)}return false;default:y={fx:y}}}else{if(y.constructor==Number){var x=y;y=l(v).data("cycle.opts");if(!y){g("options not found, can not advance slide");return false}if(x<0||x>=y.elements.length){g("invalid slide index: "+x);return false}y.nextSlide=x;if(v.cycleTimeout){clearTimeout(this.cycleTimeout);v.cycleTimeout=0}if(typeof w=="string"){y.oneTimeFx=w}f(y.elements,y,1,x>=y.currSlide);return false}}return y}function c(v,w){if(!l.support.opacity&&w.cleartype&&v.style.filter){try{v.style.removeAttribute("filter")}catch(x){}}}function n(D,N,A,z,J){var H=l.extend({},l.fn.cycle.defaults,z||{},l.metadata?D.metadata():l.meta?D.data():{});if(H.autostop){H.countdown=H.autostopCount||A.length}var x=D[0];D.data("cycle.opts",H);H.$cont=D;H.stopCount=x.cycleStop;H.elements=A;H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});if(!l.support.opacity&&H.cleartype){H.after.push(function(){c(this,H)})}if(H.continuous){H.after.push(function(){f(A,H,0,!H.rev)})}s(H);if(!l.support.opacity&&H.cleartype&&!H.cleartypeNoBg){h(N)}if(D.css("position")=="static"){D.css("position","relative")}if(H.width){D.width(H.width)}if(H.height&&H.height!="auto"){D.height(H.height)}if(H.startingSlide){H.startingSlide=parseInt(H.startingSlide)}if(H.random){H.randomMap=[];for(var L=0;L<A.length;L++){H.randomMap.push(L)}H.randomMap.sort(function(P,w){return Math.random()-0.5});H.randomIndex=0;H.startingSlide=H.randomMap[0]}else{if(H.startingSlide>=A.length){H.startingSlide=0}}H.currSlide=H.startingSlide=H.startingSlide||0;var C=H.startingSlide;N.css({position:"absolute",top:0,left:0}).hide().each(function(w){var P=C?w>=C?A.length-(w-C):C-w:A.length-w;l(this).css("z-index",P)});l(A[C]).css("opacity",1).show();c(A[C],H);if(H.fit&&H.width){N.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){N.height(H.height)}var I=H.containerResize&&!D.innerHeight();if(I){var B=0,G=0;for(var L=0;L<A.length;L++){var v=l(A[L]),O=v[0],F=v.outerWidth(),M=v.outerHeight();if(!F){F=O.offsetWidth}if(!M){M=O.offsetHeight}B=F>B?F:B;G=M>G?M:G}if(B>0&&G>0){D.css({width:B+"px",height:G+"px"})}}if(H.pause){D.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(d(H)===false){return false}if(!H.multiFx){var K=l.fn.cycle.transitions[H.fx];if(l.isFunction(K)){K(D,N,H)}else{if(H.fx!="custom"&&!H.multiFx){g("unknown transition: "+H.fx,"; slideshow terminating");return false}}}var y=false;z.requeueAttempts=z.requeueAttempts||0;N.each(function(){var R=l(this);this.cycleH=(H.fit&&H.height)?H.height:R.height();this.cycleW=(H.fit&&H.width)?H.width:R.width();if(R.is("img")){var P=(l.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var Q=(l.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(P||Q||w){if(J.s&&H.requeueOnImageNotLoaded&&++z.requeueAttempts<100){g(z.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){l(J.s,J.c).cycle(z)},H.requeueTimeout);y=true;return false}else{g("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(y){return false}H.cssBefore=H.cssBefore||{};H.animIn=H.animIn||{};H.animOut=H.animOut||{};N.not(":eq("+C+")").css(H.cssBefore);if(H.cssFirst){l(N[C]).css(H.cssFirst)}if(H.timeout){H.timeout=parseInt(H.timeout);if(H.speed.constructor==String){H.speed=l.fx.speeds[H.speed]||parseInt(H.speed)}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}if(H.easing){H.easeIn=H.easeOut=H.easing}if(!H.speedIn){H.speedIn=H.speed}if(!H.speedOut){H.speedOut=H.speed}H.slideCount=A.length;H.currSlide=H.lastSlide=C;if(H.random){H.nextSlide=H.currSlide;if(++H.randomIndex==A.length){H.randomIndex=0}H.nextSlide=H.randomMap[H.randomIndex]}else{H.nextSlide=H.startingSlide>=(A.length-1)?0:H.startingSlide+1}var E=N[C];if(H.before.length){H.before[0].apply(E,[E,E,H,true])}if(H.after.length>1){H.after[1].apply(E,[E,E,H,true])}if(H.next){l(H.next).click(function(){return u(H,H.rev?-1:1)})}if(H.prev){l(H.prev).click(function(){return u(H,H.rev?1:-1)})}if(H.pager){e(A,H)}m(H,A);return H}function s(v){v.original={before:[],after:[]};v.original.cssBefore=l.extend({},v.cssBefore);v.original.cssAfter=l.extend({},v.cssAfter);v.original.animIn=l.extend({},v.animIn);v.original.animOut=l.extend({},v.animOut);l.each(v.before,function(){v.original.before.push(this)});l.each(v.after,function(){v.original.after.push(this)})}function d(B){var x=l.fn.cycle.transitions;if(B.fx.indexOf(",")>0){B.multiFx=true;B.fxs=B.fx.replace(/\s*/g,"").split(",");for(var z=0;z<B.fxs.length;z++){var A=B.fxs[z];var w=x[A];if(!w||!x.hasOwnProperty(A)||!l.isFunction(w)){g("discarding unknown transition: ",A);B.fxs.splice(z,1);z--}}if(!B.fxs.length){g("No valid transitions named; slideshow terminating.");return false}}else{if(B.fx=="all"){B.multiFx=true;B.fxs=[];for(p in x){var w=x[p];if(x.hasOwnProperty(p)&&l.isFunction(w)){B.fxs.push(p)}}}}if(B.multiFx&&B.randomizeEffects){var y=Math.floor(Math.random()*20)+30;for(var z=0;z<y;z++){var v=Math.floor(Math.random()*B.fxs.length);B.fxs.push(B.fxs.splice(v,1)[0])}g("randomized fx sequence: ",B.fxs)}return true}function m(w,v){w.addSlide=function(y,z){var x=l(y),A=x[0];if(!w.autostopCount){w.countdown++}v[z?"unshift":"push"](A);if(w.els){w.els[z?"unshift":"push"](A)}w.slideCount=v.length;x.css("position","absolute");x[z?"prependTo":"appendTo"](w.$cont);if(z){w.currSlide++;w.nextSlide++}if(!l.support.opacity&&w.cleartype&&!w.cleartypeNoBg){h(x)}if(w.fit&&w.width){x.width(w.width)}if(w.fit&&w.height&&w.height!="auto"){$slides.height(w.height)}A.cycleH=(w.fit&&w.height)?w.height:x.height();A.cycleW=(w.fit&&w.width)?w.width:x.width();x.css(w.cssBefore);if(w.pager){l.fn.cycle.createPagerAnchor(v.length-1,A,l(w.pager),v,w)}if(l.isFunction(w.onAddSlide)){w.onAddSlide(x)}else{x.hide()}}}l.fn.cycle.resetState=function(w,v){v=v||w.fx;w.before=[];w.after=[];w.cssBefore=l.extend({},w.original.cssBefore);w.cssAfter=l.extend({},w.original.cssAfter);w.animIn=l.extend({},w.original.animIn);w.animOut=l.extend({},w.original.animOut);w.fxFn=null;l.each(w.original.before,function(){w.before.push(this)});l.each(w.original.after,function(){w.after.push(this)});var x=l.fn.cycle.transitions[v];if(l.isFunction(x)){x(w.$cont,l(w.elements),w)}};function f(C,v,B,D){if(B&&v.busy&&v.manualTrump){l(C).stop(true,true);v.busy=false}if(v.busy){return}var z=v.$cont[0],F=C[v.currSlide],E=C[v.nextSlide];if(z.cycleStop!=v.stopCount||z.cycleTimeout===0&&!B){return}if(!B&&!z.cyclePause&&((v.autostop&&(--v.countdown<=0))||(v.nowrap&&!v.random&&v.nextSlide<v.currSlide))){if(v.end){v.end(v)}return}if(B||!z.cyclePause){var A=v.fx;F.cycleH=F.cycleH||l(F).height();F.cycleW=F.cycleW||l(F).width();E.cycleH=E.cycleH||l(E).height();E.cycleW=E.cycleW||l(E).width();if(v.multiFx){if(v.lastFx==undefined||++v.lastFx>=v.fxs.length){v.lastFx=0}A=v.fxs[v.lastFx];v.currFx=A}if(v.oneTimeFx){A=v.oneTimeFx;v.oneTimeFx=null}l.fn.cycle.resetState(v,A);if(v.before.length){l.each(v.before,function(G,H){if(z.cycleStop!=v.stopCount){return}H.apply(E,[F,E,v,D])})}var x=function(){l.each(v.after,function(G,H){if(z.cycleStop!=v.stopCount){return}H.apply(E,[F,E,v,D])})};if(v.nextSlide!=v.currSlide){v.busy=1;if(v.fxFn){v.fxFn(F,E,v,x,D)}else{if(l.isFunction(l.fn.cycle[v.fx])){l.fn.cycle[v.fx](F,E,v,x)}else{l.fn.cycle.custom(F,E,v,x,B&&v.fastOnEvent)}}}v.lastSlide=v.currSlide;if(v.random){v.currSlide=v.nextSlide;if(++v.randomIndex==C.length){v.randomIndex=0}v.nextSlide=v.randomMap[v.randomIndex]}else{var y=(v.nextSlide+1)==C.length;v.nextSlide=y?0:v.nextSlide+1;v.currSlide=y?C.length-1:v.nextSlide-1}if(v.pager){l.fn.cycle.updateActivePagerLink(v.pager,v.currSlide)}}var w=0;if(v.timeout&&!v.continuous){w=k(F,E,v,D)}else{if(v.continuous&&z.cyclePause){w=10}}if(w>0){z.cycleTimeout=setTimeout(function(){f(C,v,0,!v.rev)},w)}}l.fn.cycle.updateActivePagerLink=function(v,w){l(v).find("a").removeClass("activeSlide").filter("a:eq("+w+")").addClass("activeSlide")};function k(z,x,y,w){if(y.timeoutFn){var v=y.timeoutFn(z,x,y,w);if(v!==false){return v}}return y.timeout}l.fn.cycle.next=function(v){u(v,v.rev?-1:1)};l.fn.cycle.prev=function(v){u(v,v.rev?1:-1)};function u(w,z){var v=w.elements;var y=w.$cont[0],x=y.cycleTimeout;if(x){clearTimeout(x);y.cycleTimeout=0}if(w.random&&z<0){w.randomIndex--;if(--w.randomIndex==-2){w.randomIndex=v.length-2}else{if(w.randomIndex==-1){w.randomIndex=v.length-1}}w.nextSlide=w.randomMap[w.randomIndex]}else{if(w.random){if(++w.randomIndex==v.length){w.randomIndex=0}w.nextSlide=w.randomMap[w.randomIndex]}else{w.nextSlide=w.currSlide+z;if(w.nextSlide<0){if(w.nowrap){return false}w.nextSlide=v.length-1}else{if(w.nextSlide>=v.length){if(w.nowrap){return false}w.nextSlide=0}}}}if(l.isFunction(w.prevNextClick)){w.prevNextClick(z>0,w.nextSlide,v[w.nextSlide])}f(v,w,1,z>=0);return false}function e(w,x){var v=l(x.pager);l.each(w,function(y,z){l.fn.cycle.createPagerAnchor(y,z,v,w,x)});l.fn.cycle.updateActivePagerLink(x.pager,x.startingSlide)}l.fn.cycle.createPagerAnchor=function(y,z,w,x,A){var v=(l.isFunction(A.pagerAnchorBuilder))?A.pagerAnchorBuilder(y,z):'<a href="#">'+(y+1)+"</a>";if(!v){return}var B=l(v);if(B.parents("body").length==0){B.appendTo(w)}B.bind(A.pagerEvent,function(){A.nextSlide=y;var D=A.$cont[0],C=D.cycleTimeout;if(C){clearTimeout(C);D.cycleTimeout=0}if(l.isFunction(A.pagerClick)){A.pagerClick(A.nextSlide,x[A.nextSlide])}f(x,A,1,A.currSlide<y);return false});if(A.pauseOnPagerHover){B.hover(function(){A.$cont[0].cyclePause++},function(){A.$cont[0].cyclePause--})}};l.fn.cycle.hopsFromLast=function(y,x){var w,v=y.lastSlide,z=y.currSlide;if(x){w=z>v?z-v:y.slideCount-v}else{w=z<v?v-z:v+y.slideCount-z}return w};function h(x){function w(y){y=parseInt(y).toString(16);return y.length<2?"0"+y:y}function v(A){for(;A&&A.nodeName.toLowerCase()!="html";A=A.parentNode){var y=l.css(A,"background-color");if(y.indexOf("rgb")>=0){var z=y.match(/\d+/g);return"#"+w(z[0])+w(z[1])+w(z[2])}if(y&&y!="transparent"){return y}}return"#ffffff"}x.each(function(){l(this).css("background-color",v(this))})}l.fn.cycle.commonReset=function(B,z,A,x,y,v){l(A.elements).not(B).hide();A.cssBefore.opacity=1;A.cssBefore.display="block";if(x!==false&&z.cycleW>0){A.cssBefore.width=z.cycleW}if(y!==false&&z.cycleH>0){A.cssBefore.height=z.cycleH}A.cssAfter=A.cssAfter||{};A.cssAfter.display="none";l(B).css("zIndex",A.slideCount+(v===true?1:0));l(z).css("zIndex",A.slideCount+(v===true?0:1))};l.fn.cycle.custom=function(G,A,v,x,w){var F=l(G),B=l(A);var y=v.speedIn,E=v.speedOut,z=v.easeIn,D=v.easeOut;B.css(v.cssBefore);if(w){if(typeof w=="number"){y=E=w}else{y=E=1}z=D=null}var C=function(){B.animate(v.animIn,y,z,x)};F.animate(v.animOut,E,D,function(){if(v.cssAfter){F.css(v.cssAfter)}if(!v.sync){C()}});if(v.sync){C()}};l.fn.cycle.transitions={fade:function(w,x,v){x.not(":eq("+v.currSlide+")").css("opacity",0);v.before.push(function(A,y,z){l.fn.cycle.commonReset(A,y,z);z.cssBefore.opacity=0});v.animIn={opacity:1};v.animOut={opacity:0};v.cssBefore={top:0,left:0}}};l.fn.cycle.ver=function(){return o};l.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!l.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(c){c.fn.cycle.transitions.scrollUp=function(f,g,e){f.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);var d=f.height();e.cssBefore={top:d,left:0};e.cssFirst={top:0};e.animIn={top:0};e.animOut={top:-d}};c.fn.cycle.transitions.scrollDown=function(f,g,e){f.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);var d=f.height();e.cssFirst={top:0};e.cssBefore={top:-d,left:0};e.animIn={top:0};e.animOut={top:d}};c.fn.cycle.transitions.scrollLeft=function(f,g,e){f.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);var d=f.width();e.cssFirst={left:0};e.cssBefore={left:d,top:0};e.animIn={left:0};e.animOut={left:0-d}};c.fn.cycle.transitions.scrollRight=function(f,g,e){f.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);var d=f.width();e.cssFirst={left:0};e.cssBefore={left:-d,top:0};e.animIn={left:0};e.animOut={left:d}};c.fn.cycle.transitions.scrollHorz=function(e,f,d){e.css("overflow","hidden").width();d.before.push(function(l,h,k,g){c.fn.cycle.commonReset(l,h,k);k.cssBefore.left=g?(h.cycleW-1):(1-h.cycleW);k.animOut.left=g?-l.cycleW:l.cycleW});d.cssFirst={left:0};d.cssBefore={top:0};d.animIn={left:0};d.animOut={top:0}};c.fn.cycle.transitions.scrollVert=function(e,f,d){e.css("overflow","hidden");d.before.push(function(l,h,k,g){c.fn.cycle.commonReset(l,h,k);k.cssBefore.top=g?(1-h.cycleH):(h.cycleH-1);k.animOut.top=g?l.cycleH:-l.cycleH});d.cssFirst={top:0};d.cssBefore={left:0};d.animIn={top:0};d.animOut={left:0}};c.fn.cycle.transitions.slideX=function(e,f,d){d.before.push(function(k,g,h){c(h.elements).not(k).hide();c.fn.cycle.commonReset(k,g,h,false,true);h.animIn.width=g.cycleW});d.cssBefore={left:0,top:0,width:0};d.animIn={width:"show"};d.animOut={width:0}};c.fn.cycle.transitions.slideY=function(e,f,d){d.before.push(function(k,g,h){c(h.elements).not(k).hide();c.fn.cycle.commonReset(k,g,h,true,false);h.animIn.height=g.cycleH});d.cssBefore={left:0,top:0,height:0};d.animIn={height:"show"};d.animOut={height:0}};c.fn.cycle.transitions.shuffle=function(g,h,f){var d=g.css("overflow","visible").width();h.css({left:0,top:0});f.before.push(function(m,k,l){c.fn.cycle.commonReset(m,k,l,true,true,true)});f.speed=f.speed/2;f.random=0;f.shuffle=f.shuffle||{left:-d,top:15};f.els=[];for(var e=0;e<h.length;e++){f.els.push(h[e])}for(var e=0;e<f.currSlide;e++){f.els.push(f.els.shift())}f.fxFn=function(s,n,r,k,m){var l=m?c(s):c(n);c(n).css(r.cssBefore);var o=r.slideCount;l.animate(r.shuffle,r.speedIn,r.easeIn,function(){var v=c.fn.cycle.hopsFromLast(r,m);for(var w=0;w<v;w++){m?r.els.push(r.els.shift()):r.els.unshift(r.els.pop())}if(m){for(var x=0,u=r.els.length;x<u;x++){c(r.els[x]).css("z-index",u-x+o)}}else{var y=c(s).css("z-index");l.css("z-index",parseInt(y)+1+o)}l.animate({left:0,top:0},r.speedOut,r.easeOut,function(){c(m?this:s).hide();if(k){k()}})})};f.cssBefore={display:"block",opacity:1,top:0,left:0}};c.fn.cycle.transitions.turnUp=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,true,false);h.cssBefore.top=g.cycleH;h.animIn.height=g.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,height:0};d.animIn={top:0};d.animOut={height:0}};c.fn.cycle.transitions.turnDown=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,true,false);h.animIn.height=g.cycleH;h.animOut.top=k.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,top:0,height:0};d.animOut={height:0}};c.fn.cycle.transitions.turnLeft=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,true);h.cssBefore.left=g.cycleW;h.animIn.width=g.cycleW});d.cssBefore={top:0,width:0};d.animIn={left:0};d.animOut={width:0}};c.fn.cycle.transitions.turnRight=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,true);h.animIn.width=g.cycleW;h.animOut.left=k.cycleW});d.cssBefore={top:0,left:0,width:0};d.animIn={left:0};d.animOut={width:0}};c.fn.cycle.transitions.zoom=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,false,true);h.cssBefore.top=g.cycleH/2;h.cssBefore.left=g.cycleW/2;h.animIn={top:0,left:0,width:g.cycleW,height:g.cycleH};h.animOut={width:0,height:0,top:k.cycleH/2,left:k.cycleW/2}});d.cssFirst={top:0,left:0};d.cssBefore={width:0,height:0}};c.fn.cycle.transitions.fadeZoom=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,false);h.cssBefore.left=g.cycleW/2;h.cssBefore.top=g.cycleH/2;h.animIn={top:0,left:0,width:g.cycleW,height:g.cycleH}});d.cssBefore={width:0,height:0};d.animOut={opacity:0}};c.fn.cycle.transitions.blindX=function(f,g,e){var d=f.css("overflow","hidden").width();e.before.push(function(l,h,k){c.fn.cycle.commonReset(l,h,k);k.animIn.width=h.cycleW;k.animOut.left=l.cycleW});e.cssBefore={left:d,top:0};e.animIn={left:0};e.animOut={left:d}};c.fn.cycle.transitions.blindY=function(f,g,e){var d=f.css("overflow","hidden").height();e.before.push(function(l,h,k){c.fn.cycle.commonReset(l,h,k);k.animIn.height=h.cycleH;k.animOut.top=l.cycleH});e.cssBefore={top:d,left:0};e.animIn={top:0};e.animOut={top:d}};c.fn.cycle.transitions.blindZ=function(g,k,f){var e=g.css("overflow","hidden").height();var d=g.width();f.before.push(function(m,h,l){c.fn.cycle.commonReset(m,h,l);l.animIn.height=h.cycleH;l.animOut.top=m.cycleH});f.cssBefore={top:e,left:d};f.animIn={top:0,left:0};f.animOut={top:e,left:d}};c.fn.cycle.transitions.growX=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,true);h.cssBefore.left=this.cycleW/2;h.animIn={left:0,width:this.cycleW};h.animOut={left:0}});d.cssBefore={width:0,top:0}};c.fn.cycle.transitions.growY=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,true,false);h.cssBefore.top=this.cycleH/2;h.animIn={top:0,height:this.cycleH};h.animOut={top:0}});d.cssBefore={height:0,left:0}};c.fn.cycle.transitions.curtainX=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,false,true,true);h.cssBefore.left=g.cycleW/2;h.animIn={left:0,width:this.cycleW};h.animOut={left:k.cycleW/2,width:0}});d.cssBefore={top:0,width:0}};c.fn.cycle.transitions.curtainY=function(e,f,d){d.before.push(function(k,g,h){c.fn.cycle.commonReset(k,g,h,true,false,true);h.cssBefore.top=g.cycleH/2;h.animIn={top:0,height:g.cycleH};h.animOut={top:k.cycleH/2,height:0}});d.cssBefore={left:0,height:0}};c.fn.cycle.transitions.cover=function(k,l,g){var m=g.direction||"left";var e=k.css("overflow","hidden").width();var f=k.height();g.before.push(function(n,d,h){c.fn.cycle.commonReset(n,d,h);if(m=="right"){h.cssBefore.left=-e}else{if(m=="up"){h.cssBefore.top=f}else{if(m=="down"){h.cssBefore.top=-f}else{h.cssBefore.left=e}}}});g.animIn={left:0,top:0};g.animOut={opacity:1};g.cssBefore={top:0,left:0}};c.fn.cycle.transitions.uncover=function(k,l,g){var m=g.direction||"left";var e=k.css("overflow","hidden").width();var f=k.height();g.before.push(function(n,d,h){c.fn.cycle.commonReset(n,d,h,true,true,true);if(m=="right"){h.animOut.left=e}else{if(m=="up"){h.animOut.top=-f}else{if(m=="down"){h.animOut.top=f}else{h.animOut.left=-e}}}});g.animIn={left:0,top:0};g.animOut={opacity:1};g.cssBefore={top:0,left:0}};c.fn.cycle.transitions.toss=function(g,k,f){var d=g.css("overflow","visible").width();var e=g.height();f.before.push(function(m,h,l){c.fn.cycle.commonReset(m,h,l,true,true,true);if(!l.animOut.left&&!l.animOut.top){l.animOut={left:d*2,top:-e/2,opacity:0}}else{l.animOut.opacity=0}});f.cssBefore={left:0,top:0};f.animIn={left:0}};c.fn.cycle.transitions.wipe=function(v,o,f){var u=v.css("overflow","hidden").width();var m=v.height();f.cssBefore=f.cssBefore||{};var g;if(f.clip){if(/l2r/.test(f.clip)){g="rect(0px 0px "+m+"px 0px)"}else{if(/r2l/.test(f.clip)){g="rect(0px "+u+"px "+m+"px "+u+"px)"}else{if(/t2b/.test(f.clip)){g="rect(0px "+u+"px 0px 0px)"}else{if(/b2t/.test(f.clip)){g="rect("+m+"px "+u+"px "+m+"px 0px)"}else{if(/zoom/.test(f.clip)){var x=parseInt(m/2);var k=parseInt(u/2);g="rect("+x+"px "+k+"px "+x+"px "+k+"px)"}}}}}}f.cssBefore.clip=f.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var n=f.cssBefore.clip.match(/(\d+)/g);var x=parseInt(n[0]),e=parseInt(n[1]),s=parseInt(n[2]),k=parseInt(n[3]);f.before.push(function(A,l,y){if(A==l){return}var h=c(A),d=c(l);c.fn.cycle.commonReset(A,l,y,true,true,false);y.cssAfter.display="block";var w=1,r=parseInt((y.speedIn/13))-1;(function z(){var C=x?x-parseInt(w*(x/r)):0;var D=k?k-parseInt(w*(k/r)):0;var E=s<m?s+parseInt(w*((m-s)/r||1)):m;var B=e<u?e+parseInt(w*((u-e)/r||1)):u;d.css({clip:"rect("+C+"px "+B+"px "+E+"px "+D+"px)"});(w++<=r)?setTimeout(z,13):h.css("display","none")})()});f.cssBefore={display:"block",opacity:1,top:0,left:0};f.animIn={left:0};f.animOut={left:0}}})(jQuery);(function(c){c.fn.kwicks=function(h){var f={isVertical:false,sticky:false,defaultKwick:0,event:"mouseover",spacing:0,duration:500};var g=c.extend(f,h);var e=(g.isVertical?"height":"width");var d=(g.isVertical?"top":"left");return this.each(function(){container=c(this);var r=container.children("li");var o=r.eq(0).css(e).replace(/px/,"");if(!g.max){g.max=(o*r.size())-(g.min*(r.size()-1))}else{g.min=((o*r.size())-g.max)/(r.size()-1)}if(g.isVertical){container.css({width:r.eq(0).css("width"),height:(o*r.size())+(g.spacing*(r.size()-1))+"px"})}else{container.css({width:(o*r.size())+(g.spacing*(r.size()-1))+"px",height:r.eq(0).css("height")})}var n=[];for(i=0;i<r.size();i++){n[i]=[];for(j=1;j<r.size()-1;j++){if(i==j){n[i][j]=g.isVertical?j*g.min+(j*g.spacing):j*g.min+(j*g.spacing)}else{n[i][j]=(j<=i?(j*g.min):(j-1)*g.min+g.max)+(j*g.spacing)}}}r.each(function(k){var l=c(this);if(k===0){l.css(d,"0px")}else{if(k==r.size()-1){l.css(g.isVertical?"bottom":"right","0px")}else{if(g.sticky){l.css(d,n[g.defaultKwick][k])}else{l.css(d,(k*o)+(k*g.spacing))}}}if(g.sticky){if(g.defaultKwick==k){l.css(e,g.max+"px");l.addClass("active")}else{l.css(e,g.min+"px")}}l.css({margin:0,position:"absolute"});l.bind(g.event,function(){var w=[];var v=[];r.stop().removeClass("active");for(j=0;j<r.size();j++){w[j]=r.eq(j).css(e).replace(/px/,"");v[j]=r.eq(j).css(d).replace(/px/,"")}var u={};u[e]=g.max;var s=g.max-w[k];var m=w[k]/s;l.addClass("active").animate(u,{step:function(y){var x=s!=0?y/s-m:1;r.each(function(z){if(z!=k){r.eq(z).css(e,w[z]-((w[z]-g.min)*x)+"px")}if(z>0&&z<r.size()-1){r.eq(z).css(d,v[z]-((v[z]-n[k][z])*x)+"px")}})},duration:g.duration,easing:g.easing})})});if(!g.sticky){container.bind("mouseleave",function(){var s=[];var m=[];r.removeClass("active").stop();for(i=0;i<r.size();i++){s[i]=r.eq(i).css(e).replace(/px/,"");m[i]=r.eq(i).css(d).replace(/px/,"")}var l={};l[e]=o;var k=o-s[0];r.eq(0).animate(l,{step:function(v){var u=k!=0?(v-s[0])/k:1;for(i=1;i<r.size();i++){r.eq(i).css(e,s[i]-((s[i]-o)*u)+"px");if(i<r.size()-1){r.eq(i).css(d,m[i]-((m[i]-((i*o)+(i*g.spacing)))*u)+"px")}}},duration:g.duration,easing:g.easing})})}})}})(jQuery);(function(c){c.widget("thomaskahn.smoothDivScroll",{options:{scrollingHotSpotLeft:"div.scrollingHotSpotLeft",scrollingHotSpotRight:"div.scrollingHotSpotRight",scrollableArea:"div.scrollableArea",scrollWrapper:"div.scrollWrapper",hiddenOnStart:false,ajaxContentURL:"",countOnlyClass:"",scrollStep:15,scrollInterval:10,mouseDownSpeedBooster:3,autoScroll:"",autoScrollDirection:"right",autoScrollStep:5,autoScrollInterval:10,visibleHotSpots:"",hotSpotsVisibleTime:5,startAtElementId:""},_create:function(){var d=this,f=this.options,e=this.element;e.data("scrollWrapper",e.find(f.scrollWrapper));e.data("scrollingHotSpotRight",e.find(f.scrollingHotSpotRight));e.data("scrollingHotSpotLeft",e.find(f.scrollingHotSpotLeft));e.data("scrollableArea",e.find(f.scrollableArea));e.data("speedBooster",1);e.data("motherElementOffset",e.offset().left);e.data("scrollXPos",0);e.data("hotSpotWidth",e.find(f.scrollingHotSpotLeft).width());e.data("scrollableAreaWidth",0);e.data("startingPosition",0);e.data("rightScrollInterval",null);e.data("leftScrollInterval",null);e.data("autoScrollInterval",null);e.data("hideHotSpotBackgroundsInterval",null);e.data("previousScrollLeft",0);e.data("pingPongDirection","right");e.data("getNextElementWidth",true);e.data("swapAt",null);e.data("startAtElementHasNotPassed",true);e.data("swappedElement",null);e.data("originalElements",e.data("scrollableArea").children(f.countOnlyClass));e.data("visible",true);e.data("initialAjaxContentLoaded",false);e.data("enabled",true);if(f.autoScroll!=="always"){switch(f.visibleHotSpots){case"always":d.showHotSpotBackgrounds();break;case"onstart":d.showHotSpotBackgrounds();e.data("hideHotSpotBackgroundsInterval",setTimeout(function(){d.hideHotSpotBackgrounds("slow")},(f.hotSpotsVisibleTime*1000)));break;default:break}}e.data("scrollingHotSpotRight").bind("mousemove",function(h){var g=h.pageX-(this.offsetLeft+e.data("motherElementOffset"));e.data("scrollXPos",Math.round((g/e.data("hotSpotWidth"))*f.scrollStep));if(e.data("scrollXPos")===Infinity){e.data("scrollXPos",0)}});e.data("scrollingHotSpotRight").bind("mouseover",function(){if((f.autoScroll==="onstart"&&e.data("autoScrollInterval")!==null)){clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._trigger("autoScrollIntervalStopped")}e.data("rightScrollInterval",setInterval(function(){if(e.data("scrollXPos")>0&&e.data("enabled")){e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()+(e.data("scrollXPos")*e.data("speedBooster")));d._showHideHotSpots()}},f.scrollInterval));d._trigger("mouseOverRightHotSpot")});e.data("scrollingHotSpotRight").bind("mouseout",function(){clearInterval(e.data("rightScrollInterval"));e.data("scrollXPos",0)});e.data("scrollingHotSpotRight").bind("mousedown",function(){e.data("speedBooster",f.mouseDownSpeedBooster)});c("body").bind("mouseup",function(){e.data("speedBooster",1)});e.data("scrollingHotSpotLeft").bind("mousemove",function(h){var g=e.data("scrollingHotSpotLeft").innerWidth()-(h.pageX-e.data("motherElementOffset"));e.data("scrollXPos",Math.round((g/e.data("hotSpotWidth"))*f.scrollStep));if(e.data("scrollXPos")===Infinity){e.data("scrollXPos",0)}});e.data("scrollingHotSpotLeft").bind("mouseover",function(){if((f.autoScroll==="onstart"&&e.data("autoScrollInterval")!==null)){clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._trigger("autoScrollIntervalStopped")}e.data("leftScrollInterval",setInterval(function(){if(e.data("scrollXPos")>0&&e.data("enabled")){e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()-(e.data("scrollXPos")*e.data("speedBooster")));d._showHideHotSpots()}},f.scrollInterval));d._trigger("mouseOverLeftHotSpot")});e.data("scrollingHotSpotLeft").bind("mouseout",function(){clearInterval(e.data("leftScrollInterval"));e.data("scrollXPos",0)});e.data("scrollingHotSpotLeft").bind("mousedown",function(){e.data("speedBooster",f.mouseDownSpeedBooster)});c(window).bind("resize",function(){if(!(f.hiddenOnStart)){d._showHideHotSpots()}d._trigger("windowResized")});if(f.ajaxContentURL.length>0){d.replaceContent(f.ajaxContentURL)}else{d.recalculateScrollableArea()}if(f.hiddenOnStart){d.hide()}if((f.autoScroll.length>0)&&!(f.hiddenOnStart)&&(f.ajaxContentURL.length<=0)){d.startAutoScroll()}},showHotSpotBackgrounds:function(e){var d=this,f=this.element;if(e!==undefined){f.data("scrollingHotSpotLeft").css("opacity","0.0");f.data("scrollingHotSpotRight").css("opacity","0.0");f.data("scrollingHotSpotLeft").addClass("scrollingHotSpotLeftVisible");f.data("scrollingHotSpotRight").addClass("scrollingHotSpotRightVisible");f.data("scrollingHotSpotLeft").fadeTo(e,0.35);f.data("scrollingHotSpotRight").fadeTo(e,0.35)}else{f.data("scrollingHotSpotLeft").addClass("scrollingHotSpotLeftVisible");f.data("scrollingHotSpotLeft").removeAttr("style");f.data("scrollingHotSpotRight").addClass("scrollingHotSpotRightVisible");f.data("scrollingHotSpotRight").removeAttr("style")}d._showHideHotSpots()},hideHotSpotBackgrounds:function(d){var e=this.element;if(d!==undefined){e.data("scrollingHotSpotLeft").fadeTo(d,0,function(){e.data("scrollingHotSpotLeft").removeClass("scrollingHotSpotLeftVisible")});e.data("scrollingHotSpotRight").fadeTo(d,0,function(){e.data("scrollingHotSpotRight").removeClass("scrollingHotSpotRightVisible")})}else{e.data("scrollingHotSpotLeft").removeClass("scrollingHotSpotLeftVisible");e.data("scrollingHotSpotLeft").removeAttr("style");e.data("scrollingHotSpotRight").removeClass("scrollingHotSpotRightVisible");e.data("scrollingHotSpotRight").removeAttr("style")}},_showHideHotSpots:function(){var d=this,e=this.element,f=this.options;if(f.autoScroll!=="always"){if(e.data("scrollableAreaWidth")<=(e.data("scrollWrapper").innerWidth())){e.data("scrollingHotSpotLeft").hide();e.data("scrollingHotSpotRight").hide()}else{if(e.data("scrollWrapper").scrollLeft()===0){e.data("scrollingHotSpotLeft").hide();e.data("scrollingHotSpotRight").show();d._trigger("scrollLeftLimitReached");clearInterval(e.data("leftScrollInterval"));e.data("leftScrollInterval",null)}else{if(e.data("scrollableAreaWidth")<=(e.data("scrollWrapper").innerWidth()+e.data("scrollWrapper").scrollLeft())){e.data("scrollingHotSpotLeft").show();e.data("scrollingHotSpotRight").hide();d._trigger("scrollRightLimitReached");clearInterval(e.data("rightScrollInterval"));e.data("rightScrollInterval",null)}else{e.data("scrollingHotSpotLeft").show();e.data("scrollingHotSpotRight").show()}}}}else{e.data("scrollingHotSpotLeft").hide();e.data("scrollingHotSpotRight").hide()}},moveToElement:function(e,d){var g=this,h=this.element,l=this.options,f=0,k=false;switch(e){case"first":h.data("scrollXPos",0);g._trigger("movedToFirstElement");break;case"start":h.data("scrollableArea").children(l.countOnlyClass).each(function(){if((l.startAtElementId.length>0)&&((c(this).attr("id"))===l.startAtElementId)){h.data("startingPosition",f);k=true}f=f+c(this).outerWidth(true)});h.data("scrollXPos",h.data("startingPosition"));g._trigger("movedToStartElement");break;case"last":h.data("scrollXPos",h.data("scrollableAreaWidth"));g._trigger("movedToLastElement");break;case"number":if(!(isNaN(d))){h.data("scrollableArea").children(l.countOnlyClass).each(function(m){if(m===(d-1)){h.data("scrollXPos",f)}f=f+c(this).outerWidth(true)})}g._trigger("movedToElementNumber",null,{elementNumber:d});break;default:break}h.data("scrollWrapper").scrollLeft(h.data("scrollXPos"));g._showHideHotSpots()},addContent:function(g,e){var d=this,f=this.element;c.get(g,function(h){if(e==="first"){f.data("scrollableArea").children(":first").before(h)}else{f.data("scrollableArea").children(":last").after(h)}d.recalculateScrollableArea();d._showHideHotSpots()})},replaceContent:function(f){var d=this,e=this.element;e.data("scrollableArea").load(f,function(){d.recalculateScrollableArea();d.moveToElement("first");d._showHideHotSpots();e.data("startingPosition",0)})},recalculateScrollableArea:function(){var d=0,h=false,g=this.options,f=this.element,e=this;f.data("scrollableArea").children(g.countOnlyClass).each(function(){if((g.startAtElementId.length>0)&&((c(this).attr("id"))===g.startAtElementId)){f.data("startingPosition",d);h=true}d=d+c(this).outerWidth(true)});if(!(h)){f.data("startAtElementId","")}f.data("scrollableAreaWidth",d);f.data("scrollableArea").width(f.data("scrollableAreaWidth"));f.data("scrollWrapper").scrollLeft(f.data("startingPosition"));f.data("scrollXPos",f.data("startingPosition"));if(!(f.data("initialAjaxContentLoaded"))){if((g.autoScroll.length>0)&&!(g.hiddenOnStart)&&(g.ajaxContentURL.length>0)){e.startAutoScroll();f.data("initialAjaxContentLoaded",true)}}},stopAutoScroll:function(){var d=this,e=this.element;clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._showHideHotSpots();d._trigger("autoScrollStopped")},startAutoScroll:function(){var d=this,e=this.element,f=this.options;d._showHideHotSpots();clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._trigger("autoScrollStarted");e.data("autoScrollInterval",setInterval(function(){if(!(e.data("visible"))||(e.data("scrollableAreaWidth")<=(e.data("scrollWrapper").innerWidth()))){clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null)}else{e.data("previousScrollLeft",e.data("scrollWrapper").scrollLeft());switch(f.autoScrollDirection){case"right":e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()+f.autoScrollStep);if(e.data("previousScrollLeft")===e.data("scrollWrapper").scrollLeft()){d._trigger("autoScrollRightLimitReached");clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._trigger("autoScrollIntervalStopped")}break;case"left":e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()-f.autoScrollStep);if(e.data("previousScrollLeft")===e.data("scrollWrapper").scrollLeft()){d._trigger("autoScrollLeftLimitReached");clearInterval(e.data("autoScrollInterval"));e.data("autoScrollInterval",null);d._trigger("autoScrollIntervalStopped")}break;case"backandforth":if(e.data("pingPongDirection")==="right"){e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()+(f.autoScrollStep))}else{e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()-(f.autoScrollStep))}if(e.data("previousScrollLeft")===e.data("scrollWrapper").scrollLeft()){if(e.data("pingPongDirection")==="right"){e.data("pingPongDirection","left");d._trigger("autoScrollRightLimitReached")}else{e.data("pingPongDirection","right");d._trigger("autoScrollLeftLimitReached")}}break;case"endlessloopright":if(e.data("getNextElementWidth")){if((f.startAtElementId.length>0)&&(e.data("startAtElementHasNotPassed"))){e.data("swapAt",c("#"+f.startAtElementId).outerWidth(true));e.data("startAtElementHasNotPassed",false)}else{e.data("swapAt",e.data("scrollableArea").children(":first").outerWidth(true))}e.data("getNextElementWidth",false)}e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()+f.autoScrollStep);if(e.data("swapAt")<=e.data("scrollWrapper").scrollLeft()){e.data("swappedElement",e.data("scrollableArea").children(":first").detach());e.data("scrollableArea").append(e.data("swappedElement"));e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()-e.data("swappedElement").outerWidth(true));e.data("getNextElementWidth",true)}break;case"endlessloopleft":if(e.data("getNextElementWidth")){if((f.startAtElementId.length>0)&&(e.data("startAtElementHasNotPassed"))){e.data("swapAt",c("#"+f.startAtElementId).outerWidth(true));e.data("startAtElementHasNotPassed",false)}else{e.data("swapAt",e.data("scrollableArea").children(":first").outerWidth(true))}e.data("getNextElementWidth",false)}e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()-f.autoScrollStep);if(e.data("scrollWrapper").scrollLeft()===0){e.data("swappedElement",e.data("scrollableArea").children(":last").detach());e.data("scrollableArea").prepend(e.data("swappedElement"));e.data("scrollWrapper").scrollLeft(e.data("scrollWrapper").scrollLeft()+e.data("swappedElement").outerWidth(true));e.data("getNextElementWidth",true)}break;default:break}}},f.autoScrollInterval))},restoreOriginalElements:function(){var d=this,e=this.element;e.data("scrollableArea").html(e.data("originalElements"));d.recalculateScrollableArea();d.moveToElement("first")},show:function(){var d=this.element;d.data("visible",true);d.show()},hide:function(){var d=this.element;d.data("visible",false);d.hide()},enable:function(){var d=this.element;d.data("enabled",true)},disable:function(){var d=this.element;clearInterval(d.data("autoScrollInterval"));clearInterval(d.data("rightScrollInterval"));clearInterval(d.data("leftScrollInterval"));clearInterval(d.data("hideHotSpotBackgroundsInterval"));d.data("enabled",false)},destroy:function(){var d=this.element;clearInterval(d.data("autoScrollInterval"));clearInterval(d.data("rightScrollInterval"));clearInterval(d.data("leftScrollInterval"));clearInterval(d.data("hideHotSpotBackgroundsInterval"));d.data("scrollingHotSpotRight").unbind("mouseover");d.data("scrollingHotSpotRight").unbind("mouseout");d.data("scrollingHotSpotRight").unbind("mousedown");d.data("scrollingHotSpotLeft").unbind("mouseover");d.data("scrollingHotSpotLeft").unbind("mouseout");d.data("scrollingHotSpotLeft").unbind("mousedown");d.data("scrollableArea").html(d.data("originalElements"));d.data("scrollableArea").removeAttr("style");d.data("scrollingHotSpotRight").removeAttr("style");d.data("scrollingHotSpotLeft").removeAttr("style");d.data("scrollWrapper").scrollLeft(0);d.data("scrollingHotSpotLeft").removeClass("scrollingHotSpotLeftVisible");d.data("scrollingHotSpotRight").removeClass("scrollingHotSpotRightVisible");d.data("scrollingHotSpotRight").hide();d.data("scrollingHotSpotLeft").hide();c.Widget.prototype.destroy.apply(this,arguments)}})})(jQuery);function slide(g,c,d,h,l){var f=g+" li.slidingElement";var e=f+" a";var k=0;$(f).each(function(m){$(this).css("margin-left","-175px");k=(k*l+h);$(this).animate({marginLeft:"0"},k);$(this).animate({marginLeft:"15px"},k);$(this).animate({marginLeft:"0"},k)});$(e).each(function(m){$(this).hover(function(){$(this).animate({paddingLeft:c},300)},function(){$(this).animate({paddingLeft:d},300)})})}﻿jQuery.fn.extend({everyTime:function(c,d,e,f){return this.each(function(){jQuery.timer.add(this,c,d,e,f)})},oneTime:function(c,d,e){return this.each(function(){jQuery.timer.add(this,c,d,e,1)})},stopTime:function(c,d){return this.each(function(){jQuery.timer.remove(this,c,d)})}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(e){if(e==undefined||e==null){return null}var c=this.regex.exec(jQuery.trim(e.toString()));if(c[2]){var d=parseFloat(c[1]);var f=this.powers[c[2]]||1;return d*f}else{return e}},add:function(f,d,e,h,l){var c=0;if(jQuery.isFunction(e)){if(!l){l=h}h=e;e=d}d=jQuery.timer.timeParse(d);if(typeof d!="number"||isNaN(d)||d<0){return}if(typeof l!="number"||isNaN(l)||l<0){l=0}l=l||0;var k=jQuery.data(f,this.dataKey)||jQuery.data(f,this.dataKey,{});if(!k[e]){k[e]={}}h.timerID=h.timerID||this.guid++;var g=function(){if((++c>l&&l!==0)||h.call(f,c)===false){jQuery.timer.remove(f,e,h)}};g.timerID=h.timerID;if(!k[e][h.timerID]){k[e][h.timerID]=window.setInterval(g,d)}this.global.push(f)},remove:function(e,d,f){var g=jQuery.data(e,this.dataKey),c;if(g){if(!d){for(d in g){this.remove(e,d,f)}}else{if(g[d]){if(f){if(f.timerID){window.clearInterval(g[d][f.timerID]);delete g[d][f.timerID]}}else{for(var f in g[d]){window.clearInterval(g[d][f]);delete g[d][f]}}for(c in g[d]){break}if(!c){c=null;delete g[d]}}}for(c in g){break}if(!c){jQuery.removeData(e,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(c,d){jQuery.timer.remove(d)})});var window_loaded=false;(function(c){c.fn.galleryView=function(D){var I=c.extend(c.fn.galleryView.defaults,D);var P;var y=0;var m=0;var K;var G="js/themes/";var X=false;var v;var S;var C;var O;var A;var g;var x;var e;var E;var F=20;var u;var L;var k;var n={};var V={};var Z={};var U={};var o=true;var d=false;var H;var R;var aa;var N;var T;var Y;function z(ac){c(".nav-next-overlay",H).unbind("click");c(".nav-prev-overlay",H).unbind("click");c(".nav-next",H).unbind("click");c(".nav-prev",H).unbind("click");aa.unbind("click");if(I.show_filmstrip){aa.removeClass("current").find("img").stop().animate({opacity:I.frame_opacity},I.transition_speed);aa.eq(ac).addClass("current").find("img").stop().animate({opacity:1},I.transition_speed)}if(I.show_panels&&I.fade_panels){T.fadeOut(I.transition_speed).eq(ac%m).fadeIn(I.transition_speed,function(){if(!I.show_filmstrip){c(".nav-prev-overlay",H).click(W);c(".nav-next-overlay",H).click(h);c(".nav-prev",H).click(W);c(".nav-next",H).click(h)}})}if(I.show_filmstrip){if(K=="strip"){R.stop();var ae;var ab;if(k=="horizontal"){ae=B(aa[ac]).left-(B(Y[0]).left+(O/2)-(e/2));ab=(ae>=0?"-=":"+=")+Math.abs(ae)+"px";R.animate({left:ab},I.transition_speed,I.easing,function(){var af=ac;if(ac>m){ac=ac%m;y=ac;R.css("left","-"+((e+I.frame_gap)*ac)+"px")}else{if(ac<=(m-strip_size)){ac=(ac%m)+m;y=ac;R.css("left","-"+((e+I.frame_gap)*ac)+"px")}}if(af!=ac){aa.eq(af).removeClass("current").find("img").css({opacity:I.frame_opacity});aa.eq(ac).addClass("current").find("img").css({opacity:1})}if(!I.fade_panels){T.hide().eq(ac%m).show()}c(".nav-prev-overlay",H).click(W);c(".nav-next-overlay",H).click(h);c(".nav-prev",H).click(W);c(".nav-next",H).click(h);Q()})}else{ae=B(aa[ac]).top-(B(Y[0]).top+(C)-(E/2));ab=(ae>=0?"-=":"+=")+Math.abs(ae)+"px";R.animate({top:ab},I.transition_speed,I.easing,function(){var af=ac;if(ac>m){ac=ac%m;y=ac;R.css("top","-"+((E+I.frame_gap)*ac)+"px")}else{if(ac<=(m-strip_size)){ac=(ac%m)+m;y=ac;R.css("top","-"+((E+I.frame_gap)*ac)+"px")}}if(af!=ac){aa.eq(af).removeClass("current").find("img").css({opacity:I.frame_opacity});aa.eq(ac).addClass("current").find("img").css({opacity:1})}if(!I.fade_panels){T.hide().eq(ac%m).show()}c(".nav-prev-overlay",H).click(W);c(".nav-next-overlay",H).click(h);c(".nav-prev",H).click(W);c(".nav-next",H).click(h);Q()})}}else{if(K=="pointer"){Y.stop();var ad=B(aa[ac]);if(k=="horizontal"){Y.animate({left:(ad.left+(e/2)-(O/2)+"px")},I.transition_speed,I.easing,function(){if(!I.fade_panels){T.hide().eq(ac%m).show()}c(".nav-prev-overlay",H).click(W);c(".nav-next-overlay",H).click(h);c(".nav-prev",H).click(W);c(".nav-next",H).click(h);Q()})}else{Y.animate({top:(ad.top+(E/2)-(C)+"px")},I.transition_speed,I.easing,function(){if(!I.fade_panels){T.hide().eq(ac%m).show()}c(".nav-prev-overlay",H).click(W);c(".nav-next-overlay",H).click(h);c(".nav-prev",H).click(W);c(".nav-next",H).click(h);Q()})}}}}}function s(ac){if(!ac){return 0}if(ac.length==0){return 0}ac=ac.eq(0);var ab=0;ab+=J(ac.css("paddingLeft"));ab+=J(ac.css("paddingRight"));ab+=J(ac.css("borderLeftWidth"));ab+=J(ac.css("borderRightWidth"));return ab}function l(ab){if(!ab){return 0}if(ab.length==0){return 0}ab=ab.eq(0);var ac=0;ac+=J(ab.css("paddingTop"));ac+=J(ab.css("paddingBottom"));ac+=J(ab.css("borderTopWidth"));ac+=J(ab.css("borderBottomWidth"));return ac}function h(){c(document).stopTime("transition");if(++y==aa.length){y=0}z(y);if(!X){c(document).everyTime(I.transition_interval,"transition",function(){h()})}}function W(){c(document).stopTime("transition");if(--y<0){y=m-1}z(y);if(!X){c(document).everyTime(I.transition_interval,"transition",function(){h()})}}function B(ae){var ah=0,ag=0;var ab=ae.id;if(ae.offsetParent){do{ah+=ae.offsetLeft;ag+=ae.offsetTop}while(ae=ae.offsetParent)}if(ab==P){return{left:ah,top:ag}}else{var ad=B(H[0]);var af=ad.left;var ac=ad.top;return{left:ah-af,top:ag-ac}}}function Q(){aa.each(function(ab){if(c("a",this).length==0){c(this).click(function(){if(y!=ab){c(document).stopTime("transition");z(ab);y=ab;if(!X){c(document).everyTime(I.transition_interval,"transition",function(){h()})}}})}})}function r(){T.each(function(ab){if(c(".panel-overlay",this).length>0){c(this).append('<div class="overlay-background"></div>')}});if(!I.show_filmstrip){c("<img />").addClass("nav-next").attr("src",G+I.nav_theme+"/next.gif").appendTo(H).css({position:"absolute",zIndex:"1100",cursor:"pointer",top:((I.panel_height-22)/2)+u+"px",right:"10px",display:"none"}).click(h);c("<img />").addClass("nav-prev").attr("src",G+I.nav_theme+"/prev.gif").appendTo(H).css({position:"absolute",zIndex:"1100",cursor:"pointer",top:((I.panel_height-22)/2)+u+"px",left:"10px",display:"none"}).click(W);c("<img />").addClass("nav-next-overlay").attr("src",G+I.nav_theme+"/panel-nav-next.gif").appendTo(H).css({position:"absolute",zIndex:"1099",top:((I.panel_height-22)/2)+u-10+"px",right:"0",display:"none",cursor:"pointer",opacity:0.75}).click(h);c("<img />").addClass("nav-prev-overlay").attr("src",G+I.nav_theme+"/panel-nav-prev.gif").appendTo(H).css({position:"absolute",zIndex:"1099",top:((I.panel_height-22)/2)+u-10+"px",left:"0",display:"none",cursor:"pointer",opacity:0.75}).click(W)}T.each(function(ab){c(this).css({width:(I.panel_width-s(T))+"px",height:(I.panel_height-l(T))+"px",position:"absolute",overflow:"hidden",display:"none"});switch(I.filmstrip_position){case"top":c(this).css({top:g+Math.max(u,L)+"px",left:u+"px"});break;case"left":c(this).css({top:u+"px",left:A+Math.max(u,L)+"px"});break;default:c(this).css({top:u+"px",left:u+"px"});break}});c(".panel-overlay",T).css({position:"absolute",zIndex:"999",width:(I.panel_width-s(c(".panel-overlay",T)))+"px",left:"0"});c(".overlay-background",T).css({position:"absolute",zIndex:"998",width:I.panel_width+"px",left:"0",opacity:I.overlay_opacity});if(I.overlay_position=="top"){c(".panel-overlay",T).css("top",0);c(".overlay-background",T).css("top",0)}else{c(".panel-overlay",T).css("bottom",0);c(".overlay-background",T).css("bottom",0)}c(".panel iframe",T).css({width:I.panel_width+"px",height:I.panel_height+"px",border:"0"});if(o){c("img",T).each(function(ab){c(this).css({height:V[ab%m]*Z[ab%m],width:V[ab%m]*U[ab%m],position:"relative",top:(I.panel_height-(V[ab%m]*Z[ab%m]))/2+"px",left:(I.panel_width-(V[ab%m]*U[ab%m]))/2+"px"})})}}function f(){R.wrap('<div class="strip_wrapper"></div>');if(K=="strip"){aa.clone().appendTo(R);aa.clone().appendTo(R);aa=c("li",R)}if(I.show_captions){aa.append('<div class="caption"></div>').each(function(af){c(this).find(".caption").html(c(this).find("img").attr("title"))})}R.css({listStyle:"none",margin:"0",padding:"0",width:A+"px",position:"absolute",zIndex:"900",top:(k=="vertical"&&K=="strip"?-((E+I.frame_gap)*y):0)+"px",left:(k=="horizontal"&&K=="strip"?-((e+I.frame_gap)*y):0)+"px",height:g+"px"});aa.css({"float":"left",position:"relative",height:E+(I.show_captions?F:0)+"px",width:e+"px",zIndex:"901",padding:"0",cursor:"pointer"});switch(I.filmstrip_position){case"top":aa.css({marginBottom:L+"px",marginRight:I.frame_gap+"px"});break;case"bottom":aa.css({marginTop:L+"px",marginRight:I.frame_gap+"px"});break;case"left":aa.css({marginRight:L+"px",marginBottom:I.frame_gap+"px"});break;case"right":aa.css({marginLeft:L+"px",marginBottom:I.frame_gap+"px"});break}c(".img_wrap",aa).each(function(af){c(this).css({height:Math.min(I.frame_height,Z[af%m]*n[af%m])+"px",width:Math.min(I.frame_width,U[af%m]*n[af%m])+"px",position:"relative",top:(I.show_captions&&I.filmstrip_position=="top"?F:0)+Math.max(0,(I.frame_height-(n[af%m]*Z[af%m]))/2)+"px",left:Math.max(0,(I.frame_width-(n[af%m]*U[af%m]))/2)+"px",overflow:"hidden"})});c("img",aa).each(function(af){c(this).css({opacity:I.frame_opacity,height:Z[af%m]*n[af%m]+"px",width:U[af%m]*n[af%m]+"px",position:"relative",top:Math.min(0,(I.frame_height-(n[af%m]*Z[af%m]))/2)+"px",left:Math.min(0,(I.frame_width-(n[af%m]*U[af%m]))/2)+"px"}).mouseover(function(){c(this).stop().animate({opacity:1},300)}).mouseout(function(){if(!c(this).parent().parent().hasClass("current")){c(this).stop().animate({opacity:I.frame_opacity},300)}})});c(".strip_wrapper",H).css({position:"absolute",overflow:"hidden"});if(k=="horizontal"){c(".strip_wrapper",H).css({top:(I.filmstrip_position=="top"?Math.max(u,L)+"px":I.panel_height+u+"px"),left:((v-x)/2)+u+"px",width:x+"px",height:g+"px"})}else{c(".strip_wrapper",H).css({left:(I.filmstrip_position=="left"?Math.max(u,L)+"px":I.panel_width+u+"px"),top:Math.max(u,I.frame_gap)+"px",width:A+"px",height:wrapper_height+"px"})}c(".caption",H).css({position:"absolute",top:(I.filmstrip_position=="bottom"?E:0)+"px",left:"0",margin:"0",width:e+"px",padding:"0",height:F+"px",overflow:"hidden",lineHeight:F+"px"});var ae=c("<div></div>");ae.addClass("pointer").appendTo(H).css({position:"absolute",zIndex:"1000",width:"0px",fontSize:"0px",lineHeight:"0%",borderTopWidth:C+"px",borderRightWidth:(O/2)+"px",borderBottomWidth:C+"px",borderLeftWidth:(O/2)+"px",borderStyle:"solid"});var ab=c.browser.msie&&c.browser.version.substr(0,1)=="6"?"pink":"transparent";if(!I.show_panels){ae.css("borderColor",ab)}switch(I.filmstrip_position){case"top":ae.css({bottom:(I.panel_height-(C*2)+u+L)+"px",left:((v-x)/2)+(K=="strip"?0:((e+I.frame_gap)*y))+((e/2)-(O/2))+u+"px",borderBottomColor:ab,borderRightColor:ab,borderLeftColor:ab});break;case"bottom":ae.css({top:(I.panel_height-(C*2)+u+L)+"px",left:((v-x)/2)+(K=="strip"?0:((e+I.frame_gap)*y))+((e/2)-(O/2))+u+"px",borderTopColor:ab,borderRightColor:ab,borderLeftColor:ab});break;case"left":ae.css({right:(I.panel_width-O+u+L)+"px",top:(E/2)-(C)+(K=="strip"?0:((E+I.frame_gap)*y))+u+"px",borderBottomColor:ab,borderRightColor:ab,borderTopColor:ab});break;case"right":ae.css({left:(I.panel_width-O+u+L)+"px",top:(E/2)-(C)+(K=="strip"?0:((E+I.frame_gap)*y))+u+"px",borderBottomColor:ab,borderLeftColor:ab,borderTopColor:ab});break}Y=c(".pointer",H);var ac=c("<img />");ac.addClass("nav-next").attr("src",G+I.nav_theme+"/next.gif").appendTo(H).css({position:"absolute",cursor:"pointer"}).click(h);var ad=c("<img />");ad.addClass("nav-prev").attr("src",G+I.nav_theme+"/prev.gif").appendTo(H).css({position:"absolute",cursor:"pointer"}).click(W);if(k=="horizontal"){ac.css({top:(I.filmstrip_position=="top"?Math.max(u,L):I.panel_height+L+u)+((E-22)/2)+"px",right:((v+(u*2))/2)-(x/2)-I.frame_gap-22+"px"});ad.css({top:(I.filmstrip_position=="top"?Math.max(u,L):I.panel_height+L+u)+((E-22)/2)+"px",left:((v+(u*2))/2)-(x/2)-I.frame_gap-22+"px"})}else{ac.css({left:(I.filmstrip_position=="left"?Math.max(u,L):I.panel_width+L+u)+((e-22)/2)+13+"px",top:wrapper_height+(Math.max(u,I.frame_gap)*2)+"px"});ad.css({left:(I.filmstrip_position=="left"?Math.max(u,L):I.panel_width+L+u)+((e-22)/2)-13+"px",top:wrapper_height+(Math.max(u,I.frame_gap)*2)+"px"})}}function M(ab,af){var ae=B(H[0]);var ad=ae.top;var ac=ae.left;return ab>ac&&ab<ac+v+(k=="horizontal"?(u*2):u+Math.max(u,L))&&af>ad&&af<ad+S+(k=="vertical"?(u*2):u+Math.max(u,L))}function J(ab){ab=parseInt(ab,10);if(isNaN(ab)){ab=0}return ab}function w(){var ab=I.show_filmstrip?c("img",aa):c("img",T);ab.each(function(ac){Z[ac]=this.height;U[ac]=this.width;if(I.frame_scale=="nocrop"){n[ac]=Math.min(I.frame_height/Z[ac],I.frame_width/U[ac])}else{n[ac]=Math.max(I.frame_height/Z[ac],I.frame_width/U[ac])}if(I.panel_scale=="nocrop"){V[ac]=Math.min(I.panel_height/Z[ac],I.panel_width/U[ac])}else{V[ac]=Math.max(I.panel_height/Z[ac],I.panel_width/U[ac])}});H.css({position:"relative",width:v+(k=="horizontal"?(u*2):u+Math.max(u,L))+"px",height:S+(k=="vertical"?(u*2):u+Math.max(u,L))+"px"});if(I.show_filmstrip){f();Q()}if(I.show_panels){r()}if(I.pause_on_hover||(I.show_panels&&!I.show_filmstrip)){c(document).mousemove(function(ac){if(M(ac.pageX,ac.pageY)){if(I.pause_on_hover){if(!X){c(document).oneTime(500,"animation_pause",function(){c(document).stopTime("transition");X=true})}}if(I.show_panels&&!I.show_filmstrip&&!d){c(".nav-next-overlay").fadeIn("fast");c(".nav-prev-overlay").fadeIn("fast");c(".nav-next",H).fadeIn("fast");c(".nav-prev",H).fadeIn("fast");d=true}}else{if(I.pause_on_hover){c(document).stopTime("animation_pause");if(X){c(document).everyTime(I.transition_interval,"transition",function(){h()});X=false}}if(I.show_panels&&!I.show_filmstrip&&d){c(".nav-next-overlay").fadeOut("fast");c(".nav-prev-overlay").fadeOut("fast");c(".nav-next",H).fadeOut("fast");c(".nav-prev",H).fadeOut("fast");d=false}}})}R.css("visibility","visible");H.css("visibility","visible");c(".loader",H).fadeOut("1000",function(){z(y);if(m>1){c(document).everyTime(I.transition_interval,"transition",function(){h()})}})}return this.each(function(){c(this).css("visibility","hidden");c(this).wrap("<div></div>");H=c(this).parent();H.css("visibility","hidden").attr("id",c(this).attr("id")).addClass("gallery");c(this).removeAttr("id").addClass("filmstrip");c(document).stopTime("transition");c(document).stopTime("animation_pause");P=H.attr("id");o=c(".panel-content",H).length==0;C=I.pointer_size;O=I.pointer_size*2;k=(I.filmstrip_position=="top"||I.filmstrip_position=="bottom"?"horizontal":"vertical");if(k=="vertical"){I.show_captions=false}c("script").each(function(ab){var ac=c(this);if(ac.attr("src")&&ac.attr("src").match(/jquery\.galleryview/)){loader_path=ac.attr("src").split("jquery.galleryview")[0];G="js/themes/"}});R=c(".filmstrip",H);aa=c("li",R);aa.addClass("frame");if(I.show_panels){for(i=aa.length-1;i>=0;i--){if(aa.eq(i).find(".panel-content").length>0){aa.eq(i).find(".panel-content").remove().prependTo(H).addClass("panel")}else{p=c("<div>");p.addClass("panel");im=c("<img />");im.attr("src",aa.eq(i).find("img").eq(0).attr("src")).appendTo(p);p.prependTo(H);aa.eq(i).find(".panel-overlay").remove().appendTo(p)}}}else{c(".panel-overlay",aa).remove();c(".panel-content",aa).remove()}if(!I.show_filmstrip){R.remove()}else{aa.each(function(ab){if(c(this).find("a").length>0){c(this).find("a").wrap('<div class="img_wrap"></div>')}else{c(this).find("img").wrap('<div class="img_wrap"></div>')}});N=c(".img_wrap",aa)}T=c(".panel",H);if(!I.show_panels){I.panel_height=0;I.panel_width=0}e=I.frame_width+s(N);E=I.frame_height+l(N);m=I.show_panels?T.length:aa.length;if(k=="horizontal"){strip_size=I.show_panels?Math.floor((I.panel_width-((I.frame_gap+22)*2))/(e+I.frame_gap)):Math.min(m,I.filmstrip_size)}else{strip_size=I.show_panels?Math.floor((I.panel_height-(I.frame_gap+22))/(E+I.frame_gap)):Math.min(m,I.filmstrip_size)}if(strip_size>=m){K="pointer";strip_size=m}else{K="strip"}y=(strip_size<m?m:0)+I.start_frame-1;L=(I.show_panels?J(R.css("marginTop")):0);R.css("margin","0px");if(k=="horizontal"){v=I.show_panels?I.panel_width:(strip_size*(e+I.frame_gap))+44+I.frame_gap;S=(I.show_panels?I.panel_height:0)+(I.show_filmstrip?E+L+(I.show_captions?F:0):0)}else{S=I.show_panels?I.panel_height:(strip_size*(E+I.frame_gap))+22;v=(I.show_panels?I.panel_width:0)+(I.show_filmstrip?e+L:0)}if(k=="horizontal"){if(K=="pointer"){A=(e*m)+(I.frame_gap*(m))}else{A=(e*m*3)+(I.frame_gap*(m*3))}}else{A=(e+L)}if(k=="horizontal"){g=(E+L+(I.show_captions?F:0))}else{if(K=="pointer"){g=(E*m+I.frame_gap*(m))}else{g=(E*m*3)+(I.frame_gap*(m*3))}}x=((strip_size*e)+((strip_size-1)*I.frame_gap));wrapper_height=((strip_size*E)+((strip_size-1)*I.frame_gap));u=J(H.css("paddingTop"));H.css("padding","0px");galleryPos=B(H[0]);c("<div>").addClass("loader").css({position:"absolute",zIndex:"32666",opacity:1,top:"0px",left:"0px",width:v+(k=="horizontal"?(u*2):u+Math.max(u,L))+"px",height:S+(k=="vertical"?(u*2):u+Math.max(u,L))+"px"}).appendTo(H);if(!window_loaded){c(window).load(function(){window_loaded=true;w()})}else{w()}})};c.fn.galleryView.defaults={show_panels:true,show_filmstrip:true,panel_width:600,panel_height:400,frame_width:60,frame_height:40,start_frame:1,filmstrip_size:3,transition_speed:800,transition_interval:4000,overlay_opacity:0.7,frame_opacity:0.3,pointer_size:8,nav_theme:"dark",easing:"swing",filmstrip_position:"bottom",overlay_position:"bottom",panel_scale:"nocrop",frame_scale:"crop",frame_gap:5,show_captions:false,fade_panels:true,pause_on_hover:false}})(jQuery);(function(c){c.fn.ellipsis=function(d){var e=document.documentElement.style;if(!("textOverflow" in e||"OTextOverflow" in e)){return this.each(function(){var h=c(this);if(h.css("overflow")=="hidden"){var m=h.html();var f=h.width();var g=c(this.cloneNode(true)).hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"});h.after(g);var l=m;while(l.length>0&&g.width()>h.width()){l=l.substr(0,l.length-1);g.html(l+"...")}h.html(g.html());g.remove();if(d==true){var k=h.width();setInterval(function(){if(h.width()!=k){k=h.width();h.html(m);h.ellipsis()}},200)}}})}else{return this}}})(jQuery);(function(d){d.fn.superfish=function(n){var h=d.fn.superfish,m=h.c,g=d(['<span class="',m.arrowClass,'"> &#187;</span>'].join("")),l=function(){var o=d(this),r=e(o);clearTimeout(r.sfTimer);o.showSuperfishUl().siblings().hideSuperfishUl()},f=function(){var r=d(this),u=e(r),s=h.op;clearTimeout(u.sfTimer);u.sfTimer=setTimeout(function(){s.retainPath=(d.inArray(r[0],s.$path)>-1);r.hideSuperfishUl();if(s.$path.length&&r.parents(["li.",s.hoverClass].join("")).length<1){l.call(s.$path)}},s.delay)},e=function(o){var r=o.parents(["ul.",m.menuClass,":first"].join(""))[0];h.op=h.o[r.serial];return r},k=function(o){o.addClass(m.anchorClass).append(g.clone())};return this.each(function(){var r=this.serial=h.o.length;var v=d.extend({},h.defaults,n);v.$path=d("li."+v.pathClass,this).slice(0,v.pathLevels).each(function(){d(this).addClass([v.hoverClass,m.bcClass].join(" ")).filter("li:has(ul)").removeClass(v.pathClass)});h.o[r]=h.op=v;d("li:has(ul)",this)[(d.fn.hoverIntent&&!v.disableHI)?"hoverIntent":"hover"](l,f).each(function(){if(v.autoArrows){k(d(">a:first-child",this))}}).not("."+m.bcClass).hideSuperfishUl();var u=d("a",this);u.each(function(o){var s=u.eq(o).parents("li");u.eq(o).focus(function(){l.call(s)}).blur(function(){f.call(s)})});v.onInit.call(this)}).each(function(){var o=[m.menuClass];if(h.op.dropShadows&&!(d.browser.msie&&d.browser.version<7)){o.push(m.shadowClass)}d(this).addClass(o.join(" "))})};var c=d.fn.superfish;c.o=[];c.op={};c.IE7fix=function(){var e=c.op;if(d.browser.msie&&d.browser.version>6&&e.dropShadows&&e.animation.opacity!=undefined){this.toggleClass(c.c.shadowClass+"-off")}};c.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};c.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};d.fn.extend({hideSuperfishUl:function(){var g=c.op,f=(g.retainPath===true)?g.$path:"";g.retainPath=false;var e=d(["li.",g.hoverClass].join(""),this).add(this).not(f).removeClass(g.hoverClass).find(">ul").hide().css("visibility","hidden");g.onHide.call(e);return this},showSuperfishUl:function(){var g=c.op,f=c.c.shadowClass+"-off",e=this.addClass(g.hoverClass).find(">ul:hidden").css("visibility","visible");c.IE7fix.call(e);g.onBeforeShow.call(e);e.animate(g.animation,g.speed,function(){c.IE7fix.call(e);g.onShow.call(e)});return this}})})(jQuery);(function(c){c.fn.supersubs=function(d){var e=c.extend({},c.fn.supersubs.defaults,d);return this.each(function(){var f=c(this);var g=c.meta?c.extend({},e,f.data()):e;var h=c('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(f).width();c("#menu-fontsize").remove();$ULs=f.find("ul");$ULs.each(function(o){var n=$ULs.eq(o);var m=n.children();var k=m.children("a");var r=m.css("white-space","nowrap").css("float");var l=n.add(m).add(k).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/h;l+=g.extraWidth;if(l>g.maxWidth){l=g.maxWidth}else{if(l<g.minWidth){l=g.minWidth}}l+="em";n.css("width",l);m.css({"float":r,width:"100%","white-space":"normal"}).each(function(){var u=c(">ul",this);var s=u.css("left")!==undefined?"left":"right";u.css(s,l)})})})};c.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);var defaultCounter=5;var timeout=5000;var counter=defaultCounter;var maxLeft="750px";var startLeft="650px";var brandToUrl=new Array();brandToUrl.amazon="http://www.amazon.com/?tag=mesfafole-20";brandToUrl.benSherman="";brandToUrl.converse="";brandToUrl.express="";brandToUrl.gByGuess="";brandToUrl.pacsun="";function doSearch(c,d){q=d.query.value;q=q.replace(/'+/g,"");q=q.replace(/[^a-zA-Z ]+/g," ");q=q.replace(/\s+/g,"-");q=q.replace(/^-+|-+$/g,"");window.location=q+".html"}function bindAdsense(c,e,d){if(!e||!e.offset()){return}c.bind("scroll resize",function(){var g=e.offset().top;var f=c.scrollTop();if((f>g)&&!d.is(".site-message-fixed")){e.height(e.height());d.addClass("site-message-fixed")}else{if((f<=g)&&d.is(".site-message-fixed")){e.css("height","auto");d.removeClass("site-message-fixed")}}})}function fixAd(){var g=$(".adsense-placeholder");var f=$(".adsense");var d=$(window);bindAdsense(d,g,f);var c=$(".adsense-placeholder2");var e=$(".adsense2");bindAdsense(d,c,e)}function addFavorite(){var c="Men's Fashion For Less";var d=document.title;if(d!=c){d=d+" - "+c}if(document.all){window.external.AddFavorite(location.href,d)}else{if(window.sidebar.addPanel){window.sidebar.addPanel(d,location.href,"")}else{alert("Press CTRL-D (Chrome/Netscape) or CTRL-T (Opera) to bookmark!")}}}function resetComment(c){c.css({left:maxLeft,top:"0px"});c.stop()}function a(c){if(counter>0){counter--;c.animate({left:maxLeft,top:"+=100px"},timeout,b(c))}else{return}}function b(c){if(counter>0){counter--;c.animate({left:startLeft,top:"+=100px"},timeout,a(c))}else{return}}function recur(c){if(counter<=0){counter=defaultCounter;resetComment(c);a(c)}setTimeout(function(){recur(c)},timeout*10)}$(document).ready(function(){$("#topNav").supersubs({minWidth:10,maxWidth:20,extraWidth:1}).superfish();$("#gallery").galleryView({panel_width:300,panel_height:350,nav_theme:"light",frame_width:50,frame_height:58,fade_panels:false,pause_on_hover:true,transition_interval:5000,pointer_size:6});$("div#makeMeScrollable.moving").smoothDivScroll({autoScroll:"onstart",autoScrollDirection:"backandforth",autoScrollStep:1,autoScrollInterval:15,startAtElementId:"startAtMe",visibleHotSpots:"always"});$("div#makeMeScrollable.static").smoothDivScroll({autoScroll:"onstart",autoScrollDirection:"",autoScrollStep:1,autoScrollInterval:15,startAtElementId:"startAtMe",visibleHotSpots:"always"});$("#tabs").tabs();$(".scroll-down").cycle({fx:"scrollDown",speedIn:2000,speedOut:500,easeIn:"bounceout",easeOut:"backin",delay:-2000,timeout:5000,pause:1});$(".fadeX").cycle({fx:"fade",speed:500,timeout:5000,pause:1});$(".shuffle").cycle({fx:"shuffle",shuffle:{top:-230,left:230},easing:"backinout",delay:-2000});$(".multi-slideshow").cycle({fx:"scrollLeft",timeout:0,pager:"#nav"});$("img").hover(function(){$(this).css({opacity:"0.8",filter:"alpha(opacity=80)"})},function(){$(this).css({opacity:"1",filter:"alpha(opacity=100)"})});if($.browser.msie&&$.browser.version=="6.0"){}else{if($.browser.msie){fixAd()}else{fixAd()}}$(".animatedMenu ul a.banner").each(function(c){$(this).css("background","url(http://photo.mensfashionforless.com/o/s/"+$(this).attr("imgUrl")+")")});$(".animatedMenu ul").kwicks({max:150,duration:300,easing:"easeOutQuad",complete:"callback"});$("div.description").each(function(){$(this).css("opacity",0);$(this).css("width",$(this).siblings("img").width());$(this).parent().css("width",$(this).siblings("img").width());$(this).css("display","block")});$("div.imageCaptionWrapper").hover(function(){$(this).children(".description").stop().fadeTo(500,0.7)},function(){$(this).children(".description").stop().fadeTo(500,0)});$("span[url]").click(function(){var c=$(this).attr("url");window.open(c);return false});$("span[url]").css({color:"orange","font-weight":"bold"});$("span[url]").hover(function(){$(this).css({cursor:"pointer","text-decoration":"underline"})},function(){$(this).css({"text-decoration":"none"})});loc=new String(window.location);lastSlash=loc.lastIndexOf("/");if(lastSlash!=-1){path=loc.substring(lastSlash+1);document.searchForm.query.value=path.replace(/-/g," ").replace(/\.html/,"")}});
