(function(b,a){function d(e,i,l){if(l===a&&e.nodeType===1){l="data-"+i.replace(ra,"$1-$2").toLowerCase();l=e.getAttribute(l);if(typeof l==="string"){try{l=l==="true"?true:l==="false"?false:l==="null"?null:!j.isNaN(l)?parseFloat(l):pa.test(l)?j.parseJSON(l):l}catch(m){}j.data(e,i,l)}else l=a}return l}function f(e){for(var i in e)if(i!=="toJSON")return false;return true}function g(e,i,l){var m=i+"defer",n=i+"queue",r=i+"mark",v=j.data(e,m,a,true);if(v&&(l==="queue"||!j.data(e,n,a,true))&&(l==="mark"||
!j.data(e,r,a,true)))setTimeout(function(){if(!j.data(e,n,a,true)&&!j.data(e,r,a,true)){j.removeData(e,m,true);v.resolve()}},0)}function c(){return false}function h(){return true}function k(e,i,l){var m=j.extend({},l[0]);m.type=e;m.originalEvent={};m.liveFired=a;j.event.handle.call(i,m);m.isDefaultPrevented()&&l[0].preventDefault()}function o(e){var i,l,m,n,r,v,C,E,H,O,ga,oa=[];n=[];r=j._data(this,"events");if(!(e.liveFired===this||!r||!r.live||e.target.disabled||e.button&&e.type==="click")){if(e.namespace)ga=
RegExp("(^|\\.)"+e.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");e.liveFired=this;var ma=r.live.slice(0);for(C=0;C<ma.length;C++){r=ma[C];r.origType.replace(na,"")===e.type?n.push(r.selector):ma.splice(C--,1)}n=j(e.target).closest(n,e.currentTarget);E=0;for(H=n.length;E<H;E++){O=n[E];for(C=0;C<ma.length;C++){r=ma[C];if(O.selector===r.selector&&(!ga||ga.test(r.namespace))&&!O.elem.disabled){v=O.elem;m=null;if(r.preType==="mouseenter"||r.preType==="mouseleave"){e.type=r.preType;if((m=j(e.relatedTarget).closest(r.selector)[0])&&
j.contains(v,m))m=v}if(!m||m!==v)oa.push({elem:v,handleObj:r,level:O.level})}}}E=0;for(H=oa.length;E<H;E++){n=oa[E];if(l&&n.level>l)break;e.currentTarget=n.elem;e.data=n.handleObj.data;e.handleObj=n.handleObj;ga=n.handleObj.origHandler.apply(n.elem,arguments);if(ga===false||e.isPropagationStopped()){l=n.level;if(ga===false)i=false;if(e.isImmediatePropagationStopped())break}}return i}}function q(e,i){return(e&&e!=="*"?e+".":"")+i.replace(ta,"`").replace(ua,"&")}function x(e,i,l){i=i||0;if(j.isFunction(i))return j.grep(e,
function(n,r){return!!i.call(n,r,n)===l});else if(i.nodeType)return j.grep(e,function(n){return n===i===l});else if(typeof i==="string"){var m=j.grep(e,function(n){return n.nodeType===1});if(Gb.test(i))return j.filter(i,m,!l);else i=j.filter(i,m)}return j.grep(e,function(n){return j.inArray(n,i)>=0===l})}function s(e,i){if(!(i.nodeType!==1||!j.hasData(e))){var l=j.expando,m=j.data(e),n=j.data(i,m);if(m=m[l]){var r=m.events;n=n[l]=j.extend({},m);if(r){delete n.handle;n.events={};for(var v in r){l=
0;for(m=r[v].length;l<m;l++)j.event.add(i,v+(r[v][l].namespace?".":"")+r[v][l].namespace,r[v][l],r[v][l].data)}}}}}function p(e,i){var l;if(i.nodeType===1){i.clearAttributes&&i.clearAttributes();i.mergeAttributes&&i.mergeAttributes(e);l=i.nodeName.toLowerCase();if(l==="object")i.outerHTML=e.outerHTML;else if(l==="input"&&(e.type==="checkbox"||e.type==="radio")){if(e.checked)i.defaultChecked=i.checked=e.checked;if(i.value!==e.value)i.value=e.value}else if(l==="option")i.selected=e.defaultSelected;
else if(l==="input"||l==="textarea")i.defaultValue=e.defaultValue;i.removeAttribute(j.expando)}}function w(e){return"getElementsByTagName"in e?e.getElementsByTagName("*"):"querySelectorAll"in e?e.querySelectorAll("*"):[]}function A(e){if(e.type==="checkbox"||e.type==="radio")e.defaultChecked=e.checked}function D(e){if(j.nodeName(e,"input"))A(e);else"getElementsByTagName"in e&&j.grep(e.getElementsByTagName("input"),A)}function K(e,i){i.src?j.ajax({url:i.src,async:false,dataType:"script"}):j.globalEval((i.text||
i.textContent||i.innerHTML||"").replace(Hb,"/*$0*/"));i.parentNode&&i.parentNode.removeChild(i)}function R(e,i,l){var m=i==="width"?e.offsetWidth:e.offsetHeight,n=i==="width"?Ib:Jb;if(m>0){l!=="border"&&j.each(n,function(){l||(m-=parseFloat(j.css(e,"padding"+this))||0);if(l==="margin")m+=parseFloat(j.css(e,l+this))||0;else m-=parseFloat(j.css(e,"border"+this+"Width"))||0});return m+"px"}m=Xa(e,i,i);if(m<0||m==null)m=e.style[i]||0;m=parseFloat(m)||0;l&&j.each(n,function(){m+=parseFloat(j.css(e,"padding"+
this))||0;if(l!=="padding")m+=parseFloat(j.css(e,"border"+this+"Width"))||0;if(l==="margin")m+=parseFloat(j.css(e,l+this))||0});return m+"px"}function Q(e){return function(i,l){if(typeof i!=="string"){l=i;i="*"}if(j.isFunction(l))for(var m=i.toLowerCase().split(pb),n=0,r=m.length,v,C;n<r;n++){v=m[n];if(C=/^\+/.test(v))v=v.substr(1)||"*";v=e[v]=e[v]||[];v[C?"unshift":"push"](l)}}}function ba(e,i,l,m,n,r){n=n||i.dataTypes[0];r=r||{};r[n]=true;n=e[n];for(var v=0,C=n?n.length:0,E=e===ib,H;v<C&&(E||!H);v++){H=
n[v](i,l,m);if(typeof H==="string")if(!E||r[H])H=a;else{i.dataTypes.unshift(H);H=ba(e,i,l,m,H,r)}}if((E||!H)&&!r["*"])H=ba(e,i,l,m,"*",r);return H}function ea(e,i,l,m){if(j.isArray(i))j.each(i,function(r,v){l||Kb.test(e)?m(e,v):ea(e+"["+(typeof v==="object"||j.isArray(v)?r:"")+"]",v,l,m)});else if(!l&&i!=null&&typeof i==="object")for(var n in i)ea(e+"["+n+"]",i[n],l,m);else m(e,i)}function $(){try{return new b.XMLHttpRequest}catch(e){}}function fa(){setTimeout(Z,0);return db=j.now()}function Z(){db=
a}function ha(e,i){var l={};j.each(qb.concat.apply([],qb.slice(0,i)),function(){l[this]=e});return l}function sa(e){if(!jb[e]){var i=T.body,l=j("<"+e+">").appendTo(i),m=l.css("display");l.remove();if(m==="none"||m===""){if(!La){La=T.createElement("iframe");La.frameBorder=La.width=La.height=0}i.appendChild(La);if(!Ya||!La.createElement){Ya=(La.contentWindow||La.contentDocument).document;Ya.write((T.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");Ya.close()}l=Ya.createElement(e);Ya.body.appendChild(l);
m=j.css(l,"display");i.removeChild(La)}jb[e]=m}return jb[e]}function za(e){return j.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}var T=b.document,Ha=b.navigator,Ea=b.location,j=function(){function e(){if(!i.isReady){try{T.documentElement.doScroll("left")}catch(y){setTimeout(e,1);return}i.ready()}}var i=function(y,P){return new i.fn.init(y,P,n)},l=b.jQuery,m=b.$,n,r=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/\S/,C=/^\s+/,E=/\s+$/,H=/\d/,O=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ga=/^[\],:{}\s]*$/,
oa=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ma=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qa=/(?:^|:|,)(?:\s*\[)+/g,Ra=/(webkit)[ \/]([\w.]+)/,Aa=/(opera)(?:.*version)?[ \/]([\w.]+)/,Ba=/(msie) ([\w.]+)/,Ma=/(mozilla)(?:.*? rv:([\w.]+))?/,u=/-([a-z])/ig,z=function(y,P){return P.toUpperCase()},I=Ha.userAgent,M,G,L=Object.prototype.toString,U=Object.prototype.hasOwnProperty,X=Array.prototype.push,ia=Array.prototype.slice,Ga=String.prototype.trim,xa=Array.prototype.indexOf,ya={};
i.fn=i.prototype={constructor:i,init:function(y,P,aa){var W;if(!y)return this;if(y.nodeType){this.context=this[0]=y;this.length=1;return this}if(y==="body"&&!P&&T.body){this.context=T;this[0]=T.body;this.selector=y;this.length=1;return this}if(typeof y==="string")if((W=y.charAt(0)==="<"&&y.charAt(y.length-1)===">"&&y.length>=3?[null,y,null]:r.exec(y))&&(W[1]||!P))if(W[1]){aa=(P=P instanceof i?P[0]:P)?P.ownerDocument||P:T;if(y=O.exec(y))if(i.isPlainObject(P)){y=[T.createElement(y[1])];i.fn.attr.call(y,
P,true)}else y=[aa.createElement(y[1])];else{y=i.buildFragment([W[1]],[aa]);y=(y.cacheable?i.clone(y.fragment):y.fragment).childNodes}return i.merge(this,y)}else{if((P=T.getElementById(W[2]))&&P.parentNode){if(P.id!==W[2])return aa.find(y);this.length=1;this[0]=P}this.context=T;this.selector=y;return this}else return!P||P.jquery?(P||aa).find(y):this.constructor(P).find(y);else if(i.isFunction(y))return aa.ready(y);if(y.selector!==a){this.selector=y.selector;this.context=y.context}return i.makeArray(y,
this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return ia.call(this,0)},get:function(y){return y==null?this.toArray():y<0?this[this.length+y]:this[y]},pushStack:function(y,P,aa){var W=this.constructor();i.isArray(y)?X.apply(W,y):i.merge(W,y);W.prevObject=this;W.context=this.context;if(P==="find")W.selector=this.selector+(this.selector?" ":"")+aa;else if(P)W.selector=this.selector+"."+P+"("+aa+")";return W},each:function(y,P){return i.each(this,y,P)},
ready:function(y){i.bindReady();M.done(y);return this},eq:function(y){return y===-1?this.slice(y):this.slice(y,+y+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ia.apply(this,arguments),"slice",ia.call(arguments).join(","))},map:function(y){return this.pushStack(i.map(this,function(P,aa){return y.call(P,aa,P)}))},end:function(){return this.prevObject||this.constructor(null)},push:X,sort:[].sort,splice:[].splice};i.fn.init.prototype=
i.fn;i.extend=i.fn.extend=function(){var y,P,aa,W,ja,la=arguments[0]||{},va=1,wa=arguments.length,Oa=false;if(typeof la==="boolean"){Oa=la;la=arguments[1]||{};va=2}if(typeof la!=="object"&&!i.isFunction(la))la={};if(wa===va){la=this;--va}for(;va<wa;va++)if((y=arguments[va])!=null)for(P in y){aa=la[P];W=y[P];if(la!==W)if(Oa&&W&&(i.isPlainObject(W)||(ja=i.isArray(W)))){if(ja){ja=false;aa=aa&&i.isArray(aa)?aa:[]}else aa=aa&&i.isPlainObject(aa)?aa:{};la[P]=i.extend(Oa,aa,W)}else if(W!==a)la[P]=W}return la};
i.extend({noConflict:function(y){if(b.$===i)b.$=m;if(y&&b.jQuery===i)b.jQuery=l;return i},isReady:false,readyWait:1,holdReady:function(y){if(y)i.readyWait++;else i.ready(true)},ready:function(y){if(y===true&&!--i.readyWait||y!==true&&!i.isReady){if(!T.body)return setTimeout(i.ready,1);i.isReady=true;if(!(y!==true&&--i.readyWait>0)){M.resolveWith(T,[i]);i.fn.trigger&&i(T).trigger("ready").unbind("ready")}}},bindReady:function(){if(!M){M=i._Deferred();if(T.readyState==="complete")return setTimeout(i.ready,
1);if(T.addEventListener){T.addEventListener("DOMContentLoaded",G,false);b.addEventListener("load",i.ready,false)}else if(T.attachEvent){T.attachEvent("onreadystatechange",G);b.attachEvent("onload",i.ready);var y=false;try{y=b.frameElement==null}catch(P){}T.documentElement.doScroll&&y&&e()}}},isFunction:function(y){return i.type(y)==="function"},isArray:Array.isArray||function(y){return i.type(y)==="array"},isWindow:function(y){return y&&typeof y==="object"&&"setInterval"in y},isNaN:function(y){return y==
null||!H.test(y)||isNaN(y)},type:function(y){return y==null?String(y):ya[L.call(y)]||"object"},isPlainObject:function(y){if(!y||i.type(y)!=="object"||y.nodeType||i.isWindow(y))return false;if(y.constructor&&!U.call(y,"constructor")&&!U.call(y.constructor.prototype,"isPrototypeOf"))return false;for(var P in y);return P===a||U.call(y,P)},isEmptyObject:function(y){for(var P in y)return false;return true},error:function(y){throw y;},parseJSON:function(y){if(typeof y!=="string"||!y)return null;y=i.trim(y);
if(b.JSON&&b.JSON.parse)return b.JSON.parse(y);if(ga.test(y.replace(oa,"@").replace(ma,"]").replace(qa,"")))return(new Function("return "+y))();i.error("Invalid JSON: "+y)},parseXML:function(y,P,aa){if(b.DOMParser){aa=new DOMParser;P=aa.parseFromString(y,"text/xml")}else{P=new ActiveXObject("Microsoft.XMLDOM");P.async="false";P.loadXML(y)}aa=P.documentElement;if(!aa||!aa.nodeName||aa.nodeName==="parsererror")i.error("Invalid XML: "+y);return P},noop:function(){},globalEval:function(y){if(y&&v.test(y))(b.execScript||
function(P){b.eval.call(b,P)})(y)},camelCase:function(y){return y.replace(u,z)},nodeName:function(y,P){return y.nodeName&&y.nodeName.toUpperCase()===P.toUpperCase()},each:function(y,P,aa){var W,ja=0,la=y.length,va=la===a||i.isFunction(y);if(aa)if(va)for(W in y){if(P.apply(y[W],aa)===false)break}else for(;ja<la;){if(P.apply(y[ja++],aa)===false)break}else if(va)for(W in y){if(P.call(y[W],W,y[W])===false)break}else for(;ja<la;)if(P.call(y[ja],ja,y[ja++])===false)break;return y},trim:Ga?function(y){return y==
null?"":Ga.call(y)}:function(y){return y==null?"":y.toString().replace(C,"").replace(E,"")},makeArray:function(y,P){var aa=P||[];if(y!=null){var W=i.type(y);y.length==null||W==="string"||W==="function"||W==="regexp"||i.isWindow(y)?X.call(aa,y):i.merge(aa,y)}return aa},inArray:function(y,P){if(xa)return xa.call(P,y);for(var aa=0,W=P.length;aa<W;aa++)if(P[aa]===y)return aa;return-1},merge:function(y,P){var aa=y.length,W=0;if(typeof P.length==="number")for(var ja=P.length;W<ja;W++)y[aa++]=P[W];else for(;P[W]!==
a;)y[aa++]=P[W++];y.length=aa;return y},grep:function(y,P,aa){var W=[],ja;aa=!!aa;for(var la=0,va=y.length;la<va;la++){ja=!!P(y[la],la);aa!==ja&&W.push(y[la])}return W},map:function(y,P,aa){var W,ja,la=[],va=0,wa=y.length;if(y instanceof i||wa!==a&&typeof wa==="number"&&(wa>0&&y[0]&&y[wa-1]||wa===0||i.isArray(y)))for(;va<wa;va++){W=P(y[va],va,aa);if(W!=null)la[la.length]=W}else for(ja in y){W=P(y[ja],ja,aa);if(W!=null)la[la.length]=W}return la.concat.apply([],la)},guid:1,proxy:function(y,P){if(typeof P===
"string"){var aa=y[P];P=y;y=aa}if(!i.isFunction(y))return a;var W=ia.call(arguments,2);aa=function(){return y.apply(P,W.concat(ia.call(arguments)))};aa.guid=y.guid=y.guid||aa.guid||i.guid++;return aa},access:function(y,P,aa,W,ja,la){var va=y.length;if(typeof P==="object"){for(var wa in P)i.access(y,wa,P[wa],W,ja,aa);return y}if(aa!==a){W=!la&&W&&i.isFunction(aa);for(wa=0;wa<va;wa++)ja(y[wa],P,W?aa.call(y[wa],wa,ja(y[wa],P)):aa,la);return y}return va?ja(y[0],P):a},now:function(){return(new Date).getTime()},
uaMatch:function(y){y=y.toLowerCase();y=Ra.exec(y)||Aa.exec(y)||Ba.exec(y)||y.indexOf("compatible")<0&&Ma.exec(y)||[];return{browser:y[1]||"",version:y[2]||"0"}},sub:function(){function y(aa,W){return new y.fn.init(aa,W)}i.extend(true,y,this);y.superclass=this;y.fn=y.prototype=this();y.fn.constructor=y;y.sub=this.sub;y.fn.init=function(aa,W){if(W&&W instanceof i&&!(W instanceof y))W=y(W);return i.fn.init.call(this,aa,W,P)};y.fn.init.prototype=y.fn;var P=y(T);return y},browser:{}});i.each("Boolean Number String Function Array Date RegExp Object".split(" "),
function(y,P){ya["[object "+P+"]"]=P.toLowerCase()});I=i.uaMatch(I);if(I.browser){i.browser[I.browser]=true;i.browser.version=I.version}if(i.browser.webkit)i.browser.safari=true;if(v.test("\u00a0")){C=/^[\s\xA0]+/;E=/[\s\xA0]+$/}n=i(T);if(T.addEventListener)G=function(){T.removeEventListener("DOMContentLoaded",G,false);i.ready()};else if(T.attachEvent)G=function(){if(T.readyState==="complete"){T.detachEvent("onreadystatechange",G);i.ready()}};return i}(),Ca="done fail isResolved isRejected promise then always pipe".split(" "),
Fa=[].slice;j.extend({_Deferred:function(){var e=[],i,l,m,n={done:function(){if(!m){var r=arguments,v,C,E,H,O;if(i){O=i;i=0}v=0;for(C=r.length;v<C;v++){E=r[v];H=j.type(E);if(H==="array")n.done.apply(n,E);else H==="function"&&e.push(E)}O&&n.resolveWith(O[0],O[1])}return this},resolveWith:function(r,v){if(!m&&!i&&!l){v=v||[];l=1;try{for(;e[0];)e.shift().apply(r,v)}finally{i=[r,v];l=0}}return this},resolve:function(){n.resolveWith(this,arguments);return this},isResolved:function(){return!!(l||i)},cancel:function(){m=
1;e=[];return this}};return n},Deferred:function(e){var i=j._Deferred(),l=j._Deferred(),m;j.extend(i,{then:function(n,r){i.done(n).fail(r);return this},always:function(){return i.done.apply(i,arguments).fail.apply(this,arguments)},fail:l.done,rejectWith:l.resolveWith,reject:l.resolve,isRejected:l.isResolved,pipe:function(n,r){return j.Deferred(function(v){j.each({done:[n,"resolve"],fail:[r,"reject"]},function(C,E){var H=E[0],O=E[1],ga;if(j.isFunction(H))i[C](function(){if((ga=H.apply(this,arguments))&&
j.isFunction(ga.promise))ga.promise().then(v.resolve,v.reject);else v[O](ga)});else i[C](v[O])})}).promise()},promise:function(n){if(n==null){if(m)return m;m=n={}}for(var r=Ca.length;r--;)n[Ca[r]]=i[Ca[r]];return n}});i.done(l.cancel).fail(i.cancel);delete i.cancel;e&&e.call(i,i);return i},when:function(e){function i(C){return function(E){l[C]=arguments.length>1?Fa.call(arguments,0):E;--r||v.resolveWith(v,Fa.call(l,0))}}var l=arguments,m=0,n=l.length,r=n,v=n<=1&&e&&j.isFunction(e.promise)?e:j.Deferred();
if(n>1){for(;m<n;m++)if(l[m]&&j.isFunction(l[m].promise))l[m].promise().then(i(m),v.reject);else--r;r||v.resolveWith(v,l)}else if(v!==e)v.resolveWith(v,n?[e]:[]);return v.promise()}});j.support=function(){var e=T.createElement("div"),i=T.documentElement,l,m,n,r,v,C;e.setAttribute("className","t");e.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";l=e.getElementsByTagName("*");m=e.getElementsByTagName("a")[0];if(!l||!l.length||
!m)return{};n=T.createElement("select");r=n.appendChild(T.createElement("option"));l=e.getElementsByTagName("input")[0];v={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/top/.test(m.getAttribute("style")),hrefNormalized:m.getAttribute("href")==="/a",opacity:/^0.55$/.test(m.style.opacity),cssFloat:!!m.style.cssFloat,checkOn:l.value==="on",optSelected:r.selected,getSetAttribute:e.className!=="t",
submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};l.checked=true;v.noCloneChecked=l.cloneNode(true).checked;n.disabled=true;v.optDisabled=!r.disabled;try{delete e.test}catch(E){v.deleteExpando=false}if(!e.addEventListener&&e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){v.noCloneEvent=false});e.cloneNode(true).fireEvent("onclick")}l=T.createElement("input");l.value=
"t";l.setAttribute("type","radio");v.radioValue=l.value==="t";l.setAttribute("checked","checked");e.appendChild(l);m=T.createDocumentFragment();m.appendChild(e.firstChild);v.checkClone=m.cloneNode(true).cloneNode(true).lastChild.checked;e.innerHTML="";e.style.width=e.style.paddingLeft="1px";n=T.getElementsByTagName("body")[0];m=T.createElement(n?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0};n&&j.extend(r,{position:"absolute",left:-1E3,top:-1E3});for(C in r)m.style[C]=r[C];
m.appendChild(e);i=n||i;i.insertBefore(m,i.firstChild);v.appendChecked=l.checked;v.boxModel=e.offsetWidth===2;if("zoom"in e.style){e.style.display="inline";e.style.zoom=1;v.inlineBlockNeedsLayout=e.offsetWidth===2;e.style.display="";e.innerHTML="<div style='width:4px;'></div>";v.shrinkWrapBlocks=e.offsetWidth!==2}e.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";n=e.getElementsByTagName("td");l=n[0].offsetHeight===0;n[0].style.display="";n[1].style.display=
"none";v.reliableHiddenOffsets=l&&n[0].offsetHeight===0;e.innerHTML="";if(T.defaultView&&T.defaultView.getComputedStyle){l=T.createElement("div");l.style.width="0";l.style.marginRight="0";e.appendChild(l);v.reliableMarginRight=(parseInt((T.defaultView.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0}m.innerHTML="";i.removeChild(m);if(e.attachEvent)for(C in{submit:1,change:1,focusin:1}){i="on"+C;l=i in e;if(!l){e.setAttribute(i,"return;");l=typeof e[i]==="function"}v[C+"Bubbles"]=
l}m=m=n=r=n=l=e=l=null;return v}();j.boxModel=j.support.boxModel;var pa=/^(?:\{.*\}|\[.*\])$/,ra=/([a-z])([A-Z])/g;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?j.cache[e[j.expando]]:e[j.expando];return!!e&&!f(e)},data:function(e,i,l,m){if(j.acceptData(e)){var n=j.expando,r=typeof i==="string",v=e.nodeType,C=v?j.cache:e,E=v?e[j.expando]:e[j.expando]&&
j.expando;if(!((!E||m&&E&&!C[E][n])&&r&&l===a)){if(!E)if(v)e[j.expando]=E=++j.uuid;else E=j.expando;if(!C[E]){C[E]={};if(!v)C[E].toJSON=j.noop}if(typeof i==="object"||typeof i==="function")if(m)C[E][n]=j.extend(C[E][n],i);else C[E]=j.extend(C[E],i);e=C[E];if(m){e[n]||(e[n]={});e=e[n]}if(l!==a)e[j.camelCase(i)]=l;if(i==="events"&&!e[i])return e[n]&&e[n].events;return r?e[j.camelCase(i)]||e[i]:e}}},removeData:function(e,i,l){if(j.acceptData(e)){var m=j.expando,n=e.nodeType,r=n?j.cache:e,v=n?e[j.expando]:
j.expando;if(r[v]){if(i){var C=l?r[v][m]:r[v];if(C){delete C[i];if(!f(C))return}}if(l){delete r[v][m];if(!f(r[v]))return}i=r[v][m];if(j.support.deleteExpando||r!=b)delete r[v];else r[v]=null;if(i){r[v]={};if(!n)r[v].toJSON=j.noop;r[v][m]=i}else if(n)if(j.support.deleteExpando)delete e[j.expando];else if(e.removeAttribute)e.removeAttribute(j.expando);else e[j.expando]=null}}},_data:function(e,i,l){return j.data(e,i,l,true)},acceptData:function(e){if(e.nodeName){var i=j.noData[e.nodeName.toLowerCase()];
if(i)return!(i===true||e.getAttribute("classid")!==i)}return true}});j.fn.extend({data:function(e,i){var l=null;if(typeof e==="undefined"){if(this.length){l=j.data(this[0]);if(this[0].nodeType===1)for(var m=this[0].attributes,n,r=0,v=m.length;r<v;r++){n=m[r].name;if(n.indexOf("data-")===0){n=j.camelCase(n.substring(5));d(this[0],n,l[n])}}}return l}else if(typeof e==="object")return this.each(function(){j.data(this,e)});var C=e.split(".");C[1]=C[1]?"."+C[1]:"";if(i===a){l=this.triggerHandler("getData"+
C[1]+"!",[C[0]]);if(l===a&&this.length){l=j.data(this[0],e);l=d(this[0],e,l)}return l===a&&C[1]?this.data(C[0]):l}else return this.each(function(){var E=j(this),H=[C[0],i];E.triggerHandler("setData"+C[1]+"!",H);j.data(this,e,i);E.triggerHandler("changeData"+C[1]+"!",H)})},removeData:function(e){return this.each(function(){j.removeData(this,e)})}});j.extend({_mark:function(e,i){if(e){i=(i||"fx")+"mark";j.data(e,i,(j.data(e,i,a,true)||0)+1,true)}},_unmark:function(e,i,l){if(e!==true){l=i;i=e;e=false}if(i){l=
l||"fx";var m=l+"mark";if(e=e?0:(j.data(i,m,a,true)||1)-1)j.data(i,m,e,true);else{j.removeData(i,m,true);g(i,l,"mark")}}},queue:function(e,i,l){if(e){i=(i||"fx")+"queue";var m=j.data(e,i,a,true);if(l)if(!m||j.isArray(l))m=j.data(e,i,j.makeArray(l),true);else m.push(l);return m||[]}},dequeue:function(e,i){i=i||"fx";var l=j.queue(e,i),m=l.shift();if(m==="inprogress")m=l.shift();if(m){i==="fx"&&l.unshift("inprogress");m.call(e,function(){j.dequeue(e,i)})}if(!l.length){j.removeData(e,i+"queue",true);
g(e,i,"queue")}}});j.fn.extend({queue:function(e,i){if(typeof e!=="string"){i=e;e="fx"}if(i===a)return j.queue(this[0],e);return this.each(function(){var l=j.queue(this,e,i);e==="fx"&&l[0]!=="inprogress"&&j.dequeue(this,e)})},dequeue:function(e){return this.each(function(){j.dequeue(this,e)})},delay:function(e,i){e=j.fx?j.fx.speeds[e]||e:e;i=i||"fx";return this.queue(i,function(){var l=this;setTimeout(function(){j.dequeue(l,i)},e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e){function i(){--r||
l.resolveWith(m,[m])}if(typeof e!=="string")e=a;e=e||"fx";var l=j.Deferred(),m=this,n=m.length,r=1,v=e+"defer",C=e+"queue";e+="mark";for(var E;n--;)if(E=j.data(m[n],v,a,true)||(j.data(m[n],C,a,true)||j.data(m[n],e,a,true))&&j.data(m[n],v,j._Deferred(),true)){r++;E.done(i)}i();return l.promise()}});var Da=/[\n\t\r]/g,B=/\s+/,J=/\r/g,Y=/^(?:button|input)$/i,S=/^(?:button|input|object|select|textarea)$/i,F=/^a(?:rea)?$/i,N=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
V=/\:|^on/,ca,da;j.fn.extend({attr:function(e,i){return j.access(this,e,i,true,j.attr)},removeAttr:function(e){return this.each(function(){j.removeAttr(this,e)})},prop:function(e,i){return j.access(this,e,i,true,j.prop)},removeProp:function(e){e=j.propFix[e]||e;return this.each(function(){try{this[e]=a;delete this[e]}catch(i){}})},addClass:function(e){var i,l,m,n,r,v,C;if(j.isFunction(e))return this.each(function(E){j(this).addClass(e.call(this,E,this.className))});if(e&&typeof e==="string"){i=e.split(B);
l=0;for(m=this.length;l<m;l++){n=this[l];if(n.nodeType===1)if(!n.className&&i.length===1)n.className=e;else{r=" "+n.className+" ";v=0;for(C=i.length;v<C;v++)~r.indexOf(" "+i[v]+" ")||(r+=i[v]+" ");n.className=j.trim(r)}}}return this},removeClass:function(e){var i,l,m,n,r,v,C;if(j.isFunction(e))return this.each(function(E){j(this).removeClass(e.call(this,E,this.className))});if(e&&typeof e==="string"||e===a){i=(e||"").split(B);l=0;for(m=this.length;l<m;l++){n=this[l];if(n.nodeType===1&&n.className)if(e){r=
(" "+n.className+" ").replace(Da," ");v=0;for(C=i.length;v<C;v++)r=r.replace(" "+i[v]+" "," ");n.className=j.trim(r)}else n.className=""}}return this},toggleClass:function(e,i){var l=typeof e,m=typeof i==="boolean";if(j.isFunction(e))return this.each(function(n){j(this).toggleClass(e.call(this,n,this.className,i),i)});return this.each(function(){if(l==="string")for(var n,r=0,v=j(this),C=i,E=e.split(B);n=E[r++];){C=m?C:!v.hasClass(n);v[C?"addClass":"removeClass"](n)}else if(l==="undefined"||l==="boolean"){this.className&&
j._data(this,"__className__",this.className);this.className=this.className||e===false?"":j._data(this,"__className__")||""}})},hasClass:function(e){e=" "+e+" ";for(var i=0,l=this.length;i<l;i++)if((" "+this[i].className+" ").replace(Da," ").indexOf(e)>-1)return true;return false},val:function(e){var i,l,m=this[0];if(!arguments.length){if(m){if((i=j.valHooks[m.nodeName.toLowerCase()]||j.valHooks[m.type])&&"get"in i&&(l=i.get(m,"value"))!==a)return l;l=m.value;return typeof l==="string"?l.replace(J,
""):l==null?"":l}return a}var n=j.isFunction(e);return this.each(function(r){var v=j(this);if(this.nodeType===1){r=n?e.call(this,r,v.val()):e;if(r==null)r="";else if(typeof r==="number")r+="";else if(j.isArray(r))r=j.map(r,function(C){return C==null?"":C+""});i=j.valHooks[this.nodeName.toLowerCase()]||j.valHooks[this.type];if(!i||!("set"in i)||i.set(this,r,"value")===a)this.value=r}})}});j.extend({valHooks:{option:{get:function(e){var i=e.attributes.value;return!i||i.specified?e.value:e.text}},select:{get:function(e){var i,
l=e.selectedIndex,m=[],n=e.options;e=e.type==="select-one";if(l<0)return null;for(var r=e?l:0,v=e?l+1:n.length;r<v;r++){i=n[r];if(i.selected&&(j.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!j.nodeName(i.parentNode,"optgroup"))){i=j(i).val();if(e)return i;m.push(i)}}if(e&&!m.length&&n.length)return j(n[l]).val();return m},set:function(e,i){var l=j.makeArray(i);j(e).find("option").each(function(){this.selected=j.inArray(j(this).val(),l)>=0});if(!l.length)e.selectedIndex=
-1;return l}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(e,i,l,m){var n=e.nodeType;if(!e||n===3||n===8||n===2)return a;if(m&&i in j.attrFn)return j(e)[i](l);if(!("getAttribute"in e))return j.prop(e,i,l);var r,v;if(m=n!==1||!j.isXMLDoc(e)){i=j.attrFix[i]||i;v=j.attrHooks[i];if(!v)if(N.test(i))v=da;else if(ca&&i!=="className"&&(j.nodeName(e,"form")||V.test(i)))v=ca}if(l!==a)if(l===null){j.removeAttr(e,i);return a}else if(v&&
"set"in v&&m&&(r=v.set(e,l,i))!==a)return r;else{e.setAttribute(i,""+l);return l}else if(v&&"get"in v&&m&&(r=v.get(e,i))!==null)return r;else{r=e.getAttribute(i);return r===null?a:r}},removeAttr:function(e,i){var l;if(e.nodeType===1){i=j.attrFix[i]||i;if(j.support.getSetAttribute)e.removeAttribute(i);else{j.attr(e,i,"");e.removeAttributeNode(e.getAttributeNode(i))}if(N.test(i)&&(l=j.propFix[i]||i)in e)e[l]=false}},attrHooks:{type:{set:function(e,i){if(Y.test(e.nodeName)&&e.parentNode)j.error("type property can't be changed");
else if(!j.support.radioValue&&i==="radio"&&j.nodeName(e,"input")){var l=e.value;e.setAttribute("type",i);if(l)e.value=l;return i}}},tabIndex:{get:function(e){var i=e.getAttributeNode("tabIndex");return i&&i.specified?parseInt(i.value,10):S.test(e.nodeName)||F.test(e.nodeName)&&e.href?0:a}},value:{get:function(e,i){if(ca&&j.nodeName(e,"button"))return ca.get(e,i);return i in e?e.value:null},set:function(e,i,l){if(ca&&j.nodeName(e,"button"))return ca.set(e,i,l);e.value=i}}},propFix:{tabindex:"tabIndex",
readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,i,l){var m=e.nodeType;if(!e||m===3||m===8||m===2)return a;var n,r;if(m!==1||!j.isXMLDoc(e)){i=j.propFix[i]||i;r=j.propHooks[i]}return l!==a?r&&"set"in r&&(n=r.set(e,l,i))!==a?n:e[i]=l:r&&"get"in r&&(n=r.get(e,i))!==a?n:e[i]},propHooks:{}});da=
{get:function(e,i){return j.prop(e,i)?i.toLowerCase():a},set:function(e,i,l){if(i===false)j.removeAttr(e,l);else{i=j.propFix[l]||l;if(i in e)e[i]=true;e.setAttribute(l,l.toLowerCase())}return l}};if(!j.support.getSetAttribute){j.attrFix=j.propFix;ca=j.attrHooks.name=j.attrHooks.title=j.valHooks.button={get:function(e,i){var l;return(l=e.getAttributeNode(i))&&l.nodeValue!==""?l.nodeValue:a},set:function(e,i,l){if(e=e.getAttributeNode(l))return e.nodeValue=i}};j.each(["width","height"],function(e,i){j.attrHooks[i]=
j.extend(j.attrHooks[i],{set:function(l,m){if(m===""){l.setAttribute(i,"auto");return m}}})})}j.support.hrefNormalized||j.each(["href","src","width","height"],function(e,i){j.attrHooks[i]=j.extend(j.attrHooks[i],{get:function(l){l=l.getAttribute(i,2);return l===null?a:l}})});if(!j.support.style)j.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||a},set:function(e,i){return e.style.cssText=""+i}};if(!j.support.optSelected)j.propHooks.selected=j.extend(j.propHooks.selected,{get:function(){}});
j.support.checkOn||j.each(["radio","checkbox"],function(){j.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}});j.each(["radio","checkbox"],function(){j.valHooks[this]=j.extend(j.valHooks[this],{set:function(e,i){if(j.isArray(i))return e.checked=j.inArray(j(e).val(),i)>=0}})});var na=/\.(.*)$/,ka=/^(?:textarea|input|select)$/i,ta=/\./g,ua=/ /g,Sa=/[^\w\s.|`]/g,Za=function(e){return e.replace(Sa,"\\$&")};j.event={add:function(e,i,l,m){if(!(e.nodeType===3||e.nodeType===
8)){if(l===false)l=c;else if(!l)return;var n,r;if(l.handler){n=l;l=n.handler}if(!l.guid)l.guid=j.guid++;if(r=j._data(e)){var v=r.events,C=r.handle;if(!v)r.events=v={};if(!C)r.handle=C=function(ma){return typeof j!=="undefined"&&(!ma||j.event.triggered!==ma.type)?j.event.handle.apply(C.elem,arguments):a};C.elem=e;i=i.split(" ");for(var E,H=0,O;E=i[H++];){r=n?j.extend({},n):{handler:l,data:m};if(E.indexOf(".")>-1){O=E.split(".");E=O.shift();r.namespace=O.slice(0).sort().join(".")}else{O=[];r.namespace=
""}r.type=E;if(!r.guid)r.guid=l.guid;var ga=v[E],oa=j.event.special[E]||{};if(!ga){ga=v[E]=[];if(!oa.setup||oa.setup.call(e,m,O,C)===false)if(e.addEventListener)e.addEventListener(E,C,false);else e.attachEvent&&e.attachEvent("on"+E,C)}if(oa.add){oa.add.call(e,r);if(!r.handler.guid)r.handler.guid=l.guid}ga.push(r);j.event.global[E]=true}e=null}}},global:{},remove:function(e,i,l,m){if(!(e.nodeType===3||e.nodeType===8)){if(l===false)l=c;var n,r,v=0,C,E,H,O,ga,oa,ma=j.hasData(e)&&j._data(e),qa=ma&&ma.events;
if(ma&&qa){if(i&&i.type){l=i.handler;i=i.type}if(!i||typeof i==="string"&&i.charAt(0)==="."){i=i||"";for(n in qa)j.event.remove(e,n+i)}else{for(i=i.split(" ");n=i[v++];){O=n;C=n.indexOf(".")<0;E=[];if(!C){E=n.split(".");n=E.shift();H=RegExp("(^|\\.)"+j.map(E.slice(0).sort(),Za).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ga=qa[n])if(l){O=j.event.special[n]||{};for(r=m||0;r<ga.length;r++){oa=ga[r];if(l.guid===oa.guid){if(C||H.test(oa.namespace)){m==null&&ga.splice(r--,1);O.remove&&O.remove.call(e,oa)}if(m!=
null)break}}if(ga.length===0||m!=null&&ga.length===1){if(!O.teardown||O.teardown.call(e,E)===false)j.removeEvent(e,n,ma.handle);delete qa[n]}}else for(r=0;r<ga.length;r++){oa=ga[r];if(C||H.test(oa.namespace)){j.event.remove(e,O,oa.handler,r);ga.splice(r--,1)}}}if(j.isEmptyObject(qa)){if(i=ma.handle)i.elem=null;delete ma.events;delete ma.handle;j.isEmptyObject(ma)&&j.removeData(e,a,true)}}}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,i,l,m){var n=e.type||e,r=[],v;if(n.indexOf("!")>=
0){n=n.slice(0,-1);v=true}if(n.indexOf(".")>=0){r=n.split(".");n=r.shift();r.sort()}if(!((!l||j.event.customEvent[n])&&!j.event.global[n])){e=typeof e==="object"?e[j.expando]?e:new j.Event(n,e):new j.Event(n);e.type=n;e.exclusive=v;e.namespace=r.join(".");e.namespace_re=RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+"(\\.|$)");if(m||!l){e.preventDefault();e.stopPropagation()}if(l){if(!(l.nodeType===3||l.nodeType===8)){e.result=a;e.target=l;i=i!=null?j.makeArray(i):[];i.unshift(e);r=l;m=n.indexOf(":")<0?
"on"+n:"";do{v=j._data(r,"handle");e.currentTarget=r;v&&v.apply(r,i);if(m&&j.acceptData(r)&&r[m]&&r[m].apply(r,i)===false){e.result=false;e.preventDefault()}r=r.parentNode||r.ownerDocument||r===e.target.ownerDocument&&b}while(r&&!e.isPropagationStopped());if(!e.isDefaultPrevented()){var C;r=j.event.special[n]||{};if((!r._default||r._default.call(l.ownerDocument,e)===false)&&!(n==="click"&&j.nodeName(l,"a"))&&j.acceptData(l)){try{if(m&&l[n]){if(C=l[m])l[m]=null;j.event.triggered=n;l[n]()}}catch(E){}if(C)l[m]=
C;j.event.triggered=a}}return e.result}}else j.each(j.cache,function(){var H=this[j.expando];H&&H.events&&H.events[n]&&j.event.trigger(e,i,H.handle.elem)})}},handle:function(e){e=j.event.fix(e||b.event);var i=((j._data(this,"events")||{})[e.type]||[]).slice(0),l=!e.exclusive&&!e.namespace,m=Array.prototype.slice.call(arguments,0);m[0]=e;e.currentTarget=this;for(var n=0,r=i.length;n<r;n++){var v=i[n];if(l||e.namespace_re.test(v.namespace)){e.handler=v.handler;e.data=v.data;e.handleObj=v;v=v.handler.apply(this,
m);if(v!==a){e.result=v;if(v===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(e){if(e[j.expando])return e;
var i=e;e=j.Event(i);for(var l=this.props.length,m;l;){m=this.props[--l];e[m]=i[m]}if(!e.target)e.target=e.srcElement||T;if(e.target.nodeType===3)e.target=e.target.parentNode;if(!e.relatedTarget&&e.fromElement)e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement;if(e.pageX==null&&e.clientX!=null){l=e.target.ownerDocument||T;i=l.documentElement;l=l.body;e.pageX=e.clientX+(i&&i.scrollLeft||l&&l.scrollLeft||0)-(i&&i.clientLeft||l&&l.clientLeft||0);e.pageY=e.clientY+(i&&i.scrollTop||l&&
l.scrollTop||0)-(i&&i.clientTop||l&&l.clientTop||0)}if(e.which==null&&(e.charCode!=null||e.keyCode!=null))e.which=e.charCode!=null?e.charCode:e.keyCode;if(!e.metaKey&&e.ctrlKey)e.metaKey=e.ctrlKey;if(!e.which&&e.button!==a)e.which=e.button&1?1:e.button&2?3:e.button&4?2:0;return e},guid:1E8,proxy:j.proxy,special:{ready:{setup:j.bindReady,teardown:j.noop},live:{add:function(e){j.event.add(this,q(e.origType,e.selector),j.extend({},e,{handler:o,guid:e.handler.guid}))},remove:function(e){j.event.remove(this,
q(e.origType,e.selector),e)}},beforeunload:{setup:function(e,i,l){if(j.isWindow(this))this.onbeforeunload=l},teardown:function(e,i){if(this.onbeforeunload===i)this.onbeforeunload=null}}}};j.removeEvent=T.removeEventListener?function(e,i,l){e.removeEventListener&&e.removeEventListener(i,l,false)}:function(e,i,l){e.detachEvent&&e.detachEvent("on"+i,l)};j.Event=function(e,i){if(!this.preventDefault)return new j.Event(e,i);if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||
e.returnValue===false||e.getPreventDefault&&e.getPreventDefault()?h:c}else this.type=e;i&&j.extend(this,i);this.timeStamp=j.now();this[j.expando]=true};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=h;var e=this.originalEvent;if(e)if(e.preventDefault)e.preventDefault();else e.returnValue=false},stopPropagation:function(){this.isPropagationStopped=h;var e=this.originalEvent;if(e){e.stopPropagation&&e.stopPropagation();e.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
h;this.stopPropagation()},isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c};var Ka=function(e){var i=e.relatedTarget,l=false,m=e.type;e.type=e.data;if(i!==this){if(i)l=j.contains(this,i);if(!l){j.event.handle.apply(this,arguments);e.type=m}}},Ja=function(e){e.type=e.data;j.event.handle.apply(this,arguments)};j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,i){j.event.special[e]={setup:function(l){j.event.add(this,i,l&&l.selector?Ja:Ka,e)},teardown:function(l){j.event.remove(this,
i,l&&l.selector?Ja:Ka)}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(){if(j.nodeName(this,"form"))return false;else{j.event.add(this,"click.specialSubmit",function(e){var i=e.target,l=i.type;if((l==="submit"||l==="image")&&j(i).closest("form").length)k("submit",this,arguments)});j.event.add(this,"keypress.specialSubmit",function(e){var i=e.target,l=i.type;if((l==="text"||l==="password")&&j(i).closest("form").length&&e.keyCode===13)k("submit",this,arguments)})}},teardown:function(){j.event.remove(this,
".specialSubmit")}};if(!j.support.changeBubbles){var Na,Ta=function(e){var i=e.type,l=e.value;if(i==="radio"||i==="checkbox")l=e.checked;else if(i==="select-multiple")l=e.selectedIndex>-1?j.map(e.options,function(m){return m.selected}).join("-"):"";else if(j.nodeName(e,"select"))l=e.selectedIndex;return l},eb=function(e,i){var l=e.target,m,n;if(!(!ka.test(l.nodeName)||l.readOnly)){m=j._data(l,"_change_data");n=Ta(l);if(e.type!=="focusout"||l.type!=="radio")j._data(l,"_change_data",n);if(!(m===a||
n===m))if(m!=null||n){e.type="change";e.liveFired=a;j.event.trigger(e,i,l)}}};j.event.special.change={filters:{focusout:eb,beforedeactivate:eb,click:function(e){var i=e.target,l=j.nodeName(i,"input")?i.type:"";if(l==="radio"||l==="checkbox"||j.nodeName(i,"select"))eb.call(this,e)},keydown:function(e){var i=e.target,l=j.nodeName(i,"input")?i.type:"";if(e.keyCode===13&&!j.nodeName(i,"textarea")||e.keyCode===32&&(l==="checkbox"||l==="radio")||l==="select-multiple")eb.call(this,e)},beforeactivate:function(e){e=
e.target;j._data(e,"_change_data",Ta(e))}},setup:function(){if(this.type==="file")return false;for(var e in Na)j.event.add(this,e+".specialChange",Na[e]);return ka.test(this.nodeName)},teardown:function(){j.event.remove(this,".specialChange");return ka.test(this.nodeName)}};Na=j.event.special.change.filters;Na.focus=Na.beforeactivate}j.support.focusinBubbles||j.each({focus:"focusin",blur:"focusout"},function(e,i){function l(n){var r=j.event.fix(n);r.type=i;r.originalEvent={};j.event.trigger(r,null,
r.target);r.isDefaultPrevented()&&n.preventDefault()}var m=0;j.event.special[i]={setup:function(){m++===0&&T.addEventListener(e,l,true)},teardown:function(){--m===0&&T.removeEventListener(e,l,true)}}});j.each(["bind","one"],function(e,i){j.fn[i]=function(l,m,n){var r;if(typeof l==="object"){for(var v in l)this[i](v,m,l[v],n);return this}if(arguments.length===2||m===false){n=m;m=a}if(i==="one"){r=function(E){j(this).unbind(E,r);return n.apply(this,arguments)};r.guid=n.guid||j.guid++}else r=n;if(l===
"unload"&&i!=="one")this.one(l,m,n);else{v=0;for(var C=this.length;v<C;v++)j.event.add(this[v],l,r,m)}return this}});j.fn.extend({unbind:function(e,i){if(typeof e==="object"&&!e.preventDefault)for(var l in e)this.unbind(l,e[l]);else{l=0;for(var m=this.length;l<m;l++)j.event.remove(this[l],e,i)}return this},delegate:function(e,i,l,m){return this.live(i,l,m,e)},undelegate:function(e,i,l){return arguments.length===0?this.unbind("live"):this.die(i,null,l,e)},trigger:function(e,i){return this.each(function(){j.event.trigger(e,
i,this)})},triggerHandler:function(e,i){if(this[0])return j.event.trigger(e,i,this[0],true)},toggle:function(e){var i=arguments,l=e.guid||j.guid++,m=0,n=function(r){var v=(j.data(this,"lastToggle"+e.guid)||0)%m;j.data(this,"lastToggle"+e.guid,v+1);r.preventDefault();return i[v].apply(this,arguments)||false};for(n.guid=l;m<i.length;)i[m++].guid=l;return this.click(n)},hover:function(e,i){return this.mouseenter(e).mouseleave(i||e)}});var kb={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
j.each(["live","die"],function(e,i){j.fn[i]=function(l,m,n,r){var v=0,C,E,H=r||this.selector,O=r?this:j(this.context);if(typeof l==="object"&&!l.preventDefault){for(C in l)O[i](C,m,l[C],H);return this}if(i==="die"&&!l&&r&&r.charAt(0)==="."){O.unbind(r);return this}if(m===false||j.isFunction(m)){n=m||c;m=a}for(l=(l||"").split(" ");(r=l[v++])!=null;){C=na.exec(r);E="";if(C){E=C[0];r=r.replace(na,"")}if(r==="hover")l.push("mouseenter"+E,"mouseleave"+E);else{C=r;if(kb[r]){l.push(kb[r]+E);r+=E}else r=
(kb[r]||r)+E;if(i==="live"){E=0;for(var ga=O.length;E<ga;E++)j.event.add(O[E],"live."+q(r,H),{data:m,selector:H,handler:n,origType:r,origHandler:n,preType:C})}else O.unbind("live."+q(r,H),n)}}return this}});j.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(e,i){j.fn[i]=function(l,m){if(m==null){m=l;l=null}return arguments.length>0?this.bind(i,
l,m):this.trigger(i)};if(j.attrFn)j.attrFn[i]=true});(function(){function e(u,z,I,M,G,L){G=0;for(var U=M.length;G<U;G++){var X=M[G];if(X){var ia=false;for(X=X[u];X;){if(X.sizcache===I){ia=M[X.sizset];break}if(X.nodeType===1&&!L){X.sizcache=I;X.sizset=G}if(X.nodeName.toLowerCase()===z){ia=X;break}X=X[u]}M[G]=ia}}}function i(u,z,I,M,G,L){G=0;for(var U=M.length;G<U;G++){var X=M[G];if(X){var ia=false;for(X=X[u];X;){if(X.sizcache===I){ia=M[X.sizset];break}if(X.nodeType===1){if(!L){X.sizcache=I;X.sizset=
G}if(typeof z!=="string"){if(X===z){ia=true;break}}else if(H.filter(z,[X]).length>0){ia=X;break}}X=X[u]}M[G]=ia}}}var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,n=Object.prototype.toString,r=false,v=true,C=/\\/g,E=/\W/;[0,0].sort(function(){v=false;return 0});var H=function(u,z,I,M){I=I||[];var G=z=z||T;if(z.nodeType!==1&&z.nodeType!==9)return[];if(!u||typeof u!=="string")return I;var L,U,X,ia,Ga,xa=true,
ya=H.isXML(z),y=[],P=u;do{l.exec("");if(L=l.exec(P)){P=L[3];y.push(L[1]);if(L[2]){ia=L[3];break}}}while(L);if(y.length>1&&ga.exec(u))if(y.length===2&&O.relative[y[0]])U=Ma(y[0]+y[1],z);else for(U=O.relative[y[0]]?[z]:H(y.shift(),z);y.length;){u=y.shift();if(O.relative[u])u+=y.shift();U=Ma(u,U)}else{if(!M&&y.length>1&&z.nodeType===9&&!ya&&O.match.ID.test(y[0])&&!O.match.ID.test(y[y.length-1])){L=H.find(y.shift(),z,ya);z=L.expr?H.filter(L.expr,L.set)[0]:L.set[0]}if(z){L=M?{expr:y.pop(),set:qa(M)}:H.find(y.pop(),
y.length===1&&(y[0]==="~"||y[0]==="+")&&z.parentNode?z.parentNode:z,ya);U=L.expr?H.filter(L.expr,L.set):L.set;if(y.length>0)X=qa(U);else xa=false;for(;y.length;){L=Ga=y.pop();if(O.relative[Ga])L=y.pop();else Ga="";if(L==null)L=z;O.relative[Ga](X,L,ya)}}else X=[]}X||(X=U);X||H.error(Ga||u);if(n.call(X)==="[object Array]")if(xa)if(z&&z.nodeType===1)for(u=0;X[u]!=null;u++){if(X[u]&&(X[u]===true||X[u].nodeType===1&&H.contains(z,X[u])))I.push(U[u])}else for(u=0;X[u]!=null;u++)X[u]&&X[u].nodeType===1&&
I.push(U[u]);else I.push.apply(I,X);else qa(X,I);if(ia){H(ia,G,I,M);H.uniqueSort(I)}return I};H.uniqueSort=function(u){if(Aa){r=v;u.sort(Aa);if(r)for(var z=1;z<u.length;z++)u[z]===u[z-1]&&u.splice(z--,1)}return u};H.matches=function(u,z){return H(u,null,null,z)};H.matchesSelector=function(u,z){return H(z,null,null,[u]).length>0};H.find=function(u,z,I){var M;if(!u)return[];for(var G=0,L=O.order.length;G<L;G++){var U,X=O.order[G];if(U=O.leftMatch[X].exec(u)){var ia=U[1];U.splice(1,1);if(ia.substr(ia.length-
1)!=="\\"){U[1]=(U[1]||"").replace(C,"");M=O.find[X](U,z,I);if(M!=null){u=u.replace(O.match[X],"");break}}}}M||(M=typeof z.getElementsByTagName!=="undefined"?z.getElementsByTagName("*"):[]);return{set:M,expr:u}};H.filter=function(u,z,I,M){for(var G,L,U=u,X=[],ia=z,Ga=z&&z[0]&&H.isXML(z[0]);u&&z.length;){for(var xa in O.filter)if((G=O.leftMatch[xa].exec(u))!=null&&G[2]){var ya,y,P=O.filter[xa];y=G[1];L=false;G.splice(1,1);if(y.substr(y.length-1)!=="\\"){if(ia===X)X=[];if(O.preFilter[xa])if(G=O.preFilter[xa](G,
ia,I,X,M,Ga)){if(G===true)continue}else L=ya=true;if(G)for(var aa=0;(y=ia[aa])!=null;aa++)if(y){ya=P(y,G,aa,ia);var W=M^!!ya;if(I&&ya!=null)if(W)L=true;else ia[aa]=false;else if(W){X.push(y);L=true}}if(ya!==a){I||(ia=X);u=u.replace(O.match[xa],"");if(!L)return[];break}}}if(u===U)if(L==null)H.error(u);else break;U=u}return ia};H.error=function(u){throw"Syntax error, unrecognized expression: "+u;};var O=H.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className",
"for":"htmlFor"},attrHandle:{href:function(u){return u.getAttribute("href")},type:function(u){return u.getAttribute("type")}},relative:{"+":function(u,z){var I=typeof z==="string",M=I&&!E.test(z);I=I&&!M;if(M)z=z.toLowerCase();M=0;for(var G=u.length,L;M<G;M++)if(L=u[M]){for(;(L=L.previousSibling)&&L.nodeType!==1;);u[M]=I||L&&L.nodeName.toLowerCase()===z?L||false:L===z}I&&H.filter(z,u,true)},">":function(u,z){var I,M=typeof z==="string",G=0,L=u.length;if(M&&!E.test(z))for(z=z.toLowerCase();G<L;G++){if(I=
u[G]){I=I.parentNode;u[G]=I.nodeName.toLowerCase()===z?I:false}}else{for(;G<L;G++)if(I=u[G])u[G]=M?I.parentNode:I.parentNode===z;M&&H.filter(z,u,true)}},"":function(u,z,I){var M,G=m++,L=i;if(typeof z==="string"&&!E.test(z)){M=z=z.toLowerCase();L=e}L("parentNode",z,G,u,M,I)},"~":function(u,z,I){var M,G=m++,L=i;if(typeof z==="string"&&!E.test(z)){M=z=z.toLowerCase();L=e}L("previousSibling",z,G,u,M,I)}},find:{ID:function(u,z,I){if(typeof z.getElementById!=="undefined"&&!I)return(u=z.getElementById(u[1]))&&
u.parentNode?[u]:[]},NAME:function(u,z){if(typeof z.getElementsByName!=="undefined"){for(var I=[],M=z.getElementsByName(u[1]),G=0,L=M.length;G<L;G++)M[G].getAttribute("name")===u[1]&&I.push(M[G]);return I.length===0?null:I}},TAG:function(u,z){if(typeof z.getElementsByTagName!=="undefined")return z.getElementsByTagName(u[1])}},preFilter:{CLASS:function(u,z,I,M,G,L){u=" "+u[1].replace(C,"")+" ";if(L)return u;L=0;for(var U;(U=z[L])!=null;L++)if(U)if(G^(U.className&&(" "+U.className+" ").replace(/[\t\n\r]/g,
" ").indexOf(u)>=0))I||M.push(U);else if(I)z[L]=false;return false},ID:function(u){return u[1].replace(C,"")},TAG:function(u){return u[1].replace(C,"").toLowerCase()},CHILD:function(u){if(u[1]==="nth"){u[2]||H.error(u[0]);u[2]=u[2].replace(/^\+|\s*/g,"");var z=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(u[2]==="even"&&"2n"||u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=z[1]+(z[2]||1)-0;u[3]=z[3]-0}else u[2]&&H.error(u[0]);u[0]=m++;return u},ATTR:function(u,z,I,M,G,L){z=u[1]=u[1].replace(C,
"");if(!L&&O.attrMap[z])u[1]=O.attrMap[z];u[4]=(u[4]||u[5]||"").replace(C,"");if(u[2]==="~=")u[4]=" "+u[4]+" ";return u},PSEUDO:function(u,z,I,M,G){if(u[1]==="not")if((l.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=H(u[3],null,null,z);else{u=H.filter(u[3],z,I,true^G);I||M.push.apply(M,u);return false}else if(O.match.POS.test(u[0])||O.match.CHILD.test(u[0]))return true;return u},POS:function(u){u.unshift(true);return u}},filters:{enabled:function(u){return u.disabled===false&&u.type!=="hidden"},
disabled:function(u){return u.disabled===true},checked:function(u){return u.checked===true},selected:function(u){return u.selected===true},parent:function(u){return!!u.firstChild},empty:function(u){return!u.firstChild},has:function(u,z,I){return!!H(I[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){var z=u.getAttribute("type"),I=u.type;return u.nodeName.toLowerCase()==="input"&&"text"===I&&(z===I||z===null)},radio:function(u){return u.nodeName.toLowerCase()==="input"&&
"radio"===u.type},checkbox:function(u){return u.nodeName.toLowerCase()==="input"&&"checkbox"===u.type},file:function(u){return u.nodeName.toLowerCase()==="input"&&"file"===u.type},password:function(u){return u.nodeName.toLowerCase()==="input"&&"password"===u.type},submit:function(u){var z=u.nodeName.toLowerCase();return(z==="input"||z==="button")&&"submit"===u.type},image:function(u){return u.nodeName.toLowerCase()==="input"&&"image"===u.type},reset:function(u){var z=u.nodeName.toLowerCase();return(z===
"input"||z==="button")&&"reset"===u.type},button:function(u){var z=u.nodeName.toLowerCase();return z==="input"&&"button"===u.type||z==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)},focus:function(u){return u===u.ownerDocument.activeElement}},setFilters:{first:function(u,z){return z===0},last:function(u,z,I,M){return z===M.length-1},even:function(u,z){return z%2===0},odd:function(u,z){return z%2===1},lt:function(u,z,I){return z<I[3]-0},gt:function(u,z,I){return z>
I[3]-0},nth:function(u,z,I){return I[3]-0===z},eq:function(u,z,I){return I[3]-0===z}},filter:{PSEUDO:function(u,z,I,M){var G=z[1],L=O.filters[G];if(L)return L(u,I,z,M);else if(G==="contains")return(u.textContent||u.innerText||H.getText([u])||"").indexOf(z[3])>=0;else if(G==="not"){z=z[3];I=0;for(M=z.length;I<M;I++)if(z[I]===u)return false;return true}else H.error(G)},CHILD:function(u,z){var I=z[1],M=u;switch(I){case "only":case "first":for(;M=M.previousSibling;)if(M.nodeType===1)return false;if(I===
"first")return true;M=u;case "last":for(;M=M.nextSibling;)if(M.nodeType===1)return false;return true;case "nth":I=z[2];var G=z[3];if(I===1&&G===0)return true;var L=z[0],U=u.parentNode;if(U&&(U.sizcache!==L||!u.nodeIndex)){var X=0;for(M=U.firstChild;M;M=M.nextSibling)if(M.nodeType===1)M.nodeIndex=++X;U.sizcache=L}M=u.nodeIndex-G;return I===0?M===0:M%I===0&&M/I>=0}},ID:function(u,z){return u.nodeType===1&&u.getAttribute("id")===z},TAG:function(u,z){return z==="*"&&u.nodeType===1||u.nodeName.toLowerCase()===
z},CLASS:function(u,z){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(z)>-1},ATTR:function(u,z){var I=z[1];I=O.attrHandle[I]?O.attrHandle[I](u):u[I]!=null?u[I]:u.getAttribute(I);var M=I+"",G=z[2],L=z[4];return I==null?G==="!=":G==="="?M===L:G==="*="?M.indexOf(L)>=0:G==="~="?(" "+M+" ").indexOf(L)>=0:!L?M&&I!==false:G==="!="?M!==L:G==="^="?M.indexOf(L)===0:G==="$="?M.substr(M.length-L.length)===L:G==="|="?M===L||M.substr(0,L.length+1)===L+"-":false},POS:function(u,z,I,M){var G=O.setFilters[z[2]];
if(G)return G(u,I,z,M)}}},ga=O.match.POS,oa=function(u,z){return"\\"+(z-0+1)},ma;for(ma in O.match){O.match[ma]=RegExp(O.match[ma].source+/(?![^\[]*\])(?![^\(]*\))/.source);O.leftMatch[ma]=RegExp(/(^(?:.|\r|\n)*?)/.source+O.match[ma].source.replace(/\\(\d+)/g,oa))}var qa=function(u,z){u=Array.prototype.slice.call(u,0);if(z){z.push.apply(z,u);return z}return u};try{Array.prototype.slice.call(T.documentElement.childNodes,0)}catch(Ra){qa=function(u,z){var I=0,M=z||[];if(n.call(u)==="[object Array]")Array.prototype.push.apply(M,
u);else if(typeof u.length==="number")for(var G=u.length;I<G;I++)M.push(u[I]);else for(;u[I];I++)M.push(u[I]);return M}}var Aa,Ba;if(T.documentElement.compareDocumentPosition)Aa=function(u,z){if(u===z){r=true;return 0}if(!u.compareDocumentPosition||!z.compareDocumentPosition)return u.compareDocumentPosition?-1:1;return u.compareDocumentPosition(z)&4?-1:1};else{Aa=function(u,z){if(u===z){r=true;return 0}else if(u.sourceIndex&&z.sourceIndex)return u.sourceIndex-z.sourceIndex;var I,M,G=[],L=[];I=u.parentNode;
M=z.parentNode;var U=I;if(I===M)return Ba(u,z);else if(I){if(!M)return 1}else return-1;for(;U;){G.unshift(U);U=U.parentNode}for(U=M;U;){L.unshift(U);U=U.parentNode}I=G.length;M=L.length;for(U=0;U<I&&U<M;U++)if(G[U]!==L[U])return Ba(G[U],L[U]);return U===I?Ba(u,L[U],-1):Ba(G[U],z,1)};Ba=function(u,z,I){if(u===z)return I;for(u=u.nextSibling;u;){if(u===z)return-1;u=u.nextSibling}return 1}}H.getText=function(u){for(var z="",I,M=0;u[M];M++){I=u[M];if(I.nodeType===3||I.nodeType===4)z+=I.nodeValue;else if(I.nodeType!==
8)z+=H.getText(I.childNodes)}return z};(function(){var u=T.createElement("div"),z="script"+(new Date).getTime(),I=T.documentElement;u.innerHTML="<a name='"+z+"'/>";I.insertBefore(u,I.firstChild);if(T.getElementById(z)){O.find.ID=function(M,G,L){if(typeof G.getElementById!=="undefined"&&!L)return(G=G.getElementById(M[1]))?G.id===M[1]||typeof G.getAttributeNode!=="undefined"&&G.getAttributeNode("id").nodeValue===M[1]?[G]:a:[]};O.filter.ID=function(M,G){var L=typeof M.getAttributeNode!=="undefined"&&
M.getAttributeNode("id");return M.nodeType===1&&L&&L.nodeValue===G}}I.removeChild(u);I=u=null})();(function(){var u=T.createElement("div");u.appendChild(T.createComment(""));if(u.getElementsByTagName("*").length>0)O.find.TAG=function(z,I){var M=I.getElementsByTagName(z[1]);if(z[1]==="*"){for(var G=[],L=0;M[L];L++)M[L].nodeType===1&&G.push(M[L]);M=G}return M};u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#")O.attrHandle.href=
function(z){return z.getAttribute("href",2)};u=null})();T.querySelectorAll&&function(){var u=H,z=T.createElement("div");z.innerHTML="<p class='TEST'></p>";if(!(z.querySelectorAll&&z.querySelectorAll(".TEST").length===0)){H=function(M,G,L,U){G=G||T;if(!U&&!H.isXML(G)){var X=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(M);if(X&&(G.nodeType===1||G.nodeType===9))if(X[1])return qa(G.getElementsByTagName(M),L);else if(X[2]&&O.find.CLASS&&G.getElementsByClassName)return qa(G.getElementsByClassName(X[2]),L);
if(G.nodeType===9){if(M==="body"&&G.body)return qa([G.body],L);else if(X&&X[3]){var ia=G.getElementById(X[3]);if(ia&&ia.parentNode){if(ia.id===X[3])return qa([ia],L)}else return qa([],L)}try{return qa(G.querySelectorAll(M),L)}catch(Ga){}}else if(G.nodeType===1&&G.nodeName.toLowerCase()!=="object"){X=G;var xa=(ia=G.getAttribute("id"))||"__sizzle__",ya=G.parentNode,y=/^\s*[+~]/.test(M);if(ia)xa=xa.replace(/'/g,"\\$&");else G.setAttribute("id",xa);if(y&&ya)G=G.parentNode;try{if(!y||ya)return qa(G.querySelectorAll("[id='"+
xa+"'] "+M),L)}catch(P){}finally{ia||X.removeAttribute("id")}}}return u(M,G,L,U)};for(var I in u)H[I]=u[I];z=null}}();(function(){var u=T.documentElement,z=u.matchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.msMatchesSelector;if(z){var I=!z.call(T.createElement("div"),"div"),M=false;try{z.call(T.documentElement,"[test!='']:sizzle")}catch(G){M=true}H.matchesSelector=function(L,U){U=U.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!H.isXML(L))try{if(M||!O.match.PSEUDO.test(U)&&!/!=/.test(U)){var X=
z.call(L,U);if(X||!I||L.document&&L.document.nodeType!==11)return X}}catch(ia){}return H(U,null,null,[L]).length>0}}})();(function(){var u=T.createElement("div");u.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!u.getElementsByClassName||u.getElementsByClassName("e").length===0)){u.lastChild.className="e";if(u.getElementsByClassName("e").length!==1){O.order.splice(1,0,"CLASS");O.find.CLASS=function(z,I,M){if(typeof I.getElementsByClassName!=="undefined"&&!M)return I.getElementsByClassName(z[1])};
u=null}}})();H.contains=T.documentElement.contains?function(u,z){return u!==z&&(u.contains?u.contains(z):true)}:T.documentElement.compareDocumentPosition?function(u,z){return!!(u.compareDocumentPosition(z)&16)}:function(){return false};H.isXML=function(u){return(u=(u?u.ownerDocument||u:0).documentElement)?u.nodeName!=="HTML":false};var Ma=function(u,z){for(var I,M=[],G="",L=z.nodeType?[z]:z;I=O.match.PSEUDO.exec(u);){G+=I[0];u=u.replace(O.match.PSEUDO,"")}u=O.relative[u]?u+"*":u;I=0;for(var U=L.length;I<
U;I++)H(u,L[I],M);return H.filter(G,M)};j.find=H;j.expr=H.selectors;j.expr[":"]=j.expr.filters;j.unique=H.uniqueSort;j.text=H.getText;j.isXMLDoc=H.isXML;j.contains=H.contains})();var Lb=/Until$/,Mb=/^(?:parents|prevUntil|prevAll)/,Nb=/,/,Gb=/^.[^:#\[\.,]*$/,Ob=Array.prototype.slice,rb=j.expr.match.POS,Pb={children:true,contents:true,next:true,prev:true};j.fn.extend({find:function(e){var i=this,l,m;if(typeof e!=="string")return j(e).filter(function(){l=0;for(m=i.length;l<m;l++)if(j.contains(i[l],this))return true});
var n=this.pushStack("","find",e),r,v,C;l=0;for(m=this.length;l<m;l++){r=n.length;j.find(e,this[l],n);if(l>0)for(v=r;v<n.length;v++)for(C=0;C<r;C++)if(n[C]===n[v]){n.splice(v--,1);break}}return n},has:function(e){var i=j(e);return this.filter(function(){for(var l=0,m=i.length;l<m;l++)if(j.contains(this,i[l]))return true})},not:function(e){return this.pushStack(x(this,e,false),"not",e)},filter:function(e){return this.pushStack(x(this,e,true),"filter",e)},is:function(e){return!!e&&(typeof e==="string"?
j.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,i){var l=[],m,n,r=this[0];if(j.isArray(e)){var v,C={},E=1;if(r&&e.length){m=0;for(n=e.length;m<n;m++){v=e[m];C[v]||(C[v]=rb.test(v)?j(v,i||this.context):v)}for(;r&&r.ownerDocument&&r!==i;){for(v in C){m=C[v];if(m.jquery?m.index(r)>-1:j(r).is(m))l.push({selector:v,elem:r,level:E})}r=r.parentNode;E++}}return l}v=rb.test(e)||typeof e!=="string"?j(e,i||this.context):0;m=0;for(n=this.length;m<n;m++)for(r=this[m];r;)if(v?v.index(r)>
-1:j.find.matchesSelector(r,e)){l.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===i||r.nodeType===11)break}l=l.length>1?j.unique(l):l;return this.pushStack(l,"closest",e)},index:function(e){if(!e||typeof e==="string")return j.inArray(this[0],e?j(e):this.parent().children());return j.inArray(e.jquery?e[0]:e,this)},add:function(e,i){var l=typeof e==="string"?j(e,i):j.makeArray(e&&e.nodeType?[e]:e),m=j.merge(this.get(),l);return this.pushStack(!l[0]||!l[0].parentNode||l[0].parentNode.nodeType===
11||!m[0]||!m[0].parentNode||m[0].parentNode.nodeType===11?m:j.unique(m))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(e){return(e=e.parentNode)&&e.nodeType!==11?e:null},parents:function(e){return j.dir(e,"parentNode")},parentsUntil:function(e,i,l){return j.dir(e,"parentNode",l)},next:function(e){return j.nth(e,2,"nextSibling")},prev:function(e){return j.nth(e,2,"previousSibling")},nextAll:function(e){return j.dir(e,"nextSibling")},prevAll:function(e){return j.dir(e,
"previousSibling")},nextUntil:function(e,i,l){return j.dir(e,"nextSibling",l)},prevUntil:function(e,i,l){return j.dir(e,"previousSibling",l)},siblings:function(e){return j.sibling(e.parentNode.firstChild,e)},children:function(e){return j.sibling(e.firstChild)},contents:function(e){return j.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:j.makeArray(e.childNodes)}},function(e,i){j.fn[e]=function(l,m){var n=j.map(this,i,l),r=Ob.call(arguments);Lb.test(e)||(m=l);if(m&&typeof m==="string")n=
j.filter(m,n);n=this.length>1&&!Pb[e]?j.unique(n):n;if((this.length>1||Nb.test(m))&&Mb.test(e))n=n.reverse();return this.pushStack(n,e,r.join(","))}});j.extend({filter:function(e,i,l){if(l)e=":not("+e+")";return i.length===1?j.find.matchesSelector(i[0],e)?[i[0]]:[]:j.find.matches(e,i)},dir:function(e,i,l){var m=[];for(e=e[i];e&&e.nodeType!==9&&(l===a||e.nodeType!==1||!j(e).is(l));){e.nodeType===1&&m.push(e);e=e[i]}return m},nth:function(e,i,l){i=i||1;for(var m=0;e;e=e[l])if(e.nodeType===1&&++m===
i)break;return e},sibling:function(e,i){for(var l=[];e;e=e.nextSibling)e.nodeType===1&&e!==i&&l.push(e);return l}});var Qb=/ jQuery\d+="(?:\d+|null)"/g,lb=/^\s+/,sb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,tb=/<([\w:]+)/,Rb=/<tbody/i,Sb=/<|&#?\w+;/,ub=/<(?:script|object|embed|option|style)/i,vb=/checked\s*(?:[^=]|=\s*.checked.)/i,Tb=/\/(java|ecma)script/i,Hb=/^\s*<!(?:\[CDATA\[|\-\-)/,Ia={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,"",""]};Ia.optgroup=Ia.option;Ia.tbody=Ia.tfoot=Ia.colgroup=Ia.caption=Ia.thead;Ia.th=Ia.td;if(!j.support.htmlSerialize)Ia._default=[1,"div<div>","</div>"];j.fn.extend({text:function(e){if(j.isFunction(e))return this.each(function(i){var l=j(this);l.text(e.call(this,
i,l.text()))});if(typeof e!=="object"&&e!==a)return this.empty().append((this[0]&&this[0].ownerDocument||T).createTextNode(e));return j.text(this)},wrapAll:function(e){if(j.isFunction(e))return this.each(function(l){j(this).wrapAll(e.call(this,l))});if(this[0]){var i=j(e,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&i.insertBefore(this[0]);i.map(function(){for(var l=this;l.firstChild&&l.firstChild.nodeType===1;)l=l.firstChild;return l}).append(this)}return this},wrapInner:function(e){if(j.isFunction(e))return this.each(function(i){j(this).wrapInner(e.call(this,
i))});return this.each(function(){var i=j(this),l=i.contents();l.length?l.wrapAll(e):i.append(e)})},wrap:function(e){return this.each(function(){j(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.insertBefore(e,
this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this)});else if(arguments.length){var e=j(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(i){this.parentNode.insertBefore(i,this.nextSibling)});else if(arguments.length){var e=this.pushStack(this,"after",arguments);
e.push.apply(e,j(arguments[0]).toArray());return e}},remove:function(e,i){for(var l=0,m;(m=this[l])!=null;l++)if(!e||j.filter(e,[m]).length){if(!i&&m.nodeType===1){j.cleanData(m.getElementsByTagName("*"));j.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var e=0,i;(i=this[e])!=null;e++)for(i.nodeType===1&&j.cleanData(i.getElementsByTagName("*"));i.firstChild;)i.removeChild(i.firstChild);return this},clone:function(e,i){e=e==null?false:e;i=i==null?e:i;return this.map(function(){return j.clone(this,
e,i)})},html:function(e){if(e===a)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Qb,""):null;else if(typeof e==="string"&&!ub.test(e)&&(j.support.leadingWhitespace||!lb.test(e))&&!Ia[(tb.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(sb,"<$1></$2>");try{for(var i=0,l=this.length;i<l;i++)if(this[i].nodeType===1){j.cleanData(this[i].getElementsByTagName("*"));this[i].innerHTML=e}}catch(m){this.empty().append(e)}}else j.isFunction(e)?this.each(function(n){var r=j(this);r.html(e.call(this,
n,r.html()))}):this.empty().append(e);return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(j.isFunction(e))return this.each(function(i){var l=j(this),m=l.html();l.replaceWith(e.call(this,i,m))});if(typeof e!=="string")e=j(e).detach();return this.each(function(){var i=this.nextSibling,l=this.parentNode;j(this).remove();i?j(i).before(e):j(l).append(e)})}else return this.length?this.pushStack(j(j.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,true)},
domManip:function(e,i,l){var m,n,r,v=e[0],C=[];if(!j.support.checkClone&&arguments.length===3&&typeof v==="string"&&vb.test(v))return this.each(function(){j(this).domManip(e,i,l,true)});if(j.isFunction(v))return this.each(function(O){var ga=j(this);e[0]=v.call(this,O,i?ga.html():a);ga.domManip(e,i,l)});if(this[0]){m=v&&v.parentNode;m=j.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===this.length?{fragment:m}:j.buildFragment(e,this,C);r=m.fragment;if(n=r.childNodes.length===1?r=r.firstChild:
r.firstChild){i=i&&j.nodeName(n,"tr");n=0;for(var E=this.length,H=E-1;n<E;n++)l.call(i?j.nodeName(this[n],"table")?this[n].getElementsByTagName("tbody")[0]||this[n].appendChild(this[n].ownerDocument.createElement("tbody")):this[n]:this[n],m.cacheable||E>1&&n<H?j.clone(r,true,true):r)}C.length&&j.each(C,K)}return this}});j.buildFragment=function(e,i,l){var m,n,r,v;if(i&&i[0])v=i[0].ownerDocument||i[0];v.createDocumentFragment||(v=T);if(e.length===1&&typeof e[0]==="string"&&e[0].length<512&&v===T&&
e[0].charAt(0)==="<"&&!ub.test(e[0])&&(j.support.checkClone||!vb.test(e[0]))){n=true;if((r=j.fragments[e[0]])&&r!==1)m=r}if(!m){m=v.createDocumentFragment();j.clean(e,v,m,l)}if(n)j.fragments[e[0]]=r?m:1;return{fragment:m,cacheable:n}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,i){j.fn[e]=function(l){var m=[];l=j(l);var n=this.length===1&&this[0].parentNode;if(n&&n.nodeType===11&&n.childNodes.length===
1&&l.length===1){l[i](this[0]);return this}else{n=0;for(var r=l.length;n<r;n++){var v=(n>0?this.clone(true):this).get();j(l[n])[i](v);m=m.concat(v)}return this.pushStack(m,e,l.selector)}}});j.extend({clone:function(e,i,l){var m=e.cloneNode(true),n,r,v;if((!j.support.noCloneEvent||!j.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!j.isXMLDoc(e)){p(e,m);n=w(e);r=w(m);for(v=0;n[v];++v)p(n[v],r[v])}if(i){s(e,m);if(l){n=w(e);r=w(m);for(v=0;n[v];++v)s(n[v],r[v])}}return m},clean:function(e,
i,l,m){i=i||T;if(typeof i.createElement==="undefined")i=i.ownerDocument||i[0]&&i[0].ownerDocument||T;for(var n=[],r,v=0,C;(C=e[v])!=null;v++){if(typeof C==="number")C+="";if(C){if(typeof C==="string")if(Sb.test(C)){C=C.replace(sb,"<$1></$2>");r=(tb.exec(C)||["",""])[1].toLowerCase();var E=Ia[r]||Ia._default,H=E[0],O=i.createElement("div");for(O.innerHTML=E[1]+C+E[2];H--;)O=O.lastChild;if(!j.support.tbody){H=Rb.test(C);E=r==="table"&&!H?O.firstChild&&O.firstChild.childNodes:E[1]==="<table>"&&!H?O.childNodes:
[];for(r=E.length-1;r>=0;--r)j.nodeName(E[r],"tbody")&&!E[r].childNodes.length&&E[r].parentNode.removeChild(E[r])}!j.support.leadingWhitespace&&lb.test(C)&&O.insertBefore(i.createTextNode(lb.exec(C)[0]),O.firstChild);C=O.childNodes}else C=i.createTextNode(C);var ga;if(!j.support.appendChecked)if(C[0]&&typeof(ga=C.length)==="number")for(r=0;r<ga;r++)D(C[r]);else D(C);if(C.nodeType)n.push(C);else n=j.merge(n,C)}}if(l){e=function(oa){return!oa.type||Tb.test(oa.type)};for(v=0;n[v];v++)if(m&&j.nodeName(n[v],
"script")&&(!n[v].type||n[v].type.toLowerCase()==="text/javascript"))m.push(n[v].parentNode?n[v].parentNode.removeChild(n[v]):n[v]);else{if(n[v].nodeType===1){i=j.grep(n[v].getElementsByTagName("script"),e);n.splice.apply(n,[v+1,0].concat(i))}l.appendChild(n[v])}}return n},cleanData:function(e){for(var i,l,m=j.cache,n=j.expando,r=j.event.special,v=j.support.deleteExpando,C=0,E;(E=e[C])!=null;C++)if(!(E.nodeName&&j.noData[E.nodeName.toLowerCase()]))if(l=E[j.expando]){if((i=m[l]&&m[l][n])&&i.events){for(var H in i.events)r[H]?
j.event.remove(E,H):j.removeEvent(E,H,i.handle);if(i.handle)i.handle.elem=null}if(v)delete E[j.expando];else E.removeAttribute&&E.removeAttribute(j.expando);delete m[l]}}});var wb=/alpha\([^)]*\)/i,Ub=/opacity=([^)]*)/,Vb=/([A-Z]|^ms)/g,xb=/^-?\d+(?:px)?$/i,Wb=/^-?\d/,Xb=/^[+\-]=/,Yb=/[^+\-\.\de]+/g,Zb={position:"absolute",visibility:"hidden",display:"block"},Ib=["Left","Right"],Jb=["Top","Bottom"],Xa,yb,zb;j.fn.css=function(e,i){if(arguments.length===2&&i===a)return this;return j.access(this,e,i,
true,function(l,m,n){return n!==a?j.style(l,m,n):j.css(l,m)})};j.extend({cssHooks:{opacity:{get:function(e,i){if(i){var l=Xa(e,"opacity","opacity");return l===""?"1":l}else return e.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,i,l,m){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var n,r=j.camelCase(i),v=e.style,C=j.cssHooks[r];
i=j.cssProps[r]||r;if(l!==a){m=typeof l;if(!(m==="number"&&isNaN(l)||l==null)){if(m==="string"&&Xb.test(l)){l=+l.replace(Yb,"")+parseFloat(j.css(e,i));m="number"}if(m==="number"&&!j.cssNumber[r])l+="px";if(!C||!("set"in C)||(l=C.set(e,l))!==a)try{v[i]=l}catch(E){}}}else{if(C&&"get"in C&&(n=C.get(e,false,m))!==a)return n;return v[i]}}},css:function(e,i,l){var m,n;i=j.camelCase(i);n=j.cssHooks[i];i=j.cssProps[i]||i;if(i==="cssFloat")i="float";if(n&&"get"in n&&(m=n.get(e,true,l))!==a)return m;else if(Xa)return Xa(e,
i)},swap:function(e,i,l){var m={},n;for(n in i){m[n]=e.style[n];e.style[n]=i[n]}l.call(e);for(n in i)e.style[n]=m[n]}});j.curCSS=j.css;j.each(["height","width"],function(e,i){j.cssHooks[i]={get:function(l,m,n){var r;if(m){if(l.offsetWidth!==0)return R(l,i,n);else j.swap(l,Zb,function(){r=R(l,i,n)});return r}},set:function(l,m){if(xb.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!j.support.opacity)j.cssHooks.opacity={get:function(e,i){return Ub.test((i&&e.currentStyle?e.currentStyle.filter:
e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":i?"1":""},set:function(e,i){var l=e.style,m=e.currentStyle;l.zoom=1;var n=j.isNaN(i)?"":"alpha(opacity="+i*100+")";m=m&&m.filter||l.filter||"";l.filter=wb.test(m)?m.replace(wb,n):m+" "+n}};j(function(){if(!j.support.reliableMarginRight)j.cssHooks.marginRight={get:function(e,i){var l;j.swap(e,{display:"inline-block"},function(){l=i?Xa(e,"margin-right","marginRight"):e.style.marginRight});return l}}});if(T.defaultView&&T.defaultView.getComputedStyle)yb=
function(e,i){var l,m;i=i.replace(Vb,"-$1").toLowerCase();if(!(m=e.ownerDocument.defaultView))return a;if(m=m.getComputedStyle(e,null)){l=m.getPropertyValue(i);if(l===""&&!j.contains(e.ownerDocument.documentElement,e))l=j.style(e,i)}return l};if(T.documentElement.currentStyle)zb=function(e,i){var l,m=e.currentStyle&&e.currentStyle[i],n=e.runtimeStyle&&e.runtimeStyle[i],r=e.style;if(!xb.test(m)&&Wb.test(m)){l=r.left;if(n)e.runtimeStyle.left=e.currentStyle.left;r.left=i==="fontSize"?"1em":m||0;m=r.pixelLeft+
"px";r.left=l;if(n)e.runtimeStyle.left=n}return m===""?"auto":m};Xa=yb||zb;if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(e){var i=e.offsetHeight;return e.offsetWidth===0&&i===0||!j.support.reliableHiddenOffsets&&(e.style.display||j.css(e,"display"))==="none"};j.expr.filters.visible=function(e){return!j.expr.filters.hidden(e)}}var $b=/%20/g,Kb=/\[\]$/,Ab=/\r?\n/g,ac=/#.*$/,bc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cc=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
dc=/^(?:GET|HEAD)$/,ec=/^\/\//,Bb=/\?/,fc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,gc=/^(?:select|textarea)/i,pb=/\s+/,hc=/([?&])_=[^&]*/,Cb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Db=j.fn.load,ib={},Eb={},Ua,Va;try{Ua=Ea.href}catch(pc){Ua=T.createElement("a");Ua.href="";Ua=Ua.href}Va=Cb.exec(Ua.toLowerCase())||[];j.fn.extend({load:function(e,i,l){if(typeof e!=="string"&&Db)return Db.apply(this,arguments);else if(!this.length)return this;var m=e.indexOf(" ");if(m>=0){var n=e.slice(m,
e.length);e=e.slice(0,m)}m="GET";if(i)if(j.isFunction(i)){l=i;i=a}else if(typeof i==="object"){i=j.param(i,j.ajaxSettings.traditional);m="POST"}var r=this;j.ajax({url:e,type:m,dataType:"html",data:i,complete:function(v,C,E){E=v.responseText;if(v.isResolved()){v.done(function(H){E=H});r.html(n?j("<div>").append(E.replace(fc,"")).find(n):E)}l&&r.each(l,[E,C,v])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||gc.test(this.nodeName)||cc.test(this.type))}).map(function(e,i){var l=j(this).val();return l==null?null:j.isArray(l)?j.map(l,function(m){return{name:i.name,value:m.replace(Ab,"\r\n")}}):{name:i.name,value:l.replace(Ab,"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,i){j.fn[i]=function(l){return this.bind(i,l)}});j.each(["get","post"],
function(e,i){j[i]=function(l,m,n,r){if(j.isFunction(m)){r=r||n;n=m;m=a}return j.ajax({type:i,url:l,data:m,success:n,dataType:r})}});j.extend({getScript:function(e,i){return j.get(e,a,i,"script")},getJSON:function(e,i,l){return j.get(e,i,l,"json")},ajaxSetup:function(e,i){if(i)j.extend(true,e,j.ajaxSettings,i);else{i=e;e=j.extend(true,j.ajaxSettings,i)}for(var l in{context:1,url:1})if(l in i)e[l]=i[l];else if(l in j.ajaxSettings)e[l]=j.ajaxSettings[l];return e},ajaxSettings:{url:Ua,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Va[1]),
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":true,"text json":j.parseJSON,"text xml":j.parseXML}},ajaxPrefilter:Q(ib),ajaxTransport:Q(Eb),ajax:function(e,i){function l(G,L,U,X){if(Ba!==
2){Ba=2;Ra&&clearTimeout(Ra);qa=a;oa=X||"";z.readyState=G?4:0;var ia,Ga,xa;if(U){X=m;var ya=z,y=X.contents,P=X.dataTypes,aa=X.responseFields,W,ja,la,va;for(ja in aa)if(ja in U)ya[aa[ja]]=U[ja];for(;P[0]==="*";){P.shift();if(W===a)W=X.mimeType||ya.getResponseHeader("content-type")}if(W)for(ja in y)if(y[ja]&&y[ja].test(W)){P.unshift(ja);break}if(P[0]in U)la=P[0];else{for(ja in U){if(!P[0]||X.converters[ja+" "+P[0]]){la=ja;break}va||(va=ja)}la=la||va}if(la){la!==P[0]&&P.unshift(la);U=U[la]}else U=void 0}else U=
a;if(G>=200&&G<300||G===304){if(m.ifModified){if(W=z.getResponseHeader("Last-Modified"))j.lastModified[H]=W;if(W=z.getResponseHeader("Etag"))j.etag[H]=W}if(G===304){L="notmodified";ia=true}else try{W=m;if(W.dataFilter)U=W.dataFilter(U,W.dataType);var wa=W.dataTypes;ja={};var Oa,fb,ic=wa.length,gb,Pa=wa[0],$a,mb,Qa,Wa,ab;for(Oa=1;Oa<ic;Oa++){if(Oa===1)for(fb in W.converters)if(typeof fb==="string")ja[fb.toLowerCase()]=W.converters[fb];$a=Pa;Pa=wa[Oa];if(Pa==="*")Pa=$a;else if($a!=="*"&&$a!==Pa){mb=
$a+" "+Pa;Qa=ja[mb]||ja["* "+Pa];if(!Qa){ab=a;for(Wa in ja){gb=Wa.split(" ");if(gb[0]===$a||gb[0]==="*")if(ab=ja[gb[1]+" "+Pa]){Wa=ja[Wa];if(Wa===true)Qa=ab;else if(ab===true)Qa=Wa;break}}}Qa||ab||j.error("No conversion from "+mb.replace(" "," to "));if(Qa!==true)U=Qa?Qa(U):ab(Wa(U))}}Ga=U;L="success";ia=true}catch(jc){L="parsererror";xa=jc}}else{xa=L;if(!L||G){L="error";if(G<0)G=0}}z.status=G;z.statusText=L;ia?v.resolveWith(n,[Ga,L,z]):v.rejectWith(n,[z,L,xa]);z.statusCode(E);E=a;if(Ma)r.trigger("ajax"+
(ia?"Success":"Error"),[z,m,ia?Ga:xa]);C.resolveWith(n,[z,L]);if(Ma){r.trigger("ajaxComplete",[z,m]);--j.active||j.event.trigger("ajaxStop")}}}if(typeof e==="object"){i=e;e=a}i=i||{};var m=j.ajaxSetup({},i),n=m.context||m,r=n!==m&&(n.nodeType||n instanceof j)?j(n):j.event,v=j.Deferred(),C=j._Deferred(),E=m.statusCode||{},H,O={},ga={},oa,ma,qa,Ra,Aa,Ba=0,Ma,u,z={readyState:0,setRequestHeader:function(G,L){if(!Ba){var U=G.toLowerCase();G=ga[U]=ga[U]||G;O[G]=L}return this},getAllResponseHeaders:function(){return Ba===
2?oa:null},getResponseHeader:function(G){var L;if(Ba===2){if(!ma)for(ma={};L=bc.exec(oa);)ma[L[1].toLowerCase()]=L[2];L=ma[G.toLowerCase()]}return L===a?null:L},overrideMimeType:function(G){if(!Ba)m.mimeType=G;return this},abort:function(G){G=G||"abort";qa&&qa.abort(G);l(0,G);return this}};v.promise(z);z.success=z.done;z.error=z.fail;z.complete=C.done;z.statusCode=function(G){if(G){var L;if(Ba<2)for(L in G)E[L]=[E[L],G[L]];else{L=G[z.status];z.then(L,L)}}return this};m.url=((e||m.url)+"").replace(ac,
"").replace(ec,Va[1]+"//");m.dataTypes=j.trim(m.dataType||"*").toLowerCase().split(pb);if(m.crossDomain==null){Aa=Cb.exec(m.url.toLowerCase());m.crossDomain=!!(Aa&&(Aa[1]!=Va[1]||Aa[2]!=Va[2]||(Aa[3]||(Aa[1]==="http:"?80:443))!=(Va[3]||(Va[1]==="http:"?80:443))))}if(m.data&&m.processData&&typeof m.data!=="string")m.data=j.param(m.data,m.traditional);ba(ib,m,i,z);if(Ba===2)return false;Ma=m.global;m.type=m.type.toUpperCase();m.hasContent=!dc.test(m.type);Ma&&j.active++===0&&j.event.trigger("ajaxStart");
if(!m.hasContent){if(m.data)m.url+=(Bb.test(m.url)?"&":"?")+m.data;H=m.url;if(m.cache===false){Aa=j.now();var I=m.url.replace(hc,"$1_="+Aa);m.url=I+(I===m.url?(Bb.test(m.url)?"&":"?")+"_="+Aa:"")}}if(m.data&&m.hasContent&&m.contentType!==false||i.contentType)z.setRequestHeader("Content-Type",m.contentType);if(m.ifModified){H=H||m.url;j.lastModified[H]&&z.setRequestHeader("If-Modified-Since",j.lastModified[H]);j.etag[H]&&z.setRequestHeader("If-None-Match",j.etag[H])}z.setRequestHeader("Accept",m.dataTypes[0]&&
m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+(m.dataTypes[0]!=="*"?", */*; q=0.01":""):m.accepts["*"]);for(u in m.headers)z.setRequestHeader(u,m.headers[u]);if(m.beforeSend&&(m.beforeSend.call(n,z,m)===false||Ba===2)){z.abort();return false}for(u in{success:1,error:1,complete:1})z[u](m[u]);if(qa=ba(Eb,m,i,z)){z.readyState=1;Ma&&r.trigger("ajaxSend",[z,m]);if(m.async&&m.timeout>0)Ra=setTimeout(function(){z.abort("timeout")},m.timeout);try{Ba=1;qa.send(O,l)}catch(M){status<2?l(-1,M):j.error(M)}}else l(-1,
"No Transport");return z},param:function(e,i){var l=[],m=function(r,v){v=j.isFunction(v)?v():v;l[l.length]=encodeURIComponent(r)+"="+encodeURIComponent(v)};if(i===a)i=j.ajaxSettings.traditional;if(j.isArray(e)||e.jquery&&!j.isPlainObject(e))j.each(e,function(){m(this.name,this.value)});else for(var n in e)ea(n,e[n],i,m);return l.join("&").replace($b,"+")}});j.extend({active:0,lastModified:{},etag:{}});var kc=j.now(),hb=/(\=)\?(&|$)|\?\?/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+
"_"+kc++}});j.ajaxPrefilter("json jsonp",function(e,i,l){i=e.contentType==="application/x-www-form-urlencoded"&&typeof e.data==="string";if(e.dataTypes[0]==="jsonp"||e.jsonp!==false&&(hb.test(e.url)||i&&hb.test(e.data))){var m,n=e.jsonpCallback=j.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r=b[n],v=e.url,C=e.data,E="$1"+n+"$2";if(e.jsonp!==false){v=v.replace(hb,E);if(e.url===v){if(i)C=C.replace(hb,E);if(e.data===C)v+=(/\?/.test(v)?"&":"?")+e.jsonp+"="+n}}e.url=v;e.data=C;b[n]=function(H){m=
[H]};l.always(function(){b[n]=r;if(m&&j.isFunction(r))b[n](m[0])});e.converters["script json"]=function(){m||j.error(n+" was not called");return m[0]};e.dataTypes[0]="json";return"script"}});j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){j.globalEval(e);return e}}});j.ajaxPrefilter("script",function(e){if(e.cache===a)e.cache=false;if(e.crossDomain){e.type=
"GET";e.global=false}});j.ajaxTransport("script",function(e){if(e.crossDomain){var i,l=T.head||T.getElementsByTagName("head")[0]||T.documentElement;return{send:function(m,n){i=T.createElement("script");i.async="async";if(e.scriptCharset)i.charset=e.scriptCharset;i.src=e.url;i.onload=i.onreadystatechange=function(r,v){if(v||!i.readyState||/loaded|complete/.test(i.readyState)){i.onload=i.onreadystatechange=null;l&&i.parentNode&&l.removeChild(i);i=a;v||n(200,"success")}};l.insertBefore(i,l.firstChild)},
abort:function(){if(i)i.onload(0,1)}}}});var nb=b.ActiveXObject?function(){for(var e in bb)bb[e](0,1)}:false,lc=0,bb;j.ajaxSettings.xhr=b.ActiveXObject?function(){var e;if(!(e=!this.isLocal&&$()))a:{try{e=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(i){}e=void 0}return e}:$;(function(e){j.extend(j.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})})(j.ajaxSettings.xhr());j.support.ajax&&j.ajaxTransport(function(e){if(!e.crossDomain||j.support.cors){var i;return{send:function(l,m){var n=
e.xhr(),r,v;e.username?n.open(e.type,e.url,e.async,e.username,e.password):n.open(e.type,e.url,e.async);if(e.xhrFields)for(v in e.xhrFields)n[v]=e.xhrFields[v];e.mimeType&&n.overrideMimeType&&n.overrideMimeType(e.mimeType);if(!e.crossDomain&&!l["X-Requested-With"])l["X-Requested-With"]="XMLHttpRequest";try{for(v in l)n.setRequestHeader(v,l[v])}catch(C){}n.send(e.hasContent&&e.data||null);i=function(E,H){var O,ga,oa,ma,qa;try{if(i&&(H||n.readyState===4)){i=a;if(r){n.onreadystatechange=j.noop;nb&&delete bb[r]}if(H)n.readyState!==
4&&n.abort();else{O=n.status;oa=n.getAllResponseHeaders();ma={};if((qa=n.responseXML)&&qa.documentElement)ma.xml=qa;ma.text=n.responseText;try{ga=n.statusText}catch(Ra){ga=""}if(!O&&e.isLocal&&!e.crossDomain)O=ma.text?200:404;else if(O===1223)O=204}}}catch(Aa){H||m(-1,Aa)}ma&&m(O,ga,ma,oa)};if(!e.async||n.readyState===4)i();else{r=++lc;if(nb){if(!bb){bb={};j(b).unload(nb)}bb[r]=i}n.onreadystatechange=i}},abort:function(){i&&i(0,1)}}}});var jb={},La,Ya,mc=/^(?:toggle|show|hide)$/,nc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
cb,qb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],db,ob=b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame;j.fn.extend({show:function(e,i,l){if(e||e===0)return this.animate(ha("show",3),e,i,l);else{l=0;for(var m=this.length;l<m;l++){e=this[l];if(e.style){i=e.style.display;if(!j._data(e,"olddisplay")&&i==="none")i=e.style.display="";i===""&&j.css(e,"display")==="none"&&
j._data(e,"olddisplay",sa(e.nodeName))}}for(l=0;l<m;l++){e=this[l];if(e.style){i=e.style.display;if(i===""||i==="none")e.style.display=j._data(e,"olddisplay")||""}}return this}},hide:function(e,i,l){if(e||e===0)return this.animate(ha("hide",3),e,i,l);else{e=0;for(i=this.length;e<i;e++)if(this[e].style){l=j.css(this[e],"display");l!=="none"&&!j._data(this[e],"olddisplay")&&j._data(this[e],"olddisplay",l)}for(e=0;e<i;e++)if(this[e].style)this[e].style.display="none";return this}},_toggle:j.fn.toggle,
toggle:function(e,i,l){var m=typeof e==="boolean";if(j.isFunction(e)&&j.isFunction(i))this._toggle.apply(this,arguments);else e==null||m?this.each(function(){var n=m?e:j(this).is(":hidden");j(this)[n?"show":"hide"]()}):this.animate(ha("toggle",3),e,i,l);return this},fadeTo:function(e,i,l,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:i},e,l,m)},animate:function(e,i,l,m){var n=j.speed(i,l,m);if(j.isEmptyObject(e))return this.each(n.complete,[false]);e=j.extend({},e);
return this[n.queue===false?"each":"queue"](function(){n.queue===false&&j._mark(this);var r=j.extend({},n),v=this.nodeType===1,C=v&&j(this).is(":hidden"),E,H,O,ga,oa;r.animatedProperties={};for(O in e){E=j.camelCase(O);if(O!==E){e[E]=e[O];delete e[O]}H=e[E];if(j.isArray(H)){r.animatedProperties[E]=H[1];H=e[E]=H[0]}else r.animatedProperties[E]=r.specialEasing&&r.specialEasing[E]||r.easing||"swing";if(H==="hide"&&C||H==="show"&&!C)return r.complete.call(this);if(v&&(E==="height"||E==="width")){r.overflow=
[this.style.overflow,this.style.overflowX,this.style.overflowY];if(j.css(this,"display")==="inline"&&j.css(this,"float")==="none")if(j.support.inlineBlockNeedsLayout){H=sa(this.nodeName);if(H==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}else this.style.display="inline-block"}}if(r.overflow!=null)this.style.overflow="hidden";for(O in e){v=new j.fx(this,r,O);H=e[O];if(mc.test(H))v[H==="toggle"?C?"show":"hide":H]();else{E=nc.exec(H);ga=v.cur();if(E){H=
parseFloat(E[2]);oa=E[3]||(j.cssNumber[O]?"":"px");if(oa!=="px"){j.style(this,O,(H||1)+oa);ga*=(H||1)/v.cur();j.style(this,O,ga+oa)}if(E[1])H=(E[1]==="-="?-1:1)*H+ga;v.custom(ga,H,oa)}else v.custom(ga,H,"")}}return true})},stop:function(e,i){e&&this.queue([]);this.each(function(){var l=j.timers,m=l.length;for(i||j._unmark(true,this);m--;)if(l[m].elem===this){if(i)l[m](true);l.splice(m,1)}});i||this.dequeue();return this}});j.each({slideDown:ha("show",1),slideUp:ha("hide",1),slideToggle:ha("toggle",
1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){j.fn[e]=function(l,m,n){return this.animate(i,l,m,n)}});j.extend({speed:function(e,i,l){var m=e&&typeof e==="object"?j.extend({},e):{complete:l||!l&&i||j.isFunction(e)&&e,duration:e,easing:l&&i||i&&!j.isFunction(i)&&i};m.duration=j.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in j.fx.speeds?j.fx.speeds[m.duration]:j.fx.speeds._default;m.old=m.complete;m.complete=function(n){j.isFunction(m.old)&&
m.old.call(this);if(m.queue!==false)j.dequeue(this);else n!==false&&j._unmark(this)};return m},easing:{linear:function(e,i,l,m){return l+m*e},swing:function(e,i,l,m){return(-Math.cos(e*Math.PI)/2+0.5)*m+l}},timers:[],fx:function(e,i,l){this.options=i;this.elem=e;this.prop=l;i.orig=i.orig||{}}});j.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||j.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||
this.elem.style[this.prop]==null))return this.elem[this.prop];var e,i=j.css(this.elem,this.prop);return isNaN(e=parseFloat(i))?!i||i==="auto"?0:i:e},custom:function(e,i,l){function m(C){return n.step(C)}var n=this,r=j.fx,v;this.startTime=db||fa();this.start=e;this.end=i;this.unit=l||this.unit||(j.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;m.elem=this.elem;if(m()&&j.timers.push(m)&&!cb)if(ob){cb=true;v=function(){if(cb){ob(v);r.tick()}};ob(v)}else cb=setInterval(r.tick,
r.interval)},show:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(e){var i=db||fa(),l=true,m=this.elem,n=this.options,r;if(e||i>=n.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();n.animatedProperties[this.prop]=
true;for(r in n.animatedProperties)if(n.animatedProperties[r]!==true)l=false;if(l){n.overflow!=null&&!j.support.shrinkWrapBlocks&&j.each(["","X","Y"],function(C,E){m.style["overflow"+E]=n.overflow[C]});n.hide&&j(m).hide();if(n.hide||n.show)for(var v in n.animatedProperties)j.style(m,v,n.orig[v]);n.complete.call(m)}return false}else{if(n.duration==Infinity)this.now=i;else{e=i-this.startTime;this.state=e/n.duration;this.pos=j.easing[n.animatedProperties[this.prop]](this.state,e,0,1,n.duration);this.now=
this.start+(this.end-this.start)*this.pos}this.update()}return true}};j.extend(j.fx,{tick:function(){for(var e=j.timers,i=0;i<e.length;++i)e[i]()||e.splice(i--,1);e.length||j.fx.stop()},interval:13,stop:function(){clearInterval(cb);cb=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){j.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null)e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit;else e.elem[e.prop]=
e.now}}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(e){return j.grep(j.timers,function(i){return e===i.elem}).length};var oc=/^t(?:able|d|h)$/i,Fb=/^(?:body|html)$/i;j.fn.offset="getBoundingClientRect"in T.documentElement?function(e){var i=this[0],l;if(e)return this.each(function(v){j.offset.setOffset(this,e,v)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);try{l=i.getBoundingClientRect()}catch(m){}var n=i.ownerDocument,r=n.documentElement;
if(!l||!j.contains(r,i))return l?{top:l.top,left:l.left}:{top:0,left:0};i=n.body;n=za(n);return{top:l.top+(n.pageYOffset||j.support.boxModel&&r.scrollTop||i.scrollTop)-(r.clientTop||i.clientTop||0),left:l.left+(n.pageXOffset||j.support.boxModel&&r.scrollLeft||i.scrollLeft)-(r.clientLeft||i.clientLeft||0)}}:function(e){var i=this[0];if(e)return this.each(function(H){j.offset.setOffset(this,e,H)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return j.offset.bodyOffset(i);j.offset.initialize();
var l,m=i.offsetParent,n=i.ownerDocument,r=n.documentElement,v=n.body;l=(n=n.defaultView)?n.getComputedStyle(i,null):i.currentStyle;for(var C=i.offsetTop,E=i.offsetLeft;(i=i.parentNode)&&i!==v&&i!==r;){if(j.offset.supportsFixedPosition&&l.position==="fixed")break;l=n?n.getComputedStyle(i,null):i.currentStyle;C-=i.scrollTop;E-=i.scrollLeft;if(i===m){C+=i.offsetTop;E+=i.offsetLeft;if(j.offset.doesNotAddBorder&&!(j.offset.doesAddBorderForTableAndCells&&oc.test(i.nodeName))){C+=parseFloat(l.borderTopWidth)||
0;E+=parseFloat(l.borderLeftWidth)||0}m=i.offsetParent}if(j.offset.subtractsBorderForOverflowNotVisible&&l.overflow!=="visible"){C+=parseFloat(l.borderTopWidth)||0;E+=parseFloat(l.borderLeftWidth)||0}}if(l.position==="relative"||l.position==="static"){C+=v.offsetTop;E+=v.offsetLeft}if(j.offset.supportsFixedPosition&&l.position==="fixed"){C+=Math.max(r.scrollTop,v.scrollTop);E+=Math.max(r.scrollLeft,v.scrollLeft)}return{top:C,left:E}};j.offset={initialize:function(){var e=T.body,i=T.createElement("div"),
l,m,n,r=parseFloat(j.css(e,"marginTop"))||0;j.extend(i.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});i.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";e.insertBefore(i,e.firstChild);l=i.firstChild;
m=l.firstChild;n=l.nextSibling.firstChild.firstChild;this.doesNotAddBorder=m.offsetTop!==5;this.doesAddBorderForTableAndCells=n.offsetTop===5;m.style.position="fixed";m.style.top="20px";this.supportsFixedPosition=m.offsetTop===20||m.offsetTop===15;m.style.position=m.style.top="";l.style.overflow="hidden";l.style.position="relative";this.subtractsBorderForOverflowNotVisible=m.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=e.offsetTop!==r;e.removeChild(i);j.offset.initialize=j.noop},bodyOffset:function(e){var i=
e.offsetTop,l=e.offsetLeft;j.offset.initialize();if(j.offset.doesNotIncludeMarginInBodyOffset){i+=parseFloat(j.css(e,"marginTop"))||0;l+=parseFloat(j.css(e,"marginLeft"))||0}return{top:i,left:l}},setOffset:function(e,i,l){var m=j.css(e,"position");if(m==="static")e.style.position="relative";var n=j(e),r=n.offset(),v=j.css(e,"top"),C=j.css(e,"left"),E={},H={};if((m==="absolute"||m==="fixed")&&j.inArray("auto",[v,C])>-1){H=n.position();m=H.top;C=H.left}else{m=parseFloat(v)||0;C=parseFloat(C)||0}if(j.isFunction(i))i=
i.call(e,l,r);if(i.top!=null)E.top=i.top-r.top+m;if(i.left!=null)E.left=i.left-r.left+C;"using"in i?i.using.call(e,E):n.css(E)}};j.fn.extend({position:function(){if(!this[0])return null;var e=this[0],i=this.offsetParent(),l=this.offset(),m=Fb.test(i[0].nodeName)?{top:0,left:0}:i.offset();l.top-=parseFloat(j.css(e,"marginTop"))||0;l.left-=parseFloat(j.css(e,"marginLeft"))||0;m.top+=parseFloat(j.css(i[0],"borderTopWidth"))||0;m.left+=parseFloat(j.css(i[0],"borderLeftWidth"))||0;return{top:l.top-m.top,
left:l.left-m.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||T.body;e&&!Fb.test(e.nodeName)&&j.css(e,"position")==="static";)e=e.offsetParent;return e})}});j.each(["Left","Top"],function(e,i){var l="scroll"+i;j.fn[l]=function(m){var n,r;if(m===a){n=this[0];if(!n)return null;return(r=za(n))?"pageXOffset"in r?r[e?"pageYOffset":"pageXOffset"]:j.support.boxModel&&r.document.documentElement[l]||r.document.body[l]:n[l]}return this.each(function(){if(r=za(this))r.scrollTo(!e?
m:j(r).scrollLeft(),e?m:j(r).scrollTop());else this[l]=m})}});j.each(["Height","Width"],function(e,i){var l=i.toLowerCase();j.fn["inner"+i]=function(){var m=this[0];return m&&m.style?parseFloat(j.css(m,l,"padding")):null};j.fn["outer"+i]=function(m){var n=this[0];return n&&n.style?parseFloat(j.css(n,l,m?"margin":"border")):null};j.fn[l]=function(m){var n=this[0];if(!n)return m==null?null:this;if(j.isFunction(m))return this.each(function(v){var C=j(this);C[l](m.call(this,v,C[l]()))});if(j.isWindow(n)){var r=
n.document.documentElement["client"+i];return n.document.compatMode==="CSS1Compat"&&r||n.document.body["client"+i]||r}else if(n.nodeType===9)return Math.max(n.documentElement["client"+i],n.body["scroll"+i],n.documentElement["scroll"+i],n.body["offset"+i],n.documentElement["offset"+i]);else if(m===a){n=j.css(n,l);r=parseFloat(n);return j.isNaN(r)?n:r}else return this.css(l,typeof m==="string"?m:m+"px")}});b.jQuery=b.$=j})(window);
(function(b){b.toJSON=function(f){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(f);var g=typeof f;if(f===null)return"null";if(g!="undefined"){if(g=="number"||g=="boolean")return f+"";if(g=="string")return b.quoteString(f);if(g=="object"){if(typeof f.toJSON=="function")return b.toJSON(f.toJSON());if(f.constructor===Date){var c=f.getUTCMonth()+1;if(c<10)c="0"+c;var h=f.getUTCDate();if(h<10)h="0"+h;g=f.getUTCFullYear();var k=f.getUTCHours();if(k<10)k="0"+k;var o=f.getUTCMinutes();if(o<
10)o="0"+o;var q=f.getUTCSeconds();if(q<10)q="0"+q;f=f.getUTCMilliseconds();if(f<100)f="0"+f;if(f<10)f="0"+f;return'"'+g+"-"+c+"-"+h+"T"+k+":"+o+":"+q+"."+f+'Z"'}if(f.constructor===Array){c=[];for(h=0;h<f.length;h++)c.push(b.toJSON(f[h])||"null");return"["+c.join(",")+"]"}c=[];for(h in f){g=typeof h;if(g=="number")g='"'+h+'"';else if(g=="string")g=b.quoteString(h);else continue;if(typeof f[h]!="function"){k=b.toJSON(f[h]);c.push(g+":"+k)}}return"{"+c.join(", ")+"}"}}};b.evalJSON=function(f){if(typeof JSON==
"object"&&JSON.parse)return JSON.parse(f);return eval("("+f+")")};b.secureEvalJSON=function(f){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(f);var g;g=f.replace(/\\["\\\/bfnrtu]/g,"@");g=g.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");g=g.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(g))return eval("("+f+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};b.quoteString=function(f){if(f.match(a))return'"'+f.replace(a,
function(g){var c=d[g];if(typeof c==="string")return c;c=g.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"';return'"'+f+'"'};var a=/["\\\x00-\x1f\x7f-\x9f]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery);
(function(b,a){function d(f){return!b(f).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.7",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});b.fn.extend({_focus:b.fn.focus,focus:function(f,g){return typeof f==="number"?this.each(function(){var c=this;setTimeout(function(){b(c).focus();g&&g.call(c)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var f;f=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!f.length?b(document):f},zIndex:function(f){if(f!==a)return this.css("zIndex",f);if(this.length){f=b(this[0]);for(var g;f.length&&f[0]!==document;){g=f.css("position");
if(g==="absolute"||g==="relative"||g==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0)return g}f=f.parent()}}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(f){f.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(f,g){function c(q,x,s,p){b.each(h,function(){x-=parseFloat(b.curCSS(q,"padding"+this,true))||0;if(s)x-=parseFloat(b.curCSS(q,
"border"+this+"Width",true))||0;if(p)x-=parseFloat(b.curCSS(q,"margin"+this,true))||0});return x}var h=g==="Width"?["Left","Right"]:["Top","Bottom"],k=g.toLowerCase(),o={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+g]=function(q){if(q===a)return o["inner"+g].call(this);return this.each(function(){b(this).css(k,c(this,q)+"px")})};b.fn["outer"+g]=function(q,x){if(typeof q!=="number")return o["outer"+g].call(this,q);return this.each(function(){b(this).css(k,
c(this,q,true,x)+"px")})}});b.extend(b.expr[":"],{data:function(f,g,c){return!!b.data(f,c[3])},focusable:function(f){var g=f.nodeName.toLowerCase(),c=b.attr(f,"tabindex");if("area"===g){g=f.parentNode;c=g.name;if(!f.href||!c||g.nodeName.toLowerCase()!=="map")return false;f=b("img[usemap=#"+c+"]")[0];return!!f&&d(f)}return(/input|select|textarea|button|object/.test(g)?!f.disabled:"a"==g?f.href||!isNaN(c):!isNaN(c))&&d(f)},tabbable:function(f){var g=b.attr(f,"tabindex");return(isNaN(g)||g>=0)&&b(f).is(":focusable")}});
b(function(){var f=document.body,g=f.appendChild(g=document.createElement("div"));b.extend(g.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=g.offsetHeight===100;b.support.selectstart="onselectstart"in g;f.removeChild(g).style.display="none"});b.extend(b.ui,{plugin:{add:function(f,g,c){f=b.ui[f].prototype;for(var h in c){f.plugins[h]=f.plugins[h]||[];f.plugins[h].push([g,c[h]])}},call:function(f,g,c){if((g=f.plugins[g])&&f.element[0].parentNode)for(var h=0;h<g.length;h++)f.options[g[h][0]]&&
g[h][1].apply(f.element,c)}},contains:function(f,g){return document.compareDocumentPosition?f.compareDocumentPosition(g)&16:f!==g&&f.contains(g)},hasScroll:function(f,g){if(b(f).css("overflow")==="hidden")return false;var c=g&&g==="left"?"scrollLeft":"scrollTop",h=false;if(f[c]>0)return true;f[c]=1;h=f[c]>0;f[c]=0;return h},isOverAxis:function(f,g,c){return f>g&&f<g+c},isOver:function(f,g,c,h,k,o){return b.ui.isOverAxis(f,c,k)&&b.ui.isOverAxis(g,h,o)}})}})(jQuery);
(function(b,a){if(b.cleanData){var d=b.cleanData;b.cleanData=function(g){for(var c=0,h;(h=g[c])!=null;c++)b(h).triggerHandler("remove");d(g)}}else{var f=b.fn.remove;b.fn.remove=function(g,c){return this.each(function(){if(!c)if(!g||b.filter(g,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return f.call(b(this),g,c)})}}b.widget=function(g,c,h){var k=g.split(".")[0],o;g=g.split(".")[1];o=k+"-"+g;if(!h){h=c;c=b.Widget}b.expr[":"][o]=function(q){return!!b.data(q,
g)};b[k]=b[k]||{};b[k][g]=function(q,x){arguments.length&&this._createWidget(q,x)};c=new c;c.options=b.extend(true,{},c.options);b[k][g].prototype=b.extend(true,c,{namespace:k,widgetName:g,widgetEventPrefix:b[k][g].prototype.widgetEventPrefix||g,widgetBaseClass:o},h);b.widget.bridge(g,b[k][g])};b.widget.bridge=function(g,c){b.fn[g]=function(h){var k=typeof h==="string",o=Array.prototype.slice.call(arguments,1),q=this;h=!k&&o.length?b.extend.apply(null,[true,h].concat(o)):h;if(k&&h.charAt(0)==="_")return q;
k?this.each(function(){var x=b.data(this,g),s=x&&b.isFunction(x[h])?x[h].apply(x,o):x;if(s!==x&&s!==a){q=s;return false}}):this.each(function(){var x=b.data(this,g);x?x.option(h||{})._init():b.data(this,g,new c(h,this))});return q}};b.Widget=function(g,c){arguments.length&&this._createWidget(g,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(g,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
this._getCreateOptions(),g);var h=this;this.element.bind("remove."+this.widgetName,function(){h.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(g,c){var h=g;if(arguments.length===0)return b.extend({},this.options);if(typeof g==="string"){if(c===a)return this.options[g];h={};h[g]=c}this._setOptions(h);return this},_setOptions:function(g){var c=this;b.each(g,function(h,k){c._setOption(h,k)});return this},_setOption:function(g,c){this.options[g]=c;if(g==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(g,c,h){var k=this.options[g];c=b.Event(c);c.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase();h=h||{};if(c.originalEvent){g=b.event.props.length;for(var o;g;){o=b.event.props[--g];c[o]=c.originalEvent[o]}}this.element.trigger(c,h);return!(b.isFunction(k)&&k.call(this.element[0],c,h)===false||c.isDefaultPrevented())}}})(jQuery);
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(d){return a._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===b.data(d.target,a.widgetName+".preventClickEvent")){b.removeData(d.target,a.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=
a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var d=this,f=a.which==1,g=typeof this.options.cancel=="string"?b(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}this._mouseMoveDelegate=function(c){return d._mouseMove(c)};this._mouseUpDelegate=function(c){return d._mouseUp(c)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(b.browser.msie&&!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);
return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",
true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(b){b.widget("ui.draggable",b.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var d=
this.options;if(this.helper||d.disabled||b(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,d){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!d){var f=this._uiHash();if(this._trigger("drag",a,f)===false){this._mouseUp({});return false}this.position=f.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var d=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)d=b.ui.ddmanager.drop(this,a);if(this.dropped){d=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,
d)){var f=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",a)!==false&&f._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
a.target)d=true});return d},_createHelper:function(a){var d=this.options;a=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[a])):d.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(b.isArray(a))a={left:+a[0],top:+a[1]||
0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[(a.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(a.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(a.containment=="document"?0:b(window).scrollLeft())+b(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?
0:b(window).scrollTop())+(b(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var d=b(a.containment)[0];if(d){a=b(a.containment).offset();var f=b(d).css("overflow")!="hidden";this.containment=[a.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(b(d).css("borderTopWidth"),
10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,a.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==
Array)this.containment=a.containment},_convertPositionTo:function(a,d){if(!d)d=this.position;var f=a=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(g[0].tagName);return{top:d.top+this.offset.relative.top*f+this.offset.parent.top*f-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
c?0:g.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:g.scrollLeft())*f)}},_generatePosition:function(a){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName),c=a.pageX,h=a.pageY;
if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])c=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])c=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(d.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/
d.grid[1])*d.grid[1];h=this.containment?!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-d.grid[1]:h+d.grid[1]:h;c=this.originalPageX+Math.round((c-this.originalPageX)/d.grid[0])*d.grid[0];c=this.containment?!(c-this.offset.click.left<this.containment[0]||c-this.offset.click.left>this.containment[2])?c:!(c-this.offset.click.left<this.containment[0])?c-d.grid[0]:c+d.grid[0]:c}}return{top:h-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.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(a,d,f){f=f||this._uiHash();b.ui.plugin.call(this,a,[d,f]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,a,d,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.7"});b.ui.plugin.add("draggable",
"connectToSortable",{start:function(a,d){var f=b(this).data("draggable"),g=f.options,c=b.extend({},d,{item:f.element});f.sortables=[];b(g.connectToSortable).each(function(){var h=b.data(this,"sortable");if(h&&!h.options.disabled){f.sortables.push({instance:h,shouldRevert:h.options.revert});h._refreshItems();h._trigger("activate",a,c)}})},stop:function(a,d){var f=b(this).data("draggable"),g=b.extend({},d,{item:f.element});b.each(f.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;f.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;f.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,g)}})},drag:function(a,d){var f=b(this).data("draggable"),g=this;b.each(f.sortables,function(){this.instance.positionAbs=
f.positionAbs;this.instance.helperProportions=f.helperProportions;this.instance.offset.click=f.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(g).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,
true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",a);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();f._trigger("fromSortable",a);f.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var a=b("body"),d=b(this).data("draggable").options;if(a.css("cursor"))d._cursor=
a.css("cursor");a.css("cursor",d.cursor)},stop:function(){var a=b(this).data("draggable").options;a._cursor&&b("body").css("cursor",a._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var a=b(this).data("draggable").options;b(a.iframeFix===true?"iframe":a.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},
stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(a,d){var f=b(d.helper),g=b(this).data("draggable").options;if(f.css("opacity"))g._opacity=f.css("opacity");f.css("opacity",g.opacity)},stop:function(a,d){var f=b(this).data("draggable").options;f._opacity&&b(d.helper).css("opacity",f._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var a=b(this).data("draggable");if(a.scrollParent[0]!=
document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var d=b(this).data("draggable"),f=d.options,g=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-a.pageY<f.scrollSensitivity)d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop+f.scrollSpeed;else if(a.pageY-d.overflowOffset.top<f.scrollSensitivity)d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop-
f.scrollSpeed;if(!f.axis||f.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-a.pageX<f.scrollSensitivity)d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft+f.scrollSpeed;else if(a.pageX-d.overflowOffset.left<f.scrollSensitivity)d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(!f.axis||f.axis!="x")if(a.pageY-b(document).scrollTop()<f.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-
(a.pageY-b(document).scrollTop())<f.scrollSensitivity)g=b(document).scrollTop(b(document).scrollTop()+f.scrollSpeed);if(!f.axis||f.axis!="y")if(a.pageX-b(document).scrollLeft()<f.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(a.pageX-b(document).scrollLeft())<f.scrollSensitivity)g=b(document).scrollLeft(b(document).scrollLeft()+f.scrollSpeed)}g!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(d,a)}});b.ui.plugin.add("draggable",
"snap",{start:function(){var a=b(this).data("draggable"),d=a.options;a.snapElements=[];b(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var f=b(this),g=f.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:f.outerWidth(),height:f.outerHeight(),top:g.top,left:g.left})})},drag:function(a,d){for(var f=b(this).data("draggable"),g=f.options,c=g.snapTolerance,h=d.offset.left,k=h+f.helperProportions.width,o=d.offset.top,q=o+f.helperProportions.height,x=
f.snapElements.length-1;x>=0;x--){var s=f.snapElements[x].left,p=s+f.snapElements[x].width,w=f.snapElements[x].top,A=w+f.snapElements[x].height;if(s-c<h&&h<p+c&&w-c<o&&o<A+c||s-c<h&&h<p+c&&w-c<q&&q<A+c||s-c<k&&k<p+c&&w-c<o&&o<A+c||s-c<k&&k<p+c&&w-c<q&&q<A+c){if(g.snapMode!="inner"){var D=Math.abs(w-q)<=c,K=Math.abs(A-o)<=c,R=Math.abs(s-k)<=c,Q=Math.abs(p-h)<=c;if(D)d.position.top=f._convertPositionTo("relative",{top:w-f.helperProportions.height,left:0}).top-f.margins.top;if(K)d.position.top=f._convertPositionTo("relative",
{top:A,left:0}).top-f.margins.top;if(R)d.position.left=f._convertPositionTo("relative",{top:0,left:s-f.helperProportions.width}).left-f.margins.left;if(Q)d.position.left=f._convertPositionTo("relative",{top:0,left:p}).left-f.margins.left}var ba=D||K||R||Q;if(g.snapMode!="outer"){D=Math.abs(w-o)<=c;K=Math.abs(A-q)<=c;R=Math.abs(s-h)<=c;Q=Math.abs(p-k)<=c;if(D)d.position.top=f._convertPositionTo("relative",{top:w,left:0}).top-f.margins.top;if(K)d.position.top=f._convertPositionTo("relative",{top:A-
f.helperProportions.height,left:0}).top-f.margins.top;if(R)d.position.left=f._convertPositionTo("relative",{top:0,left:s}).left-f.margins.left;if(Q)d.position.left=f._convertPositionTo("relative",{top:0,left:p-f.helperProportions.width}).left-f.margins.left}if(!f.snapElements[x].snapping&&(D||K||R||Q||ba))f.options.snap.snap&&f.options.snap.snap.call(f.element,a,b.extend(f._uiHash(),{snapItem:f.snapElements[x].item}));f.snapElements[x].snapping=D||K||R||Q||ba}else{f.snapElements[x].snapping&&f.options.snap.release&&
f.options.snap.release.call(f.element,a,b.extend(f._uiHash(),{snapItem:f.snapElements[x].item}));f.snapElements[x].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var a=b(this).data("draggable").options;a=b.makeArray(b(a.stack)).sort(function(f,g){return(parseInt(b(f).css("zIndex"),10)||0)-(parseInt(b(g).css("zIndex"),10)||0)});if(a.length){var d=parseInt(a[0].style.zIndex)||0;b(a).each(function(f){this.style.zIndex=d+f});this[0].style.zIndex=d+a.length}}});b.ui.plugin.add("draggable",
"zIndex",{start:function(a,d){var f=b(d.helper),g=b(this).data("draggable").options;if(f.css("zIndex"))g._zIndex=f.css("zIndex");f.css("zIndex",g.zIndex)},stop:function(a,d){var f=b(this).data("draggable").options;f._zIndex&&b(d.helper).css("zIndex",f._zIndex)}})})(jQuery);
(function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,d=a.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(d)?d:function(f){return f.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[a.scope]=b.ui.ddmanager.droppables[a.scope]||[];b.ui.ddmanager.droppables[a.scope].push(this);
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=b.ui.ddmanager.droppables[this.options.scope],d=0;d<a.length;d++)a[d]==this&&a.splice(d,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,d){if(a=="accept")this.accept=b.isFunction(d)?d:function(f){return f.is(d)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var d=b.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);d&&this._trigger("activate",a,this.ui(d))},_deactivate:function(a){var d=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",a,this.ui(d))},_over:function(a){var d=b.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",a,this.ui(d))}},_out:function(a){var d=b.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",a,this.ui(d))}},_drop:function(a,d){var f=d||b.ui.ddmanager.current;if(!f||(f.currentItem||f.element)[0]==this.element[0])return false;var g=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var c=
b.data(this,"droppable");if(c.options.greedy&&!c.options.disabled&&c.options.scope==f.options.scope&&c.accept.call(c.element[0],f.currentItem||f.element)&&b.ui.intersect(f,b.extend(c,{offset:c.element.offset()}),c.options.tolerance)){g=true;return false}});if(g)return false;if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
a,this.ui(f));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.7"});b.ui.intersect=function(a,d,f){if(!d.offset)return false;var g=(a.positionAbs||a.position.absolute).left,c=g+a.helperProportions.width,h=(a.positionAbs||a.position.absolute).top,k=h+a.helperProportions.height,o=d.offset.left,q=o+d.proportions.width,x=d.offset.top,s=x+d.proportions.height;switch(f){case "fit":return o<=
g&&c<=q&&x<=h&&k<=s;case "intersect":return o<g+a.helperProportions.width/2&&c-a.helperProportions.width/2<q&&x<h+a.helperProportions.height/2&&k-a.helperProportions.height/2<s;case "pointer":return b.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,x,o,d.proportions.height,d.proportions.width);case "touch":return(h>=x&&h<=s||k>=x&&k<=s||h<x&&k>s)&&(g>=o&&g<=q||c>=o&&c<=q||g<o&&c>q);
default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,d){var f=b.ui.ddmanager.droppables[a.options.scope]||[],g=d?d.type:null,c=(a.currentItem||a.element).find(":data(droppable)").andSelf(),h=0;a:for(;h<f.length;h++)if(!(f[h].options.disabled||a&&!f[h].accept.call(f[h].element[0],a.currentItem||a.element))){for(var k=0;k<c.length;k++)if(c[k]==f[h].element[0]){f[h].proportions.height=0;continue a}f[h].visible=f[h].element.css("display")!="none";if(f[h].visible){f[h].offset=
f[h].element.offset();f[h].proportions={width:f[h].element[0].offsetWidth,height:f[h].element[0].offsetHeight};g=="mousedown"&&f[h]._activate.call(f[h],d)}}},drop:function(a,d){var f=false;b.each(b.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(a,this,this.options.tolerance))f=f||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||a.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,d)}}});return f},drag:function(a,d){a.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(a,d);b.each(b.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var f=b.ui.intersect(a,this,this.options.tolerance);if(f=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null){var g;if(this.options.greedy){var c=this.element.parents(":data(droppable):eq(0)");if(c.length){g=b.data(c[0],"droppable");
g.greedyChild=f=="isover"?1:0}}if(g&&f=="isover"){g.isover=0;g.isout=1;g._out.call(g,d)}this[f]=1;this[f=="isout"?"isover":"isout"]=0;this[f=="isover"?"_over":"_out"].call(this,d);if(g&&f=="isout"){g.isout=0;g.isover=1;g._over.call(g,d)}}}})}}})(jQuery);
(function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var f=this,g=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!g.aspectRatio,aspectRatio:g.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:g.helper||g.ghost||g.animate?g.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=g.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var h=0;h<c.length;h++){var k=b.trim(c[h]),o=b('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&o.css({zIndex:++g.zIndex});"se"==k&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(o)}}this._renderAxis=function(q){q=q||this.element;for(var x in this.handles){if(this.handles[x].constructor==
String)this.handles[x]=b(this.handles[x],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=b(this.handles[x],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(x)?s.outerHeight():s.outerWidth();s=["padding",/ne|nw|n/.test(x)?"Top":/se|sw|s/.test(x)?"Bottom":/^e$/.test(x)?"Right":"Left"].join("");q.css(s,p);this._proportionallyResize()}b(this.handles[x])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!f.resizing){if(this.className)var q=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);f.axis=q&&q[1]?q[1]:"se"}});if(g.autoHide){this._handles.hide();b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){b(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var f=function(c){b(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){f(this.element);var g=this.element;g.after(this.originalElement.css({position:g.css("position"),width:g.outerWidth(),height:g.outerHeight(),top:g.css("top"),left:g.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);f(this.originalElement);return this},_mouseCapture:function(f){var g=false,c;for(c in this.handles)if(b(this.handles[c])[0]==f.target)g=true;return!this.options.disabled&&g},_mouseStart:function(f){var g=this.options,c=this.element.position(),
h=this.element;this.resizing=true;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};if(h.is(".ui-draggable")||/absolute/.test(h.css("position")))h.css({position:"absolute",top:c.top,left:c.left});b.browser.opera&&/relative/.test(h.css("position"))&&h.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=a(this.helper.css("left"));var k=a(this.helper.css("top"));if(g.containment){c+=b(g.containment).scrollLeft()||0;k+=b(g.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:c,top:k};this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()};this.originalPosition={left:c,top:k};this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:
this.originalSize.width/this.originalSize.height||1;g=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",g=="auto"?this.axis+"-resize":g);h.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(f){var g=this.helper,c=this.originalMousePosition,h=this._change[this.axis];if(!h)return false;c=h.apply(this,[f,f.pageX-c.left||0,f.pageY-c.top||0]);if(this._aspectRatio||f.shiftKey)c=this._updateRatio(c,f);c=this._respectSize(c,f);this._propagate("resize",
f);g.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(c);this._trigger("resize",f,this.ui());return false},_mouseStop:function(f){this.resizing=false;var g=this.options;if(this._helper){var c=this._proportionallyResizeElements,h=c.length&&/textarea/i.test(c[0].nodeName);c=h&&b.ui.hasScroll(c[0],"left")?0:this.sizeDiff.height;
h={width:this.size.width-(h?0:this.sizeDiff.width),height:this.size.height-c};c=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var k=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;g.animate||this.element.css(b.extend(h,{top:k,left:c}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!g.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",f);this._helper&&this.helper.remove();return false},_updateCache:function(f){this.offset=this.helper.offset();if(d(f.left))this.position.left=f.left;if(d(f.top))this.position.top=f.top;if(d(f.height))this.size.height=f.height;if(d(f.width))this.size.width=f.width},_updateRatio:function(f){var g=this.position,c=this.size,h=this.axis;if(f.height)f.width=c.height*this.aspectRatio;else if(f.width)f.height=c.width/this.aspectRatio;if(h=="sw"){f.left=g.left+(c.width-f.width);f.top=
null}if(h=="nw"){f.top=g.top+(c.height-f.height);f.left=g.left+(c.width-f.width)}return f},_respectSize:function(f){var g=this.options,c=this.axis,h=d(f.width)&&g.maxWidth&&g.maxWidth<f.width,k=d(f.height)&&g.maxHeight&&g.maxHeight<f.height,o=d(f.width)&&g.minWidth&&g.minWidth>f.width,q=d(f.height)&&g.minHeight&&g.minHeight>f.height;if(o)f.width=g.minWidth;if(q)f.height=g.minHeight;if(h)f.width=g.maxWidth;if(k)f.height=g.maxHeight;var x=this.originalPosition.left+this.originalSize.width,s=this.position.top+
this.size.height,p=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(o&&p)f.left=x-g.minWidth;if(h&&p)f.left=x-g.maxWidth;if(q&&c)f.top=s-g.minHeight;if(k&&c)f.top=s-g.maxHeight;if((g=!f.width&&!f.height)&&!f.left&&f.top)f.top=null;else if(g&&!f.top&&f.left)f.left=null;return f},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var f=this.helper||this.element,g=0;g<this._proportionallyResizeElements.length;g++){var c=this._proportionallyResizeElements[g];if(!this.borderDif){var h=
[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],k=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=b.map(h,function(o,q){var x=parseInt(o,10)||0,s=parseInt(k[q],10)||0;return x+s})}b.browser.msie&&(b(f).is(":hidden")||b(f).parents(":hidden").length)||c.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var f=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var g=b.browser.msie&&b.browser.version<7,c=g?1:0;g=g?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(f,
g){return{width:this.originalSize.width+g}},w:function(f,g){return{left:this.originalPosition.left+g,width:this.originalSize.width-g}},n:function(f,g,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(f,g,c){return{height:this.originalSize.height+c}},se:function(f,g,c){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,g,c]))},sw:function(f,g,c){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,g,
c]))},ne:function(f,g,c){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,g,c]))},nw:function(f,g,c){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,g,c]))}},_propagate:function(f,g){b.ui.plugin.call(this,f,[g,this.ui()]);f!="resize"&&this._trigger(f,g,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.8.7"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var f=b(this).data("resizable").options,g=function(c){b(c).each(function(){var h=b(this);h.data("resizable-alsoresize",{width:parseInt(h.width(),10),height:parseInt(h.height(),10),left:parseInt(h.css("left"),10),top:parseInt(h.css("top"),10),position:h.css("position")})})};if(typeof f.alsoResize=="object"&&!f.alsoResize.parentNode)if(f.alsoResize.length){f.alsoResize=
f.alsoResize[0];g(f.alsoResize)}else b.each(f.alsoResize,function(c){g(c)});else g(f.alsoResize)},resize:function(f,g){var c=b(this).data("resizable"),h=c.options,k=c.originalSize,o=c.originalPosition,q={height:c.size.height-k.height||0,width:c.size.width-k.width||0,top:c.position.top-o.top||0,left:c.position.left-o.left||0},x=function(s,p){b(s).each(function(){var w=b(this),A=b(this).data("resizable-alsoresize"),D={},K=p&&p.length?p:w.parents(g.originalElement[0]).length?["width","height"]:["width",
"height","top","left"];b.each(K,function(R,Q){var ba=(A[Q]||0)+(q[Q]||0);if(ba&&ba>=0)D[Q]=ba||null});if(b.browser.opera&&/relative/.test(w.css("position"))){c._revertToRelativePosition=true;w.css({position:"absolute",top:"auto",left:"auto"})}w.css(D)})};typeof h.alsoResize=="object"&&!h.alsoResize.nodeType?b.each(h.alsoResize,function(s,p){x(s,p)}):x(h.alsoResize)},stop:function(){var f=b(this).data("resizable"),g=f.options,c=function(h){b(h).each(function(){var k=b(this);k.css({position:k.data("resizable-alsoresize").position})})};
if(f._revertToRelativePosition){f._revertToRelativePosition=false;typeof g.alsoResize=="object"&&!g.alsoResize.nodeType?b.each(g.alsoResize,function(h){c(h)}):c(g.alsoResize)}b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(f){var g=b(this).data("resizable"),c=g.options,h=g._proportionallyResizeElements,k=h.length&&/textarea/i.test(h[0].nodeName),o=k&&b.ui.hasScroll(h[0],"left")?0:g.sizeDiff.height;k={width:g.size.width-(k?0:g.sizeDiff.width),height:g.size.height-
o};o=parseInt(g.element.css("left"),10)+(g.position.left-g.originalPosition.left)||null;var q=parseInt(g.element.css("top"),10)+(g.position.top-g.originalPosition.top)||null;g.element.animate(b.extend(k,q&&o?{top:q,left:o}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var x={width:parseInt(g.element.css("width"),10),height:parseInt(g.element.css("height"),10),top:parseInt(g.element.css("top"),10),left:parseInt(g.element.css("left"),10)};h&&h.length&&b(h[0]).css({width:x.width,
height:x.height});g._updateCache(x);g._propagate("resize",f)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var f=b(this).data("resizable"),g=f.element,c=f.options.containment;if(g=c instanceof b?c.get(0):/parent/.test(c)?g.parent().get(0):c){f.containerElement=b(g);if(/document/.test(c)||c==document){f.containerOffset={left:0,top:0};f.containerPosition={left:0,top:0};f.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{var h=
b(g),k=[];b(["Top","Right","Left","Bottom"]).each(function(x,s){k[x]=a(h.css("padding"+s))});f.containerOffset=h.offset();f.containerPosition=h.position();f.containerSize={height:h.innerHeight()-k[3],width:h.innerWidth()-k[1]};c=f.containerOffset;var o=f.containerSize.height,q=f.containerSize.width;q=b.ui.hasScroll(g,"left")?g.scrollWidth:q;o=b.ui.hasScroll(g)?g.scrollHeight:o;f.parentData={element:g,left:c.left,top:c.top,width:q,height:o}}}},resize:function(f){var g=b(this).data("resizable"),c=g.options,
h=g.containerOffset,k=g.position;f=g._aspectRatio||f.shiftKey;var o={top:0,left:0},q=g.containerElement;if(q[0]!=document&&/static/.test(q.css("position")))o=h;if(k.left<(g._helper?h.left:0)){g.size.width+=g._helper?g.position.left-h.left:g.position.left-o.left;if(f)g.size.height=g.size.width/c.aspectRatio;g.position.left=c.helper?h.left:0}if(k.top<(g._helper?h.top:0)){g.size.height+=g._helper?g.position.top-h.top:g.position.top;if(f)g.size.width=g.size.height*c.aspectRatio;g.position.top=g._helper?
h.top:0}g.offset.left=g.parentData.left+g.position.left;g.offset.top=g.parentData.top+g.position.top;c=Math.abs((g._helper?g.offset.left-o.left:g.offset.left-o.left)+g.sizeDiff.width);h=Math.abs((g._helper?g.offset.top-o.top:g.offset.top-h.top)+g.sizeDiff.height);k=g.containerElement.get(0)==g.element.parent().get(0);o=/relative|absolute/.test(g.containerElement.css("position"));if(k&&o)c-=g.parentData.left;if(c+g.size.width>=g.parentData.width){g.size.width=g.parentData.width-c;if(f)g.size.height=
g.size.width/g.aspectRatio}if(h+g.size.height>=g.parentData.height){g.size.height=g.parentData.height-h;if(f)g.size.width=g.size.height*g.aspectRatio}},stop:function(){var f=b(this).data("resizable"),g=f.options,c=f.containerOffset,h=f.containerPosition,k=f.containerElement,o=b(f.helper),q=o.offset(),x=o.outerWidth()-f.sizeDiff.width;o=o.outerHeight()-f.sizeDiff.height;f._helper&&!g.animate&&/relative/.test(k.css("position"))&&b(this).css({left:q.left-h.left-c.left,width:x,height:o});f._helper&&!g.animate&&
/static/.test(k.css("position"))&&b(this).css({left:q.left-h.left-c.left,width:x,height:o})}});b.ui.plugin.add("resizable","ghost",{start:function(){var f=b(this).data("resizable"),g=f.options,c=f.size;f.ghost=f.originalElement.clone();f.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof g.ghost=="string"?g.ghost:"");f.ghost.appendTo(f.helper)},resize:function(){var f=b(this).data("resizable");
f.ghost&&f.ghost.css({position:"relative",height:f.size.height,width:f.size.width})},stop:function(){var f=b(this).data("resizable");f.ghost&&f.helper&&f.helper.get(0).removeChild(f.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var f=b(this).data("resizable"),g=f.options,c=f.size,h=f.originalSize,k=f.originalPosition,o=f.axis;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var q=Math.round((c.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1);g=Math.round((c.height-h.height)/
(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(o)){f.size.width=h.width+q;f.size.height=h.height+g}else if(/^(ne)$/.test(o)){f.size.width=h.width+q;f.size.height=h.height+g;f.position.top=k.top-g}else{if(/^(sw)$/.test(o)){f.size.width=h.width+q;f.size.height=h.height+g}else{f.size.width=h.width+q;f.size.height=h.height+g;f.position.top=k.top-g}f.position.left=k.left-q}}});var a=function(f){return parseInt(f,10)||0},d=function(f){return!isNaN(parseInt(f,10))}})(jQuery);
(function(b){b.widget("ui.selectable",b.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var a=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){var f=b(this),g=f.offset();b.data(this,"selectable-item",{element:this,$element:f,left:g.left,top:g.top,right:g.left+f.outerWidth(),bottom:g.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),
selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=b("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(a){var d=this;this.opos=[a.pageX,
a.pageY];if(!this.options.disabled){var f=this.options;this.selectees=b(f.filter,this.element[0]);this._trigger("start",a);b(f.appendTo).append(this.helper);this.helper.css({left:a.clientX,top:a.clientY,width:0,height:0});f.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var g=b.data(this,"selectable-item");g.startselected=true;if(!a.metaKey){g.$element.removeClass("ui-selected");g.selected=false;g.$element.addClass("ui-unselecting");g.unselecting=true;d._trigger("unselecting",
a,{unselecting:g.element})}});b(a.target).parents().andSelf().each(function(){var g=b.data(this,"selectable-item");if(g){var c=!a.metaKey||!g.$element.hasClass("ui-selected");g.$element.removeClass(c?"ui-unselecting":"ui-selected").addClass(c?"ui-selecting":"ui-unselecting");g.unselecting=!c;g.selecting=c;(g.selected=c)?d._trigger("selecting",a,{selecting:g.element}):d._trigger("unselecting",a,{unselecting:g.element});return false}})}},_mouseDrag:function(a){var d=this;this.dragged=true;if(!this.options.disabled){var f=
this.options,g=this.opos[0],c=this.opos[1],h=a.pageX,k=a.pageY;if(g>h){var o=h;h=g;g=o}if(c>k){o=k;k=c;c=o}this.helper.css({left:g,top:c,width:h-g,height:k-c});this.selectees.each(function(){var q=b.data(this,"selectable-item");if(!(!q||q.element==d.element[0])){var x=false;if(f.tolerance=="touch")x=!(q.left>h||q.right<g||q.top>k||q.bottom<c);else if(f.tolerance=="fit")x=q.left>g&&q.right<h&&q.top>c&&q.bottom<k;if(x){if(q.selected){q.$element.removeClass("ui-selected");q.selected=false}if(q.unselecting){q.$element.removeClass("ui-unselecting");
q.unselecting=false}if(!q.selecting){q.$element.addClass("ui-selecting");q.selecting=true;d._trigger("selecting",a,{selecting:q.element})}}else{if(q.selecting)if(a.metaKey&&q.startselected){q.$element.removeClass("ui-selecting");q.selecting=false;q.$element.addClass("ui-selected");q.selected=true}else{q.$element.removeClass("ui-selecting");q.selecting=false;if(q.startselected){q.$element.addClass("ui-unselecting");q.unselecting=true}d._trigger("unselecting",a,{unselecting:q.element})}if(q.selected)if(!a.metaKey&&
!q.startselected){q.$element.removeClass("ui-selected");q.selected=false;q.$element.addClass("ui-unselecting");q.unselecting=true;d._trigger("unselecting",a,{unselecting:q.element})}}}});return false}},_mouseStop:function(a){var d=this;this.dragged=false;b(".ui-unselecting",this.element[0]).each(function(){var f=b.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;d._trigger("unselected",a,{unselected:f.element})});b(".ui-selecting",this.element[0]).each(function(){var f=
b.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;d._trigger("selected",a,{selected:f.element})});this._trigger("stop",a);this.helper.remove();return false}});b.extend(b.ui.selectable,{version:"1.8.7"})})(jQuery);
(function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,d){if(a==="disabled"){this.options[a]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else b.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(a,d){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var f=null,g=this;b(a.target).parents().each(function(){if(b.data(this,"sortable-item")==g){f=b(this);return false}});if(b.data(a.target,"sortable-item")==g)f=b(a.target);if(!f)return false;if(this.options.handle&&!d){var c=false;b(this.options.handle,f).find("*").andSelf().each(function(){if(this==a.target)c=true});if(!c)return false}this.currentItem=
f;this._removeCurrentsFromItems();return true},_mouseStart:function(a,d,f){d=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();
if(d.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!f)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",a,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,f=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(a.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-a.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(a.pageX-this.overflowOffset.left<d.scrollSensitivity)this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(a.pageY-b(document).scrollTop()<d.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()-d.scrollSpeed);else if(b(window).height()-(a.pageY-b(document).scrollTop())<d.scrollSensitivity)f=b(document).scrollTop(b(document).scrollTop()+
d.scrollSpeed);if(a.pageX-b(document).scrollLeft()<d.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()-d.scrollSpeed);else if(b(window).width()-(a.pageX-b(document).scrollLeft())<d.scrollSensitivity)f=b(document).scrollLeft(b(document).scrollLeft()+d.scrollSpeed)}f!==false&&b.ui.ddmanager&&!d.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a)}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(d=this.items.length-1;d>=0;d--){f=this.items[d];var g=f.item[0],c=this._intersectsWithPointer(f);if(c)if(g!=this.currentItem[0]&&this.placeholder[c==1?"next":"prev"]()[0]!=g&&!b.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],g):1)){this.direction=c==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(a,
f);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);b.ui.ddmanager&&b.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,d){if(a){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,a);if(this.options.revert){var f=this,g=f.placeholder.offset();f.reverting=true;b(this.helper).animate({left:g.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:g.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(a)})}else this._clear(a,d);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",null,this._uiHash(this));this.containers[a].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var d=this._getItemsAsjQuery(a&&a.connected),f=[];a=a||{};b(d).each(function(){var g=(b(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(g)f.push((a.key||g[1]+"[]")+"="+(a.key&&a.expression?g[1]:g[2]))});!f.length&&a.key&&f.push(a.key+"=");return f.join("&")},toArray:function(a){var d=this._getItemsAsjQuery(a&&a.connected),f=[];a=a||{};d.each(function(){f.push(b(a.item||this).attr(a.attribute||
"id")||"")});return f},_intersectsWith:function(a){var d=this.positionAbs.left,f=d+this.helperProportions.width,g=this.positionAbs.top,c=g+this.helperProportions.height,h=a.left,k=h+a.width,o=a.top,q=o+a.height,x=this.offset.click.top,s=this.offset.click.left;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?g+x>o&&g+x<q&&d+s>h&&d+s<k:h<d+this.helperProportions.width/
2&&f-this.helperProportions.width/2<k&&o<g+this.helperProportions.height/2&&c-this.helperProportions.height/2<q},_intersectsWithPointer:function(a){var d=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);d=d&&a;a=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!d)return false;return this.floating?f&&f=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var d=
b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&a||g=="left"&&!a:f&&(f=="down"&&d||f=="up"&&!d)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=
this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var d=[],f=[],g=this._connectWith();if(g&&a)for(a=g.length-1;a>=0;a--)for(var c=b(g[a]),h=c.length-1;h>=0;h--){var k=b.data(c[h],"sortable");if(k&&k!=this&&!k.options.disabled)f.push([b.isFunction(k.options.items)?
k.options.items.call(k.element):b(k.options.items,k.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),k])}f.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=f.length-1;a>=0;a--)f[a][0].each(function(){d.push(this)});return b(d)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),
d=0;d<this.items.length;d++)for(var f=0;f<a.length;f++)a[f]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var d=this.items,f=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):b(this.options.items,this.element),this]],g=this._connectWith();if(g)for(var c=g.length-1;c>=0;c--)for(var h=b(g[c]),k=h.length-1;k>=0;k--){var o=b.data(h[k],"sortable");if(o&&o!=this&&!o.options.disabled){f.push([b.isFunction(o.options.items)?
o.options.items.call(o.element[0],a,{item:this.currentItem}):b(o.options.items,o.element),o]);this.containers.push(o)}}for(c=f.length-1;c>=0;c--){a=f[c][1];g=f[c][0];k=0;for(h=g.length;k<h;k++){o=b(g[k]);o.data("sortable-item",a);d.push({item:o,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var f=this.items[d],g=this.options.toleranceElement?b(this.options.toleranceElement,
f.item):f.item;if(!a){f.width=g.outerWidth();f.height=g.outerHeight()}g=g.offset();f.left=g.left;f.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(d=this.containers.length-1;d>=0;d--){g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=
this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(a){var d=a||this,f=d.options;if(!f.placeholder||f.placeholder.constructor==String){var g=f.placeholder;f.placeholder={element:function(){var c=b(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g)c.style.visibility="hidden";return c},update:function(c,h){if(!(g&&!f.forcePlaceholderSize)){h.height()||h.height(d.currentItem.innerHeight()-
parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));h.width()||h.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=b(f.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);f.placeholder.update(d,d.placeholder)},_contactContainers:function(a){for(var d=null,f=null,g=this.containers.length-1;g>=0;g--)if(!b.ui.contains(this.currentItem[0],
this.containers[g].element[0]))if(this._intersectsWith(this.containers[g].containerCache)){if(!(d&&b.ui.contains(this.containers[g].element[0],d.element[0]))){d=this.containers[g];f=g}}else if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",a,this._uiHash(this));this.containers[g].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[f]._trigger("over",a,this._uiHash(this));this.containers[f].containerCache.over=1}else if(this.currentContainer!=this.containers[f]){d=
1E4;g=null;for(var c=this.positionAbs[this.containers[f].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(b.ui.contains(this.containers[f].element[0],this.items[h].item[0])){var k=this.items[h][this.containers[f].floating?"left":"top"];if(Math.abs(k-c)<d){d=Math.abs(k-c);g=this.items[h]}}if(g||this.options.dropOnEmpty){this.currentContainer=this.containers[f];g?this._rearrange(a,g,null,true):this._rearrange(a,null,this.containers[f].element,true);this._trigger("change",a,this._uiHash());this.containers[f]._trigger("change",
a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[f]._trigger("over",a,this._uiHash(this));this.containers[f].containerCache.over=1}}},_createHelper:function(a){var d=this.options;a=b.isFunction(d.helper)?b(d.helper.apply(this.element[0],[a,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||b(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[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(a[0].style.width==""||d.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||d.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(b.isArray(a))a={left:+a[0],top:+a[1]||
0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.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 a=this.options;
if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var d=
b(a.containment)[0];a=b(a.containment).offset();var f=b(d).css("overflow")!="hidden";this.containment=[a.left+(parseInt(b(d).css("borderLeftWidth"),10)||0)+(parseInt(b(d).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(b(d).css("borderTopWidth"),10)||0)+(parseInt(b(d).css("paddingTop"),10)||0)-this.margins.top,a.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(b(d).css("borderLeftWidth"),10)||0)-(parseInt(b(d).css("paddingRight"),10)||0)-this.helperProportions.width-
this.margins.left,a.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(b(d).css("borderTopWidth"),10)||0)-(parseInt(b(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,d){if(!d)d=this.position;var f=a=="absolute"?1:-1,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(g[0].tagName);return{top:d.top+
this.offset.relative.top*f+this.offset.parent.top*f-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():c?0:g.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():c?0:g.scrollLeft())*f)}},_generatePosition:function(a){var d=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var c=a.pageX,h=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])c=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])h=this.containment[1]+this.offset.click.top;
if(a.pageX-this.offset.click.left>this.containment[2])c=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])h=this.containment[3]+this.offset.click.top}if(d.grid){h=this.originalPageY+Math.round((h-this.originalPageY)/d.grid[1])*d.grid[1];h=this.containment?!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:!(h-this.offset.click.top<this.containment[1])?h-d.grid[1]:h+d.grid[1]:h;c=this.originalPageX+Math.round((c-
this.originalPageX)/d.grid[0])*d.grid[0];c=this.containment?!(c-this.offset.click.left<this.containment[0]||c-this.offset.click.left>this.containment[2])?c:!(c-this.offset.click.left<this.containment[0])?c-d.grid[0]:c+d.grid[0]:c}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop()),left:c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())}},_rearrange:function(a,d,f,g){f?f[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var c=this,h=this.counter;window.setTimeout(function(){h==c.counter&&c.refreshPositions(!g)},0)},_clear:function(a,d){this.reverting=false;var f=[];!this._noFinalSort&&
this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS)if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static")this._storedCSS[g]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&f.push(function(c){this._trigger("receive",c,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])&&!d)f.push(function(c){this._trigger("update",c,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){d||f.push(function(c){this._trigger("remove",c,this._uiHash())});for(g=this.containers.length-1;g>=0;g--)if(b.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){f.push(function(c){return function(h){c._trigger("receive",h,this._uiHash(this))}}.call(this,this.containers[g]));f.push(function(c){return function(h){c._trigger("update",
h,this._uiHash(this))}}.call(this,this.containers[g]))}}for(g=this.containers.length-1;g>=0;g--){d||f.push(function(c){return function(h){c._trigger("deactivate",h,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){f.push(function(c){return function(h){c._trigger("out",h,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",a,this._uiHash());for(g=0;g<f.length;g++)f[g].call(this,a);this._trigger("stop",a,this._uiHash())}return false}d||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(g=
0;g<f.length;g++)f[g].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var d=a||this;return{helper:d.helper,placeholder:d.placeholder||b([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:a?a.element:null}}});b.extend(b.ui.sortable,{version:"1.8.7"})})(jQuery);
jQuery.effects||function(b,a){function d(s){var p;if(s&&s.constructor==Array&&s.length==3)return s;if(p=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(s))return[parseInt(p[1],10),parseInt(p[2],10),parseInt(p[3],10)];if(p=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(s))return[parseFloat(p[1])*2.55,parseFloat(p[2])*2.55,parseFloat(p[3])*2.55];if(p=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(s))return[parseInt(p[1],
16),parseInt(p[2],16),parseInt(p[3],16)];if(p=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(s))return[parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16),parseInt(p[3]+p[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(s))return o.transparent;return o[b.trim(s).toLowerCase()]}function f(){var s=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,p={},w,A;if(s&&s.length&&s[0]&&s[s[0]])for(var D=s.length;D--;){w=s[D];if(typeof s[w]=="string"){A=w.replace(/\-(\w)/g,function(K,R){return R.toUpperCase()});
p[A]=s[w]}}else for(w in s)if(typeof s[w]==="string")p[w]=s[w];return p}function g(s){var p,w;for(p in s){w=s[p];if(w==null||b.isFunction(w)||p in x||/scrollbar/.test(p)||!/color/i.test(p)&&isNaN(parseFloat(w)))delete s[p]}return s}function c(s,p){var w={_:0},A;for(A in p)if(s[A]!=p[A])w[A]=p[A];return w}function h(s,p,w,A){if(typeof s=="object"){A=p;w=null;p=s;s=p.effect}if(b.isFunction(p)){A=p;w=null;p={}}if(typeof p=="number"||b.fx.speeds[p]){A=w;w=p;p={}}if(b.isFunction(w)){A=w;w=null}p=p||{};
w=w||p.duration;w=b.fx.off?0:typeof w=="number"?w:w in b.fx.speeds?b.fx.speeds[w]:b.fx.speeds._default;A=A||p.complete;return[s,p,w,A]}function k(s){if(!s||typeof s==="number"||b.fx.speeds[s])return true;if(typeof s==="string"&&!b.effects[s])return true;return false}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(s,p){b.fx.step[p]=function(w){if(!w.colorInit){var A;A=w.elem;var D=p,K;do{K=
b.curCSS(A,D);if(K!=""&&K!="transparent"||b.nodeName(A,"body"))break;D="backgroundColor"}while(A=A.parentNode);A=d(K);w.start=A;w.end=d(w.end);w.colorInit=true}w.elem.style[p]="rgb("+Math.max(Math.min(parseInt(w.pos*(w.end[0]-w.start[0])+w.start[0],10),255),0)+","+Math.max(Math.min(parseInt(w.pos*(w.end[1]-w.start[1])+w.start[1],10),255),0)+","+Math.max(Math.min(parseInt(w.pos*(w.end[2]-w.start[2])+w.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(s,p,w,
A){if(b.isFunction(w)){A=w;w=null}return this.each(function(){b.queue(this,"fx",function(){var D=b(this),K=D.attr("style")||" ",R=g(f.call(this)),Q,ba=D.attr("className");b.each(q,function(ea,$){if(s[$])D[$+"Class"](s[$])});Q=g(f.call(this));D.attr("className",ba);D.animate(c(R,Q),p,w,function(){b.each(q,function(ea,$){if(s[$])D[$+"Class"](s[$])});if(typeof D.attr("style")=="object"){D.attr("style").cssText="";D.attr("style").cssText=K}else D.attr("style",K);A&&A.apply(this,arguments)});R=b.queue(this);
Q=R.splice(R.length-1,1)[0];R.splice(1,0,Q);b.dequeue(this)})})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(s,p,w,A){return p?b.effects.animateClass.apply(this,[{add:s},p,w,A]):this._addClass(s)},_removeClass:b.fn.removeClass,removeClass:function(s,p,w,A){return p?b.effects.animateClass.apply(this,[{remove:s},p,w,A]):this._removeClass(s)},_toggleClass:b.fn.toggleClass,toggleClass:function(s,p,w,A,D){return typeof p=="boolean"||p===a?w?b.effects.animateClass.apply(this,[p?{add:s}:{remove:s},
w,A,D]):this._toggleClass(s,p):b.effects.animateClass.apply(this,[{toggle:s},p,w,A])},switchClass:function(s,p,w,A,D){return b.effects.animateClass.apply(this,[{add:p,remove:s},w,A,D])}});b.extend(b.effects,{version:"1.8.7",save:function(s,p){for(var w=0;w<p.length;w++)p[w]!==null&&s.data("ec.storage."+p[w],s[0].style[p[w]])},restore:function(s,p){for(var w=0;w<p.length;w++)p[w]!==null&&s.css(p[w],s.data("ec.storage."+p[w]))},setMode:function(s,p){if(p=="toggle")p=s.is(":hidden")?"show":"hide";return p},
getBaseline:function(s,p){var w,A;switch(s[0]){case "top":w=0;break;case "middle":w=0.5;break;case "bottom":w=1;break;default:w=s[0]/p.height}switch(s[1]){case "left":A=0;break;case "center":A=0.5;break;case "right":A=1;break;default:A=s[1]/p.width}return{x:A,y:w}},createWrapper:function(s){if(s.parent().is(".ui-effects-wrapper"))return s.parent();var p={width:s.outerWidth(true),height:s.outerHeight(true),"float":s.css("float")},w=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",
background:"transparent",border:"none",margin:0,padding:0});s.wrap(w);w=s.parent();if(s.css("position")=="static"){w.css({position:"relative"});s.css({position:"relative"})}else{b.extend(p,{position:s.css("position"),zIndex:s.css("z-index")});b.each(["top","left","bottom","right"],function(A,D){p[D]=s.css(D);if(isNaN(parseInt(p[D],10)))p[D]="auto"});s.css({position:"relative",top:0,left:0})}return w.css(p).show()},removeWrapper:function(s){if(s.parent().is(".ui-effects-wrapper"))return s.parent().replaceWith(s);
return s},setTransition:function(s,p,w,A){A=A||{};b.each(p,function(D,K){unit=s.cssUnit(K);if(unit[0]>0)A[K]=unit[0]*w+unit[1]});return A}});b.fn.extend({effect:function(s){var p=h.apply(this,arguments),w={options:p[1],duration:p[2],callback:p[3]};p=w.options.mode;var A=b.effects[s];if(b.fx.off||!A)return p?this[p](w.duration,w.callback):this.each(function(){w.callback&&w.callback.call(this)});return A.call(this,w)},_show:b.fn.show,show:function(s){if(k(s))return this._show.apply(this,arguments);
else{var p=h.apply(this,arguments);p[1].mode="show";return this.effect.apply(this,p)}},_hide:b.fn.hide,hide:function(s){if(k(s))return this._hide.apply(this,arguments);else{var p=h.apply(this,arguments);p[1].mode="hide";return this.effect.apply(this,p)}},__toggle:b.fn.toggle,toggle:function(s){if(k(s)||typeof s==="boolean"||b.isFunction(s))return this.__toggle.apply(this,arguments);else{var p=h.apply(this,arguments);p[1].mode="toggle";return this.effect.apply(this,p)}},cssUnit:function(s){var p=this.css(s),
w=[];b.each(["em","px","%","pt"],function(A,D){if(p.indexOf(D)>0)w=[parseFloat(p),D]});return w}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(s,p,w,A,D){return b.easing[b.easing.def](s,p,w,A,D)},easeInQuad:function(s,p,w,A,D){return A*(p/=D)*p+w},easeOutQuad:function(s,p,w,A,D){return-A*(p/=D)*(p-2)+w},easeInOutQuad:function(s,p,w,A,D){if((p/=D/2)<1)return A/2*p*p+w;return-A/2*(--p*(p-2)-1)+w},easeInCubic:function(s,p,w,A,D){return A*(p/=D)*p*p+w},easeOutCubic:function(s,
p,w,A,D){return A*((p=p/D-1)*p*p+1)+w},easeInOutCubic:function(s,p,w,A,D){if((p/=D/2)<1)return A/2*p*p*p+w;return A/2*((p-=2)*p*p+2)+w},easeInQuart:function(s,p,w,A,D){return A*(p/=D)*p*p*p+w},easeOutQuart:function(s,p,w,A,D){return-A*((p=p/D-1)*p*p*p-1)+w},easeInOutQuart:function(s,p,w,A,D){if((p/=D/2)<1)return A/2*p*p*p*p+w;return-A/2*((p-=2)*p*p*p-2)+w},easeInQuint:function(s,p,w,A,D){return A*(p/=D)*p*p*p*p+w},easeOutQuint:function(s,p,w,A,D){return A*((p=p/D-1)*p*p*p*p+1)+w},easeInOutQuint:function(s,
p,w,A,D){if((p/=D/2)<1)return A/2*p*p*p*p*p+w;return A/2*((p-=2)*p*p*p*p+2)+w},easeInSine:function(s,p,w,A,D){return-A*Math.cos(p/D*(Math.PI/2))+A+w},easeOutSine:function(s,p,w,A,D){return A*Math.sin(p/D*(Math.PI/2))+w},easeInOutSine:function(s,p,w,A,D){return-A/2*(Math.cos(Math.PI*p/D)-1)+w},easeInExpo:function(s,p,w,A,D){return p==0?w:A*Math.pow(2,10*(p/D-1))+w},easeOutExpo:function(s,p,w,A,D){return p==D?w+A:A*(-Math.pow(2,-10*p/D)+1)+w},easeInOutExpo:function(s,p,w,A,D){if(p==0)return w;if(p==
D)return w+A;if((p/=D/2)<1)return A/2*Math.pow(2,10*(p-1))+w;return A/2*(-Math.pow(2,-10*--p)+2)+w},easeInCirc:function(s,p,w,A,D){return-A*(Math.sqrt(1-(p/=D)*p)-1)+w},easeOutCirc:function(s,p,w,A,D){return A*Math.sqrt(1-(p=p/D-1)*p)+w},easeInOutCirc:function(s,p,w,A,D){if((p/=D/2)<1)return-A/2*(Math.sqrt(1-p*p)-1)+w;return A/2*(Math.sqrt(1-(p-=2)*p)+1)+w},easeInElastic:function(s,p,w,A,D){s=1.70158;var K=0,R=A;if(p==0)return w;if((p/=D)==1)return w+A;K||(K=D*0.3);if(R<Math.abs(A)){R=A;s=K/4}else s=
K/(2*Math.PI)*Math.asin(A/R);return-(R*Math.pow(2,10*(p-=1))*Math.sin((p*D-s)*2*Math.PI/K))+w},easeOutElastic:function(s,p,w,A,D){s=1.70158;var K=0,R=A;if(p==0)return w;if((p/=D)==1)return w+A;K||(K=D*0.3);if(R<Math.abs(A)){R=A;s=K/4}else s=K/(2*Math.PI)*Math.asin(A/R);return R*Math.pow(2,-10*p)*Math.sin((p*D-s)*2*Math.PI/K)+A+w},easeInOutElastic:function(s,p,w,A,D){s=1.70158;var K=0,R=A;if(p==0)return w;if((p/=D/2)==2)return w+A;K||(K=D*0.3*1.5);if(R<Math.abs(A)){R=A;s=K/4}else s=K/(2*Math.PI)*Math.asin(A/
R);if(p<1)return-0.5*R*Math.pow(2,10*(p-=1))*Math.sin((p*D-s)*2*Math.PI/K)+w;return R*Math.pow(2,-10*(p-=1))*Math.sin((p*D-s)*2*Math.PI/K)*0.5+A+w},easeInBack:function(s,p,w,A,D,K){if(K==a)K=1.70158;return A*(p/=D)*p*((K+1)*p-K)+w},easeOutBack:function(s,p,w,A,D,K){if(K==a)K=1.70158;return A*((p=p/D-1)*p*((K+1)*p+K)+1)+w},easeInOutBack:function(s,p,w,A,D,K){if(K==a)K=1.70158;if((p/=D/2)<1)return A/2*p*p*(((K*=1.525)+1)*p-K)+w;return A/2*((p-=2)*p*(((K*=1.525)+1)*p+K)+2)+w},easeInBounce:function(s,
p,w,A,D){return A-b.easing.easeOutBounce(s,D-p,0,A,D)+w},easeOutBounce:function(s,p,w,A,D){return(p/=D)<1/2.75?A*7.5625*p*p+w:p<2/2.75?A*(7.5625*(p-=1.5/2.75)*p+0.75)+w:p<2.5/2.75?A*(7.5625*(p-=2.25/2.75)*p+0.9375)+w:A*(7.5625*(p-=2.625/2.75)*p+0.984375)+w},easeInOutBounce:function(s,p,w,A,D){if(p<D/2)return b.easing.easeInBounce(s,p*2,0,A,D)*0.5+w;return b.easing.easeOutBounce(s,p*2-D,0,A,D)*0.5+A*0.5+w}})}(jQuery);
(function(b){b.effects.blind=function(a){return this.queue(function(){var d=b(this),f=["position","top","left"],g=b.effects.setMode(d,a.options.mode||"hide"),c=a.options.direction||"vertical";b.effects.save(d,f);d.show();var h=b.effects.createWrapper(d).css({overflow:"hidden"}),k=c=="vertical"?"height":"width";c=c=="vertical"?h.height():h.width();g=="show"&&h.css(k,0);var o={};o[k]=g=="show"?c:0;h.animate(o,a.duration,a.options.easing,function(){g=="hide"&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);
a.callback&&a.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(b){b.effects.bounce=function(a){return this.queue(function(){var d=b(this),f=["position","top","left"],g=b.effects.setMode(d,a.options.mode||"effect"),c=a.options.direction||"up",h=a.options.distance||20,k=a.options.times||5,o=a.duration||250;/show|hide/.test(g)&&f.push("opacity");b.effects.save(d,f);d.show();b.effects.createWrapper(d);var q=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";h=a.options.distance||(q=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
3);if(g=="show")d.css("opacity",0).css(q,c=="pos"?-h:h);if(g=="hide")h/=k*2;g!="hide"&&k--;if(g=="show"){var x={opacity:1};x[q]=(c=="pos"?"+=":"-=")+h;d.animate(x,o/2,a.options.easing);h/=2;k--}for(x=0;x<k;x++){var s={},p={};s[q]=(c=="pos"?"-=":"+=")+h;p[q]=(c=="pos"?"+=":"-=")+h;d.animate(s,o/2,a.options.easing).animate(p,o/2,a.options.easing);h=g=="hide"?h*2:h/2}if(g=="hide"){x={opacity:0};x[q]=(c=="pos"?"-=":"+=")+h;d.animate(x,o/2,a.options.easing,function(){d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);
a.callback&&a.callback.apply(this,arguments)})}else{s={};p={};s[q]=(c=="pos"?"-=":"+=")+h;p[q]=(c=="pos"?"+=":"-=")+h;d.animate(s,o/2,a.options.easing).animate(p,o/2,a.options.easing,function(){b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(b){b.effects.clip=function(a){return this.queue(function(){var d=b(this),f=["position","top","left","height","width"],g=b.effects.setMode(d,a.options.mode||"hide"),c=a.options.direction||"vertical";b.effects.save(d,f);d.show();var h=b.effects.createWrapper(d).css({overflow:"hidden"});h=d[0].tagName=="IMG"?h:d;var k={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?h.height():h.width();if(g=="show"){h.css(k.size,0);h.css(k.position,c/2)}var o={};o[k.size]=
g=="show"?c:0;o[k.position]=g=="show"?0:c/2;h.animate(o,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){g=="hide"&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.drop=function(a){return this.queue(function(){var d=b(this),f=["position","top","left","opacity"],g=b.effects.setMode(d,a.options.mode||"hide"),c=a.options.direction||"left";b.effects.save(d,f);d.show();b.effects.createWrapper(d);var h=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var k=a.options.distance||(h=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(g=="show")d.css("opacity",0).css(h,c=="pos"?-k:k);var o={opacity:g=="show"?1:
0};o[h]=(g=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+k;d.animate(o,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){g=="hide"&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.explode=function(a){return this.queue(function(){var d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,f=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?b(this).is(":visible")?"hide":"show":a.options.mode;var g=b(this).show().css("visibility","hidden"),c=g.offset();c.top-=parseInt(g.css("marginTop"),10)||0;c.left-=parseInt(g.css("marginLeft"),10)||0;for(var h=g.outerWidth(true),k=g.outerHeight(true),o=0;o<d;o++)for(var q=
0;q<f;q++)g.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-q*(h/f),top:-o*(k/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/f,height:k/d,left:c.left+q*(h/f)+(a.options.mode=="show"?(q-Math.floor(f/2))*(h/f):0),top:c.top+o*(k/d)+(a.options.mode=="show"?(o-Math.floor(d/2))*(k/d):0),opacity:a.options.mode=="show"?0:1}).animate({left:c.left+q*(h/f)+(a.options.mode=="show"?0:(q-Math.floor(f/2))*(h/f)),top:c.top+
o*(k/d)+(a.options.mode=="show"?0:(o-Math.floor(d/2))*(k/d)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?g.css({visibility:"visible"}):g.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(g[0]);g.dequeue();b("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
(function(b){b.effects.fade=function(a){return this.queue(function(){var d=b(this),f=b.effects.setMode(d,a.options.mode||"hide");d.animate({opacity:f},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.fold=function(a){return this.queue(function(){var d=b(this),f=["position","top","left"],g=b.effects.setMode(d,a.options.mode||"hide"),c=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:b.fx.speeds._default/2;b.effects.save(d,f);d.show();var o=b.effects.createWrapper(d).css({overflow:"hidden"}),q=g=="show"!=h,x=q?["width","height"]:["height","width"];q=q?[o.width(),o.height()]:[o.height(),o.width()];var s=/([0-9]+)%/.exec(c);if(s)c=parseInt(s[1],10)/100*
q[g=="hide"?0:1];if(g=="show")o.css(h?{height:0,width:c}:{height:c,width:0});h={};s={};h[x[0]]=g=="show"?q[0]:c;s[x[1]]=g=="show"?q[1]:0;o.animate(h,k,a.options.easing).animate(s,k,a.options.easing,function(){g=="hide"&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(b){b.effects.highlight=function(a){return this.queue(function(){var d=b(this),f=["backgroundImage","backgroundColor","opacity"],g=b.effects.setMode(d,a.options.mode||"show"),c={backgroundColor:d.css("backgroundColor")};if(g=="hide")c.opacity=0;b.effects.save(d,f);d.show().css({backgroundImage:"none",backgroundColor:a.options.color||"#ffff99"}).animate(c,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){g=="hide"&&d.hide();b.effects.restore(d,f);g=="show"&&!b.support.opacity&&
this.style.removeAttribute("filter");a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.pulsate=function(a){return this.queue(function(){var d=b(this),f=b.effects.setMode(d,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:b.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(f=="hide"&&isVisible||f=="show"&&!isVisible)times--;for(f=0;f<times;f++){d.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
a.options.easing,function(){animateTo==0&&d.hide();a.callback&&a.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
(function(b){b.effects.puff=function(a){return this.queue(function(){var d=b(this),f=b.effects.setMode(d,a.options.mode||"hide"),g=parseInt(a.options.percent,10)||150,c=g/100,h={height:d.height(),width:d.width()};b.extend(a.options,{fade:true,mode:f,percent:f=="hide"?g:100,from:f=="hide"?h:{height:h.height*c,width:h.width*c}});d.effect("scale",a.options,a.duration,a.callback);d.dequeue()})};b.effects.scale=function(a){return this.queue(function(){var d=b(this),f=b.extend(true,{},a.options),g=b.effects.setMode(d,
a.options.mode||"effect"),c=parseInt(a.options.percent,10)||(parseInt(a.options.percent,10)==0?0:g=="hide"?0:100),h=a.options.direction||"both",k=a.options.origin;if(g!="effect"){f.origin=k||["middle","center"];f.restore=true}k={height:d.height(),width:d.width()};d.from=a.options.from||(g=="show"?{height:0,width:0}:k);c={y:h!="horizontal"?c/100:1,x:h!="vertical"?c/100:1};d.to={height:k.height*c.y,width:k.width*c.x};if(a.options.fade){if(g=="show"){d.from.opacity=0;d.to.opacity=1}if(g=="hide"){d.from.opacity=
1;d.to.opacity=0}}f.from=d.from;f.to=d.to;f.mode=g;d.effect("size",f,a.duration,a.callback);d.dequeue()})};b.effects.size=function(a){return this.queue(function(){var d=b(this),f=["position","top","left","width","height","overflow","opacity"],g=["position","top","left","overflow","opacity"],c=["width","height","overflow"],h=["fontSize"],k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],q=b.effects.setMode(d,
a.options.mode||"effect"),x=a.options.restore||false,s=a.options.scale||"both",p=a.options.origin,w={height:d.height(),width:d.width()};d.from=a.options.from||w;d.to=a.options.to||w;if(p){p=b.effects.getBaseline(p,w);d.from.top=(w.height-d.from.height)*p.y;d.from.left=(w.width-d.from.width)*p.x;d.to.top=(w.height-d.to.height)*p.y;d.to.left=(w.width-d.to.width)*p.x}var A={from:{y:d.from.height/w.height,x:d.from.width/w.width},to:{y:d.to.height/w.height,x:d.to.width/w.width}};if(s=="box"||s=="both"){if(A.from.y!=
A.to.y){f=f.concat(k);d.from=b.effects.setTransition(d,k,A.from.y,d.from);d.to=b.effects.setTransition(d,k,A.to.y,d.to)}if(A.from.x!=A.to.x){f=f.concat(o);d.from=b.effects.setTransition(d,o,A.from.x,d.from);d.to=b.effects.setTransition(d,o,A.to.x,d.to)}}if(s=="content"||s=="both")if(A.from.y!=A.to.y){f=f.concat(h);d.from=b.effects.setTransition(d,h,A.from.y,d.from);d.to=b.effects.setTransition(d,h,A.to.y,d.to)}b.effects.save(d,x?f:g);d.show();b.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);
if(s=="content"||s=="both"){k=k.concat(["marginTop","marginBottom"]).concat(h);o=o.concat(["marginLeft","marginRight"]);c=f.concat(k).concat(o);d.find("*[width]").each(function(){child=b(this);x&&b.effects.save(child,c);var D={height:child.height(),width:child.width()};child.from={height:D.height*A.from.y,width:D.width*A.from.x};child.to={height:D.height*A.to.y,width:D.width*A.to.x};if(A.from.y!=A.to.y){child.from=b.effects.setTransition(child,k,A.from.y,child.from);child.to=b.effects.setTransition(child,
k,A.to.y,child.to)}if(A.from.x!=A.to.x){child.from=b.effects.setTransition(child,o,A.from.x,child.from);child.to=b.effects.setTransition(child,o,A.to.x,child.to)}child.css(child.from);child.animate(child.to,a.duration,a.options.easing,function(){x&&b.effects.restore(child,c)})})}d.animate(d.to,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);q=="hide"&&d.hide();b.effects.restore(d,x?f:g);b.effects.removeWrapper(d);a.callback&&
a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.shake=function(a){return this.queue(function(){var d=b(this),f=["position","top","left"];b.effects.setMode(d,a.options.mode||"effect");var g=a.options.direction||"left",c=a.options.distance||20,h=a.options.times||3,k=a.duration||a.options.duration||140;b.effects.save(d,f);d.show();b.effects.createWrapper(d);var o=g=="up"||g=="down"?"top":"left",q=g=="up"||g=="left"?"pos":"neg";g={};var x={},s={};g[o]=(q=="pos"?"-=":"+=")+c;x[o]=(q=="pos"?"+=":"-=")+c*2;s[o]=(q=="pos"?"-=":"+=")+
c*2;d.animate(g,k,a.options.easing);for(c=1;c<h;c++)d.animate(x,k,a.options.easing).animate(s,k,a.options.easing);d.animate(x,k,a.options.easing).animate(g,k/2,a.options.easing,function(){b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(b){b.effects.slide=function(a){return this.queue(function(){var d=b(this),f=["position","top","left"],g=b.effects.setMode(d,a.options.mode||"show"),c=a.options.direction||"left";b.effects.save(d,f);d.show();b.effects.createWrapper(d).css({overflow:"hidden"});var h=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var k=a.options.distance||(h=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(g=="show")d.css(h,c=="pos"?isNaN(k)?"-"+k:-k:k);var o={};o[h]=(g==
"show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+k;d.animate(o,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){g=="hide"&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(b){b.effects.transfer=function(a){return this.queue(function(){var d=b(this),f=b(a.options.to),g=f.offset();f={top:g.top,left:g.left,height:f.innerHeight(),width:f.innerWidth()};g=d.offset();var c=b('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:g.top,left:g.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(f,a.duration,a.options.easing,function(){c.remove();a.callback&&a.callback.apply(d[0],arguments);
d.dequeue()})})}})(jQuery);
(function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,d=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");a.headers=
a.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){d.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){d.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){d.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){d.disabled||b(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(d.navigation){var f=a.element.find("a").filter(d.navigationFilter).eq(0);if(f.length){var g=f.closest(".ui-accordion-header");a.active=g.length?g:f.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
function(c){return a._keydown(c)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);b.browser.safari||a.headers.find("a").attr("tabIndex",-1);d.event&&a.headers.bind(d.event.split(" ").join(".accordion ")+".accordion",function(c){a._clickHandler.call(a,c,this);c.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){b("<span></span>").addClass("ui-icon "+
a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.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 a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var 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(a.autoHeight||a.fillHeight)d.css("height","");return b.Widget.prototype.destroy.call(this)},_setOption:function(a,d){b.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(d);if(a=="icons"){this._destroyIcons();
d&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var d=b.ui.keyCode,f=this.headers.length,g=this.headers.index(a.target),c=false;switch(a.keyCode){case d.RIGHT:case d.DOWN:c=this.headers[(g+1)%f];break;case d.LEFT:case d.UP:c=this.headers[(g-1+f)%f];break;case d.SPACE:case d.ENTER:this._clickHandler({target:a.target},a.target);
a.preventDefault()}if(c){b(a.target).attr("tabIndex",-1);b(c).attr("tabIndex",0);c.focus();return false}return true}},resize:function(){var a=this.options,d;if(a.fillSpace){if(b.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){d-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,d-b(this).innerHeight()+
b(this).height()))}).css("overflow","auto")}else if(a.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,b(this).height("").height())}).height(d)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,d){var f=this.options;
if(!f.disabled)if(a.target){var g=b(a.currentTarget||d),c=g[0]===this.active[0];f.active=f.collapsible&&c?false:this.headers.index(g);if(!(this.running||!f.collapsible&&c)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);if(!c){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(f.icons.header).addClass(f.icons.headerSelected);
g.next().addClass("ui-accordion-content-active")}o=g.next();h=this.active.next();k={options:f,newHeader:c&&f.collapsible?b([]):g,oldHeader:this.active,newContent:c&&f.collapsible?b([]):o,oldContent:h};f=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=c?b([]):g;this._toggle(o,h,k,c,f)}}else if(f.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);
this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),k={options:f,newHeader:b([]),oldHeader:f.active,newContent:b([]),oldContent:h},o=this.active=b([]);this._toggle(o,h,k)}},_toggle:function(a,d,f,g,c){var h=this,k=h.options;h.toShow=a;h.toHide=d;h.data=f;var o=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data);h.running=d.size()===0?a.size():d.size();if(k.animated){f={};f=k.collapsible&&g?{toShow:b([]),toHide:d,complete:o,
down:c,autoHeight:k.autoHeight||k.fillSpace}:{toShow:a,toHide:d,complete:o,down:c,autoHeight:k.autoHeight||k.fillSpace};if(!k.proxied)k.proxied=k.animated;if(!k.proxiedDuration)k.proxiedDuration=k.duration;k.animated=b.isFunction(k.proxied)?k.proxied(f):k.proxied;k.duration=b.isFunction(k.proxiedDuration)?k.proxiedDuration(f):k.proxiedDuration;g=b.ui.accordion.animations;var q=k.duration,x=k.animated;if(x&&!g[x]&&!b.easing[x])x="slide";g[x]||(g[x]=function(s){this.slide(s,{easing:x,duration:q||700})});
g[x](f)}else{if(k.collapsible&&g)a.toggle();else{d.hide();a.show()}o(true)}d.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.8.7",animations:{slide:function(a,
d){a=b.extend({easing:"swing",duration:300},a,d);if(a.toHide.size())if(a.toShow.size()){var f=a.toShow.css("overflow"),g=0,c={},h={},k,o=a.toShow;k=o[0].style.width;o.width(parseInt(o.parent().width(),10)-parseInt(o.css("paddingLeft"),10)-parseInt(o.css("paddingRight"),10)-(parseInt(o.css("borderLeftWidth"),10)||0)-(parseInt(o.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(q,x){h[x]="hide";var s=(""+b.css(a.toShow[0],x)).match(/^([\d+-.]+)(.*)$/);c[x]={value:s[1],
unit:s[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(q,x){if(x.prop=="height")g=x.end-x.start===0?0:(x.now-x.start)/(x.end-x.start);a.toShow[0].style[x.prop]=g*c[x.prop].value+c[x.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:k,overflow:f});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",
paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
(function(b){b.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var a=this,d=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(g){if(!(a.options.disabled||a.element.attr("readonly"))){f=false;var c=b.ui.keyCode;switch(g.keyCode){case c.PAGE_UP:a._move("previousPage",
g);break;case c.PAGE_DOWN:a._move("nextPage",g);break;case c.UP:a._move("previous",g);g.preventDefault();break;case c.DOWN:a._move("next",g);g.preventDefault();break;case c.ENTER:case c.NUMPAD_ENTER:if(a.menu.active){f=true;g.preventDefault()}case c.TAB:if(!a.menu.active)break;a.menu.select(g);break;case c.ESCAPE:a.element.val(a.term);a.close(g);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=null;a.search(null,g)}},a.options.delay)}}}).bind("keypress.autocomplete",
function(g){if(f){f=false;g.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(g){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(g);a._change(g)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",d)[0]).mousedown(function(g){var c=
a.menu.element[0];b(g.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==c&&!b.ui.contains(c,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(g,c){var h=c.item.data("item.autocomplete");false!==a._trigger("focus",g,{item:h})&&/^key/.test(g.originalEvent.type)&&a.element.val(h.value)},selected:function(g,c){var h=c.item.data("item.autocomplete"),k=a.previous;if(a.element[0]!==
d.activeElement){a.element.focus();a.previous=k;setTimeout(function(){a.previous=k;a.selectedItem=h},1)}false!==a._trigger("select",g,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(g);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(a,d){b.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(b(d||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var a=this,d,f;if(b.isArray(this.options.source)){d=this.options.source;this.source=function(g,c){c(b.ui.autocomplete.filter(d,g.term))}}else if(typeof this.options.source==="string"){f=this.options.source;this.source=
function(g,c){a.xhr&&a.xhr.abort();a.xhr=b.ajax({url:f,data:g,dataType:"json",success:function(h,k,o){o===a.xhr&&c(h);a.xhr=null},error:function(h){h===a.xhr&&c([]);a.xhr=null}})}}else this.source=this.options.source},search:function(a,d){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(d);clearTimeout(this.closing);if(this._trigger("search",d)!==false)return this._search(a)},_search:function(a){this.element.addClass("ui-autocomplete-loading");
this.source({term:a},this.response)},_response:function(a){if(a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&
a[0].label&&a[0].value)return a;return b.map(a,function(d){if(typeof d==="string")return{label:d,value:d};return b.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(a){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(d,a);this.menu.deactivate();this.menu.refresh();d.show();this._resizeMenu();d.position(b.extend({of:this.element},this.options.position))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),
this.element.outerWidth()))},_renderMenu:function(a,d){var f=this;b.each(d,function(g,c){f._renderItem(a,c)})},_renderItem:function(a,d){return b("<li></li>").data("item.autocomplete",d).append(b("<a></a>").text(d.label)).appendTo(a)},_move:function(a,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](d);else this.search(null,d)},widget:function(){return this.menu.element}});
b.extend(b.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,d){var f=RegExp(b.ui.autocomplete.escapeRegex(d),"i");return b.grep(a,function(g){return f.test(g.label||g.value||g)})}})})(jQuery);
(function(b){b.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){if(b(d.target).closest(".ui-menu-item a").length){d.preventDefault();a.select(d)}});this.refresh()},refresh:function(){var a=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(d){a.activate(d,b(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,d){this.deactivate();if(this.hasScroll()){var f=d.offset().top-this.element.offset().top,g=this.element.attr("scrollTop"),c=this.element.height();if(f<0)this.element.attr("scrollTop",g+f);else f>=c&&this.element.attr("scrollTop",g+f-c+d.height())}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:d})},
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},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(a,d,f){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);
a.length?this.activate(f,a):this.activate(f,this.element.children(d))}else this.activate(f,this.element.children(d))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(".ui-menu-item:first"));else{var d=this.active.offset().top,f=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=b(this).offset().top-d-f+b(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(a,
g)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(".ui-menu-item:last"));else{var d=this.active.offset().top,f=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=b(this).offset().top-d+f-b(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
this.activate(a,result)}else this.activate(a,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);
(function(b){var a,d=function(g){b(":ui-button",g.target.form).each(function(){var c=b(this).data("button");setTimeout(function(){c.refresh()},1)})},f=function(g){var c=g.name,h=g.form,k=b([]);if(c)k=h?b(h).find("[name='"+c+"']"):b("[name='"+c+"']",g.ownerDocument).filter(function(){return!this.form});return k};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
d);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var g=this,c=this.options,h=this.type==="checkbox"||this.type==="radio",k="ui-state-hover"+(!h?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
function(){if(!c.disabled){b(this).addClass("ui-state-hover");this===a&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(k)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});h&&this.element.bind("change.button",function(){g.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled)return false;b(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(c.disabled)return false;b(this).addClass("ui-state-active");g.buttonElement.attr("aria-pressed",true);var o=g.element[0];f(o).not(o).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;b(this).addClass("ui-state-active");
a=this;b(document).one("mouseup",function(){a=null})}).bind("mouseup.button",function(){if(c.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(o){if(c.disabled)return false;if(o.keyCode==b.ui.keyCode.SPACE||o.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(o){o.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",
c.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var g=this.element.is(":checked");g&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",g)}else this.buttonElement=
this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(g,c){b.Widget.prototype._setOption.apply(this,arguments);if(g==="disabled")c?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var g=this.element.is(":disabled");g!==this.options.disabled&&this._setOption("disabled",g);if(this.type==="radio")f(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var 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"),
c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(g.empty()).text(),h=this.options.icons,k=h.primary&&h.secondary;if(h.primary||h.secondary){g.addClass("ui-button-text-icon"+(k?"s":h.primary?"-primary":"-secondary"));h.primary&&g.prepend("<span class='ui-button-icon-primary ui-icon "+h.primary+"'></span>");h.secondary&&g.append("<span class='ui-button-icon-secondary ui-icon "+h.secondary+"'></span>");if(!this.options.text){g.addClass(k?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
this.hasTitle||g.attr("title",c)}}else g.addClass("ui-button-text-only")}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(g,c){g==="disabled"&&this.buttons.button("option",g,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(b,a){function d(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function f(c,h){b.extend(c,h);for(var k in h)if(h[k]==
null||h[k]==a)c[k]=h[k];return c}b.extend(b.ui,{datepicker:{version:"1.8.7"}});var g=(new Date).getTime();b.extend(d.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(c){f(this._defaults,c||{});return this},_attachDatepicker:function(c,h){var k=null,o;for(o in this._defaults){var q=c.getAttribute("date:"+o);if(q){k=k||{};try{k[o]=eval(q)}catch(x){k[o]=q}}}o=c.nodeName.toLowerCase();
q=o=="div"||o=="span";if(!c.id){this.uuid+=1;c.id="dp"+this.uuid}var s=this._newInst(b(c),q);s.settings=b.extend({},h||{},k||{});if(o=="input")this._connectDatepicker(c,s);else q&&this._inlineDatepicker(c,s)},_newInst:function(c,h){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:h,dpDiv:!h?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(c,h){var k=b(c);h.append=b([]);h.trigger=b([]);if(!k.hasClass(this.markerClassName)){this._attachments(k,h);k.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(o,q,x){h.settings[q]=x}).bind("getData.datepicker",function(o,q){return this._get(h,q)});this._autoSize(h);b.data(c,"datepicker",h)}},_attachments:function(c,h){var k=this._get(h,"appendText"),o=this._get(h,"isRTL");h.append&&
h.append.remove();if(k){h.append=b('<span class="'+this._appendClass+'">'+k+"</span>");c[o?"before":"after"](h.append)}c.unbind("focus",this._showDatepicker);h.trigger&&h.trigger.remove();k=this._get(h,"showOn");if(k=="focus"||k=="both")c.focus(this._showDatepicker);if(k=="button"||k=="both"){k=this._get(h,"buttonText");var q=this._get(h,"buttonImage");h.trigger=b(this._get(h,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:q,alt:k,title:k}):b('<button type="button"></button>').addClass(this._triggerClass).html(q==
""?k:b("<img/>").attr({src:q,alt:k,title:k})));c[o?"before":"after"](h.trigger);h.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==c[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(c[0]);return false})}},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var h=new Date(2009,11,20),k=this._get(c,"dateFormat");if(k.match(/[DM]/)){var o=function(q){for(var x=0,s=0,p=0;p<q.length;p++)if(q[p].length>x){x=q[p].length;s=p}return s};h.setMonth(o(this._get(c,
k.match(/MM/)?"monthNames":"monthNamesShort")));h.setDate(o(this._get(c,k.match(/DD/)?"dayNames":"dayNamesShort"))+20-h.getDay())}c.input.attr("size",this._formatDate(c,h).length)}},_inlineDatepicker:function(c,h){var k=b(c);if(!k.hasClass(this.markerClassName)){k.addClass(this.markerClassName).append(h.dpDiv).bind("setData.datepicker",function(o,q,x){h.settings[q]=x}).bind("getData.datepicker",function(o,q){return this._get(h,q)});b.data(c,"datepicker",h);this._setDate(h,this._getDefaultDate(h),
true);this._updateDatepicker(h);this._updateAlternate(h);h.dpDiv.show()}},_dialogDatepicker:function(c,h,k,o,q){c=this._dialogInst;if(!c){this.uuid+=1;this._dialogInput=b('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);c=this._dialogInst=this._newInst(this._dialogInput,false);c.settings={};b.data(this._dialogInput[0],"datepicker",c)}f(c.settings,o||{});
h=h&&h.constructor==Date?this._formatDate(c,h):h;this._dialogInput.val(h);this._pos=q?q.length?q:[q.pageX,q.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=k;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var h=b(c),k=b.data(c,"datepicker");if(h.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();b.removeData(c,"datepicker");if(o=="input"){k.append.remove();k.trigger.remove();h.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
this._doKeyUp)}else if(o=="div"||o=="span")h.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(c){var h=b(c),k=b.data(c,"datepicker");if(h.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();if(o=="input"){c.disabled=false;k.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(o=="div"||o=="span")h.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,
function(q){return q==c?null:q})}},_disableDatepicker:function(c){var h=b(c),k=b.data(c,"datepicker");if(h.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();if(o=="input"){c.disabled=true;k.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(o=="div"||o=="span")h.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(q){return q==c?null:
q});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(c){if(!c)return false;for(var h=0;h<this._disabledInputs.length;h++)if(this._disabledInputs[h]==c)return true;return false},_getInst:function(c){try{return b.data(c,"datepicker")}catch(h){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,h,k){var o=this._getInst(c);if(arguments.length==2&&typeof h=="string")return h=="defaults"?b.extend({},b.datepicker._defaults):o?h=="all"?b.extend({},
o.settings):this._get(o,h):null;var q=h||{};if(typeof h=="string"){q={};q[h]=k}if(o){this._curInst==o&&this._hideDatepicker();var x=this._getDateDatepicker(c,true);f(o.settings,q);this._attachments(b(c),o);this._autoSize(o);this._setDateDatepicker(c,x);this._updateDatepicker(o)}},_changeDatepicker:function(c,h,k){this._optionDatepicker(c,h,k)},_refreshDatepicker:function(c){(c=this._getInst(c))&&this._updateDatepicker(c)},_setDateDatepicker:function(c,h){var k=this._getInst(c);if(k){this._setDate(k,
h);this._updateDatepicker(k);this._updateAlternate(k)}},_getDateDatepicker:function(c,h){var k=this._getInst(c);k&&!k.inline&&this._setDateFromField(k,h);return k?this._getDate(k):null},_doKeyDown:function(c){var h=b.datepicker._getInst(c.target),k=true,o=h.dpDiv.is(".ui-datepicker-rtl");h._keyEvent=true;if(b.datepicker._datepickerShowing)switch(c.keyCode){case 9:b.datepicker._hideDatepicker();k=false;break;case 13:k=b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",h.dpDiv);
k[0]?b.datepicker._selectDay(c.target,h.selectedMonth,h.selectedYear,k[0]):b.datepicker._hideDatepicker();return false;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(c.target,c.ctrlKey?-b.datepicker._get(h,"stepBigMonths"):-b.datepicker._get(h,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(c.target,c.ctrlKey?+b.datepicker._get(h,"stepBigMonths"):+b.datepicker._get(h,"stepMonths"),"M");break;case 35:if(c.ctrlKey||c.metaKey)b.datepicker._clearDate(c.target);
k=c.ctrlKey||c.metaKey;break;case 36:if(c.ctrlKey||c.metaKey)b.datepicker._gotoToday(c.target);k=c.ctrlKey||c.metaKey;break;case 37:if(c.ctrlKey||c.metaKey)b.datepicker._adjustDate(c.target,o?+1:-1,"D");k=c.ctrlKey||c.metaKey;if(c.originalEvent.altKey)b.datepicker._adjustDate(c.target,c.ctrlKey?-b.datepicker._get(h,"stepBigMonths"):-b.datepicker._get(h,"stepMonths"),"M");break;case 38:if(c.ctrlKey||c.metaKey)b.datepicker._adjustDate(c.target,-7,"D");k=c.ctrlKey||c.metaKey;break;case 39:if(c.ctrlKey||
c.metaKey)b.datepicker._adjustDate(c.target,o?-1:+1,"D");k=c.ctrlKey||c.metaKey;if(c.originalEvent.altKey)b.datepicker._adjustDate(c.target,c.ctrlKey?+b.datepicker._get(h,"stepBigMonths"):+b.datepicker._get(h,"stepMonths"),"M");break;case 40:if(c.ctrlKey||c.metaKey)b.datepicker._adjustDate(c.target,+7,"D");k=c.ctrlKey||c.metaKey;break;default:k=false}else if(c.keyCode==36&&c.ctrlKey)b.datepicker._showDatepicker(this);else k=false;if(k){c.preventDefault();c.stopPropagation()}},_doKeyPress:function(c){var h=
b.datepicker._getInst(c.target);if(b.datepicker._get(h,"constrainInput")){h=b.datepicker._possibleChars(b.datepicker._get(h,"dateFormat"));var k=String.fromCharCode(c.charCode==a?c.keyCode:c.charCode);return c.ctrlKey||c.metaKey||k<" "||!h||h.indexOf(k)>-1}},_doKeyUp:function(c){c=b.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,b.datepicker._getFormatConfig(c))){b.datepicker._setDateFromField(c);
b.datepicker._updateAlternate(c);b.datepicker._updateDatepicker(c)}}catch(h){b.datepicker.log(h)}return true},_showDatepicker:function(c){c=c.target||c;if(c.nodeName.toLowerCase()!="input")c=b("input",c.parentNode)[0];if(!(b.datepicker._isDisabledDatepicker(c)||b.datepicker._lastInput==c)){var h=b.datepicker._getInst(c);b.datepicker._curInst&&b.datepicker._curInst!=h&&b.datepicker._curInst.dpDiv.stop(true,true);var k=b.datepicker._get(h,"beforeShow");f(h.settings,k?k.apply(c,[c,h]):{});h.lastVal=
null;b.datepicker._lastInput=c;b.datepicker._setDateFromField(h);if(b.datepicker._inDialog)c.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(c);b.datepicker._pos[1]+=c.offsetHeight}var o=false;b(c).parents().each(function(){o|=b(this).css("position")=="fixed";return!o});if(o&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}k={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=
null;h.dpDiv.empty();h.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(h);k=b.datepicker._checkOffset(h,k,o);h.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":o?"fixed":"absolute",display:"none",left:k.left+"px",top:k.top+"px"});if(!h.inline){k=b.datepicker._get(h,"showAnim");var q=b.datepicker._get(h,"duration"),x=function(){b.datepicker._datepickerShowing=true;var s=h.dpDiv.find("iframe.ui-datepicker-cover");if(s.length){var p=b.datepicker._getBorders(h.dpDiv);
s.css({left:-p[0],top:-p[1],width:h.dpDiv.outerWidth(),height:h.dpDiv.outerHeight()})}};h.dpDiv.zIndex(b(c).zIndex()+1);if(b.effects&&b.effects[k])h.dpDiv.show(k,b.datepicker._get(h,"showOptions"),q,x);else h.dpDiv[k||"show"](k?q:null,x);if(!k||!q)x();h.input.is(":visible")&&!h.input.is(":disabled")&&h.input.focus();b.datepicker._curInst=h}}},_updateDatepicker:function(c){var h=this,k=b.datepicker._getBorders(c.dpDiv);c.dpDiv.empty().append(this._generateHTML(c));var o=c.dpDiv.find("iframe.ui-datepicker-cover");
o.length&&o.css({left:-k[0],top:-k[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()});c.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!h._isDisabledDatepicker(c.inline?
c.dpDiv.parent()[0]:c.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();k=this._getNumberOfMonths(c);o=k[1];o>1?c.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",
17*o+"em"):c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c.dpDiv[(k[0]!=1||k[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");c==b.datepicker._curInst&&b.datepicker._datepickerShowing&&c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&c.input.focus();if(c.yearshtml){var q=c.yearshtml;setTimeout(function(){q===c.yearshtml&&c.dpDiv.find("select.ui-datepicker-year:first").replaceWith(c.yearshtml);
q=c.yearshtml=null},0)}},_getBorders:function(c){var h=function(k){return{thin:1,medium:2,thick:3}[k]||k};return[parseFloat(h(c.css("border-left-width"))),parseFloat(h(c.css("border-top-width")))]},_checkOffset:function(c,h,k){var o=c.dpDiv.outerWidth(),q=c.dpDiv.outerHeight(),x=c.input?c.input.outerWidth():0,s=c.input?c.input.outerHeight():0,p=document.documentElement.clientWidth+b(document).scrollLeft(),w=document.documentElement.clientHeight+b(document).scrollTop();h.left-=this._get(c,"isRTL")?
o-x:0;h.left-=k&&h.left==c.input.offset().left?b(document).scrollLeft():0;h.top-=k&&h.top==c.input.offset().top+s?b(document).scrollTop():0;h.left-=Math.min(h.left,h.left+o>p&&p>o?Math.abs(h.left+o-p):0);h.top-=Math.min(h.top,h.top+q>w&&w>q?Math.abs(q+s):0);return h},_findPos:function(c){for(var h=this._get(this._getInst(c),"isRTL");c&&(c.type=="hidden"||c.nodeType!=1);)c=c[h?"previousSibling":"nextSibling"];c=b(c).offset();return[c.left,c.top]},_hideDatepicker:function(c){var h=this._curInst;if(!(!h||
c&&h!=b.data(c,"datepicker")))if(this._datepickerShowing){c=this._get(h,"showAnim");var k=this._get(h,"duration"),o=function(){b.datepicker._tidyDialog(h);this._curInst=null};if(b.effects&&b.effects[c])h.dpDiv.hide(c,b.datepicker._get(h,"showOptions"),k,o);else h.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?k:null,o);c||o();if(c=this._get(h,"onClose"))c.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",
left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(b.datepicker._curInst){c=b(c.target);c[0].id!=b.datepicker._mainDivId&&c.parents("#"+b.datepicker._mainDivId).length==0&&!c.hasClass(b.datepicker.markerClassName)&&!c.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&
b.blockUI)&&b.datepicker._hideDatepicker()}},_adjustDate:function(c,h,k){c=b(c);var o=this._getInst(c[0]);if(!this._isDisabledDatepicker(c[0])){this._adjustInstDate(o,h+(k=="M"?this._get(o,"showCurrentAtPos"):0),k);this._updateDatepicker(o)}},_gotoToday:function(c){c=b(c);var h=this._getInst(c[0]);if(this._get(h,"gotoCurrent")&&h.currentDay){h.selectedDay=h.currentDay;h.drawMonth=h.selectedMonth=h.currentMonth;h.drawYear=h.selectedYear=h.currentYear}else{var k=new Date;h.selectedDay=k.getDate();h.drawMonth=
h.selectedMonth=k.getMonth();h.drawYear=h.selectedYear=k.getFullYear()}this._notifyChange(h);this._adjustDate(c)},_selectMonthYear:function(c,h,k){c=b(c);var o=this._getInst(c[0]);o._selectingMonthYear=false;o["selected"+(k=="M"?"Month":"Year")]=o["draw"+(k=="M"?"Month":"Year")]=parseInt(h.options[h.selectedIndex].value,10);this._notifyChange(o);this._adjustDate(c)},_clickMonthYear:function(c){var h=this._getInst(b(c)[0]);h.input&&h._selectingMonthYear&&setTimeout(function(){h.input.focus()},0);h._selectingMonthYear=
!h._selectingMonthYear},_selectDay:function(c,h,k,o){var q=b(c);if(!(b(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(q[0]))){q=this._getInst(q[0]);q.selectedDay=q.currentDay=b("a",o).html();q.selectedMonth=q.currentMonth=h;q.selectedYear=q.currentYear=k;this._selectDate(c,this._formatDate(q,q.currentDay,q.currentMonth,q.currentYear))}},_clearDate:function(c){c=b(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,h){var k=this._getInst(b(c)[0]);h=h!=null?h:this._formatDate(k);
k.input&&k.input.val(h);this._updateAlternate(k);var o=this._get(k,"onSelect");if(o)o.apply(k.input?k.input[0]:null,[h,k]);else k.input&&k.input.trigger("change");if(k.inline)this._updateDatepicker(k);else{this._hideDatepicker();this._lastInput=k.input[0];typeof k.input[0]!="object"&&k.input.focus();this._lastInput=null}},_updateAlternate:function(c){var h=this._get(c,"altField");if(h){var k=this._get(c,"altFormat")||this._get(c,"dateFormat"),o=this._getDate(c),q=this.formatDate(k,o,this._getFormatConfig(c));
b(h).each(function(){b(this).val(q)})}},noWeekends:function(c){c=c.getDay();return[c>0&&c<6,""]},iso8601Week:function(c){c=new Date(c.getTime());c.setDate(c.getDate()+4-(c.getDay()||7));var h=c.getTime();c.setMonth(0);c.setDate(1);return Math.floor(Math.round((h-c)/864E5)/7)+1},parseDate:function(c,h,k){if(c==null||h==null)throw"Invalid arguments";h=typeof h=="object"?h.toString():h+"";if(h=="")return null;for(var o=(k?k.shortYearCutoff:null)||this._defaults.shortYearCutoff,q=(k?k.dayNamesShort:null)||
this._defaults.dayNamesShort,x=(k?k.dayNames:null)||this._defaults.dayNames,s=(k?k.monthNamesShort:null)||this._defaults.monthNamesShort,p=(k?k.monthNames:null)||this._defaults.monthNames,w=k=-1,A=-1,D=-1,K=false,R=function(ha){(ha=fa+1<c.length&&c.charAt(fa+1)==ha)&&fa++;return ha},Q=function(ha){var sa=R(ha);ha=h.substring($).match(RegExp("^\\d{1,"+(ha=="@"?14:ha=="!"?20:ha=="y"&&sa?4:ha=="o"?3:2)+"}"));if(!ha)throw"Missing number at position "+$;$+=ha[0].length;return parseInt(ha[0],10)},ba=function(ha,
sa,za){ha=R(ha)?za:sa;for(sa=0;sa<ha.length;sa++)if(h.substr($,ha[sa].length).toLowerCase()==ha[sa].toLowerCase()){$+=ha[sa].length;return sa+1}throw"Unknown name at position "+$;},ea=function(){if(h.charAt($)!=c.charAt(fa))throw"Unexpected literal at position "+$;$++},$=0,fa=0;fa<c.length;fa++)if(K)if(c.charAt(fa)=="'"&&!R("'"))K=false;else ea();else switch(c.charAt(fa)){case "d":A=Q("d");break;case "D":ba("D",q,x);break;case "o":D=Q("o");break;case "m":w=Q("m");break;case "M":w=ba("M",s,p);break;
case "y":k=Q("y");break;case "@":var Z=new Date(Q("@"));k=Z.getFullYear();w=Z.getMonth()+1;A=Z.getDate();break;case "!":Z=new Date((Q("!")-this._ticksTo1970)/1E4);k=Z.getFullYear();w=Z.getMonth()+1;A=Z.getDate();break;case "'":if(R("'"))ea();else K=true;break;default:ea()}if(k==-1)k=(new Date).getFullYear();else if(k<100)k+=(new Date).getFullYear()-(new Date).getFullYear()%100+(k<=o?0:-100);if(D>-1){w=1;A=D;do{o=this._getDaysInMonth(k,w-1);if(A<=o)break;w++;A-=o}while(1)}Z=this._daylightSavingAdjust(new Date(k,
w-1,A));if(Z.getFullYear()!=k||Z.getMonth()+1!=w||Z.getDate()!=A)throw"Invalid date";return Z},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864E9,formatDate:function(c,h,k){if(!h)return"";var o=(k?k.dayNamesShort:null)||this._defaults.dayNamesShort,q=(k?k.dayNames:
null)||this._defaults.dayNames,x=(k?k.monthNamesShort:null)||this._defaults.monthNamesShort;k=(k?k.monthNames:null)||this._defaults.monthNames;var s=function(R){(R=K+1<c.length&&c.charAt(K+1)==R)&&K++;return R},p=function(R,Q,ba){Q=""+Q;if(s(R))for(;Q.length<ba;)Q="0"+Q;return Q},w=function(R,Q,ba,ea){return s(R)?ea[Q]:ba[Q]},A="",D=false;if(h)for(var K=0;K<c.length;K++)if(D)if(c.charAt(K)=="'"&&!s("'"))D=false;else A+=c.charAt(K);else switch(c.charAt(K)){case "d":A+=p("d",h.getDate(),2);break;case "D":A+=
w("D",h.getDay(),o,q);break;case "o":A+=p("o",(h.getTime()-(new Date(h.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":A+=p("m",h.getMonth()+1,2);break;case "M":A+=w("M",h.getMonth(),x,k);break;case "y":A+=s("y")?h.getFullYear():(h.getYear()%100<10?"0":"")+h.getYear()%100;break;case "@":A+=h.getTime();break;case "!":A+=h.getTime()*1E4+this._ticksTo1970;break;case "'":if(s("'"))A+="'";else D=true;break;default:A+=c.charAt(K)}return A},_possibleChars:function(c){for(var h="",k=false,o=function(x){(x=
q+1<c.length&&c.charAt(q+1)==x)&&q++;return x},q=0;q<c.length;q++)if(k)if(c.charAt(q)=="'"&&!o("'"))k=false;else h+=c.charAt(q);else switch(c.charAt(q)){case "d":case "m":case "y":case "@":h+="0123456789";break;case "D":case "M":return null;case "'":if(o("'"))h+="'";else k=true;break;default:h+=c.charAt(q)}return h},_get:function(c,h){return c.settings[h]!==a?c.settings[h]:this._defaults[h]},_setDateFromField:function(c,h){if(c.input.val()!=c.lastVal){var k=this._get(c,"dateFormat"),o=c.lastVal=c.input?
c.input.val():null,q,x;q=x=this._getDefaultDate(c);var s=this._getFormatConfig(c);try{q=this.parseDate(k,o,s)||x}catch(p){this.log(p);o=h?"":o}c.selectedDay=q.getDate();c.drawMonth=c.selectedMonth=q.getMonth();c.drawYear=c.selectedYear=q.getFullYear();c.currentDay=o?q.getDate():0;c.currentMonth=o?q.getMonth():0;c.currentYear=o?q.getFullYear():0;this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,this._get(c,"defaultDate"),new Date))},_determineDate:function(c,
h,k){var o=function(q){var x=new Date;x.setDate(x.getDate()+q);return x};if(h=(h=h==null||h===""?k:typeof h=="string"?function(q){try{return b.datepicker.parseDate(b.datepicker._get(c,"dateFormat"),q,b.datepicker._getFormatConfig(c))}catch(x){}var s=(q.toLowerCase().match(/^c/)?b.datepicker._getDate(c):null)||new Date,p=s.getFullYear(),w=s.getMonth();s=s.getDate();for(var A=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,D=A.exec(q);D;){switch(D[2]||"d"){case "d":case "D":s+=parseInt(D[1],10);break;case "w":case "W":s+=
parseInt(D[1],10)*7;break;case "m":case "M":w+=parseInt(D[1],10);s=Math.min(s,b.datepicker._getDaysInMonth(p,w));break;case "y":case "Y":p+=parseInt(D[1],10);s=Math.min(s,b.datepicker._getDaysInMonth(p,w))}D=A.exec(q)}return new Date(p,w,s)}(h):typeof h=="number"?isNaN(h)?k:o(h):new Date(h.getTime()))&&h.toString()=="Invalid Date"?k:h){h.setHours(0);h.setMinutes(0);h.setSeconds(0);h.setMilliseconds(0)}return this._daylightSavingAdjust(h)},_daylightSavingAdjust:function(c){if(!c)return null;c.setHours(c.getHours()>
12?c.getHours()+2:0);return c},_setDate:function(c,h,k){var o=!h,q=c.selectedMonth,x=c.selectedYear;h=this._restrictMinMax(c,this._determineDate(c,h,new Date));c.selectedDay=c.currentDay=h.getDate();c.drawMonth=c.selectedMonth=c.currentMonth=h.getMonth();c.drawYear=c.selectedYear=c.currentYear=h.getFullYear();if((q!=c.selectedMonth||x!=c.selectedYear)&&!k)this._notifyChange(c);this._adjustInstDate(c);if(c.input)c.input.val(o?"":this._formatDate(c))},_getDate:function(c){return!c.currentYear||c.input&&
c.input.val()==""?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay))},_generateHTML:function(c){var h=new Date;h=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth(),h.getDate()));var k=this._get(c,"isRTL"),o=this._get(c,"showButtonPanel"),q=this._get(c,"hideIfNoPrevNext"),x=this._get(c,"navigationAsDateFormat"),s=this._getNumberOfMonths(c),p=this._get(c,"showCurrentAtPos"),w=this._get(c,"stepMonths"),A=s[0]!=1||s[1]!=1,D=this._daylightSavingAdjust(!c.currentDay?
new Date(9999,9,9):new Date(c.currentYear,c.currentMonth,c.currentDay)),K=this._getMinMaxDate(c,"min"),R=this._getMinMaxDate(c,"max");p=c.drawMonth-p;var Q=c.drawYear;if(p<0){p+=12;Q--}if(R){var ba=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth()-s[0]*s[1]+1,R.getDate()));for(ba=K&&ba<K?K:ba;this._daylightSavingAdjust(new Date(Q,p,1))>ba;){p--;if(p<0){p=11;Q--}}}c.drawMonth=p;c.drawYear=Q;ba=this._get(c,"prevText");ba=!x?ba:this.formatDate(ba,this._daylightSavingAdjust(new Date(Q,
p-w,1)),this._getFormatConfig(c));ba=this._canAdjustMonth(c,-1,Q,p)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+c.id+"', -"+w+", 'M');\" title=\""+ba+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"e":"w")+'">'+ba+"</span></a>":q?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ba+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"e":"w")+'">'+ba+"</span></a>";var ea=this._get(c,"nextText");ea=!x?ea:this.formatDate(ea,
this._daylightSavingAdjust(new Date(Q,p+w,1)),this._getFormatConfig(c));q=this._canAdjustMonth(c,+1,Q,p)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+g+".datepicker._adjustDate('#"+c.id+"', +"+w+", 'M');\" title=\""+ea+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"w":"e")+'">'+ea+"</span></a>":q?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ea+'"><span class="ui-icon ui-icon-circle-triangle-'+(k?"w":"e")+'">'+ea+"</span></a>";w=this._get(c,
"currentText");ea=this._get(c,"gotoCurrent")&&c.currentDay?D:h;w=!x?w:this.formatDate(w,ea,this._getFormatConfig(c));x=!c.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+g+'.datepicker._hideDatepicker();">'+this._get(c,"closeText")+"</button>":"";o=o?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(k?x:"")+(this._isInRange(c,ea)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
g+".datepicker._gotoToday('#"+c.id+"');\">"+w+"</button>":"")+(k?"":x)+"</div>":"";x=parseInt(this._get(c,"firstDay"),10);x=isNaN(x)?0:x;w=this._get(c,"showWeek");ea=this._get(c,"dayNames");this._get(c,"dayNamesShort");var $=this._get(c,"dayNamesMin"),fa=this._get(c,"monthNames"),Z=this._get(c,"monthNamesShort"),ha=this._get(c,"beforeShowDay"),sa=this._get(c,"showOtherMonths"),za=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var T=this._getDefaultDate(c),Ha="",Ea=0;Ea<s[0];Ea++){for(var j=
"",Ca=0;Ca<s[1];Ca++){var Fa=this._daylightSavingAdjust(new Date(Q,p,c.selectedDay)),pa=" ui-corner-all",ra="";if(A){ra+='<div class="ui-datepicker-group';if(s[1]>1)switch(Ca){case 0:ra+=" ui-datepicker-group-first";pa=" ui-corner-"+(k?"right":"left");break;case s[1]-1:ra+=" ui-datepicker-group-last";pa=" ui-corner-"+(k?"left":"right");break;default:ra+=" ui-datepicker-group-middle";pa=""}ra+='">'}ra+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+pa+'">'+(/all|left/.test(pa)&&
Ea==0?k?q:ba:"")+(/all|right/.test(pa)&&Ea==0?k?ba:q:"")+this._generateMonthYearHeader(c,p,Q,K,R,Ea>0||Ca>0,fa,Z)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var Da=w?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"";for(pa=0;pa<7;pa++){var B=(pa+x)%7;Da+="<th"+((pa+x+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+ea[B]+'">'+$[B]+"</span></th>"}ra+=Da+"</tr></thead><tbody>";Da=this._getDaysInMonth(Q,p);if(Q==c.selectedYear&&p==c.selectedMonth)c.selectedDay=
Math.min(c.selectedDay,Da);pa=(this._getFirstDayOfMonth(Q,p)-x+7)%7;Da=A?6:Math.ceil((pa+Da)/7);B=this._daylightSavingAdjust(new Date(Q,p,1-pa));for(var J=0;J<Da;J++){ra+="<tr>";var Y=!w?"":'<td class="ui-datepicker-week-col">'+this._get(c,"calculateWeek")(B)+"</td>";for(pa=0;pa<7;pa++){var S=ha?ha.apply(c.input?c.input[0]:null,[B]):[true,""],F=B.getMonth()!=p,N=F&&!za||!S[0]||K&&B<K||R&&B>R;Y+='<td class="'+((pa+x+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(B.getTime()==
Fa.getTime()&&p==c.selectedMonth&&c._keyEvent||T.getTime()==B.getTime()&&T.getTime()==Fa.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!sa?"":" "+S[1]+(B.getTime()==D.getTime()?" "+this._currentClass:"")+(B.getTime()==h.getTime()?" ui-datepicker-today":""))+'"'+((!F||sa)&&S[2]?' title="'+S[2]+'"':"")+(N?"":' onclick="DP_jQuery_'+g+".datepicker._selectDay('#"+c.id+"',"+B.getMonth()+","+B.getFullYear()+', this);return false;"')+">"+(F&&!sa?"&#xa0;":
N?'<span class="ui-state-default">'+B.getDate()+"</span>":'<a class="ui-state-default'+(B.getTime()==h.getTime()?" ui-state-highlight":"")+(B.getTime()==D.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+B.getDate()+"</a>")+"</td>";B.setDate(B.getDate()+1);B=this._daylightSavingAdjust(B)}ra+=Y+"</tr>"}p++;if(p>11){p=0;Q++}ra+="</tbody></table>"+(A?"</div>"+(s[0]>0&&Ca==s[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");j+=ra}Ha+=j}Ha+=o+(b.browser.msie&&parseInt(b.browser.version,
10)<7&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");c._keyEvent=false;return Ha},_generateMonthYearHeader:function(c,h,k,o,q,x,s,p){var w=this._get(c,"changeMonth"),A=this._get(c,"changeYear"),D=this._get(c,"showMonthAfterYear"),K='<div class="ui-datepicker-title">',R="";if(x||!w)R+='<span class="ui-datepicker-month">'+s[h]+"</span>";else{s=o&&o.getFullYear()==k;var Q=q&&q.getFullYear()==k;R+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+
g+".datepicker._selectMonthYear('#"+c.id+"', this, 'M');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+c.id+"');\">";for(var ba=0;ba<12;ba++)if((!s||ba>=o.getMonth())&&(!Q||ba<=q.getMonth()))R+='<option value="'+ba+'"'+(ba==h?' selected="selected"':"")+">"+p[ba]+"</option>";R+="</select>"}D||(K+=R+(x||!(w&&A)?"&#xa0;":""));c.yearshtml="";if(x||!A)K+='<span class="ui-datepicker-year">'+k+"</span>";else{p=this._get(c,"yearRange").split(":");var ea=(new Date).getFullYear();s=function($){$=
$.match(/c[+-].*/)?k+parseInt($.substring(1),10):$.match(/[+-].*/)?ea+parseInt($,10):parseInt($,10);return isNaN($)?ea:$};h=s(p[0]);p=Math.max(h,s(p[1]||""));h=o?Math.max(h,o.getFullYear()):h;p=q?Math.min(p,q.getFullYear()):p;for(c.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+g+".datepicker._selectMonthYear('#"+c.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+g+".datepicker._clickMonthYear('#"+c.id+"');\">";h<=p;h++)c.yearshtml+='<option value="'+h+'"'+(h==k?' selected="selected"':
"")+">"+h+"</option>";c.yearshtml+="</select>";if(b.browser.mozilla)K+='<select class="ui-datepicker-year"><option value="'+k+'" selected="selected">'+k+"</option></select>";else{K+=c.yearshtml;c.yearshtml=null}}K+=this._get(c,"yearSuffix");if(D)K+=(x||!(w&&A)?"&#xa0;":"")+R;K+="</div>";return K},_adjustInstDate:function(c,h,k){var o=c.drawYear+(k=="Y"?h:0),q=c.drawMonth+(k=="M"?h:0);h=Math.min(c.selectedDay,this._getDaysInMonth(o,q))+(k=="D"?h:0);o=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(o,
q,h)));c.selectedDay=o.getDate();c.drawMonth=c.selectedMonth=o.getMonth();c.drawYear=c.selectedYear=o.getFullYear();if(k=="M"||k=="Y")this._notifyChange(c)},_restrictMinMax:function(c,h){var k=this._getMinMaxDate(c,"min"),o=this._getMinMaxDate(c,"max");k=k&&h<k?k:h;return o&&k>o?o:k},_notifyChange:function(c){var h=this._get(c,"onChangeMonthYear");if(h)h.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){c=this._get(c,"numberOfMonths");return c==null?
[1,1]:typeof c=="number"?[1,c]:c},_getMinMaxDate:function(c,h){return this._determineDate(c,this._get(c,h+"Date"),null)},_getDaysInMonth:function(c,h){return 32-(new Date(c,h,32)).getDate()},_getFirstDayOfMonth:function(c,h){return(new Date(c,h,1)).getDay()},_canAdjustMonth:function(c,h,k,o){var q=this._getNumberOfMonths(c);k=this._daylightSavingAdjust(new Date(k,o+(h<0?h:q[0]*q[1]),1));h<0&&k.setDate(this._getDaysInMonth(k.getFullYear(),k.getMonth()));return this._isInRange(c,k)},_isInRange:function(c,
h){var k=this._getMinMaxDate(c,"min"),o=this._getMinMaxDate(c,"max");return(!k||h.getTime()>=k.getTime())&&(!o||h.getTime()<=o.getTime())},_getFormatConfig:function(c){var h=this._get(c,"shortYearCutoff");h=typeof h!="string"?h:(new Date).getFullYear()%100+parseInt(h,10);return{shortYearCutoff:h,dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,h,k,o){if(!h){c.currentDay=
c.selectedDay;c.currentMonth=c.selectedMonth;c.currentYear=c.selectedYear}h=h?typeof h=="object"?h:this._daylightSavingAdjust(new Date(o,k,h)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),h,this._getFormatConfig(c))}});b.fn.datepicker=function(c){if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);b.datepicker.initialized=true}var h=Array.prototype.slice.call(arguments,
1);if(typeof c=="string"&&(c=="isDisabled"||c=="getDate"||c=="widget"))return b.datepicker["_"+c+"Datepicker"].apply(b.datepicker,[this[0]].concat(h));if(c=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+c+"Datepicker"].apply(b.datepicker,[this[0]].concat(h));return this.each(function(){typeof c=="string"?b.datepicker["_"+c+"Datepicker"].apply(b.datepicker,[this].concat(h)):b.datepicker._attachDatepicker(this,c)})};b.datepicker=new d;b.datepicker.initialized=
false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.7";window["DP_jQuery_"+g]=b})(jQuery);
(function(b,a){var d={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},f={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};b.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(g){var c=b(this).css(g).offset().top;c<0&&
b(this).css("top",g.top-c)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var g=this,c=g.options,h=c.title||"&#160;",k=b.ui.dialog.getTitleId(g.element),o=(g.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",
-1).css("outline",0).keydown(function(s){if(c.closeOnEscape&&s.keyCode&&s.keyCode===b.ui.keyCode.ESCAPE){g.close(s);s.preventDefault()}}).attr({role:"dialog","aria-labelledby":k}).mousedown(function(s){g.moveToTop(false,s)});g.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(o);var q=(g.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(o),x=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
"button").hover(function(){x.addClass("ui-state-hover")},function(){x.removeClass("ui-state-hover")}).focus(function(){x.addClass("ui-state-focus")}).blur(function(){x.removeClass("ui-state-focus")}).click(function(s){g.close(s);return false}).appendTo(q);(g.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(x);b("<span></span>").addClass("ui-dialog-title").attr("id",k).html(h).prependTo(q);if(b.isFunction(c.beforeclose)&&!b.isFunction(c.beforeClose))c.beforeClose=
c.beforeclose;q.find("*").add(q).disableSelection();c.draggable&&b.fn.draggable&&g._makeDraggable();c.resizable&&b.fn.resizable&&g._makeResizable();g._createButtons(c.buttons);g._isOpen=false;b.fn.bgiframe&&o.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();
this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(g){var c=this,h,k;if(false!==c._trigger("beforeClose",g)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide)c.uiDialog.hide(c.options.hide,function(){c._trigger("close",g)});else{c.uiDialog.hide();c._trigger("close",g)}b.ui.dialog.overlay.resize();if(c.options.modal){h=0;b(".ui-dialog").each(function(){if(this!==
c.uiDialog[0]){k=b(this).css("z-index");isNaN(k)||(h=Math.max(h,k))}});b.ui.dialog.maxZ=h}return c}},isOpen:function(){return this._isOpen},moveToTop:function(g,c){var h=this.options;if(h.modal&&!g||!h.stack&&!h.modal)return this._trigger("focus",c);if(h.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=h.zIndex;if(this.overlay){b.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ)}h={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
b.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",b.ui.dialog.maxZ);this.element.attr(h);this._trigger("focus",c);return this},open:function(){if(!this._isOpen){var g=this.options,c=this.uiDialog;this.overlay=g.modal?new b.ui.dialog.overlay(this):null;this._size();this._position(g.position);c.show(g.show);this.moveToTop(true);g.modal&&c.bind("keypress.ui-dialog",function(h){if(h.keyCode===b.ui.keyCode.TAB){var k=b(":tabbable",this),o=k.filter(":first");k=k.filter(":last");if(h.target===k[0]&&!h.shiftKey){o.focus(1);
return false}else if(h.target===o[0]&&h.shiftKey){k.focus(1);return false}}});b(this.element.find(":tabbable").get().concat(c.find(".ui-dialog-buttonpane :tabbable").get().concat(c.get()))).eq(0).focus();this._isOpen=true;this._trigger("open");return this}},_createButtons:function(g){var c=this,h=false,k=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),o=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);c.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof g==="object"&&g!==null&&b.each(g,function(){return!(h=true)});if(h){b.each(g,function(q,x){x=b.isFunction(x)?{click:x,text:q}:x;var s=b('<button type="button"></button>').attr(x,true).unbind("click").click(function(){x.click.apply(c.element[0],arguments)}).appendTo(o);b.fn.button&&s.button()});k.appendTo(c.uiDialog)}},_makeDraggable:function(){function g(q){return{position:q.position,offset:q.offset}}var c=this,h=c.options,k=b(document),o;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(q,x){o=h.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",q,g(x))},drag:function(q,x){c._trigger("drag",q,g(x))},stop:function(q,x){h.position=[x.position.left-k.scrollLeft(),x.position.top-k.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(o);c._trigger("dragStop",q,g(x));b.ui.dialog.overlay.resize()}})},_makeResizable:function(g){function c(q){return{originalPosition:q.originalPosition,
originalSize:q.originalSize,position:q.position,size:q.size}}g=g===a?this.options.resizable:g;var h=this,k=h.options,o=h.uiDialog.css("position");g=typeof g==="string"?g:"n,e,s,w,se,sw,ne,nw";h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:h._minHeight(),handles:g,start:function(q,x){b(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",q,c(x))},resize:function(q,x){h._trigger("resize",
q,c(x))},stop:function(q,x){b(this).removeClass("ui-dialog-resizing");k.height=b(this).height();k.width=b(this).width();h._trigger("resizeStop",q,c(x));b.ui.dialog.overlay.resize()}}).css("position",o).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var g=this.options;return g.height==="auto"?g.minHeight:Math.min(g.minHeight,g.height)},_position:function(g){var c=[],h=[0,0],k;if(g){if(typeof g==="string"||typeof g==="object"&&"0"in g){c=g.split?g.split(" "):
[g[0],g[1]];if(c.length===1)c[1]=c[0];b.each(["left","top"],function(o,q){if(+c[o]===c[o]){h[o]=c[o];c[o]=q}});g={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}}g=b.extend({},b.ui.dialog.prototype.options.position,g)}else g=b.ui.dialog.prototype.options.position;(k=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(b.extend({of:window},g));k||this.uiDialog.hide()},_setOptions:function(g){var c=this,h={},k=false;b.each(g,function(o,q){c._setOption(o,q);
if(o in d)k=true;if(o in f)h[o]=q});k&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(g,c){var h=this.uiDialog;switch(g){case "beforeclose":g="beforeClose";break;case "buttons":this._createButtons(c);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+c);break;case "dialogClass":h.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case "disabled":c?h.addClass("ui-dialog-disabled"):
h.removeClass("ui-dialog-disabled");break;case "draggable":var k=h.is(":data(draggable)");k&&!c&&h.draggable("destroy");!k&&c&&this._makeDraggable();break;case "position":this._position(c);break;case "resizable":(k=h.is(":data(resizable)"))&&!c&&h.resizable("destroy");k&&typeof c==="string"&&h.resizable("option","handles",c);!k&&c!==false&&this._makeResizable(c);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(""+(c||"&#160;"))}b.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var g=this.options,c,h,k=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(g.minWidth>g.width)g.width=g.minWidth;c=this.uiDialog.css({height:"auto",width:g.width}).height();h=Math.max(0,g.minHeight-c);if(g.height==="auto")if(b.support.minHeight)this.element.css({minHeight:h,height:"auto"});else{this.uiDialog.show();g=this.element.css("height","auto").height();k||this.uiDialog.hide();this.element.height(Math.max(g,h))}else this.element.height(Math.max(g.height-
c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.7",uuid:0,maxZ:0,getTitleId:function(g){g=g.attr("id");if(!g){this.uuid+=1;g=this.uuid}return"ui-dialog-title-"+g},overlay:function(g){this.$el=b.ui.dialog.overlay.create(g)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(g){return g+".dialog-overlay"}).join(" "),
create:function(g){if(this.instances.length===0){setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(h){if(b(h.target).zIndex()<b.ui.dialog.overlay.maxZ)return false})},1);b(document).bind("keydown.dialog-overlay",function(h){if(g.options.closeOnEscape&&h.keyCode&&h.keyCode===b.ui.keyCode.ESCAPE){g.close(h);h.preventDefault()}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});b.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(g){var c=b.inArray(g,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");g.remove();var h=0;b.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var g,c;if(b.browser.msie&&b.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return g<c?b(window).height()+"px":g+"px"}else return b(document).height()+"px"},width:function(){var g,c;if(b.browser.msie&&b.browser.version<7){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return g<c?b(window).width()+"px":g+"px"}else return b(document).width()+"px"},resize:function(){var g=b([]);b.each(b.ui.dialog.overlay.instances,
function(){g=g.add(this)});g.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(b){b.ui=b.ui||{};var a=/left|center|right/,d=/top|center|bottom/,f=b.fn.position,g=b.fn.offset;b.fn.position=function(c){if(!c||!c.of)return f.apply(this,arguments);c=b.extend({},c);var h=b(c.of),k=h[0],o=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],x,s,p;if(k.nodeType===9){x=h.width();s=h.height();p={top:0,left:0}}else if(k.setTimeout){x=h.width();s=h.height();p={top:h.scrollTop(),left:h.scrollLeft()}}else if(k.preventDefault){c.at="left top";x=s=0;p={top:c.of.pageY,
left:c.of.pageX}}else{x=h.outerWidth();s=h.outerHeight();p=h.offset()}b.each(["my","at"],function(){var w=(c[this]||"").split(" ");if(w.length===1)w=a.test(w[0])?w.concat(["center"]):d.test(w[0])?["center"].concat(w):["center","center"];w[0]=a.test(w[0])?w[0]:"center";w[1]=d.test(w[1])?w[1]:"center";c[this]=w});if(o.length===1)o[1]=o[0];q[0]=parseInt(q[0],10)||0;if(q.length===1)q[1]=q[0];q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right")p.left+=x;else if(c.at[0]==="center")p.left+=x/2;if(c.at[1]==="bottom")p.top+=
s;else if(c.at[1]==="center")p.top+=s/2;p.left+=q[0];p.top+=q[1];return this.each(function(){var w=b(this),A=w.outerWidth(),D=w.outerHeight(),K=parseInt(b.curCSS(this,"marginLeft",true))||0,R=parseInt(b.curCSS(this,"marginTop",true))||0,Q=A+K+parseInt(b.curCSS(this,"marginRight",true))||0,ba=D+R+parseInt(b.curCSS(this,"marginBottom",true))||0,ea=b.extend({},p),$;if(c.my[0]==="right")ea.left-=A;else if(c.my[0]==="center")ea.left-=A/2;if(c.my[1]==="bottom")ea.top-=D;else if(c.my[1]==="center")ea.top-=
D/2;ea.left=Math.round(ea.left);ea.top=Math.round(ea.top);$={left:ea.left-K,top:ea.top-R};b.each(["left","top"],function(fa,Z){if(b.ui.position[o[fa]])b.ui.position[o[fa]][Z](ea,{targetWidth:x,targetHeight:s,elemWidth:A,elemHeight:D,collisionPosition:$,collisionWidth:Q,collisionHeight:ba,offset:q,my:c.my,at:c.at})});b.fn.bgiframe&&w.bgiframe();w.offset(b.extend(ea,{using:c.using}))})};b.ui.position={fit:{left:function(c,h){var k=b(window);k=h.collisionPosition.left+h.collisionWidth-k.width()-k.scrollLeft();
c.left=k>0?c.left-k:Math.max(c.left-h.collisionPosition.left,c.left)},top:function(c,h){var k=b(window);k=h.collisionPosition.top+h.collisionHeight-k.height()-k.scrollTop();c.top=k>0?c.top-k:Math.max(c.top-h.collisionPosition.top,c.top)}},flip:{left:function(c,h){if(h.at[0]!=="center"){var k=b(window);k=h.collisionPosition.left+h.collisionWidth-k.width()-k.scrollLeft();var o=h.my[0]==="left"?-h.elemWidth:h.my[0]==="right"?h.elemWidth:0,q=h.at[0]==="left"?h.targetWidth:-h.targetWidth,x=-2*h.offset[0];
c.left+=h.collisionPosition.left<0?o+q+x:k>0?o+q+x:0}},top:function(c,h){if(h.at[1]!=="center"){var k=b(window);k=h.collisionPosition.top+h.collisionHeight-k.height()-k.scrollTop();var o=h.my[1]==="top"?-h.elemHeight:h.my[1]==="bottom"?h.elemHeight:0,q=h.at[1]==="top"?h.targetHeight:-h.targetHeight,x=-2*h.offset[1];c.top+=h.collisionPosition.top<0?o+q+x:k>0?o+q+x:0}}}};if(!b.offset.setOffset){b.offset.setOffset=function(c,h){if(/static/.test(b.curCSS(c,"position")))c.style.position="relative";var k=
b(c),o=k.offset(),q=parseInt(b.curCSS(c,"top",true),10)||0,x=parseInt(b.curCSS(c,"left",true),10)||0;o={top:h.top-o.top+q,left:h.left-o.left+x};"using"in h?h.using.call(c,o):k.css(o)};b.fn.offset=function(c){var h=this[0];if(!h||!h.ownerDocument)return null;if(c)return this.each(function(){b.offset.setOffset(this,c)});return g.call(this)}}})(jQuery);
(function(b,a){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(d){if(d===a)return this._value();this._setOption("value",d);return this},_setOption:function(d,f){if(d==="value"){this.options.value=f;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var d=this.options.value;if(typeof d!=="number")d=0;return Math.min(this.options.max,Math.max(this.min,d))},_percentage:function(){return 100*
this._value()/this.options.max},_refreshValue:function(){var d=this.value(),f=this._percentage();if(this.oldValue!==d){this.oldValue=d;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",d===this.options.max).width(f.toFixed(0)+"%");this.element.attr("aria-valuenow",d)}});b.extend(b.ui.progressbar,{version:"1.8.7"})})(jQuery);
(function(b){b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,d=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");d.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=b([]);if(d.range){if(d.range===true){this.range=b("<div></div>");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(d.range==="min"||d.range==="max")this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length===0&&b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(d.values&&d.values.length)for(;b(".ui-slider-handle",this.element).length<d.values.length;)b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(f){f.preventDefault()}).hover(function(){d.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(d.disabled)b(this).blur();
else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(f){b(this).data("index.ui-slider-handle",f)});this.handles.keydown(function(f){var g=true,c=b(this).data("index.ui-slider-handle"),h,k,o;if(!a.options.disabled){switch(f.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:g=
false;if(!a._keySliding){a._keySliding=true;b(this).addClass("ui-state-active");h=a._start(f,c);if(h===false)return}}o=a.options.step;h=a.options.values&&a.options.values.length?k=a.values(c):k=a.value();switch(f.keyCode){case b.ui.keyCode.HOME:k=a._valueMin();break;case b.ui.keyCode.END:k=a._valueMax();break;case b.ui.keyCode.PAGE_UP:k=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:k=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(h===
a._valueMax())return;k=a._trimAlignValue(h+o);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(h===a._valueMin())return;k=a._trimAlignValue(h-o)}a._slide(f,c,k);return g}}).keyup(function(f){var g=b(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(f,g);a._change(f,g);b(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(a){var d=this.options,f,g,c,h,k;if(d.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();f=this._normValueFromMouse({x:a.pageX,y:a.pageY});g=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(o){var q=Math.abs(f-h.values(o));if(g>q){g=q;c=b(this);k=o}});if(d.range===true&&this.values(1)===d.min){k+=1;c=b(this.handles[k])}if(this._start(a,
k)===false)return false;this._mouseSliding=true;h._handleIndex=k;c.addClass("ui-state-active").focus();d=c.offset();this._clickOffset=!b(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-d.left-c.width()/2,top:a.pageY-d.top-c.height()/2-(parseInt(c.css("borderTopWidth"),10)||0)-(parseInt(c.css("borderBottomWidth"),10)||0)+(parseInt(c.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,k,f);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(a){var d=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,d);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var d;
if(this.orientation==="horizontal"){d=this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=a/d;if(d>1)d=1;if(d<0)d=0;if(this.orientation==="vertical")d=1-d;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*a)},_start:function(a,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=
this.values(d);f.values=this.values()}return this._trigger("start",a,f)},_slide:function(a,d,f){var g;if(this.options.values&&this.options.values.length){g=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===true&&(d===0&&f>g||d===1&&f<g))f=g;if(f!==this.values(d)){g=this.values();g[d]=f;a=this._trigger("slide",a,{handle:this.handles[d],value:f,values:g});this.values(d?0:1);a!==false&&this.values(d,f,true)}}else if(f!==this.value()){a=this._trigger("slide",a,{handle:this.handles[d],
value:f});a!==false&&this.value(f)}},_stop:function(a,d){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("stop",a,f)},_change:function(a,d){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(d);f.values=this.values()}this._trigger("change",a,f)}},value:function(a){if(arguments.length){this.options.value=
this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return this._value()},values:function(a,d){var f,g,c;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(d);this._refreshValue();this._change(null,a)}if(arguments.length)if(b.isArray(arguments[0])){f=this.options.values;g=arguments[0];for(c=0;c<f.length;c+=1){f[c]=this._trimAlignValue(g[c]);this._change(null,c)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):this.value();
else return this._values()},_setOption:function(a,d){var f,g=0;if(b.isArray(this.options.values))g=this.options.values.length;b.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(f=0;f<g;f+=1)this._change(null,f);this._animateOff=false}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var d,f;if(arguments.length){d=this.options.values[a];
d=this._trimAlignValue(d)}else{d=this.options.values.slice();for(f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(d[f])}return d},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var d=this.options.step>0?this.options.step:1,f=(a-this._valueMin())%d;alignValue=a-f;if(Math.abs(f)*2>=d)alignValue+=f>0?d:-d;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(){var a=this.options.range,d=this.options,f=this,g=!this._animateOff?d.animate:false,c,h={},k,o,q,x;if(this.options.values&&this.options.values.length)this.handles.each(function(s){c=(f.values(s)-f._valueMin())/(f._valueMax()-f._valueMin())*100;h[f.orientation==="horizontal"?"left":"bottom"]=c+"%";b(this).stop(1,1)[g?"animate":"css"](h,d.animate);if(f.options.range===true)if(f.orientation==="horizontal"){if(s===0)f.range.stop(1,1)[g?"animate":"css"]({left:c+"%"},d.animate);
if(s===1)f.range[g?"animate":"css"]({width:c-k+"%"},{queue:false,duration:d.animate})}else{if(s===0)f.range.stop(1,1)[g?"animate":"css"]({bottom:c+"%"},d.animate);if(s===1)f.range[g?"animate":"css"]({height:c-k+"%"},{queue:false,duration:d.animate})}k=c});else{o=this.value();q=this._valueMin();x=this._valueMax();c=x!==q?(o-q)/(x-q)*100:0;h[f.orientation==="horizontal"?"left":"bottom"]=c+"%";this.handle.stop(1,1)[g?"animate":"css"](h,d.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,
1)[g?"animate":"css"]({width:c+"%"},d.animate);if(a==="max"&&this.orientation==="horizontal")this.range[g?"animate":"css"]({width:100-c+"%"},{queue:false,duration:d.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[g?"animate":"css"]({height:c+"%"},d.animate);if(a==="max"&&this.orientation==="vertical")this.range[g?"animate":"css"]({height:100-c+"%"},{queue:false,duration:d.animate})}}});b.extend(b.ui.slider,{version:"1.8.7"})})(jQuery);
(function(b,a){var d=0,f=0;b.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(g,c){if(g=="selected")this.options.collapsible&&c==this.options.selected||
this.select(c);else{this.options[g]=c;this._tabify()}},_tabId:function(g){return g.title&&g.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++d},_sanitizeSelector:function(g){return g.replace(/:/g,"\\:")},_cookie:function(){var g=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++f);return b.cookie.apply(null,[g].concat(b.makeArray(arguments)))},_ui:function(g,c){return{tab:g,panel:c,index:this.anchors.index(g)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var g=
b(this);g.html(g.data("label.tabs")).removeData("label.tabs")})},_tabify:function(g){function c(D,K){D.css("display","");!b.support.opacity&&K.opacity&&D[0].style.removeAttribute("filter")}var h=this,k=this.options,o=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(D,K){var R=b(K).attr("href"),Q=R.split("#")[0],ba;if(Q&&(Q===location.toString().split("#")[0]||
(ba=b("base")[0])&&Q===ba.href)){R=K.hash;K.href=R}if(o.test(R))h.panels=h.panels.add(h.element.find(h._sanitizeSelector(R)));else if(R&&R!=="#"){b.data(K,"href.tabs",R);b.data(K,"load.tabs",R.replace(/#.*$/,""));R=h._tabId(K);K.href="#"+R;Q=h.element.find("#"+R);if(!Q.length){Q=b(k.panelTemplate).attr("id",R).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(h.panels[D-1]||h.list);Q.data("destroy.tabs",true)}h.panels=h.panels.add(Q)}else k.disabled.push(D)});if(g){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(k.selected===a){location.hash&&this.anchors.each(function(D,K){if(K.hash==location.hash){k.selected=D;return false}});if(typeof k.selected!=="number"&&k.cookie)k.selected=parseInt(h._cookie(),10);if(typeof k.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)k.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));k.selected=k.selected||(this.lis.length?0:-1)}else if(k.selected===null)k.selected=-1;k.selected=k.selected>=0&&this.anchors[k.selected]||k.selected<0?k.selected:0;k.disabled=b.unique(k.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(D){return h.lis.index(D)}))).sort();b.inArray(k.selected,k.disabled)!=-1&&k.disabled.splice(b.inArray(k.selected,k.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(k.selected>=0&&this.anchors.length){h.element.find(h._sanitizeSelector(h.anchors[k.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(k.selected).addClass("ui-tabs-selected ui-state-active");h.element.queue("tabs",function(){h._trigger("show",null,h._ui(h.anchors[k.selected],h.element.find(h._sanitizeSelector(h.anchors[k.selected].hash))))});this.load(k.selected)}b(window).bind("unload",function(){h.lis.add(h.anchors).unbind(".tabs");h.lis=h.anchors=h.panels=null})}else k.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[k.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");k.cookie&&this._cookie(k.selected,k.cookie);g=0;for(var q;q=this.lis[g];g++)b(q)[b.inArray(g,k.disabled)!=-1&&!b(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");k.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(k.event!=="mouseover"){var x=function(D,K){K.is(":not(.ui-state-disabled)")&&K.addClass("ui-state-"+D)};this.lis.bind("mouseover.tabs",
function(){x("hover",b(this))});this.lis.bind("mouseout.tabs",function(){b(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){x("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){b(this).closest("li").removeClass("ui-state-focus")})}var s,p;if(k.fx)if(b.isArray(k.fx)){s=k.fx[0];p=k.fx[1]}else s=p=k.fx;var w=p?function(D,K){b(D).closest("li").addClass("ui-tabs-selected ui-state-active");K.hide().removeClass("ui-tabs-hide").animate(p,p.duration||"normal",
function(){c(K,p);h._trigger("show",null,h._ui(D,K[0]))})}:function(D,K){b(D).closest("li").addClass("ui-tabs-selected ui-state-active");K.removeClass("ui-tabs-hide");h._trigger("show",null,h._ui(D,K[0]))},A=s?function(D,K){K.animate(s,s.duration||"normal",function(){h.lis.removeClass("ui-tabs-selected ui-state-active");K.addClass("ui-tabs-hide");c(K,s);h.element.dequeue("tabs")})}:function(D,K){h.lis.removeClass("ui-tabs-selected ui-state-active");K.addClass("ui-tabs-hide");h.element.dequeue("tabs")};
this.anchors.bind(k.event+".tabs",function(){var D=this,K=b(D).closest("li"),R=h.panels.filter(":not(.ui-tabs-hide)"),Q=h.element.find(h._sanitizeSelector(D.hash));if(K.hasClass("ui-tabs-selected")&&!k.collapsible||K.hasClass("ui-state-disabled")||K.hasClass("ui-state-processing")||h.panels.filter(":animated").length||h._trigger("select",null,h._ui(this,Q[0]))===false){this.blur();return false}k.selected=h.anchors.index(this);h.abort();if(k.collapsible)if(K.hasClass("ui-tabs-selected")){k.selected=
-1;k.cookie&&h._cookie(k.selected,k.cookie);h.element.queue("tabs",function(){A(D,R)}).dequeue("tabs");this.blur();return false}else if(!R.length){k.cookie&&h._cookie(k.selected,k.cookie);h.element.queue("tabs",function(){w(D,Q)});h.load(h.anchors.index(this));this.blur();return false}k.cookie&&h._cookie(k.selected,k.cookie);if(Q.length){R.length&&h.element.queue("tabs",function(){A(D,R)});h.element.queue("tabs",function(){w(D,Q)});h.load(h.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(g){if(typeof g=="string")g=this.anchors.index(this.anchors.filter("[href$="+g+"]"));return g},destroy:function(){var g=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 c=
b.data(this,"href.tabs");if(c)this.href=c;var h=b(this).unbind(".tabs");b.each(["href","load","cache"],function(k,o){h.removeData(o+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});g.cookie&&this._cookie(null,g.cookie);return this},add:function(g,
c,h){if(h===a)h=this.anchors.length;var k=this,o=this.options;c=b(o.tabTemplate.replace(/#\{href\}/g,g).replace(/#\{label\}/g,c));g=!g.indexOf("#")?g.replace("#",""):this._tabId(b("a",c)[0]);c.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=k.element.find("#"+g);q.length||(q=b(o.panelTemplate).attr("id",g).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(h>=this.lis.length){c.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{c.insertBefore(this.lis[h]);
q.insertBefore(this.panels[h])}o.disabled=b.map(o.disabled,function(x){return x>=h?++x:x});this._tabify();if(this.anchors.length==1){o.selected=0;c.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){k._trigger("show",null,k._ui(k.anchors[0],k.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[h],this.panels[h]));return this},remove:function(g){g=this._getIndex(g);var c=this.options,h=this.lis.eq(g).remove(),k=this.panels.eq(g).remove();
if(h.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(g+(g+1<this.anchors.length?1:-1));c.disabled=b.map(b.grep(c.disabled,function(o){return o!=g}),function(o){return o>=g?--o:o});this._tabify();this._trigger("remove",null,this._ui(h.find("a")[0],k[0]));return this},enable:function(g){g=this._getIndex(g);var c=this.options;if(b.inArray(g,c.disabled)!=-1){this.lis.eq(g).removeClass("ui-state-disabled");c.disabled=b.grep(c.disabled,function(h){return h!=g});this._trigger("enable",null,
this._ui(this.anchors[g],this.panels[g]));return this}},disable:function(g){g=this._getIndex(g);var c=this.options;if(g!=c.selected){this.lis.eq(g).addClass("ui-state-disabled");c.disabled.push(g);c.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[g],this.panels[g]))}return this},select:function(g){g=this._getIndex(g);if(g==-1)if(this.options.collapsible&&this.options.selected!=-1)g=this.options.selected;else return this;this.anchors.eq(g).trigger(this.options.event+".tabs");return this},
load:function(g){g=this._getIndex(g);var c=this,h=this.options,k=this.anchors.eq(g)[0],o=b.data(k,"load.tabs");this.abort();if(!o||this.element.queue("tabs").length!==0&&b.data(k,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(g).addClass("ui-state-processing");if(h.spinner){var q=b("span",k);q.data("label.tabs",q.html()).html(h.spinner)}this.xhr=b.ajax(b.extend({},h.ajaxOptions,{url:o,success:function(x,s){c.element.find(c._sanitizeSelector(k.hash)).html(x);c._cleanup();h.cache&&b.data(k,
"cache.tabs",true);c._trigger("load",null,c._ui(c.anchors[g],c.panels[g]));try{h.ajaxOptions.success(x,s)}catch(p){}},error:function(x,s){c._cleanup();c._trigger("load",null,c._ui(c.anchors[g],c.panels[g]));try{h.ajaxOptions.error(x,s,g,k)}catch(p){}}}));c.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(g,c){this.anchors.eq(g).removeData("cache.tabs").data("load.tabs",c);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.8.7"});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(g,c){var h=this,k=this.options,o=h._rotate||(h._rotate=function(x){clearTimeout(h.rotation);h.rotation=setTimeout(function(){var s=k.selected;h.select(++s<h.anchors.length?s:0)},g);x&&x.stopPropagation()}),q=h._unrotate||(h._unrotate=!c?function(x){x.clientX&&
h.rotate(null)}:function(){t=k.selected;o()});if(g){this.element.bind("tabsshow",o);this.anchors.bind(k.event+".tabs",q);o()}else{clearTimeout(h.rotation);this.element.unbind("tabsshow",o);this.anchors.unbind(k.event+".tabs",q);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(b){b.fn.asmSelect=function(a){var d={listType:"ol",sortable:false,highlight:false,animate:false,addItemTarget:"bottom",hideWhenAdded:false,debugMode:false,removeLabel:"remove",highlightAddedLabel:"Added: ",highlightRemovedLabel:"Removed: ",containerClass:"asmContainer",selectClass:"asmSelect",optionDisabledClass:"asmOptionDisabled",listClass:"asmList",listSortableClass:"asmListSortable",listItemClass:"asmListItem",listItemLabelClass:"asmListItemLabel",removeClass:"asmListItemRemove",highlightClass:"asmHighlight"};
b.extend(d,a);return this.each(function(f){function g(){R.sortable({items:"li."+d.listItemClass,handle:"."+d.listItemLabelClass,axis:"y",update:function(){var $;b(this).children("li").each(function(){$option=b("#"+b(this).attr("rel"));if(b(this).is(".ui-sortable-helper"))$=$option.attr("id");else A.append($option)});$&&w($,"sort")}}).addClass(d.listSortableClass)}function c(){Q=true;A.attr("title")&&K.prepend("<option value=''>"+A.attr("title")+"</option>");A.children("option").each(function($){var fa=
b(this),Z=fa.is(":selected"),ha=fa.is(":disabled");fa.attr("id")||fa.attr("id","asm"+f+"option"+$);$=fa.attr("id");if(Z&&!ha){q($);h($,true)}else!Z&&ha?h($,true):h($)});d.debugMode||A.hide();k();Q=false}function h($,fa){if(fa==undefined)fa=false;var Z=b("#"+$);Z=b("<option>"+Z.html()+"</option>").val(Z.val()).attr("rel",$);fa&&o(Z);K.append(Z)}function k(){K.children(":eq(0)").attr("selected",true)}function o($){$.addClass(d.optionDisabledClass).removeAttr("selected").attr("disabled",true);d.hideWhenAdded&&
$.hide();b.browser.msie&&K.hide().show()}function q($){var fa=b("#"+$);if(fa){var Z=b("<a></a>").attr("href","#").addClass(d.removeClass).prepend(d.removeLabel).click(function(){var sa=b(this).parent("li").attr("rel"),za=void 0;if(za==undefined)za=true;b("#"+sa).removeAttr("selected");$item=R.children("li[rel="+sa+"]");s($item);var T=b("[rel="+sa+"]",d.removeWhenAdded?$selectRemoved:K);T.removeClass(d.optionDisabledClass).removeAttr("disabled");d.hideWhenAdded&&T.show();b.browser.msie&&K.hide().show();
za&&p($item,d.highlightRemovedLabel);w(sa,"drop");return false}),ha=b("<span></span>").addClass(d.listItemLabelClass).html(fa.html());Z=b("<li></li>").attr("rel",$).addClass(d.listItemClass).append(ha).append(Z).hide();if(!Q){if(fa.is(":selected"))return;fa.attr("selected",true)}if(d.addItemTarget=="top"&&!Q){R.prepend(Z);d.sortable&&A.prepend(fa)}else{R.append(Z);d.sortable&&A.append(fa)}x(Z);o(b("[rel="+$+"]",K));if(!Q){p(Z,d.highlightAddedLabel);k();d.sortable&&R.sortable("refresh")}}}function x($){d.animate&&
!Q?$.animate({opacity:"show",height:"show"},100,"swing",function(){$.animate({height:"+=2px"},50,"swing",function(){$.animate({height:"-=2px"},25,"swing")})}):$.show()}function s($){if(d.animate&&!Q){$prevItem=$.prev("li");$.animate({opacity:"hide",height:"hide"},100,"linear",function(){$prevItem.animate({height:"-=2px"},50,"swing",function(){$prevItem.animate({height:"+=2px"},100,"swing")});$.remove()})}else $.remove()}function p($,fa){if(d.highlight){K.next("#"+d.highlightClass+f).remove();var Z=
b("<span></span>").hide().addClass(d.highlightClass).attr("id",d.highlightClass+f).html(fa+$.children("."+d.listItemLabelClass).slice(0,1).text());K.after(Z);Z.fadeIn("fast",function(){setTimeout(function(){Z.fadeOut("slow")},50)})}}function w($,fa){ea=true;$option=b("#"+$);A.trigger("change",[{option:$option,value:$option.val(),id:$,item:R.children("[rel="+$+"]"),type:fa}])}for(var A=b(this),D,K,R,Q=false,ba=false,ea=false;b("#"+d.containerClass+f).size()>0;)f++;K=b("<select></select>").addClass(d.selectClass).attr("name",
d.selectClass+f).attr("id",d.selectClass+f);$selectRemoved=b("<select></select>");R=b("<"+d.listType+"></"+d.listType+">").addClass(d.listClass).attr("id",d.listClass+f);D=b("<div></div>").addClass(d.containerClass).attr("id",d.containerClass+f);c();K.change(function(){if(!(b.browser.msie&&b.browser.version<7&&!ba)){var $=b(this).children("option:selected").slice(0,1).attr("rel");if($){q($);ba=false;w($,"add")}}}).click(function(){ba=true});A.change(function(){if(ea)ea=false;else{K.empty();R.empty();
c();b.browser.opera&&R.hide().fadeIn("fast")}}).wrap(D).before(K).before(R);d.sortable&&g();b.browser.msie&&b.browser.version<8&&R.css("display","inline-block")})}})(jQuery);
(function(b){b.extend(b.fn,{validate:function(a){if(this.length){var d=b.data(this[0],"validator");if(d)return d;d=new b.validator(a,this[0]);b.data(this[0],"validator",d);if(d.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){d.cancelSubmit=true});d.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){d.submitButton=this});this.submit(function(f){function g(){if(d.settings.submitHandler){if(d.submitButton)var c=b("<input type='hidden'/>").attr("name",
d.submitButton.name).val(d.submitButton.value).appendTo(d.currentForm);d.settings.submitHandler.call(d,d.currentForm);d.submitButton&&c.remove();return false}return true}d.settings.debug&&f.preventDefault();if(d.cancelSubmit){d.cancelSubmit=false;return g()}if(d.form()){if(d.pendingRequest){d.formSubmitted=true;return false}return g()}else{d.focusInvalid();return false}})}return d}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(b(this[0]).is("form"))return this.validate().form();
else{var a=true,d=b(this[0].form).validate();this.each(function(){a&=d.element(this)});return a}},removeAttrs:function(a){var d={},f=this;b.each(a.split(/\s/),function(g,c){d[c]=f.attr(c);f.removeAttr(c)});return d},rules:function(a,d){var f=this[0];if(a){var g=b.data(f.form,"validator").settings,c=g.rules,h=b.validator.staticRules(f);switch(a){case "add":b.extend(h,b.validator.normalizeRule(d));c[f.name]=h;if(d.messages)g.messages[f.name]=b.extend(g.messages[f.name],d.messages);break;case "remove":if(!d){delete c[f.name];
return h}var k={};b.each(d.split(/\s/),function(o,q){k[q]=h[q];delete h[q]});return k}}f=b.validator.normalizeRules(b.extend({},b.validator.metadataRules(f),b.validator.classRules(f),b.validator.attributeRules(f),b.validator.staticRules(f)),f);if(f.required){g=f.required;delete f.required;f=b.extend({required:g},f)}return f}});b.extend(b.expr[":"],{blank:function(a){return!b.trim(""+a.value)},filled:function(a){return!!b.trim(""+a.value)},unchecked:function(a){return!a.checked}});b.validator=function(a,
d){this.settings=b.extend(true,{},b.validator.defaults,a);this.currentForm=d;this.init()};b.validator.format=function(a,d){if(arguments.length==1)return function(){var f=b.makeArray(arguments);f.unshift(a);return b.validator.format.apply(this,f)};if(arguments.length>2&&d.constructor!=Array)d=b.makeArray(arguments).slice(1);if(d.constructor!=Array)d=[d];b.each(d,function(f,g){a=a.replace(RegExp("\\{"+f+"\\}","g"),g)});return a};b.extend(b.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",
validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:b([]),errorLabelContainer:b([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)},
onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,d,f){b(a).addClass(d).removeClass(f)},unhighlight:function(a,d,f){b(a).removeClass(d).addClass(f)}},setDefaults:function(a){b.extend(b.validator.defaults,a)},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:b.validator.format("Please enter no more than {0} characters."),minlength:b.validator.format("Please enter at least {0} characters."),rangelength:b.validator.format("Please enter a value between {0} and {1} characters long."),
range:b.validator.format("Please enter a value between {0} and {1}."),max:b.validator.format("Please enter a value less than or equal to {0}."),min:b.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(g){var c=b.data(this[0].form,"validator");g="on"+g.type.replace(/^validate/,"");c.settings[g]&&c.settings[g].call(c,this[0])}this.labelContainer=b(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&
this.labelContainer||b(this.currentForm);this.containers=b(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var d=this.groups={};b.each(this.settings.groups,function(g,c){b.each(c.split(/\s/),function(h,k){d[k]=g})});var f=this.settings.rules;b.each(f,function(g,c){f[g]=b.validator.normalizeRule(c)});b(this.currentForm).validateDelegate(":text, :password, :file, select, textarea",
"focusin focusout keyup",a).validateDelegate(":radio, :checkbox, select, option","click",a);this.settings.invalidHandler&&b(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();b.extend(this.submitted,this.errorMap);this.invalid=b.extend({},this.errorMap);this.valid()||b(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,d=this.currentElements=this.elements();d[a];a++)this.check(d[a]);
return this.valid()},element:function(a){this.lastElement=a=this.clean(a);this.prepareElement(a);this.currentElements=b(a);var d=this.check(a);if(d)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return d},showErrors:function(a){if(a){b.extend(this.errorMap,a);this.errorList=[];for(var d in a)this.errorList.push({message:a[d],element:this.findByName(d)[0]});this.successList=b.grep(this.successList,
function(f){return!(f.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){b.fn.resetForm&&b(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var d=0,f;for(f in a)d++;return d},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{b(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&b.grep(this.errorList,function(d){return d.element.name==a.name}).length==1&&a},elements:function(){var a=this,d={};return b([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&
a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in d||!a.objectLength(b(this).rules()))return false;return d[this.name]=true})},clean:function(a){return b(a)[0]},errors:function(){return b(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=b([]);this.toHide=b([]);this.currentElements=b([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},
prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];var d=b(a).rules(),f=false,g;for(g in d){var c={method:g,parameters:d[g]};try{var h=b.validator.methods[g].call(this,a.value.replace(/\r/g,""),a,c.parameters);if(h=="dependency-mismatch")f=true;else{f=false;if(h=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!h){this.formatAndAdd(a,c);return false}}}catch(k){this.settings.debug&&
window.console&&console.log("exception occured when checking element "+a.id+", check the '"+c.method+"' method",k);throw k;}}if(!f){this.objectLength(d)&&this.successList.push(a);return true}},customMetaMessage:function(a,d){if(b.metadata){var f=this.settings.meta?b(a).metadata()[this.settings.meta]:b(a).metadata();return f&&f.messages&&f.messages[d]}},customMessage:function(a,d){var f=this.settings.messages[a];return f&&(f.constructor==String?f:f[d])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==
undefined)return arguments[a]},defaultMessage:function(a,d){return this.findDefined(this.customMessage(a.name,d),this.customMetaMessage(a,d),!this.settings.ignoreTitle&&a.title||undefined,b.validator.messages[d],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,d){var f=this.defaultMessage(a,d.method),g=/\$?\{(\d+)\}/g;if(typeof f=="function")f=f.call(this,d.parameters,a);else if(g.test(f))f=jQuery.format(f.replace(g,"{$1}"),d.parameters);this.errorList.push({message:f,
element:a});this.errorMap[a.name]=f;this.submitted[a.name]=f},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var d=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,d.element,this.settings.errorClass,this.settings.validClass);this.showLabel(d.element,d.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=
0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(d=this.validElements();d[a];a++)this.settings.unhighlight.call(this,d[a],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 b(this.errorList).map(function(){return this.element})},showLabel:function(a,
d){var f=this.errorsFor(a);if(f.length){f.removeClass().addClass(this.settings.errorClass);f.attr("generated")&&f.html(d)}else{f=b("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper)f=f.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(f).length||(this.settings.errorPlacement?this.settings.errorPlacement(f,b(a)):f.insertAfter(a))}if(!d&&this.settings.success){f.text("");
typeof this.settings.success=="string"?f.addClass(this.settings.success):this.settings.success(f)}this.toShow=this.toShow.add(f)},errorsFor:function(a){var d=this.idOrName(a);return this.errors().filter(function(){return b(this).attr("for")==d})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var d=this.currentForm;return b(document.getElementsByName(a)).map(function(f,g){return g.form==
d&&g.name==a&&g||null})},getLength:function(a,d){switch(d.nodeName.toLowerCase()){case "select":return b("option:selected",d).length;case "input":if(this.checkable(d))return this.findByName(d.name).filter(":checked").length}return a.length},depend:function(a,d){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,d):true},dependTypes:{"boolean":function(a){return a},string:function(a,d){return!!b(a,d.form).length},"function":function(a,d){return a(d)}},optional:function(a){return!b.validator.methods.required.call(this,
b.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,d){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(d&&this.pendingRequest==0&&this.formSubmitted&&this.form()){b(this.currentForm).submit();this.formSubmitted=false}else if(!d&&this.pendingRequest==0&&this.formSubmitted){b(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=
false}},previousValue:function(a){return b.data(a,"previousValue")||b.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"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(a,d){a.constructor==String?this.classRuleSettings[a]=d:b.extend(this.classRuleSettings,
a)},classRules:function(a){var d={};(a=b(a).attr("class"))&&b.each(a.split(" "),function(){this in b.validator.classRuleSettings&&b.extend(d,b.validator.classRuleSettings[this])});return d},attributeRules:function(a){var d={};a=b(a);for(var f in b.validator.methods){var g=a.attr(f);if(g)d[f]=g}d.maxlength&&/-1|2147483647|524288/.test(d.maxlength)&&delete d.maxlength;return d},metadataRules:function(a){if(!b.metadata)return{};var d=b.data(a.form,"validator").settings.meta;return d?b(a).metadata()[d]:
b(a).metadata()},staticRules:function(a){var d={},f=b.data(a.form,"validator");if(f.settings.rules)d=b.validator.normalizeRule(f.settings.rules[a.name])||{};return d},normalizeRules:function(a,d){b.each(a,function(f,g){if(g===false)delete a[f];else if(g.param||g.depends){var c=true;switch(typeof g.depends){case "string":c=!!b(g.depends,d.form).length;break;case "function":c=g.depends.call(d,d)}if(c)a[f]=g.param!==undefined?g.param:true;else delete a[f]}});b.each(a,function(f,g){a[f]=b.isFunction(g)?
g(d):g});b.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});b.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(b.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var d=
{};b.each(a.split(/\s/),function(){d[this]=true});a=d}return a},addMethod:function(a,d,f){b.validator.methods[a]=d;b.validator.messages[a]=f!=undefined?f:b.validator.messages[a];d.length<3&&b.validator.addClassRules(a,b.validator.normalizeRule(a))},methods:{required:function(a,d,f){if(!this.depend(f,d))return"dependency-mismatch";switch(d.nodeName.toLowerCase()){case "select":return(a=b(d).val())&&a.length>0;case "input":if(this.checkable(d))return this.getLength(a,d)>0;default:return b.trim(a).length>
0}},remote:function(a,d,f){if(this.optional(d))return"dependency-mismatch";var g=this.previousValue(d);this.settings.messages[d.name]||(this.settings.messages[d.name]={});g.originalMessage=this.settings.messages[d.name].remote;this.settings.messages[d.name].remote=g.message;f=typeof f=="string"&&{url:f}||f;if(g.old!==a){g.old=a;var c=this;this.startRequest(d);var h={};h[d.name]=a;b.ajax(b.extend(true,{url:f,mode:"abort",port:"validate"+d.name,dataType:"json",data:h,success:function(k){c.settings.messages[d.name].remote=
g.originalMessage;var o=k===true;if(o){var q=c.formSubmitted;c.prepareElement(d);c.formSubmitted=q;c.successList.push(d);c.showErrors()}else{q={};k=g.message=k||c.defaultMessage(d,"remote");q[d.name]=b.isFunction(k)?k(a):k;c.showErrors(q)}g.valid=o;c.stopRequest(d,o)}},f));return"pending"}else if(this.pending[d.name])return"pending";return g.valid},minlength:function(a,d,f){return this.optional(d)||this.getLength(b.trim(a),d)>=f},maxlength:function(a,d,f){return this.optional(d)||this.getLength(b.trim(a),
d)<=f},rangelength:function(a,d,f){a=this.getLength(b.trim(a),d);return this.optional(d)||a>=f[0]&&a<=f[1]},min:function(a,d,f){return this.optional(d)||a>=f},max:function(a,d,f){return this.optional(d)||a<=f},range:function(a,d,f){return this.optional(d)||a>=f[0]&&a<=f[1]},email:function(a,d){return this.optional(d)||/^((([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(a)},
url:function(a,d){return this.optional(d)||/^(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(a)},
date:function(a,d){return this.optional(d)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,d){return this.optional(d)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,d){return this.optional(d)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,d){return this.optional(d)||/^\d+$/.test(a)},creditcard:function(a,d){if(this.optional(d))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var f=0,g=0,c=false;a=a.replace(/\D/g,"");for(var h=a.length-1;h>=
0;h--){g=a.charAt(h);g=parseInt(g,10);if(c)if((g*=2)>9)g-=9;f+=g;c=!c}return f%10==0},accept:function(a,d,f){f=typeof f=="string"?f.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(d)||a.match(RegExp(".("+f+")$","i"))},equalTo:function(a,d,f){f=b(f).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){b(d).valid()});return a==f.val()}}});b.format=b.validator.format})(jQuery);
(function(b){var a=b.ajax,d={};b.ajax=function(f){f=b.extend(f,b.extend({},b.ajaxSettings,f));var g=f.port;if(f.mode=="abort"){d[g]&&d[g].abort();return d[g]=a.apply(this,arguments)}return a.apply(this,arguments)}})(jQuery);
(function(b){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&b.each({focus:"focusin",blur:"focusout"},function(a,d){function f(g){g=b.event.fix(g);g.type=d;return b.event.handle.call(this,g)}b.event.special[d]={setup:function(){this.addEventListener(a,f,true)},teardown:function(){this.removeEventListener(a,f,true)},handler:function(g){arguments[0]=b.event.fix(g);arguments[0].type=d;return b.event.handle.apply(this,arguments)}}});b.extend(b.fn,{validateDelegate:function(a,
d,f){return this.bind(d,function(g){var c=b(g.target);if(c.is(a))return f.apply(c,arguments)})}})})(jQuery);
(function(){function b(a){return a.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[0-9.(),;:!?%#$'"_+=\/-]*/g,"")}jQuery.validator.addMethod("maxWords",function(a,d,f){return this.optional(d)||b(a).match(/\b\w+\b/g).length<f},jQuery.validator.format("Please enter {0} words or less."));jQuery.validator.addMethod("minWords",function(a,d,f){return this.optional(d)||b(a).match(/\b\w+\b/g).length>=f},jQuery.validator.format("Please enter at least {0} words."));jQuery.validator.addMethod("rangeWords",
function(a,d,f){return this.optional(d)||b(a).match(/\b\w+\b/g).length>=f[0]&&a.match(/bw+b/g).length<f[1]},jQuery.validator.format("Please enter between {0} and {1} words."))})();jQuery.validator.addMethod("letterswithbasicpunc",function(b,a){return this.optional(a)||/^[a-z-.,()'\"\s]+$/i.test(b)},"Letters or punctuation only please");jQuery.validator.addMethod("alphanumeric",function(b,a){return this.optional(a)||/^\w+$/i.test(b)},"Letters, numbers, spaces or underscores only please");
jQuery.validator.addMethod("lettersonly",function(b,a){return this.optional(a)||/^[a-z]+$/i.test(b)},"Letters only please");jQuery.validator.addMethod("nowhitespace",function(b,a){return this.optional(a)||/^\S+$/i.test(b)},"No white space please");jQuery.validator.addMethod("ziprange",function(b,a){return this.optional(a)||/^90[2-5]\d\{2}-\d{4}$/.test(b)},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx");
jQuery.validator.addMethod("integer",function(b,a){return this.optional(a)||/^-?\d+$/.test(b)},"A positive or negative non-decimal number please");
jQuery.validator.addMethod("vinUS",function(b){if(b.length!=17)return false;var a,d,f,g,c,h=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],k=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],o=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],q=0;for(a=0;a<17;a++){g=o[a];f=b.slice(a,a+1);if(a==8)c=f;if(isNaN(f))for(d=0;d<h.length;d++){if(f.toUpperCase()===h[d]){f=k[d];f*=g;if(isNaN(c)&&d==8)c=h[d];break}}else f*=g;q+=f}b=q%11;if(b==10)b="X";if(b==c)return true;return false},
"The specified vehicle identification number (VIN) is invalid.");jQuery.validator.addMethod("dateITA",function(b,a){var d=false;if(/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(b)){var f=b.split("/");d=parseInt(f[0],10);var g=parseInt(f[1],10);f=parseInt(f[2],10);var c=new Date(f,g-1,d);d=c.getFullYear()==f&&c.getMonth()==g-1&&c.getDate()==d?true:false}else d=false;return this.optional(a)||d},"Please enter a correct date");
jQuery.validator.addMethod("dateNL",function(b,a){return this.optional(a)||/^\d\d?[\.\/-]\d\d?[\.\/-]\d\d\d?\d?$/.test(b)},"Vul hier een geldige datum in.");jQuery.validator.addMethod("time",function(b,a){return this.optional(a)||/^([01][0-9])|(2[0123]):([0-5])([0-9])$/.test(b)},"Please enter a valid time, between 00:00 and 23:59");
jQuery.validator.addMethod("phoneUS",function(b,a){b=b.replace(/\s+/g,"");return this.optional(a)||b.length>9&&b.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number");jQuery.validator.addMethod("phoneUK",function(b,a){return this.optional(a)||b.length>9&&b.match(/^(\(?(0|\+44)[1-9]{1}\d{1,4}?\)?\s?\d{3,4}\s?\d{3,4})$/)},"Please specify a valid phone number");
jQuery.validator.addMethod("mobileUK",function(b,a){return this.optional(a)||b.length>9&&b.match(/^((0|\+44)7(5|6|7|8|9){1}\d{2}\s?\d{6})$/)},"Please specify a valid mobile number");jQuery.validator.addMethod("strippedminlength",function(b,a,d){return jQuery(b).text().length>=d},jQuery.validator.format("Please enter at least {0} characters"));
jQuery.validator.addMethod("email2",function(b,a){return this.optional(a)||/^((([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(b)},jQuery.validator.messages.email);
jQuery.validator.addMethod("url2",function(b,a){return this.optional(a)||/^(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(b)},
jQuery.validator.messages.url);
jQuery.validator.addMethod("creditcardtypes",function(b,a,d){if(/[^0-9-]+/.test(b))return false;b=b.replace(/\D/g,"");a=0;if(d.mastercard)a|=1;if(d.visa)a|=2;if(d.amex)a|=4;if(d.dinersclub)a|=8;if(d.enroute)a|=16;if(d.discover)a|=32;if(d.jcb)a|=64;if(d.unknown)a|=128;if(d.all)a=255;if(a&1&&/^(51|52|53|54|55)/.test(b))return b.length==16;if(a&2&&/^(4)/.test(b))return b.length==16;if(a&4&&/^(34|37)/.test(b))return b.length==15;if(a&8&&/^(300|301|302|303|304|305|36|38)/.test(b))return b.length==14;if(a&
16&&/^(2014|2149)/.test(b))return b.length==15;if(a&32&&/^(6011)/.test(b))return b.length==16;if(a&64&&/^(3)/.test(b))return b.length==16;if(a&64&&/^(2131|1800)/.test(b))return b.length==15;if(a&128)return true;return false},"Please enter a valid credit card number.");
jQuery.validator.addMethod("ipv4",function(b,a){return this.optional(a)||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/i.test(b)},"Please enter a valid IP v4 address.");
jQuery.validator.addMethod("ipv6",function(b,a){return this.optional(a)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(b)},"Please enter a valid IP v6 address.");
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,a,d,f,g){return jQuery.easing[jQuery.easing.def](b,a,d,f,g)},easeInQuad:function(b,a,d,f,g){return f*(a/=g)*a+d},easeOutQuad:function(b,a,d,f,g){return-f*(a/=g)*(a-2)+d},easeInOutQuad:function(b,a,d,f,g){if((a/=g/2)<1)return f/2*a*a+d;return-f/2*(--a*(a-2)-1)+d},easeInCubic:function(b,a,d,f,g){return f*(a/=g)*a*a+d},easeOutCubic:function(b,a,d,f,g){return f*((a=a/g-1)*a*a+1)+d},easeInOutCubic:function(b,a,d,f,g){if((a/=g/2)<1)return f/
2*a*a*a+d;return f/2*((a-=2)*a*a+2)+d},easeInQuart:function(b,a,d,f,g){return f*(a/=g)*a*a*a+d},easeOutQuart:function(b,a,d,f,g){return-f*((a=a/g-1)*a*a*a-1)+d},easeInOutQuart:function(b,a,d,f,g){if((a/=g/2)<1)return f/2*a*a*a*a+d;return-f/2*((a-=2)*a*a*a-2)+d},easeInQuint:function(b,a,d,f,g){return f*(a/=g)*a*a*a*a+d},easeOutQuint:function(b,a,d,f,g){return f*((a=a/g-1)*a*a*a*a+1)+d},easeInOutQuint:function(b,a,d,f,g){if((a/=g/2)<1)return f/2*a*a*a*a*a+d;return f/2*((a-=2)*a*a*a*a+2)+d},easeInSine:function(b,
a,d,f,g){return-f*Math.cos(a/g*(Math.PI/2))+f+d},easeOutSine:function(b,a,d,f,g){return f*Math.sin(a/g*(Math.PI/2))+d},easeInOutSine:function(b,a,d,f,g){return-f/2*(Math.cos(Math.PI*a/g)-1)+d},easeInExpo:function(b,a,d,f,g){return a==0?d:f*Math.pow(2,10*(a/g-1))+d},easeOutExpo:function(b,a,d,f,g){return a==g?d+f:f*(-Math.pow(2,-10*a/g)+1)+d},easeInOutExpo:function(b,a,d,f,g){if(a==0)return d;if(a==g)return d+f;if((a/=g/2)<1)return f/2*Math.pow(2,10*(a-1))+d;return f/2*(-Math.pow(2,-10*--a)+2)+d},
easeInCirc:function(b,a,d,f,g){return-f*(Math.sqrt(1-(a/=g)*a)-1)+d},easeOutCirc:function(b,a,d,f,g){return f*Math.sqrt(1-(a=a/g-1)*a)+d},easeInOutCirc:function(b,a,d,f,g){if((a/=g/2)<1)return-f/2*(Math.sqrt(1-a*a)-1)+d;return f/2*(Math.sqrt(1-(a-=2)*a)+1)+d},easeInElastic:function(b,a,d,f,g){b=1.70158;var c=0,h=f;if(a==0)return d;if((a/=g)==1)return d+f;c||(c=g*0.3);if(h<Math.abs(f)){h=f;b=c/4}else b=c/(2*Math.PI)*Math.asin(f/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*g-b)*2*Math.PI/c))+d},easeOutElastic:function(b,
a,d,f,g){b=1.70158;var c=0,h=f;if(a==0)return d;if((a/=g)==1)return d+f;c||(c=g*0.3);if(h<Math.abs(f)){h=f;b=c/4}else b=c/(2*Math.PI)*Math.asin(f/h);return h*Math.pow(2,-10*a)*Math.sin((a*g-b)*2*Math.PI/c)+f+d},easeInOutElastic:function(b,a,d,f,g){b=1.70158;var c=0,h=f;if(a==0)return d;if((a/=g/2)==2)return d+f;c||(c=g*0.3*1.5);if(h<Math.abs(f)){h=f;b=c/4}else b=c/(2*Math.PI)*Math.asin(f/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*g-b)*2*Math.PI/c)+d;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*
g-b)*2*Math.PI/c)*0.5+f+d},easeInBack:function(b,a,d,f,g,c){if(c==undefined)c=1.70158;return f*(a/=g)*a*((c+1)*a-c)+d},easeOutBack:function(b,a,d,f,g,c){if(c==undefined)c=1.70158;return f*((a=a/g-1)*a*((c+1)*a+c)+1)+d},easeInOutBack:function(b,a,d,f,g,c){if(c==undefined)c=1.70158;if((a/=g/2)<1)return f/2*a*a*(((c*=1.525)+1)*a-c)+d;return f/2*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)+d},easeInBounce:function(b,a,d,f,g){return f-jQuery.easing.easeOutBounce(b,g-a,0,f,g)+d},easeOutBounce:function(b,a,d,f,g){return(a/=
g)<1/2.75?f*7.5625*a*a+d:a<2/2.75?f*(7.5625*(a-=1.5/2.75)*a+0.75)+d:a<2.5/2.75?f*(7.5625*(a-=2.25/2.75)*a+0.9375)+d:f*(7.5625*(a-=2.625/2.75)*a+0.984375)+d},easeInOutBounce:function(b,a,d,f,g){if(a<g/2)return jQuery.easing.easeInBounce(b,a*2,0,f,g)*0.5+d;return jQuery.easing.easeOutBounce(b,a*2-g,0,f,g)*0.5+f*0.5+d}});
var swfobject=function(){function b(){if(!ra){try{var F=Z.getElementsByTagName("body")[0].appendChild(Z.createElement("span"));F.parentNode.removeChild(F)}catch(N){return}ra=true;F=za.length;for(var V=0;V<F;V++)za[V]()}}function a(F){if(ra)F();else za[za.length]=F}function d(F){if(typeof fa.addEventListener!=Q)fa.addEventListener("load",F,false);else if(typeof Z.addEventListener!=Q)Z.addEventListener("load",F,false);else if(typeof fa.attachEvent!=Q)w(fa,"onload",F);else if(typeof fa.onload=="function"){var N=
fa.onload;fa.onload=function(){N();F()}}else fa.onload=F}function f(){var F=Z.getElementsByTagName("body")[0],N=Z.createElement(ba);N.setAttribute("type",ea);var V=F.appendChild(N);if(V){var ca=0;(function(){if(typeof V.GetVariable!=Q){var da=V.GetVariable("$version");if(da){da=da.split(" ")[1].split(",");S.pv=[parseInt(da[0],10),parseInt(da[1],10),parseInt(da[2],10)]}}else if(ca<10){ca++;setTimeout(arguments.callee,10);return}F.removeChild(N);V=null;g()})()}else g()}function g(){var F=T.length;if(F>
0)for(var N=0;N<F;N++){var V=T[N].id,ca=T[N].callbackFn,da={success:false,id:V};if(S.pv[0]>0){var na=p(V);if(na)if(A(T[N].swfVersion)&&!(S.wk&&S.wk<312)){K(V,true);if(ca){da.success=true;da.ref=c(V);ca(da)}}else if(T[N].expressInstall&&h()){da={};da.data=T[N].expressInstall;da.width=na.getAttribute("width")||"0";da.height=na.getAttribute("height")||"0";if(na.getAttribute("class"))da.styleclass=na.getAttribute("class");if(na.getAttribute("align"))da.align=na.getAttribute("align");var ka={};na=na.getElementsByTagName("param");
for(var ta=na.length,ua=0;ua<ta;ua++)if(na[ua].getAttribute("name").toLowerCase()!="movie")ka[na[ua].getAttribute("name")]=na[ua].getAttribute("value");k(da,ka,V,ca)}else{o(na);ca&&ca(da)}}else{K(V,true);if(ca){if((V=c(V))&&typeof V.SetVariable!=Q){da.success=true;da.ref=V}ca(da)}}}}function c(F){var N=null;if((F=p(F))&&F.nodeName=="OBJECT")if(typeof F.SetVariable!=Q)N=F;else if(F=F.getElementsByTagName(ba)[0])N=F;return N}function h(){return!Da&&A("6.0.65")&&(S.win||S.mac)&&!(S.wk&&S.wk<312)}function k(F,
N,V,ca){Da=true;Fa=ca||null;pa={success:false,id:V};var da=p(V);if(da){if(da.nodeName=="OBJECT"){j=q(da);Ca=null}else{j=da;Ca=V}F.id=$;if(typeof F.width==Q||!/%$/.test(F.width)&&parseInt(F.width,10)<310)F.width="310";if(typeof F.height==Q||!/%$/.test(F.height)&&parseInt(F.height,10)<137)F.height="137";Z.title=Z.title.slice(0,47)+" - Flash Player Installation";ca=S.ie&&S.win?"ActiveX":"PlugIn";ca="MMredirectURL="+encodeURI(fa.location).toString().replace(/&/g,"%26")+"&MMplayerType="+ca+"&MMdoctitle="+
Z.title;if(typeof N.flashvars!=Q)N.flashvars+="&"+ca;else N.flashvars=ca;if(S.ie&&S.win&&da.readyState!=4){ca=Z.createElement("div");V+="SWFObjectNew";ca.setAttribute("id",V);da.parentNode.insertBefore(ca,da);da.style.display="none";(function(){da.readyState==4?da.parentNode.removeChild(da):setTimeout(arguments.callee,10)})()}x(F,N,V)}}function o(F){if(S.ie&&S.win&&F.readyState!=4){var N=Z.createElement("div");F.parentNode.insertBefore(N,F);N.parentNode.replaceChild(q(F),N);F.style.display="none";
(function(){F.readyState==4?F.parentNode.removeChild(F):setTimeout(arguments.callee,10)})()}else F.parentNode.replaceChild(q(F),F)}function q(F){var N=Z.createElement("div");if(S.win&&S.ie)N.innerHTML=F.innerHTML;else if(F=F.getElementsByTagName(ba)[0])if(F=F.childNodes)for(var V=F.length,ca=0;ca<V;ca++)!(F[ca].nodeType==1&&F[ca].nodeName=="PARAM")&&F[ca].nodeType!=8&&N.appendChild(F[ca].cloneNode(true));return N}function x(F,N,V){var ca,da=p(V);if(S.wk&&S.wk<312)return ca;if(da){if(typeof F.id==
Q)F.id=V;if(S.ie&&S.win){var na="",ka;for(ka in F)if(F[ka]!=Object.prototype[ka])if(ka.toLowerCase()=="data")N.movie=F[ka];else if(ka.toLowerCase()=="styleclass")na+=' class="'+F[ka]+'"';else if(ka.toLowerCase()!="classid")na+=" "+ka+'="'+F[ka]+'"';ka="";for(var ta in N)if(N[ta]!=Object.prototype[ta])ka+='<param name="'+ta+'" value="'+N[ta]+'" />';da.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+na+">"+ka+"</object>";Ha[Ha.length]=F.id;ca=p(F.id)}else{ta=Z.createElement(ba);
ta.setAttribute("type",ea);for(var ua in F)if(F[ua]!=Object.prototype[ua])if(ua.toLowerCase()=="styleclass")ta.setAttribute("class",F[ua]);else ua.toLowerCase()!="classid"&&ta.setAttribute(ua,F[ua]);for(na in N)if(N[na]!=Object.prototype[na]&&na.toLowerCase()!="movie"){F=ta;ka=na;ua=N[na];V=Z.createElement("param");V.setAttribute("name",ka);V.setAttribute("value",ua);F.appendChild(V)}da.parentNode.replaceChild(ta,da);ca=ta}}return ca}function s(F){var N=p(F);if(N&&N.nodeName=="OBJECT")if(S.ie&&S.win){N.style.display=
"none";(function(){if(N.readyState==4){var V=p(F);if(V){for(var ca in V)if(typeof V[ca]=="function")V[ca]=null;V.parentNode.removeChild(V)}}else setTimeout(arguments.callee,10)})()}else N.parentNode.removeChild(N)}function p(F){var N=null;try{N=Z.getElementById(F)}catch(V){}return N}function w(F,N,V){F.attachEvent(N,V);Ea[Ea.length]=[F,N,V]}function A(F){var N=S.pv;F=F.split(".");F[0]=parseInt(F[0],10);F[1]=parseInt(F[1],10)||0;F[2]=parseInt(F[2],10)||0;return N[0]>F[0]||N[0]==F[0]&&N[1]>F[1]||N[0]==
F[0]&&N[1]==F[1]&&N[2]>=F[2]?true:false}function D(F,N,V,ca){if(!(S.ie&&S.mac)){var da=Z.getElementsByTagName("head")[0];if(da){V=V&&typeof V=="string"?V:"screen";if(ca)J=B=null;if(!B||J!=V){ca=Z.createElement("style");ca.setAttribute("type","text/css");ca.setAttribute("media",V);B=da.appendChild(ca);if(S.ie&&S.win&&typeof Z.styleSheets!=Q&&Z.styleSheets.length>0)B=Z.styleSheets[Z.styleSheets.length-1];J=V}if(S.ie&&S.win)B&&typeof B.addRule==ba&&B.addRule(F,N);else B&&typeof Z.createTextNode!=Q&&
B.appendChild(Z.createTextNode(F+" {"+N+"}"))}}}function K(F,N){if(Y){var V=N?"visible":"hidden";if(ra&&p(F))p(F).style.visibility=V;else D("#"+F,"visibility:"+V)}}function R(F){return/[\\\"<>\.;]/.exec(F)!=null&&typeof encodeURIComponent!=Q?encodeURIComponent(F):F}var Q="undefined",ba="object",ea="application/x-shockwave-flash",$="SWFObjectExprInst",fa=window,Z=document,ha=navigator,sa=false,za=[function(){sa?f():g()}],T=[],Ha=[],Ea=[],j,Ca,Fa,pa,ra=false,Da=false,B,J,Y=true,S=function(){var F=typeof Z.getElementById!=
Q&&typeof Z.getElementsByTagName!=Q&&typeof Z.createElement!=Q,N=ha.userAgent.toLowerCase(),V=ha.platform.toLowerCase(),ca=V?/win/.test(V):/win/.test(N);V=V?/mac/.test(V):/mac/.test(N);N=/webkit/.test(N)?parseFloat(N.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var da=!+"\u000b1",na=[0,0,0],ka=null;if(typeof ha.plugins!=Q&&typeof ha.plugins["Shockwave Flash"]==ba){if((ka=ha.plugins["Shockwave Flash"].description)&&!(typeof ha.mimeTypes!=Q&&ha.mimeTypes[ea]&&!ha.mimeTypes[ea].enabledPlugin)){sa=
true;da=false;ka=ka.replace(/^.*\s+(\S+\s+\S+$)/,"$1");na[0]=parseInt(ka.replace(/^(.*)\..*$/,"$1"),10);na[1]=parseInt(ka.replace(/^.*\.(.*)\s.*$/,"$1"),10);na[2]=/[a-zA-Z]/.test(ka)?parseInt(ka.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof fa.ActiveXObject!=Q)try{var ta=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(ta)if(ka=ta.GetVariable("$version")){da=true;ka=ka.split(" ")[1].split(",");na=[parseInt(ka[0],10),parseInt(ka[1],10),parseInt(ka[2],10)]}}catch(ua){}return{w3:F,pv:na,
wk:N,ie:da,win:ca,mac:V}}();(function(){if(S.w3){if(typeof Z.readyState!=Q&&Z.readyState=="complete"||typeof Z.readyState==Q&&(Z.getElementsByTagName("body")[0]||Z.body))b();if(!ra){typeof Z.addEventListener!=Q&&Z.addEventListener("DOMContentLoaded",b,false);if(S.ie&&S.win){Z.attachEvent("onreadystatechange",function(){if(Z.readyState=="complete"){Z.detachEvent("onreadystatechange",arguments.callee);b()}});fa==top&&function(){if(!ra){try{Z.documentElement.doScroll("left")}catch(F){setTimeout(arguments.callee,
0);return}b()}}()}S.wk&&function(){ra||(/loaded|complete/.test(Z.readyState)?b():setTimeout(arguments.callee,0))}();d(b)}}})();(function(){S.ie&&S.win&&window.attachEvent("onunload",function(){for(var F=Ea.length,N=0;N<F;N++)Ea[N][0].detachEvent(Ea[N][1],Ea[N][2]);F=Ha.length;for(N=0;N<F;N++)s(Ha[N]);for(var V in S)S[V]=null;S=null;for(var ca in swfobject)swfobject[ca]=null;swfobject=null})})();return{registerObject:function(F,N,V,ca){if(S.w3&&F&&N){var da={};da.id=F;da.swfVersion=N;da.expressInstall=
V;da.callbackFn=ca;T[T.length]=da;K(F,false)}else ca&&ca({success:false,id:F})},getObjectById:function(F){if(S.w3)return c(F)},embedSWF:function(F,N,V,ca,da,na,ka,ta,ua,Sa){var Za={success:false,id:N};if(S.w3&&!(S.wk&&S.wk<312)&&F&&N&&V&&ca&&da){K(N,false);a(function(){V+="";ca+="";var Ka={};if(ua&&typeof ua===ba)for(var Ja in ua)Ka[Ja]=ua[Ja];Ka.data=F;Ka.width=V;Ka.height=ca;Ja={};if(ta&&typeof ta===ba)for(var Na in ta)Ja[Na]=ta[Na];if(ka&&typeof ka===ba)for(var Ta in ka)if(typeof Ja.flashvars!=
Q)Ja.flashvars+="&"+Ta+"="+ka[Ta];else Ja.flashvars=Ta+"="+ka[Ta];if(A(da)){Na=x(Ka,Ja,N);Ka.id==N&&K(N,true);Za.success=true;Za.ref=Na}else if(na&&h()){Ka.data=na;k(Ka,Ja,N,Sa);return}else K(N,true);Sa&&Sa(Za)})}else Sa&&Sa(Za)},switchOffAutoHideShow:function(){Y=false},ua:S,getFlashPlayerVersion:function(){return{major:S.pv[0],minor:S.pv[1],release:S.pv[2]}},hasFlashPlayerVersion:A,createSWF:function(F,N,V){if(S.w3)return x(F,N,V)},showExpressInstall:function(F,N,V,ca){S.w3&&h()&&k(F,N,V,ca)},removeSWF:function(F){S.w3&&
s(F)},createCSS:function(F,N,V,ca){S.w3&&D(F,N,V,ca)},addDomLoadEvent:a,addLoadEvent:d,getQueryParamValue:function(F){var N=Z.location.search||Z.location.hash;if(N){if(/\?/.test(N))N=N.split("?")[1];if(F==null)return R(N);N=N.split("&");for(var V=0;V<N.length;V++)if(N[V].substring(0,N[V].indexOf("="))==F)return R(N[V].substring(N[V].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Da){var F=p($);if(F&&j){F.parentNode.replaceChild(j,F);if(Ca){K(Ca,true);if(S.ie&&S.win)j.style.display=
"block"}Fa&&Fa(pa)}Da=false}}}}();
(function(b){var a=function(){var d=65,f={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:true,flat:false},g=function(B,J){var Y=pa(B);b(J).data("colorpicker").fields.eq(1).val(Y.r).end().eq(2).val(Y.g).end().eq(3).val(Y.b).end()},c=function(B,J){b(J).data("colorpicker").fields.eq(4).val(B.h).end().eq(5).val(B.s).end().eq(6).val(B.b).end()},h=function(B,J){b(J).data("colorpicker").fields.eq(0).val(ra(pa(B))).end()},k=
function(B,J){b(J).data("colorpicker").selector.css("backgroundColor","#"+ra(pa({h:B.h,s:100,b:100})));b(J).data("colorpicker").selectorIndic.css({left:parseInt(150*B.s/100,10),top:parseInt(150*(100-B.b)/100,10)})},o=function(B,J){b(J).data("colorpicker").hue.css("top",parseInt(150-150*B.h/360,10))},q=function(B,J){b(J).data("colorpicker").currentColor.css("backgroundColor","#"+ra(pa(B)))},x=function(B,J){b(J).data("colorpicker").newColor.css("backgroundColor","#"+ra(pa(B)))},s=function(B){B=B.charCode||
B.keyCode||-1;if(B>d&&B<=90||B==32)return false;b(this).parent().parent().data("colorpicker").livePreview===true&&p.apply(this)},p=function(B){var J=b(this).parent().parent(),Y;if(this.parentNode.className.indexOf("_hex")>0){Y=J.data("colorpicker");var S=this.value,F=6-S.length;if(F>0){for(var N=[],V=0;V<F;V++)N.push("0");N.push(S);S=N.join("")}S=Fa(Ca(S));Y.color=Y=S}else if(this.parentNode.className.indexOf("_hsb")>0)J.data("colorpicker").color=Y=j({h:parseInt(J.data("colorpicker").fields.eq(4).val(),
10),s:parseInt(J.data("colorpicker").fields.eq(5).val(),10),b:parseInt(J.data("colorpicker").fields.eq(6).val(),10)});else{Y=J.data("colorpicker");S={r:parseInt(J.data("colorpicker").fields.eq(1).val(),10),g:parseInt(J.data("colorpicker").fields.eq(2).val(),10),b:parseInt(J.data("colorpicker").fields.eq(3).val(),10)};Y.color=Y=Fa({r:Math.min(255,Math.max(0,S.r)),g:Math.min(255,Math.max(0,S.g)),b:Math.min(255,Math.max(0,S.b))})}if(B){g(Y,J.get(0));h(Y,J.get(0));c(Y,J.get(0))}k(Y,J.get(0));o(Y,J.get(0));
x(Y,J.get(0));J.data("colorpicker").onChange.apply(J,[Y,ra(pa(Y)),pa(Y)])},w=function(){b(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")},A=function(){d=this.parentNode.className.indexOf("_hex")>0?70:65;b(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus");b(this).parent().addClass("colorpicker_focus")},D=function(B){var J=b(this).parent().find("input").focus();B={el:b(this).parent().addClass("colorpicker_slider"),
max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:B.pageY,field:J,val:parseInt(J.val(),10),preview:b(this).parent().parent().data("colorpicker").livePreview};b(document).bind("mouseup",B,R);b(document).bind("mousemove",B,K)},K=function(B){B.data.field.val(Math.max(0,Math.min(B.data.max,parseInt(B.data.val+B.pageY-B.data.y,10))));B.data.preview&&p.apply(B.data.field.get(0),[true]);return false},R=function(B){p.apply(B.data.field.get(0),[true]);
B.data.el.removeClass("colorpicker_slider").find("input").focus();b(document).unbind("mouseup",R);b(document).unbind("mousemove",K);return false},Q=function(){var B={cal:b(this).parent(),y:b(this).offset().top};B.preview=B.cal.data("colorpicker").livePreview;b(document).bind("mouseup",B,ea);b(document).bind("mousemove",B,ba)},ba=function(B){p.apply(B.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,B.pageY-B.data.y)))/150,10)).get(0),[B.data.preview]);return false},
ea=function(B){g(B.data.cal.data("colorpicker").color,B.data.cal.get(0));h(B.data.cal.data("colorpicker").color,B.data.cal.get(0));b(document).unbind("mouseup",ea);b(document).unbind("mousemove",ba);return false},$=function(){var B={cal:b(this).parent(),pos:b(this).offset()};B.preview=B.cal.data("colorpicker").livePreview;b(document).bind("mouseup",B,Z);b(document).bind("mousemove",B,fa)},fa=function(B){p.apply(B.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,
B.pageY-B.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,B.pageX-B.data.pos.left))/150,10)).get(0),[B.data.preview]);return false},Z=function(B){g(B.data.cal.data("colorpicker").color,B.data.cal.get(0));h(B.data.cal.data("colorpicker").color,B.data.cal.get(0));b(document).unbind("mouseup",Z);b(document).unbind("mousemove",fa);return false},ha=function(){b(this).addClass("colorpicker_focus")},sa=function(){b(this).removeClass("colorpicker_focus")},za=function(){var B=
b(this).parent(),J=B.data("colorpicker").color;B.data("colorpicker").origColor=J;q(J,B.get(0));B.data("colorpicker").onSubmit(J,ra(pa(J)),pa(J),B.data("colorpicker").el)},T=function(){var B=b("#"+b(this).data("colorpickerId"));B.data("colorpicker").onBeforeShow.apply(this,[B.get(0)]);var J=b(this).offset(),Y;Y=document.compatMode=="CSS1Compat";Y={l:window.pageXOffset||(Y?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(Y?document.documentElement.scrollTop:document.body.scrollTop),
w:window.innerWidth||(Y?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(Y?document.documentElement.clientHeight:document.body.clientHeight)};var S=J.top+this.offsetHeight;J=J.left;if(S+176>Y.t+Y.h)S-=this.offsetHeight+176;if(J+356>Y.l+Y.w)J-=356;B.css({left:J+"px",top:S+"px"});B.data("colorpicker").onShow.apply(this,[B.get(0)])!=false&&B.show();b(document).bind("mousedown",{cal:B},Ha);return false},Ha=function(B){if(!Ea(B.data.cal.get(0),B.target,B.data.cal.get(0))){B.data.cal.data("colorpicker").onHide.apply(this,
[B.data.cal.get(0)])!=false&&B.data.cal.hide();b(document).unbind("mousedown",Ha)}},Ea=function(B,J,Y){if(B==J)return true;if(B.contains)return B.contains(J);if(B.compareDocumentPosition)return!!(B.compareDocumentPosition(J)&16);for(J=J.parentNode;J&&J!=Y;){if(J==B)return true;J=J.parentNode}return false},j=function(B){return{h:Math.min(360,Math.max(0,B.h)),s:Math.min(100,Math.max(0,B.s)),b:Math.min(100,Math.max(0,B.b))}},Ca=function(B){B=parseInt(B.indexOf("#")>-1?B.substring(1):B,16);return{r:B>>
16,g:(B&65280)>>8,b:B&255}},Fa=function(B){var J={h:0,s:0,b:0},Y=Math.max(B.r,B.g,B.b),S=Y-Math.min(B.r,B.g,B.b);J.b=Y;J.s=Y!=0?255*S/Y:0;J.h=J.s!=0?B.r==Y?(B.g-B.b)/S:B.g==Y?2+(B.b-B.r)/S:4+(B.r-B.g)/S:-1;J.h*=60;if(J.h<0)J.h+=360;J.s*=100/255;J.b*=100/255;return J},pa=function(B){var J={},Y=Math.round(B.h),S=Math.round(B.s*255/100);B=Math.round(B.b*255/100);if(S==0)J.r=J.g=J.b=B;else{S=(255-S)*B/255;var F=(B-S)*(Y%60)/60;if(Y==360)Y=0;if(Y<60){J.r=B;J.b=S;J.g=S+F}else if(Y<120){J.g=B;J.b=S;J.r=
B-F}else if(Y<180){J.g=B;J.r=S;J.b=S+F}else if(Y<240){J.b=B;J.r=S;J.g=B-F}else if(Y<300){J.b=B;J.g=S;J.r=S+F}else if(Y<360){J.r=B;J.g=S;J.b=B-F}else{J.r=0;J.g=0;J.b=0}}return{r:Math.round(J.r),g:Math.round(J.g),b:Math.round(J.b)}},ra=function(B){var J=[B.r.toString(16),B.g.toString(16),B.b.toString(16)];b.each(J,function(Y,S){if(S.length==1)J[Y]="0"+S});return J.join("")},Da=function(){var B=b(this).parent(),J=B.data("colorpicker").origColor;B.data("colorpicker").color=J;g(J,B.get(0));h(J,B.get(0));
c(J,B.get(0));k(J,B.get(0));o(J,B.get(0));x(J,B.get(0))};return{init:function(B){B=b.extend({},f,B||{});if(typeof B.color=="string")B.color=Fa(Ca(B.color));else if(B.color.r!=undefined&&B.color.g!=undefined&&B.color.b!=undefined)B.color=Fa(B.color);else if(B.color.h!=undefined&&B.color.s!=undefined&&B.color.b!=undefined)B.color=j(B.color);else return this;return this.each(function(){if(!b(this).data("colorpickerId")){var J=b.extend({},B);J.origColor=B.color;var Y="collorpicker_"+parseInt(Math.random()*
1E3);b(this).data("colorpickerId",Y);Y=b('<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>').attr("id",
Y);J.flat?Y.appendTo(this).show():Y.appendTo(document.body);J.fields=Y.find("input").bind("keyup",s).bind("change",p).bind("blur",w).bind("focus",A);Y.find("span").bind("mousedown",D).end().find(">div.colorpicker_current_color").bind("click",Da);J.selector=Y.find("div.colorpicker_color").bind("mousedown",$);J.selectorIndic=J.selector.find("div div");J.el=this;J.hue=Y.find("div.colorpicker_hue div");Y.find("div.colorpicker_hue").bind("mousedown",Q);J.newColor=Y.find("div.colorpicker_new_color");J.currentColor=
Y.find("div.colorpicker_current_color");Y.data("colorpicker",J);Y.find("div.colorpicker_submit").bind("mouseenter",ha).bind("mouseleave",sa).bind("click",za);g(J.color,Y.get(0));c(J.color,Y.get(0));h(J.color,Y.get(0));o(J.color,Y.get(0));k(J.color,Y.get(0));q(J.color,Y.get(0));x(J.color,Y.get(0));J.flat?Y.css({position:"relative",display:"block"}):b(this).bind(J.eventName,T)}})},showPicker:function(){return this.each(function(){b(this).data("colorpickerId")&&T.apply(this)})},hidePicker:function(){return this.each(function(){b(this).data("colorpickerId")&&
b("#"+b(this).data("colorpickerId")).hide()})},setColor:function(B){if(typeof B=="string")B=Fa(Ca(B));else if(B.r!=undefined&&B.g!=undefined&&B.b!=undefined)B=Fa(B);else if(B.h!=undefined&&B.s!=undefined&&B.b!=undefined)B=j(B);else return this;return this.each(function(){if(b(this).data("colorpickerId")){var J=b("#"+b(this).data("colorpickerId"));J.data("colorpicker").color=B;J.data("colorpicker").origColor=B;g(B,J.get(0));c(B,J.get(0));h(B,J.get(0));o(B,J.get(0));k(B,J.get(0));q(B,J.get(0));x(B,
J.get(0))}})}}}();b.fn.extend({ColorPicker:a.init,ColorPickerHide:a.hidePicker,ColorPickerShow:a.showPicker,ColorPickerSetColor:a.setColor})})(jQuery);
var Froogaloop=function(){function b(k){return new b.fn.init(k)}function a(k,o,q){if(!q.contentWindow.postMessage)return false;var x=q.getAttribute("src").split("?")[0];k=JSON.stringify({method:k,value:o});if(x.substr(0,2)==="//")x=window.location.protocol+x;q.contentWindow.postMessage(k,x)}function d(k){var o,q;try{o=JSON.parse(k.data);q=o.event||o.method}catch(x){}if(q=="ready"&&!c)c=true;if(k.origin!=h)return false;k=o.value;var s=o.data,p=p===""?null:o.player_id;o=p?g[p][q]:g[q];q=[];if(!o)return false;
k!==undefined&&q.push(k);s&&q.push(s);p&&q.push(p);return q.length>0?o.apply(null,q):o.call()}function f(k,o,q){if(q){g[q]||(g[q]={});g[q][k]=o}else g[k]=o}var g={},c=false,h="";b.fn=b.prototype={element:null,init:function(k){if(typeof k==="string")k=document.getElementById(k);this.element=k;k=this.element.getAttribute("src");if(k.substr(0,2)==="//")k=window.location.protocol+k;k=k.split("/");for(var o="",q=0,x=k.length;q<x;q++){if(q<3)o+=k[q];else break;if(q<2)o+="/"}h=o;return this},api:function(k,
o){if(!this.element||!k)return false;var q=this.element,x=q.id!==""?q.id:null,s=!(o&&o.constructor&&o.call&&o.apply)?o:null,p=o&&o.constructor&&o.call&&o.apply?o:null;p&&f(k,p,x);a(k,s,q);return this},addEvent:function(k,o){if(!this.element)return false;var q=this.element,x=q.id!==""?q.id:null;f(k,o,x);if(k!="ready")a("addEventListener",k,q);else k=="ready"&&c&&o.call(null,x);return this},removeEvent:function(k){if(!this.element)return false;var o=this.element,q;a:{if((q=o.id!==""?o.id:null)&&g[q]){if(!g[q][k]){q=
false;break a}g[q][k]=null}else{if(!g[k]){q=false;break a}g[k]=null}q=true}k!="ready"&&q&&a("removeEventListener",k,o)}};b.fn.init.prototype=b.fn;window.addEventListener?window.addEventListener("message",d,false):window.attachEvent("onmessage",d);return window.Froogaloop=window.$f=b}();

