/*
 * 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(s,O){function g(c,t,B){if(B===O&&c.nodeType===1){B=c.getAttribute("data-"+t);if(typeof B==="string"){try{B=B==="true"?true:B==="false"?false:B==="null"?null:!u.isNaN(B)?parseFloat(B):aF.test(B)?u.parseJSON(B):B}catch(E){}u.data(c,t,B)}else{B=O}}return B}function F(){return false}function n(){return true}function h(c,t,B){B[0].type=c;return u.event.handle.apply(t,B)}function aG(V){var W,X,Y,U,P,T,S,E,c,t,Z,ab=[];U=[];P=u.data(this,this.nodeType?"events":"__events__");if(typeof P==="function"){P=P.events}if(!(V.liveFired===this||!P||!P.live||V.button&&V.type==="click")){if(V.namespace){Z=RegExp("(^|\\.)"+V.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}V.liveFired=this;var B=P.live.slice(0);for(S=0;S<B.length;S++){P=B[S];P.origType.replace(x,"")===V.type?U.push(P.selector):B.splice(S--,1)}U=u(V.target).closest(U,V.currentTarget);E=0;for(c=U.length;E<c;E++){t=U[E];for(S=0;S<B.length;S++){P=B[S];if(t.selector===P.selector&&(!Z||Z.test(P.namespace))){T=t.elem;Y=null;if(P.preType==="mouseenter"||P.preType==="mouseleave"){V.type=P.preType;Y=u(V.relatedTarget).closest(P.selector)[0]}if(!Y||Y!==T){ab.push({elem:T,handleObj:P,level:t.level})}}}}E=0;for(c=ab.length;E<c;E++){U=ab[E];if(X&&U.level>X){break}V.currentTarget=U.elem;V.data=U.handleObj.data;V.handleObj=U.handleObj;Z=U.handleObj.origHandler.apply(U.elem,arguments);if(Z===false||V.isPropagationStopped()){X=U.level;if(Z===false){W=false}if(V.isImmediatePropagationStopped()){break}}}return W}}function y(c,t){return(c&&c!=="*"?c+".":"")+t.replace(aH,"`").replace(aI,"&")}function i(c,t,B){if(u.isFunction(t)){return u.grep(c,function(S,P){return !!t.call(S,P,S)===B})}else{if(t.nodeType){return u.grep(c,function(P){return P===t===B})}else{if(typeof t==="string"){var E=u.grep(c,function(P){return P.nodeType===1});if(aJ.test(t)){return u.filter(t,E,!B)}else{t=u.filter(t,E)}}}}return u.grep(c,function(P){return u.inArray(P,t)>=0===B})}function j(c,t){var B=0;t.each(function(){if(this.nodeName===(c[B]&&c[B].nodeName)){var T=u.data(c[B++]),E=u.data(this,T);if(T=T&&T.events){delete E.handle;E.events={};for(var S in T){for(var P in T[S]){u.event.add(this,S,T[S][P],T[S][P].data)}}}}})}function aK(c,t){t.src?u.ajax({url:t.src,async:false,dataType:"script"}):u.globalEval(t.text||t.textContent||t.innerHTML||"");t.parentNode&&t.parentNode.removeChild(t)}function k(c,t,B){var E=t==="width"?c.offsetWidth:c.offsetHeight;if(B==="border"){return E}u.each(t==="width"?av:aw,function(){B||(E-=parseFloat(u.css(c,"padding"+this))||0);if(B==="margin"){E+=parseFloat(u.css(c,"margin"+this))||0}else{E-=parseFloat(u.css(c,"border"+this+"Width"))||0}});return E}function o(c,t,B,E){if(u.isArray(t)&&t.length){u.each(t,function(S,P){B||ax.test(c)?E(c,P):o(c+"["+(typeof P==="object"||u.isArray(P)?S:"")+"]",P,B,E)})}else{if(!B&&t!=null&&typeof t==="object"){u.isEmptyObject(t)?E(c,""):u.each(t,function(S,P){o(c+"["+S+"]",P,B,E)})}else{E(c,t)}}}function C(c,t){var B={};u.each(aV.concat.apply([],aV.slice(0,t)),function(){B[this]=c});return B}function aW(c){if(!p[c]){var t=u("<"+c+">").appendTo("body"),B=t.css("display");t.remove();if(B==="none"||B===""){B="block"}p[c]=B}return p[c]}function q(c){return u.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var ap=s.document,u=function(){function a5(){if(!a6.isReady){try{ap.documentElement.doScroll("left")}catch(bi){setTimeout(a5,1);return}a6.ready()}}var a6=function(bj,bi){return new a6.fn.init(bj,bi)},a7=s.jQuery,a8=s.$,a9,Y=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,a1=/\S/,ab=/^\s+/,a4=/\s+$/,P=/\W/,V=/\d/,c=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,t=/^[\],:{}\s]*$/,bd=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,X=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bc=/(?:^|:|,)(?:\s*\[)+/g,be=/(webkit)[ \/]([\w.]+)/,ba=/(opera)(?:.*version)?[ \/]([\w.]+)/,Z=/(msie) ([\w.]+)/,a3=/(mozilla)(?:.*? rv:([\w.]+))?/,a2=navigator.userAgent,T=false,U=[],W,S=Object.prototype.toString,E=Object.prototype.hasOwnProperty,bf=Array.prototype.push,bg=Array.prototype.slice,bh=String.prototype.trim,B=Array.prototype.indexOf,bb={};a6.fn=a6.prototype={init:function(bj,bi){var bm,bk,bl;if(!bj){return this}if(bj.nodeType){this.context=this[0]=bj;this.length=1;return this}if(bj==="body"&&!bi&&ap.body){this.context=ap;this[0]=ap.body;this.selector="body";this.length=1;return this}if(typeof bj==="string"){if((bm=Y.exec(bj))&&(bm[1]||!bi)){if(bm[1]){bl=bi?bi.ownerDocument||bi:ap;if(bk=c.exec(bj)){if(a6.isPlainObject(bi)){bj=[ap.createElement(bk[1])];a6.fn.attr.call(bj,bi,true)}else{bj=[bl.createElement(bk[1])]}}else{bk=a6.buildFragment([bm[1]],[bl]);bj=(bk.cacheable?bk.fragment.cloneNode(true):bk.fragment).childNodes}return a6.merge(this,bj)}else{if((bk=ap.getElementById(bm[2]))&&bk.parentNode){if(bk.id!==bm[2]){return a9.find(bj)}this.length=1;this[0]=bk}this.context=ap;this.selector=bj;return this}}else{if(!bi&&!P.test(bj)){this.selector=bj;this.context=ap;bj=ap.getElementsByTagName(bj);return a6.merge(this,bj)}else{return !bi||bi.jquery?(bi||a9).find(bj):a6(bi).find(bj)}}}else{if(a6.isFunction(bj)){return a9.ready(bj)}}if(bj.selector!==O){this.selector=bj.selector;this.context=bj.context}return a6.makeArray(bj,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return bg.call(this,0)},get:function(bi){return bi==null?this.toArray():bi<0?this.slice(bi)[0]:this[bi]},pushStack:function(bj,bi,bl){var bk=a6();a6.isArray(bj)?bf.apply(bk,bj):a6.merge(bk,bj);bk.prevObject=this;bk.context=this.context;if(bi==="find"){bk.selector=this.selector+(this.selector?" ":"")+bl}else{if(bi){bk.selector=this.selector+"."+bi+"("+bl+")"}}return bk},each:function(bj,bi){return a6.each(this,bj,bi)},ready:function(bi){a6.bindReady();if(a6.isReady){bi.call(ap,a6)}else{U&&U.push(bi)}return this},eq:function(bi){return bi===-1?this.slice(bi):this.slice(bi,+bi+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bg.apply(this,arguments),"slice",bg.call(arguments).join(","))},map:function(bi){return this.pushStack(a6.map(this,function(bj,bk){return bi.call(bj,bk,bj)}))},end:function(){return this.prevObject||a6(null)},push:bf,sort:[].sort,splice:[].splice};a6.fn.init.prototype=a6.fn;a6.extend=a6.fn.extend=function(){var bm,bp,bq,bl,bk,bi=arguments[0]||{},bn=1,bo=arguments.length,bj=false;if(typeof bi==="boolean"){bj=bi;bi=arguments[1]||{};bn=2}if(typeof bi!=="object"&&!a6.isFunction(bi)){bi={}}if(bo===bn){bi=this;--bn}for(;bn<bo;bn++){if((bm=arguments[bn])!=null){for(bp in bm){bq=bi[bp];bl=bm[bp];if(bi!==bl){if(bj&&bl&&(a6.isPlainObject(bl)||(bk=a6.isArray(bl)))){if(bk){bk=false;bq=bq&&a6.isArray(bq)?bq:[]}else{bq=bq&&a6.isPlainObject(bq)?bq:{}}bi[bp]=a6.extend(bj,bq,bl)}else{if(bl!==O){bi[bp]=bl}}}}}}return bi};a6.extend({noConflict:function(bi){s.$=a8;if(bi){s.jQuery=a7}return a6},isReady:false,readyWait:1,ready:function(bj){bj===true&&a6.readyWait--;if(!a6.readyWait||bj!==true&&!a6.isReady){if(!ap.body){return setTimeout(a6.ready,1)}a6.isReady=true;if(!(bj!==true&&--a6.readyWait>0)){if(U){var bi=0,bk=U;for(U=null;bj=bk[bi++];){bj.call(ap,a6)}a6.fn.trigger&&a6(ap).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!T){T=true;if(ap.readyState==="complete"){return setTimeout(a6.ready,1)}if(ap.addEventListener){ap.addEventListener("DOMContentLoaded",W,false);s.addEventListener("load",a6.ready,false)}else{if(ap.attachEvent){ap.attachEvent("onreadystatechange",W);s.attachEvent("onload",a6.ready);var bj=false;try{bj=s.frameElement==null}catch(bi){}ap.documentElement.doScroll&&bj&&a5()}}}},isFunction:function(bi){return a6.type(bi)==="function"},isArray:Array.isArray||function(bi){return a6.type(bi)==="array"},isWindow:function(bi){return bi&&typeof bi==="object"&&"setInterval" in bi},isNaN:function(bi){return bi==null||!V.test(bi)||isNaN(bi)},type:function(bi){return bi==null?String(bi):bb[S.call(bi)]||"object"},isPlainObject:function(bj){if(!bj||a6.type(bj)!=="object"||bj.nodeType||a6.isWindow(bj)){return false}if(bj.constructor&&!E.call(bj,"constructor")&&!E.call(bj.constructor.prototype,"isPrototypeOf")){return false}for(var bi in bj){}return bi===O||E.call(bj,bi)},isEmptyObject:function(bj){for(var bi in bj){return false}return true},error:function(bi){throw bi},parseJSON:function(bi){if(typeof bi!=="string"||!bi){return null}bi=a6.trim(bi);if(t.test(bi.replace(bd,"@").replace(X,"]").replace(bc,""))){return s.JSON&&s.JSON.parse?s.JSON.parse(bi):(new Function("return "+bi))()}else{a6.error("Invalid JSON: "+bi)}},noop:function(){},globalEval:function(bj){if(bj&&a1.test(bj)){var bi=ap.getElementsByTagName("head")[0]||ap.documentElement,bk=ap.createElement("script");bk.type="text/javascript";if(a6.support.scriptEval){bk.appendChild(ap.createTextNode(bj))}else{bk.text=bj}bi.insertBefore(bk,bi.firstChild);bi.removeChild(bk)}},nodeName:function(bj,bi){return bj.nodeName&&bj.nodeName.toUpperCase()===bi.toUpperCase()},each:function(bl,bn,bo){var bk,bj=0,bi=bl.length,bm=bi===O||a6.isFunction(bl);if(bo){if(bm){for(bk in bl){if(bn.apply(bl[bk],bo)===false){break}}}else{for(;bj<bi;){if(bn.apply(bl[bj++],bo)===false){break}}}}else{if(bm){for(bk in bl){if(bn.call(bl[bk],bk,bl[bk])===false){break}}}else{for(bo=bl[0];bj<bi&&bn.call(bo,bj,bo)!==false;bo=bl[++bj]){}}}return bl},trim:bh?function(bi){return bi==null?"":bh.call(bi)}:function(bi){return bi==null?"":bi.toString().replace(ab,"").replace(a4,"")},makeArray:function(bj,bi){var bl=bi||[];if(bj!=null){var bk=a6.type(bj);bj.length==null||bk==="string"||bk==="function"||bk==="regexp"||a6.isWindow(bj)?bf.call(bl,bj):a6.merge(bl,bj)}return bl},inArray:function(bj,bi){if(bi.indexOf){return bi.indexOf(bj)}for(var bl=0,bk=bi.length;bl<bk;bl++){if(bi[bl]===bj){return bl}}return -1},merge:function(bj,bi){var bm=bj.length,bk=0;if(typeof bi.length==="number"){for(var bl=bi.length;bk<bl;bk++){bj[bm++]=bi[bk]}}else{for(;bi[bk]!==O;){bj[bm++]=bi[bk++]}}bj.length=bm;return bj},grep:function(bl,bn,bo){var bk=[],bj;bo=!!bo;for(var bi=0,bm=bl.length;bi<bm;bi++){bj=!!bn(bl[bi],bi);bo!==bj&&bk.push(bl[bi])}return bk},map:function(bl,bn,bo){for(var bk=[],bj,bi=0,bm=bl.length;bi<bm;bi++){bj=bn(bl[bi],bi,bo);if(bj!=null){bk[bk.length]=bj}}return bk.concat.apply([],bk)},guid:1,proxy:function(bj,bi,bk){if(arguments.length===2){if(typeof bi==="string"){bk=bj;bj=bk[bi];bi=O}else{if(bi&&!a6.isFunction(bi)){bk=bi;bi=O}}}if(!bi&&bj){bi=function(){return bj.apply(bk||this,arguments)}}if(bj){bi.guid=bj.guid=bj.guid||bi.guid||a6.guid++}return bi},access:function(bl,bo,bp,bk,bj,bi){var bm=bl.length;if(typeof bo==="object"){for(var bn in bo){a6.access(bl,bn,bo[bn],bk,bj,bp)}return bl}if(bp!==O){bk=!bi&&bk&&a6.isFunction(bp);for(bn=0;bn<bm;bn++){bj(bl[bn],bo,bk?bp.call(bl[bn],bn,bj(bl[bn],bo)):bp,bi)}return bl}return bm?bj(bl[0],bo):O},now:function(){return(new Date).getTime()},uaMatch:function(bi){bi=bi.toLowerCase();bi=be.exec(bi)||ba.exec(bi)||Z.exec(bi)||bi.indexOf("compatible")<0&&a3.exec(bi)||[];return{browser:bi[1]||"",version:bi[2]||"0"}},browser:{}});a6.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bj,bi){bb["[object "+bi+"]"]=bi.toLowerCase()});a2=a6.uaMatch(a2);if(a2.browser){a6.browser[a2.browser]=true;a6.browser.version=a2.version}if(a6.browser.webkit){a6.browser.safari=true}if(B){a6.inArray=function(bj,bi){return B.call(bi,bj)}}if(!/\s/.test("\u00a0")){ab=/^[\s\xA0]+/;a4=/[\s\xA0]+$/}a9=a6(ap);if(ap.addEventListener){W=function(){ap.removeEventListener("DOMContentLoaded",W,false);a6.ready()}}else{if(ap.attachEvent){W=function(){if(ap.readyState==="complete"){ap.detachEvent("onreadystatechange",W);a6.ready()}}}}return s.jQuery=s.$=a6}();(function(){u.support={};var S=ap.documentElement,T=ap.createElement("script"),V=ap.createElement("div"),W="script"+u.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 X=V.getElementsByTagName("*"),c=V.getElementsByTagName("a")[0],E=ap.createElement("select"),B=E.appendChild(ap.createElement("option"));if(!(!X||!X.length||!c)){u.support={leadingWhitespace:V.firstChild.nodeType===3,tbody:!V.getElementsByTagName("tbody").length,htmlSerialize:!!V.getElementsByTagName("link").length,style:/red/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:/^0.55$/.test(c.style.opacity),cssFloat:!!c.style.cssFloat,checkOn:V.getElementsByTagName("input")[0].value==="on",optSelected:B.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};E.disabled=true;u.support.optDisabled=!B.disabled;T.type="text/javascript";try{T.appendChild(ap.createTextNode("window."+W+"=1;"))}catch(P){}S.insertBefore(T,S.firstChild);if(s[W]){u.support.scriptEval=true;delete s[W]}try{delete T.test}catch(t){u.support.deleteExpando=false}S.removeChild(T);if(V.attachEvent&&V.fireEvent){V.attachEvent("onclick",function U(){u.support.noCloneEvent=false;V.detachEvent("onclick",U)});V.cloneNode(true).fireEvent("onclick")}V=ap.createElement("div");V.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";S=ap.createDocumentFragment();S.appendChild(V.firstChild);u.support.checkClone=S.cloneNode(true).cloneNode(true).lastChild.checked;u(function(){var Y=ap.createElement("div");Y.style.width=Y.style.paddingLeft="1px";ap.body.appendChild(Y);u.boxModel=u.support.boxModel=Y.offsetWidth===2;if("zoom" in Y.style){Y.style.display="inline";Y.style.zoom=1;u.support.inlineBlockNeedsLayout=Y.offsetWidth===2;Y.style.display="";Y.innerHTML="<div style='width:4px;'></div>";u.support.shrinkWrapBlocks=Y.offsetWidth!==2}Y.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var Z=Y.getElementsByTagName("td");u.support.reliableHiddenOffsets=Z[0].offsetHeight===0;Z[0].style.display="";Z[1].style.display="none";u.support.reliableHiddenOffsets=u.support.reliableHiddenOffsets&&Z[0].offsetHeight===0;Y.innerHTML="";ap.body.removeChild(Y).style.display="none"});S=function(Z){var ab=ap.createElement("div");Z="on"+Z;var Y=Z in ab;if(!Y){ab.setAttribute(Z,"return;");Y=typeof ab[Z]==="function"}return Y};u.support.submitBubbles=S("submit");u.support.changeBubbles=S("change");S=T=V=X=c=null}})();var aX={},aF=/^(?:\{.*\}|\[.*\])$/;u.extend({cache:{},uuid:0,expando:"jQuery"+u.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(t,B,E){if(u.acceptData(t)){t=t==s?aX:t;var P=t.nodeType,S=P?t[u.expando]:null,c=u.cache;if(!(P&&!S&&typeof B==="string"&&E===O)){if(P){S||(t[u.expando]=S=++u.uuid)}else{c=t}if(typeof B==="object"){if(P){c[S]=u.extend(c[S],B)}else{u.extend(c,B)}}else{if(P&&!c[S]){c[S]={}}}t=P?c[S]:c;if(E!==O){t[B]=E}return typeof B==="string"?t[B]:t}}},removeData:function(B,E){if(u.acceptData(B)){B=B==s?aX:B;var P=B.nodeType,S=P?B[u.expando]:B,T=u.cache,c=P?T[S]:S;if(E){if(c){delete c[E];P&&u.isEmptyObject(c)&&u.removeData(B)}}else{if(P&&u.support.deleteExpando){delete B[u.expando]}else{if(B.removeAttribute){B.removeAttribute(u.expando)}else{if(P){delete T[S]}else{for(var t in B){delete B[t]}}}}}}},acceptData:function(c){if(c.nodeName){var t=u.noData[c.nodeName.toLowerCase()];if(t){return !(t===true||c.getAttribute("classid")!==t)}}return true}});u.fn.extend({data:function(E,P){var S=null;if(typeof E==="undefined"){if(this.length){var T=this[0].attributes,U;S=u.data(this[0]);for(var c=0,B=T.length;c<B;c++){U=T[c].name;if(U.indexOf("data-")===0){U=U.substr(5);g(this[0],U,S[U])}}}return S}else{if(typeof E==="object"){return this.each(function(){u.data(this,E)})}}var t=E.split(".");t[1]=t[1]?"."+t[1]:"";if(P===O){S=this.triggerHandler("getData"+t[1]+"!",[t[0]]);if(S===O&&this.length){S=u.data(this[0],E);S=g(this[0],E,S)}return S===O&&t[1]?this.data(t[0]):S}else{return this.each(function(){var V=u(this),W=[t[0],P];V.triggerHandler("setData"+t[1]+"!",W);u.data(this,E,P);V.triggerHandler("changeData"+t[1]+"!",W)})}},removeData:function(c){return this.each(function(){u.removeData(this,c)})}});u.extend({queue:function(c,t,B){if(c){t=(t||"fx")+"queue";var E=u.data(c,t);if(!B){return E||[]}if(!E||u.isArray(B)){E=u.data(c,t,u.makeArray(B))}else{E.push(B)}return E}},dequeue:function(c,t){t=t||"fx";var B=u.queue(c,t),E=B.shift();if(E==="inprogress"){E=B.shift()}if(E){t==="fx"&&B.unshift("inprogress");E.call(c,function(){u.dequeue(c,t)})}}});u.fn.extend({queue:function(c,t){if(typeof c!=="string"){t=c;c="fx"}if(t===O){return u.queue(this[0],c)}return this.each(function(){var B=u.queue(this,c,t);c==="fx"&&B[0]!=="inprogress"&&u.dequeue(this,c)})},dequeue:function(c){return this.each(function(){u.dequeue(this,c)})},delay:function(c,t){c=u.fx?u.fx.speeds[c]||c:c;t=t||"fx";return this.queue(t,function(){var B=this;setTimeout(function(){u.dequeue(B,t)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var aY=/[\n\t]/g,d=/\s+/,ay=/\r/g,az=/^(?:href|src|style)$/,aA=/^(?:button|input)$/i,aB=/^(?:button|input|object|select|textarea)$/i,aC=/^a(?:rea)?$/i,aZ=/^(?:radio|checkbox)$/i;u.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};u.fn.extend({attr:function(c,t){return u.access(this,c,t,true,u.attr)},removeAttr:function(c){return this.each(function(){u.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(P){if(u.isFunction(P)){return this.each(function(X){var W=u(this);W.addClass(P.call(this,X,W.attr("class")))})}if(P&&typeof P==="string"){for(var S=(P||"").split(d),T=0,U=this.length;T<U;T++){var V=this[T];if(V.nodeType===1){if(V.className){for(var c=" "+V.className+" ",B=V.className,t=0,E=S.length;t<E;t++){if(c.indexOf(" "+S[t]+" ")<0){B+=" "+S[t]}}V.className=u.trim(B)}else{V.className=P}}}}return this},removeClass:function(E){if(u.isFunction(E)){return this.each(function(V){var W=u(this);W.removeClass(E.call(this,V,W.attr("class")))})}if(E&&typeof E==="string"||E===O){for(var P=(E||"").split(d),S=0,T=this.length;S<T;S++){var U=this[S];if(U.nodeType===1&&U.className){if(E){for(var c=(" "+U.className+" ").replace(aY," "),B=0,t=P.length;B<t;B++){c=c.replace(" "+P[B]+" "," ")}U.className=u.trim(c)}else{U.className=""}}}}return this},toggleClass:function(c,t){var B=typeof c,E=typeof t==="boolean";if(u.isFunction(c)){return this.each(function(S){var P=u(this);P.toggleClass(c.call(this,S,P.attr("class"),t),t)})}return this.each(function(){if(B==="string"){for(var P,V=0,U=u(this),T=t,S=c.split(d);P=S[V++];){T=E?T:!U.hasClass(P);U[T?"addClass":"removeClass"](P)}}else{if(B==="undefined"||B==="boolean"){this.className&&u.data(this,"__className__",this.className);this.className=this.className||c===false?"":u.data(this,"__className__")||""}}})},hasClass:function(c){c=" "+c+" ";for(var t=0,B=this.length;t<B;t++){if((" "+this[t].className+" ").replace(aY," ").indexOf(c)>-1){return true}}return false},val:function(E){if(!arguments.length){var P=this[0];if(P){if(u.nodeName(P,"option")){var S=P.attributes.value;return !S||S.specified?P.value:P.text}if(u.nodeName(P,"select")){var T=P.selectedIndex;S=[];var U=P.options;P=P.type==="select-one";if(T<0){return null}var c=P?T:0;for(T=P?T+1:U.length;c<T;c++){var B=U[c];if(B.selected&&(u.support.optDisabled?!B.disabled:B.getAttribute("disabled")===null)&&(!B.parentNode.disabled||!u.nodeName(B.parentNode,"optgroup"))){E=u(B).val();if(P){return E}S.push(E)}}return S}if(aZ.test(P.type)&&!u.support.checkOn){return P.getAttribute("value")===null?"on":P.value}return(P.value||"").replace(ay,"")}return O}var t=u.isFunction(E);return this.each(function(V){var Y=u(this),W=E;if(this.nodeType===1){if(t){W=E.call(this,V,Y.val())}if(W==null){W=""}else{if(typeof W==="number"){W+=""}else{if(u.isArray(W)){W=u.map(W,function(Z){return Z==null?"":Z+""})}}}if(u.isArray(W)&&aZ.test(this.type)){this.checked=u.inArray(Y.val(),W)>=0}else{if(u.nodeName(this,"select")){var X=u.makeArray(W);u("option",this).each(function(){this.selected=u.inArray(u(this).val(),X)>=0});if(!X.length){this.selectedIndex=-1}}else{this.value=W}}}})}});u.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(t,B,E,P){if(!t||t.nodeType===3||t.nodeType===8){return O}if(P&&B in u.attrFn){return u(t)[B](E)}P=t.nodeType!==1||!u.isXMLDoc(t);var S=E!==O;B=P&&u.props[B]||B;var c=az.test(B);if((B in t||t[B]!==O)&&P&&!c){if(S){B==="type"&&aA.test(t.nodeName)&&t.parentNode&&u.error("type property can't be changed");if(E===null){t.nodeType===1&&t.removeAttribute(B)}else{t[B]=E}}if(u.nodeName(t,"form")&&t.getAttributeNode(B)){return t.getAttributeNode(B).nodeValue}if(B==="tabIndex"){return(B=t.getAttributeNode("tabIndex"))&&B.specified?B.value:aB.test(t.nodeName)||aC.test(t.nodeName)&&t.href?0:O}return t[B]}if(!u.support.style&&P&&B==="style"){if(S){t.style.cssText=""+E}return t.style.cssText}S&&t.setAttribute(B,""+E);if(!t.attributes[B]&&t.hasAttribute&&!t.hasAttribute(B)){return O}t=!u.support.hrefNormalized&&P&&c?t.getAttribute(B,2):t.getAttribute(B);return t===null?O:t}});var x=/\.(.*)$/,e=/^(?:textarea|input|select)$/i,aH=/\./g,aI=/ /g,aq=/[^\w\s.|`]/g,ar=function(c){return c.replace(aq,"\\$&")},a0={focusin:0,focusout:0};u.event={add:function(U,V,W,X){if(!(U.nodeType===3||U.nodeType===8)){if(u.isWindow(U)&&U!==s&&!U.frameElement){U=s}if(W===false){W=F}else{if(!W){return}}var T,E;if(W.handler){T=W;W=T.handler}if(!W.guid){W.guid=u.guid++}if(E=u.data(U)){var S=U.nodeType?"events":"__events__",P=E[S],B=E.handle;if(typeof P==="function"){B=P.handle;P=P.events}else{if(!P){U.nodeType||(E[S]=E=function(){});E.events=P={}}}if(!B){E.handle=B=function(){return typeof u!=="undefined"&&!u.event.triggered?u.event.handle.apply(B.elem,arguments):O}}B.elem=U;V=V.split(" ");for(var c=0,t;S=V[c++];){E=T?u.extend({},T):{handler:W,data:X};if(S.indexOf(".")>-1){t=S.split(".");S=t.shift();E.namespace=t.slice(0).sort().join(".")}else{t=[];E.namespace=""}E.type=S;if(!E.guid){E.guid=W.guid}var Y=P[S],Z=u.event.special[S]||{};if(!Y){Y=P[S]=[];if(!Z.setup||Z.setup.call(U,X,t,B)===false){if(U.addEventListener){U.addEventListener(S,B,false)}else{U.attachEvent&&U.attachEvent("on"+S,B)}}}if(Z.add){Z.add.call(U,E);if(!E.handler.guid){E.handler.guid=W.guid}}Y.push(E);u.event.global[S]=true}U=null}}},global:{},remove:function(X,Y,Z,ab){if(!(X.nodeType===3||X.nodeType===8)){if(Z===false){Z=F}var W,S,U=0,T,P,c,B,a1,a2,E=X.nodeType?"events":"__events__",t=u.data(X),V=t&&t[E];if(t&&V){if(typeof V==="function"){t=V;V=V.events}if(Y&&Y.type){Z=Y.handler;Y=Y.type}if(!Y||typeof Y==="string"&&Y.charAt(0)==="."){Y=Y||"";for(W in V){u.event.remove(X,W+Y)}}else{for(Y=Y.split(" ");W=Y[U++];){B=W;T=W.indexOf(".")<0;P=[];if(!T){P=W.split(".");W=P.shift();c=RegExp("(^|\\.)"+u.map(P.slice(0).sort(),ar).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(a1=V[W]){if(Z){B=u.event.special[W]||{};for(S=ab||0;S<a1.length;S++){a2=a1[S];if(Z.guid===a2.guid){if(T||c.test(a2.namespace)){ab==null&&a1.splice(S--,1);B.remove&&B.remove.call(X,a2)}if(ab!=null){break}}}if(a1.length===0||ab!=null&&a1.length===1){if(!B.teardown||B.teardown.call(X,P)===false){u.removeEvent(X,W,t.handle)}delete V[W]}}else{for(S=0;S<a1.length;S++){a2=a1[S];if(T||c.test(a2.namespace)){u.event.remove(X,B,a2.handler,S);a1.splice(S--,1)}}}}}if(u.isEmptyObject(V)){if(Y=t.handle){Y.elem=null}delete t.events;delete t.handle;if(typeof t==="function"){u.removeData(X,E)}else{u.isEmptyObject(t)&&u.removeData(X)}}}}}},trigger:function(S,T,V,W){var X=S.type||S;if(!W){S=typeof S==="object"?S[u.expando]?S:u.extend(u.Event(X),S):u.Event(X);if(X.indexOf("!")>=0){S.type=X=X.slice(0,-1);S.exclusive=true}if(!V){S.stopPropagation();u.event.global[X]&&u.each(u.cache,function(){this.events&&this.events[X]&&u.event.trigger(S,T,this.handle.elem)})}if(!V||V.nodeType===3||V.nodeType===8){return O}S.result=O;S.target=V;T=u.makeArray(T);T.unshift(S)}S.currentTarget=V;(W=V.nodeType?u.data(V,"handle"):(u.data(V,"__events__")||{}).handle)&&W.apply(V,T);W=V.parentNode||V.ownerDocument;try{if(!(V&&V.nodeName&&u.noData[V.nodeName.toLowerCase()])){if(V["on"+X]&&V["on"+X].apply(V,T)===false){S.result=false;S.preventDefault()}}}catch(c){}if(!S.isPropagationStopped()&&W){u.event.trigger(S,T,W,true)}else{if(!S.isDefaultPrevented()){var E;W=S.target;var B=X.replace(x,""),P=u.nodeName(W,"a")&&B==="click",t=u.event.special[B]||{};if((!t._default||t._default.call(V,S)===false)&&!P&&!(W&&W.nodeName&&u.noData[W.nodeName.toLowerCase()])){try{if(W[B]){if(E=W["on"+B]){W["on"+B]=null}u.event.triggered=true;W[B]()}}catch(U){}if(E){W["on"+B]=E}u.event.triggered=false}}}},handle:function(E){var P,S,T,U;S=[];var c=u.makeArray(arguments);E=c[0]=u.event.fix(E||s.event);E.currentTarget=this;P=E.type.indexOf(".")<0&&!E.exclusive;if(!P){T=E.type.split(".");E.type=T.shift();S=T.slice(0).sort();T=RegExp("(^|\\.)"+S.join("\\.(?:.*\\.)?")+"(\\.|$)")}E.namespace=E.namespace||S.join(".");U=u.data(this,this.nodeType?"events":"__events__");if(typeof U==="function"){U=U.events}S=(U||{})[E.type];if(U&&S){S=S.slice(0);U=0;for(var B=S.length;U<B;U++){var t=S[U];if(P||T.test(t.namespace)){E.handler=t.handler;E.data=t.data;E.handleObj=t;t=t.handler.apply(this,c);if(t!==O){E.result=t;if(t===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(c){if(c[u.expando]){return c}var t=c;c=u.Event(t);for(var B=this.props.length,E;B;){E=this.props[--B];c[E]=t[E]}if(!c.target){c.target=c.srcElement||ap}if(c.target.nodeType===3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){t=ap.documentElement;B=ap.body;c.pageX=c.clientX+(t&&t.scrollLeft||B&&B.scrollLeft||0)-(t&&t.clientLeft||B&&B.clientLeft||0);c.pageY=c.clientY+(t&&t.scrollTop||B&&B.scrollTop||0)-(t&&t.clientTop||B&&B.clientTop||0)}if(c.which==null&&(c.charCode!=null||c.keyCode!=null)){c.which=c.charCode!=null?c.charCode:c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button!==O){c.which=c.button&1?1:c.button&2?3:c.button&4?2:0}return c},guid:100000000,proxy:u.proxy,special:{ready:{setup:u.bindReady,teardown:u.noop},live:{add:function(c){u.event.add(this,y(c.origType,c.selector),u.extend({},c,{handler:aG,guid:c.handler.guid}))},remove:function(c){u.event.remove(this,y(c.origType,c.selector),c)}},beforeunload:{setup:function(c,t,B){if(u.isWindow(this)){this.onbeforeunload=B}},teardown:function(c,t){if(this.onbeforeunload===t){this.onbeforeunload=null}}}}};u.removeEvent=ap.removeEventListener?function(c,t,B){c.removeEventListener&&c.removeEventListener(t,B,false)}:function(c,t,B){c.detachEvent&&c.detachEvent("on"+t,B)};u.Event=function(c){if(!this.preventDefault){return new u.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=u.now();this[u.expando]=true};u.Event.prototype={preventDefault:function(){this.isDefaultPrevented=n;var c=this.originalEvent;if(c){if(c.preventDefault){c.preventDefault()}else{c.returnValue=false}}},stopPropagation:function(){this.isPropagationStopped=n;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n;this.stopPropagation()},isDefaultPrevented:F,isPropagationStopped:F,isImmediatePropagationStopped:F};var a=function(c){var t=c.relatedTarget;try{for(;t&&t!==this;){t=t.parentNode}if(t!==this){c.type=c.data;u.event.handle.apply(this,arguments)}}catch(B){}},b=function(c){c.type=c.data;u.event.handle.apply(this,arguments)};u.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,t){u.event.special[c]={setup:function(B){u.event.add(this,t,B&&B.selector?b:a,c)},teardown:function(B){u.event.remove(this,t,B&&B.selector?b:a)}}});if(!u.support.submitBubbles){u.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){u.event.add(this,"click.specialSubmit",function(c){var t=c.target,B=t.type;if((B==="submit"||B==="image")&&u(t).closest("form").length){c.liveFired=O;return h("submit",this,arguments)}});u.event.add(this,"keypress.specialSubmit",function(c){var t=c.target,B=t.type;if((B==="text"||B==="password")&&u(t).closest("form").length&&c.keyCode===13){c.liveFired=O;return h("submit",this,arguments)}})}else{return false}},teardown:function(){u.event.remove(this,".specialSubmit")}}}if(!u.support.changeBubbles){var G,aS=function(c){var t=c.type,B=c.value;if(t==="radio"||t==="checkbox"){B=c.checked}else{if(t==="select-multiple"){B=c.selectedIndex>-1?u.map(c.options,function(E){return E.selected}).join("-"):""}else{if(c.nodeName.toLowerCase()==="select"){B=c.selectedIndex}}}return B},z=function(t,B){var E=t.target,P,c;if(!(!e.test(E.nodeName)||E.readOnly)){P=u.data(E,"_change_data");c=aS(E);if(t.type!=="focusout"||E.type!=="radio"){u.data(E,"_change_data",c)}if(!(P===O||c===P)){if(P!=null||c){t.type="change";t.liveFired=O;return u.event.trigger(t,B,E)}}}};u.event.special.change={filters:{focusout:z,beforedeactivate:z,click:function(c){var t=c.target,B=t.type;if(B==="radio"||B==="checkbox"||t.nodeName.toLowerCase()==="select"){return z.call(this,c)}},keydown:function(c){var t=c.target,B=t.type;if(c.keyCode===13&&t.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(B==="checkbox"||B==="radio")||B==="select-multiple"){return z.call(this,c)}},beforeactivate:function(c){c=c.target;u.data(c,"_change_data",aS(c))}},setup:function(){if(this.type==="file"){return false}for(var c in G){u.event.add(this,c+".specialChange",G[c])}return e.test(this.nodeName)},teardown:function(){u.event.remove(this,".specialChange");return e.test(this.nodeName)}};G=u.event.special.change.filters;G.focus=G.beforeactivate}ap.addEventListener&&u.each({focus:"focusin",blur:"focusout"},function(c,t){function B(E){E=u.event.fix(E);E.type=t;return u.event.trigger(E,null,E.target)}u.event.special[t]={setup:function(){a0[t]++===0&&ap.addEventListener(c,B,true)},teardown:function(){--a0[t]===0&&ap.removeEventListener(c,B,true)}}});u.each(["bind","one"],function(c,t){u.fn[t]=function(S,T,U){if(typeof S==="object"){for(var B in S){this[t](B,T,S[B],U)}return this}if(u.isFunction(T)||T===false){U=T;T=O}var P=t==="one"?u.proxy(U,function(V){u(this).unbind(V,P);return U.apply(this,arguments)}):U;if(S==="unload"&&t!=="one"){this.one(S,T,U)}else{B=0;for(var E=this.length;B<E;B++){u.event.add(this[B],S,P,T)}}return this}});u.fn.extend({unbind:function(c,t){if(typeof c==="object"&&!c.preventDefault){for(var B in c){this.unbind(B,c[B])}}else{B=0;for(var E=this.length;B<E;B++){u.event.remove(this[B],c,t)}}return this},delegate:function(c,t,B,E){return this.live(t,B,E,c)},undelegate:function(c,t,B){return arguments.length===0?this.unbind("live"):this.die(t,null,B,c)},trigger:function(c,t){return this.each(function(){u.event.trigger(c,t,this)})},triggerHandler:function(c,t){if(this[0]){var B=u.Event(c);B.preventDefault();B.stopPropagation();u.event.trigger(B,t,this[0]);return B.result}},toggle:function(c){for(var t=arguments,B=1;B<t.length;){u.proxy(c,t[B++])}return this.click(u.proxy(c,function(E){var P=(u.data(this,"lastToggle"+c.guid)||0)%B;u.data(this,"lastToggle"+c.guid,P+1);E.preventDefault();return t[P].apply(this,arguments)||false}))},hover:function(c,t){return this.mouseenter(c).mouseleave(t||c)}});var aT={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};u.each(["live","die"],function(c,t){u.fn[t]=function(V,W,X,B){var S,P=0,T,E,U=B||this.selector;B=B?this:u(this.context);if(typeof V==="object"&&!V.preventDefault){for(S in V){B[t](S,W,V[S],U)}return this}if(u.isFunction(W)){X=W;W=O}for(V=(V||"").split(" ");(S=V[P++])!=null;){T=x.exec(S);E="";if(T){E=T[0];S=S.replace(x,"")}if(S==="hover"){V.push("mouseenter"+E,"mouseleave"+E)}else{T=S;if(S==="focus"||S==="blur"){V.push(aT[S]+E);S+=E}else{S=(aT[S]||S)+E}if(t==="live"){E=0;for(var Y=B.length;E<Y;E++){u.event.add(B[E],"live."+y(S,U),{data:W,selector:U,handler:X,origType:S,origHandler:X,preType:T})}}else{B.unbind("live."+y(S,U),X)}}}return this}});u.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,t){u.fn[t]=function(B,E){if(E==null){E=B;B=null}return arguments.length>0?this.bind(t,B,E):this.trigger(t)};if(u.attrFn){u.attrFn[t]=true}});s.attachEvent&&!s.addEventListener&&u(s).bind("unload",function(){for(var c in u.cache){if(u.cache[c].handle){try{u.event.remove(u.cache[c].handle.elem)}catch(t){}}}});(function(){function X(bb,a4,a7,a6,a8,a9){a8=0;for(var ba=a6.length;a8<ba;a8++){var a5=a6[a8];if(a5){var bc=false;for(a5=a5[bb];a5;){if(a5.sizcache===a7){bc=a6[a5.sizset];break}if(a5.nodeType===1&&!a9){a5.sizcache=a7;a5.sizset=a8}if(a5.nodeName.toLowerCase()===a4){bc=a5;break}a5=a5[bb]}a6[a8]=bc}}}function Y(bb,a4,a7,a6,a8,a9){a8=0;for(var ba=a6.length;a8<ba;a8++){var a5=a6[a8];if(a5){var bc=false;for(a5=a5[bb];a5;){if(a5.sizcache===a7){bc=a6[a5.sizset];break}if(a5.nodeType===1){if(!a9){a5.sizcache=a7;a5.sizset=a8}if(typeof a4!=="string"){if(a5===a4){bc=true;break}}else{if(T.filter(a4,[a5]).length>0){bc=a5;break}}}a5=a5[bb]}a6[a8]=bc}}}var Z=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,ab=0,W=Object.prototype.toString,S=false,U=true;[0,0].sort(function(){U=false;return 0});var T=function(bf,a9,bb,ba){bb=bb||[];var a5=a9=a9||ap;if(a9.nodeType!==1&&a9.nodeType!==9){return[]}if(!bf||typeof bf!=="string"){return bb}var a6,a7,a4,bh,bc,bd=true,be=T.isXML(a9),bg=[],a8=bf;do{Z.exec("");if(a6=Z.exec(a8)){a8=a6[3];bg.push(a6[1]);if(a6[2]){bh=a6[3];break}}}while(a6);if(bg.length>1&&c.exec(bf)){if(bg.length===2&&P.relative[bg[0]]){a7=a3(bg[0]+bg[1],a9)}else{for(a7=P.relative[bg[0]]?[a9]:T(bg.shift(),a9);bg.length;){bf=bg.shift();if(P.relative[bf]){bf+=bg.shift()}a7=a3(bf,a7)}}}else{if(!ba&&bg.length>1&&a9.nodeType===9&&!be&&P.match.ID.test(bg[0])&&!P.match.ID.test(bg[bg.length-1])){a6=T.find(bg.shift(),a9,be);a9=a6.expr?T.filter(a6.expr,a6.set)[0]:a6.set[0]}if(a9){a6=ba?{expr:bg.pop(),set:a2(ba)}:T.find(bg.pop(),bg.length===1&&(bg[0]==="~"||bg[0]==="+")&&a9.parentNode?a9.parentNode:a9,be);a7=a6.expr?T.filter(a6.expr,a6.set):a6.set;if(bg.length>0){a4=a2(a7)}else{bd=false}for(;bg.length;){a6=bc=bg.pop();if(P.relative[bc]){a6=bg.pop()}else{bc=""}if(a6==null){a6=a9}P.relative[bc](a4,a6,be)}}else{a4=[]}}a4||(a4=a7);a4||T.error(bc||bf);if(W.call(a4)==="[object Array]"){if(bd){if(a9&&a9.nodeType===1){for(bf=0;a4[bf]!=null;bf++){if(a4[bf]&&(a4[bf]===true||a4[bf].nodeType===1&&T.contains(a9,a4[bf]))){bb.push(a7[bf])}}}else{for(bf=0;a4[bf]!=null;bf++){a4[bf]&&a4[bf].nodeType===1&&bb.push(a7[bf])}}}else{bb.push.apply(bb,a4)}}else{a2(a4,bb)}if(bh){T(bh,a5,bb,ba);T.uniqueSort(bb)}return bb};T.uniqueSort=function(a4){if(t){S=U;a4.sort(t);if(S){for(var a5=1;a5<a4.length;a5++){a4[a5]===a4[a5-1]&&a4.splice(a5--,1)}}}return a4};T.matches=function(a4,a5){return T(a4,null,null,a5)};T.matchesSelector=function(a4,a5){return T(a5,null,null,[a4]).length>0};T.find=function(bb,a4,a7){var a6;if(!bb){return[]}for(var a8=0,a9=P.order.length;a8<a9;a8++){var ba,a5=P.order[a8];if(ba=P.leftMatch[a5].exec(bb)){var bc=ba[1];ba.splice(1,1);if(bc.substr(bc.length-1)!=="\\"){ba[1]=(ba[1]||"").replace(/\\/g,"");a6=P.find[a5](ba,a4,a7);if(a6!=null){bb=bb.replace(P.match[a5],"");break}}}}a6||(a6=a4.getElementsByTagName("*"));return{set:a6,expr:bb}};T.filter=function(bh,ba,bd,bc){for(var a5,a6,a8=bh,a4=[],bj=ba,be=ba&&ba[0]&&T.isXML(ba[0]);bh&&ba.length;){for(var bf in P.filter){if((a5=P.leftMatch[bf].exec(bh))!=null&&a5[2]){var bg,bi,a9=P.filter[bf];bi=a5[1];a6=false;a5.splice(1,1);if(bi.substr(bi.length-1)!=="\\"){if(bj===a4){a4=[]}if(P.preFilter[bf]){if(a5=P.preFilter[bf](a5,bj,bd,a4,bc,be)){if(a5===true){continue}}else{a6=bg=true}}if(a5){for(var bb=0;(bi=bj[bb])!=null;bb++){if(bi){bg=a9(bi,a5,bb,bj);var a7=bc^!!bg;if(bd&&bg!=null){if(a7){a6=true}else{bj[bb]=false}}else{if(a7){a4.push(bi);a6=true}}}}}if(bg!==O){bd||(bj=a4);bh=bh.replace(P.match[bf],"");if(!a6){return[]}break}}}}if(bh===a8){if(a6==null){T.error(bh)}else{break}}a8=bh}return bj};T.error=function(a4){throw"Syntax error, unrecognized expression: "+a4};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(a4){return a4.getAttribute("href")}},relative:{"+":function(a9,a4){var a6=typeof a4==="string",a5=a6&&!/\W/.test(a4);a6=a6&&!a5;if(a5){a4=a4.toLowerCase()}a5=0;for(var a7=a9.length,a8;a5<a7;a5++){if(a8=a9[a5]){for(;(a8=a8.previousSibling)&&a8.nodeType!==1;){}a9[a5]=a6||a8&&a8.nodeName.toLowerCase()===a4?a8||false:a8===a4}}a6&&T.filter(a4,a9,true)},">":function(a9,a4){var a6,a5=typeof a4==="string",a7=0,a8=a9.length;if(a5&&!/\W/.test(a4)){for(a4=a4.toLowerCase();a7<a8;a7++){if(a6=a9[a7]){a6=a6.parentNode;a9[a7]=a6.nodeName.toLowerCase()===a4?a6:false}}}else{for(;a7<a8;a7++){if(a6=a9[a7]){a9[a7]=a5?a6.parentNode:a6.parentNode===a4}}a5&&T.filter(a4,a9,true)}},"":function(a9,a4,a6){var a5,a7=ab++,a8=Y;if(typeof a4==="string"&&!/\W/.test(a4)){a5=a4=a4.toLowerCase();a8=X}a8("parentNode",a4,a7,a9,a5,a6)},"~":function(a9,a4,a6){var a5,a7=ab++,a8=Y;if(typeof a4==="string"&&!/\W/.test(a4)){a5=a4=a4.toLowerCase();a8=X}a8("previousSibling",a4,a7,a9,a5,a6)}},find:{ID:function(a4,a5,a6){if(typeof a5.getElementById!=="undefined"&&!a6){return(a4=a5.getElementById(a4[1]))&&a4.parentNode?[a4]:[]}},NAME:function(a9,a4){if(typeof a4.getElementsByName!=="undefined"){for(var a6=[],a5=a4.getElementsByName(a9[1]),a7=0,a8=a5.length;a7<a8;a7++){a5[a7].getAttribute("name")===a9[1]&&a6.push(a5[a7])}return a6.length===0?null:a6}},TAG:function(a4,a5){return a5.getElementsByTagName(a4[1])}},preFilter:{CLASS:function(ba,a4,a6,a5,a7,a8){ba=" "+ba[1].replace(/\\/g,"")+" ";if(a8){return ba}a8=0;for(var a9;(a9=a4[a8])!=null;a8++){if(a9){if(a7^(a9.className&&(" "+a9.className+" ").replace(/[\t\n]/g," ").indexOf(ba)>=0)){a6||a5.push(a9)}else{if(a6){a4[a8]=false}}}}return false},ID:function(a4){return a4[1].replace(/\\/g,"")},TAG:function(a4){return a4[1].toLowerCase()},CHILD:function(a4){if(a4[1]==="nth"){var a5=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a4[2]==="even"&&"2n"||a4[2]==="odd"&&"2n+1"||!/\D/.test(a4[2])&&"0n+"+a4[2]||a4[2]);a4[2]=a5[1]+(a5[2]||1)-0;a4[3]=a5[3]-0}a4[0]=ab++;return a4},ATTR:function(a9,a4,a6,a5,a7,a8){a4=a9[1].replace(/\\/g,"");if(!a8&&P.attrMap[a4]){a9[1]=P.attrMap[a4]}if(a9[2]==="~="){a9[4]=" "+a9[4]+" "}return a9},PSEUDO:function(a4,a5,a8,a7,a6){if(a4[1]==="not"){if((Z.exec(a4[3])||"").length>1||/^\w/.test(a4[3])){a4[3]=T(a4[3],null,null,a5)}else{a4=T.filter(a4[3],a5,a8,true^a6);a8||a7.push.apply(a7,a4);return false}}else{if(P.match.POS.test(a4[0])||P.match.CHILD.test(a4[0])){return true}}return a4},POS:function(a4){a4.unshift(true);return a4}},filters:{enabled:function(a4){return a4.disabled===false&&a4.type!=="hidden"},disabled:function(a4){return a4.disabled===true},checked:function(a4){return a4.checked===true},selected:function(a4){return a4.selected===true},parent:function(a4){return !!a4.firstChild},empty:function(a4){return !a4.firstChild},has:function(a4,a5,a6){return !!T(a6[3],a4).length},header:function(a4){return/h\d/i.test(a4.nodeName)},text:function(a4){return"text"===a4.type},radio:function(a4){return"radio"===a4.type},checkbox:function(a4){return"checkbox"===a4.type},file:function(a4){return"file"===a4.type},password:function(a4){return"password"===a4.type},submit:function(a4){return"submit"===a4.type},image:function(a4){return"image"===a4.type},reset:function(a4){return"reset"===a4.type},button:function(a4){return"button"===a4.type||a4.nodeName.toLowerCase()==="button"},input:function(a4){return/input|select|textarea|button/i.test(a4.nodeName)}},setFilters:{first:function(a4,a5){return a5===0},last:function(a4,a5,a7,a6){return a5===a6.length-1},even:function(a4,a5){return a5%2===0},odd:function(a4,a5){return a5%2===1},lt:function(a4,a5,a6){return a5<a6[3]-0},gt:function(a4,a5,a6){return a5>a6[3]-0},nth:function(a4,a5,a6){return a6[3]-0===a5},eq:function(a4,a5,a6){return a6[3]-0===a5}},filter:{PSEUDO:function(a9,a4,a6,a5){var a7=a4[1],a8=P.filters[a7];if(a8){return a8(a9,a6,a4,a5)}else{if(a7==="contains"){return(a9.textContent||a9.innerText||T.getText([a9])||"").indexOf(a4[3])>=0}else{if(a7==="not"){a4=a4[3];a6=0;for(a5=a4.length;a6<a5;a6++){if(a4[a6]===a9){return false}}return true}else{T.error("Syntax error, unrecognized expression: "+a7)}}}},CHILD:function(bb,a4){var a7=a4[1],a6=bb;switch(a7){case"only":case"first":for(;a6=a6.previousSibling;){if(a6.nodeType===1){return false}}if(a7==="first"){return true}a6=bb;case"last":for(;a6=a6.nextSibling;){if(a6.nodeType===1){return false}}return true;case"nth":a7=a4[2];var a8=a4[3];if(a7===1&&a8===0){return true}var a9=a4[0],ba=bb.parentNode;if(ba&&(ba.sizcache!==a9||!bb.nodeIndex)){var a5=0;for(a6=ba.firstChild;a6;a6=a6.nextSibling){if(a6.nodeType===1){a6.nodeIndex=++a5}}ba.sizcache=a9}a6=bb.nodeIndex-a8;return a7===0?a6===0:a6%a7===0&&a6/a7>=0}},ID:function(a4,a5){return a4.nodeType===1&&a4.getAttribute("id")===a5},TAG:function(a4,a5){return a5==="*"&&a4.nodeType===1||a4.nodeName.toLowerCase()===a5},CLASS:function(a4,a5){return(" "+(a4.className||a4.getAttribute("class"))+" ").indexOf(a5)>-1},ATTR:function(a9,a4){var a6=a4[1];a6=P.attrHandle[a6]?P.attrHandle[a6](a9):a9[a6]!=null?a9[a6]:a9.getAttribute(a6);var a5=a6+"",a7=a4[2],a8=a4[4];return a6==null?a7==="!=":a7==="="?a5===a8:a7==="*="?a5.indexOf(a8)>=0:a7==="~="?(" "+a5+" ").indexOf(a8)>=0:!a8?a5&&a6!==false:a7==="!="?a5!==a8:a7==="^="?a5.indexOf(a8)===0:a7==="$="?a5.substr(a5.length-a8.length)===a8:a7==="|="?a5===a8||a5.substr(0,a8.length+1)===a8+"-":false},POS:function(a4,a5,a8,a7){var a6=P.setFilters[a5[2]];if(a6){return a6(a4,a8,a5,a7)}}}},c=P.match.POS,B=function(a4,a5){return"\\"+(a5-0+1)},a1;for(a1 in P.match){P.match[a1]=RegExp(P.match[a1].source+/(?![^\[]*\])(?![^\(]*\))/.source);P.leftMatch[a1]=RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[a1].source.replace(/\\(\d+)/g,B))}var a2=function(a4,a5){a4=Array.prototype.slice.call(a4,0);if(a5){a5.push.apply(a5,a4);return a5}return a4};try{Array.prototype.slice.call(ap.documentElement.childNodes,0)}catch(E){a2=function(a4,a5){var a8=0,a7=a5||[];if(W.call(a4)==="[object Array]"){Array.prototype.push.apply(a7,a4)}else{if(typeof a4.length==="number"){for(var a6=a4.length;a8<a6;a8++){a7.push(a4[a8])}}else{for(;a4[a8];a8++){a7.push(a4[a8])}}}return a7}}var t,V;if(ap.documentElement.compareDocumentPosition){t=function(a4,a5){if(a4===a5){S=true;return 0}if(!a4.compareDocumentPosition||!a5.compareDocumentPosition){return a4.compareDocumentPosition?-1:1}return a4.compareDocumentPosition(a5)&4?-1:1}}else{t=function(ba,a4){var a6,a5,a7=[],a8=[];a6=ba.parentNode;a5=a4.parentNode;var a9=a6;if(ba===a4){S=true;return 0}else{if(a6===a5){return V(ba,a4)}else{if(a6){if(!a5){return 1}}else{return -1}}}for(;a9;){a7.unshift(a9);a9=a9.parentNode}for(a9=a5;a9;){a8.unshift(a9);a9=a9.parentNode}a6=a7.length;a5=a8.length;for(a9=0;a9<a6&&a9<a5;a9++){if(a7[a9]!==a8[a9]){return V(a7[a9],a8[a9])}}return a9===a6?V(ba,a8[a9],-1):V(a7[a9],a4,1)};V=function(a4,a5,a6){if(a4===a5){return a6}for(a4=a4.nextSibling;a4;){if(a4===a5){return -1}a4=a4.nextSibling}return 1}}T.getText=function(a4){for(var a5="",a7,a6=0;a4[a6];a6++){a7=a4[a6];if(a7.nodeType===3||a7.nodeType===4){a5+=a7.nodeValue}else{if(a7.nodeType!==8){a5+=T.getText(a7.childNodes)}}}return a5};(function(){var a4=ap.createElement("div"),a5="script"+(new Date).getTime(),a6=ap.documentElement;a4.innerHTML="<a name='"+a5+"'/>";a6.insertBefore(a4,a6.firstChild);if(ap.getElementById(a5)){P.find.ID=function(a8,a9,a7){if(typeof a9.getElementById!=="undefined"&&!a7){return(a9=a9.getElementById(a8[1]))?a9.id===a8[1]||typeof a9.getAttributeNode!=="undefined"&&a9.getAttributeNode("id").nodeValue===a8[1]?[a9]:O:[]}};P.filter.ID=function(a8,a9){var a7=typeof a8.getAttributeNode!=="undefined"&&a8.getAttributeNode("id");return a8.nodeType===1&&a7&&a7.nodeValue===a9}}a6.removeChild(a4);a6=a4=null})();(function(){var a4=ap.createElement("div");a4.appendChild(ap.createComment(""));if(a4.getElementsByTagName("*").length>0){P.find.TAG=function(a6,a9){var a8=a9.getElementsByTagName(a6[1]);if(a6[1]==="*"){for(var a7=[],a5=0;a8[a5];a5++){a8[a5].nodeType===1&&a7.push(a8[a5])}a8=a7}return a8}}a4.innerHTML="<a href='#'></a>";if(a4.firstChild&&typeof a4.firstChild.getAttribute!=="undefined"&&a4.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(a5){return a5.getAttribute("href",2)}}a4=null})();ap.querySelectorAll&&function(){var a4=T,a5=ap.createElement("div");a5.innerHTML="<p class='TEST'></p>";if(!(a5.querySelectorAll&&a5.querySelectorAll(".TEST").length===0)){T=function(a8,bb,bc,bd){bb=bb||ap;a8=a8.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bd&&!T.isXML(bb)){if(bb.nodeType===9){try{return a2(bb.querySelectorAll(a8),bc)}catch(a7){}}else{if(bb.nodeType===1&&bb.nodeName.toLowerCase()!=="object"){var be=bb.getAttribute("id"),a9=be||"__sizzle__";be||bb.setAttribute("id",a9);try{return a2(bb.querySelectorAll("#"+a9+" "+a8),bc)}catch(ba){}finally{be||bb.removeAttribute("id")}}}}return a4(a8,bb,bc,bd)};for(var a6 in a4){T[a6]=a4[a6]}a5=null}}();(function(){var a4=ap.documentElement,a5=a4.matchesSelector||a4.mozMatchesSelector||a4.webkitMatchesSelector||a4.msMatchesSelector,a7=false;try{a5.call(ap.documentElement,"[test!='']:sizzle")}catch(a6){a7=true}if(a5){T.matchesSelector=function(ba,a8){a8=a8.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!T.isXML(ba)){try{if(a7||!P.match.PSEUDO.test(a8)&&!/!=/.test(a8)){return a5.call(ba,a8)}}catch(a9){}}return T(a8,null,null,[ba]).length>0}}})();(function(){var a4=ap.createElement("div");a4.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a4.getElementsByClassName||a4.getElementsByClassName("e").length===0)){a4.lastChild.className="e";if(a4.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");P.find.CLASS=function(a5,a7,a6){if(typeof a7.getElementsByClassName!=="undefined"&&!a6){return a7.getElementsByClassName(a5[1])}};a4=null}}})();T.contains=ap.documentElement.contains?function(a4,a5){return a4!==a5&&(a4.contains?a4.contains(a5):true)}:ap.documentElement.compareDocumentPosition?function(a4,a5){return !!(a4.compareDocumentPosition(a5)&16)}:function(){return false};T.isXML=function(a4){return(a4=(a4?a4.ownerDocument||a4:0).documentElement)?a4.nodeName!=="HTML":false};var a3=function(ba,a4){for(var a6,a5=[],a7="",a8=a4.nodeType?[a4]:a4;a6=P.match.PSEUDO.exec(ba);){a7+=a6[0];ba=ba.replace(P.match.PSEUDO,"")}ba=P.relative[ba]?ba+"*":ba;a6=0;for(var a9=a8.length;a6<a9;a6++){T(ba,a8[a6],a5)}return T.filter(a7,a5)};u.find=T;u.expr=T.selectors;u.expr[":"]=u.expr.filters;u.unique=T.uniqueSort;u.text=T.getText;u.isXMLDoc=T.isXML;u.contains=T.contains})();var at=/Until$/,v=/^(?:parents|prevUntil|prevAll)/,ai=/,/,aJ=/^.[^:#\[\.,]*$/,aj=Array.prototype.slice,ak=u.expr.match.POS;u.fn.extend({find:function(B){for(var E=this.pushStack("","find",B),P=0,S=0,T=this.length;S<T;S++){P=E.length;u.find(B,this[S],E);if(S>0){for(var c=P;c<E.length;c++){for(var t=0;t<P;t++){if(E[t]===E[c]){E.splice(c--,1);break}}}}}return E},has:function(c){var t=u(c);return this.filter(function(){for(var B=0,E=t.length;B<E;B++){if(u.contains(this,t[B])){return true}}})},not:function(c){return this.pushStack(i(this,c,false),"not",c)},filter:function(c){return this.pushStack(i(this,c,true),"filter",c)},is:function(c){return !!c&&u.filter(c,this).length>0},closest:function(P,S){var T=[],U,V,c=this[0];if(u.isArray(P)){var B,t={},E=1;if(c&&P.length){U=0;for(V=P.length;U<V;U++){B=P[U];t[B]||(t[B]=u.expr.match.POS.test(B)?u(B,S||this.context):B)}for(;c&&c.ownerDocument&&c!==S;){for(B in t){U=t[B];if(U.jquery?U.index(c)>-1:u(c).is(U)){T.push({selector:B,elem:c,level:E})}}c=c.parentNode;E++}}return T}B=ak.test(P)?u(P,S||this.context):null;U=0;for(V=this.length;U<V;U++){for(c=this[U];c;){if(B?B.index(c)>-1:u.find.matchesSelector(c,P)){T.push(c);break}else{c=c.parentNode;if(!c||!c.ownerDocument||c===S){break}}}}T=T.length>1?u.unique(T):T;return this.pushStack(T,"closest",P)},index:function(c){if(!c||typeof c==="string"){return u.inArray(this[0],c?u(c):this.parent().children())}return u.inArray(c.jquery?c[0]:c,this)},add:function(c,t){var B=typeof c==="string"?u(c,t||this.context):u.makeArray(c),E=u.merge(this.get(),B);return this.pushStack(!B[0]||!B[0].parentNode||B[0].parentNode.nodeType===11||!E[0]||!E[0].parentNode||E[0].parentNode.nodeType===11?E:u.unique(E))},andSelf:function(){return this.add(this.prevObject)}});u.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return u.dir(c,"parentNode")},parentsUntil:function(c,t,B){return u.dir(c,"parentNode",B)},next:function(c){return u.nth(c,2,"nextSibling")},prev:function(c){return u.nth(c,2,"previousSibling")},nextAll:function(c){return u.dir(c,"nextSibling")},prevAll:function(c){return u.dir(c,"previousSibling")},nextUntil:function(c,t,B){return u.dir(c,"nextSibling",B)},prevUntil:function(c,t,B){return u.dir(c,"previousSibling",B)},siblings:function(c){return u.sibling(c.parentNode.firstChild,c)},children:function(c){return u.sibling(c.firstChild)},contents:function(c){return u.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:u.makeArray(c.childNodes)}},function(c,t){u.fn[c]=function(E,P){var B=u.map(this,t,E);at.test(c)||(P=E);if(P&&typeof P==="string"){B=u.filter(P,B)}B=this.length>1?u.unique(B):B;if((this.length>1||ai.test(P))&&v.test(c)){B=B.reverse()}return this.pushStack(B,c,aj.call(arguments).join(","))}});u.extend({filter:function(c,t,B){if(B){c=":not("+c+")"}return t.length===1?u.find.matchesSelector(t[0],c)?[t[0]]:[]:u.find.matches(c,t)},dir:function(c,t,B){var E=[];for(c=c[t];c&&c.nodeType!==9&&(B===O||c.nodeType!==1||!u(c).is(B));){c.nodeType===1&&E.push(c);c=c[t]}return E},nth:function(c,t,B){t=t||1;for(var E=0;c;c=c[B]){if(c.nodeType===1&&++E===t){break}}return c},sibling:function(c,t){for(var B=[];c;c=c.nextSibling){c.nodeType===1&&c!==t&&B.push(c)}return B}});var aU=/ jQuery\d+="(?:\d+|null)"/g,r=/^\s+/,aL=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,aM=/<([\w:]+)/,al=/<tbody/i,am=/<|&#?\w+;/,aN=/<(?:script|object|embed|option|style)/i,aO=/checked\s*(?:[^=]|=\s*.checked.)/i,an=/\=([^="'>\s]+\/)>/g,A={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,"",""]};A.optgroup=A.option;A.tbody=A.tfoot=A.colgroup=A.caption=A.thead;A.th=A.td;if(!u.support.htmlSerialize){A._default=[1,"div<div>","</div>"]}u.fn.extend({text:function(c){if(u.isFunction(c)){return this.each(function(B){var t=u(this);t.text(c.call(this,B,t.text()))})}if(typeof c!=="object"&&c!==O){return this.empty().append((this[0]&&this[0].ownerDocument||ap).createTextNode(c))}return u.text(this)},wrapAll:function(c){if(u.isFunction(c)){return this.each(function(B){u(this).wrapAll(c.call(this,B))})}if(this[0]){var t=u(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var B=this;B.firstChild&&B.firstChild.nodeType===1;){B=B.firstChild}return B}).append(this)}return this},wrapInner:function(c){if(u.isFunction(c)){return this.each(function(t){u(this).wrapInner(c.call(this,t))})}return this.each(function(){var B=u(this),t=B.contents();t.length?t.wrapAll(c):B.append(c)})},wrap:function(c){return this.each(function(){u(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){u.nodeName(this,"body")||u(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(t){this.parentNode.insertBefore(t,this)})}else{if(arguments.length){var c=u(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(t){this.parentNode.insertBefore(t,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,u(arguments[0]).toArray());return c}}},remove:function(c,t){for(var B=0,E;(E=this[B])!=null;B++){if(!c||u.filter(c,[E]).length){if(!t&&E.nodeType===1){u.cleanData(E.getElementsByTagName("*"));u.cleanData([E])}E.parentNode&&E.parentNode.removeChild(E)}}return this},empty:function(){for(var c=0,t;(t=this[c])!=null;c++){for(t.nodeType===1&&u.cleanData(t.getElementsByTagName("*"));t.firstChild;){t.removeChild(t.firstChild)}}return this},clone:function(c){var t=this.map(function(){if(!u.support.noCloneEvent&&!u.isXMLDoc(this)){var B=this.outerHTML,E=this.ownerDocument;if(!B){B=E.createElement("div");B.appendChild(this.cloneNode(true));B=B.innerHTML}return u.clean([B.replace(aU,"").replace(an,'="$1">').replace(r,"")],E)[0]}else{return this.cloneNode(true)}});if(c===true){j(this,t);j(this.find("*"),t.find("*"))}return t},html:function(c){if(c===O){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aU,""):null}else{if(typeof c==="string"&&!aN.test(c)&&(u.support.leadingWhitespace||!r.test(c))&&!A[(aM.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(aL,"<$1></$2>");try{for(var t=0,B=this.length;t<B;t++){if(this[t].nodeType===1){u.cleanData(this[t].getElementsByTagName("*"));this[t].innerHTML=c}}}catch(E){this.empty().append(c)}}else{u.isFunction(c)?this.each(function(S){var P=u(this);P.html(c.call(this,S,P.html()))}):this.empty().append(c)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(u.isFunction(c)){return this.each(function(t){var B=u(this),E=B.html();B.replaceWith(c.call(this,t,E))})}if(typeof c!=="string"){c=u(c).detach()}return this.each(function(){var B=this.nextSibling,t=this.parentNode;u(this).remove();B?u(B).before(c):u(t).append(c)})}else{return this.pushStack(u(u.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(P,S,T){var U,V,c,B=P[0],t=[];if(!u.support.checkClone&&arguments.length===3&&typeof B==="string"&&aO.test(B)){return this.each(function(){u(this).domManip(P,S,T,true)})}if(u.isFunction(B)){return this.each(function(X){var W=u(this);P[0]=B.call(this,X,S?W.html():O);W.domManip(P,S,T)})}if(this[0]){U=B&&B.parentNode;U=u.support.parentNode&&U&&U.nodeType===11&&U.childNodes.length===this.length?{fragment:U}:u.buildFragment(P,this,t);c=U.fragment;if(V=c.childNodes.length===1?c=c.firstChild:c.firstChild){S=S&&u.nodeName(V,"tr");V=0;for(var E=this.length;V<E;V++){T.call(S?u.nodeName(this[V],"table")?this[V].getElementsByTagName("tbody")[0]||this[V].appendChild(this[V].ownerDocument.createElement("tbody")):this[V]:this[V],V>0||U.cacheable||this.length>1?c.cloneNode(true):c)}}t.length&&u.each(t,aK)}return this}});u.buildFragment=function(t,B,E){var P,S,c;B=B&&B[0]?B[0].ownerDocument||B[0]:ap;if(t.length===1&&typeof t[0]==="string"&&t[0].length<512&&B===ap&&!aN.test(t[0])&&(u.support.checkClone||!aO.test(t[0]))){S=true;if(c=u.fragments[t[0]]){if(c!==1){P=c}}}if(!P){P=B.createDocumentFragment();u.clean(t,B,P,E)}if(S){u.fragments[t[0]]=c?P:1}return{fragment:P,cacheable:S}};u.fragments={};u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,t){u.fn[c]=function(S){var T=[];S=u(S);var B=this.length===1&&this[0].parentNode;if(B&&B.nodeType===11&&B.childNodes.length===1&&S.length===1){S[t](this[0]);return this}else{B=0;for(var E=S.length;B<E;B++){var P=(B>0?this.clone(true):this).get();u(S[B])[t](P);T=T.concat(P)}return this.pushStack(T,c,S.selector)}}});u.extend({clean:function(S,T,V,W){T=T||ap;if(typeof T.createElement==="undefined"){T=T.ownerDocument||T[0]&&T[0].ownerDocument||ap}for(var X=[],c=0,E;(E=S[c])!=null;c++){if(typeof E==="number"){E+=""}if(E){if(typeof E==="string"&&!am.test(E)){E=T.createTextNode(E)}else{if(typeof E==="string"){E=E.replace(aL,"<$1></$2>");var B=(aM.exec(E)||["",""])[1].toLowerCase(),P=A[B]||A._default,t=P[0],U=T.createElement("div");for(U.innerHTML=P[1]+E+P[2];t--;){U=U.lastChild}if(!u.support.tbody){t=al.test(E);B=B==="table"&&!t?U.firstChild&&U.firstChild.childNodes:P[1]==="<table>"&&!t?U.childNodes:[];for(P=B.length-1;P>=0;--P){u.nodeName(B[P],"tbody")&&!B[P].childNodes.length&&B[P].parentNode.removeChild(B[P])}}!u.support.leadingWhitespace&&r.test(E)&&U.insertBefore(T.createTextNode(r.exec(E)[0]),U.firstChild);E=U.childNodes}}if(E.nodeType){X.push(E)}else{X=u.merge(X,E)}}}if(V){for(c=0;X[c];c++){if(W&&u.nodeName(X[c],"script")&&(!X[c].type||X[c].type.toLowerCase()==="text/javascript")){W.push(X[c].parentNode?X[c].parentNode.removeChild(X[c]):X[c])}else{X[c].nodeType===1&&X.splice.apply(X,[c+1,0].concat(u.makeArray(X[c].getElementsByTagName("script"))));V.appendChild(X[c])}}}return X},cleanData:function(P){for(var S,T,U=u.cache,V=u.event.special,c=u.support.deleteExpando,B=0,t;(t=P[B])!=null;B++){if(!(t.nodeName&&u.noData[t.nodeName.toLowerCase()])){if(T=t[u.expando]){if((S=U[T])&&S.events){for(var E in S.events){V[E]?u.event.remove(t,E):u.removeEvent(t,E,S.handle)}}if(c){delete t[u.expando]}else{t.removeAttribute&&t.removeAttribute(u.expando)}delete U[T]}}}}});var aP=/alpha\([^)]*\)/i,ao=/opacity=([^)]*)/,R=/-([a-z])/ig,aa=/([A-Z])/g,aQ=/^-?\d+(?:px)?$/i,ac=/^-?\d/,ad={position:"absolute",visibility:"hidden",display:"block"},av=["Left","Right"],aw=["Top","Bottom"],H,aR,l,ae=function(c,t){return t.toUpperCase()};u.fn.css=function(c,t){if(arguments.length===2&&t===O){return this}return u.access(this,c,t,true,function(E,P,B){return B!==O?u.style(E,P,B):u.css(E,P)})};u.extend({cssHooks:{opacity:{get:function(c,t){if(t){var B=H(c,"opacity","opacity");return B===""?"1":B}else{return c.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":u.support.cssFloat?"cssFloat":"styleFloat"},style:function(P,S,T,U){if(!(!P||P.nodeType===3||P.nodeType===8||!P.style)){var V,c=u.camelCase(S),B=P.style,t=u.cssHooks[c];S=u.cssProps[c]||c;if(T!==O){if(!(typeof T==="number"&&isNaN(T)||T==null)){if(typeof T==="number"&&!u.cssNumber[c]){T+="px"}if(!t||!("set" in t)||(T=t.set(P,T))!==O){try{B[S]=T}catch(E){}}}}else{if(t&&"get" in t&&(V=t.get(P,false,U))!==O){return V}return B[S]}}},css:function(t,B,E){var P,S=u.camelCase(B),c=u.cssHooks[S];B=u.cssProps[S]||S;if(c&&"get" in c&&(P=c.get(t,true,E))!==O){return P}else{if(H){return H(t,B,S)}}},swap:function(t,B,E){var P={},c;for(c in B){P[c]=t.style[c];t.style[c]=B[c]}E.call(t);for(c in B){t.style[c]=P[c]}},camelCase:function(c){return c.replace(R,ae)}});u.curCSS=u.css;u.each(["height","width"],function(c,t){u.cssHooks[t]={get:function(P,S,B){var E;if(S){if(P.offsetWidth!==0){E=k(P,t,B)}else{u.swap(P,ad,function(){E=k(P,t,B)})}if(E<=0){E=H(P,t,t);if(E==="0px"&&l){E=l(P,t,t)}if(E!=null){return E===""||E==="auto"?"0px":E}}if(E<0||E==null){E=P.style[t];return E===""||E==="auto"?"0px":E}return typeof E==="string"?E:E+"px"}},set:function(B,E){if(aQ.test(E)){E=parseFloat(E);if(E>=0){return E+"px"}}else{return E}}}});if(!u.support.opacity){u.cssHooks.opacity={get:function(c,t){return ao.test((t&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(t,B){var E=t.style;E.zoom=1;var P=u.isNaN(B)?"":"alpha(opacity="+B*100+")",c=E.filter||"";E.filter=aP.test(c)?c.replace(aP,P):E.filter+" "+P}}}if(ap.defaultView&&ap.defaultView.getComputedStyle){aR=function(c,t,B){var E;B=B.replace(aa,"-$1").toLowerCase();if(!(t=c.ownerDocument.defaultView)){return O}if(t=t.getComputedStyle(c,null)){E=t.getPropertyValue(B);if(E===""&&!u.contains(c.ownerDocument.documentElement,c)){E=u.style(c,B)}}return E}}if(ap.documentElement.currentStyle){l=function(t,B){var E,P,S=t.currentStyle&&t.currentStyle[B],c=t.style;if(!aQ.test(S)&&ac.test(S)){E=c.left;P=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left;c.left=B==="fontSize"?"1em":S||0;S=c.pixelLeft+"px";c.left=E;t.runtimeStyle.left=P}return S===""?"auto":S}}H=aR||l;if(u.expr&&u.expr.filters){u.expr.filters.hidden=function(c){var t=c.offsetHeight;return c.offsetWidth===0&&t===0||!u.support.reliableHiddenOffsets&&(c.style.display||u.css(c,"display"))==="none"};u.expr.filters.visible=function(c){return !u.expr.filters.hidden(c)}}var af=u.now(),ag=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ah=/^(?:select|textarea)/i,I=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,J=/^(?:GET|HEAD)$/,ax=/\[\]$/,D=/\=\?(&|$)/,f=/\?/,K=/([?&])_=[^&]*/,L=/^(\w+:)?\/\/([^\/?#]+)/,M=/%20/g,N=/#.*$/,aD=u.fn.load;u.fn.extend({load:function(t,B,E){if(typeof t!=="string"&&aD){return aD.apply(this,arguments)}else{if(!this.length){return this}}var P=t.indexOf(" ");if(P>=0){var S=t.slice(P,t.length);t=t.slice(0,P)}P="GET";if(B){if(u.isFunction(B)){E=B;B=null}else{if(typeof B==="object"){B=u.param(B,u.ajaxSettings.traditional);P="POST"}}}var c=this;u.ajax({url:t,type:P,dataType:"html",data:B,complete:function(U,T){if(T==="success"||T==="notmodified"){c.html(S?u("<div>").append(U.responseText.replace(ag,"")).find(S):U.responseText)}E&&c.each(E,[U.responseText,T,U])}});return this},serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?u.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ah.test(this.nodeName)||I.test(this.type))}).map(function(c,t){var B=u(this).val();return B==null?null:u.isArray(B)?u.map(B,function(E){return{name:t.name,value:E}}):{name:t.name,value:B}}).get()}});u.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,t){u.fn[t]=function(B){return this.bind(t,B)}});u.extend({get:function(c,t,B,E){if(u.isFunction(t)){E=E||B;B=t;t=null}return u.ajax({type:"GET",url:c,data:t,success:B,dataType:E})},getScript:function(c,t){return u.get(c,null,t,"script")},getJSON:function(c,t,B){return u.get(c,t,B,"json")},post:function(c,t,B,E){if(u.isFunction(t)){E=E||B;B=t;t={}}return u.ajax({type:"POST",url:c,data:t,success:B,dataType:E})},ajaxSetup:function(c){u.extend(u.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new s.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(Z){var ab=u.extend(true,{},u.ajaxSettings,Z),a1,a2,Y,T=ab.type.toUpperCase(),W=J.test(T);ab.url=ab.url.replace(N,"");ab.context=Z&&Z.context!=null?Z.context:ab;if(ab.data&&ab.processData&&typeof ab.data!=="string"){ab.data=u.param(ab.data,ab.traditional)}if(ab.dataType==="jsonp"){if(T==="GET"){D.test(ab.url)||(ab.url+=(f.test(ab.url)?"&":"?")+(ab.jsonp||"callback")+"=?")}else{if(!ab.data||!D.test(ab.data)){ab.data=(ab.data?ab.data+"&":"")+(ab.jsonp||"callback")+"=?"}}ab.dataType="json"}if(ab.dataType==="json"&&(ab.data&&D.test(ab.data)||D.test(ab.url))){a1=ab.jsonpCallback||"jsonp"+af++;if(ab.data){ab.data=(ab.data+"").replace(D,"="+a1+"$1")}ab.url=ab.url.replace(D,"="+a1+"$1");ab.dataType="script";var V=s[a1];s[a1]=function(a8){if(u.isFunction(V)){V(a8)}else{s[a1]=O;try{delete s[a1]}catch(a7){}}Y=a8;u.handleSuccess(ab,B,a2,Y);u.handleComplete(ab,B,a2,Y);E&&E.removeChild(a3)}}if(ab.dataType==="script"&&ab.cache===null){ab.cache=false}if(ab.cache===false&&W){var S=u.now(),c=ab.url.replace(K,"$1_="+S);ab.url=c+(c===ab.url?(f.test(ab.url)?"&":"?")+"_="+S:"")}if(ab.data&&W){ab.url+=(f.test(ab.url)?"&":"?")+ab.data}ab.global&&u.active++===0&&u.event.trigger("ajaxStart");S=(S=L.exec(ab.url))&&(S[1]&&S[1].toLowerCase()!==location.protocol||S[2].toLowerCase()!==location.host);if(ab.dataType==="script"&&T==="GET"&&S){var E=ap.getElementsByTagName("head")[0]||ap.documentElement,a3=ap.createElement("script");if(ab.scriptCharset){a3.charset=ab.scriptCharset}a3.src=ab.url;if(!a1){var a5=false;a3.onload=a3.onreadystatechange=function(){if(!a5&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){a5=true;u.handleSuccess(ab,B,a2,Y);u.handleComplete(ab,B,a2,Y);a3.onload=a3.onreadystatechange=null;E&&a3.parentNode&&E.removeChild(a3)}}}E.insertBefore(a3,E.firstChild);return O}var P=false,B=ab.xhr();if(B){ab.username?B.open(T,ab.url,ab.async,ab.username,ab.password):B.open(T,ab.url,ab.async);try{if(ab.data!=null&&!W||Z&&Z.contentType){B.setRequestHeader("Content-Type",ab.contentType)}if(ab.ifModified){u.lastModified[ab.url]&&B.setRequestHeader("If-Modified-Since",u.lastModified[ab.url]);u.etag[ab.url]&&B.setRequestHeader("If-None-Match",u.etag[ab.url])}S||B.setRequestHeader("X-Requested-With","XMLHttpRequest");B.setRequestHeader("Accept",ab.dataType&&ab.accepts[ab.dataType]?ab.accepts[ab.dataType]+", */*; q=0.01":ab.accepts._default)}catch(X){}if(ab.beforeSend&&ab.beforeSend.call(ab.context,B,ab)===false){ab.global&&u.active--===1&&u.event.trigger("ajaxStop");B.abort();return false}ab.global&&u.triggerGlobal(ab,"ajaxSend",[B,ab]);var a6=B.onreadystatechange=function(a8){if(!B||B.readyState===0||a8==="abort"){P||u.handleComplete(ab,B,a2,Y);P=true;if(B){B.onreadystatechange=u.noop}}else{if(!P&&B&&(B.readyState===4||a8==="timeout")){P=true;B.onreadystatechange=u.noop;a2=a8==="timeout"?"timeout":!u.httpSuccess(B)?"error":ab.ifModified&&u.httpNotModified(B,ab.url)?"notmodified":"success";var a9;if(a2==="success"){try{Y=u.httpData(B,ab.dataType,ab)}catch(a7){a2="parsererror";a9=a7}}if(a2==="success"||a2==="notmodified"){a1||u.handleSuccess(ab,B,a2,Y)}else{u.handleError(ab,B,a2,a9)}a1||u.handleComplete(ab,B,a2,Y);a8==="timeout"&&B.abort();if(ab.async){B=null}}}};try{var a4=B.abort;B.abort=function(){B&&Function.prototype.call.call(a4,B);a6("abort")}}catch(U){}ab.async&&ab.timeout>0&&setTimeout(function(){B&&!P&&a6("timeout")},ab.timeout);try{B.send(W||ab.data==null?null:ab.data)}catch(t){u.handleError(ab,B,null,t);u.handleComplete(ab,B,a2,Y)}ab.async||a6();return B}},param:function(t,B){var E=[],P=function(S,T){T=u.isFunction(T)?T():T;E[E.length]=encodeURIComponent(S)+"="+encodeURIComponent(T)};if(B===O){B=u.ajaxSettings.traditional}if(u.isArray(t)||t.jquery){u.each(t,function(){P(this.name,this.value)})}else{for(var c in t){o(c,t[c],B,P)}}return E.join("&").replace(M,"+")}});u.extend({active:0,lastModified:{},etag:{},handleError:function(c,t,B,E){c.error&&c.error.call(c.context,t,B,E);c.global&&u.triggerGlobal(c,"ajaxError",[t,c,E])},handleSuccess:function(c,t,B,E){c.success&&c.success.call(c.context,E,B,t);c.global&&u.triggerGlobal(c,"ajaxSuccess",[t,c])},handleComplete:function(c,t,B){c.complete&&c.complete.call(c.context,t,B);c.global&&u.triggerGlobal(c,"ajaxComplete",[t,c]);c.global&&u.active--===1&&u.event.trigger("ajaxStop")},triggerGlobal:function(c,t,B){(c.context&&c.context.url==null?u(c.context):u.event).trigger(t,B)},httpSuccess:function(c){try{return !c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223}catch(t){}return false},httpNotModified:function(c,t){var B=c.getResponseHeader("Last-Modified"),E=c.getResponseHeader("Etag");if(B){u.lastModified[t]=B}if(E){u.etag[t]=E}return c.status===304},httpData:function(t,B,E){var P=t.getResponseHeader("content-type")||"",c=B==="xml"||!B&&P.indexOf("xml")>=0;t=c?t.responseXML:t.responseText;c&&t.documentElement.nodeName==="parsererror"&&u.error("parsererror");if(E&&E.dataFilter){t=E.dataFilter(t,B)}if(typeof t==="string"){if(B==="json"||!B&&P.indexOf("json")>=0){t=u.parseJSON(t)}else{if(B==="script"||!B&&P.indexOf("javascript")>=0){u.globalEval(t)}}}return t}});if(s.ActiveXObject){u.ajaxSettings.xhr=function(){if(s.location.protocol!=="file:"){try{return new s.XMLHttpRequest}catch(c){}}try{return new s.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}}u.support.ajax=!!u.ajaxSettings.xhr();var p={},aE=/^(?:toggle|show|hide)$/,Q=/^([+\-]=)?([\d+.\-]+)(.*)$/,m,aV=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];u.fn.extend({show:function(c,t,B){if(c||c===0){return this.animate(C("show",3),c,t,B)}else{B=0;for(var E=this.length;B<E;B++){c=this[B];t=c.style.display;if(!u.data(c,"olddisplay")&&t==="none"){t=c.style.display=""}t===""&&u.css(c,"display")==="none"&&u.data(c,"olddisplay",aW(c.nodeName))}for(B=0;B<E;B++){c=this[B];t=c.style.display;if(t===""||t==="none"){c.style.display=u.data(c,"olddisplay")||""}}return this}},hide:function(c,t,B){if(c||c===0){return this.animate(C("hide",3),c,t,B)}else{c=0;for(t=this.length;c<t;c++){B=u.css(this[c],"display");B!=="none"&&u.data(this[c],"olddisplay",B)}for(c=0;c<t;c++){this[c].style.display="none"}return this}},_toggle:u.fn.toggle,toggle:function(c,t,B){var E=typeof c==="boolean";if(u.isFunction(c)&&u.isFunction(t)){this._toggle.apply(this,arguments)}else{c==null||E?this.each(function(){var P=E?c:u(this).is(":hidden");u(this)[P?"show":"hide"]()}):this.animate(C("toggle",3),c,t,B)}return this},fadeTo:function(c,t,B,E){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},c,B,E)},animate:function(t,B,E,P){var c=u.speed(B,E,P);if(u.isEmptyObject(t)){return this.each(c.complete)}return this[c.queue===false?"each":"queue"](function(){var S=u.extend({},c),V,U=this.nodeType===1,W=U&&u(this).is(":hidden"),T=this;for(V in t){var X=u.camelCase(V);if(V!==X){t[X]=t[V];delete t[V];V=X}if(t[V]==="hide"&&W||t[V]==="show"&&!W){return S.complete.call(this)}if(U&&(V==="height"||V==="width")){S.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(u.css(this,"display")==="inline"&&u.css(this,"float")==="none"){if(u.support.inlineBlockNeedsLayout){if(aW(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"}}}if(u.isArray(t[V])){(S.specialEasing=S.specialEasing||{})[V]=t[V][1];t[V]=t[V][0]}}if(S.overflow!=null){this.style.overflow="hidden"}S.curAnim=u.extend({},t);u.each(t,function(a1,a2){var Z=new u.fx(T,S,a1);if(aE.test(a2)){Z[a2==="toggle"?W?"show":"hide":a2](t)}else{var a4=Q.exec(a2),Y=Z.cur()||0;if(a4){var ab=parseFloat(a4[2]),a3=a4[3]||"px";if(a3!=="px"){u.style(T,a1,(ab||1)+a3);Y=(ab||1)/Z.cur()*Y;u.style(T,a1,Y+a3)}if(a4[1]){ab=(a4[1]==="-="?-1:1)*ab+Y}Z.custom(Y,ab,a3)}else{Z.custom(Y,a2,"")}}});return true})},stop:function(c,t){var B=u.timers;c&&this.queue([]);this.each(function(){for(var E=B.length-1;E>=0;E--){if(B[E].elem===this){t&&B[E](true);B.splice(E,1)}}});t||this.dequeue();return this}});u.each({slideDown:C("show",1),slideUp:C("hide",1),slideToggle:C("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,t){u.fn[c]=function(E,P,B){return this.animate(t,E,P,B)}});u.extend({speed:function(c,t,B){var E=c&&typeof c==="object"?u.extend({},c):{complete:B||!B&&t||u.isFunction(c)&&c,duration:c,easing:B&&t||t&&!u.isFunction(t)&&t};E.duration=u.fx.off?0:typeof E.duration==="number"?E.duration:E.duration in u.fx.speeds?u.fx.speeds[E.duration]:u.fx.speeds._default;E.old=E.complete;E.complete=function(){E.queue!==false&&u(this).dequeue();u.isFunction(E.old)&&E.old.call(this)};return E},easing:{linear:function(c,t,B,E){return B+E*c},swing:function(c,t,B,E){return(-Math.cos(c*Math.PI)/2+0.5)*E+B}},timers:[],fx:function(c,t,B){this.options=t;this.elem=c;this.prop=B;if(!t.orig){t.orig={}}}});u.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(u.fx.step[this.prop]||u.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(u.css(this.elem,this.prop));return c&&c>-10000?c:0},custom:function(t,B,E){function P(T){return S.step(T)}var S=this,c=u.fx;this.startTime=u.now();this.start=t;this.end=B;this.unit=E||this.unit||"px";this.now=this.start;this.pos=this.state=0;P.elem=this.elem;if(P()&&u.timers.push(P)&&!m){m=setInterval(c.tick,c.interval)}},show:function(){this.options.orig[this.prop]=u.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());u(this.elem).show()},hide:function(){this.options.orig[this.prop]=u.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var E=u.now(),P=true;if(B||E>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var S in this.options.curAnim){if(this.options.curAnim[S]!==true){P=false}}if(P){if(this.options.overflow!=null&&!u.support.shrinkWrapBlocks){var T=this.elem,c=this.options;u.each(["","X","Y"],function(U,V){T.style["overflow"+V]=c.overflow[U]})}this.options.hide&&u(this.elem).hide();if(this.options.hide||this.options.show){for(var t in this.options.curAnim){u.style(this.elem,t,this.options.orig[t])}}this.options.complete.call(this.elem)}return false}else{B=E-this.startTime;this.state=B/this.options.duration;E=this.options.easing||(u.easing.swing?"swing":"linear");this.pos=u.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||E](this.state,B,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};u.extend(u.fx,{tick:function(){for(var c=u.timers,t=0;t<c.length;t++){c[t]()||c.splice(t--,1)}c.length||u.fx.stop()},interval:13,stop:function(){clearInterval(m);m=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){u.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(u.expr&&u.expr.filters){u.expr.filters.animated=function(c){return u.grep(u.timers,function(t){return c===t.elem}).length}}var au=/^t(?:able|d|h)$/i,w=/^(?:body|html)$/i;u.fn.offset="getBoundingClientRect" in ap.documentElement?function(t){var B=this[0],E;if(t){return this.each(function(T){u.offset.setOffset(this,t,T)})}if(!B||!B.ownerDocument){return null}if(B===B.ownerDocument.body){return u.offset.bodyOffset(B)}try{E=B.getBoundingClientRect()}catch(P){}var S=B.ownerDocument,c=S.documentElement;if(!E||!u.contains(c,B)){return E||{top:0,left:0}}B=S.body;S=q(S);return{top:E.top+(S.pageYOffset||u.support.boxModel&&c.scrollTop||B.scrollTop)-(c.clientTop||B.clientTop||0),left:E.left+(S.pageXOffset||u.support.boxModel&&c.scrollLeft||B.scrollLeft)-(c.clientLeft||B.clientLeft||0)}}:function(P){var S=this[0];if(P){return this.each(function(W){u.offset.setOffset(this,P,W)})}if(!S||!S.ownerDocument){return null}if(S===S.ownerDocument.body){return u.offset.bodyOffset(S)}u.offset.initialize();var T,U=S.offsetParent,V=S.ownerDocument,c=V.documentElement,B=V.body;T=(V=V.defaultView)?V.getComputedStyle(S,null):S.currentStyle;for(var t=S.offsetTop,E=S.offsetLeft;(S=S.parentNode)&&S!==B&&S!==c;){if(u.offset.supportsFixedPosition&&T.position==="fixed"){break}T=V?V.getComputedStyle(S,null):S.currentStyle;t-=S.scrollTop;E-=S.scrollLeft;if(S===U){t+=S.offsetTop;E+=S.offsetLeft;if(u.offset.doesNotAddBorder&&!(u.offset.doesAddBorderForTableAndCells&&au.test(S.nodeName))){t+=parseFloat(T.borderTopWidth)||0;E+=parseFloat(T.borderLeftWidth)||0}U=S.offsetParent}if(u.offset.subtractsBorderForOverflowNotVisible&&T.overflow!=="visible"){t+=parseFloat(T.borderTopWidth)||0;E+=parseFloat(T.borderLeftWidth)||0}T=T}if(T.position==="relative"||T.position==="static"){t+=B.offsetTop;E+=B.offsetLeft}if(u.offset.supportsFixedPosition&&T.position==="fixed"){t+=Math.max(c.scrollTop,B.scrollTop);E+=Math.max(c.scrollLeft,B.scrollLeft)}return{top:t,left:E}};u.offset={initialize:function(){var t=ap.body,B=ap.createElement("div"),E,P,S,c=parseFloat(u.css(t,"marginTop"))||0;u.extend(B.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});B.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>";t.insertBefore(B,t.firstChild);E=B.firstChild;P=E.firstChild;S=E.nextSibling.firstChild.firstChild;this.doesNotAddBorder=P.offsetTop!==5;this.doesAddBorderForTableAndCells=S.offsetTop===5;P.style.position="fixed";P.style.top="20px";this.supportsFixedPosition=P.offsetTop===20||P.offsetTop===15;P.style.position=P.style.top="";E.style.overflow="hidden";E.style.position="relative";this.subtractsBorderForOverflowNotVisible=P.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==c;t.removeChild(B);u.offset.initialize=u.noop},bodyOffset:function(c){var t=c.offsetTop,B=c.offsetLeft;u.offset.initialize();if(u.offset.doesNotIncludeMarginInBodyOffset){t+=parseFloat(u.css(c,"marginTop"))||0;B+=parseFloat(u.css(c,"marginLeft"))||0}return{top:t,left:B}},setOffset:function(S,T,U){var V=u.css(S,"position");if(V==="static"){S.style.position="relative"}var W=u(S),c=W.offset(),E=u.css(S,"top"),B=u.css(S,"left"),P=V==="absolute"&&u.inArray("auto",[E,B])>-1;V={};var t={};if(P){t=W.position()}E=P?t.top:parseInt(E,10)||0;B=P?t.left:parseInt(B,10)||0;if(u.isFunction(T)){T=T.call(S,U,c)}if(T.top!=null){V.top=T.top-c.top+E}if(T.left!=null){V.left=T.left-c.left+B}"using" in T?T.using.call(S,V):W.css(V)}};u.fn.extend({position:function(){if(!this[0]){return null}var c=this[0],t=this.offsetParent(),B=this.offset(),E=w.test(t[0].nodeName)?{top:0,left:0}:t.offset();B.top-=parseFloat(u.css(c,"marginTop"))||0;B.left-=parseFloat(u.css(c,"marginLeft"))||0;E.top+=parseFloat(u.css(t[0],"borderTopWidth"))||0;E.left+=parseFloat(u.css(t[0],"borderLeftWidth"))||0;return{top:B.top-E.top,left:B.left-E.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ap.body;c&&!w.test(c.nodeName)&&u.css(c,"position")==="static";){c=c.offsetParent}return c})}});u.each(["Left","Top"],function(c,t){var B="scroll"+t;u.fn[B]=function(S){var E=this[0],P;if(!E){return null}if(S!==O){return this.each(function(){if(P=q(this)){P.scrollTo(!c?S:u(P).scrollLeft(),c?S:u(P).scrollTop())}else{this[B]=S}})}else{return(P=q(E))?"pageXOffset" in P?P[c?"pageYOffset":"pageXOffset"]:u.support.boxModel&&P.document.documentElement[B]||P.document.body[B]:E[B]}}});u.each(["Height","Width"],function(c,t){var B=t.toLowerCase();u.fn["inner"+t]=function(){return this[0]?parseFloat(u.css(this[0],B,"padding")):null};u.fn["outer"+t]=function(E){return this[0]?parseFloat(u.css(this[0],B,E?"margin":"border")):null};u.fn[B]=function(S){var E=this[0];if(!E){return S==null?null:this}if(u.isFunction(S)){return this.each(function(U){var T=u(this);T[B](S.call(this,U,T[B]()))})}if(u.isWindow(E)){return E.document.compatMode==="CSS1Compat"&&E.document.documentElement["client"+t]||E.document.body["client"+t]}else{if(E.nodeType===9){return Math.max(E.documentElement["client"+t],E.body["scroll"+t],E.documentElement["scroll"+t],E.body["offset"+t],E.documentElement["offset"+t])}else{if(S===O){E=u.css(E,B);var P=parseFloat(E);return u.isNaN(P)?E:P}else{return this.css(B,typeof S==="string"?S:S+"px")}}}}})})(window);jQuery(function(h){var D=(h.browser.msie&&parseInt(h.browser.version.substr(0,1))<7);var M=h("body");var w;var j=false;var J;var L;var o={started:false,ready:false,dataReady:false,anim:false,loadingShown:false,transition:false,error:false,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,closing:false,contentWrapper:null,scripts:new Array()};var P={width:false,height:false};h.fn.nyroModal=function(Y){if(!this){return false}return this.each(function(){if(this.nodeName.toLowerCase()=="form"){h(this).submit(function(Z){if(this.enctype=="multipart/form-data"){U(h.extend(Y,{from:this}));return true}Z.preventDefault();U(h.extend(Y,{from:this}));return false})}else{h(this).click(function(Z){Z.preventDefault();U(h.extend(Y,{from:this}));return false})}})};h.fn.nyroModalManual=function(Y){if(!this.length){U(Y)}return this.each(function(){U(h.extend(Y,{from:this}))})};h.nyroModalManual=function(Y){U(Y)};h.nyroModalSettings=function(Z,aa,Y){c(Z,aa,Y);if(!aa&&o.started){if(o.bg&&Z.bgColor){w.updateBgColor(o,w,function(){})}if(o.contentWrapper&&Z.title){title=h("h1#nyroModalTitle",o.contentWrapper);if(title.length){title.text(Z.title)}else{o.contentWrapper.prepend('<h1 id="nyroModalTitle">'+Z.title+"</h1>")}}if(o.content&&(o.dataReady&&!o.anim&&!o.transition)&&(Z.width||Z.height)){p(true);if(j){o.content.css({position:""})}w.resize(o,w,function(){if(j){o.content.css({position:"fixed"})}if(h.isFunction(w.endResize)){w.endResize(o,w)}})}}};h.nyroModalRemove=function(){l()};h.nyroModalNext=function(){var Y=C(1);if(Y){return Y.nyroModalManual(w)}return false};h.nyroModalPrev=function(){var Y=C(-1);if(Y){return Y.nyroModalManual(w)}return false};h.fn.nyroModal.settings={debug:false,modal:false,type:"",from:"",hash:"",processHandler:null,selIndicator:"nyroModalSel",formIndicator:"nyroModal",content:null,bgColor:"#000000",ajax:{},swf:{wmode:"transparent"},width:null,height:null,minWidth:400,minHeight:300,resizable:true,autoSizable:true,padding:25,regexImg:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",defaultImgAlt:"Image",setWidthImgTitle:true,ltr:true,css:{bg:{zIndex:100,position:"fixed",top:0,left:0,height:"100%",width:"100%"},wrapper:{zIndex:101,position:"fixed",top:"50%",left:"50%"},wrapper2:{},content:{overflow:"auto"},loading:{zIndex:102,position:"fixed",top:"50%",left:"50%",marginTop:"-50px",marginLeft:"-50px"}},wrap:{div:'<div class="wrapper"></div>',ajax:'<div class="wrapper"></div>',form:'<div class="wrapper"></div>',formData:'<div class="wrapper"></div>',image:'<div class="wrapperImg"></div>',gallery:'<div class="wrapperImg"><a href="#" class="nyroModalPrev">Prev</a><a href="#"  class="nyroModalNext">Next</a></div>',swf:'<div class="wrapperSwf"></div>',iframe:'<div class="wrapperIframe"></div>',manual:'<div class="wrapper"></div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close</a>',title:null,titleFromIframe:true,openSelector:".nyroModal",closeSelector:".nyroModalClose",contentLoading:'<a href="#" class="nyroModalClose">Cancel</a>',errorClass:"error",contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close</a>',handleError:null,showBackground:z,hideBackground:a,endFillContent:null,showContent:v,endShowContent:null,beforeHideContent:null,hideContent:e,showTransition:B,hideTransition:i,showLoading:f,hideLoading:I,resize:d,endResize:null,updateBgColor:E,endRemove:null};function U(Y){if(o.loadingShown||o.transition||o.anim){return}g("processModal");o.started=true;Q(Y);o.error=false;o.closing=false;o.dataReady=false;o.scripts=new Array();w.type=F();if(h.isFunction(w.processHandler)){w.processHandler(w)}from=w.from;url=w.url;if(w.type=="swf"){w.resizable=false;c({overflow:"hidden"},"css","content");w.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w.width+'" height="'+w.height+'"><param name="movie" value="'+url+'"></param>';var ad="";h.each(w.swf,function(ah,ag){w.content+='<param name="'+ah+'" value="'+ag+'"></param>';ad+=" "+ah+'="'+ag+'"'});w.content+='<embed src="'+url+'" type="application/x-shockwave-flash" width="'+w.width+'" height="'+w.height+'"'+ad+"></embed></object>"}if(from){var ac=h(from);if(w.type=="form"){var Z=h(from).serializeArray();Z.push({name:w.formIndicator,value:1});if(w.selector){Z.push({name:w.selIndicator,value:w.selector.substring(1)})}h.ajax(h.extend({},w.ajax,{url:url,data:Z,type:from.method,success:y,error:H}));g("Form Ajax Load: "+ac.attr("action"));K()}else{if(w.type=="formData"){R();ac.attr("target","nyroModalIframe");ac.attr("action",url);ac.prepend('<input type="hidden" name="'+w.formIndicator+'" value="1" />');if(w.selector){ac.prepend('<input type="hidden" name="'+w.selIndicator+'" value="'+w.selector.substring(1)+'" />')}o.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe"></iframe>');h("iframe",o.tmp).css({width:w.width,height:w.height}).error(H).load(b);g("Form Data Load: "+ac.attr("action"));K();k()}else{if(w.type=="image"||w.type=="gallery"){var ab=ac.attr("title")||w.defaultImgAlt;R();o.tmp.html('<img id="nyroModalImg" />').find("img").attr("alt",ab);g("Image Load: "+url);o.tmp.css({lineHeight:0});h("img",o.tmp).error(H).load(function(){g("Image Loaded: "+this.src);h(this).unbind("load");var ah=o.tmp.width();var ag=o.tmp.height();o.tmp.css({lineHeight:""});c({width:ah,height:ag,imgWidth:ah,imgHeight:ag});c({overflow:"hidden"},"css","content");o.dataReady=true;if(o.loadingShown||o.transition){k()}}).attr("src",url);K()}else{if(w.type=="iframe"){R();o.tmp.html('<iframe frameborder="0" hspace="0" src="'+url+'" name="nyroModalIframe"></iframe>');g("Iframe Load: "+url);h("iframe",o.tmp).eq(0).css({width:"100%",height:S()?"99%":"100%"}).load(function(ag){if(w.titleFromIframe&&url.indexOf(window.location.hostname)>-1){h.nyroModalSettings({title:h("iframe",o.full).contents().find("title").text()})}});w.autoSizable=false;o.dataReady=true;K()}else{if(w.type){g("Content: "+w.type);R();o.tmp.html(w.content);var af=o.tmp.width();var aa=o.tmp.height();var ae=h(w.type);if(ae.length){c({type:"div"});af=ae.width();aa=ae.height();if(J){L=J}J=ae;o.tmp.append(ae.contents())}c({width:af,height:aa});if(o.tmp.html()){o.dataReady=true}else{H()}K();k()}else{g("Ajax Load: "+url);c({type:"ajax"});var Z=w.ajax.data||{};if(w.selector){if(typeof Z=="string"){Z+="&"+w.selIndicator+"="+w.selector.substring(1)}else{Z[w.selIndicator]=w.selector.substring(1)}}h.ajax(h.extend(true,w.ajax,{url:url,success:y,error:H,data:Z}));K()}}}}}}else{if(w.content){g("Content: "+w.type);c({type:"manual"});R();o.tmp.html(h("<div/>").html(w.content).contents());if(o.tmp.html()){o.dataReady=true}else{H()}K()}else{}}}function Q(Y){g("setDefaultCurrentSettings");w=h.extend({},h.fn.nyroModal.settings,Y);w.selector="";w.borderW=0;w.borderH=0;w.resizable=true;m()}function c(Z,aa,Y){if(o.started){if(aa&&Y){h.extend(w[aa][Y],Z)}else{if(aa){h.extend(w[aa],Z)}else{h.extend(w,Z)}}}else{if(aa&&Y){h.extend(h.fn.nyroModal.settings[aa][Y],Z)}else{if(aa){h.extend(h.fn.nyroModal.settings[aa],Z)}else{h.extend(h.fn.nyroModal.settings,Z)}}}}function t(){if(D){if(document.documentElement){w.marginScrollLeft=document.documentElement.scrollLeft;w.marginScrollTop=document.documentElement.scrollTop}else{w.marginScrollLeft=document.body.scrollLeft;w.marginScrollTop=document.body.scrollTop}}else{w.marginScrollLeft=0;w.marginScrollTop=0}}function m(){t();w.marginLeft=-(w.width+w.borderW)/2+w.marginScrollLeft;w.marginTop=-(w.height+w.borderH)/2+w.marginScrollTop}function W(){t();var Y=X(o.loading);w.marginTopLoading=-(o.loading.height()+Y.h.border+Y.h.padding)/2+w.marginScrollTop;w.marginLeftLoading=-(o.loading.width()+Y.w.border+Y.w.padding)/2+w.marginScrollLeft}function R(){g("initModal");if(!o.full){if(w.debug){c({color:"white"},"css","bg")}var Y="";if(D){M.css({height:M.height()+"px",width:M.width()+"px",position:"static",overflow:"hidden"});h("html").css({overflow:"hidden"});c({position:"absolute",height:"110%",width:"110%",top:w.marginScrollTop+"px",left:w.marginScrollLeft+"px"},"css","bg");c({position:"absolute"},"css","loading");c({position:"absolute"},"css","wrapper");Y=h('<iframe id="nyroModalIframeHideIe"></iframe>').css(h.extend({},w.css.bg,{opacity:0,zIndex:50,border:"none"}))}M.append(h('<div id="nyroModalFull"><div id="nyroModalBg"></div><div id="nyroModalWrapper"><div id="nyroModalContent"></div></div><div id="nyrModalTmp"></div><div id="nyroModalLoading"></div></div>').hide());o.full=h("#nyroModalFull").show();o.bg=h("#nyroModalBg").css(h.extend({backgroundColor:w.bgColor},w.css.bg)).before(Y);if(!w.modal){o.bg.click(l)}o.loading=h("#nyroModalLoading").css(w.css.loading).hide();o.contentWrapper=h("#nyroModalWrapper").css(w.css.wrapper).hide();o.content=h("#nyroModalContent");o.tmp=h("#nyrModalTmp").hide();if(h.isFunction(h.fn.mousewheel)){o.content.mousewheel(function(ab,aa){var Z=o.content.get(0);if((aa>0&&Z.scrollTop==0)||(aa<0&&Z.scrollHeight-Z.scrollTop==Z.clientHeight)){ab.preventDefault();ab.stopPropagation()}})}h(document).keydown(V);o.content.css({width:"auto",height:"auto"});o.contentWrapper.css({width:"auto",height:"auto"})}}function K(){g("showModal");if(!o.ready){R();o.anim=true;w.showBackground(o,w,O)}else{o.anim=true;o.transition=true;w.showTransition(o,w,function(){x();o.anim=false;k()})}}function V(Y){if(Y.keyCode==27){if(!w.modal){l()}}else{if(w.type=="gallery"&&o.ready&&o.dataReady&&!o.anim&&!o.transition){if(Y.keyCode==39||Y.keyCode==40){Y.preventDefault();h(".nyroModalNext",o.content).eq(0).trigger("click");return false}else{if(Y.keyCode==37||Y.keyCode==38){Y.preventDefault();h(".nyroModalPrev",o.content).eq(0).trigger("click");return false}}}}}function F(){if(w.forceType){var ad=w.forceType;if(!w.content){w.from=true}w.forceType=null;return ad}var ae=w.from;var aa;if(ae&&ae.nodeName){var Z=h(ae);w.url=aa=ae.nodeName.toLowerCase()=="form"?Z.attr("action"):ae.href;if(Z.attr("rev")=="modal"){w.modal=true}if(Z.attr("title")){w.title=Z.attr("title")}var ac=s(aa,ae);if(ac){return ac}if(ae.target&&ae.target.toLowerCase()=="_blank"||(ae.hostname&&ae.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))){return"iframe"}else{if(ae.nodeName.toLowerCase()=="form"){c(T(aa));if(Z.attr("enctype")=="multipart/form-data"){return"formData"}return"form"}}}else{aa=w.url;if(!w.content){w.from=true}if(!aa){return null}var ab=new RegExp("^http://","g");if(aa.match(ab)){return"iframe"}}var ac=s(aa,ae);if(ac){return ac}var Y=new RegExp("[^.].(swf)s*$","i");if(Y.test(aa)){return"swf"}var ad=T(aa);c(ad);if(!ad.url){return ad.selector}}function s(Y,aa){var Z=new RegExp(w.regexImg,"i");if(Z.test(Y)){if(aa&&aa.rel){return"gallery"}else{return"image"}}}function T(Z){var ad={url:null,selector:null};if(Z){var aa=N(Z);var ac=N(window.location.href);var ab=window.location.href.substring(0,window.location.href.length-ac.length);var Y=Z.substring(0,Z.length-aa.length);if(Y==ab){ad.selector=aa}else{ad.url=Y;ad.selector=aa}}return ad}function H(){g("loadingError");o.error=true;if(!o.ready){return}if(h.isFunction(w.handleError)){w.handleError(o,w)}o.loading.addClass(w.errorClass).html(w.contentError);h(w.closeSelector,o.loading).click(l);W();o.loading.css({marginTop:w.marginTopLoading+"px",marginLeft:w.marginLeftLoading+"px"})}function r(){g("fillContent");if(!o.tmp.html()){return}o.content.html(o.tmp.contents());o.tmp.empty();u();if(h.isFunction(w.endFillContent)){w.endFillContent(o,w)}o.content.append(o.scripts);var Y=h.extend({},w);if(P.width){Y.width=null}if(P.height){Y.height=null}h(w.closeSelector,o.contentWrapper).click(l);h(w.openSelector,o.contentWrapper).nyroModal(Y)}function u(){g("wrapContent");var Z=h(w.wrap[w.type]);o.content.append(Z.children().remove());o.contentWrapper.wrapInner(Z);if(w.type=="gallery"){var aa=C(-1);if(aa){h(".nyroModalPrev",o.contentWrapper).attr("href",aa.attr("href")).click(function(ab){ab.preventDefault();aa.nyroModalManual(w);return false})}else{h(".nyroModalPrev",o.contentWrapper).remove()}var Y=C(1);if(Y){h(".nyroModalNext",o.contentWrapper).attr("href",Y.attr("href")).click(function(ab){ab.preventDefault();Y.nyroModalManual(w);return false})}else{h(".nyroModalNext",o.contentWrapper).remove()}}p()}function C(Z){if(w.type=="gallery"){if(!w.ltr){Z*=-1}var ab=h('[rel="'+w.from.rel+'"]');var Y=ab.index(w.from);var aa=Y+Z;if(aa>=0&&aa<ab.length){return ab.eq(aa)}}return false}function p(af){g("calculateSize");if(!o.wrapper){o.wrapper=o.contentWrapper.children(":first")}P.width=false;P.height=false;if(w.autoSizable&&(!w.width||!w.height)){o.contentWrapper.css({opacity:0}).show();var ag={width:"auto",height:"auto"};if(w.width){ag.width=w.width}if(w.height){ag.height=w.height}o.content.css(ag);if(!w.width){w.width=o.content.width();P.width=true}if(!w.height){w.height=o.content.height();P.height=true}o.contentWrapper.hide().css({opacity:1})}w.width=Math.max(w.width,w.minWidth);w.height=Math.max(w.height,w.minHeight);var Z=X(o.contentWrapper);var aj=X(o.wrapper);var al=X(o.content);var ag={content:{width:w.width,height:w.height},wrapper2:{width:w.width+al.w.total,height:w.height+al.h.total},wrapper:{width:w.width+al.w.total+aj.w.total,height:w.height+al.h.total+aj.h.total}};if(w.resizable){var ah=h(window).height()-w.padding*2-Z.h.border-(ag.wrapper.height-w.height);var ab=h(window).width()-w.padding*2-Z.w.border-(ag.wrapper.width-w.width);if(ag.content.height>ah||ag.content.width>ab){if(w.type=="image"||w.type=="gallery"){var ac=ag.content.width-w.imgWidth;var aa=ag.content.height-w.imgHeight;if(aa<0){aa=0}if(ac<0){ac=0}var ak=ah-aa;var am=ab-ac;var ai=Math.min(ak/w.imgHeight,am/w.imgWidth);ak=Math.floor(w.imgHeight*ai);am=Math.floor(w.imgWidth*ai);h("img#nyroModalImg",o.content).css({height:ak+"px",width:am+"px"});ag.content.height=ak+aa;ag.content.width=am+ac}else{ag.content.height=Math.min(ag.content.height,ah);ag.content.width=Math.min(ag.content.width,ab)}ag.wrapper2={width:ag.content.width+al.w.total,height:ag.content.height+al.h.total};ag.wrapper={width:ag.content.width+al.w.total+aj.w.total,height:ag.content.height+al.h.total+aj.h.total}}}o.content.css(h.extend({},ag.content,w.css.content));o.wrapper.css(h.extend({},ag.wrapper2,w.css.wrapper2));if(!af){o.contentWrapper.css(h.extend({},ag.wrapper,w.css.wrapper));if(w.type=="image"||w.type=="gallery"){var ae=h("img",o.content).attr("alt");h("img",o.content).removeAttr("alt");if(ae!=w.defaultImgAlt){var ad=h("<div>"+ae+"</div>");o.content.append(ad);if(w.setWidthImgTitle){var Y=X(ad);ad.css({width:(ag.content.width+al.w.padding-Y.w.total)+"px"})}}}if(!w.modal){o.contentWrapper.prepend(w.closeButton)}}if(w.title){o.contentWrapper.prepend('<h1 id="nyroModalTitle">'+w.title+"</h1>")}ag.wrapper.borderW=Z.w.border;ag.wrapper.borderH=Z.h.border;c(ag.wrapper);m()}function l(Y){g("removeModal");if(Y){Y.preventDefault()}if(o.full&&o.ready){o.ready=false;o.anim=true;o.closing=true;if(o.loadingShown||o.transition){w.hideLoading(o,w,function(){o.loading.hide();o.loadingShown=false;o.transition=false;w.hideBackground(o,w,q)})}else{if(j){o.content.css({position:""})}o.wrapper.css({overflow:"hidden"});o.content.css({overflow:"hidden"});if(h.isFunction(w.beforeHideContent)){w.beforeHideContent(o,w,function(){w.hideContent(o,w,function(){x();w.hideBackground(o,w,q)})})}else{w.hideContent(o,w,function(){x();w.hideBackground(o,w,q)})}}}if(Y){return false}}function k(){g("showContentOrLoading");if(o.ready&&!o.anim){if(o.dataReady){if(o.tmp.html()){o.anim=true;if(o.transition){r();w.hideTransition(o,w,function(){o.loading.hide();o.transition=false;o.loadingShown=false;G()})}else{w.hideLoading(o,w,function(){o.loading.hide();o.loadingShown=false;r();W();w.showContent(o,h.extend({},w),G)})}}}else{if(!o.loadingShown&&!o.transition){o.anim=true;o.loadingShown=true;if(o.error){H()}else{o.loading.html(w.contentLoading)}h(w.closeSelector,o.loading).click(l);W();w.showLoading(o,w,function(){o.anim=false;k()})}}}}function y(Y){g("AjaxLoaded: "+this.url);o.tmp.html(w.selector?A(h("<div>"+Y+"</div>").find(w.selector).contents()):A(Y));if(o.tmp.html()){o.dataReady=true;k()}else{H()}}function b(){g("formDataLoaded");var Y=h(w.from);Y.attr("action",Y.attr("action")+w.selector);Y.attr("target","");h("input[name="+w.formIndicator+"]",w.from).remove();var aa=o.tmp.children("iframe");var Z=aa.unbind("load").contents().find(w.selector||"body").not("script[src]");aa.attr("src","about:blank");o.tmp.html(Z.html());if(o.tmp.html()){o.dataReady=true;k()}else{H()}}function x(){g("endHideContent");o.anim=false;if(L){L.append(o.content.contents());L=null}else{if(J){J.append(o.content.contents());J=null}}o.content.empty();o.contentWrapper.empty().removeAttr("style");if(o.closing||o.transition){o.contentWrapper.hide()}o.contentWrapper.css(w.css.wrapper).append(o.content);k()}function q(){g("endRemove");h(document).unbind("keydown",V);o.anim=false;o.full.remove();o.full=null;if(D){M.css({height:"",width:"",position:"",overflow:""});h("html").css({overflow:""})}if(h.isFunction(w.endRemove)){w.endRemove(o,w)}}function O(){g("endBackground");o.ready=true;o.anim=false;k()}function G(){g("endShowContent");o.anim=false;o.contentWrapper.css({opacity:""});j=h.browser.mozilla&&parseFloat(h.browser.version)<1.9&&w.type!="gallery"&&w.type!="image";if(j){o.content.css({position:"fixed"})}if(h.isFunction(w.endShowContent)){w.endShowContent(o,w)}if(P.width){c({width:null})}if(P.height){c({height:null})}}function N(Z){if(typeof Z=="string"){var Y=Z.indexOf("#");if(Y>-1){return Z.substring(Y)}}return""}function A(Y){if(typeof Y=="string"){Y=Y.replace(/<\/?(html|head|body)([^>]*)>/gi,"")}var Z=new Array();h.each(h.clean({0:Y},this.ownerDocument),function(){if(h.nodeName(this,"script")){if(!this.src||h(this).attr("rel")=="forceLoad"){o.scripts.push(this)}}else{Z.push(this)}});return Z}function X(Y){Y=Y.get(0);var Z={h:{margin:n(Y,"marginTop")+n(Y,"marginBottom"),border:n(Y,"borderTopWidth")+n(Y,"borderBottomWidth"),padding:n(Y,"paddingTop")+n(Y,"paddingBottom")},w:{margin:n(Y,"marginLeft")+n(Y,"marginRight"),border:n(Y,"borderLeftWidth")+n(Y,"borderRightWidth"),padding:n(Y,"paddingLeft")+n(Y,"paddingRight")}};Z.h.outer=Z.h.margin+Z.h.border;Z.w.outer=Z.w.margin+Z.w.border;Z.h.inner=Z.h.padding+Z.h.border;Z.w.inner=Z.w.padding+Z.w.border;Z.h.total=Z.h.outer+Z.h.padding;Z.w.total=Z.w.outer+Z.w.padding;return Z}function n(Y,aa){var Z=parseInt(h.curCSS(Y,aa,true));if(isNaN(Z)){Z=0}return Z}function S(){var aa="";if(h.browser.opera){return true}else{if(h.browser.msie){var Z=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;var Y=false;if(h.browser.msie){Y=document.all[0].nodeType==8?Z.test(document.all[0].nodeValue):false}if(Y){aa=RegExp.$3}}else{aa=document.doctype.systemId}}return aa.toLowerCase().indexOf("strict")>-1}function g(Y){if(h.fn.nyroModal.settings.debug||w&&w.debug){nyroModalDebug(Y,o,w||{})}}function z(Y,Z,aa){Y.bg.css({opacity:0}).fadeTo(500,0.75,aa)}function a(Y,Z,aa){Y.bg.fadeOut(300,aa)}function f(Y,Z,aa){Y.loading.css({marginTop:Z.marginTopLoading+"px",marginLeft:Z.marginLeftLoading+"px",opacity:0}).show().animate({opacity:1},{complete:aa,duration:400})}function I(Y,Z,aa){aa()}function v(Y,Z,aa){Y.loading.css({marginTop:Z.marginTopLoading+"px",marginLeft:Z.marginLeftLoading+"px"}).show().animate({width:Z.width+"px",height:Z.height+"px",marginTop:Z.marginTop+"px",marginLeft:Z.marginLeft+"px"},{duration:350,complete:function(){Y.contentWrapper.css({width:Z.width+"px",height:Z.height+"px",marginTop:Z.marginTop+"px",marginLeft:Z.marginLeft+"px"}).show();Y.loading.fadeOut(200,aa)}})}function e(Y,Z,aa){Y.contentWrapper.animate({height:"50px",width:"50px",marginTop:(-(25+Z.borderH)/2+Z.marginScrollTop)+"px",marginLeft:(-(25+Z.borderW)/2+Z.marginScrollLeft)+"px"},{duration:350,complete:function(){Y.contentWrapper.hide();aa()}})}function B(Y,Z,aa){Y.loading.css({marginTop:Y.contentWrapper.css("marginTop"),marginLeft:Y.contentWrapper.css("marginLeft"),height:Y.contentWrapper.css("height"),width:Y.contentWrapper.css("width"),opacity:0}).show().fadeTo(400,1,function(){Y.contentWrapper.hide();aa()})}function i(Y,Z,aa){Y.contentWrapper.hide().css({width:Z.width+"px",marginLeft:Z.marginLeft+"px",height:Z.height+"px",marginTop:Z.marginTop+"px",opacity:1});Y.loading.animate({width:Z.width+"px",marginLeft:Z.marginLeft+"px",height:Z.height+"px",marginTop:Z.marginTop+"px"},{complete:function(){Y.contentWrapper.show();Y.loading.fadeOut(400,function(){Y.loading.hide();aa()})},duration:350})}function d(Y,Z,aa){Y.contentWrapper.animate({width:Z.width+"px",marginLeft:Z.marginLeft+"px",height:Z.height+"px",marginTop:Z.marginTop+"px"},{complete:aa,duration:400})}function E(Y,Z,aa){if(!h.fx.step.backgroundColor){Y.bg.css({backgroundColor:Z.bgColor});aa()}else{Y.bg.animate({backgroundColor:Z.bgColor},{complete:aa,duration:400})}}h(h.fn.nyroModal.settings.openSelector).nyroModal()});function nyroModalDebug(a,b,c){console.log(a);if(b.full){b.bg.prepend(a+"<br />")}};(function(e,d,f){e.fn.jScrollPane=function(a){function b(aS,bb){var bT,bd=this,a9,bz,bK,aM,bg,aN,bA,bG,aX,bm,a2,bN,bl,bM,bO,bC,bh,s,a8,bI,bs,a1,aP,bB,bj,bQ,bv,bV,aU,aZ,bW,bU,bo,aL=true,aQ=true,aV=false,bP=false,a0=aS.clone(false,false).empty(),aO=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";bW=aS.css("paddingTop")+" "+aS.css("paddingRight")+" "+aS.css("paddingBottom")+" "+aS.css("paddingLeft");bU=(parseInt(aS.css("paddingLeft"),10)||0)+(parseInt(aS.css("paddingRight"),10)||0);function ar(g){var k,m,l,i,h,o,n=false,j=false;bT=g;if(a9===f){h=aS.scrollTop();o=aS.scrollLeft();aS.css({overflow:"hidden",padding:0});bz=aS.innerWidth()+bU;bK=aS.innerHeight();aS.width(bz);a9=e('<div class="jspPane" />').css("padding",bW).append(aS.children());aM=e('<div class="jspContainer" />').css({width:bz+"px",height:bK+"px"}).append(a9).appendTo(aS)}else{aS.css("width","");n=bT.stickToBottom&&bn();j=bT.stickToRight&&bt();i=aS.innerWidth()+bU!=bz||aS.outerHeight()!=bK;if(i){bz=aS.innerWidth()+bU;bK=aS.innerHeight();aM.css({width:bz+"px",height:bK+"px"})}if(!i&&bo==bg&&a9.outerHeight()==aN){aS.width(bz);return}bo=bg;a9.css("width","");aS.width(bz);aM.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}a9.css("overflow","auto");if(g.contentWidth){bg=g.contentWidth}else{bg=a9[0].scrollWidth}aN=a9[0].scrollHeight;a9.css("overflow","");bA=bg/bz;bG=aN/bK;aX=bG>1;bm=bA>1;if(!(bm||aX)){aS.removeClass("jspScrollable");a9.css({top:0,width:aM.width()-bU});bS();bw();be();by();a3()}else{aS.addClass("jspScrollable");k=bT.maintainPosition&&(bl||bC);if(k){m=aY();l=bX()}bc();br();bx();if(k){bq(j?(bg-bz):m,false);bp(n?(aN-bK):l,false)}aR();aK();ba();if(bT.enableKeyboardNavigation){bf()}if(bT.clickOnTrack){aW()}bu();if(bT.hijackInternalLinks){bR()}}if(bT.autoReinitialise&&!aZ){aZ=setInterval(function(){ar(bT)},bT.autoReinitialiseDelay)}else{if(!bT.autoReinitialise&&aZ){clearInterval(aZ)}}h&&aS.scrollTop(0)&&bp(h,false);o&&aS.scrollLeft(0)&&bq(o,false);aS.trigger("jsp-initialised",[bm||aX])}function bc(){if(aX){aM.append(e('<div class="jspVerticalBar" />').append(e('<div class="jspCap jspCapTop" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragTop" />'),e('<div class="jspDragBottom" />'))),e('<div class="jspCap jspCapBottom" />')));bh=aM.find(">.jspVerticalBar");s=bh.find(">.jspTrack");a2=s.find(">.jspDrag");if(bT.showArrows){a1=e('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",bY(0,-1)).bind("click.jsp",aT);aP=e('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",bY(0,1)).bind("click.jsp",aT);if(bT.arrowScrollOnHover){a1.bind("mouseover.jsp",bY(0,-1,a1));aP.bind("mouseover.jsp",bY(0,1,aP))}a4(s,bT.verticalArrowPositions,a1,aP)}bI=bK;aM.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){bI-=e(this).outerHeight()});a2.hover(function(){a2.addClass("jspHover")},function(){a2.removeClass("jspHover")}).bind("mousedown.jsp",function(g){e("html").bind("dragstart.jsp selectstart.jsp",aT);a2.addClass("jspActive");var h=g.pageY-a2.position().top;e("html").bind("mousemove.jsp",function(i){bi(i.pageY-h,false)}).bind("mouseup.jsp mouseleave.jsp",bZ);return false});bE()}}function bE(){s.height(bI+"px");bl=0;a8=bT.verticalGutter+s.outerWidth();a9.width(bz-a8-bU);try{if(bh.position().left===0){a9.css("margin-left",a8+"px")}}catch(g){}}function br(){if(bm){aM.append(e('<div class="jspHorizontalBar" />').append(e('<div class="jspCap jspCapLeft" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragLeft" />'),e('<div class="jspDragRight" />'))),e('<div class="jspCap jspCapRight" />')));bB=aM.find(">.jspHorizontalBar");bj=bB.find(">.jspTrack");bM=bj.find(">.jspDrag");if(bT.showArrows){bV=e('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",bY(-1,0)).bind("click.jsp",aT);aU=e('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",bY(1,0)).bind("click.jsp",aT);if(bT.arrowScrollOnHover){bV.bind("mouseover.jsp",bY(-1,0,bV));aU.bind("mouseover.jsp",bY(1,0,aU))}a4(bj,bT.horizontalArrowPositions,bV,aU)}bM.hover(function(){bM.addClass("jspHover")},function(){bM.removeClass("jspHover")}).bind("mousedown.jsp",function(g){e("html").bind("dragstart.jsp selectstart.jsp",aT);bM.addClass("jspActive");var h=g.pageX-bM.position().left;e("html").bind("mousemove.jsp",function(i){a7(i.pageX-h,false)}).bind("mouseup.jsp mouseleave.jsp",bZ);return false});bQ=aM.innerWidth();bF()}}function bF(){aM.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){bQ-=e(this).outerWidth()});bj.width(bQ+"px");bC=0}function bx(){if(bm&&aX){var g=bj.outerHeight(),h=s.outerWidth();bI-=g;e(bB).find(">.jspCap:visible,>.jspArrow").each(function(){bQ+=e(this).outerWidth()});bQ-=h;bK-=h;bz-=g;bj.parent().append(e('<div class="jspCorner" />').css("width",g+"px"));bE();bF()}if(bm){a9.width((aM.outerWidth()-bU)+"px")}aN=a9.outerHeight();bG=aN/bK;if(bm){bv=Math.ceil(1/bA*bQ);if(bv>bT.horizontalDragMaxWidth){bv=bT.horizontalDragMaxWidth}else{if(bv<bT.horizontalDragMinWidth){bv=bT.horizontalDragMinWidth}}bM.width(bv+"px");bO=bQ-bv;a6(bC)}if(aX){bs=Math.ceil(1/bG*bI);if(bs>bT.verticalDragMaxHeight){bs=bT.verticalDragMaxHeight}else{if(bs<bT.verticalDragMinHeight){bs=bT.verticalDragMinHeight}}a2.height(bs+"px");bN=bI-bs;bD(bl)}}function a4(h,j,g,k){var l="before",i="after",m;if(j=="os"){j=/Mac/.test(navigator.platform)?"after":"split"}if(j==l){i=j}else{if(j==i){l=j;m=g;g=k;k=m}}h[l](g)[i](k)}function bY(h,g,i){return function(){bk(h,g,this,i);this.blur();return false}}function bk(j,i,n,m){n=e(n).addClass("jspActive");var k,h,g=true,l=function(){if(j!==0){bd.scrollByX(j*bT.arrowButtonSpeed)}if(i!==0){bd.scrollByY(i*bT.arrowButtonSpeed)}h=setTimeout(l,g?bT.initialDelay:bT.arrowRepeatFreq);g=false};l();k=m?"mouseout.jsp":"mouseup.jsp";m=m||e("html");m.bind(k,function(){n.removeClass("jspActive");h&&clearTimeout(h);h=null;m.unbind(k)})}function aW(){by();if(aX){s.bind("mousedown.jsp",function(m){if(m.originalTarget===f||m.originalTarget==m.currentTarget){var j=e(this),n=j.offset(),k=m.pageY-n.top-bl,h,g=true,l=function(){var q=j.offset(),r=m.pageY-q.top-bs/2,o=bK*bT.scrollPagePercent,p=bN*o/(aN-bK);if(k<0){if(bl-p>r){bd.scrollByY(-o)}else{bi(r)}}else{if(k>0){if(bl+p<r){bd.scrollByY(o)}else{bi(r)}}else{i();return}}h=setTimeout(l,g?bT.initialDelay:bT.trackClickRepeatFreq);g=false},i=function(){h&&clearTimeout(h);h=null;e(document).unbind("mouseup.jsp",i)};l();e(document).bind("mouseup.jsp",i);return false}})}if(bm){bj.bind("mousedown.jsp",function(m){if(m.originalTarget===f||m.originalTarget==m.currentTarget){var j=e(this),n=j.offset(),k=m.pageX-n.left-bC,h,g=true,l=function(){var q=j.offset(),r=m.pageX-q.left-bv/2,o=bz*bT.scrollPagePercent,p=bO*o/(bg-bz);if(k<0){if(bC-p>r){bd.scrollByX(-o)}else{a7(r)}}else{if(k>0){if(bC+p<r){bd.scrollByX(o)}else{a7(r)}}else{i();return}}h=setTimeout(l,g?bT.initialDelay:bT.trackClickRepeatFreq);g=false},i=function(){h&&clearTimeout(h);h=null;e(document).unbind("mouseup.jsp",i)};l();e(document).bind("mouseup.jsp",i);return false}})}}function by(){if(bj){bj.unbind("mousedown.jsp")}if(s){s.unbind("mousedown.jsp")}}function bZ(){e("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(a2){a2.removeClass("jspActive")}if(bM){bM.removeClass("jspActive")}}function bi(h,g){if(!aX){return}if(h<0){h=0}else{if(h>bN){h=bN}}if(g===f){g=bT.animateScroll}if(g){bd.animate(a2,"top",h,bD)}else{a2.css("top",h);bD(h)}}function bD(j){if(j===f){j=a2.position().top}aM.scrollTop(0);bl=j;var i=bl===0,k=bl==bN,g=j/bN,h=-g*(aN-bK);if(aL!=i||aV!=k){aL=i;aV=k;aS.trigger("jsp-arrow-change",[aL,aV,aQ,bP])}bJ(i,k);a9.css("top",h);aS.trigger("jsp-scroll-y",[-h,i,k]).trigger("scroll")}function a7(g,h){if(!bm){return}if(g<0){g=0}else{if(g>bO){g=bO}}if(h===f){h=bT.animateScroll}if(h){bd.animate(bM,"left",g,a6)}else{bM.css("left",g);a6(g)}}function a6(j){if(j===f){j=bM.position().left}aM.scrollTop(0);bC=j;var i=bC===0,g=bC==bO,k=j/bO,h=-k*(bg-bz);if(aQ!=i||bP!=g){aQ=i;bP=g;aS.trigger("jsp-arrow-change",[aL,aV,aQ,bP])}bH(i,g);a9.css("left",h);aS.trigger("jsp-scroll-x",[-h,i,g]).trigger("scroll")}function bJ(g,h){if(bT.showArrows){a1[g?"addClass":"removeClass"]("jspDisabled");aP[h?"addClass":"removeClass"]("jspDisabled")}}function bH(g,h){if(bT.showArrows){bV[g?"addClass":"removeClass"]("jspDisabled");aU[h?"addClass":"removeClass"]("jspDisabled")}}function bp(g,h){var i=g/(aN-bK);bi(i*bN,h)}function bq(h,g){var i=h/(bg-bz);a7(i*bO,g)}function a5(j,v,g){var i,l,o,k=0,u=0,t,q,n,m,h,p;try{i=e(j)}catch(r){return}l=i.outerHeight();o=i.outerWidth();aM.scrollTop(0);aM.scrollLeft(0);while(!i.is(".jspPane")){k+=i.position().top;u+=i.position().left;i=i.offsetParent();if(/^body|html$/i.test(i[0].nodeName)){return}}t=bX();n=t+bK;if(k<t||v){h=k-bT.verticalGutter}else{if(k+l>n){h=k-bK+l+bT.verticalGutter}}if(h){bp(h,g)}q=aY();m=q+bz;if(u<q||v){p=u-bT.horizontalGutter}else{if(u+o>m){p=u-bz+o+bT.horizontalGutter}}if(p){bq(p,g)}}function aY(){return -a9.position().left}function bX(){return -a9.position().top}function bn(){var g=aN-bK;return(g>20)&&(g-bX()<10)}function bt(){var g=bg-bz;return(g>20)&&(g-aY()<10)}function aK(){aM.unbind(aO).bind(aO,function(j,k,i,g){var h=bC,l=bl;bd.scrollBy(i*bT.mouseWheelSpeed,-g*bT.mouseWheelSpeed,false);return h==bC&&l==bl})}function bS(){aM.unbind(aO)}function aT(){return false}function aR(){a9.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(g){a5(g.target,false)})}function bw(){a9.find(":input,a").unbind("focus.jsp")}function bf(){var h,i,g=[];bm&&g.push(bB[0]);aX&&g.push(bh[0]);a9.focus(function(){aS.focus()});aS.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(l){if(l.target!==this&&!(g.length&&e(l.target).closest(g).length)){return}var m=bC,k=bl;switch(l.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:h=l.keyCode;j();break;case 35:bp(aN-bK);h=null;break;case 36:bp(0);h=null;break}i=l.keyCode==h&&m!=bC||k!=bl;return !i}).bind("keypress.jsp",function(k){if(k.keyCode==h){j()}return !i});if(bT.hideFocus){aS.css("outline","none");if("hideFocus" in aM[0]){aS.attr("hideFocus",true)}}else{aS.css("outline","");if("hideFocus" in aM[0]){aS.attr("hideFocus",false)}}function j(){var l=bC,k=bl;switch(h){case 40:bd.scrollByY(bT.keyboardSpeed,false);break;case 38:bd.scrollByY(-bT.keyboardSpeed,false);break;case 34:case 32:bd.scrollByY(bK*bT.scrollPagePercent,false);break;case 33:bd.scrollByY(-bK*bT.scrollPagePercent,false);break;case 39:bd.scrollByX(bT.keyboardSpeed,false);break;case 37:bd.scrollByX(-bT.keyboardSpeed,false);break}i=l!=bC||k!=bl;return i}}function be(){aS.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bu(){if(location.hash&&location.hash.length>1){var i,h;try{i=e(location.hash)}catch(g){return}if(i.length&&a9.find(location.hash)){if(aM.scrollTop()===0){h=setInterval(function(){if(aM.scrollTop()>0){a5(location.hash,true);e(document).scrollTop(aM.position().top);clearInterval(h)}},50)}else{a5(location.hash,true);e(document).scrollTop(aM.position().top)}}}}function a3(){e("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function bR(){a3();e("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var h=this.href.split("#"),g;if(h.length>1){g=h[1];if(g.length>0&&a9.find("#"+g).length>0){a5("#"+g,true);return false}}})}function ba(){var h,g,j,i,k,l=false;aM.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(m){var n=m.originalEvent.touches[0];h=aY();g=bX();j=n.pageX;i=n.pageY;k=false;l=true}).bind("touchmove.jsp",function(n){if(!l){return}var m=n.originalEvent.touches[0],p=bC,o=bl;bd.scrollTo(h+j-m.pageX,g+i-m.pageY);k=k||Math.abs(j-m.pageX)>5||Math.abs(i-m.pageY)>5;return p==bC&&o==bl}).bind("touchend.jsp",function(m){l=false}).bind("click.jsp-touchclick",function(m){if(k){k=false;return false}})}function bL(){var h=bX(),g=aY();aS.removeClass("jspScrollable").unbind(".jsp");aS.replaceWith(a0.append(a9.children()));a0.scrollTop(h);a0.scrollLeft(g)}e.extend(bd,{reinitialise:function(g){g=e.extend({},bT,g);ar(g)},scrollToElement:function(i,h,g){a5(i,h,g)},scrollTo:function(i,g,h){bq(i,h);bp(g,h)},scrollToX:function(g,h){bq(g,h)},scrollToY:function(h,g){bp(h,g)},scrollToPercentX:function(g,h){bq(g*(bg-bz),h)},scrollToPercentY:function(g,h){bp(g*(aN-bK),h)},scrollBy:function(h,g,i){bd.scrollByX(h,i);bd.scrollByY(g,i)},scrollByX:function(h,j){var i=aY()+h,g=i/(bg-bz);a7(g*bO,j)},scrollByY:function(h,j){var i=bX()+h,g=i/(aN-bK);bi(g*bN,j)},positionDragX:function(h,g){a7(h,g)},positionDragY:function(g,h){bi(g,h)},animate:function(j,i,h,g){var k={};k[i]=h;j.animate(k,{duration:bT.animateDuration,ease:bT.animateEase,queue:false,step:g})},getContentPositionX:function(){return aY()},getContentPositionY:function(){return bX()},getContentWidth:function(){return bg},getContentHeight:function(){return aN},getPercentScrolledX:function(){return aY()/(bg-bz)},getPercentScrolledY:function(){return bX()/(aN-bK)},getIsScrollableH:function(){return bm},getIsScrollableV:function(){return aX},getContentPane:function(){return a9},scrollToBottom:function(g){bi(bN,g)},hijackInternalLinks:function(){bR()},destroy:function(){bL()}});ar(bb)}a=e.extend({},e.fn.jScrollPane.defaults,a);e.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){a[this]=a[this]||a.speed});var c;this.each(function(){var i=e(this),j=i.data("jsp");if(j){j.reinitialise(a)}else{j=new b(i,a);i.data("jsp",j)}c=c?c.add(i):i});return c};e.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:f,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(c){var b={},d=this;a.each(c.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(i,g){var c=this[0];if(i){var b=a.data(c.form,"validator").settings;var d=b.rules;var e=a.validator.staticRules(c);switch(i){case"add":a.extend(e,a.validator.normalizeRule(g));d[c.name]=e;if(g.messages){b.messages[c.name]=a.extend(b.messages[c.name],g.messages)}break;case"remove":if(!g){delete d[c.name];return e}var h={};a.each(g.split(/\s/),function(l,k){h[k]=e[k];delete e[k]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(c),a.validator.classRules(c),a.validator.attributeRules(c),a.validator.staticRules(c)),c);if(f.required){var j=f.required;delete f.required;f=a.extend({required:j},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(e,d){b=b.replace(new RegExp("\\{"+e+"\\}","g"),d)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.errorsFor(b).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(b,c,d){a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var d=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){d[g]=e})});var b=this.settings.rules;a.each(b,function(e,f){b[e]=a.validator.normalizeRule(f)});function c(e){var g=a.data(this[0].form,"validator"),f="on"+e.type.replace(/^validate/,"");g.settings[f]&&g.settings[f].call(g,this[0])}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var c=0,b=(this.currentElements=this.elements());b[c];c++){this.check(b[c])}return this.valid()},element:function(b){b=this.clean(b);this.lastElement=b;this.prepareElement(b);this.currentElements=a(b);var c=this.check(b);if(c){delete this.invalid[b.name]}else{this.invalid[b.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return c},showErrors:function(b){if(b){a.extend(this.errorMap,b);this.errorList=[];for(var c in b){this.errorList.push({message:b[c],element:this.findByName(c)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(c){var b=0;for(var d in c){b++}return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name)[0]}var f=a(c).rules();var b=false;for(method in f){var d={method:method,parameters:f[method]};try{var g=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,d.parameters);if(g=="dependency-mismatch"){b=true;continue}b=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!g){this.formatAndAdd(c,d);return false}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+d.method+"' method",h);throw h}}if(b){return}if(this.objectLength(f)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(d,b){var c=this.settings.messages[d];return c&&(c.constructor==String?c:c[b])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(e,d){var c=this.defaultMessage(e,d.method),b=/\$?\{(\d+)\}/g;if(typeof c=="function"){c=c.call(this,d.parameters,e)}else{if(b.test(c)){c=jQuery.format(c.replace(b,"{$1}"),d.parameters)}}this.errorList.push({message:c,element:e});this.errorMap[e.name]=c;this.submitted[e.name]=c},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,d){var c=this.errorsFor(b);if(c.length){c.removeClass().addClass(this.settings.errorClass);c.attr("generated")&&c.html(d)}else{c=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(b),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){c=c.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(c).length){this.settings.errorPlacement?this.settings.errorPlacement(c,a(b)):c.insertAfter(b)}}if(!d&&this.settings.success){c.text("");typeof this.settings.success=="string"?c.addClass(this.settings.success):this.settings.success(c)}this.toShow=this.toShow.add(c)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(e,d){return d.form==c&&d.name==b&&d||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(d){var b={};var c=a(d).attr("class");c&&a.each(c.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(b,a.validator.classRuleSettings[this])}});return b},attributeRules:function(d){var b={};var e=a(d);for(method in a.validator.methods){var c=e.attr(method);if(c){b[method]=c}}if(b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)){delete b.maxlength}return b},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var b={};var d=a.data(c.form,"validator");if(d.settings.rules){b=a.validator.normalizeRule(d.settings.rules[c.name])||{}}return b},normalizeRules:function(c,b){a.each(c,function(e,f){if(f===false){delete c[e];return}if(f.param||f.depends){var d=true;switch(typeof f.depends){case"string":d=!!a(f.depends,b.form).length;break;case"function":d=f.depends.call(b,b);break}if(d){c[e]=f.param!==undefined?f.param:true}else{delete c[e]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(b){if(typeof b=="string"){var c={};a.each(b.split(/\s/),function(){c[this]=true});b=c}return b},addMethod:function(d,c,b){a.validator.methods[d]=c;a.validator.messages[d]=b!=undefined?b:a.validator.messages[d];if(c.length<3){a.validator.addClassRules(d,a.validator.normalizeRule(d))}},methods:{required:function(b,d,c){if(!this.depend(c,d)){return"dependency-mismatch"}switch(d.nodeName.toLowerCase()){case"select":var e=a(d).val();return e&&e.length>0;case"input":if(this.checkable(d)){return this.getLength(b,d)>0}default:return a.trim(b).length>0}},remote:function(b,c,g){if(this.optional(c)){return"dependency-mismatch"}var e=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}e.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=e.message;g=typeof g=="string"&&{url:g}||g;if(e.old!==b){e.old=b;var d=this;this.startRequest(c);var f={};f[c.name]=b;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,success:function(k){d.settings.messages[c.name].remote=e.originalMessage;var j=k===true;if(j){var l=d.formSubmitted;d.prepareElement(c);d.formSubmitted=l;d.successList.push(c);d.showErrors()}else{var h={};var i=(e.message=k||d.defaultMessage(c,"remote"));h[c.name]=a.isFunction(i)?i(b):i;d.showErrors(h)}e.valid=j;d.stopRequest(c,j)}},g));return"pending"}else{if(this.pending[c.name]){return"pending"}}return e.valid},minlength:function(b,d,c){return this.optional(d)||this.getLength(a.trim(b),d)>=c},maxlength:function(b,d,c){return this.optional(d)||this.getLength(a.trim(b),d)<=c},rangelength:function(b,d,c){var e=this.getLength(a.trim(b),d);return this.optional(d)||(e>=c[0]&&e<=c[1])},min:function(b,d,c){return this.optional(d)||b>=c},max:function(b,d,c){return this.optional(d)||b<=c},range:function(b,d,c){return this.optional(d)||(b>=c[0]&&b<=c[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(b,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(b)){return false}var g=0,d=0,f=false;b=b.replace(/\D/g,"");for(var e=b.length-1;e>=0;e--){var h=b.charAt(e);var d=parseInt(h,10);if(f){if((d*=2)>9){d-=9}}g+=d;f=!f}return(g%10)==0},accept:function(b,d,c){c=typeof c=="string"?c.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(d)||b.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,d,c){var e=a(c).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(d).valid()});return b==e.val()}}});a.format=a.validator.format})(jQuery);(function(c){var b=c.ajax;var a={};c.ajax=function(d){d=c.extend(d,c.extend({},c.ajaxSettings,d));var e=d.port;if(d.mode=="abort"){if(a[e]){a[e].abort()}return(a[e]=b.apply(this,arguments))}return b.apply(this,arguments)}})(jQuery);(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(c,d){a.event.special[d]={setup:function(){this.addEventListener(c,b,true)},teardown:function(){this.removeEventListener(c,b,true)},handler:function(f){arguments[0]=a.event.fix(f);arguments[0].type=d;return a.event.handle.apply(this,arguments)}};function b(f){f=a.event.fix(f);f.type=d;return a.event.handle.call(this,f)}})}a.extend(a.fn,{validateDelegate:function(c,d,b){return this.bind(d,function(e){var f=a(e.target);if(f.is(c)){return b.apply(f,arguments)}})}})})(jQuery);/*
 * jQuery UI 1.8.16
 *
 * 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(e,b){function d(c,f){var g=c.nodeName.toLowerCase();if("area"===g){f=c.parentNode;g=f.name;if(!c.href||!g||f.nodeName.toLowerCase()!=="map"){return false}c=e("img[usemap=#"+g+"]")[0];return !!c&&a(c)}return(/input|select|textarea|button|object/.test(g)?!c.disabled:"a"==g?c.href||f:f)&&a(c)}function a(c){return !e(c).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};if(!e.ui.version){e.extend(e.ui,{version:"1.8.16",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}});e.fn.extend({propAttr:e.fn.prop||e.fn.attr,_focus:e.fn.focus,focus:function(c,f){return typeof c==="number"?this.each(function(){var g=this;setTimeout(function(){e(g).focus();f&&f.call(g)},c)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?e(document):c},zIndex:function(c){if(c!==b){return this.css("zIndex",c)}if(this.length){c=e(this[0]);for(var f;c.length&&c[0]!==document;){f=c.css("position");if(f==="absolute"||f==="relative"||f==="fixed"){f=parseInt(c.css("zIndex"),10);if(!isNaN(f)&&f!==0){return f}}c=c.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.each(["Width","Height"],function(g,j){function k(h,i,o,p){e.each(l,function(){i-=parseFloat(e.curCSS(h,"padding"+this,true))||0;if(o){i-=parseFloat(e.curCSS(h,"border"+this+"Width",true))||0}if(p){i-=parseFloat(e.curCSS(h,"margin"+this,true))||0}});return i}var l=j==="Width"?["Left","Right"]:["Top","Bottom"],c=j.toLowerCase(),f={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+j]=function(h){if(h===b){return f["inner"+j].call(this)}return this.each(function(){e(this).css(c,k(this,h)+"px")})};e.fn["outer"+j]=function(i,h){if(typeof i!=="number"){return f["outer"+j].call(this,i)}return this.each(function(){e(this).css(c,k(this,i,true,h)+"px")})}});e.extend(e.expr[":"],{data:function(c,f,g){return !!e.data(c,g[3])},focusable:function(c){return d(c,!isNaN(e.attr(c,"tabindex")))},tabbable:function(c){var f=e.attr(c,"tabindex"),g=isNaN(f);return(g||f>=0)&&d(c,!g)}});e(function(){var c=document.body,f=c.appendChild(f=document.createElement("div"));e.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=f.offsetHeight===100;e.support.selectstart="onselectstart" in f;c.removeChild(f).style.display="none"});e.extend(e.ui,{plugin:{add:function(c,f,g){c=e.ui[c].prototype;for(var h in g){c.plugins[h]=c.plugins[h]||[];c.plugins[h].push([f,g[h]])}},call:function(c,f,g){if((f=c.plugins[f])&&c.element[0].parentNode){for(var h=0;h<f.length;h++){c.options[f[h][0]]&&f[h][1].apply(c.element,g)}}}},contains:function(c,f){return document.compareDocumentPosition?c.compareDocumentPosition(f)&16:c!==f&&c.contains(f)},hasScroll:function(c,f){if(e(c).css("overflow")==="hidden"){return false}f=f&&f==="left"?"scrollLeft":"scrollTop";var g=false;if(c[f]>0){return true}c[f]=1;g=c[f]>0;c[f]=0;return g},isOverAxis:function(c,f,g){return c>f&&c<f+g},isOver:function(g,j,k,l,c,f){return e.ui.isOverAxis(g,k,c)&&e.ui.isOverAxis(j,l,f)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.16
 *
 * 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/Widget
 */
(function(d,c){if(d.cleanData){var a=d.cleanData;d.cleanData=function(b){for(var f=0,g;(g=b[f])!=null;f++){try{d(g).triggerHandler("remove")}catch(h){}}a(b)}}else{var e=d.fn.remove;d.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||d.filter(b,[this]).length){d("*",this).add([this]).each(function(){try{d(this).triggerHandler("remove")}catch(g){}})}}return e.call(d(this),b,f)})}}d.widget=function(g,h,i){var j=g.split(".")[0],b;g=g.split(".")[1];b=j+"-"+g;if(!i){i=h;h=d.Widget}d.expr[":"][b]=function(f){return !!d.data(f,g)};d[j]=d[j]||{};d[j][g]=function(f,k){arguments.length&&this._createWidget(f,k)};h=new h;h.options=d.extend(true,{},h.options);d[j][g].prototype=d.extend(true,h,{namespace:j,widgetName:g,widgetEventPrefix:d[j][g].prototype.widgetEventPrefix||g,widgetBaseClass:b},i);d.widget.bridge(g,d[j][g])};d.widget.bridge=function(b,f){d.fn[b]=function(j){var k=typeof j==="string",g=Array.prototype.slice.call(arguments,1),i=this;j=!k&&g.length?d.extend.apply(null,[true,j].concat(g)):j;if(k&&j.charAt(0)==="_"){return i}k?this.each(function(){var h=d.data(this,b),l=h&&d.isFunction(h[j])?h[j].apply(h,g):h;if(l!==h&&l!==c){i=l;return false}}):this.each(function(){var h=d.data(this,b);h?h.option(j||{})._init():d.data(this,b,new f(j,this))});return i}};d.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,f){d.data(f,this.widgetName,this);this.element=d(f);this.options=d.extend(true,{},this.options,this._getCreateOptions(),b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return d.metadata&&d.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(b,f){var g=b;if(arguments.length===0){return d.extend({},this.options)}if(typeof b==="string"){if(f===c){return this.options[b]}g={};g[b]=f}this._setOptions(g);return this},_setOptions:function(b){var f=this;d.each(b,function(g,h){f._setOption(g,h)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(g,h,i){var j=this.options[g];h=d.Event(h);h.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();i=i||{};if(h.originalEvent){g=d.event.props.length;for(var b;g;){b=d.event.props[--g];h[b]=h.originalEvent[b]}}this.element.trigger(h,i);return !(d.isFunction(j)&&j.call(this.element[0],h,i)===false||h.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.16
 *
 * 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/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(c){var a=false;c(document).mouseup(function(){a=false});c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===c.data(d.target,b.widgetName+".preventClickEvent")){c.removeData(d.target,b.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(e){if(!a){this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var h=this,b=e.which==1,d=typeof this.options.cancel=="string"&&e.target.nodeName?c(e.target).closest(this.options.cancel).length:false;if(!b||d||!this._mouseCapture(e)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){h.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(e)!==false;if(!this._mouseStarted){e.preventDefault();return true}}true===c.data(e.target,this.widgetName+".preventClickEvent")&&c.removeData(e.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(f){return h._mouseMove(f)};this._mouseUpDelegate=function(f){return h._mouseUp(f)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();return a=true}},_mouseMove:function(b){if(c.browser.msie&&!(document.documentMode>=9)&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&c.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(e){e.ui=e.ui||{};var f=/left|center|right/,a=/top|center|bottom/,d=e.fn.position,b=e.fn.offset;e.fn.position=function(n){if(!n||!n.of){return d.apply(this,arguments)}n=e.extend({},n);var m=e(n.of),o=m[0],q=(n.collision||"flip").split(" "),p=n.offset?n.offset.split(" "):[0,0],c,l,i;if(o.nodeType===9){c=m.width();l=m.height();i={top:0,left:0}}else{if(o.setTimeout){c=m.width();l=m.height();i={top:m.scrollTop(),left:m.scrollLeft()}}else{if(o.preventDefault){n.at="left top";c=l=0;i={top:n.of.pageY,left:n.of.pageX}}else{c=m.outerWidth();l=m.outerHeight();i=m.offset()}}}e.each(["my","at"],function(){var g=(n[this]||"").split(" ");if(g.length===1){g=f.test(g[0])?g.concat(["center"]):a.test(g[0])?["center"].concat(g):["center","center"]}g[0]=f.test(g[0])?g[0]:"center";g[1]=a.test(g[1])?g[1]:"center";n[this]=g});if(q.length===1){q[1]=q[0]}p[0]=parseInt(p[0],10)||0;if(p.length===1){p[1]=p[0]}p[1]=parseInt(p[1],10)||0;if(n.at[0]==="right"){i.left+=c}else{if(n.at[0]==="center"){i.left+=c/2}}if(n.at[1]==="bottom"){i.top+=l}else{if(n.at[1]==="center"){i.top+=l/2}}i.left+=p[0];i.top+=p[1];return this.each(function(){var x=e(this),h=x.outerWidth(),j=x.outerHeight(),k=parseInt(e.curCSS(this,"marginLeft",true))||0,s=parseInt(e.curCSS(this,"marginTop",true))||0,y=h+k+(parseInt(e.curCSS(this,"marginRight",true))||0),z=j+s+(parseInt(e.curCSS(this,"marginBottom",true))||0),g=e.extend({},i),u;if(n.my[0]==="right"){g.left-=h}else{if(n.my[0]==="center"){g.left-=h/2}}if(n.my[1]==="bottom"){g.top-=j}else{if(n.my[1]==="center"){g.top-=j/2}}g.left=Math.round(g.left);g.top=Math.round(g.top);u={left:g.left-k,top:g.top-s};e.each(["left","top"],function(r,v){e.ui.position[q[r]]&&e.ui.position[q[r]][v](g,{targetWidth:c,targetHeight:l,elemWidth:h,elemHeight:j,collisionPosition:u,collisionWidth:y,collisionHeight:z,offset:p,my:n.my,at:n.at})});e.fn.bgiframe&&x.bgiframe();x.offset(e.extend(g,{using:n.using}))})};e.ui.position={fit:{left:function(g,c){var h=e(window);h=c.collisionPosition.left+c.collisionWidth-h.width()-h.scrollLeft();g.left=h>0?g.left-h:Math.max(g.left-c.collisionPosition.left,g.left)},top:function(g,c){var h=e(window);h=c.collisionPosition.top+c.collisionHeight-h.height()-h.scrollTop();g.top=h>0?g.top-h:Math.max(g.top-c.collisionPosition.top,g.top)}},flip:{left:function(j,i){if(i.at[0]!=="center"){var k=e(window);k=i.collisionPosition.left+i.collisionWidth-k.width()-k.scrollLeft();var m=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,l=i.at[0]==="left"?i.targetWidth:-i.targetWidth,c=-2*i.offset[0];j.left+=i.collisionPosition.left<0?m+l+c:k>0?m+l+c:0}},top:function(j,i){if(i.at[1]!=="center"){var k=e(window);k=i.collisionPosition.top+i.collisionHeight-k.height()-k.scrollTop();var m=i.my[1]==="top"?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,l=i.at[1]==="top"?i.targetHeight:-i.targetHeight,c=-2*i.offset[1];j.top+=i.collisionPosition.top<0?m+l+c:k>0?m+l+c:0}}}};if(!e.offset.setOffset){e.offset.setOffset=function(j,i){if(/static/.test(e.curCSS(j,"position"))){j.style.position="relative"}var k=e(j),m=k.offset(),l=parseInt(e.curCSS(j,"top",true),10)||0,c=parseInt(e.curCSS(j,"left",true),10)||0;m={top:i.top-m.top+l,left:i.left-m.left+c};"using" in i?i.using.call(j,m):k.css(m)};e.fn.offset=function(g){var c=this[0];if(!c||!c.ownerDocument){return null}if(g){return this.each(function(){e.offset.setOffset(this,g)})}return b.call(this)}}})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(c);if(!this.handle){return false}if(d.iframeFix){a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})}return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,c);return true},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(d){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,d)}if(this.dropped){e=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if(this.options.revert=="invalid"&&!e||this.options.revert=="valid"&&e||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",d)!==false&&f._clear()})}else{this._trigger("stop",d)!==false&&this._clear()}return false},_mouseUp:function(b){this.options.iframeFix===true&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true}});return d},_createHelper:function(c){var d=this.options;c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):d.helper=="clone"?this.element.clone().removeAttr("id"):this.element;c.parents("body").length||c.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent"){d.containment=this.helper[0].parentNode}if(d.containment=="document"||d.containment=="window"){this.containment=[d.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,d.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(d.containment=="document"?0:a(window).scrollLeft())+a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d.containment=="document"?0:a(window).scrollTop())+(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(d.containment)&&d.containment.constructor!=Array){d=a(d.containment);var e=d[0];if(e){d.offset();var f=a(e).css("overflow")!="hidden";this.containment=[(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(f?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=d}}else{if(d.containment.constructor==Array){this.containment=d.containment}}},_convertPositionTo:function(e,g){if(!g){g=this.position}e=e=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(h[0].tagName);return{top:g.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:h.scrollTop())*e),left:g.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:h.scrollLeft())*e)}},_generatePosition:function(i){var j=this.options,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(k[0].tagName),l=i.pageX,d=i.pageY;if(this.originalPosition){var n;if(this.containment){if(this.relative_container){n=this.relative_container.offset();n=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]}else{n=this.containment}if(i.pageX-this.offset.click.left<n[0]){l=n[0]+this.offset.click.left}if(i.pageY-this.offset.click.top<n[1]){d=n[1]+this.offset.click.top}if(i.pageX-this.offset.click.left>n[2]){l=n[2]+this.offset.click.left}if(i.pageY-this.offset.click.top>n[3]){d=n[3]+this.offset.click.top}}if(j.grid){d=j.grid[1]?this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1]:this.originalPageY;d=n?!(d-this.offset.click.top<n[1]||d-this.offset.click.top>n[3])?d:!(d-this.offset.click.top<n[1])?d-j.grid[1]:d+j.grid[1]:d;l=j.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/j.grid[0])*j.grid[0]:this.originalPageX;l=n?!(l-this.offset.click.left<n[0]||l-this.offset.click.left>n[2])?l:!(l-this.offset.click.left<n[0])?l-j.grid[0]:l+j.grid[0]:l}}return{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():m?0:k.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():m?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(d,e,f){f=f||this._uiHash();a.ui.plugin.call(this,d,[e,f]);if(d=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,d,e,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.16"});a.ui.plugin.add("draggable","connectToSortable",{start:function(g,h){var i=a(this).data("draggable"),d=i.options,j=a.extend({},h,{item:i.element});i.sortables=[];a(d.connectToSortable).each(function(){var b=a.data(this,"sortable");if(b&&!b.options.disabled){i.sortables.push({instance:b,shouldRevert:b.options.revert});b.refreshPositions();b._trigger("activate",g,j)}})},stop:function(e,g){var h=a(this).data("draggable"),d=a.extend({},g,{item:h.element});a.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(e);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",e,d)}})},drag:function(e,g){var h=a(this).data("draggable"),d=this;a.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=a(d).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,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",e);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(e)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",e);h.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),d=a(this).data("draggable").options;if(c.css("cursor")){d._cursor=c.css("cursor")}c.css("cursor",d.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){c=a(d.helper);d=a(this).data("draggable").options;if(c.css("opacity")){d._opacity=c.css("opacity")}c.css("opacity",d.opacity)},stop:function(c,d){c=a(this).data("draggable").options;c._opacity&&a(d.helper).css("opacity",c._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(e){var g=a(this).data("draggable"),h=g.options,d=false;if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(g.overflowOffset.top+g.scrollParent[0].offsetHeight-e.pageY<h.scrollSensitivity){g.scrollParent[0].scrollTop=d=g.scrollParent[0].scrollTop+h.scrollSpeed}else{if(e.pageY-g.overflowOffset.top<h.scrollSensitivity){g.scrollParent[0].scrollTop=d=g.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if(g.overflowOffset.left+g.scrollParent[0].offsetWidth-e.pageX<h.scrollSensitivity){g.scrollParent[0].scrollLeft=d=g.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(e.pageX-g.overflowOffset.left<h.scrollSensitivity){g.scrollParent[0].scrollLeft=d=g.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(e.pageY-a(document).scrollTop()<h.scrollSensitivity){d=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<h.scrollSensitivity){d=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(e.pageX-a(document).scrollLeft()<h.scrollSensitivity){d=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<h.scrollSensitivity){d=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}}d!==false&&a.ui.ddmanager&&!h.dropBehaviour&&a.ui.ddmanager.prepareOffsets(g,e)}});a.ui.plugin.add("draggable","snap",{start:function(){var c=a(this).data("draggable"),d=c.options;c.snapElements=[];a(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var e=a(this),b=e.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:b.top,left:b.left})})},drag:function(G,H){for(var I=a(this).data("draggable"),K=I.options,J=K.snapTolerance,y=H.offset.left,L=y+I.helperProportions.width,E=H.offset.top,F=E+I.helperProportions.height,z=I.snapElements.length-1;z>=0;z--){var A=I.snapElements[z].left,C=A+I.snapElements[z].width,B=I.snapElements[z].top,D=B+I.snapElements[z].height;if(A-J<y&&y<C+J&&B-J<E&&E<D+J||A-J<y&&y<C+J&&B-J<F&&F<D+J||A-J<L&&L<C+J&&B-J<E&&E<D+J||A-J<L&&L<C+J&&B-J<F&&F<D+J){if(K.snapMode!="inner"){var d=Math.abs(B-F)<=J,u=Math.abs(D-E)<=J,v=Math.abs(A-L)<=J,w=Math.abs(C-y)<=J;if(d){H.position.top=I._convertPositionTo("relative",{top:B-I.helperProportions.height,left:0}).top-I.margins.top}if(u){H.position.top=I._convertPositionTo("relative",{top:D,left:0}).top-I.margins.top}if(v){H.position.left=I._convertPositionTo("relative",{top:0,left:A-I.helperProportions.width}).left-I.margins.left}if(w){H.position.left=I._convertPositionTo("relative",{top:0,left:C}).left-I.margins.left}}var x=d||u||v||w;if(K.snapMode!="outer"){d=Math.abs(B-E)<=J;u=Math.abs(D-F)<=J;v=Math.abs(A-y)<=J;w=Math.abs(C-L)<=J;if(d){H.position.top=I._convertPositionTo("relative",{top:B,left:0}).top-I.margins.top}if(u){H.position.top=I._convertPositionTo("relative",{top:D-I.helperProportions.height,left:0}).top-I.margins.top}if(v){H.position.left=I._convertPositionTo("relative",{top:0,left:A}).left-I.margins.left}if(w){H.position.left=I._convertPositionTo("relative",{top:0,left:C-I.helperProportions.width}).left-I.margins.left}}if(!I.snapElements[z].snapping&&(d||u||v||w||x)){I.options.snap.snap&&I.options.snap.snap.call(I.element,G,a.extend(I._uiHash(),{snapItem:I.snapElements[z].item}))}I.snapElements[z].snapping=d||u||v||w||x}else{I.snapElements[z].snapping&&I.options.snap.release&&I.options.snap.release.call(I.element,G,a.extend(I._uiHash(),{snapItem:I.snapElements[z].item}));I.snapElements[z].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=a(this).data("draggable").options;c=a.makeArray(a(c.stack)).sort(function(e,b){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(c.length){var d=parseInt(c[0].style.zIndex)||0;a(c).each(function(b){this.style.zIndex=d+b});this[0].style.zIndex=d+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){c=a(d.helper);d=a(this).data("draggable").options;if(c.css("zIndex")){d._zIndex=c.css("zIndex")}c.css("zIndex",d.zIndex)},stop:function(c,d){c=a(this).data("draggable").options;c._zIndex&&a(d.helper).css("zIndex",c._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,d=c.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(d)?d:function(b){return b.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[];a.ui.ddmanager.droppables[c.scope].push(this);c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],d=0;d<c.length;d++){c[d]==this&&c.splice(d,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept"){this.accept=a.isFunction(d)?d:function(b){return b.is(d)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var d=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);d&&this._trigger("activate",c,this.ui(d))},_deactivate:function(c){var d=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",c,this.ui(d))},_over:function(c){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0])){if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",c,this.ui(d))}}},_out:function(c){var d=a.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0])){if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(d))}}},_drop:function(d,f){var g=f||a.ui.ddmanager.current;if(!g||(g.currentItem||g.element)[0]==this.element[0]){return false}var h=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==g.options.scope&&b.accept.call(b.element[0],g.currentItem||g.element)&&a.ui.intersect(g,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){h=true;return false}});if(h){return false}if(this.accept.call(this.element[0],g.currentItem||g.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",d,this.ui(g));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.16"});a.ui.intersect=function(q,r,s){if(!r.offset){return false}var u=(q.positionAbs||q.position.absolute).left,w=u+q.helperProportions.width,v=(q.positionAbs||q.position.absolute).top,d=v+q.helperProportions.height,m=r.offset.left,o=m+r.proportions.width,n=r.offset.top,p=n+r.proportions.height;switch(s){case"fit":return m<=u&&w<=o&&n<=v&&d<=p;case"intersect":return m<u+q.helperProportions.width/2&&w-q.helperProportions.width/2<o&&n<v+q.helperProportions.height/2&&d-q.helperProportions.height/2<p;case"pointer":return a.ui.isOver((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top,(q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left,n,m,r.proportions.height,r.proportions.width);case"touch":return(v>=n&&v<=p||d>=n&&d<=p||v<n&&d>p)&&(u>=m&&u<=o||w>=m&&w<=o||u<m&&w>o);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(i,j){var k=a.ui.ddmanager.droppables[i.options.scope]||[],l=j?j.type:null,n=(i.currentItem||i.element).find(":data(droppable)").andSelf(),m=0;i:for(;m<k.length;m++){if(!(k[m].options.disabled||i&&!k[m].accept.call(k[m].element[0],i.currentItem||i.element))){for(var d=0;d<n.length;d++){if(n[d]==k[m].element[0]){k[m].proportions.height=0;continue i}}k[m].visible=k[m].element.css("display")!="none";if(k[m].visible){l=="mousedown"&&k[m]._activate.call(k[m],j);k[m].offset=k[m].element.offset();k[m].proportions={width:k[m].element[0].offsetWidth,height:k[m].element[0].offsetHeight}}}}},drop:function(d,e){var f=false;a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(d,this,this.options.tolerance)){f=f||this._drop.call(this,e)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)){this.isout=1;this.isover=0;this._deactivate.call(this,e)}}});return f},dragStart:function(c,d){c.element.parents(":not(body,html)").bind("scroll.droppable",function(){c.options.refreshPositions||a.ui.ddmanager.prepareOffsets(c,d)})},drag:function(c,d){c.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(c,d);a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var f=a.ui.intersect(c,this,this.options.tolerance);if(f=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null){var h;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){h=a.data(b[0],"droppable");h.greedyChild=f=="isover"?1:0}}if(h&&f=="isover"){h.isover=0;h.isout=1;h._out.call(h,d)}this[f]=1;this[f=="isout"?"isover":"isout"]=0;this[f=="isover"?"_over":"_out"].call(this,d);if(h&&f=="isout"){h.isout=0;h.isover=1;h._over.call(h,d)}}}})},dragStop:function(c,d){c.element.parents(":not(body,html)").unbind("scroll.droppable");c.options.refreshPositions||a.ui.ddmanager.prepareOffsets(c,d)}}})(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 h=this,e=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&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=e.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 i=this.handles.split(",");this.handles={};for(var j=0;j<i.length;j++){var k=c.trim(i[j]),l=c('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&l.css({zIndex:++e.zIndex});"se"==k&&l.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(l)}}this._renderAxis=function(d){d=d||this.element;for(var f in this.handles){if(this.handles[f].constructor==String){this.handles[f]=c(this.handles[f],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var g=c(this.handles[f],this.element),m=0;m=/sw|ne|nw|se|n|s/.test(f)?g.outerHeight():g.outerWidth();g=["padding",/ne|nw|n/.test(f)?"Top":/se|sw|s/.test(f)?"Bottom":/^e$/.test(f)?"Right":"Left"].join("");d.css(g,m);this._proportionallyResize()}c(this.handles[f])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!h.resizing){if(this.className){var d=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}h.axis=d&&d[1]?d[1]:"se"}});if(e.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){if(!e.disabled){c(this).removeClass("ui-resizable-autohide");h._handles.show()}},function(){if(!e.disabled){if(!h.resizing){c(this).addClass("ui-resizable-autohide");h._handles.hide()}}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var d=this.element;d.after(this.originalElement.css({position:d.css("position"),width:d.outerWidth(),height:d.outerHeight(),top:d.css("top"),left:d.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var d=false;for(var f in this.handles){if(c(this.handles[f])[0]==e.target){d=true}}return !this.options.disabled&&d},_mouseStart:function(h){var g=this.options,i=this.element.position(),j=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(j.is(".ui-draggable")||/absolute/.test(j.css("position"))){j.css({position:"absolute",top:i.top,left:i.left})}c.browser.opera&&/relative/.test(j.css("position"))&&j.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();i=b(this.helper.css("left"));var e=b(this.helper.css("top"));if(g.containment){i+=c(g.containment).scrollLeft()||0;e+=c(g.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:i,top:e};this.size=this._helper?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalSize=this._helper?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalPosition={left:i,top:e};this.sizeDiff={width:j.outerWidth()-j.width(),height:j.outerHeight()-j.height()};this.originalMousePosition={left:h.pageX,top:h.pageY};this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:this.originalSize.width/this.originalSize.height||1;g=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",g=="auto"?this.axis+"-resize":g);j.addClass("ui-resizable-resizing");this._propagate("start",h);return true},_mouseDrag:function(f){var e=this.helper,g=this.originalMousePosition,h=this._change[this.axis];if(!h){return false}g=h.apply(this,[f,f.pageX-g.left||0,f.pageY-g.top||0]);this._updateVirtualBoundaries(f.shiftKey);if(this._aspectRatio||f.shiftKey){g=this._updateRatio(g,f)}g=this._respectSize(g,f);this._propagate("resize",f);e.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(g);this._trigger("resize",f,this.ui());return false},_mouseStop:function(h){this.resizing=false;var e=this.options,i=this;if(this._helper){var j=this._proportionallyResizeElements,k=j.length&&/textarea/i.test(j[0].nodeName);j=k&&c.ui.hasScroll(j[0],"left")?0:i.sizeDiff.height;k=k?0:i.sizeDiff.width;k={width:i.helper.width()-k,height:i.helper.height()-j};j=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null;var l=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;e.animate||this.element.css(c.extend(k,{top:l,left:j}));i.helper.height(i.size.height);i.helper.width(i.size.width);this._helper&&!e.animate&&this._proportionallyResize()}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(h){var g=this.options,i,j,e;g={minWidth:a(g.minWidth)?g.minWidth:0,maxWidth:a(g.maxWidth)?g.maxWidth:Infinity,minHeight:a(g.minHeight)?g.minHeight:0,maxHeight:a(g.maxHeight)?g.maxHeight:Infinity};if(this._aspectRatio||h){h=g.minHeight*this.aspectRatio;j=g.minWidth/this.aspectRatio;i=g.maxHeight*this.aspectRatio;e=g.maxWidth/this.aspectRatio;if(h>g.minWidth){g.minWidth=h}if(j>g.minHeight){g.minHeight=j}if(i<g.maxWidth){g.maxWidth=i}if(e<g.maxHeight){g.maxHeight=e}}this._vBoundaries=g},_updateCache:function(d){this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(f){var e=this.position,g=this.size,h=this.axis;if(a(f.height)){f.width=f.height*this.aspectRatio}else{if(a(f.width)){f.height=f.width/this.aspectRatio}}if(h=="sw"){f.left=e.left+(g.width-f.width);f.top=null}if(h=="nw"){f.top=e.top+(g.height-f.height);f.left=e.left+(g.width-f.width)}return f},_respectSize:function(p){var o=this._vBoundaries,q=this.axis,r=a(p.width)&&o.maxWidth&&o.maxWidth<p.width,s=a(p.height)&&o.maxHeight&&o.maxHeight<p.height,u=a(p.width)&&o.minWidth&&o.minWidth>p.width,e=a(p.height)&&o.minHeight&&o.minHeight>p.height;if(u){p.width=o.minWidth}if(e){p.height=o.minHeight}if(r){p.width=o.maxWidth}if(s){p.height=o.maxHeight}var k=this.originalPosition.left+this.originalSize.width,m=this.position.top+this.size.height,n=/sw|nw|w/.test(q);q=/nw|ne|n/.test(q);if(u&&n){p.left=k-o.minWidth}if(r&&n){p.left=k-o.maxWidth}if(e&&q){p.top=m-o.minHeight}if(s&&q){p.top=m-o.maxHeight}if((o=!p.width&&!p.height)&&!p.left&&p.top){p.top=null}else{if(o&&!p.top&&p.left){p.left=null}}return p},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var h=this.helper||this.element,g=0;g<this._proportionallyResizeElements.length;g++){var i=this._proportionallyResizeElements[g];if(!this.borderDif){var j=[i.css("borderTopWidth"),i.css("borderRightWidth"),i.css("borderBottomWidth"),i.css("borderLeftWidth")],e=[i.css("paddingTop"),i.css("paddingRight"),i.css("paddingBottom"),i.css("paddingLeft")];this.borderDif=c.map(j,function(d,f){d=parseInt(d,10)||0;f=parseInt(e[f],10)||0;return d+f})}c.browser.msie&&(c(h).is(":hidden")||c(h).parents(":hidden").length)||i.css({height:h.height()-this.borderDif[0]-this.borderDif[2]||0,width:h.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 d=c.browser.msie&&c.browser.version<7,f=d?1:0;d=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+d,height:this.element.outerHeight()+d,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,d){return{width:this.originalSize.width+d}},w:function(e,d){return{left:this.originalPosition.left+d,width:this.originalSize.width-d}},n:function(e,d,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(e,d,f){return{height:this.originalSize.height+f}},se:function(e,d,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,d,f]))},sw:function(e,d,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,d,f]))},ne:function(e,d,f){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,d,f]))},nw:function(e,d,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,d,f]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);e!="resize"&&this._trigger(e,d,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.16"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,d=function(f){c(f).each(function(){var g=c(this);g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode){if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];d(e.alsoResize)}else{c.each(e.alsoResize,function(f){d(f)})}}else{d(e.alsoResize)}},resize:function(j,i){var k=c(this).data("resizable");j=k.options;var l=k.originalSize,m=k.originalPosition,n={height:k.size.height-l.height||0,width:k.size.width-l.width||0,top:k.position.top-m.top||0,left:k.position.left-m.left||0},e=function(d,f){c(d).each(function(){var o=c(this),g=c(this).data("resizable-alsoresize"),s={},h=f&&f.length?f:o.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(h,function(p,q){if((p=(g[q]||0)+(n[q]||0))&&p>=0){s[q]=p||null}});if(c.browser.opera&&/relative/.test(o.css("position"))){k._revertToRelativePosition=true;o.css({position:"absolute",top:"auto",left:"auto"})}o.css(s)})};typeof j.alsoResize=="object"&&!j.alsoResize.nodeType?c.each(j.alsoResize,function(d,f){e(d,f)}):e(j.alsoResize)},stop:function(){var e=c(this).data("resizable"),d=e.options,f=function(g){c(g).each(function(){var h=c(this);h.css({position:h.data("resizable-alsoresize").position})})};if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof d.alsoResize=="object"&&!d.alsoResize.nodeType?c.each(d.alsoResize,function(g){f(g)}):f(d.alsoResize)}c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(j){var i=c(this).data("resizable"),k=i.options,l=i._proportionallyResizeElements,m=l.length&&/textarea/i.test(l[0].nodeName),n=m&&c.ui.hasScroll(l[0],"left")?0:i.sizeDiff.height;m={width:i.size.width-(m?0:i.sizeDiff.width),height:i.size.height-n};n=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null;var e=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(c.extend(m,e&&n?{top:e,left:n}:{}),{duration:k.animateDuration,easing:k.animateEasing,step:function(){var d={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};l&&l.length&&c(l[0]).css({width:d.width,height:d.height});i._updateCache(d);i._propagate("resize",j)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var j=c(this).data("resizable"),i=j.element,k=j.options.containment;if(i=k instanceof c?k.get(0):/parent/.test(k)?i.parent().get(0):k){j.containerElement=c(i);if(/document/.test(k)||k==document){j.containerOffset={left:0,top:0};j.containerPosition={left:0,top:0};j.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var l=c(i),m=[];c(["Top","Right","Left","Bottom"]).each(function(d,f){m[d]=b(l.css("padding"+f))});j.containerOffset=l.offset();j.containerPosition=l.position();j.containerSize={height:l.innerHeight()-m[3],width:l.innerWidth()-m[1]};k=j.containerOffset;var n=j.containerSize.height,e=j.containerSize.width;e=c.ui.hasScroll(i,"left")?i.scrollWidth:e;n=c.ui.hasScroll(i)?i.scrollHeight:n;j.parentData={element:i,left:k.left,top:k.top,width:e,height:n}}}},resize:function(j){var i=c(this).data("resizable"),k=i.options,l=i.containerOffset,m=i.position;j=i._aspectRatio||j.shiftKey;var n={top:0,left:0},e=i.containerElement;if(e[0]!=document&&/static/.test(e.css("position"))){n=l}if(m.left<(i._helper?l.left:0)){i.size.width+=i._helper?i.position.left-l.left:i.position.left-n.left;if(j){i.size.height=i.size.width/k.aspectRatio}i.position.left=k.helper?l.left:0}if(m.top<(i._helper?l.top:0)){i.size.height+=i._helper?i.position.top-l.top:i.position.top;if(j){i.size.width=i.size.height*k.aspectRatio}i.position.top=i._helper?l.top:0}i.offset.left=i.parentData.left+i.position.left;i.offset.top=i.parentData.top+i.position.top;k=Math.abs((i._helper?i.offset.left-n.left:i.offset.left-n.left)+i.sizeDiff.width);l=Math.abs((i._helper?i.offset.top-n.top:i.offset.top-l.top)+i.sizeDiff.height);m=i.containerElement.get(0)==i.element.parent().get(0);n=/relative|absolute/.test(i.containerElement.css("position"));if(m&&n){k-=i.parentData.left}if(k+i.size.width>=i.parentData.width){i.size.width=i.parentData.width-k;if(j){i.size.height=i.size.width/i.aspectRatio}}if(l+i.size.height>=i.parentData.height){i.size.height=i.parentData.height-l;if(j){i.size.width=i.size.height*i.aspectRatio}}},stop:function(){var l=c(this).data("resizable"),k=l.options,m=l.containerOffset,n=l.containerPosition,o=l.containerElement,p=c(l.helper),e=p.offset(),j=p.outerWidth()-l.sizeDiff.width;p=p.outerHeight()-l.sizeDiff.height;l._helper&&!k.animate&&/relative/.test(o.css("position"))&&c(this).css({left:e.left-n.left-m.left,width:j,height:p});l._helper&&!k.animate&&/static/.test(o.css("position"))&&c(this).css({left:e.left-n.left-m.left,width:j,height:p})}});c.ui.plugin.add("resizable","ghost",{start:function(){var e=c(this).data("resizable"),d=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof d.ghost=="string"?d.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 j=c(this).data("resizable"),i=j.options,k=j.size,l=j.originalSize,m=j.originalPosition,n=j.axis;i.grid=typeof i.grid=="number"?[i.grid,i.grid]:i.grid;var e=Math.round((k.width-l.width)/(i.grid[0]||1))*(i.grid[0]||1);i=Math.round((k.height-l.height)/(i.grid[1]||1))*(i.grid[1]||1);if(/^(se|s|e)$/.test(n)){j.size.width=l.width+e;j.size.height=l.height+i}else{if(/^(ne)$/.test(n)){j.size.width=l.width+e;j.size.height=l.height+i;j.position.top=m.top-i}else{if(/^(sw)$/.test(n)){j.size.width=l.width+e;j.size.height=l.height+i}else{j.size.width=l.width+e;j.size.height=l.height+i;j.position.top=m.top-i}j.position.left=m.left-e}}}});var b=function(d){return parseInt(d,10)||0},a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(d.options.filter,d.element[0]);b.each(function(){var c=a(this),e=c.offset();a.data(this,"selectable-item",{element:this,$element:c,left:e.left,top:e.top,right:e.left+c.outerWidth(),bottom:e.top+c.outerHeight(),startselected:false,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})};this.refresh();this.selectees=b.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(e){var b=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var g=this.options;this.selectees=a(g.filter,this.element[0]);this._trigger("start",e);a(g.appendTo).append(this.helper);this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0});g.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=true;if(!e.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;b._trigger("unselecting",e,{unselecting:c.element})}});a(e.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var c=!e.metaKey||!d.$element.hasClass("ui-selected");d.$element.removeClass(c?"ui-unselecting":"ui-selected").addClass(c?"ui-selecting":"ui-unselecting");d.unselecting=!c;d.selecting=c;(d.selected=c)?b._trigger("selecting",e,{selecting:d.element}):b._trigger("unselecting",e,{unselecting:d.element});return false}})}},_mouseDrag:function(n){var p=this;this.dragged=true;if(!this.options.disabled){var o=this.options,m=this.opos[0],q=this.opos[1],e=n.pageX,k=n.pageY;if(m>e){var l=e;e=m;m=l}if(q>k){l=k;k=q;q=l}this.helper.css({left:m,top:q,width:e-m,height:k-q});this.selectees.each(function(){var b=a.data(this,"selectable-item");if(!(!b||b.element==p.element[0])){var c=false;if(o.tolerance=="touch"){c=!(b.left>e||b.right<m||b.top>k||b.bottom<q)}else{if(o.tolerance=="fit"){c=b.left>m&&b.right<e&&b.top>q&&b.bottom<k}}if(c){if(b.selected){b.$element.removeClass("ui-selected");b.selected=false}if(b.unselecting){b.$element.removeClass("ui-unselecting");b.unselecting=false}if(!b.selecting){b.$element.addClass("ui-selecting");b.selecting=true;p._trigger("selecting",n,{selecting:b.element})}}else{if(b.selecting){if(n.metaKey&&b.startselected){b.$element.removeClass("ui-selecting");b.selecting=false;b.$element.addClass("ui-selected");b.selected=true}else{b.$element.removeClass("ui-selecting");b.selecting=false;if(b.startselected){b.$element.addClass("ui-unselecting");b.unselecting=true}p._trigger("unselecting",n,{unselecting:b.element})}}if(b.selected){if(!n.metaKey&&!b.startselected){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;p._trigger("unselecting",n,{unselecting:b.element})}}}}});return false}},_mouseStop:function(d){var b=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselected=false;b._trigger("unselected",d,{unselected:c.element})});a(".ui-selecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.startselected=true;b._trigger("selected",d,{selected:c.element})});this._trigger("stop",d);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.16"})})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?b.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):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 b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(g,h){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var i=null,j=this;a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==j){i=a(this);return false}});if(a.data(g.target,"sortable-item")==j){i=a(g.target)}if(!i){return false}if(this.options.handle&&!h){var d=false;a(this.options.handle,i).find("*").andSelf().each(function(){if(this==g.target){d=true}});if(!d){return false}}this.currentItem=i;this._removeCurrentsFromItems();return true},_mouseStart:function(d,f,g){f=this.options;var h=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(d);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();if(f.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",d,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!g){for(g=this.containers.length-1;g>=0;g--){this.containers[g]._trigger("activate",d,h._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(d);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var h=this.options,i=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY<h.scrollSensitivity){this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+h.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<h.scrollSensitivity){this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-h.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<h.scrollSensitivity){this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<h.scrollSensitivity){this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<h.scrollSensitivity){i=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<h.scrollSensitivity){i=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<h.scrollSensitivity){i=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<h.scrollSensitivity){i=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}i!==false&&a.ui.ddmanager&&!h.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,g)}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(h=this.items.length-1;h>=0;h--){i=this.items[h];var j=i.item[0],d=this._intersectsWithPointer(i);if(d){if(j!=this.currentItem[0]&&this.placeholder[d==1?"next":"prev"]()[0]!=j&&!a.ui.contains(this.placeholder[0],j)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],j):true)){this.direction=d==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(i)){this._rearrange(g,i)}else{break}this._trigger("change",g,this._uiHash());break}}}this._contactContainers(g);a.ui.ddmanager&&a.ui.ddmanager.drag(this,g);this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(d){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,d);if(this.options.revert){var f=this;e=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.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(d)})}else{this._clear(d,e)}return false}},cancel:function(){var c=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 d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,c._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,c._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(d){var e=this._getItemsAsjQuery(d&&d.connected),f=[];d=d||{};a(e).each(function(){var b=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[-=_](.+)/);if(b){f.push((d.key||b[1]+"[]")+"="+(d.key&&d.expression?b[1]:b[2]))}});!f.length&&d.key&&f.push(d.key+"=");return f.join("&")},toArray:function(d){var e=this._getItemsAsjQuery(d&&d.connected),f=[];d=d||{};e.each(function(){f.push(a(d.item||this).attr(d.attribute||"id")||"")});return f},_intersectsWith:function(q){var r=this.positionAbs.left,s=r+this.helperProportions.width,u=this.positionAbs.top,v=u+this.helperProportions.height,w=q.left,d=w+q.width,m=q.top,o=m+q.height,n=this.offset.click.top,p=this.offset.click.left;n=u+n>m&&u+n<o&&r+p>w&&r+p<d;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>q[this.floating?"width":"height"]?n:w<r+this.helperProportions.width/2&&s-this.helperProportions.width/2<d&&m<u+this.helperProportions.height/2&&v-this.helperProportions.height/2<o},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width);e=e&&d;d=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!e){return false}return this.floating?f&&f=="right"||d=="down"?2:1:d&&(d=="down"?2:1)},_intersectsWithSides:function(d){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top+d.height/2,d.height);d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left+d.width/2,d.width);var g=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&d||h=="left"&&!d:g&&(g=="down"&&f||g=="up"&&!f)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(i){var j=[],k=[],l=this._connectWith();if(l&&i){for(i=l.length-1;i>=0;i--){for(var m=a(l[i]),n=m.length-1;n>=0;n--){var d=a.data(m[n],"sortable");if(d&&d!=this&&!d.options.disabled){k.push([a.isFunction(d.options.items)?d.options.items.call(d.element):a(d.options.items,d.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),d])}}}}k.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(i=k.length-1;i>=0;i--){k[i][0].each(function(){j.push(this)})}return a(j)},_removeCurrentsFromItems:function(){for(var d=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++){for(var f=0;f<d.length;f++){d[f]==this.items[e].item[0]&&this.items.splice(e,1)}}},_refreshItems:function(k){this.items=[];this.containers=[this];var l=this.items,m=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],k,{item:this.currentItem}):a(this.options.items,this.element),this]],n=this._connectWith();if(n){for(var o=n.length-1;o>=0;o--){for(var p=a(n[o]),d=p.length-1;d>=0;d--){var j=a.data(p[d],"sortable");if(j&&j!=this&&!j.options.disabled){m.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],k,{item:this.currentItem}):a(j.options.items,j.element),j]);this.containers.push(j)}}}}for(o=m.length-1;o>=0;o--){k=m[o][1];n=m[o][0];d=0;for(p=n.length;d<p;d++){j=a(n[d]);j.data("sortable-item",k);l.push({item:j,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var f=this.items.length-1;f>=0;f--){var g=this.items[f];if(!(g.instance!=this.currentContainer&&this.currentContainer&&g.item[0]!=this.currentItem[0])){var h=this.options.toleranceElement?a(this.options.toleranceElement,g.item):g.item;if(!d){g.width=h.outerWidth();g.height=h.outerHeight()}h=h.offset();g.left=h.left;g.top=h.top}}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(f=this.containers.length-1;f>=0;f--){h=this.containers[f].element.offset();this.containers[f].containerCache.left=h.left;this.containers[f].containerCache.top=h.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}}return this},_createPlaceholder:function(d){var f=d||this,g=f.options;if(!g.placeholder||g.placeholder.constructor==String){var h=g.placeholder;g.placeholder={element:function(){var b=a(document.createElement(f.currentItem[0].nodeName)).addClass(h||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h){b.style.visibility="hidden"}return b},update:function(c,b){if(!(h&&!g.forcePlaceholderSize)){b.height()||b.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));b.width()||b.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(g.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);g.placeholder.update(f,f.placeholder)},_contactContainers:function(i){for(var j=null,k=null,l=this.containers.length-1;l>=0;l--){if(!a.ui.contains(this.currentItem[0],this.containers[l].element[0])){if(this._intersectsWith(this.containers[l].containerCache)){if(!(j&&a.ui.contains(this.containers[l].element[0],j.element[0]))){j=this.containers[l];k=l}}else{if(this.containers[l].containerCache.over){this.containers[l]._trigger("out",i,this._uiHash(this));this.containers[l].containerCache.over=0}}}}if(j){if(this.containers.length===1){this.containers[k]._trigger("over",i,this._uiHash(this));this.containers[k].containerCache.over=1}else{if(this.currentContainer!=this.containers[k]){j=10000;l=null;for(var m=this.positionAbs[this.containers[k].floating?"left":"top"],n=this.items.length-1;n>=0;n--){if(a.ui.contains(this.containers[k].element[0],this.items[n].item[0])){var d=this.items[n][this.containers[k].floating?"left":"top"];if(Math.abs(d-m)<j){j=Math.abs(d-m);l=this.items[n]}}}if(l||this.options.dropOnEmpty){this.currentContainer=this.containers[k];l?this._rearrange(i,l,null,true):this._rearrange(i,null,this.containers[k].element,true);this._trigger("change",i,this._uiHash());this.containers[k]._trigger("change",i,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[k]._trigger("over",i,this._uiHash(this));this.containers[k].containerCache.over=1}}}}},_createHelper:function(c){var d=this.options;c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(c[0].style.width==""||d.forceHelperSize){c.width(this.currentItem.width())}if(c[0].style.height==""||d.forceHelperSize){c.height(this.currentItem.height())}return c},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d=this.options;if(d.containment=="parent"){d.containment=this.helper[0].parentNode}if(d.containment=="document"||d.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(d.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(d.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(d.containment)){var e=a(d.containment)[0];d=a(d.containment).offset();var f=a(e).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0)-this.margins.top,d.left+(f?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(f?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(d,f){if(!f){f=this.position}d=d=="absolute"?1:-1;var g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(g[0].tagName);return{top:f.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:g.scrollTop())*d),left:f.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:g.scrollLeft())*d)}},_generatePosition:function(d){var h=this.options,i=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=/(html|body)/i.test(i[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var k=d.pageX,l=d.pageY;if(this.originalPosition){if(this.containment){if(d.pageX-this.offset.click.left<this.containment[0]){k=this.containment[0]+this.offset.click.left}if(d.pageY-this.offset.click.top<this.containment[1]){l=this.containment[1]+this.offset.click.top}if(d.pageX-this.offset.click.left>this.containment[2]){k=this.containment[2]+this.offset.click.left}if(d.pageY-this.offset.click.top>this.containment[3]){l=this.containment[3]+this.offset.click.top}}if(h.grid){l=this.originalPageY+Math.round((l-this.originalPageY)/h.grid[1])*h.grid[1];l=this.containment?!(l-this.offset.click.top<this.containment[1]||l-this.offset.click.top>this.containment[3])?l:!(l-this.offset.click.top<this.containment[1])?l-h.grid[1]:l+h.grid[1]:l;k=this.originalPageX+Math.round((k-this.originalPageX)/h.grid[0])*h.grid[0];k=this.containment?!(k-this.offset.click.left<this.containment[0]||k-this.offset.click.left>this.containment[2])?k:!(k-this.offset.click.left<this.containment[0])?k-h.grid[0]:k+h.grid[0]:k}}return{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():j?0:i.scrollTop()),left:k-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:i.scrollLeft())}},_rearrange:function(d,h,i,j){i?i[0].appendChild(this.placeholder[0]):h.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?h.item[0]:h.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var k=this,l=this.counter;window.setTimeout(function(){l==k.counter&&k.refreshPositions(!j)},0)},_clear:function(d,f){this.reverting=false;var g=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var h in this._storedCSS){if(this._storedCSS[h]=="auto"||this._storedCSS[h]=="static"){this._storedCSS[h]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!f&&g.push(function(b){this._trigger("receive",b,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f){g.push(function(b){this._trigger("update",b,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){f||g.push(function(b){this._trigger("remove",b,this._uiHash())});for(h=this.containers.length-1;h>=0;h--){if(a.ui.contains(this.containers[h].element[0],this.currentItem[0])&&!f){g.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[h]));g.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[h]))}}}for(h=this.containers.length-1;h>=0;h--){f||g.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[h]));if(this.containers[h].containerCache.over){g.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[h]));this.containers[h].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",d,this._uiHash());for(h=0;h<g.length;h++){g[h].call(this,d)}this._trigger("stop",d,this._uiHash())}return false}f||this._trigger("beforeStop",d,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(h=0;h<g.length;h++){g[h].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var d=c||this;return{helper:d.helper,placeholder:d.placeholder||a([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.16"})})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var e=this,f=e.options;e.running=0;e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");e.headers=e.element.find(f.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){f.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){f.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){f.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){f.disabled||a(this).removeClass("ui-state-focus")});e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(f.navigation){var g=e.element.find("a").filter(f.navigationFilter).eq(0);if(g.length){var c=g.closest(".ui-accordion-header");e.active=c.length?c:g.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||f.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");e.active.next().addClass("ui-accordion-content-active");e._createIcons();e.resize();e.element.attr("role","tablist");e.headers.attr("role","tab").bind("keydown.accordion",function(b){return e._keydown(b)}).next().attr("role","tabpanel");e.headers.not(e.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();e.active.length?e.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0);a.browser.safari||e.headers.find("a").attr("tabIndex",-1);f.event&&e.headers.bind(f.event.split(" ").join(".accordion ")+".accordion",function(b){e._clickHandler.call(e,b,this);b.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(c.autoHeight||c.fillHeight){d.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);c=="active"&&this.activate(d);if(c=="icons"){this._destroyIcons();d&&this._createIcons()}if(c=="disabled"){this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var g=a.ui.keyCode,i=this.headers.length,c=this.headers.index(e.target),j=false;switch(e.keyCode){case g.RIGHT:case g.DOWN:j=this.headers[(c+1)%i];break;case g.LEFT:case g.UP:j=this.headers[(c-1+i)%i];break;case g.SPACE:case g.ENTER:this._clickHandler({target:e.target},e.target);e.preventDefault()}if(j){a(e.target).attr("tabIndex",-1);a(j).attr("tabIndex",0);j.focus();return false}return true}},resize:function(){var c=this.options,e;if(c.fillSpace){if(a.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){e-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,e-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(c.autoHeight){e=0;this.headers.next().each(function(){e=Math.max(e,a(this).height("").height())}).height(e)}}return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(k,l){var m=this.options;if(!m.disabled){if(k.target){k=a(k.currentTarget||l);l=k[0]===this.active[0];m.active=m.collapsible&&l?false:this.headers.index(k);if(!(this.running||!m.collapsible&&l)){var c=this.active;i=k.next();p=this.active.next();n={options:m,newHeader:l&&m.collapsible?a([]):k,oldHeader:this.active,newContent:l&&m.collapsible?a([]):i,oldContent:p};var o=this.headers.index(this.active[0])>this.headers.index(k[0]);this.active=l?a([]):k;this._toggle(i,p,n,l,o);c.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(m.icons.headerSelected).addClass(m.icons.header);if(!l){k.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(m.icons.header).addClass(m.icons.headerSelected);k.next().addClass("ui-accordion-content-active")}}}else{if(m.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(m.icons.headerSelected).addClass(m.icons.header);this.active.next().addClass("ui-accordion-content-active");var p=this.active.next(),n={options:m,newHeader:a([]),oldHeader:m.active,newContent:a([]),oldContent:p},i=this.active=a([]);this._toggle(i,p,n)}}}},_toggle:function(o,p,q,c,s){var u=this,r=u.options;u.toShow=o;u.toHide=p;u.data=q;var m=function(){if(u){return u._completed.apply(u,arguments)}};u._trigger("changestart",null,u.data);u.running=p.size()===0?o.size():p.size();if(r.animated){q={};q=r.collapsible&&c?{toShow:a([]),toHide:p,complete:m,down:s,autoHeight:r.autoHeight||r.fillSpace}:{toShow:o,toHide:p,complete:m,down:s,autoHeight:r.autoHeight||r.fillSpace};if(!r.proxied){r.proxied=r.animated}if(!r.proxiedDuration){r.proxiedDuration=r.duration}r.animated=a.isFunction(r.proxied)?r.proxied(q):r.proxied;r.duration=a.isFunction(r.proxiedDuration)?r.proxiedDuration(q):r.proxiedDuration;c=a.ui.accordion.animations;var l=r.duration,n=r.animated;if(n&&!c[n]&&!a.easing[n]){n="slide"}c[n]||(c[n]=function(b){this.slide(b,{easing:n,duration:l||700})});c[n](q)}else{if(r.collapsible&&c){o.toggle()}else{p.hide();o.show()}m(true)}p.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();o.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(b){this.running=b?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className}this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.16",animations:{slide:function(i,j){i=a.extend({easing:"swing",duration:300},i,j);if(i.toHide.size()){if(i.toShow.size()){var k=i.toShow.css("overflow"),c=0,m={},n={},l;j=i.toShow;l=j[0].style.width;j.width(parseInt(j.parent().width(),10)-parseInt(j.css("paddingLeft"),10)-parseInt(j.css("paddingRight"),10)-(parseInt(j.css("borderLeftWidth"),10)||0)-(parseInt(j.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(d,b){n[b]="hide";d=(""+a.css(i.toShow[0],b)).match(/^([\d+-.]+)(.*)$/);m[b]={value:d[1],unit:d[2]||"px"}});i.toShow.css({height:0,overflow:"hidden"}).show();i.toHide.filter(":hidden").each(i.complete).end().filter(":visible").animate(n,{step:function(d,b){if(b.prop=="height"){c=b.end-b.start===0?0:(b.now-b.start)/(b.end-b.start)}i.toShow[0].style[b.prop]=c*m[b.prop].value+m[b.prop].unit},duration:i.duration,easing:i.easing,complete:function(){i.autoHeight||i.toShow.css("height","");i.toShow.css({width:l,overflow:k});i.complete()}})}else{i.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},i)}}else{i.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},i)}},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})}}})})(jQuery);(function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,e=this.element[0].ownerDocument,c;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(d.options.disabled||d.element.propAttr("readOnly"))){c=false;var g=a.ui.keyCode;switch(h.keyCode){case g.PAGE_UP:d._move("previousPage",h);break;case g.PAGE_DOWN:d._move("nextPage",h);break;case g.UP:d._move("previous",h);h.preventDefault();break;case g.DOWN:d._move("next",h);h.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(d.menu.active){c=true;h.preventDefault()}case g.TAB:if(!d.menu.active){return}d.menu.select(h);break;case g.ESCAPE:d.element.val(d.term);d.close(h);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,h)}},d.options.delay);break}}}).bind("keypress.autocomplete",function(f){if(c){c=false;f.preventDefault()}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(f){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(f);d._change(f)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",e)[0]).mousedown(function(h){var g=d.menu.element[0];a(h.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(f){f.target!==d.element[0]&&f.target!==g&&!a.ui.contains(g,f.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(h,g){g=g.item.data("item.autocomplete");false!==d._trigger("focus",h,{item:g})&&/^key/.test(h.originalEvent.type)&&d.element.val(g.value)},selected:function(k,g){var l=g.item.data("item.autocomplete"),j=d.previous;if(d.element[0]!==e.activeElement){d.element.focus();d.previous=j;setTimeout(function(){d.previous=j;d.selectedItem=l},1)}false!==d._trigger("select",k,{item:l})&&d.element.val(l.value);d.term=d.element.val();d.close(k);d.selectedItem=l},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);c==="source"&&this._initSource();if(c==="appendTo"){this.menu.element.appendTo(a(d||"body",this.element[0].ownerDocument)[0])}c==="disabled"&&d&&this.xhr&&this.xhr.abort()},_initSource:function(){var d=this,e,c;if(a.isArray(this.options.source)){e=this.options.source;this.source=function(h,g){g(a.ui.autocomplete.filter(e,h.term))}}else{if(typeof this.options.source==="string"){c=this.options.source;this.source=function(h,g){d.xhr&&d.xhr.abort();d.xhr=a.ajax({url:c,data:h,dataType:"json",autocompleteRequest:++b,success:function(f){this.autocompleteRequest===b&&g(f)},error:function(){this.autocompleteRequest===b&&g([])}})}}else{this.source=this.options.source}}},search:function(c,d){c=c!=null?c:this.element.val();this.term=this.element.val();if(c.length<this.options.minLength){return this.close(d)}clearTimeout(this.closing);if(this._trigger("search",d)!==false){return this._search(c)}},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c)}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return a.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}}return a.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(c){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(d,c);this.menu.deactivate();this.menu.refresh();d.show();this._resizeMenu();d.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(d,e){var c=this;a.each(e,function(h,g){c._renderItem(d,g)})},_renderItem:function(c,d){return a("<li></li>").data("item.autocomplete",d).append(a("<a></a>").text(d.label)).appendTo(c)},_move:function(c,d){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(c)||this.menu.last()&&/^next/.test(c)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[c](d)}}else{this.search(null,d)}},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,e){var c=new RegExp(a.ui.autocomplete.escapeRegex(e),"i");return a.grep(d,function(f){return c.test(f.label||f.value||f)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();b.select(c)}});this.refresh()},refresh:function(){var b=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(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(j,f){this.deactivate();if(this.hasScroll()){var h=f.offset().top-this.element.offset().top,d=this.element.scrollTop(),i=this.element.height();if(h<0){this.element.scrollTop(d+h)}else{h>=i&&this.element.scrollTop(d+h-i+f.height())}}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",j,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},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(f,c,d){if(this.active){f=this.active[f+"All"](".ui-menu-item").eq(0);f.length?this.activate(d,f):this.activate(d,this.element.children(c))}else{this.activate(d,this.element.children(c))}},nextPage:function(h){if(this.hasScroll()){if(!this.active||this.last()){this.activate(h,this.element.children(".ui-menu-item:first"))}else{var d=this.active.offset().top,f=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d-f+a(this).height();return b<10&&b>-10});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(h,c)}}else{this.activate(h,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(f){if(this.hasScroll()){if(!this.active||this.first()){this.activate(f,this.element.children(".ui-menu-item:last"))}else{var c=this.active.offset().top,d=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(f,result)}}else{this.activate(f,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);(function(m){var a,c,d,n,f=function(){var b=m(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},e=function(g){var h=g.name,i=g.form,b=m([]);if(h){b=i?m(i).find("[name='"+h+"']"):m("[name='"+h+"']",g.ownerDocument).filter(function(){return !this.form})}return b};m.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",f);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.propAttr("disabled")}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,h=this.options,i=this.type==="checkbox"||this.type==="radio",b="ui-state-hover"+(!i?" ui-state-active":"");if(h.label===null){h.label=this.buttonElement.html()}if(this.element.is(":disabled")){h.disabled=true}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!h.disabled){m(this).addClass("ui-state-hover");this===a&&m(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){h.disabled||m(this).removeClass(b)}).bind("click.button",function(j){if(h.disabled){j.preventDefault();j.stopImmediatePropagation()}});this.element.bind("focus.button",function(){g.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){g.buttonElement.removeClass("ui-state-focus")});if(i){this.element.bind("change.button",function(){n||g.refresh()});this.buttonElement.bind("mousedown.button",function(j){if(!h.disabled){n=false;c=j.pageX;d=j.pageY}}).bind("mouseup.button",function(j){if(!h.disabled){if(c!==j.pageX||d!==j.pageY){n=true}}})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(h.disabled||n){return false}m(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(h.disabled||n){return false}m(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed","true");var j=g.element[0];e(j).not(j).map(function(){return m(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown.button",function(){if(h.disabled){return false}m(this).addClass("ui-state-active");a=this;m(document).one("mouseup",function(){a=null})}).bind("mouseup.button",function(){if(h.disabled){return false}m(this).removeClass("ui-state-active")}).bind("keydown.button",function(j){if(h.disabled){return false}if(j.keyCode==m.ui.keyCode.SPACE||j.keyCode==m.ui.keyCode.ENTER){m(this).addClass("ui-state-active")}}).bind("keyup.button",function(){m(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(j){j.keyCode===m.ui.keyCode.SPACE&&m(this).click()})}}this._setOption("disabled",h.disabled);this._resetButton()},_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"){var b=this.element.parents().filter(":last"),g="label[for='"+this.element.attr("id")+"']";this.buttonElement=b.find(g);if(!this.buttonElement.length){b=b.length?b.siblings():this.element.siblings();this.buttonElement=b.filter(g);if(!this.buttonElement.length){this.buttonElement=b.find(g)}}this.element.addClass("ui-helper-hidden-accessible");(b=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}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");m.Widget.prototype.destroy.call(this)},_setOption:function(b,g){m.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled"){g?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false)}else{this._resetButton()}},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio"){e(this.element[0]).each(function(){m(this).is(":checked")?m(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):m(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 g=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"),h=m("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),j=this.options.icons,b=j.primary&&j.secondary,i=[];if(j.primary||j.secondary){if(this.options.text){i.push("ui-button-text-icon"+(b?"s":j.primary?"-primary":"-secondary"))}j.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+j.primary+"'></span>");j.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+j.secondary+"'></span>");if(!this.options.text){i.push(b?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||g.attr("title",h)}}else{i.push("ui-button-text-only")}g.addClass(i.join(" "))}}});m.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(b,g){b==="disabled"&&this.buttons.button("option",b,g);m.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return m(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(b?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return m(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");m.Widget.prototype.destroy.call(this)}})})(jQuery);(function(d,b){var e={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},f={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},a=d.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};d.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(c){var g=d(this).css(c).offset().top;g<0&&d(this).css("top",c.top-g)}},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 i=this,j=i.options,k=j.title||"&#160;",l=d.ui.dialog.getTitleId(i.element),n=(i.uiDialog=d("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+j.dialogClass).css({zIndex:j.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(g){if(j.closeOnEscape&&!g.isDefaultPrevented()&&g.keyCode&&g.keyCode===d.ui.keyCode.ESCAPE){i.close(g);g.preventDefault()}}).attr({role:"dialog","aria-labelledby":l}).mousedown(function(g){i.moveToTop(false,g)});i.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n);var m=(i.uiDialogTitlebar=d("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),c=d('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){c.addClass("ui-state-hover")},function(){c.removeClass("ui-state-hover")}).focus(function(){c.addClass("ui-state-focus")}).blur(function(){c.removeClass("ui-state-focus")}).click(function(g){i.close(g);return false}).appendTo(m);(i.uiDialogTitlebarCloseText=d("<span></span>")).addClass("ui-icon ui-icon-closethick").text(j.closeText).appendTo(c);d("<span></span>").addClass("ui-dialog-title").attr("id",l).html(k).prependTo(m);if(d.isFunction(j.beforeclose)&&!d.isFunction(j.beforeClose)){j.beforeClose=j.beforeclose}m.find("*").add(m).disableSelection();j.draggable&&d.fn.draggable&&i._makeDraggable();j.resizable&&d.fn.resizable&&i._makeResizable();i._createButtons(j.buttons);i._isOpen=false;d.fn.bgiframe&&n.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var c=this;c.overlay&&c.overlay.destroy();c.uiDialog.hide();c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");c.uiDialog.remove();c.originalTitle&&c.element.attr("title",c.originalTitle);return c},widget:function(){return this.uiDialog},close:function(c){var g=this,h,i;if(false!==g._trigger("beforeClose",c)){g.overlay&&g.overlay.destroy();g.uiDialog.unbind("keypress.ui-dialog");g._isOpen=false;if(g.options.hide){g.uiDialog.hide(g.options.hide,function(){g._trigger("close",c)})}else{g.uiDialog.hide();g._trigger("close",c)}d.ui.dialog.overlay.resize();if(g.options.modal){h=0;d(".ui-dialog").each(function(){if(this!==g.uiDialog[0]){i=d(this).css("z-index");isNaN(i)||(h=Math.max(h,i))}});d.ui.dialog.maxZ=h}return g}},isOpen:function(){return this._isOpen},moveToTop:function(c,g){var h=this,i=h.options;if(i.modal&&!c||!i.stack&&!i.modal){return h._trigger("focus",g)}if(i.zIndex>d.ui.dialog.maxZ){d.ui.dialog.maxZ=i.zIndex}if(h.overlay){d.ui.dialog.maxZ+=1;h.overlay.$el.css("z-index",d.ui.dialog.overlay.maxZ=d.ui.dialog.maxZ)}c={scrollTop:h.element.scrollTop(),scrollLeft:h.element.scrollLeft()};d.ui.dialog.maxZ+=1;h.uiDialog.css("z-index",d.ui.dialog.maxZ);h.element.attr(c);h._trigger("focus",g);return h},open:function(){if(!this._isOpen){var c=this,g=c.options,h=c.uiDialog;c.overlay=g.modal?new d.ui.dialog.overlay(c):null;c._size();c._position(g.position);h.show(g.show);c.moveToTop(true);g.modal&&h.bind("keypress.ui-dialog",function(k){if(k.keyCode===d.ui.keyCode.TAB){var j=d(":tabbable",this),i=j.filter(":first");j=j.filter(":last");if(k.target===j[0]&&!k.shiftKey){i.focus(1);return false}else{if(k.target===i[0]&&k.shiftKey){j.focus(1);return false}}}});d(c.element.find(":tabbable").get().concat(h.find(".ui-dialog-buttonpane :tabbable").get().concat(h.get()))).eq(0).focus();c._isOpen=true;c._trigger("open");return c}},_createButtons:function(h){var i=this,j=false,k=d("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),c=d("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);i.uiDialog.find(".ui-dialog-buttonpane").remove();typeof h==="object"&&h!==null&&d.each(h,function(){return !(j=true)});if(j){d.each(h,function(g,m){m=d.isFunction(m)?{click:m,text:g}:m;var l=d('<button type="button"></button>').click(function(){m.click.apply(i.element[0],arguments)}).appendTo(c);d.each(m,function(o,n){if(o!=="click"){o in a?l[o](n):l.attr(o,n)}});d.fn.button&&l.button()});k.appendTo(i.uiDialog)}},_makeDraggable:function(){function h(g){return{position:g.position,offset:g.offset}}var i=this,j=i.options,k=d(document),c;i.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(l,g){c=j.height==="auto"?"auto":d(this).height();d(this).height(d(this).height()).addClass("ui-dialog-dragging");i._trigger("dragStart",l,h(g))},drag:function(l,g){i._trigger("drag",l,h(g))},stop:function(l,g){j.position=[g.position.left-k.scrollLeft(),g.position.top-k.scrollTop()];d(this).removeClass("ui-dialog-dragging").height(c);i._trigger("dragStop",l,h(g));d.ui.dialog.overlay.resize()}})},_makeResizable:function(h){function i(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.size}}h=h===b?this.options.resizable:h;var j=this,k=j.options,c=j.uiDialog.css("position");h=typeof h==="string"?h:"n,e,s,w,se,sw,ne,nw";j.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:j.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:j._minHeight(),handles:h,start:function(l,g){d(this).addClass("ui-dialog-resizing");j._trigger("resizeStart",l,i(g))},resize:function(l,g){j._trigger("resize",l,i(g))},stop:function(l,g){d(this).removeClass("ui-dialog-resizing");k.height=d(this).height();k.width=d(this).width();j._trigger("resizeStop",l,i(g));d.ui.dialog.overlay.resize()}}).css("position",c).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(c){var g=[],h=[0,0],i;if(c){if(typeof c==="string"||typeof c==="object"&&"0" in c){g=c.split?c.split(" "):[c[0],c[1]];if(g.length===1){g[1]=g[0]}d.each(["left","top"],function(j,k){if(+g[j]===g[j]){h[j]=g[j];g[j]=k}});c={my:g.join(" "),at:g.join(" "),offset:h.join(" ")}}c=d.extend({},d.ui.dialog.prototype.options.position,c)}else{c=d.ui.dialog.prototype.options.position}(i=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(d.extend({of:window},c));i||this.uiDialog.hide()},_setOptions:function(c){var g=this,h={},i=false;d.each(c,function(j,k){g._setOption(j,k);if(j in e){i=true}if(j in f){h[j]=k}});i&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(h,i){var j=this,k=j.uiDialog;switch(h){case"beforeclose":h="beforeClose";break;case"buttons":j._createButtons(i);break;case"closeText":j.uiDialogTitlebarCloseText.text(""+i);break;case"dialogClass":k.removeClass(j.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+i);break;case"disabled":i?k.addClass("ui-dialog-disabled"):k.removeClass("ui-dialog-disabled");break;case"draggable":var c=k.is(":data(draggable)");c&&!i&&k.draggable("destroy");!c&&i&&j._makeDraggable();break;case"position":j._position(i);break;case"resizable":(c=k.is(":data(resizable)"))&&!i&&k.resizable("destroy");c&&typeof i==="string"&&k.resizable("option","handles",i);!c&&i!==false&&j._makeResizable(i);break;case"title":d(".ui-dialog-title",j.uiDialogTitlebar).html(""+(i||"&#160;"));break}d.Widget.prototype._setOption.apply(j,arguments)},_size:function(){var c=this.options,g,h,i=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(c.minWidth>c.width){c.width=c.minWidth}g=this.uiDialog.css({height:"auto",width:c.width}).height();h=Math.max(0,c.minHeight-g);if(c.height==="auto"){if(d.support.minHeight){this.element.css({minHeight:h,height:"auto"})}else{this.uiDialog.show();c=this.element.css("height","auto").height();i||this.uiDialog.hide();this.element.height(Math.max(c,h))}}else{this.element.height(Math.max(c.height-g,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});d.extend(d.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=d.ui.dialog.overlay.create(c)}});d.extend(d.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:d.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){d.ui.dialog.overlay.instances.length&&d(document).bind(d.ui.dialog.overlay.events,function(h){if(d(h.target).zIndex()<d.ui.dialog.overlay.maxZ){return false}})},1);d(document).bind("keydown.dialog-overlay",function(h){if(c.options.closeOnEscape&&!h.isDefaultPrevented()&&h.keyCode&&h.keyCode===d.ui.keyCode.ESCAPE){c.close(h);h.preventDefault()}});d(window).bind("resize.dialog-overlay",d.ui.dialog.overlay.resize)}var g=(this.oldInstances.pop()||d("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});d.fn.bgiframe&&g.bgiframe();this.instances.push(g);return g},destroy:function(c){var g=d.inArray(c,this.instances);g!=-1&&this.oldInstances.push(this.instances.splice(g,1)[0]);this.instances.length===0&&d([document,window]).unbind(".dialog-overlay");c.remove();var h=0;d.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var c,g;if(d.browser.msie&&d.browser.version<7){c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);g=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return c<g?d(window).height()+"px":c+"px"}else{return d(document).height()+"px"}},width:function(){var c,g;if(d.browser.msie){c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);g=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return c<g?d(window).width()+"px":c+"px"}else{return d(document).width()+"px"}},resize:function(){var c=d([]);d.each(d.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:d.ui.dialog.overlay.width(),height:d.ui.dialog.overlay.height()})}});d.extend(d.ui.dialog.overlay.prototype,{destroy:function(){d.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var g=this,h=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),l=h.values&&h.values.length||1,k=[];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"+(h.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(h.range){if(h.range===true){if(!h.values){h.values=[this._valueMin(),this._valueMin()]}if(h.values.length&&h.values.length!==2){h.values=[h.values[0],h.values[0]]}}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(h.range==="min"||h.range==="max"?" ui-slider-range-"+h.range:""))}for(var d=i.length;d<l;d+=1){k.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>")}this.handles=i.add(a(k.join("")).appendTo(g.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){h.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(h.disabled){a(this).blur()}else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(n){var e=true,f=a(this).data("index.ui-slider-handle"),c,b,j;if(!g.options.disabled){switch(n.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:e=false;if(!g._keySliding){g._keySliding=true;a(this).addClass("ui-state-active");c=g._start(n,f);if(c===false){return}}break}j=g.options.step;c=g.options.values&&g.options.values.length?(b=g.values(f)):(b=g.value());switch(n.keyCode){case a.ui.keyCode.HOME:b=g._valueMin();break;case a.ui.keyCode.END:b=g._valueMax();break;case a.ui.keyCode.PAGE_UP:b=g._trimAlignValue(c+(g._valueMax()-g._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:b=g._trimAlignValue(c-(g._valueMax()-g._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(c===g._valueMax()){return}b=g._trimAlignValue(c+j);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(c===g._valueMin()){return}b=g._trimAlignValue(c-j);break}g._slide(n,f,b);return e}}).keyup(function(b){var c=a(this).data("index.ui-slider-handle");if(g._keySliding){g._keySliding=false;g._stop(b,c);g._change(b,c);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(h){var i=this.options,k,m,l,d,n;if(i.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();k=this._normValueFromMouse({x:h.pageX,y:h.pageY});m=this._valueMax()-this._valueMin()+1;d=this;this.handles.each(function(b){var c=Math.abs(k-d.values(b));if(m>c){m=c;l=a(this);n=b}});if(i.range===true&&this.values(1)===i.min){n+=1;l=a(this.handles[n])}if(this._start(h,n)===false){return false}this._mouseSliding=true;d._handleIndex=n;l.addClass("ui-state-active").focus();i=l.offset();this._clickOffset=!a(h.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:h.pageX-i.left-l.width()/2,top:h.pageY-i.top-l.height()/2-(parseInt(l.css("borderTopWidth"),10)||0)-(parseInt(l.css("borderBottomWidth"),10)||0)+(parseInt(l.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(h,n,k);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(c){var d=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,d);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var d;if(this.orientation==="horizontal"){d=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=c/d;if(d>1){d=1}if(d<0){d=0}if(this.orientation==="vertical"){d=1-d}c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*c)},_start:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}return this._trigger("start",d,f)},_slide:function(e,g,h){var d;if(this.options.values&&this.options.values.length){d=this.values(g?0:1);if(this.options.values.length===2&&this.options.range===true&&(g===0&&h>d||g===1&&h<d)){h=d}if(h!==this.values(g)){d=this.values();d[g]=h;e=this._trigger("slide",e,{handle:this.handles[g],value:h,values:d});this.values(g?0:1);e!==false&&this.values(g,h,true)}}else{if(h!==this.value()){e=this._trigger("slide",e,{handle:this.handles[g],value:h});e!==false&&this.value(h)}}},_stop:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("stop",d,f)},_change:function(d,e){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("change",d,f)}},value:function(b){if(arguments.length){this.options.value=this._trimAlignValue(b);this._refreshValue();this._change(null,0)}else{return this._value()}},values:function(g,h){var i,d,j;if(arguments.length>1){this.options.values[g]=this._trimAlignValue(h);this._refreshValue();this._change(null,g)}else{if(arguments.length){if(a.isArray(arguments[0])){i=this.options.values;d=arguments[0];for(j=0;j<i.length;j+=1){i[j]=this._trimAlignValue(d[j]);this._change(null,j)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(g):this.value()}}else{return this._values()}}},_setOption:function(e,g){var h,d=0;if(a.isArray(this.options.values)){d=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(g){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);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<d;h+=1){this._change(null,h)}this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(d){var e,f;if(arguments.length){e=this.options.values[d];return e=this._trimAlignValue(e)}else{e=this.options.values.slice();for(f=0;f<e.length;f+=1){e[f]=this._trimAlignValue(e[f])}return e}},_trimAlignValue:function(d){if(d<=this._valueMin()){return this._valueMin()}if(d>=this._valueMax()){return this._valueMax()}var e=this.options.step>0?this.options.step:1,f=(d-this._valueMin())%e;d=d-f;if(Math.abs(f)*2>=e){d+=f>0?e:-e}return parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var o=this.options.range,p=this.options,q=this,s=!this._animateOff?p.animate:false,r,h={},u,m,n,d;if(this.options.values&&this.options.values.length){this.handles.each(function(b){r=(q.values(b)-q._valueMin())/(q._valueMax()-q._valueMin())*100;h[q.orientation==="horizontal"?"left":"bottom"]=r+"%";a(this).stop(1,1)[s?"animate":"css"](h,p.animate);if(q.options.range===true){if(q.orientation==="horizontal"){if(b===0){q.range.stop(1,1)[s?"animate":"css"]({left:r+"%"},p.animate)}if(b===1){q.range[s?"animate":"css"]({width:r-u+"%"},{queue:false,duration:p.animate})}}else{if(b===0){q.range.stop(1,1)[s?"animate":"css"]({bottom:r+"%"},p.animate)}if(b===1){q.range[s?"animate":"css"]({height:r-u+"%"},{queue:false,duration:p.animate})}}}u=r})}else{m=this.value();n=this._valueMin();d=this._valueMax();r=d!==n?(m-n)/(d-n)*100:0;h[q.orientation==="horizontal"?"left":"bottom"]=r+"%";this.handle.stop(1,1)[s?"animate":"css"](h,p.animate);if(o==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[s?"animate":"css"]({width:r+"%"},p.animate)}if(o==="max"&&this.orientation==="horizontal"){this.range[s?"animate":"css"]({width:100-r+"%"},{queue:false,duration:p.animate})}if(o==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[s?"animate":"css"]({height:r+"%"},p.animate)}if(o==="max"&&this.orientation==="vertical"){this.range[s?"animate":"css"]({height:100-r+"%"},{queue:false,duration:p.animate})}}}});a.extend(a.ui.slider,{version:"1.8.16"})})(jQuery);(function(c,b){function e(){return ++f}function g(){return ++a}var f=0,a=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(h,d){if(h=="selected"){this.options.collapsible&&d==this.options.selected||this.select(d)}else{this.options[h]=d;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+g());return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(h,d){return{tab:h,panel:d,index:this.anchors.index(h)}},_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(w){function z(h,j){h.css("display","");!c.support.opacity&&j.opacity&&h[0].style.removeAttribute("filter")}var v=this,x=this.options,d=/^#.+/;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(j,h){var n=c(h).attr("href"),k=n.split("#")[0],m;if(k&&(k===location.toString().split("#")[0]||(m=c("base")[0])&&k===m.href)){n=h.hash;h.href=n}if(d.test(n)){v.panels=v.panels.add(v.element.find(v._sanitizeSelector(n)))}else{if(n&&n!=="#"){c.data(h,"href.tabs",n);c.data(h,"load.tabs",n.replace(/#.*$/,""));n=v._tabId(h);h.href="#"+n;h=v.element.find("#"+n);if(!h.length){h=c(x.panelTemplate).attr("id",n).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(v.panels[j-1]||v.list);h.data("destroy.tabs",true)}v.panels=v.panels.add(h)}else{x.disabled.push(j)}}});if(w){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(x.selected===b){location.hash&&this.anchors.each(function(h,j){if(j.hash==location.hash){x.selected=h;return false}});if(typeof x.selected!=="number"&&x.cookie){x.selected=parseInt(v._cookie(),10)}if(typeof x.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){x.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}x.selected=x.selected||(this.lis.length?0:-1)}else{if(x.selected===null){x.selected=-1}}x.selected=x.selected>=0&&this.anchors[x.selected]||x.selected<0?x.selected:0;x.disabled=c.unique(x.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(h){return v.lis.index(h)}))).sort();c.inArray(x.selected,x.disabled)!=-1&&x.disabled.splice(c.inArray(x.selected,x.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(x.selected>=0&&this.anchors.length){v.element.find(v._sanitizeSelector(v.anchors[x.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(x.selected).addClass("ui-tabs-selected ui-state-active");v.element.queue("tabs",function(){v._trigger("show",null,v._ui(v.anchors[x.selected],v.element.find(v._sanitizeSelector(v.anchors[x.selected].hash))[0]))});this.load(x.selected)}c(window).bind("unload",function(){v.lis.add(v.anchors).unbind(".tabs");v.lis=v.anchors=v.panels=null})}else{x.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[x.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");x.cookie&&this._cookie(x.selected,x.cookie);w=0;for(var i;i=this.lis[w];w++){c(i)[c.inArray(w,x.disabled)!=-1&&!c(i).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}x.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(x.event!=="mouseover"){var l=function(h,j){j.is(":not(.ui-state-disabled)")&&j.addClass("ui-state-"+h)},q=function(h,j){j.removeClass("ui-state-"+h)};this.lis.bind("mouseover.tabs",function(){l("hover",c(this))});this.lis.bind("mouseout.tabs",function(){q("hover",c(this))});this.anchors.bind("focus.tabs",function(){l("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){q("focus",c(this).closest("li"))})}var p,u;if(x.fx){if(c.isArray(x.fx)){p=x.fx[0];u=x.fx[1]}else{p=u=x.fx}}var y=u?function(h,j){c(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.hide().removeClass("ui-tabs-hide").animate(u,u.duration||"normal",function(){z(j,u);v._trigger("show",null,v._ui(h,j[0]))})}:function(h,j){c(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");v._trigger("show",null,v._ui(h,j[0]))},A=p?function(h,j){j.animate(p,p.duration||"normal",function(){v.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");z(j,p);v.element.dequeue("tabs")})}:function(h,j){v.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");v.element.dequeue("tabs")};this.anchors.bind(x.event+".tabs",function(){var j=this,h=c(j).closest("li"),m=v.panels.filter(":not(.ui-tabs-hide)"),k=v.element.find(v._sanitizeSelector(j.hash));if(h.hasClass("ui-tabs-selected")&&!x.collapsible||h.hasClass("ui-state-disabled")||h.hasClass("ui-state-processing")||v.panels.filter(":animated").length||v._trigger("select",null,v._ui(this,k[0]))===false){this.blur();return false}x.selected=v.anchors.index(this);v.abort();if(x.collapsible){if(h.hasClass("ui-tabs-selected")){x.selected=-1;x.cookie&&v._cookie(x.selected,x.cookie);v.element.queue("tabs",function(){A(j,m)}).dequeue("tabs");this.blur();return false}else{if(!m.length){x.cookie&&v._cookie(x.selected,x.cookie);v.element.queue("tabs",function(){y(j,k)});v.load(v.anchors.index(this));this.blur();return false}}}x.cookie&&v._cookie(x.selected,x.cookie);if(k.length){m.length&&v.element.queue("tabs",function(){A(j,m)});v.element.queue("tabs",function(){y(j,k)});v.load(v.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 i=c.data(this,"href.tabs");if(i){this.href=i}var h=c(this).unbind(".tabs");c.each(["href","load","cache"],function(k,j){h.removeData(j+".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(l,n,k){if(k===b){k=this.anchors.length}var m=this,d=this.options;n=c(d.tabTemplate.replace(/#\{href\}/g,l).replace(/#\{label\}/g,n));l=!l.indexOf("#")?l.replace("#",""):this._tabId(c("a",n)[0]);n.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var i=m.element.find("#"+l);i.length||(i=c(d.panelTemplate).attr("id",l).data("destroy.tabs",true));i.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(k>=this.lis.length){n.appendTo(this.list);i.appendTo(this.list[0].parentNode)}else{n.insertBefore(this.lis[k]);i.insertBefore(this.panels[k])}d.disabled=c.map(d.disabled,function(h){return h>=k?++h:h});this._tabify();if(this.anchors.length==1){d.selected=0;n.addClass("ui-tabs-selected ui-state-active");i.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){m._trigger("show",null,m._ui(m.anchors[0],m.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[k],this.panels[k]));return this},remove:function(h){h=this._getIndex(h);var j=this.options,d=this.lis.eq(h).remove(),i=this.panels.eq(h).remove();if(d.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(h+(h+1<this.anchors.length?1:-1))}j.disabled=c.map(c.grep(j.disabled,function(k){return k!=h}),function(k){return k>=h?--k:k});this._tabify();this._trigger("remove",null,this._ui(d.find("a")[0],i[0]));return this},enable:function(h){h=this._getIndex(h);var d=this.options;if(c.inArray(h,d.disabled)!=-1){this.lis.eq(h).removeClass("ui-state-disabled");d.disabled=c.grep(d.disabled,function(i){return i!=h});this._trigger("enable",null,this._ui(this.anchors[h],this.panels[h]));return this}},disable:function(h){h=this._getIndex(h);var d=this.options;if(h!=d.selected){this.lis.eq(h).addClass("ui-state-disabled");d.disabled.push(h);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[h],this.panels[h]))}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(l){l=this._getIndex(l);var n=this,k=this.options,m=this.anchors.eq(l)[0],d=c.data(m,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&c.data(m,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(l).addClass("ui-state-processing");if(k.spinner){var i=c("span",m);i.data("label.tabs",i.html()).html(k.spinner)}this.xhr=c.ajax(c.extend({},k.ajaxOptions,{url:d,success:function(h,o){n.element.find(n._sanitizeSelector(m.hash)).html(h);n._cleanup();k.cache&&c.data(m,"cache.tabs",true);n._trigger("load",null,n._ui(n.anchors[l],n.panels[l]));try{k.ajaxOptions.success(h,o)}catch(j){}},error:function(h,o){n._cleanup();n._trigger("load",null,n._ui(n.anchors[l],n.panels[l]));try{k.ajaxOptions.error(h,o,l,m)}catch(j){}}}));n.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(h,d){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",d);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8.16"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(j,l){var i=this,k=this.options,d=i._rotate||(i._rotate=function(h){clearTimeout(i.rotation);i.rotation=setTimeout(function(){var m=k.selected;i.select(++m<i.anchors.length?m:0)},j);h&&h.stopPropagation()});l=i._unrotate||(i._unrotate=!l?function(h){h.clientX&&i.rotate(null)}:function(){t=k.selected;d()});if(j){this.element.bind("tabsshow",d);this.anchors.bind(k.event+".tabs",l);d()}else{clearTimeout(i.rotation);this.element.unbind("tabsshow",d);this.anchors.unbind(k.event+".tabs",l);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(d,C){function M(){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,disabled:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.16"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){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:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.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=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C){e.settings.minDate=this._formatDate(e,i)}if(g!==null&&f.dateFormat!==C&&f.maxDate===C){e.settings.maxDate=this._formatDate(e,g)}this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]&&d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]);if(a=d.datepicker._get(b,"onSelect")){c=d.datepicker._formatDate(b);a.apply(b.input?b.input[0]:null,[c,b])}else{d.datepicker._hideDatepicker()}return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");c=c?c.apply(a,[a,b]):{};if(c!==false){H(b.settings,c);b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,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 b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},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 b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var D=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p){throw"Missing number at position "+q}q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return -(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1){return E+1}else{throw"Unknown name at position "+q}},s=function(){if(b.charAt(q)!=a.charAt(A)){throw"Unexpected literal at position "+q}q++},q=0,A=0;A<a.length;A++){if(k){if(a.charAt(A)=="'"&&!o("'")){k=false}else{s()}}else{switch(a.charAt(A)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");break;case"m":j=m("m");break;case"M":j=n("M",i,g);break;case"y":c=m("y");break;case"@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"!":v=new Date((m("!")-this._ticksTo1970)/10000);c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"'":if(o("'")){s()}else{k=true}break;default:s()}}}if(q<b.length){throw"Extra/unparsed characters found in date: "+b.substring(q)}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)}}if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},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,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b){for(var k=0;k<a.length;k++){if(u){if(a.charAt(k)=="'"&&!i("'")){u=false}else{l+=a.charAt(k)}}else{switch(a.charAt(k)){case"d":l+=g("d",b.getDate(),2);break;case"D":l+=j("D",b.getDay(),e,f);break;case"o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000),3);break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=j("M",b.getMonth(),h,c);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(k)}}}}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)}}}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case"d":case"D":g+=parseInt(k[1],10);break;case"w":case"W":g+=parseInt(k[1],10)*7;break;case"m":case"M":l+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case"y":case"Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":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 b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+B+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O="";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+B+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"}}o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+='<span class="ui-datepicker-year">'+c+"</span>"}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"}a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?"&#xa0;":"")+o}k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.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,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.16";window["DP_jQuery_"+B]=d})(jQuery);(function(c,a){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(b){if(b===a){return this._value()}this._setOption("value",b);return this},_setOption:function(b,d){if(b==="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 b=this.options.value;if(typeof b!=="number"){b=0}return Math.min(this.options.max,Math.max(this.min,b))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var b=this.value(),d=this._percentage();if(this.oldValue!==b){this.oldValue=b;this._trigger("change")}this.valueDiv.toggle(b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(d.toFixed(0)+"%");this.element.attr("aria-valuenow",b)}});c.extend(c.ui.progressbar,{version:"1.8.16"})})(jQuery);jQuery.effects||function(w,a){function d(j){var f;if(j&&j.constructor==Array&&j.length==3){return j}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(j)){return e.transparent}return e[w.trim(j).toLowerCase()]}function r(k,f){var j;do{j=w.curCSS(k,f);if(j!=""&&j!="transparent"||w.nodeName(k,"body")){break}f="backgroundColor"}while(k=k.parentNode);return d(j)}function g(){var k=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,f={},j,l;if(k&&k.length&&k[0]&&k[k[0]]){for(var m=k.length;m--;){j=k[m];if(typeof k[j]=="string"){l=j.replace(/\-(\w)/g,function(n,o){return o.toUpperCase()});f[l]=k[j]}}}else{for(j in k){if(typeof k[j]==="string"){f[j]=k[j]}}}return f}function h(k){var f,j;for(f in k){j=k[f];if(j==null||w.isFunction(j)||f in v||/scrollbar/.test(f)||!/color/i.test(f)&&isNaN(parseFloat(j))){delete k[f]}}return k}function x(k,f){var j={_:0},l;for(l in f){if(k[l]!=f[l]){j[l]=f[l]}}return j}function b(k,f,j,l){if(typeof k=="object"){l=f;j=null;f=k;k=f.effect}if(w.isFunction(f)){l=f;j=null;f={}}if(typeof f=="number"||w.fx.speeds[f]){l=j;j=f;f={}}if(w.isFunction(j)){l=j;j=null}f=f||{};j=j||f.duration;j=w.fx.off?0:typeof j=="number"?j:j in w.fx.speeds?w.fx.speeds[j]:w.fx.speeds._default;l=l||f.complete;return[k,f,j,l]}function c(f){if(!f||typeof f==="number"||w.fx.speeds[f]){return true}if(typeof f==="string"&&!w.effects[f]){return true}return false}w.effects={};w.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(j,f){w.fx.step[f]=function(k){if(!k.colorInit){k.start=r(k.elem,f);k.end=d(k.end);k.colorInit=true}k.elem.style[f]="rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"}});var e={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]},i=["add","remove","toggle"],v={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};w.effects.animateClass=function(k,f,j,l){if(w.isFunction(j)){l=j;j=null}return this.queue(function(){var q=w(this),n=q.attr("style")||" ",m=h(g.call(this)),o,p=q.attr("class");w.each(i,function(u,s){k[s]&&q[s+"Class"](k[s])});o=h(g.call(this));q.attr("class",p);q.animate(x(m,o),{queue:false,duration:f,easing:j,complete:function(){w.each(i,function(u,s){k[s]&&q[s+"Class"](k[s])});if(typeof q.attr("style")=="object"){q.attr("style").cssText="";q.attr("style").cssText=n}else{q.attr("style",n)}l&&l.apply(this,arguments);w.dequeue(this)}})})};w.fn.extend({_addClass:w.fn.addClass,addClass:function(k,f,j,l){return f?w.effects.animateClass.apply(this,[{add:k},f,j,l]):this._addClass(k)},_removeClass:w.fn.removeClass,removeClass:function(k,f,j,l){return f?w.effects.animateClass.apply(this,[{remove:k},f,j,l]):this._removeClass(k)},_toggleClass:w.fn.toggleClass,toggleClass:function(k,f,j,l,m){return typeof f=="boolean"||f===a?j?w.effects.animateClass.apply(this,[f?{add:k}:{remove:k},j,l,m]):this._toggleClass(k,f):w.effects.animateClass.apply(this,[{toggle:k},f,j,l])},switchClass:function(k,f,j,l,m){return w.effects.animateClass.apply(this,[{add:f,remove:k},j,l,m])}});w.extend(w.effects,{version:"1.8.16",save:function(k,f){for(var j=0;j<f.length;j++){f[j]!==null&&k.data("ec.storage."+f[j],k[0].style[f[j]])}},restore:function(k,f){for(var j=0;j<f.length;j++){f[j]!==null&&k.css(f[j],k.data("ec.storage."+f[j]))}},setMode:function(j,f){if(f=="toggle"){f=j.is(":hidden")?"show":"hide"}return f},getBaseline:function(k,f){var j;switch(k[0]){case"top":j=0;break;case"middle":j=0.5;break;case"bottom":j=1;break;default:j=k[0]/f.height}switch(k[1]){case"left":k=0;break;case"center":k=0.5;break;case"right":k=1;break;default:k=k[1]/f.width}return{x:k,y:j}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper")){return k.parent()}var f={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},j=w("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),l=document.activeElement;k.wrap(j);if(k[0]===l||w.contains(k[0],l)){w(l).focus()}j=k.parent();if(k.css("position")=="static"){j.css({position:"relative"});k.css({position:"relative"})}else{w.extend(f,{position:k.css("position"),zIndex:k.css("z-index")});w.each(["top","left","bottom","right"],function(n,m){f[m]=k.css(m);if(isNaN(parseInt(f[m],10))){f[m]="auto"}});k.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return j.css(f).show()},removeWrapper:function(k){var f,j=document.activeElement;if(k.parent().is(".ui-effects-wrapper")){f=k.parent().replaceWith(k);if(k[0]===j||w.contains(k[0],j)){w(j).focus()}return f}return k},setTransition:function(k,f,j,l){l=l||{};w.each(f,function(n,m){unit=k.cssUnit(m);if(unit[0]>0){l[m]=unit[0]*j+unit[1]}});return l}});w.fn.extend({effect:function(k){var f=b.apply(this,arguments),j={options:f[1],duration:f[2],callback:f[3]};f=j.options.mode;var l=w.effects[k];if(w.fx.off||!l){return f?this[f](j.duration,j.callback):this.each(function(){j.callback&&j.callback.call(this)})}return l.call(this,j)},_show:w.fn.show,show:function(j){if(c(j)){return this._show.apply(this,arguments)}else{var f=b.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:w.fn.hide,hide:function(j){if(c(j)){return this._hide.apply(this,arguments)}else{var f=b.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:w.fn.toggle,toggle:function(j){if(c(j)||typeof j==="boolean"||w.isFunction(j)){return this.__toggle.apply(this,arguments)}else{var f=b.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(k){var f=this.css(k),j=[];w.each(["em","px","%","pt"],function(l,m){if(f.indexOf(m)>0){j=[parseFloat(f),m]}});return j}});w.easing.jswing=w.easing.swing;w.extend(w.easing,{def:"easeOutQuad",swing:function(k,f,j,l,m){return w.easing[w.easing.def](k,f,j,l,m)},easeInQuad:function(k,f,j,l,m){return l*(f/=m)*f+j},easeOutQuad:function(k,f,j,l,m){return -l*(f/=m)*(f-2)+j},easeInOutQuad:function(k,f,j,l,m){if((f/=m/2)<1){return l/2*f*f+j}return -l/2*(--f*(f-2)-1)+j},easeInCubic:function(k,f,j,l,m){return l*(f/=m)*f*f+j},easeOutCubic:function(k,f,j,l,m){return l*((f=f/m-1)*f*f+1)+j},easeInOutCubic:function(k,f,j,l,m){if((f/=m/2)<1){return l/2*f*f*f+j}return l/2*((f-=2)*f*f+2)+j},easeInQuart:function(k,f,j,l,m){return l*(f/=m)*f*f*f+j},easeOutQuart:function(k,f,j,l,m){return -l*((f=f/m-1)*f*f*f-1)+j},easeInOutQuart:function(k,f,j,l,m){if((f/=m/2)<1){return l/2*f*f*f*f+j}return -l/2*((f-=2)*f*f*f-2)+j},easeInQuint:function(k,f,j,l,m){return l*(f/=m)*f*f*f*f+j},easeOutQuint:function(k,f,j,l,m){return l*((f=f/m-1)*f*f*f*f+1)+j},easeInOutQuint:function(k,f,j,l,m){if((f/=m/2)<1){return l/2*f*f*f*f*f+j}return l/2*((f-=2)*f*f*f*f+2)+j},easeInSine:function(k,f,j,l,m){return -l*Math.cos(f/m*(Math.PI/2))+l+j},easeOutSine:function(k,f,j,l,m){return l*Math.sin(f/m*(Math.PI/2))+j},easeInOutSine:function(k,f,j,l,m){return -l/2*(Math.cos(Math.PI*f/m)-1)+j},easeInExpo:function(k,f,j,l,m){return f==0?j:l*Math.pow(2,10*(f/m-1))+j},easeOutExpo:function(k,f,j,l,m){return f==m?j+l:l*(-Math.pow(2,-10*f/m)+1)+j},easeInOutExpo:function(k,f,j,l,m){if(f==0){return j}if(f==m){return j+l}if((f/=m/2)<1){return l/2*Math.pow(2,10*(f-1))+j}return l/2*(-Math.pow(2,-10*--f)+2)+j},easeInCirc:function(k,f,j,l,m){return -l*(Math.sqrt(1-(f/=m)*f)-1)+j},easeOutCirc:function(k,f,j,l,m){return l*Math.sqrt(1-(f=f/m-1)*f)+j},easeInOutCirc:function(k,f,j,l,m){if((f/=m/2)<1){return -l/2*(Math.sqrt(1-f*f)-1)+j}return l/2*(Math.sqrt(1-(f-=2)*f)+1)+j},easeInElastic:function(l,j,k,m,n){l=1.70158;var o=0,f=m;if(j==0){return k}if((j/=n)==1){return k+m}o||(o=n*0.3);if(f<Math.abs(m)){f=m;l=o/4}else{l=o/(2*Math.PI)*Math.asin(m/f)}return -(f*Math.pow(2,10*(j-=1))*Math.sin((j*n-l)*2*Math.PI/o))+k},easeOutElastic:function(l,j,k,m,n){l=1.70158;var o=0,f=m;if(j==0){return k}if((j/=n)==1){return k+m}o||(o=n*0.3);if(f<Math.abs(m)){f=m;l=o/4}else{l=o/(2*Math.PI)*Math.asin(m/f)}return f*Math.pow(2,-10*j)*Math.sin((j*n-l)*2*Math.PI/o)+m+k},easeInOutElastic:function(l,j,k,m,n){l=1.70158;var o=0,f=m;if(j==0){return k}if((j/=n/2)==2){return k+m}o||(o=n*0.3*1.5);if(f<Math.abs(m)){f=m;l=o/4}else{l=o/(2*Math.PI)*Math.asin(m/f)}if(j<1){return -0.5*f*Math.pow(2,10*(j-=1))*Math.sin((j*n-l)*2*Math.PI/o)+k}return f*Math.pow(2,-10*(j-=1))*Math.sin((j*n-l)*2*Math.PI/o)*0.5+m+k},easeInBack:function(k,f,j,l,m,n){if(n==a){n=1.70158}return l*(f/=m)*f*((n+1)*f-n)+j},easeOutBack:function(k,f,j,l,m,n){if(n==a){n=1.70158}return l*((f=f/m-1)*f*((n+1)*f+n)+1)+j},easeInOutBack:function(k,f,j,l,m,n){if(n==a){n=1.70158}if((f/=m/2)<1){return l/2*f*f*(((n*=1.525)+1)*f-n)+j}return l/2*((f-=2)*f*(((n*=1.525)+1)*f+n)+2)+j},easeInBounce:function(k,f,j,l,m){return l-w.easing.easeOutBounce(k,m-f,0,l,m)+j},easeOutBounce:function(k,f,j,l,m){return(f/=m)<1/2.75?l*7.5625*f*f+j:f<2/2.75?l*(7.5625*(f-=1.5/2.75)*f+0.75)+j:f<2.5/2.75?l*(7.5625*(f-=2.25/2.75)*f+0.9375)+j:l*(7.5625*(f-=2.625/2.75)*f+0.984375)+j},easeInOutBounce:function(k,f,j,l,m){if(f<m/2){return w.easing.easeInBounce(k,f*2,0,l,m)*0.5+j}return w.easing.easeOutBounce(k,f*2-m,0,l,m)*0.5+l*0.5+j}})}(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var k=a(this),o=["position","top","bottom","left","right"],n=a.effects.setMode(k,b.options.mode||"hide"),l=b.options.direction||"vertical";a.effects.save(k,o);k.show();var m=a.effects.createWrapper(k).css({overflow:"hidden"}),c=l=="vertical"?"height":"width";l=l=="vertical"?m.height():m.width();n=="show"&&m.css(c,0);var j={};j[c]=n=="show"?l:0;m.animate(j,b.duration,b.options.easing,function(){n=="hide"&&k.hide();a.effects.restore(k,o);a.effects.removeWrapper(k);b.callback&&b.callback.apply(k[0],arguments);k.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(c){return this.queue(function(){var r=a(this),p=["position","top","bottom","left","right"],b=a.effects.setMode(r,c.options.mode||"effect"),u=c.options.direction||"up",s=c.options.distance||20,q=c.options.times||5,e=c.duration||250;/show|hide/.test(b)&&p.push("opacity");a.effects.save(r,p);r.show();a.effects.createWrapper(r);var v=u=="up"||u=="down"?"top":"left";u=u=="up"||u=="left"?"pos":"neg";s=c.options.distance||(v=="top"?r.outerHeight({margin:true})/3:r.outerWidth({margin:true})/3);if(b=="show"){r.css("opacity",0).css(v,u=="pos"?-s:s)}if(b=="hide"){s/=q*2}b!="hide"&&q--;if(b=="show"){var w={opacity:1};w[v]=(u=="pos"?"+=":"-=")+s;r.animate(w,e/2,c.options.easing);s/=2;q--}for(w=0;w<q;w++){var n={},o={};n[v]=(u=="pos"?"-=":"+=")+s;o[v]=(u=="pos"?"+=":"-=")+s;r.animate(n,e/2,c.options.easing).animate(o,e/2,c.options.easing);s=b=="hide"?s*2:s/2}if(b=="hide"){w={opacity:0};w[v]=(u=="pos"?"-=":"+=")+s;r.animate(w,e/2,c.options.easing,function(){r.hide();a.effects.restore(r,p);a.effects.removeWrapper(r);c.callback&&c.callback.apply(this,arguments)})}else{n={};o={};n[v]=(u=="pos"?"-=":"+=")+s;o[v]=(u=="pos"?"+=":"-=")+s;r.animate(n,e/2,c.options.easing).animate(o,e/2,c.options.easing,function(){a.effects.restore(r,p);a.effects.removeWrapper(r);c.callback&&c.callback.apply(this,arguments)})}r.queue("fx",function(){r.dequeue()});r.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var k=a(this),j=["position","top","bottom","left","right","height","width"],n=a.effects.setMode(k,b.options.mode||"hide"),l=b.options.direction||"vertical";a.effects.save(k,j);k.show();var m=a.effects.createWrapper(k).css({overflow:"hidden"});m=k[0].tagName=="IMG"?m:k;var o={size:l=="vertical"?"height":"width",position:l=="vertical"?"top":"left"};l=l=="vertical"?m.height():m.width();if(n=="show"){m.css(o.size,0);m.css(o.position,l/2)}var e={};e[o.size]=n=="show"?l:0;e[o.position]=n=="show"?0:l/2;m.animate(e,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){n=="hide"&&k.hide();a.effects.restore(k,j);a.effects.removeWrapper(k);b.callback&&b.callback.apply(k[0],arguments);k.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var j=a(this),c=["position","top","bottom","left","right","opacity"],l=a.effects.setMode(j,b.options.mode||"hide"),k=b.options.direction||"left";a.effects.save(j,c);j.show();a.effects.createWrapper(j);var m=k=="up"||k=="down"?"top":"left";k=k=="up"||k=="left"?"pos":"neg";var n=b.options.distance||(m=="top"?j.outerHeight({margin:true})/2:j.outerWidth({margin:true})/2);if(l=="show"){j.css("opacity",0).css(m,k=="pos"?-n:n)}var d={opacity:l=="show"?1:0};d[m]=(l=="show"?k=="pos"?"+=":"-=":k=="pos"?"-=":"+=")+n;j.animate(d,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){l=="hide"&&j.hide();a.effects.restore(j,c);a.effects.removeWrapper(j);b.callback&&b.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var m=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,n=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var l=a(this).show().css("visibility","hidden"),q=l.offset();q.top-=parseInt(l.css("marginTop"),10)||0;q.left-=parseInt(l.css("marginLeft"),10)||0;for(var j=l.outerWidth(true),k=l.outerHeight(true),o=0;o<m;o++){for(var p=0;p<n;p++){l.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*(j/n),top:-o*(k/m)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j/n,height:k/m,left:q.left+p*(j/n)+(b.options.mode=="show"?(p-Math.floor(n/2))*(j/n):0),top:q.top+o*(k/m)+(b.options.mode=="show"?(o-Math.floor(m/2))*(k/m):0),opacity:b.options.mode=="show"?0:1}).animate({left:q.left+p*(j/n)+(b.options.mode=="show"?0:(p-Math.floor(n/2))*(j/n)),top:q.top+o*(k/m)+(b.options.mode=="show"?0:(o-Math.floor(m/2))*(k/m)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?l.css({visibility:"visible"}):l.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(l[0]);l.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fade=function(b){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,b.options.mode||"hide");f.animate({opacity:e},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var q=a(this),n=["position","top","bottom","left","right"],r=a.effects.setMode(q,b.options.mode||"hide"),v=b.options.size||15,c=!!b.options.horizFirst,o=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(q,n);q.show();var s=a.effects.createWrapper(q).css({overflow:"hidden"}),u=r=="show"!=c,p=u?["width","height"]:["height","width"];u=u?[s.width(),s.height()]:[s.height(),s.width()];var m=/([0-9]+)%/.exec(v);if(m){v=parseInt(m[1],10)/100*u[r=="hide"?0:1]}if(r=="show"){s.css(c?{height:0,width:v}:{height:v,width:0})}c={};m={};c[p[0]]=r=="show"?u[0]:v;m[p[1]]=r=="show"?u[1]:0;s.animate(c,o,b.options.easing).animate(m,o,b.options.easing,function(){r=="hide"&&q.hide();a.effects.restore(q,n);a.effects.removeWrapper(q);b.callback&&b.callback.apply(q[0],arguments);q.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var g=a(this),i=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(g,b.options.mode||"show"),c={backgroundColor:g.css("backgroundColor")};if(h=="hide"){c.opacity=0}a.effects.save(g,i);g.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(c,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){h=="hide"&&g.hide();a.effects.restore(g,i);h=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);g.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this),e=a.effects.setMode(d,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:a.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible){times--}for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&d.hide();b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(c){return this.queue(function(){var f=a(this),k=a.effects.setMode(f,c.options.mode||"hide"),d=parseInt(c.options.percent,10)||150,b=d/100,j={height:f.height(),width:f.width()};a.extend(c.options,{fade:true,mode:k,percent:k=="hide"?d:100,from:k=="hide"?j:{height:j.height*b,width:j.width*b}});f.effect("scale",c.options,c.duration,c.callback);f.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var j=a(this),k=a.extend(true,{},c.options),m=a.effects.setMode(j,c.options.mode||"effect"),b=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:m=="hide"?0:100),d=c.options.direction||"both",l=c.options.origin;if(m!="effect"){k.origin=l||["middle","center"];k.restore=true}l={height:j.height(),width:j.width()};j.from=c.options.from||(m=="show"?{height:0,width:0}:l);b={y:d!="horizontal"?b/100:1,x:d!="vertical"?b/100:1};j.to={height:l.height*b.y,width:l.width*b.x};if(c.options.fade){if(m=="show"){j.from.opacity=0;j.to.opacity=1}if(m=="hide"){j.from.opacity=1;j.to.opacity=0}}k.from=j.from;k.to=j.to;k.mode=m;j.effect("size",k,c.duration,c.callback);j.dequeue()})};a.effects.size=function(c){return this.queue(function(){var x=a(this),z=["position","top","bottom","left","right","width","height","overflow","opacity"],B=["position","top","bottom","left","right","overflow","opacity"],o=["width","height","overflow"],q=["fontSize"],A=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],b=a.effects.setMode(x,c.options.mode||"effect"),w=c.options.restore||false,v=c.options.scale||"both",u=c.options.origin,r={height:x.height(),width:x.width()};x.from=c.options.from||r;x.to=c.options.to||r;if(u){u=a.effects.getBaseline(u,r);x.from.top=(r.height-x.from.height)*u.y;x.from.left=(r.width-x.from.width)*u.x;x.to.top=(r.height-x.to.height)*u.y;x.to.left=(r.width-x.to.width)*u.x}var y={from:{y:x.from.height/r.height,x:x.from.width/r.width},to:{y:x.to.height/r.height,x:x.to.width/r.width}};if(v=="box"||v=="both"){if(y.from.y!=y.to.y){z=z.concat(A);x.from=a.effects.setTransition(x,A,y.from.y,x.from);x.to=a.effects.setTransition(x,A,y.to.y,x.to)}if(y.from.x!=y.to.x){z=z.concat(s);x.from=a.effects.setTransition(x,s,y.from.x,x.from);x.to=a.effects.setTransition(x,s,y.to.x,x.to)}}if(v=="content"||v=="both"){if(y.from.y!=y.to.y){z=z.concat(q);x.from=a.effects.setTransition(x,q,y.from.y,x.from);x.to=a.effects.setTransition(x,q,y.to.y,x.to)}}a.effects.save(x,w?z:B);x.show();a.effects.createWrapper(x);x.css("overflow","hidden").css(x.from);if(v=="content"||v=="both"){A=A.concat(["marginTop","marginBottom"]).concat(q);s=s.concat(["marginLeft","marginRight"]);o=z.concat(A).concat(s);x.find("*[width]").each(function(){child=a(this);w&&a.effects.save(child,o);var d={height:child.height(),width:child.width()};child.from={height:d.height*y.from.y,width:d.width*y.from.x};child.to={height:d.height*y.to.y,width:d.width*y.to.x};if(y.from.y!=y.to.y){child.from=a.effects.setTransition(child,A,y.from.y,child.from);child.to=a.effects.setTransition(child,A,y.to.y,child.to)}if(y.from.x!=y.to.x){child.from=a.effects.setTransition(child,s,y.from.x,child.from);child.to=a.effects.setTransition(child,s,y.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){w&&a.effects.restore(child,o)})})}x.animate(x.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){x.to.opacity===0&&x.css("opacity",x.from.opacity);b=="hide"&&x.hide();a.effects.restore(x,w?z:B);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments);x.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var q=a(this),n=["position","top","bottom","left","right"];a.effects.setMode(q,b.options.mode||"effect");var r=b.options.direction||"left",s=b.options.distance||20,p=b.options.times||3,u=b.duration||b.options.duration||140;a.effects.save(q,n);q.show();a.effects.createWrapper(q);var v=r=="up"||r=="down"?"top":"left",d=r=="up"||r=="left"?"pos":"neg";r={};var m={},o={};r[v]=(d=="pos"?"-=":"+=")+s;m[v]=(d=="pos"?"+=":"-=")+s*2;o[v]=(d=="pos"?"-=":"+=")+s*2;q.animate(r,u,b.options.easing);for(s=1;s<p;s++){q.animate(m,u,b.options.easing).animate(o,u,b.options.easing)}q.animate(m,u,b.options.easing).animate(r,u/2,b.options.easing,function(){a.effects.restore(q,n);a.effects.removeWrapper(q);b.callback&&b.callback.apply(this,arguments)});q.queue("fx",function(){q.dequeue()});q.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var j=a(this),c=["position","top","bottom","left","right"],m=a.effects.setMode(j,b.options.mode||"show"),k=b.options.direction||"left";a.effects.save(j,c);j.show();a.effects.createWrapper(j).css({overflow:"hidden"});var n=k=="up"||k=="down"?"top":"left";k=k=="up"||k=="left"?"pos":"neg";var l=b.options.distance||(n=="top"?j.outerHeight({margin:true}):j.outerWidth({margin:true}));if(m=="show"){j.css(n,k=="pos"?isNaN(l)?"-"+l:-l:l)}var d={};d[n]=(m=="show"?k=="pos"?"+=":"-=":k=="pos"?"-=":"+=")+l;j.animate(d,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){m=="hide"&&j.hide();a.effects.restore(j,c);a.effects.removeWrapper(j);b.callback&&b.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var g=a(this),h=a(b.options.to),i=h.offset();h={top:i.top,left:i.left,height:h.innerHeight(),width:h.innerWidth()};i=g.offset();var e=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:i.top,left:i.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(h,b.duration,b.options.easing,function(){e.remove();b.callback&&b.callback.apply(g[0],arguments);g.dequeue()})})}})(jQuery);(function(a){a.widget("ui.selectmenu",{_init:function(){var g=this,k=this.options;this.ids=[this.element.attr("id")+"-button",this.element.attr("id")+"-menu"];this._safemouseup=true;this.newelement=a('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" aria-haspopup="true" aria-owns="'+this.ids[1]+'"></a>').insertAfter(this.element);var r=this.element.attr("tabindex");if(r){this.newelement.attr("tabindex",r)}this.newelement.data("selectelement",this.element);this.selectmenuIcon=a('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement).addClass((k.style=="popup")?"ui-icon-triangle-2-n-s":"ui-icon-triangle-1-s");a("label[for="+this.element.attr("id")+"]").attr("for",this.ids[0]).bind("click",function(){g.newelement[0].focus();return false});this.newelement.bind("mousedown",function(i){g._toggle(i);if(k.style=="popup"){g._safemouseup=false;setTimeout(function(){g._safemouseup=true},300)}return false}).bind("click",function(){return false}).keydown(function(i){var j=true;switch(i.keyCode){case a.ui.keyCode.ENTER:j=true;break;case a.ui.keyCode.SPACE:j=false;g._toggle(i);break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:j=false;g._moveSelection(-1);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.RIGHT:j=false;g._moveSelection(1);break;case a.ui.keyCode.TAB:j=true;break;default:j=false;g._typeAhead(i.keyCode,"mouseup");break}return j}).bind("mouseover focus",function(){a(this).addClass(g.widgetBaseClass+"-focus ui-state-hover")}).bind("mouseout blur",function(){a(this).removeClass(g.widgetBaseClass+"-focus ui-state-hover")});a(document).mousedown(function(i){g.close(i)});this.element.click(function(){this._refreshValue()}).focus(function(){this.newelement[0].focus()});var e=(k.style=="dropdown")?" ui-corner-bottom":" ui-corner-all";this.list=a('<ul class="'+g.widgetBaseClass+"-menu ui-widget ui-widget-content"+e+'" aria-hidden="true" role="listbox" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo("body");var n=[];this.element.find("option").each(function(){n.push({value:a(this).attr("value"),text:g._formatText(jQuery(this).text()),selected:a(this).attr("selected"),classes:a(this).attr("class"),parentOptGroup:a(this).parent("optgroup").attr("label")})});var q=(g.options.style=="popup")?" ui-state-active":"";for(var l in n){var h=a('<li role="presentation"><a href="#" tabindex="-1" role="option" aria-selected="false">'+n[l].text+"</a></li>").data("index",l).addClass(n[l].classes).data("optionClasses",n[l].classes||"").mouseup(function(i){if(g._safemouseup){var j=a(this).data("index")!=g._selectedIndex();g.value(a(this).data("index"));g.select(i);if(j){g.change(i)}g.close(i,true)}return false}).click(function(){return false}).bind("mouseover focus",function(){g._selectedOptionLi().addClass(q);g._focusedOptionLi().removeClass(g.widgetBaseClass+"-item-focus ui-state-hover");a(this).removeClass("ui-state-active").addClass(g.widgetBaseClass+"-item-focus ui-state-hover")}).bind("mouseout blur",function(){if(a(this).is(g._selectedOptionLi())){a(this).addClass(q)}a(this).removeClass(g.widgetBaseClass+"-item-focus ui-state-hover")});if(n[l].parentOptGroup){var p=g.widgetBaseClass+"-group-"+n[l].parentOptGroup;if(this.list.find("li."+p).size()){this.list.find("li."+p+":last ul").append(h)}else{a('<li role="presentation" class="'+g.widgetBaseClass+"-group "+p+'"><span class="'+g.widgetBaseClass+'-group-label">'+n[l].parentOptGroup+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(h)}}else{h.appendTo(this.list)}this.list.bind("mousedown mouseup",function(){return false});if(k.icons){for(var m in k.icons){if(h.is(k.icons[m].find)){h.data("optionClasses",n[l].classes+" "+g.widgetBaseClass+"-hasIcon").addClass(g.widgetBaseClass+"-hasIcon");var d=k.icons[m].icon||"";h.find("a:eq(0)").prepend('<span class="'+g.widgetBaseClass+"-item-icon ui-icon "+d+'"></span>')}}}}this.list.find("li:last").addClass("ui-corner-bottom");if(k.style=="popup"){this.list.find("li:first").addClass("ui-corner-top")}if(k.transferClasses){var f=this.element.attr("class")||"";this.newelement.add(this.list).addClass(f)}var b=this.element.width();this.newelement.width((k.width)?k.width:b);if(k.style=="dropdown"){this.list.width((k.menuWidth)?k.menuWidth:((k.width)?k.width:b))}else{this.list.width((k.menuWidth)?k.menuWidth:((k.width)?k.width-k.handleWidth:b-k.handleWidth))}if(k.maxHeight&&k.maxHeight<this.list.height()){this.list.height(k.maxHeight)}this._optionLis=this.list.find("li:not(."+g.widgetBaseClass+"-group)");this.list.keydown(function(i){var j=true;switch(i.keyCode){case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:j=false;g._moveFocus(-1);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.RIGHT:j=false;g._moveFocus(1);break;case a.ui.keyCode.HOME:j=false;g._moveFocus(":first");break;case a.ui.keyCode.PAGE_UP:j=false;g._scrollPage("up");break;case a.ui.keyCode.PAGE_DOWN:j=false;g._scrollPage("down");break;case a.ui.keyCode.END:j=false;g._moveFocus(":last");break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:j=false;g.close(i,true);a(i.target).parents("li:eq(0)").trigger("mouseup");break;case a.ui.keyCode.TAB:j=true;g.close(i,true);break;case a.ui.keyCode.ESCAPE:j=false;g.close(i,true);break;default:j=false;g._typeAhead(i.keyCode,"focus");break}return j});if(k.style=="dropdown"){this.newelement.addClass(g.widgetBaseClass+"-dropdown");this.list.addClass(g.widgetBaseClass+"-menu-dropdown")}else{this.newelement.addClass(g.widgetBaseClass+"-popup");this.list.addClass(g.widgetBaseClass+"-menu-popup")}this.newelement.prepend('<span class="'+g.widgetBaseClass+'-status">'+n[this._selectedIndex()].text+"</span>");this.element.hide();if(this.element.attr("disabled")==true){this.disable()}this.value(this._selectedIndex())},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled");a("label[for="+this.newelement.attr("id")+"]").attr("for",this.element.attr("id")).unbind("click");this.newelement.remove();this.list.remove();this.element.show()},_typeAhead:function(d,f){var e=this;if(!e._prevChar){e._prevChar=["",0]}var g=String.fromCharCode(d);c=g.toLowerCase();var h=false;function b(i,j){h=true;a(i).trigger(f);e._prevChar[1]=j}this.list.find("li a").each(function(k){if(!h){var j=a(this).text();if(j.indexOf(g)==0||j.indexOf(c)==0){if(e._prevChar[0]==g){if(e._prevChar[1]<k){b(this,k)}}else{b(this,k)}}}});this._prevChar[0]=g},_uiHash:function(){return{value:this.value()}},open:function(d){var e=this;var b=this.newelement.attr("aria-disabled");if(b!="true"){this._refreshPosition();this._closeOthers(d);this.newelement.addClass("ui-state-active");this.list.appendTo("body").addClass(e.widgetBaseClass+"-open").attr("aria-hidden",false).find("li:not(."+e.widgetBaseClass+"-group):eq("+this._selectedIndex()+") a")[0].focus();if(this.options.style=="dropdown"){this.newelement.removeClass("ui-corner-all").addClass("ui-corner-top")}this._refreshPosition();this._trigger("open",d,this._uiHash())}},close:function(d,b){if(this.newelement.is(".ui-state-active")){this.newelement.removeClass("ui-state-active");this.list.attr("aria-hidden",true).removeClass(this.widgetBaseClass+"-open");if(this.options.style=="dropdown"){this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all")}if(b){this.newelement[0].focus()}this._trigger("close",d,this._uiHash())}},change:function(b){this.element.trigger("change");this._trigger("change",b,this._uiHash())},select:function(b){this._trigger("select",b,this._uiHash())},_closeOthers:function(b){a("."+this.widgetBaseClass+".ui-state-active").not(this.newelement).each(function(){a(this).data("selectelement").selectmenu("close",b)});a("."+this.widgetBaseClass+".ui-state-hover").trigger("mouseout")},_toggle:function(d,b){if(this.list.is("."+this.widgetBaseClass+"-open")){this.close(d,b)}else{this.open(d)}},_formatText:function(b){return this.options.format?this.options.format(b):b},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find("."+this.widgetBaseClass+"-item-focus")},_moveSelection:function(d){var e=parseInt(this._selectedOptionLi().data("index"),10);var b=e+d;return this._optionLis.eq(b).trigger("mouseup")},_moveFocus:function(d){if(!isNaN(d)){var f=parseInt(this._focusedOptionLi().data("index"),10);var b=f+d}else{var b=parseInt(this._optionLis.filter(d).data("index"),10)}if(b<0){b=0}if(b>this._optionLis.size()-1){b=this._optionLis.size()-1}var e=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1000);this._focusedOptionLi().find("a:eq(0)").attr("id","");this._optionLis.eq(b).find("a:eq(0)").attr("id",e)[0].focus();this.list.attr("aria-activedescendant",e)},_scrollPage:function(d){var b=Math.floor(this.list.outerHeight()/this.list.find("li:first").outerHeight());b=(d=="up")?-b:b;this._moveFocus(b)},_setData:function(b,d){this.options[b]=d;if(b=="disabled"){this.close();this.element.add(this.newelement).add(this.list)[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",d)}},value:function(b){if(arguments.length){this.element[0].selectedIndex=b;this._refreshValue();this._refreshPosition()}return this.element[0].selectedIndex},_refreshValue:function(){var b=(this.options.style=="popup")?" ui-state-active":"";var f=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1000);this.list.find("."+this.widgetBaseClass+"-item-selected").removeClass(this.widgetBaseClass+"-item-selected"+b).find("a").attr("aria-selected","false").attr("id","");this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+b).find("a").attr("aria-selected","true").attr("id",f);var e=this.newelement.data("optionClasses")?this.newelement.data("optionClasses"):"";var d=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(e).data("optionClasses",d).addClass(d).find("."+this.widgetBaseClass+"-status").html(this._selectedOptionLi().find("a:eq(0)").html());this.list.attr("aria-activedescendant",f)},_refreshPosition:function(){this.list.css("left",this.newelement.offset().left);var d=this.newelement.offset().top;var b=this.list[0].scrollTop;this.list.find("li:lt("+this._selectedIndex()+")").each(function(){b-=a(this).outerHeight()});if(this.newelement.is("."+this.widgetBaseClass+"-popup")){d+=b;this.list.css("top",d)}else{d+=this.newelement.height();this.list.css("top",d)}}});a.extend(a.ui.selectmenu,{getter:"value",version:"@VERSION",eventPrefix:"selectmenu",defaults:{transferClasses:true,style:"popup",width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null}})})(jQuery);(function(){var i=document.all,e="http://www.adobe.com/go/getflashplayer",k=typeof jQuery=="function",d=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function g(f,l){if(l){for(var m in l){if(l.hasOwnProperty(m)){f[m]=l[m]}}}return f}function a(n,m){var l=[];for(var f in n){if(n.hasOwnProperty(f)){l[f]=m(n[f])}}return l}window.flashembed=function(m,f,l){if(typeof m=="string"){m=document.getElementById(m.replace("#",""))}if(!m){return}if(typeof f=="string"){f={src:f}}return new h(m,g(g({},b),f),l)};var j=g(window.flashembed,{conf:b,getVersion:function(){var m,n;try{n=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");n=m&&m.GetVariable("$version")}catch(l){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");n=m&&m.GetVariable("$version")}catch(f){}}}n=d.exec(n);return n?[n[1],n[3]]:[0,0]},asString:function(n){if(n===null||n===undefined){return null}var m=typeof n;if(m=="object"&&n.push){m="array"}switch(m){case"string":n=n.replace(new RegExp('(["\\\\])',"g"),"\\$1");n=n.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+n+'"';case"array":return"["+a(n,function(o){return j.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var f in n){if(n.hasOwnProperty(f)){l.push('"'+f+'":'+j.asString(n[f]))}}return"{"+l.join(",")+"}"}return String(n).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(p,l){p=g({},p);var o='<object width="'+p.width+'" height="'+p.height+'" id="'+p.id+'" name="'+p.id+'"';if(p.cachebusting){p.src+=((p.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(p.w3c||!i){o+=' data="'+p.src+'" type="application/x-shockwave-flash"'}else{o+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}o+=">";if(p.w3c||i){o+='<param name="movie" value="'+p.src+'" />'}p.width=p.height=p.id=p.w3c=p.src=null;p.onFail=p.version=p.expressInstall=null;for(var q in p){if(p[q]){o+='<param name="'+q+'" value="'+p[q]+'" />'}}var f="";if(l){for(var m in l){if(l[m]){var n=l[m];f+=m+"="+(/function|object/.test(typeof n)?j.asString(n):n)+"&"}}f=f.slice(0,-1);o+='<param name="flashvars" value=\''+f+"' />"}o+="</object>";return o},isSupported:function(f){return c[0]>f[0]||c[0]==f[0]&&c[1]>=f[1]}});var c=j.getVersion();function h(n,f,l){if(j.isSupported(f.version)){n.innerHTML=j.getHTML(f,l)}else{if(f.expressInstall&&j.isSupported([6,65])){n.innerHTML=j.getHTML(g(f,{src:f.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!n.innerHTML.replace(/\s/g,"")){n.innerHTML="<h2>Flash version "+f.version+" or greater is required</h2><h3>"+(c[0]>0?"Your version is "+c:"You have no flash plugin installed")+"</h3>"+(n.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+e+"'>here</a></p>");if(n.tagName=="A"){n.onclick=function(){location.href=e}}}if(f.onFail){var m=f.onFail.call(this);if(typeof m=="string"){n.innerHTML=m}}}}if(i){window[f.id]=document.getElementById(f.id)}g(this,{getRoot:function(){return n},getOptions:function(){return f},getConf:function(){return l},getApi:function(){return n.firstChild}})}if(k){jQuery.tools=jQuery.tools||{version:"1.2.5"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(f,l){return this.each(function(){$(this).data("flashembed",flashembed(this,f,l))})}}})();(function(a){a.fn.expandAll=function(b){var c=a.extend({},a.fn.expandAll.defaults,b);return this.each(function(n){var k=a(this),m,h,f,e,i,d,j;(c.switchPosition=="before")?(a.fn.findSibling=a.fn.prev,a.fn.insrt=a.fn.before):(a.fn.findSibling=a.fn.next,a.fn.insrt=a.fn.after);if(this.id.length){i="#"+this.id}else{if(this.className.length){i=this.tagName.toLowerCase()+"."+this.className.split(" ").join(".")}else{i=this.tagName.toLowerCase()}}if(c.ref&&k.find(c.ref).length){(c.switchPosition=="before")?m=k.find("'"+c.ref+":first'"):m=k.find("'"+c.ref+":last'")}else{return}if(c.cllpsLength&&k.closest(i).find(c.cllpsEl).text().length<c.cllpsLength){k.closest(i).find(c.cllpsEl).addClass("dont_touch");return}(c.initTxt=="show")?(d=c.expTxt,j=""):(d=c.cllpsTxt,j="open");if(c.state=="hidden"){k.find(c.cllpsEl+":not(.shown, .dont_touch)").hide().findSibling().find("> a.open").removeClass("open").data("state",0)}else{k.find(c.cllpsEl).show().findSibling().find("> a").addClass("open").data("state",1)}(c.oneSwitch)?(m.insrt('<p class="switch"><a href="#" class="'+j+'">'+d+"</a></p>")):(m.insrt('<p class="switch"><a href="#" class="">'+c.expTxt+'</a>&nbsp;|&nbsp;<a href="#" class="open">'+c.cllpsTxt+"</a></p>"));h=m.findSibling("p").find("a");f=k.closest(i).find(c.cllpsEl).not(".dont_touch");e=(c.trigger)?k.closest(i).find(c.trigger+" > a"):k.closest(i).find(".expand > a");if(c.child){k.find(c.cllpsEl+".shown").show().findSibling().find("> a").addClass("open").text(c.cllpsTxt);window.$vrbls={kt1:c.expTxt,kt2:c.cllpsTxt}}var o;(typeof l=="function")?(o=l("html","body")):(o="html, body");h.click(function(){var p=a(this),q=p.closest(i).find(c.cllpsEl+":first"),r=q.offset().top-c.offset;if(c.parent){var s=p.parent().nextAll().children("p.switch").find("a");kidTxt1=$vrbls.kt1,kidTxt2=$vrbls.kt2,kidTxt=(p.text()==c.expTxt)?kidTxt2:kidTxt1;s.text(kidTxt);if(p.text()==c.expTxt){s.addClass("open")}else{s.removeClass("open")}}if(p.text()==c.expTxt){if(c.oneSwitch){p.text(c.cllpsTxt).attr("class","open")}e.addClass("open").data("state",1);f[c.showMethod](c.speed)}else{if(c.oneSwitch){p.text(c.expTxt).attr("class","")}e.removeClass("open").data("state",0);if(c.speed==0||c.instantHide){f.hide()}else{f[c.hideMethod](c.speed)}if(c.scroll&&r<a(window).scrollTop()){a(o).animate({scrollTop:r},600)}}return false});if(c.localLinks){var g=a(i).find(c.localLinks);if(g.length){a(g).click(function(){var p=a(this.hash);p=p.length&&p||a("[name="+this.hash.slice(1)+"]");if(p.length){var q=p.offset().top;a(o).animate({scrollTop:q},600);return false}})}}function l(s){for(var q=0,p=arguments.length;q<p;q++){var t=arguments[q],u=a(t);if(u.scrollTop()>0){return t}else{u.scrollTop(1);var r=u.scrollTop()>0;u.scrollTop(0);if(r){return t}}}return[]}})};a.fn.expandAll.defaults={state:"hidden",initTxt:"show",expTxt:"[Expand All]",cllpsTxt:"[Collapse All]",oneSwitch:true,ref:".expand",switchPosition:"before",scroll:false,offset:20,showMethod:"slideDown",hideMethod:"slideUp",speed:600,cllpsEl:".collapse",trigger:".expand",localLinks:null,parent:false,child:false,cllpsLength:null,instantHide:false};a.fn.toggler=function(c){var b=a.extend({},a.fn.toggler.defaults,c);var d=a(this);d.wrapInner('<a style="display:block" href="#" title="Expand/Collapse" />');if(b.initShow){a(b.initShow).addClass("shown")}d.next(b.cllpsEl+":not(.shown)").hide();return this.each(function(){var e;(b.container)?e=b.container:e="html";if(d.next("div.shown").length){d.closest(e).find(".shown").show().prev().find("a").addClass("open")}a(this).click(function(){a(this).find("a").toggleClass("open").end().next(b.cllpsEl)[b.method](b.speed);return false})})};a.fn.toggler.defaults={cllpsEl:"div.collapse",method:"slideToggle",speed:"slow",container:"",initShow:".shown"};a.fn.fadeToggle=function(c,b){return this.animate({opacity:"toggle"},c,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})};a.fn.slideFadeToggle=function(b,c,d){return this.animate({opacity:"toggle",height:"toggle"},b,c,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(d)){d()}})};a.fn.slideFadeDown=function(c,b){return this.animate({opacity:"show",height:"show"},c,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})};a.fn.slideFadeUp=function(c,b){return this.animate({opacity:"hide",height:"hide"},c,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(jQuery.isFunction(b)){b()}})}})(jQuery);(function(d){function c(e,h){var g=d(h);return g.length<2?g:e.parent().find(h)}function b(w,t){var n=this,h=w.add(n),x=w.children(),e=0,i=t.vertical;a||(a=n);if(x.length>1){x=d(t.items,w)}d.extend(n,{getConf:function(){return t},getIndex:function(){return e},getSize:function(){return n.getItems().size()},getNaviButtons:function(){return j.add(q)},getRoot:function(){return w},getItemWrap:function(){return x},getItems:function(){return x.children(t.item).not("."+t.clonedClass)},move:function(g,f){return n.seekTo(e+g,f)},next:function(f){return n.move(1,f)},prev:function(f){return n.move(-1,f)},begin:function(f){return n.seekTo(0,f)},end:function(f){return n.seekTo(n.getSize()-1,f)},focus:function(){return a=n},addItem:function(f){f=d(f);if(t.circular){d(".cloned:last").before(f);d(".cloned:first").replaceWith(f.clone().addClass(t.clonedClass))}else{x.append(f)}h.trigger("onAddItem",[f]);return n},seekTo:function(k,l,f){if(t.circular&&k===0&&e==-1&&l!==0){return n}if(!t.circular&&k<0||k>n.getSize()||k<-1){return n}var g=k;if(k.jquery){k=n.getItems().index(k)}else{g=n.getItems().eq(k)}var m=d.Event("onBeforeSeek");if(!f){h.trigger(m,[k,l]);if(m.isDefaultPrevented()||!g.length){return n}}g=i?{top:-g.position().top}:{left:-g.position().left};e=k;a=n;if(l===undefined){l=t.speed}x.animate(g,l,t.easing,f||function(){h.trigger("onSeek",[k])});return n}});d.each(["onBeforeSeek","onSeek","onAddItem"],function(g,f){d.isFunction(t[f])&&d(n).bind(f,t[f]);n[f]=function(k){d(n).bind(f,k);return n}});if(t.circular){var u=n.getItems().slice(-1).clone().prependTo(x),v=n.getItems().eq(1).clone().appendTo(x);u.add(v).addClass(t.clonedClass);n.onBeforeSeek(function(g,k,f){if(!g.isDefaultPrevented()){if(k==-1){n.seekTo(u,f,function(){n.end(0)});return g.preventDefault()}else{k==n.getSize()&&n.seekTo(v,f,function(){n.begin(0)})}}});n.seekTo(0,0)}var j=c(w,t.prev).click(function(){n.prev()}),q=c(w,t.next).click(function(){n.next()});!t.circular&&n.getSize()>1&&n.onBeforeSeek(function(g,f){setTimeout(function(){if(!g.isDefaultPrevented()){j.toggleClass(t.disabledClass,f<=0);q.toggleClass(t.disabledClass,f>=n.getSize()-1)}},1)});t.mousewheel&&d.fn.mousewheel&&w.mousewheel(function(g,f){if(t.mousewheel){n.move(f<0?1:-1,t.wheelSpeed||50);return false}});t.keyboard&&d(document).bind("keydown.scrollable",function(g){if(!(!t.keyboard||g.altKey||g.ctrlKey||d(g.target).is(":input"))){if(!(t.keyboard!="static"&&a!=n)){var f=g.keyCode;if(i&&(f==38||f==40)){n.move(f==38?-1:1);return g.preventDefault()}if(!i&&(f==37||f==39)){n.move(f==37?-1:1);return g.preventDefault()}}}});d(n).trigger("onBeforeSeek",[t.initialIndex])}d.tools=d.tools||{version:"1.2.3"};d.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var a;d.fn.scrollable=function(g){var e=this.data("scrollable");if(e){return e}g=d.extend({},d.tools.scrollable.conf,g);this.each(function(){e=new b(d(this),g);d(this).data("scrollable",e)});return g.api?e:this}})(jQuery);(function(a){a.fn.tweet=function(h){var d=a.extend({username:null,list:null,favorites:false,query:null,avatar_size:null,count:3,fetch:null,page:1,retweets:true,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{time}{join}{text}",comparator:function(o,p){return p.tweet_time-o.tweet_time},filter:function(o){return true}},h);var j=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?������]))/gi;function e(p,r){if(typeof p==="string"){var o=p;for(var s in r){var q=r[s];o=o.replace(new RegExp("{"+s+"}","g"),q===null?"":q)}return o}else{return p(r)}}a.extend({tweet:{t:e}});function m(p,o){return function(){var q=[];this.each(function(){q.push(this.replace(p,o))});return a(q)}}function n(o){return o.replace(/</g,"&lt;").replace(/>/g,"^&gt;")}a.fn.extend({linkUser:m(/(^|[\W])@(\w+)/gi,'$1@<a href="http://'+d.twitter_url+'/$2">$2</a>'),linkHash:m(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,' <a href="http://'+d.twitter_search_url+"/search?q=&tag=$1&lang=all"+((d.username&&d.username.length==1&&!d.list)?"&from="+d.username.join("%2BOR%2B"):"")+'">#$1</a>'),capAwesome:m(/\b(awesome)\b/gi,'<span class="awesome">$1</span>'),capEpic:m(/\b(epic)\b/gi,'<span class="epic">$1</span>'),makeHeart:m(/(&lt;)+[3]/gi,"<tt class='heart'>&#x2665;</tt>")});function l(o,p){return o.replace(j,function(u){var q=(/^[a-z]+:/i).test(u)?u:"http://"+u;var r=u;for(var t=0;t<p.length;++t){var s=p[t];if(s.url==q&&s.expanded_url){q=s.expanded_url;r=s.display_url;break}}return'<a href="'+n(q)+'">'+n(r)+"</a>"})}function k(o){return Date.parse(o.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function i(s){var q=(arguments.length>1)?arguments[1]:new Date();var p=parseInt((q.getTime()-s)/1000,10);var o="";if(p<60){o=p+" seconden geleden"}else{if(p<120){o="een minuut geleden"}else{if(p<(45*60)){o=(parseInt(p/60,10)).toString()+" minuten geleden"}else{if(p<(2*60*60)){o="een uur geleden"}else{if(p<(24*60*60)){o=""+(parseInt(p/3600,10)).toString()+" uren geleden"}else{if(p<(48*60*60)){o="een dag geleden"}else{o=(parseInt(p/86400,10)).toString()+" dagen geleden"}}}}}}return"ongeveer "+o}function g(o){if(o.match(/^(@([A-Za-z0-9-_]+)) .*/i)){return d.auto_join_text_reply}else{if(o.match(j)){return d.auto_join_text_url}else{if(o.match(/^((\w+ed)|just) .*/im)){return d.auto_join_text_ed}else{if(o.match(/^(\w*ing) .*/i)){return d.auto_join_text_ing}else{return d.auto_join_text_default}}}}}function b(){var r=("https:"==document.location.protocol?"https:":"http:");var o=(d.fetch===null)?d.count:d.fetch;var p="&include_entities=1&callback=?";p="&include_entities=1";if(d.list){return"/TweetCache.aspx?url="+r+"//"+d.twitter_api_url+"/1/"+d.username[0]+"/lists/"+d.list+"/statuses.json?page="+d.page+"&per_page="+o+p}else{if(d.favorites){return"/TweetCache.aspx?url="+r+"//"+d.twitter_api_url+"/favorites/"+d.username[0]+".json?page="+d.page+"&count="+o+p}else{if(d.query===null&&d.username.length==1){return"/TweetCache.aspx?url="+r+"//"+d.twitter_api_url+"/1/statuses/user_timeline.json?screen_name="+d.username[0]+"&count="+o+(d.retweets?"&include_rts=1":"")+"&page="+d.page+p}else{var q=(d.query||"from:"+d.username.join(" OR from:"));return r+"//"+d.twitter_search_url+"/search.json?&q="+encodeURIComponent(q)+"&rpp="+o+"&page="+d.page+p+"&callback=?"}}}}function f(p,o){if(o){return("user" in p)?p.user.profile_image_url_https:f(p,false)}else{return p.profile_image_url||p.user.profile_image_url}}function c(p){var q={};q.item=p;q.source=p.source;q.screen_name=p.from_user||p.user.screen_name;q.avatar_size=d.avatar_size;q.avatar_url=f(p,(document.location.protocol==="https:"));q.retweet=typeof(p.retweeted_status)!="undefined";q.tweet_time=k(p.created_at);q.join_text=d.join_text=="auto"?g(p.text):d.join_text;q.tweet_id=p.id_str;q.twitter_base="http://"+d.twitter_url+"/";q.user_url=q.twitter_base+q.screen_name;q.tweet_url=q.user_url+"/status/"+q.tweet_id;q.reply_url=q.twitter_base+"intent/tweet?in_reply_to="+q.tweet_id;q.retweet_url=q.twitter_base+"intent/retweet?tweet_id="+q.tweet_id;q.favorite_url=q.twitter_base+"intent/favorite?tweet_id="+q.tweet_id;q.retweeted_screen_name=q.retweet&&p.retweeted_status.user.screen_name;q.tweet_relative_time=i(q.tweet_time);q.entities=p.entities?(p.entities.urls||[]).concat(p.entities.media||[]):[];q.tweet_raw_text=q.retweet?("RT @"+q.retweeted_screen_name+" "+p.retweeted_status.text):p.text;q.tweet_text=a([l(q.tweet_raw_text,q.entities)]).linkUser().linkHash()[0];q.tweet_text_fancy=a([q.tweet_text]).makeHeart().capAwesome().capEpic()[0];q.user=e('<a class="tweet_user" href="{user_url}">{screen_name}</a>',q);q.join=d.join_text?e(' <span class="tweet_join">{join_text}</span> ',q):" ";q.avatar=q.avatar_size?e('<a class="tweet_avatar" href="{user_url}"><img src="{avatar_url}" height="{avatar_size}" width="{avatar_size}" alt="{screen_name}\'s avatar" title="{screen_name}\'s avatar" border="0"/></a>',q):"";q.time=e('<span class="tweet_time"><a href="{tweet_url}" title="view tweet on twitter">{tweet_relative_time}</a></span>',q);q.text=e('<span class="tweet_text">{tweet_text_fancy}</span>',q);q.reply_action=e('<a class="tweet_action tweet_reply" href="{reply_url}">reply</a>',q);q.retweet_action=e('<a class="tweet_action tweet_retweet" href="{retweet_url}">retweet</a>',q);q.favorite_action=e('<a class="tweet_action tweet_favorite" href="{favorite_url}">favorite</a>',q);return q}return this.each(function(o,t){var s=a('<ul class="tweet_list">');var q='<p class="tweet_intro">'+d.intro_text+"</p>";var r='<p class="tweet_outro">'+d.outro_text+"</p>";var p=a('<p class="loading">'+d.loading_text+"</p>");if(d.username&&typeof(d.username)=="string"){d.username=[d.username]}a(t).bind("tweet:load",function(){if(d.loading_text){a(t).empty().append(p)}a.getJSON(b(),function(u){a(t).empty().append(s);if(d.intro_text){s.before(q)}s.empty();var v=a.map(u.results||u,c);v=a.grep(v,d.filter).sort(d.comparator).slice(0,d.count);s.append(a.map(v,function(w){return"<li>"+e(d.template,w)+"</li>"}).join("")).children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd");if(d.outro_text){s.after(r)}a(t).trigger("loaded").trigger((v.length===0?"empty":"full"));if(d.refresh_interval){window.setTimeout(function(){a(t).trigger("tweet:load")},1000*d.refresh_interval)}})}).trigger("tweet:load")})}})(jQuery);var pathExpressInstallFile=escape("/lib/flash/expressInstall.swf");function initHyperlinks(){$("a[rel=external]").each(function(){$(this).click(function(){window.open($(this).attr("href"));return false});if($(this).attr("title")==""){$(this).attr("title","Deze link wordt in een nieuw venster geopend.")}else{$(this).attr("title","'"+$(this).attr("title")+"' wordt in een nieuw venster geopend.")}})}function initContentFlash(){$(".contentflash").each(function(){if($(this).find("a").length>0){var a=$(this).find("a").attr("rel").split("|");$(this).flashembed({src:a[0],version:[9],width:parseFloat(a[2]),height:parseFloat(a[3]),expressInstall:pathExpressInstallFile,wmode:"transparent",scale:"noscale",onFail:function(){alert("You need version 20.0 to view this content")}})}})}function initNyromodal(){$.fn.nyroModal.settings.regexImg="[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$|image.aspx";$.fn.nyroModal.settings.minWidth=0;$.fn.nyroModal.settings.minHeight=0;$.fn.nyroModal.settings.endShowContent=function(){initContentFlash();fotoboek()};if($.browser.msie&&$.browser.version=="6.0"){$.fn.nyroModal.settings.minWidth="500";$.fn.nyroModal.settings.minHeight="500"}else{$.fn.nyroModal.settings.minWidth="100";$.fn.nyroModal.settings.minHeight="100"}$("a[href*='#nyro']").click(function(){var a=$(this).attr("href");if(a.indexOf("googlemaps")>0){a="/?template=googlemaps_nyro.htm"}$.nyroModalManual({url:a});return false});$("a[href*='fid=']").click(function(){var a=$(this).attr("href")+"#nyro";$.nyroModalManual({url:a,height:"505",width:"790"});return false})}function initIE6(){$("#nav li").each(function(){$(this).hover(function(){$(this).addClass("sfhover")},function(){$(this).removeClass("sfhover")})})}function initForms(){$("#directtonen").find(".ui-selectmenu-status").css({border:"4px solid #ff0000"});$("form.validate_growschedulecalculator").validate();$("form.validate_kiesdirectproduct").validate({showErrors:function(c,b){for(var a in b){$(b[a].element).next().find(".ui-selectmenu-status").css({border:"1px solid #ff0000"})}}});$("form.validatesearch").validate();$("#frmContact").validate();$("form.validate").validate();$(".paragraph form").each(function(){$(this).validate();$(this).find(".frmRow").each(function(){var b=$(this).find(".required");var a=b.parents(".frmRow").find("label");a.html(a.text()+'<span class="verplicht"></span>')})})}function initFAQ(){$("#faq_select_cat").change(function(){$("#faq_cat_form").submit();return false});$("a.active.childs").click(function(){$(this).next().slideToggle("300").end().toggleClass("active");return false})}function initProducthover(){$(".product").hover(function(){rel_thema_css=$(this).attr("rel");if(!rel_thema_css){rel_thema_css=thema_css}$(this).find(".text").addClass("color"+rel_thema_css);$(this).css("cursor","pointer")},function(){rel_thema_css=$(this).attr("rel");if(!rel_thema_css){rel_thema_css=thema_css}$(this).find(".text").removeClass("color"+rel_thema_css);$(this).css("cursor","default")});$(".product").click(function(){var a=$(this).find("a").attr("href");location.href=a;return false})}function initDownloadshover(){$(".downloadoverzicht").hover(function(){$(this).addClass("downloadhover");$(this).css("cursor","pointer")},function(){$(this).removeClass("downloadhover");$(this).css("cursor","default")});$(".downloadoverzicht").click(function(){var a=$(this).find("a").attr("href");location.href=a;return false})}function initKweekstijlKolomHover(){$(".overzicht .variant").click(function(){location.href=$(this).find("a.ontdek").attr("href");return false});$(".overzicht .variant").hover(function(){$(this).parents(".overzicht").find(".shadowvariant").hide();$(this).stop().animate({top:0},200,function(){});$(this).css("cursor","pointer")},function(){if(!$(this).parents(".overzicht").hasClass("overzicht1")){$(this).parents(".overzicht").find(".shadowvariant").show()}$(this).stop().animate({top:"-30px"},200,function(){})})}function initScrollbar(){$(function(){$(".scroll-pane").jScrollPane()})}function fotoboek(){$(".scrollable .items").css({width:"20000em",position:"absolute",clear:"both"});$(".scrollable").css({"margin-left":"0",height:"90px"});$("#photobook_previous").addClass("disabled prev browse left");$("#photobook_next").addClass("disabled next browse right");$("div.scrollable").scrollable();$(".items img").click(function(){var a=$(this).parent().attr("href");var d=$(this).parent().attr("title");var b=$("#image_wrap").fadeTo("medium",0.5);var c=new Image();c.onload=function(){b.fadeTo("fast",0,function(){b.find("img").attr("src",a);b.fadeTo("fast",1)})};c.src=a;$(".description").text(d);return false}).filter(":first").click()}function initTwitter(){jQuery("#tweets").tweet({query:"plagron OR #plagron",count:3,template:"{time}<h2>{user} schreef:</h2>{text}",loading_text:"tweets laden..."}).bind("empty",function(){$(this).append("Geen tweets gevonden.")})}function initPaging(){var a=$(".paging");var b=a.find("ul").width();var c=a.width();a.css("margin-left",(c-b)/2+"px")}function hoverProductIcons(){$(".blokicon").each(function(){$(this).hover(function(){$(this).find("div.tooltip").show()},function(){$(this).find("div.tooltip").hide()})})}function fillSubCategories(d){var e=$("#selecteerCategorie");var a=d;var c="none";var b=$("#selecteerSubCategorie");if(a!=undefined){if(d!=""){$.getJSON("/ajax/ProductSubcategorie.ashx?themaID="+a+"&themaTitel="+escape(a),function(f){b.selectmenu("destroy");b.empty();b.append("<option value=''>product</option>");$.each(f.SubCategorieen,function(g,h){b.append("<option value='"+h.url+"'>"+h.titel+"</option>")});b.selectmenu({style:"dropdown",menuWidth:200})})}else{b.selectmenu("destroy");b.empty();b.append("<option value=''>product</option>");b.selectmenu({style:"dropdown",menuWidth:200})}}}function initProductSelector(){$("#selecteerCategorie").val("");$("#selecteerCategorie").change(function(){fillSubCategories()});$("#toondirectproduct").click(function(){var a=$("#selecteerSubCategorie").val();if(a==""){a="/"+culture+"/"+sitecategorieid+"/46/producten.aspx"}$(this).parents("form").attr("action",a).submit();return false})}function changeSelect(){$(".homepage #productselector #selecteerCategorie").selectmenu({style:"dropdown",menuWidth:264,select:function(b){fillSubCategories(this.value)}});var a=$("#selecteerSubCategorie");a.selectmenu("destroy");a.empty();a.append("<option value=''>product</option>");$("#productselector #selecteerSubCategorie").selectmenu({style:"dropdown",menuWidth:200});$("#gsc_kweekstijlen").val("");$("#gsc_type").val("");$("#gsc_growweek").val("");$("#gsc_bloomweek").val("");$("#gsc_kweekstijlen").selectmenu({style:"dropdown",menuWidth:264,select:function(b){}});$("#gsc_type").selectmenu({style:"dropdown",menuWidth:264});$("#gsc_growweek").selectmenu({style:"dropdown",menuWidth:264});$("#gsc_bloomweek").selectmenu({style:"dropdown",menuWidth:264});$("#directtonen #selecteerCategorie").selectmenu({style:"dropdown",menuWidth:264,select:function(b){fillSubCategories(this.value)}});$("#directtonen #selecteerSubCategorie").selectmenu({style:"dropdown",menuWidth:264})}function setIconClass(){$("#iconen .blokicon").each(function(){var a=$(this).find("img").attr("alt");$(this).find(".tooltip").addClass("tooltip_"+a)})}function initZoekveld(){var a=$("#frmZoek_zoekwoord").css("color");$("#frmZoek_zoekwoord").focus(function(){if($(this).val()=="zoeken"){$(this).val("").css("color","#000")}});$("#frmZoek_zoekwoord").blur(function(){if($(this).val()==""){$(this).val("zoeken").css("color",a)}});var a=$("#txtEmail").css("color");$("#txtEmail").focus(function(){if($(this).val()=="e-mailadres"){$(this).val("").css("color","#000")}});$("#txtEmail").blur(function(){if($(this).val()==""){$(this).val("e-mailadres").css("color",a)}})}function showProductKweekstijl(d){var c="Dit substraat past het beste bij je";if(d.heeftMeerdereProducten()){c="Deze substraten passen het beste bij je"}$(".uitkomst h3").text(c);var a=d.producten[0];$(".finalstepproduct h2").text(a.name);$(".finalstepproduct h3").text(a.subname);$(".finalstepproduct h4").text(a.cat);$(".finalstepproduct img").attr("src",a.image);$(".finalstepproduct a").attr("href",a.link);if(d.heeftMeerdereProducten()){$(".singleResult").hide();$(".doubleResult").show();var b=d.producten[1];$(".finalstepproduct .second h2").text(b.name);$(".finalstepproduct .second h3").text(b.subname);$(".finalstepproduct .second h4").text(b.cat);$(".finalstepproduct .second img").attr("src",b.image);$(".finalstepproduct .second a").attr("href",b.link)}else{$(".doubleResult").hide();$(".singleResult").show()}}var stepFactory=new StepFactory();function growScheduleStep2(){$(".step1 a").removeClass("active");$(this).addClass("active");$(".step2").slideDown();$(".step3").hide();$(".step4").hide();$(".step5").hide();$(".uitlegsteps").fadeOut();$(".step2 a").removeClass("active");var b=$(".step1 a.active").attr("rel");var a;var c;stepTwo=stepFactory.getStep(2,b);fillQuestion(stepTwo.question);fillAnswers("2",stepTwo.answers);return false}function growScheduleStep3(){$(".step5").hide();$(".step2 a").removeClass("active");$(this).addClass("active");$(".step3 a").removeClass("active");$(".step3").slideDown();var a=$(".step2 a.active").attr("rel");var b;var c;stepTwo=stepFactory.getStep(3,a);fillQuestion(stepTwo.question);fillAnswers("3",stepTwo.answers);return false}function fillAnswers(a,b){$(".step"+a+" .links li a.first").html(b[0]);$(".step"+a+" .links li a.first").attr("rel",b[0]);$(".step"+a+" .links li a.second").html(b[1]);$(".step"+a+" .links li a.second").attr("rel",b[1])}function fillQuestion(a){$(".step"+a.index+" .contentsteps span").text(a.index+".");$(".step"+a.index+" .contentsteps h2").text(a.question);$(".step"+a.index+" .contentsteps p").html(a.description)}StepFactory.prototype.getStep=function(a,c){var b;switch(a){case 2:b=this.getStepTwo(c);break;case 3:b=this.getStepThree(c);break}return b};StepFactory.prototype.getStepTwo=function(c){var b;var a=new Array();if(c=="smaak"){b=new Question("2","aantal planten?","De keuze van je substraat wordt mede be&iuml;nvloed door de plantdichtheid. Je hebt een substraat nodig dat aan je hoeveelheid planten is aangepast.");a.push("veel planten per m&sup2;");a.push("weinig planten per m&sup2;")}else{if(c=="opbrengst"){b=new Question("2","ervaring?","Als je een onervaren kweker bent, dan adviseren we je een voorbemest substraat. Een niet voorbemest substraat moet je zelf bemesten. Dit vereist ervaring.");a.push("niet ervaren");a.push("ervaren")}}return new Step(b,a)};StepFactory.prototype.getStepThree=function(c){var b;var a=new Array();switch(c){case"veel planten per m&sup2;":b=new Question("3","voorbemest?","Als je een onervaren kweker bent of als je houdt van snel en makkelijk, dan adviseren we je een voorbemest substraat. Een niet voorbemest substraat moet je zelf bemesten.");a.push("voorbemest");a.push("niet voorbemest");break;case"weinig planten per m&sup2;":b=new Question("3","Extra fosfor en ijzer?","Een substraat met extra toegevoegde fosfor en ijzer zorgt voor een extra bijzondere smaak.");a.push("ja");a.push("nee");break;case"ervaren":b=new Question("3","oorsprong?","Plagron heeft substraten van natuurlijke oorsprong, zoals Cocos Premium, en inerte substraten.");a.push("natuurlijke oorsprong");a.push("geen natuurlijke oorsprong");break;case"niet ervaren":b=new Question("3","voorbemest?","Als je een onervaren kweker bent of als je houdt van snel en makkelijk, dan adviseren we je een voorbemest substraat. Een niet voorbemest substraat moet je zelf bemesten.");a.push("1 week voorbemest");a.push("3 weken voorbemest incl. wormenhumus");break}return new Step(b,a)};function StepFactory(){}function Resultaat(){this.producten=new Array()}Resultaat.prototype.addProduct=function(a){this.producten.push(a)};Resultaat.prototype.heeftMeerdereProducten=function(){return this.producten.length>1};function Product(){this.name;this.subname;this.cat;this.link;this.image}function Question(a,b,c){this.index=a;this.question=b;this.description=c}function Step(a,b){this.question=a;this.answers=b}function growScheduleResult(){$(".step3 a").removeClass("active");$(this).addClass("active");showProductKweekstijl(getRecommendedProduct());$(".step5").fadeIn();return false}function calculatorIsReadyForResult(){return $(".schedulecontentwrapper a.active").length==3}function getRecommendedProduct(){var c=$(".step3 a.active").attr("rel");var b=new Resultaat();switch(c){case"niet voorbemest":var a=new Product();a.name="100% BIO promix.";a.image="/lib/images/100BIOPromix.png";a.link="/"+culture+"/product/1/46/4/promix.aspx";a.cat="non fertilised";a.subname="substrate";b.addProduct(a);break;case"voorbemest":var a=new Product();a.name="100% BIO plagron allmix.";a.image="/lib/images/100BIOAllmix.png";a.link="/"+culture+"/product/1/46/7/plagron-allmix.aspx";a.cat="fertilised";a.subname="substrate";b.addProduct(a);break;case"nee":var a=new Product();a.name="100% BIO royalmix.";a.image="/lib/images/100BIORoyalmix.png";a.link="/"+culture+"/product/1/46/5/royalmix.aspx";a.cat="fertilised";a.subname="substrate";b.addProduct(a);break;case"ja":var a=new Product();a.name="100% BIO batmix.";a.image="/lib/images/100BIOBatmix.png";a.link="/"+culture+"/product/1/46/6/batmix.aspx";a.cat="fertilised";a.subname="substrate";b.addProduct(a);break;case"1 week voorbemest":var a=new Product();a.name="100% TERRA lightmix.";a.image="/lib/images/100TERRALightmix.png";a.link="/"+culture+"/product/1/46/11/lightmix.aspx";a.cat="fertilised";a.subname="substrate";b.addProduct(a);break;case"3 weken voorbemest incl. wormenhumus":var a=new Product();a.name="100% TERRA growmix.";a.image="/lib/images/100TERRAGrowmix.png";a.link="/"+culture+"/product/1/46/1/growmix.aspx";a.cat="fertilised";a.subname="substrate";b.addProduct(a);break;case"natuurlijke oorsprong":var a=new Product();a.name="100% COCO cocos premium.";a.image="/lib/images/100COCOCocos.png";a.link="/"+culture+"/product/1/46/27/cocos-premium.aspx";a.cat="non fertilised";a.subname="substrate";b.addProduct(a);break;case"geen natuurlijke oorsprong":var a=new Product();a.name="100% HYDRO euro pebbles.";a.image="/lib/images/100PebblesEuro.png";a.link="/"+culture+"/product/1/46/16/euro-pebbles.aspx";a.cat="non fertilised";a.subname="substrate";b.addProduct(a);var a=new Product();a.name="100% HYDRO euro foam.";a.image="/lib/images/100HydroEuro.png";a.link="/"+culture+"/product/1/46/15/euro-foam.aspx";a.cat="non fertilised";a.subname="substrate";b.addProduct(a);break}return b}function growScheduleSteps(){if($(".schedulesteps_kweekstijl").length>0){$(".step2").hide();$(".step3").hide();$(".step4").hide();$(".step5").hide();$(".step1 a").click(growScheduleStep2);$(".step2 a").live("click",growScheduleStep3);$(".step3 a").live("click",growScheduleResult)}}function initGrowScheduleCalculator(){$("#gsc_kweekstijlen").change(function(){var b=$(this);var a=$("#gsc_type");if(b.val()==""){a.empty()}else{$.getJSON("/ajax/growgguidschedule.ashx?kweekstijl="+b.val(),function(c){a.empty();a.append("<option value=''>welk substraat?</option>");$.each(c.SubStraat,function(d,e){a.append("<option value='"+e.titel+"'>"+e.titel+"</option>")});$("#gsc_type").selectmenu("destroy");$("#gsc_type").selectmenu({style:"dropdown",menuWidth:264})})}})}$(document).ready(function(){initHyperlinks();initIE6();initContentFlash();initNyromodal();initForms();initFAQ();initProducthover();initKweekstijlKolomHover();initScrollbar();initDownloadshover();initTwitter();initPaging();hoverProductIcons();initProductSelector();setIconClass();initZoekveld();initGrowScheduleCalculator();growScheduleSteps();initDisqus();changeSelect()});function initDisqus(){};
