(function(c,g){function h(){if(!d.isReady){try{H.documentElement.doScroll("left")}catch(a){setTimeout(h,1);return}d.ready()}}function f(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function j(a,b,i,l,m,u){var v=a.length;if(typeof b==="object"){for(var D in b)j(a,D,b[D],l,m,i);return a}if(i!==g){l=!u&&l&&d.isFunction(i);for(D=0;D<v;D++)m(a[D],b,l?i.call(a[D],D,m(a[D],b)):i,u);return a}return v?
m(a[0],b):g}function k(){return(new Date).getTime()}function o(){return false}function x(){return true}function y(a,b,i){i[0].type=a;return d.event.handle.apply(b,i)}function q(a){var b,i=[],l=[],m=arguments,u,v,D,B,F,J;v=d.data(this,"events");if(!(a.liveFired===this||!v||!v.live||a.button&&a.type==="click")){a.liveFired=this;var M=v.live.slice(0);for(B=0;B<M.length;B++){v=M[B];v.origType.replace(ea,"")===a.type?l.push(v.selector):M.splice(B--,1)}u=d(a.target).closest(l,a.currentTarget);F=0;for(J=
u.length;F<J;F++)for(B=0;B<M.length;B++){v=M[B];if(u[F].selector===v.selector){D=u[F].elem;l=null;if(v.preType==="mouseenter"||v.preType==="mouseleave")l=d(a.relatedTarget).closest(v.selector)[0];if(!l||l!==D)i.push({elem:D,handleObj:v})}}F=0;for(J=i.length;F<J;F++){u=i[F];a.currentTarget=u.elem;a.data=u.handleObj.data;a.handleObj=u.handleObj;if(u.handleObj.origHandler.apply(u.elem,m)===false){b=false;break}}return b}}function n(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function r(a,b){var i=0;b.each(function(){if(this.nodeName===(a[i]&&a[i].nodeName)){var l=d.data(a[i++]),m=d.data(this,l);if(l=l&&l.events){delete m.handle;m.events={};for(var u in l)for(var v in l[u])d.event.add(this,u,l[u][v],l[u][v].data)}}})}function w(a,b,i){var l,m,u;b=b&&b[0]?b[0].ownerDocument||b[0]:H;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===H&&!za.test(a[0])&&(d.support.checkClone||!Aa.test(a[0]))){m=true;if(u=d.fragments[a[0]])if(u!==1)l=u}if(!l){l=b.createDocumentFragment();
d.clean(a,b,l,i)}if(m)d.fragments[a[0]]=u?l:1;return{fragment:l,cacheable:m}}function z(a,b){var i={};d.each(Ba.concat.apply([],Ba.slice(0,b)),function(){i[this]=a});return i}function E(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},P=c.jQuery,T=c.$,H=c.document,U,Va=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Wa=/^.[^:#\[\.,]*$/,Xa=/\S/,Ya=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Za=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,fa=navigator.userAgent,
Ca=false,ga=[],ba,ma=Object.prototype.toString,na=Object.prototype.hasOwnProperty,oa=Array.prototype.push,ha=Array.prototype.slice,Da=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var i,l;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=H;this[0]=H.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((i=Va.exec(a))&&(i[1]||!b))if(i[1]){l=b?b.ownerDocument||b:H;if(a=Za.exec(a))if(d.isPlainObject(b)){a=
[H.createElement(a[1])];d.fn.attr.call(a,b,true)}else a=[l.createElement(a[1])];else{a=w([i[1]],[l]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return d.merge(this,a)}else{if(b=H.getElementById(i[2])){if(b.id!==i[2])return U.find(a);this.length=1;this[0]=b}this.context=H;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=H;a=H.getElementsByTagName(a);return d.merge(this,a)}else return!b||b.jquery?(b||U).find(a):d(b).find(a);else if(d.isFunction(a))return U.ready(a);
if(a.selector!==g){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ha.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,i){var l=d();d.isArray(a)?oa.apply(l,a):d.merge(l,a);l.prevObject=this;l.context=this.context;if(b==="find")l.selector=this.selector+(this.selector?" ":"")+i;else if(b)l.selector=this.selector+
"."+b+"("+i+")";return l},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(H,d);else ga&&ga.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ha.apply(this,arguments),"slice",ha.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,i){return a.call(b,i,b)}))},end:function(){return this.prevObject||
d(null)},push:oa,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,i=arguments.length,l=false,m,u,v,D;if(typeof a==="boolean"){l=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(i===b){a=this;--b}for(;b<i;b++)if((m=arguments[b])!=null)for(u in m){v=a[u];D=m[u];if(a!==D)if(l&&D&&(d.isPlainObject(D)||d.isArray(D))){v=v&&(d.isPlainObject(v)||d.isArray(v))?v:d.isArray(D)?[]:{};a[u]=d.extend(l,v,D)}else if(D!==g)a[u]=
D}return a};d.extend({noConflict:function(a){c.$=T;if(a)c.jQuery=P;return d},isReady:false,ready:function(){if(!d.isReady){if(!H.body)return setTimeout(d.ready,13);d.isReady=true;if(ga){for(var a,b=0;a=ga[b++];)a.call(H,d);ga=null}d.fn.triggerHandler&&d(H).triggerHandler("ready")}},bindReady:function(){if(!Ca){Ca=true;if(H.readyState==="complete")return d.ready();if(H.addEventListener){H.addEventListener("DOMContentLoaded",ba,false);c.addEventListener("load",d.ready,false)}else if(H.attachEvent){H.attachEvent("onreadystatechange",
ba);c.attachEvent("onload",d.ready);var a=false;try{a=c.frameElement==null}catch(b){}H.documentElement.doScroll&&a&&h()}}},isFunction:function(a){return ma.call(a)==="[object Function]"},isArray:function(a){return ma.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||ma.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!na.call(a,"constructor")&&!na.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===g||na.call(a,b)},
isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=d.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return c.JSON&&c.JSON.parse?c.JSON.parse(a):(new Function("return "+a))();else d.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&
Xa.test(a)){var b=H.getElementsByTagName("head")[0]||H.documentElement,i=H.createElement("script");i.type="text/javascript";if(d.support.scriptEval)i.appendChild(H.createTextNode(a));else i.text=a;b.insertBefore(i,b.firstChild);b.removeChild(i)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,i){var l,m=0,u=a.length,v=u===g||d.isFunction(a);if(i)if(v)for(l in a){if(b.apply(a[l],i)===false)break}else for(;m<u;){if(b.apply(a[m++],i)===false)break}else if(v)for(l in a){if(b.call(a[l],
l,a[l])===false)break}else for(i=a[0];m<u&&b.call(i,m,i)!==false;i=a[++m]);return a},trim:function(a){return(a||"").replace(Ya,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?oa.call(b,a):d.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var i=0,l=b.length;i<l;i++)if(b[i]===a)return i;return-1},merge:function(a,b){var i=a.length,l=0;if(typeof b.length==="number")for(var m=b.length;l<
m;l++)a[i++]=b[l];else for(;b[l]!==g;)a[i++]=b[l++];a.length=i;return a},grep:function(a,b,i){for(var l=[],m=0,u=a.length;m<u;m++)!i!==!b(a[m],m)&&l.push(a[m]);return l},map:function(a,b,i){for(var l=[],m,u=0,v=a.length;u<v;u++){m=b(a[u],u,i);if(m!=null)l[l.length]=m}return l.concat.apply([],l)},guid:1,proxy:function(a,b,i){if(arguments.length===2)if(typeof b==="string"){i=a;a=i[b];b=g}else if(b&&!d.isFunction(b)){i=b;b=g}if(!b&&a)b=function(){return a.apply(i||this,arguments)};if(a)b.guid=a.guid=
a.guid||b.guid||d.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});fa=d.uaMatch(fa);if(fa.browser){d.browser[fa.browser]=true;d.browser.version=fa.version}if(d.browser.webkit)d.browser.safari=true;if(Da)d.inArray=function(a,b){return Da.call(b,a)};U=d(H);if(H.addEventListener)ba=
function(){H.removeEventListener("DOMContentLoaded",ba,false);d.ready()};else if(H.attachEvent)ba=function(){if(H.readyState==="complete"){H.detachEvent("onreadystatechange",ba);d.ready()}};(function(){d.support={};var a=H.documentElement,b=H.createElement("script"),i=H.createElement("div"),l="script"+k();i.style.display="none";i.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var m=i.getElementsByTagName("*"),u=i.getElementsByTagName("a")[0];
if(!(!m||!m.length||!u)){d.support={leadingWhitespace:i.firstChild.nodeType===3,tbody:!i.getElementsByTagName("tbody").length,htmlSerialize:!!i.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:i.getElementsByTagName("input")[0].value==="on",optSelected:H.createElement("select").appendChild(H.createElement("option")).selected,parentNode:i.removeChild(i.appendChild(H.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(H.createTextNode("window."+l+"=1;"))}catch(v){}a.insertBefore(b,a.firstChild);if(c[l]){d.support.scriptEval=true;delete c[l]}try{delete b.test}catch(D){d.support.deleteExpando=false}a.removeChild(b);if(i.attachEvent&&i.fireEvent){i.attachEvent("onclick",function B(){d.support.noCloneEvent=false;i.detachEvent("onclick",B)});i.cloneNode(true).fireEvent("onclick")}i=H.createElement("div");
i.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=H.createDocumentFragment();a.appendChild(i.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var B=H.createElement("div");B.style.width=B.style.paddingLeft="1px";H.body.appendChild(B);d.boxModel=d.support.boxModel=B.offsetWidth===2;H.body.removeChild(B).style.display="none"});a=function(B){var F=H.createElement("div");B="on"+B;var J=B in F;if(!J){F.setAttribute(B,"return;");J=typeof F[B]===
"function"}return J};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=b=i=m=u=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var Y="jQuery"+k(),$a=0,Ea={};d.extend({cache:{},expando:Y,noData:{embed:true,object:true,applet:true},data:function(a,b,i){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=
a==c?Ea:a;var l=a[Y],m=d.cache;if(!l&&typeof b==="string"&&i===g)return null;l||(l=++$a);if(typeof b==="object"){a[Y]=l;m[l]=d.extend(true,{},b)}else if(!m[l]){a[Y]=l;m[l]={}}a=m[l];if(i!==g)a[b]=i;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==c?Ea:a;var i=a[Y],l=d.cache,m=l[i];if(b){if(m){delete m[b];d.isEmptyObject(m)&&d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];else a.removeAttribute&&a.removeAttribute(d.expando);
delete l[i]}}}});d.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var i=a.split(".");i[1]=i[1]?"."+i[1]:"";if(b===g){var l=this.triggerHandler("getData"+i[1]+"!",[i[0]]);if(l===g&&this.length)l=d.data(this[0],a);return l===g&&i[1]?this.data(i[0]):l}else return this.trigger("setData"+i[1]+"!",[i[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,
a)})}});d.extend({queue:function(a,b,i){if(a){b=(b||"fx")+"queue";var l=d.data(a,b);if(!i)return l||[];if(!l||d.isArray(i))l=d.data(a,b,d.makeArray(i));else l.push(i);return l}},dequeue:function(a,b){b=b||"fx";var i=d.queue(a,b),l=i.shift();if(l==="inprogress")l=i.shift();if(l){b==="fx"&&i.unshift("inprogress");l.call(a,function(){d.dequeue(a,b)})}}});d.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===g)return d.queue(this[0],a);return this.each(function(){var i=d.queue(this,
a,b);a==="fx"&&i[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var i=this;setTimeout(function(){d.dequeue(i,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Fa=/[\n\t]/g,pa=/\s+/,ab=/\r/g,bb=/href|src|style/,cb=/(button|input)/i,db=/(button|input|object|select|textarea)/i,eb=/^(a|area)$/i,Ga=/radio|checkbox/;d.fn.extend({attr:function(a,
b){return j(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(F){var J=d(this);J.addClass(a.call(this,F,J.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(pa),i=0,l=this.length;i<l;i++){var m=this[i];if(m.nodeType===1)if(m.className){for(var u=" "+m.className+" ",v=m.className,D=0,B=b.length;D<B;D++)if(u.indexOf(" "+b[D]+" ")<
0)v+=" "+b[D];m.className=d.trim(v)}else m.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(B){var F=d(this);F.removeClass(a.call(this,B,F.attr("class")))});if(a&&typeof a==="string"||a===g)for(var b=(a||"").split(pa),i=0,l=this.length;i<l;i++){var m=this[i];if(m.nodeType===1&&m.className)if(a){for(var u=(" "+m.className+" ").replace(Fa," "),v=0,D=b.length;v<D;v++)u=u.replace(" "+b[v]+" "," ");m.className=d.trim(u)}else m.className=""}return this},toggleClass:function(a,
b){var i=typeof a,l=typeof b==="boolean";if(d.isFunction(a))return this.each(function(m){var u=d(this);u.toggleClass(a.call(this,m,u.attr("class"),b),b)});return this.each(function(){if(i==="string")for(var m,u=0,v=d(this),D=b,B=a.split(pa);m=B[u++];){D=l?D:!v.hasClass(m);v[D?"addClass":"removeClass"](m)}else if(i==="undefined"||i==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){for(var b=
0,i=this.length;b<i;b++)if((" "+this[b].className+" ").replace(Fa," ").indexOf(" "+a+" ")>-1)return true;return false},val:function(a){if(a===g){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var i=b.selectedIndex,l=[],m=b.options;b=b.type==="select-one";if(i<0)return null;var u=b?i:0;for(i=b?i+1:m.length;u<i;u++){var v=m[u];if(v.selected){a=d(v).val();if(b)return a;l.push(a)}}return l}if(Ga.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===
null?"on":b.value;return(b.value||"").replace(ab,"")}return g}var D=d.isFunction(a);return this.each(function(B){var F=d(this),J=a;if(this.nodeType===1){if(D)J=a.call(this,B,F.val());if(typeof J==="number")J+="";if(d.isArray(J)&&Ga.test(this.type))this.checked=d.inArray(F.val(),J)>=0;else if(d.nodeName(this,"select")){var M=d.makeArray(J);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),M)>=0});if(!M.length)this.selectedIndex=-1}else this.value=J}})}});d.extend({attrFn:{val:true,
css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,i,l){if(!a||a.nodeType===3||a.nodeType===8)return g;if(l&&b in d.attrFn)return d(a)[b](i);l=a.nodeType!==1||!d.isXMLDoc(a);var m=i!==g;b=l&&d.props[b]||b;if(a.nodeType===1){var u=bb.test(b);if(b in a&&l&&!u){if(m){b==="type"&&cb.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");a[b]=i}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=
a.getAttributeNode("tabIndex"))&&b.specified?b.value:db.test(a.nodeName)||eb.test(a.nodeName)&&a.href?0:g;return a[b]}if(!d.support.style&&l&&b==="style"){if(m)a.style.cssText=""+i;return a.style.cssText}m&&a.setAttribute(b,""+i);a=!d.support.hrefNormalized&&l&&u?a.getAttribute(b,2):a.getAttribute(b);return a===null?g:a}return d.style(a,b,i)}});var ea=/\.(.*)$/,fb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};d.event={add:function(a,b,i,l){if(!(a.nodeType===3||a.nodeType===
8)){if(a.setInterval&&a!==c&&!a.frameElement)a=c;var m,u;if(i.handler){m=i;i=m.handler}if(!i.guid)i.guid=d.guid++;if(u=d.data(a)){var v=u.events=u.events||{},D=u.handle;if(!D)u.handle=D=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(D.elem,arguments):g};D.elem=a;b=b.split(" ");for(var B,F=0,J;B=b[F++];){u=m?d.extend({},m):{handler:i,data:l};if(B.indexOf(".")>-1){J=B.split(".");B=J.shift();u.namespace=J.slice(0).sort().join(".")}else{J=[];u.namespace=""}u.type=B;
u.guid=i.guid;var M=v[B],Q=d.event.special[B]||{};if(!M){M=v[B]=[];if(!Q.setup||Q.setup.call(a,l,J,D)===false)if(a.addEventListener)a.addEventListener(B,D,false);else a.attachEvent&&a.attachEvent("on"+B,D)}if(Q.add){Q.add.call(a,u);if(!u.handler.guid)u.handler.guid=i.guid}M.push(u);d.event.global[B]=true}a=null}}},global:{},remove:function(a,b,i,l){if(!(a.nodeType===3||a.nodeType===8)){var m,u=0,v,D,B,F,J,M,Q=d.data(a),S=Q&&Q.events;if(Q&&S){if(b&&b.type){i=b.handler;b=b.type}if(!b||typeof b==="string"&&
b.charAt(0)===".")for(m in S)d.event.remove(a,m+(b||""));else{for(b=b.split(" ");m=b[u++];){F=m;v=m.indexOf(".")<0;D=[];if(!v){D=m.split(".");m=D.shift();B=new RegExp("(^|\\.)"+d.map(D.slice(0).sort(),fb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(J=S[m])if(i){F=d.event.special[m]||{};for(R=l||0;R<J.length;R++){M=J[R];if(i.guid===M.guid){if(v||B.test(M.namespace)){l==null&&J.splice(R--,1);F.remove&&F.remove.call(a,M)}if(l!=null)break}}if(J.length===0||l!=null&&J.length===1){if(!F.teardown||F.teardown.call(a,
D)===false)Ha(a,m,Q.handle);delete S[m]}}else for(var R=0;R<J.length;R++){M=J[R];if(v||B.test(M.namespace)){d.event.remove(a,F,M.handler,R);J.splice(R--,1)}}}if(d.isEmptyObject(S)){if(b=Q.handle)b.elem=null;delete Q.events;delete Q.handle;d.isEmptyObject(Q)&&d.removeData(a)}}}}},trigger:function(a,b,i,l){var m=a.type||a;if(!l){a=typeof a==="object"?a[Y]?a:d.extend(d.Event(m),a):d.Event(m);if(m.indexOf("!")>=0){a.type=m=m.slice(0,-1);a.exclusive=true}if(!i){a.stopPropagation();d.event.global[m]&&d.each(d.cache,
function(){this.events&&this.events[m]&&d.event.trigger(a,b,this.handle.elem)})}if(!i||i.nodeType===3||i.nodeType===8)return g;a.result=g;a.target=i;b=d.makeArray(b);b.unshift(a)}a.currentTarget=i;(l=d.data(i,"handle"))&&l.apply(i,b);l=i.parentNode||i.ownerDocument;try{if(!(i&&i.nodeName&&d.noData[i.nodeName.toLowerCase()]))if(i["on"+m]&&i["on"+m].apply(i,b)===false)a.result=false}catch(u){}if(!a.isPropagationStopped()&&l)d.event.trigger(a,b,l,true);else if(!a.isDefaultPrevented()){l=a.target;var v,
D=d.nodeName(l,"a")&&m==="click",B=d.event.special[m]||{};if((!B._default||B._default.call(i,a)===false)&&!D&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{if(l[m]){if(v=l["on"+m])l["on"+m]=null;d.event.triggered=true;l[m]()}}catch(F){}if(v)l["on"+m]=v;d.event.triggered=false}}},handle:function(a){var b,i,l,m;a=arguments[0]=d.event.fix(a||c.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){i=a.type.split(".");a.type=i.shift();l=new RegExp("(^|\\.)"+i.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}m=d.data(this,"events");i=m[a.type];if(m&&i){i=i.slice(0);m=0;for(var u=i.length;m<u;m++){var v=i[m];if(b||l.test(v.namespace)){a.handler=v.handler;a.data=v.data;a.handleObj=v;v=v.handler.apply(this,arguments);if(v!==g){a.result=v;if(v===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[Y])return a;var b=a;a=d.Event(b);for(var i=this.props.length,l;i;){l=this.props[--i];a[l]=b[l]}if(!a.target)a.target=a.srcElement||H;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=H.documentElement;i=H.body;a.pageX=a.clientX+(b&&b.scrollLeft||i&&i.scrollLeft||0)-(b&&b.clientLeft||i&&i.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
i&&i.scrollTop||0)-(b&&b.clientTop||i&&i.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==g)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,a.origType,d.extend({},a,{handler:q}))},remove:function(a){var b=true,i=a.origType.replace(ea,"");d.each(d.data(this,
"events").live||[],function(){if(i===this.origType.replace(ea,""))return b=false});b&&d.event.remove(this,a.origType,q)}},beforeunload:{setup:function(a,b,i){if(this.setInterval)this.onbeforeunload=i;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ha=H.removeEventListener?function(a,b,i){a.removeEventListener(b,i,false)}:function(a,b,i){a.detachEvent("on"+b,i)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=k();this[Y]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=x;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=x;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=x;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,
isImmediatePropagationStopped:o};var Ia=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;d.event.handle.apply(this,arguments)}}catch(i){}},Ja=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(i){d.event.add(this,b,i&&i.selector?Ja:Ia,a)},teardown:function(i){d.event.remove(this,b,i&&i.selector?Ja:Ia)}}});if(!d.support.submitBubbles)d.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(a){var b=a.target,i=b.type;if((i==="submit"||i==="image")&&d(b).closest("form").length)return y("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,i=b.type;if((i==="text"||i==="password")&&d(b).closest("form").length&&a.keyCode===13)return y("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var qa=
/textarea|input|select/i,ra,Ka=function(a){var b=a.type,i=a.value;if(b==="radio"||b==="checkbox")i=a.checked;else if(b==="select-multiple")i=a.selectedIndex>-1?d.map(a.options,function(l){return l.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")i=a.selectedIndex;return i},sa=function(a,b){var i=a.target,l,m;if(!(!qa.test(i.nodeName)||i.readOnly)){l=d.data(i,"_change_data");m=Ka(i);if(a.type!=="focusout"||i.type!=="radio")d.data(i,"_change_data",m);if(!(l===g||m===l))if(l!=null||
m){a.type="change";return d.event.trigger(a,b,i)}}};d.event.special.change={filters:{focusout:sa,click:function(a){var b=a.target,i=b.type;if(i==="radio"||i==="checkbox"||b.nodeName.toLowerCase()==="select")return sa.call(this,a)},keydown:function(a){var b=a.target,i=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(i==="checkbox"||i==="radio")||i==="select-multiple")return sa.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Ka(a))}},setup:function(){if(this.type===
"file")return false;for(var a in ra)d.event.add(this,a+".specialChange",ra[a]);return qa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return qa.test(this.nodeName)}};ra=d.event.special.change.filters}H.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function i(l){l=d.event.fix(l);l.type=b;return d.event.handle.call(this,l)}d.event.special[b]={setup:function(){this.addEventListener(a,i,true)},teardown:function(){this.removeEventListener(a,
i,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(i,l,m){if(typeof i==="object"){for(var u in i)this[b](u,l,i[u],m);return this}if(d.isFunction(l)){m=l;l=g}var v=b==="one"?d.proxy(m,function(B){d(this).unbind(B,v);return m.apply(this,arguments)}):m;if(i==="unload"&&b!=="one")this.one(i,l,m);else{u=0;for(var D=this.length;u<D;u++)d.event.add(this[u],i,v,l)}return this}});d.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var i in a)this.unbind(i,a[i]);else{i=
0;for(var l=this.length;i<l;i++)d.event.remove(this[i],a,b)}return this},delegate:function(a,b,i,l){return this.live(b,i,l,a)},undelegate:function(a,b,i){return arguments.length===0?this.unbind("live"):this.die(b,null,i,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=d.Event(a);a.preventDefault();a.stopPropagation();d.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,i=1;i<b.length;)d.proxy(a,
b[i++]);return this.click(d.proxy(a,function(l){var m=(d.data(this,"lastToggle"+a.guid)||0)%i;d.data(this,"lastToggle"+a.guid,m+1);l.preventDefault();return b[m].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var La={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,b){d.fn[b]=function(i,l,m,u){var v,D=0,B,F,J=u||this.selector,M=u?this:d(this.context);if(d.isFunction(l)){m=l;l=g}for(i=
(i||"").split(" ");(v=i[D++])!=null;){u=ea.exec(v);B="";if(u){B=u[0];v=v.replace(ea,"")}if(v==="hover")i.push("mouseenter"+B,"mouseleave"+B);else{F=v;if(v==="focus"||v==="blur"){i.push(La[v]+B);v+=B}else v=(La[v]||v)+B;b==="live"?M.each(function(){d.event.add(this,n(v,J),{data:l,selector:J,handler:m,origType:v,origHandler:m,preType:F})}):M.unbind(n(v,J),m)}}return this}});d.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(a,b){d.fn[b]=function(i){return i?this.bind(b,i):this.trigger(b)};if(d.attrFn)d.attrFn[b]=true});c.attachEvent&&!c.addEventListener&&c.attachEvent("onunload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(b){}});(function(){function a(p){for(var s="",A,C=0;p[C];C++){A=p[C];if(A.nodeType===3||A.nodeType===4)s+=A.nodeValue;else if(A.nodeType!==8)s+=a(A.childNodes)}return s}function b(p,s,A,C,I,G){I=0;for(var L=C.length;I<L;I++){var K=C[I];
if(K){K=K[p];for(var O=false;K;){if(K.sizcache===A){O=C[K.sizset];break}if(K.nodeType===1&&!G){K.sizcache=A;K.sizset=I}if(K.nodeName.toLowerCase()===s){O=K;break}K=K[p]}C[I]=O}}}function i(p,s,A,C,I,G){I=0;for(var L=C.length;I<L;I++){var K=C[I];if(K){K=K[p];for(var O=false;K;){if(K.sizcache===A){O=C[K.sizset];break}if(K.nodeType===1){if(!G){K.sizcache=A;K.sizset=I}if(typeof s!=="string"){if(K===s){O=true;break}}else if(B.filter(s,[K]).length>0){O=K;break}}K=K[p]}C[I]=O}}}var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
m=0,u=Object.prototype.toString,v=false,D=true;[0,0].sort(function(){D=false;return 0});var B=function(p,s,A,C){A=A||[];var I=s=s||H;if(s.nodeType!==1&&s.nodeType!==9)return[];if(!p||typeof p!=="string")return A;for(var G=[],L,K,O,ia,Z=true,ca=N(s),aa=p;(l.exec(""),L=l.exec(aa))!==null;){aa=L[3];G.push(L[1]);if(L[2]){ia=L[3];break}}if(G.length>1&&J.exec(p))if(G.length===2&&F.relative[G[0]])K=ta(G[0]+G[1],s);else for(K=F.relative[G[0]]?[s]:B(G.shift(),s);G.length;){p=G.shift();if(F.relative[p])p+=
G.shift();K=ta(p,K)}else{if(!C&&G.length>1&&s.nodeType===9&&!ca&&F.match.ID.test(G[0])&&!F.match.ID.test(G[G.length-1])){L=B.find(G.shift(),s,ca);s=L.expr?B.filter(L.expr,L.set)[0]:L.set[0]}if(s){L=C?{expr:G.pop(),set:Q(C)}:B.find(G.pop(),G.length===1&&(G[0]==="~"||G[0]==="+")&&s.parentNode?s.parentNode:s,ca);K=L.expr?B.filter(L.expr,L.set):L.set;if(G.length>0)O=Q(K);else Z=false;for(;G.length;){var V=G.pop();L=V;if(F.relative[V])L=G.pop();else V="";if(L==null)L=s;F.relative[V](O,L,ca)}}else O=[]}O||
(O=K);O||B.error(V||p);if(u.call(O)==="[object Array]")if(Z)if(s&&s.nodeType===1)for(p=0;O[p]!=null;p++){if(O[p]&&(O[p]===true||O[p].nodeType===1&&W(s,O[p])))A.push(K[p])}else for(p=0;O[p]!=null;p++)O[p]&&O[p].nodeType===1&&A.push(K[p]);else A.push.apply(A,O);else Q(O,A);if(ia){B(ia,I,A,C);B.uniqueSort(A)}return A};B.uniqueSort=function(p){if(R){v=D;p.sort(R);if(v)for(var s=1;s<p.length;s++)p[s]===p[s-1]&&p.splice(s--,1)}return p};B.matches=function(p,s){return B(p,null,null,s)};B.find=function(p,
s,A){var C,I;if(!p)return[];for(var G=0,L=F.order.length;G<L;G++){var K=F.order[G];if(I=F.leftMatch[K].exec(p)){var O=I[1];I.splice(1,1);if(O.substr(O.length-1)!=="\\"){I[1]=(I[1]||"").replace(/\\/g,"");C=F.find[K](I,s,A);if(C!=null){p=p.replace(F.match[K],"");break}}}}C||(C=s.getElementsByTagName("*"));return{set:C,expr:p}};B.filter=function(p,s,A,C){for(var I=p,G=[],L=s,K,O,ia=s&&s[0]&&N(s[0]);p&&s.length;){for(var Z in F.filter)if((K=F.leftMatch[Z].exec(p))!=null&&K[2]){var ca=F.filter[Z],aa,V;
V=K[1];O=false;K.splice(1,1);if(V.substr(V.length-1)!=="\\"){if(L===G)G=[];if(F.preFilter[Z])if(K=F.preFilter[Z](K,L,A,G,C,ia)){if(K===true)continue}else O=aa=true;if(K)for(var ja=0;(V=L[ja])!=null;ja++)if(V){aa=ca(V,K,ja,L);var Ma=C^!!aa;if(A&&aa!=null)if(Ma)O=true;else L[ja]=false;else if(Ma){G.push(V);O=true}}if(aa!==g){A||(L=G);p=p.replace(F.match[Z],"");if(!O)return[];break}}}if(p===I)if(O==null)B.error(p);else break;I=p}return L};B.error=function(p){throw"Syntax error, unrecognized expression: "+
p;};var F=B.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")}},relative:{"+":function(p,s){var A=typeof s==="string",C=A&&!/\W/.test(s);A=A&&!C;if(C)s=s.toLowerCase();C=0;for(var I=p.length,G;C<I;C++)if(G=p[C]){for(;(G=G.previousSibling)&&G.nodeType!==1;);p[C]=A||G&&G.nodeName.toLowerCase()===s?G||false:G===s}A&&B.filter(s,p,true)},">":function(p,s){var A=typeof s==="string";if(A&&!/\W/.test(s)){s=s.toLowerCase();for(var C=0,I=p.length;C<I;C++){var G=
p[C];if(G){A=G.parentNode;p[C]=A.nodeName.toLowerCase()===s?A:false}}}else{C=0;for(I=p.length;C<I;C++)if(G=p[C])p[C]=A?G.parentNode:G.parentNode===s;A&&B.filter(s,p,true)}},"":function(p,s,A){var C=m++,I=i;if(typeof s==="string"&&!/\W/.test(s)){var G=s=s.toLowerCase();I=b}I("parentNode",s,C,p,G,A)},"~":function(p,s,A){var C=m++,I=i;if(typeof s==="string"&&!/\W/.test(s)){var G=s=s.toLowerCase();I=b}I("previousSibling",s,C,p,G,A)}},find:{ID:function(p,s,A){if(typeof s.getElementById!=="undefined"&&
!A)return(p=s.getElementById(p[1]))?[p]:[]},NAME:function(p,s){if(typeof s.getElementsByName!=="undefined"){var A=[];s=s.getElementsByName(p[1]);for(var C=0,I=s.length;C<I;C++)s[C].getAttribute("name")===p[1]&&A.push(s[C]);return A.length===0?null:A}},TAG:function(p,s){return s.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,s,A,C,I,G){p=" "+p[1].replace(/\\/g,"")+" ";if(G)return p;G=0;for(var L;(L=s[G])!=null;G++)if(L)if(I^(L.className&&(" "+L.className+" ").replace(/[\t\n]/g," ").indexOf(p)>=
0))A||C.push(L);else if(A)s[G]=false;return false},ID:function(p){return p[1].replace(/\\/g,"")},TAG:function(p){return p[1].toLowerCase()},CHILD:function(p){if(p[1]==="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=s[1]+(s[2]||1)-0;p[3]=s[3]-0}p[0]=m++;return p},ATTR:function(p,s,A,C,I,G){s=p[1].replace(/\\/g,"");if(!G&&F.attrMap[s])p[1]=F.attrMap[s];if(p[2]==="~=")p[4]=" "+p[4]+" ";return p},PSEUDO:function(p,s,A,C,
I){if(p[1]==="not")if((l.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=B(p[3],null,null,s);else{p=B.filter(p[3],s,A,true^I);A||C.push.apply(C,p);return false}else if(F.match.POS.test(p[0])||F.match.CHILD.test(p[0]))return true;return p},POS:function(p){p.unshift(true);return p}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden"},disabled:function(p){return p.disabled===true},checked:function(p){return p.checked===true},selected:function(p){return p.selected===true},parent:function(p){return!!p.firstChild},
empty:function(p){return!p.firstChild},has:function(p,s,A){return!!B(A[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){return"text"===p.type},radio:function(p){return"radio"===p.type},checkbox:function(p){return"checkbox"===p.type},file:function(p){return"file"===p.type},password:function(p){return"password"===p.type},submit:function(p){return"submit"===p.type},image:function(p){return"image"===p.type},reset:function(p){return"reset"===p.type},button:function(p){return"button"===
p.type||p.nodeName.toLowerCase()==="button"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)}},setFilters:{first:function(p,s){return s===0},last:function(p,s,A,C){return s===C.length-1},even:function(p,s){return s%2===0},odd:function(p,s){return s%2===1},lt:function(p,s,A){return s<A[3]-0},gt:function(p,s,A){return s>A[3]-0},nth:function(p,s,A){return A[3]-0===s},eq:function(p,s,A){return A[3]-0===s}},filter:{PSEUDO:function(p,s,A,C){var I=s[1],G=F.filters[I];if(G)return G(p,
A,s,C);else if(I==="contains")return(p.textContent||p.innerText||a([p])||"").indexOf(s[3])>=0;else if(I==="not"){s=s[3];A=0;for(C=s.length;A<C;A++)if(s[A]===p)return false;return true}else B.error("Syntax error, unrecognized expression: "+I)},CHILD:function(p,s){var A=s[1],C=p;switch(A){case "only":case "first":for(;C=C.previousSibling;)if(C.nodeType===1)return false;if(A==="first")return true;C=p;case "last":for(;C=C.nextSibling;)if(C.nodeType===1)return false;return true;case "nth":A=s[2];var I=
s[3];if(A===1&&I===0)return true;s=s[0];var G=p.parentNode;if(G&&(G.sizcache!==s||!p.nodeIndex)){var L=0;for(C=G.firstChild;C;C=C.nextSibling)if(C.nodeType===1)C.nodeIndex=++L;G.sizcache=s}p=p.nodeIndex-I;return A===0?p===0:p%A===0&&p/A>=0}},ID:function(p,s){return p.nodeType===1&&p.getAttribute("id")===s},TAG:function(p,s){return s==="*"&&p.nodeType===1||p.nodeName.toLowerCase()===s},CLASS:function(p,s){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(p,s){var A=
s[1];p=F.attrHandle[A]?F.attrHandle[A](p):p[A]!=null?p[A]:p.getAttribute(A);A=p+"";var C=s[2];s=s[4];return p==null?C==="!=":C==="="?A===s:C==="*="?A.indexOf(s)>=0:C==="~="?(" "+A+" ").indexOf(s)>=0:!s?A&&p!==false:C==="!="?A!==s:C==="^="?A.indexOf(s)===0:C==="$="?A.substr(A.length-s.length)===s:C==="|="?A===s||A.substr(0,s.length+1)===s+"-":false},POS:function(p,s,A,C){var I=F.setFilters[s[2]];if(I)return I(p,A,s,C)}}},J=F.match.POS;for(var M in F.match){F.match[M]=new RegExp(F.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source);
F.leftMatch[M]=new RegExp(/(^(?:.|\r|\n)*?)/.source+F.match[M].source.replace(/\\(\d+)/g,function(p,s){return"\\"+(s-0+1)}))}var Q=function(p,s){p=Array.prototype.slice.call(p,0);if(s){s.push.apply(s,p);return s}return p};try{Array.prototype.slice.call(H.documentElement.childNodes,0)}catch(S){Q=function(p,s){s=s||[];if(u.call(p)==="[object Array]")Array.prototype.push.apply(s,p);else if(typeof p.length==="number")for(var A=0,C=p.length;A<C;A++)s.push(p[A]);else for(A=0;p[A];A++)s.push(p[A]);return s}}var R;
if(H.documentElement.compareDocumentPosition)R=function(p,s){if(!p.compareDocumentPosition||!s.compareDocumentPosition){if(p==s)v=true;return p.compareDocumentPosition?-1:1}p=p.compareDocumentPosition(s)&4?-1:p===s?0:1;if(p===0)v=true;return p};else if("sourceIndex"in H.documentElement)R=function(p,s){if(!p.sourceIndex||!s.sourceIndex){if(p==s)v=true;return p.sourceIndex?-1:1}p=p.sourceIndex-s.sourceIndex;if(p===0)v=true;return p};else if(H.createRange)R=function(p,s){if(!p.ownerDocument||!s.ownerDocument){if(p==
s)v=true;return p.ownerDocument?-1:1}var A=p.ownerDocument.createRange(),C=s.ownerDocument.createRange();A.setStart(p,0);A.setEnd(p,0);C.setStart(s,0);C.setEnd(s,0);p=A.compareBoundaryPoints(Range.START_TO_END,C);if(p===0)v=true;return p};(function(){var p=H.createElement("div"),s="script"+(new Date).getTime();p.innerHTML="<a name='"+s+"'/>";var A=H.documentElement;A.insertBefore(p,A.firstChild);if(H.getElementById(s)){F.find.ID=function(C,I,G){if(typeof I.getElementById!=="undefined"&&!G)return(I=
I.getElementById(C[1]))?I.id===C[1]||typeof I.getAttributeNode!=="undefined"&&I.getAttributeNode("id").nodeValue===C[1]?[I]:g:[]};F.filter.ID=function(C,I){var G=typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id");return C.nodeType===1&&G&&G.nodeValue===I}}A.removeChild(p);A=p=null})();(function(){var p=H.createElement("div");p.appendChild(H.createComment(""));if(p.getElementsByTagName("*").length>0)F.find.TAG=function(s,A){A=A.getElementsByTagName(s[1]);if(s[1]==="*"){s=[];for(var C=
0;A[C];C++)A[C].nodeType===1&&s.push(A[C]);A=s}return A};p.innerHTML="<a href='#'></a>";if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#")F.attrHandle.href=function(s){return s.getAttribute("href",2)};p=null})();H.querySelectorAll&&function(){var p=B,s=H.createElement("div");s.innerHTML="<p class='TEST'></p>";if(!(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0)){B=function(C,I,G,L){I=I||H;if(!L&&I.nodeType===9&&!N(I))try{return Q(I.querySelectorAll(C),
G)}catch(K){}return p(C,I,G,L)};for(var A in p)B[A]=p[A];s=null}}();(function(){var p=H.createElement("div");p.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!p.getElementsByClassName||p.getElementsByClassName("e").length===0)){p.lastChild.className="e";if(p.getElementsByClassName("e").length!==1){F.order.splice(1,0,"CLASS");F.find.CLASS=function(s,A,C){if(typeof A.getElementsByClassName!=="undefined"&&!C)return A.getElementsByClassName(s[1])};p=null}}})();var W=H.compareDocumentPosition?
function(p,s){return!!(p.compareDocumentPosition(s)&16)}:function(p,s){return p!==s&&(p.contains?p.contains(s):true)},N=function(p){return(p=(p?p.ownerDocument||p:0).documentElement)?p.nodeName!=="HTML":false},ta=function(p,s){var A=[],C="",I;for(s=s.nodeType?[s]:s;I=F.match.PSEUDO.exec(p);){C+=I[0];p=p.replace(F.match.PSEUDO,"")}p=F.relative[p]?p+"*":p;I=0;for(var G=s.length;I<G;I++)B(p,s[I],A);return B.filter(C,A)};d.find=B;d.expr=B.selectors;d.expr[":"]=d.expr.filters;d.unique=B.uniqueSort;d.text=
a;d.isXMLDoc=N;d.contains=W})();var gb=/Until$/,hb=/^(?:parents|prevUntil|prevAll)/,ib=/,/;ha=Array.prototype.slice;var Na=function(a,b,i){if(d.isFunction(b))return d.grep(a,function(m,u){return!!b.call(m,u,m)===i});else if(b.nodeType)return d.grep(a,function(m){return m===b===i});else if(typeof b==="string"){var l=d.grep(a,function(m){return m.nodeType===1});if(Wa.test(b))return d.filter(b,l,!i);else b=d.filter(b,l)}return d.grep(a,function(m){return d.inArray(m,b)>=0===i})};d.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),i=0,l=0,m=this.length;l<m;l++){i=b.length;d.find(a,this[l],b);if(l>0)for(var u=i;u<b.length;u++)for(var v=0;v<i;v++)if(b[v]===b[u]){b.splice(u--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var i=0,l=b.length;i<l;i++)if(d.contains(this,b[i]))return true})},not:function(a){return this.pushStack(Na(this,a,false),"not",a)},filter:function(a){return this.pushStack(Na(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>
0},closest:function(a,b){if(d.isArray(a)){var i=[],l=this[0],m,u={},v;if(l&&a.length){m=0;for(var D=a.length;m<D;m++){v=a[m];u[v]||(u[v]=d.expr.match.POS.test(v)?d(v,b||this.context):v)}for(;l&&l.ownerDocument&&l!==b;){for(v in u){m=u[v];if(m.jquery?m.index(l)>-1:d(l).is(m)){i.push({selector:v,elem:l});delete u[v]}}l=l.parentNode}}return i}var B=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(F,J){for(;J&&J.ownerDocument&&J!==b;){if(B?B.index(J)>-1:d(J).is(a))return J;
J=J.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.merge(this.get(),a);return this.pushStack(!a[0]||!a[0].parentNode||a[0].parentNode.nodeType===11||!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11?b:d.unique(b))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=
a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,i){return d.dir(a,"parentNode",i)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,i){return d.dir(a,"nextSibling",i)},prevUntil:function(a,b,i){return d.dir(a,"previousSibling",i)},siblings:function(a){return d.sibling(a.parentNode.firstChild,
a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(i,l){var m=d.map(this,b,i);gb.test(a)||(l=i);if(l&&typeof l==="string")m=d.filter(l,m);m=this.length>1?d.unique(m):m;if((this.length>1||ib.test(l))&&hb.test(a))m=m.reverse();return this.pushStack(m,a,ha.call(arguments).join(","))}});d.extend({filter:function(a,b,i){if(i)a=":not("+a+")";return d.find.matches(a,
b)},dir:function(a,b,i){var l=[];for(a=a[b];a&&a.nodeType!==9&&(i===g||a.nodeType!==1||!d(a).is(i));){a.nodeType===1&&l.push(a);a=a[b]}return l},nth:function(a,b,i){for(var l=0;a;a=a[i])if(a.nodeType===1&&++l===(b||1))break;return a},sibling:function(a,b){for(var i=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&i.push(a);return i}});var Oa=/ jQuery\d+="(?:\d+|null)"/g,ka=/^\s+/,Pa=/(<([\w:]+)[^>]*?)\/>/g,jb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Qa=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,
za=/<script|<object|<embed|<option|<style/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ra=function(a,b,i){return jb.test(i)?a:b+"></"+i+">"},X={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,"",""]};X.optgroup=X.option;X.tbody=X.tfoot=
X.colgroup=X.caption=X.thead;X.th=X.td;if(!d.support.htmlSerialize)X._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var i=d(this);i.text(a.call(this,b,i.text()))});if(typeof a!=="object"&&a!==g)return this.empty().append((this[0]&&this[0].ownerDocument||H).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(i){d(this).wrapAll(a.call(this,i))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var i=this;i.firstChild&&i.firstChild.nodeType===1;)i=i.firstChild;return i}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),i=b.contents();i.length?i.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,
"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var i=0,l;(l=this[i])!=null;i++)if(!a||d.filter(a,[l]).length){if(!b&&l.nodeType===1){d.cleanData(l.getElementsByTagName("*"));d.cleanData([l])}l.parentNode&&
l.parentNode.removeChild(l)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var i=this.outerHTML,l=this.ownerDocument;if(!i){i=l.createElement("div");i.appendChild(this.cloneNode(true));i=i.innerHTML}return d.clean([i.replace(Oa,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ka,
"")],l)[0]}else return this.cloneNode(true)});if(a===true){r(this,b);r(this.find("*"),b.find("*"))}return b},html:function(a){if(a===g)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Oa,""):null;else if(typeof a==="string"&&!za.test(a)&&(d.support.leadingWhitespace||!ka.test(a))&&!X[(Qa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Pa,Ra);try{for(var b=0,i=this.length;b<i;b++)if(this[b].nodeType===1){d.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(l){this.empty().append(a)}}else d.isFunction(a)?
this.each(function(m){var u=d(this),v=u.html();u.empty().append(function(){return a.call(this,m,v)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var i=d(this),l=i.html();i.replaceWith(a.call(this,b,l))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var b=this.nextSibling,i=this.parentNode;d(this).remove();b?d(b).before(a):d(i).append(a)})}else return this.pushStack(d(d.isFunction(a)?
a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,i){var l,m,u=a[0],v=[],D;if(!d.support.checkClone&&arguments.length===3&&typeof u==="string"&&Aa.test(u))return this.each(function(){d(this).domManip(a,b,i,true)});if(d.isFunction(u))return this.each(function(F){var J=d(this);a[0]=u.call(this,F,b?J.html():g);J.domManip(a,b,i)});if(this[0]){l=u&&u.parentNode;l=d.support.parentNode&&l&&l.nodeType===11&&l.childNodes.length===this.length?{fragment:l}:w(a,this,
v);D=l.fragment;if(m=D.childNodes.length===1?(D=D.firstChild):D.firstChild){b=b&&d.nodeName(m,"tr");m=0;for(var B=this.length;m<B;m++)i.call(b?d.nodeName(this[m],"table")?this[m].getElementsByTagName("tbody")[0]||this[m].appendChild(this[m].ownerDocument.createElement("tbody")):this[m]:this[m],m>0||l.cacheable||this.length>1?D.cloneNode(true):D)}v.length&&d.each(v,f)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){d.fn[a]=function(i){var l=[];i=d(i);var m=this.length===1&&this[0].parentNode;if(m&&m.nodeType===11&&m.childNodes.length===1&&i.length===1){i[b](this[0]);return this}else{m=0;for(var u=i.length;m<u;m++){var v=(m>0?this.clone(true):this).get();d.fn[b].apply(d(i[m]),v);l=l.concat(v)}return this.pushStack(l,a,i.selector)}}});d.extend({clean:function(a,b,i,l){b=b||H;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||H;for(var m=[],u=0,v;(v=a[u])!=null;u++){if(typeof v===
"number")v+="";if(v){if(typeof v==="string"&&!lb.test(v))v=b.createTextNode(v);else if(typeof v==="string"){v=v.replace(Pa,Ra);var D=(Qa.exec(v)||["",""])[1].toLowerCase(),B=X[D]||X._default,F=B[0],J=b.createElement("div");for(J.innerHTML=B[1]+v+B[2];F--;)J=J.lastChild;if(!d.support.tbody){F=kb.test(v);D=D==="table"&&!F?J.firstChild&&J.firstChild.childNodes:B[1]==="<table>"&&!F?J.childNodes:[];for(B=D.length-1;B>=0;--B)d.nodeName(D[B],"tbody")&&!D[B].childNodes.length&&D[B].parentNode.removeChild(D[B])}!d.support.leadingWhitespace&&
ka.test(v)&&J.insertBefore(b.createTextNode(ka.exec(v)[0]),J.firstChild);v=J.childNodes}if(v.nodeType)m.push(v);else m=d.merge(m,v)}}if(i)for(u=0;m[u];u++)if(l&&d.nodeName(m[u],"script")&&(!m[u].type||m[u].type.toLowerCase()==="text/javascript"))l.push(m[u].parentNode?m[u].parentNode.removeChild(m[u]):m[u]);else{m[u].nodeType===1&&m.splice.apply(m,[u+1,0].concat(d.makeArray(m[u].getElementsByTagName("script"))));i.appendChild(m[u])}return m},cleanData:function(a){for(var b,i,l=d.cache,m=d.event.special,
u=d.support.deleteExpando,v=0,D;(D=a[v])!=null;v++)if(i=D[d.expando]){b=l[i];if(b.events)for(var B in b.events)m[B]?d.event.remove(D,B):Ha(D,B,b.handle);if(u)delete D[d.expando];else D.removeAttribute&&D.removeAttribute(d.expando);delete l[i]}}});var mb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Sa=/alpha\([^)]*\)/,Ta=/opacity=([^)]*)/,ua=/float/i,va=/-([a-z])/ig,nb=/([A-Z])/g,ob=/^-?\d+(?:px)?$/i,pb=/^-?\d/,qb={position:"absolute",visibility:"hidden",display:"block"},rb=["Left","Right"],
sb=["Top","Bottom"],tb=H.defaultView&&H.defaultView.getComputedStyle,Ua=d.support.cssFloat?"cssFloat":"styleFloat",wa=function(a,b){return b.toUpperCase()};d.fn.css=function(a,b){return j(this,a,b,true,function(i,l,m){if(m===g)return d.curCSS(i,l);if(typeof m==="number"&&!mb.test(l))m+="px";d.style(i,l,m)})};d.extend({style:function(a,b,i){if(!a||a.nodeType===3||a.nodeType===8)return g;if((b==="width"||b==="height")&&parseFloat(i)<0)i=g;var l=a.style||a,m=i!==g;if(!d.support.opacity&&b==="opacity"){if(m){l.zoom=
1;b=parseInt(i,10)+""==="NaN"?"":"alpha(opacity="+i*100+")";a=l.filter||d.curCSS(a,"filter")||"";l.filter=Sa.test(a)?a.replace(Sa,b):b}return l.filter&&l.filter.indexOf("opacity=")>=0?parseFloat(Ta.exec(l.filter)[1])/100+"":""}if(ua.test(b))b=Ua;b=b.replace(va,wa);if(m)l[b]=i;return l[b]},css:function(a,b,i,l){if(b==="width"||b==="height"){var m,u=b==="width"?rb:sb;i=function(){m=b==="width"?a.offsetWidth:a.offsetHeight;l!=="border"&&d.each(u,function(){l||(m-=parseFloat(d.curCSS(a,"padding"+this,
true))||0);if(l==="margin")m+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else m-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?i():d.swap(a,qb,i);return Math.max(0,Math.round(m))}return d.curCSS(a,b,i)},curCSS:function(a,b,i){var l,m=a.style;if(!d.support.opacity&&b==="opacity"&&a.currentStyle){l=Ta.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return l===""?"1":l}if(ua.test(b))b=Ua;if(!i&&m&&m[b])l=m[b];else if(tb){if(ua.test(b))b="float";b=b.replace(nb,
"-$1").toLowerCase();m=a.ownerDocument.defaultView;if(!m)return null;if(a=m.getComputedStyle(a,null))l=a.getPropertyValue(b);if(b==="opacity"&&l==="")l="1"}else if(a.currentStyle){i=b.replace(va,wa);l=a.currentStyle[b]||a.currentStyle[i];if(!ob.test(l)&&pb.test(l)){b=m.left;var u=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;m.left=i==="fontSize"?"1em":l||0;l=m.pixelLeft+"px";m.left=b;a.runtimeStyle.left=u}}return l},swap:function(a,b,i){var l={};for(var m in b){l[m]=a.style[m];a.style[m]=
b[m]}i.call(a);for(m in b)a.style[m]=l[m]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var b=a.offsetWidth,i=a.offsetHeight,l=a.nodeName.toLowerCase()==="tr";return b===0&&i===0&&!l?true:b>0&&i>0&&!l?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var ub=k(),vb=/<script(.|\s)*?\/script>/gi,wb=/select|textarea/i,xb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,da=/=\?(&|$)/,
xa=/\?/,yb=/(\?|&)_=.*?(&|$)/,zb=/^(\w+:)?\/\/([^\/?#]+)/,Ab=/%20/g,Bb=d.fn.load;d.fn.extend({load:function(a,b,i){if(typeof a!=="string")return Bb.call(this,a);else if(!this.length)return this;var l=a.indexOf(" ");if(l>=0){var m=a.slice(l,a.length);a=a.slice(0,l)}l="GET";if(b)if(d.isFunction(b)){i=b;b=null}else if(typeof b==="object"){b=d.param(b,d.ajaxSettings.traditional);l="POST"}var u=this;d.ajax({url:a,type:l,dataType:"html",data:b,complete:function(v,D){if(D==="success"||D==="notmodified")u.html(m?
d("<div />").append(v.responseText.replace(vb,"")).find(m):v.responseText);i&&u.each(i,[v.responseText,D,v])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||wb.test(this.nodeName)||xb.test(this.type))}).map(function(a,b){a=d(this).val();return a==null?null:d.isArray(a)?d.map(a,function(i){return{name:b.name,
value:i}}):{name:b.name,value:a}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(i){return this.bind(b,i)}});d.extend({get:function(a,b,i,l){if(d.isFunction(b)){l=l||i;i=b;b=null}return d.ajax({type:"GET",url:a,data:b,success:i,dataType:l})},getScript:function(a,b){return d.get(a,null,b,"script")},getJSON:function(a,b,i){return d.get(a,b,i,"json")},post:function(a,b,i,l){if(d.isFunction(b)){l=l||i;i=b;b={}}return d.ajax({type:"POST",
url:a,data:b,success:i,dataType:l})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:c.XMLHttpRequest&&(c.location.protocol!=="file:"||!c.ActiveXObject)?function(){return new c.XMLHttpRequest}:function(){try{return new c.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){m.success&&m.success.call(B,D,v,N);m.global&&l("ajaxSuccess",[N,m])}function i(){m.complete&&m.complete.call(B,N,v);m.global&&l("ajaxComplete",[N,m]);m.global&&!--d.active&&d.event.trigger("ajaxStop")}function l(I,G){(m.context?d(m.context):d.event).trigger(I,G)}var m=d.extend(true,{},d.ajaxSettings,a),u,v,D,B=a&&a.context||m,F=m.type.toUpperCase();if(m.data&&m.processData&&
typeof m.data!=="string")m.data=d.param(m.data,m.traditional);if(m.dataType==="jsonp"){if(F==="GET")da.test(m.url)||(m.url+=(xa.test(m.url)?"&":"?")+(m.jsonp||"callback")+"=?");else if(!m.data||!da.test(m.data))m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?";m.dataType="json"}if(m.dataType==="json"&&(m.data&&da.test(m.data)||da.test(m.url))){u=m.jsonpCallback||"jsonp"+ub++;if(m.data)m.data=(m.data+"").replace(da,"="+u+"$1");m.url=m.url.replace(da,"="+u+"$1");m.dataType="script";c[u]=c[u]||
function(I){D=I;b();i();c[u]=g;try{delete c[u]}catch(G){}Q&&Q.removeChild(S)}}if(m.dataType==="script"&&m.cache===null)m.cache=false;if(m.cache===false&&F==="GET"){var J=k(),M=m.url.replace(yb,"$1_="+J+"$2");m.url=M+(M===m.url?(xa.test(m.url)?"&":"?")+"_="+J:"")}if(m.data&&F==="GET")m.url+=(xa.test(m.url)?"&":"?")+m.data;m.global&&!d.active++&&d.event.trigger("ajaxStart");J=(J=zb.exec(m.url))&&(J[1]&&J[1]!==location.protocol||J[2]!==location.host);if(m.dataType==="script"&&F==="GET"&&J){var Q=H.getElementsByTagName("head")[0]||
H.documentElement,S=H.createElement("script");S.src=m.url;if(m.scriptCharset)S.charset=m.scriptCharset;if(!u){var R=false;S.onload=S.onreadystatechange=function(){if(!R&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){R=true;b();i();S.onload=S.onreadystatechange=null;Q&&S.parentNode&&Q.removeChild(S)}}}Q.insertBefore(S,Q.firstChild);return g}var W=false,N=m.xhr();if(N){m.username?N.open(F,m.url,m.async,m.username,m.password):N.open(F,m.url,m.async);try{if(m.data||a&&
a.contentType)N.setRequestHeader("Content-Type",m.contentType);if(m.ifModified){d.lastModified[m.url]&&N.setRequestHeader("If-Modified-Since",d.lastModified[m.url]);d.etag[m.url]&&N.setRequestHeader("If-None-Match",d.etag[m.url])}J||N.setRequestHeader("X-Requested-With","XMLHttpRequest");N.setRequestHeader("Accept",m.dataType&&m.accepts[m.dataType]?m.accepts[m.dataType]+", */*":m.accepts._default)}catch(ta){}if(m.beforeSend&&m.beforeSend.call(B,N,m)===false){m.global&&!--d.active&&d.event.trigger("ajaxStop");
N.abort();return false}m.global&&l("ajaxSend",[N,m]);var p=N.onreadystatechange=function(I){if(!N||N.readyState===0||I==="abort"){W||i();W=true;if(N)N.onreadystatechange=d.noop}else if(!W&&N&&(N.readyState===4||I==="timeout")){W=true;N.onreadystatechange=d.noop;v=I==="timeout"?"timeout":!d.httpSuccess(N)?"error":m.ifModified&&d.httpNotModified(N,m.url)?"notmodified":"success";var G;if(v==="success")try{D=d.httpData(N,m.dataType,m)}catch(L){v="parsererror";G=L}if(v==="success"||v==="notmodified")u||
b();else d.handleError(m,N,v,G);i();I==="timeout"&&N.abort();if(m.async)N=null}};try{var s=N.abort;N.abort=function(){N&&s.call(N);p("abort")}}catch(A){}m.async&&m.timeout>0&&setTimeout(function(){N&&!W&&p("timeout")},m.timeout);try{N.send(F==="POST"||F==="PUT"||F==="DELETE"?m.data:null)}catch(C){d.handleError(m,N,null,C);i()}m.async||p();return N}},handleError:function(a,b,i,l){if(a.error)a.error.call(a.context||a,b,i,l);if(a.global)(a.context?d(a.context):d.event).trigger("ajaxError",[b,a,l])},
active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var i=a.getResponseHeader("Last-Modified"),l=a.getResponseHeader("Etag");if(i)d.lastModified[b]=i;if(l)d.etag[b]=l;return a.status===304||a.status===0},httpData:function(a,b,i){var l=a.getResponseHeader("content-type")||"",m=b==="xml"||!b&&l.indexOf("xml")>=0;a=m?a.responseXML:a.responseText;
m&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(i&&i.dataFilter)a=i.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&l.indexOf("json")>=0)a=d.parseJSON(a);else if(b==="script"||!b&&l.indexOf("javascript")>=0)d.globalEval(a);return a},param:function(a,b){function i(v,D){if(d.isArray(D))d.each(D,function(B,F){b||/\[\]$/.test(v)?l(v,F):i(v+"["+(typeof F==="object"||d.isArray(F)?B:"")+"]",F)});else!b&&D!=null&&typeof D==="object"?d.each(D,function(B,F){i(v+"["+B+"]",
F)}):l(v,D)}function l(v,D){D=d.isFunction(D)?D():D;m[m.length]=encodeURIComponent(v)+"="+encodeURIComponent(D)}var m=[];if(b===g)b=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){l(this.name,this.value)});else for(var u in a)i(u,a[u]);return m.join("&").replace(Ab,"+")}});var ya={},Cb=/toggle|show|hide/,Db=/^([+-]=)?([\d+-.]+)(.*)$/,la,Ba=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];d.fn.extend({show:function(a,b){if(a||a===0)return this.animate(z("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var i=d.data(this[a],"olddisplay");this[a].style.display=i||"";if(d.css(this[a],"display")==="none"){i=this[a].nodeName;var l;if(ya[i])l=ya[i];else{var m=d("<"+i+" />").appendTo("body");l=m.css("display");if(l==="none")l="block";m.remove();ya[i]=l}d.data(this[a],"olddisplay",l)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=d.data(this[a],"olddisplay")||"";return this}},
hide:function(a,b){if(a||a===0)return this.animate(z("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var i=d.data(this[a],"olddisplay");!i&&i!=="none"&&d.data(this[a],"olddisplay",d.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(a,b){var i=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(b))this._toggle.apply(this,arguments);else a==null||i?this.each(function(){var l=i?a:d(this).is(":hidden");d(this)[l?"show":
"hide"]()}):this.animate(z("toggle",3),a,b);return this},fadeTo:function(a,b,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,i)},animate:function(a,b,i,l){var m=d.speed(b,i,l);if(d.isEmptyObject(a))return this.each(m.complete);return this[m.queue===false?"each":"queue"](function(){var u=d.extend({},m),v,D=this.nodeType===1&&d(this).is(":hidden"),B=this;for(v in a){var F=v.replace(va,wa);if(v!==F){a[F]=a[v];delete a[v];v=F}if(a[v]==="hide"&&D||a[v]==="show"&&!D)return u.complete.call(this);
if((v==="height"||v==="width")&&this.style){u.display=d.css(this,"display");u.overflow=this.style.overflow}if(d.isArray(a[v])){(u.specialEasing=u.specialEasing||{})[v]=a[v][1];a[v]=a[v][0]}}if(u.overflow!=null)this.style.overflow="hidden";u.curAnim=d.extend({},a);d.each(a,function(J,M){var Q=new d.fx(B,u,J);if(Cb.test(M))Q[M==="toggle"?D?"show":"hide":M](a);else{var S=Db.exec(M),R=Q.cur(true)||0;if(S){M=parseFloat(S[2]);var W=S[3]||"px";if(W!=="px"){B.style[J]=(M||1)+W;R=(M||1)/Q.cur(true)*R;B.style[J]=
R+W}if(S[1])M=(S[1]==="-="?-1:1)*M+R;Q.custom(R,M,W)}else Q.custom(R,M,"")}});return true})},stop:function(a,b){var i=d.timers;a&&this.queue([]);this.each(function(){for(var l=i.length-1;l>=0;l--)if(i[l].elem===this){b&&i[l](true);i.splice(l,1)}});b||this.dequeue();return this}});d.each({slideDown:z("show",1),slideUp:z("hide",1),slideToggle:z("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){d.fn[a]=function(i,l){return this.animate(b,i,l)}});d.extend({speed:function(a,b,
i){var l=a&&typeof a==="object"?a:{complete:i||!i&&b||d.isFunction(a)&&a,duration:a,easing:i&&b||b&&!d.isFunction(b)&&b};l.duration=d.fx.off?0:typeof l.duration==="number"?l.duration:d.fx.speeds[l.duration]||d.fx.speeds._default;l.old=l.complete;l.complete=function(){l.queue!==false&&d(this).dequeue();d.isFunction(l.old)&&l.old.call(this)};return l},easing:{linear:function(a,b,i,l){return i+l*a},swing:function(a,b,i,l){return(-Math.cos(a*Math.PI)/2+0.5)*l+i}},timers:[],fx:function(a,b,i){this.options=
b;this.elem=a;this.prop=i;if(!b.orig)b.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,
this.prop))||0},custom:function(a,b,i){function l(u){return m.step(u)}this.startTime=k();this.start=a;this.end=b;this.unit=i||this.unit||"px";this.now=this.start;this.pos=this.state=0;var m=this;l.elem=this.elem;if(l()&&d.timers.push(l)&&!la)la=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=
d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=k(),i=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var l in this.options.curAnim)if(this.options.curAnim[l]!==true)i=false;if(i){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(d.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var m in this.options.curAnim)d.style(this.elem,m,this.options.orig[m]);this.options.complete.call(this.elem)}return false}else{m=b-this.startTime;this.state=m/this.options.duration;a=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,m,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},stop:function(){clearInterval(la);la=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=
a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};d.fn.offset="getBoundingClientRect"in H.documentElement?function(a){var b=this[0];if(a)return this.each(function(m){d.offset.setOffset(this,a,m)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);var i=b.getBoundingClientRect(),l=b.ownerDocument;b=l.body;l=l.documentElement;return{top:i.top+(self.pageYOffset||d.support.boxModel&&
l.scrollTop||b.scrollTop)-(l.clientTop||b.clientTop||0),left:i.left+(self.pageXOffset||d.support.boxModel&&l.scrollLeft||b.scrollLeft)-(l.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(J){d.offset.setOffset(this,a,J)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var i=b.offsetParent,l=b,m=b.ownerDocument,u,v=m.documentElement,D=m.body;l=(m=m.defaultView)?m.getComputedStyle(b,null):b.currentStyle;
for(var B=b.offsetTop,F=b.offsetLeft;(b=b.parentNode)&&b!==D&&b!==v;){if(d.offset.supportsFixedPosition&&l.position==="fixed")break;u=m?m.getComputedStyle(b,null):b.currentStyle;B-=b.scrollTop;F-=b.scrollLeft;if(b===i){B+=b.offsetTop;F+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){B+=parseFloat(u.borderTopWidth)||0;F+=parseFloat(u.borderLeftWidth)||0}l=i;i=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&u.overflow!==
"visible"){B+=parseFloat(u.borderTopWidth)||0;F+=parseFloat(u.borderLeftWidth)||0}l=u}if(l.position==="relative"||l.position==="static"){B+=D.offsetTop;F+=D.offsetLeft}if(d.offset.supportsFixedPosition&&l.position==="fixed"){B+=Math.max(v.scrollTop,D.scrollTop);F+=Math.max(v.scrollLeft,D.scrollLeft)}return{top:B,left:F}};d.offset={initialize:function(){var a=H.body,b=H.createElement("div"),i,l,m,u=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);i=b.firstChild;l=i.firstChild;m=i.nextSibling.firstChild.firstChild;this.doesNotAddBorder=l.offsetTop!==5;this.doesAddBorderForTableAndCells=
m.offsetTop===5;l.style.position="fixed";l.style.top="20px";this.supportsFixedPosition=l.offsetTop===20||l.offsetTop===15;l.style.position=l.style.top="";i.style.overflow="hidden";i.style.position="relative";this.subtractsBorderForOverflowNotVisible=l.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==u;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,i=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,
"marginTop",true))||0;i+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:i}},setOffset:function(a,b,i){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var l=d(a),m=l.offset(),u=parseInt(d.curCSS(a,"top",true),10)||0,v=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,i,m);i={top:b.top-m.top+u,left:b.left-m.left+v};"using"in b?b.using.call(a,i):l.css(i)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),
i=this.offset(),l=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();i.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;i.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;l.top+=parseFloat(d.curCSS(b[0],"borderTopWidth",true))||0;l.left+=parseFloat(d.curCSS(b[0],"borderLeftWidth",true))||0;return{top:i.top-l.top,left:i.left-l.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||H.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=
a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var i="scroll"+b;d.fn[i]=function(l){var m=this[0],u;if(!m)return null;return l!==g?this.each(function(){if(u=E(this))u.scrollTo(!a?l:d(u).scrollLeft(),a?l:d(u).scrollTop());else this[i]=l}):(u=E(m))?"pageXOffset"in u?u[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&u.document.documentElement[i]||u.document.body[i]:m[i]}});d.each(["Height","Width"],function(a,b){var i=b.toLowerCase();d.fn["inner"+b]=function(){return this[0]?d.css(this[0],
i,false,"padding"):null};d.fn["outer"+b]=function(l){return this[0]?d.css(this[0],i,false,l?"margin":"border"):null};d.fn[i]=function(l){var m=this[0];if(!m)return l==null?null:this;if(d.isFunction(l))return this.each(function(u){var v=d(this);v[i](l.call(this,u,v[i]()))});return"scrollTo"in m&&m.document?m.document.compatMode==="CSS1Compat"&&m.document.documentElement["client"+b]||m.document.body["client"+b]:m.nodeType===9?Math.max(m.documentElement["client"+b],m.body["scroll"+b],m.documentElement["scroll"+
b],m.body["offset"+b],m.documentElement["offset"+b]):l===g?d.css(m,i):this.css(i,typeof l==="string"?l:l+"px")}});c.jQuery=c.$=d})(window);
jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(g,h,f){g=c.ui[g].prototype;for(var j in f){g.plugins[j]=g.plugins[j]||[];g.plugins[j].push([h,f[j]])}},call:function(g,h,f){if((h=g.plugins[h])&&g.element[0].parentNode)for(var j=0;j<h.length;j++)g.options[h[j][0]]&&h[j][1].apply(g.element,f)}},contains:function(g,h){return document.compareDocumentPosition?g.compareDocumentPosition(h)&16:g!==h&&g.contains(h)},hasScroll:function(g,h){if(c(g).css("overflow")=="hidden")return false;h=
h&&h=="left"?"scrollLeft":"scrollTop";var f=false;if(g[h]>0)return true;g[h]=1;f=g[h]>0;g[h]=0;return f},isOverAxis:function(g,h,f){return g>h&&g<h+f},isOver:function(g,h,f,j,k,o){return c.ui.isOverAxis(g,f,k)&&c.ui.isOverAxis(h,j,o)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};c.fn.extend({_focus:c.fn.focus,focus:function(g,h){return typeof g==="number"?this.each(function(){var f=this;setTimeout(function(){c(f).focus();h&&h.call(f)},g)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var g;g=c.browser.msie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?c(document):g},zIndex:function(g){if(g!==
undefined)return this.css("zIndex",g);if(this.length){g=c(this[0]);for(var h;g.length&&g[0]!==document;){h=g.css("position");if(h=="absolute"||h=="relative"||h=="fixed"){h=parseInt(g.css("zIndex"));if(!isNaN(h)&&h!=0)return h}g=g.parent()}}return 0}});c.extend(c.expr[":"],{data:function(g,h,f){return!!c.data(g,f[3])},focusable:function(g){var h=g.nodeName.toLowerCase(),f=c.attr(g,"tabindex");return(/input|select|textarea|button|object/.test(h)?!g.disabled:"a"==h||"area"==h?g.href||!isNaN(f):!isNaN(f))&&
!c(g)["area"==h?"parents":"closest"](":hidden").length},tabbable:function(g){var h=c.attr(g,"tabindex");return(isNaN(h)||h>=0)&&c(g).is(":focusable")}})}(jQuery);
(function(c){var g=c.fn.remove;c.fn.remove=function(h,f){return this.each(function(){if(!f)if(!h||c.filter(h,[this]).length)c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return g.call(c(this),h,f)})};c.widget=function(h,f,j){var k=h.split(".")[0],o;h=h.split(".")[1];o=k+"-"+h;if(!j){j=f;f=c.Widget}c.expr[":"][o]=function(x){return!!c.data(x,h)};c[k]=c[k]||{};c[k][h]=function(x,y){arguments.length&&this._createWidget(x,y)};f=new f;f.options=c.extend({},f.options);c[k][h].prototype=
c.extend(true,f,{namespace:k,widgetName:h,widgetEventPrefix:c[k][h].prototype.widgetEventPrefix||h,widgetBaseClass:o},j);c.widget.bridge(h,c[k][h])};c.widget.bridge=function(h,f){c.fn[h]=function(j){var k=typeof j==="string",o=Array.prototype.slice.call(arguments,1),x=this;j=!k&&o.length?c.extend.apply(null,[true,j].concat(o)):j;if(k&&j.substring(0,1)==="_")return x;k?this.each(function(){var y=c.data(this,h),q=y&&c.isFunction(y[j])?y[j].apply(y,o):y;if(q!==y&&q!==undefined){x=q;return false}}):this.each(function(){var y=
c.data(this,h);if(y){j&&y.option(j);y._init()}else c.data(this,h,new f(j,this))});return x}};c.Widget=function(h,f){arguments.length&&this._createWidget(h,f)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(h,f){this.element=c(f).data(this.widgetName,this);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(f)[this.widgetName],h);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();
this._init()},_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(h,f){var j=h,k=this;if(arguments.length===0)return c.extend({},k.options);if(typeof h==="string"){if(f===undefined)return this.options[h];j={};j[h]=f}c.each(j,function(o,
x){k._setOption(o,x)});return k},_setOption:function(h,f){this.options[h]=f;if(h==="disabled")this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(h,f,j){var k=this.options[h];f=c.Event(f);f.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase();j=j||{};if(f.originalEvent){h=
c.event.props.length;for(var o;h;){o=c.event.props[--h];f[o]=f.originalEvent[o]}}this.element.trigger(f,j);return!(c.isFunction(k)&&k.call(this.element[0],f,j)===false||f.isDefaultPrevented())}}})(jQuery);
(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var g=this;this.element.bind("mousedown."+this.widgetName,function(h){return g._mouseDown(h)}).bind("click."+this.widgetName,function(h){if(g._preventClickEvent){g._preventClickEvent=false;h.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(g){g.originalEvent=g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(g);this._mouseDownEvent=g;var h=this,f=g.which==1,j=typeof this.options.cancel=="string"?c(g.target).parents().add(g.target).filter(this.options.cancel).length:false;if(!f||j||!this._mouseCapture(g))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){h.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=this._mouseStart(g)!==false;if(!this._mouseStarted){g.preventDefault();
return true}}this._mouseMoveDelegate=function(k){return h._mouseMove(k)};this._mouseUpDelegate=function(k){return h._mouseUp(k)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||g.preventDefault();return g.originalEvent.mouseHandled=true}},_mouseMove:function(g){if(c.browser.msie&&!g.button)return this._mouseUp(g);if(this._mouseStarted){this._mouseDrag(g);return g.preventDefault()}if(this._mouseDistanceMet(g)&&
this._mouseDelayMet(g))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,g)!==false)?this._mouseDrag(g):this._mouseUp(g);return!this._mouseStarted},_mouseUp:function(g){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=g.target==this._mouseDownEvent.target;this._mouseStop(g)}return false},_mouseDistanceMet:function(g){return Math.max(Math.abs(this._mouseDownEvent.pageX-
g.pageX),Math.abs(this._mouseDownEvent.pageY-g.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(c){c.ui=c.ui||{};var g=/left|center|right/,h=/top|center|bottom/,f=c.fn.position,j=c.fn.offset;c.fn.position=function(k){if(!k||!k.of)return f.apply(this,arguments);k=c.extend({},k);var o=c(k.of),x=(k.collision||"flip").split(" "),y=k.offset?k.offset.split(" "):[0,0],q,n,r;if(k.of.nodeType===9){q=o.width();n=o.height();r={top:0,left:0}}else if(k.of.scrollTo&&k.of.document){q=o.width();n=o.height();r={top:o.scrollTop(),left:o.scrollLeft()}}else if(k.of.preventDefault){k.at="left top";q=n=
0;r={top:k.of.pageY,left:k.of.pageX}}else{q=o.outerWidth();n=o.outerHeight();r=o.offset()}c.each(["my","at"],function(){var w=(k[this]||"").split(" ");if(w.length===1)w=g.test(w[0])?w.concat(["center"]):h.test(w[0])?["center"].concat(w):["center","center"];w[0]=g.test(w[0])?w[0]:"center";w[1]=h.test(w[1])?w[1]:"center";k[this]=w});if(x.length===1)x[1]=x[0];y[0]=parseInt(y[0],10)||0;if(y.length===1)y[1]=y[0];y[1]=parseInt(y[1],10)||0;if(k.at[0]==="right")r.left+=q;else if(k.at[0]==="center")r.left+=
q/2;if(k.at[1]==="bottom")r.top+=n;else if(k.at[1]==="center")r.top+=n/2;r.left+=y[0];r.top+=y[1];return this.each(function(){var w=c(this),z=w.outerWidth(),E=w.outerHeight(),d=c.extend({},r);if(k.my[0]==="right")d.left-=z;else if(k.my[0]==="center")d.left-=z/2;if(k.my[1]==="bottom")d.top-=E;else if(k.my[1]==="center")d.top-=E/2;d.left=parseInt(d.left);d.top=parseInt(d.top);c.each(["left","top"],function(P,T){c.ui.position[x[P]]&&c.ui.position[x[P]][T](d,{targetWidth:q,targetHeight:n,elemWidth:z,
elemHeight:E,offset:y,my:k.my,at:k.at})});c.fn.bgiframe&&w.bgiframe();w.offset(c.extend(d,{using:k.using}))})};c.ui.position={fit:{left:function(k,o){var x=c(window);o=k.left+o.elemWidth-x.width()-x.scrollLeft();k.left=o>0?k.left-o:Math.max(0,k.left)},top:function(k,o){var x=c(window);o=k.top+o.elemHeight-x.height()-x.scrollTop();k.top=o>0?k.top-o:Math.max(0,k.top)}},flip:{left:function(k,o){if(o.at[0]!=="center"){var x=c(window);x=k.left+o.elemWidth-x.width()-x.scrollLeft();var y=o.my[0]==="left"?
-o.elemWidth:o.my[0]==="right"?o.elemWidth:0,q=-2*o.offset[0];k.left+=k.left<0?y+o.targetWidth+q:x>0?y-o.targetWidth+q:0}},top:function(k,o){if(o.at[1]!=="center"){var x=c(window);x=k.top+o.elemHeight-x.height()-x.scrollTop();var y=o.my[1]==="top"?-o.elemHeight:o.my[1]==="bottom"?o.elemHeight:0,q=o.at[1]==="top"?o.targetHeight:-o.targetHeight,n=-2*o.offset[1];k.top+=k.top<0?y+o.targetHeight+n:x>0?y+q+n:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(k,o){if(/static/.test(c.curCSS(k,"position")))k.style.position=
"relative";var x=c(k),y=x.offset(),q=parseInt(c.curCSS(k,"top",true),10)||0,n=parseInt(c.curCSS(k,"left",true),10)||0;y={top:o.top-y.top+q,left:o.left-y.left+n};"using"in o?o.using.call(k,y):x.css(y)};c.fn.offset=function(k){var o=this[0];if(!o||!o.ownerDocument)return null;if(k)return this.each(function(){c.offset.setOffset(this,k)});return j.call(this)}}})(jQuery);
(function(c){c.widget("ui.draggable",c.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(g){var h=
this.options;if(this.helper||h.disabled||c(g.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(g);if(!this.handle)return false;return true},_mouseStart:function(g){var h=this.options;this.helper=this._createHelper(g);this._cacheHelperProportions();if(c.ui.ddmanager)c.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};c.extend(this.offset,{click:{left:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(g);this.originalPageX=g.pageX;this.originalPageY=g.pageY;h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt);h.containment&&this._setContainment();if(this._trigger("start",g)===false){this._clear();return false}this._cacheHelperProportions();
c.ui.ddmanager&&!h.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,g);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(g,true);return true},_mouseDrag:function(g,h){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!h){h=this._uiHash();if(this._trigger("drag",g,h)===false){this._mouseUp({});return false}this.position=h.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";c.ui.ddmanager&&c.ui.ddmanager.drag(this,g);return false},_mouseStop:function(g){var h=false;if(c.ui.ddmanager&&!this.options.dropBehaviour)h=c.ui.ddmanager.drop(this,g);if(this.dropped){h=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!h||this.options.revert=="valid"&&h||this.options.revert===true||c.isFunction(this.options.revert)&&this.options.revert.call(this.element,
h)){var f=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",g)!==false&&f._clear()})}else this._trigger("stop",g)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(g){var h=!this.options.handle||!c(this.options.handle,this.element).length?true:false;c(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
g.target)h=true});return h},_createHelper:function(g){var h=this.options;g=c.isFunction(h.helper)?c(h.helper.apply(this.element[0],[g])):h.helper=="clone"?this.element.clone():this.element;g.parents("body").length||g.appendTo(h.appendTo=="parent"?this.element[0].parentNode:h.appendTo);g[0]!=this.element[0]&&!/(fixed|absolute)/.test(g.css("position"))&&g.css("position","absolute");return g},_adjustOffsetFromHelper:function(g){if(typeof g=="string")g=g.split(" ");if(c.isArray(g))g={left:+g[0],top:+g[1]||
0};if("left"in g)this.offset.click.left=g.left+this.margins.left;if("right"in g)this.offset.click.left=this.helperProportions.width-g.right+this.margins.left;if("top"in g)this.offset.click.top=g.top+this.margins.top;if("bottom"in g)this.offset.click.top=this.helperProportions.height-g.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var g=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
this.offsetParent[0])){g.left+=this.scrollParent.scrollLeft();g.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)g={top:0,left:0};return{top:g.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:g.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var g=this.element.position();return{top:g.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:g.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 g=this.options;if(g.containment==
"parent")g.containment=this.helper[0].parentNode;if(g.containment=="document"||g.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(g.containment)&&
g.containment.constructor!=Array){var h=c(g.containment)[0];if(h){g=c(g.containment).offset();var f=c(h).css("overflow")!="hidden";this.containment=[g.left+(parseInt(c(h).css("borderLeftWidth"),10)||0)+(parseInt(c(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(c(h).css("borderTopWidth"),10)||0)+(parseInt(c(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(f?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(c(h).css("borderLeftWidth"),10)||0)-(parseInt(c(h).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,g.top+(f?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(c(h).css("borderTopWidth"),10)||0)-(parseInt(c(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(g.containment.constructor==Array)this.containment=g.containment},_convertPositionTo:function(g,h){if(!h)h=this.position;g=g=="absolute"?1:-1;var f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=/(html|body)/i.test(f[0].tagName);return{top:h.top+this.offset.relative.top*g+this.offset.parent.top*g-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():j?0:f.scrollTop())*g),left:h.left+this.offset.relative.left*g+this.offset.parent.left*g-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
j?0:f.scrollLeft())*g)}},_generatePosition:function(g){var h=this.options,f=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=/(html|body)/i.test(f[0].tagName),k=g.pageX,o=g.pageY;if(this.originalPosition){if(this.containment){if(g.pageX-this.offset.click.left<this.containment[0])k=this.containment[0]+this.offset.click.left;if(g.pageY-this.offset.click.top<this.containment[1])o=this.containment[1]+
this.offset.click.top;if(g.pageX-this.offset.click.left>this.containment[2])k=this.containment[2]+this.offset.click.left;if(g.pageY-this.offset.click.top>this.containment[3])o=this.containment[3]+this.offset.click.top}if(h.grid){o=this.originalPageY+Math.round((o-this.originalPageY)/h.grid[1])*h.grid[1];o=this.containment?!(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o:!(o-this.offset.click.top<this.containment[1])?o-h.grid[1]:o+h.grid[1]:o;k=this.originalPageX+
Math.round((k-this.originalPageX)/h.grid[0])*h.grid[0];k=this.containment?!(k-this.offset.click.left<this.containment[0]||k-this.offset.click.left>this.containment[2])?k:!(k-this.offset.click.left<this.containment[0])?k-h.grid[0]:k+h.grid[0]:k}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():j?0:f.scrollTop()),left:k-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?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(g,h,f){f=f||this._uiHash();c.ui.plugin.call(this,g,[h,f]);if(g=="drag")this.positionAbs=
this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,g,h,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8.1"});c.ui.plugin.add("draggable","connectToSortable",{start:function(g,h){var f=c(this).data("draggable"),j=f.options,k=c.extend({},h,{item:f.element});f.sortables=[];c(j.connectToSortable).each(function(){var o=c.data(this,"sortable");
if(o&&!o.options.disabled){f.sortables.push({instance:o,shouldRevert:o.options.revert});o._refreshItems();o._trigger("activate",g,k)}})},stop:function(g,h){var f=c(this).data("draggable"),j=c.extend({},h,{item:f.element});c.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(g);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",g,j)}})},drag:function(g,h){var f=c(this).data("draggable"),j=this;c.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=c(j).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return h.helper[0]};g.target=this.instance.currentItem[0];this.instance._mouseCapture(g,true);this.instance._mouseStart(g,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",g);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}this.instance.currentItem&&this.instance._mouseDrag(g)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",g,this.instance._uiHash(this.instance));this.instance._mouseStop(g,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();f._trigger("fromSortable",g);f.dropped=false}})}});c.ui.plugin.add("draggable","cursor",{start:function(){var g=c("body"),h=c(this).data("draggable").options;if(g.css("cursor"))h._cursor=g.css("cursor");g.css("cursor",h.cursor)},stop:function(){var g=c(this).data("draggable").options;g._cursor&&c("body").css("cursor",g._cursor)}});c.ui.plugin.add("draggable","iframeFix",{start:function(){var g=
c(this).data("draggable").options;c(g.iframeFix===true?"iframe":g.iframeFix).each(function(){c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(c(this).offset()).appendTo("body")})},stop:function(){c("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});c.ui.plugin.add("draggable","opacity",{start:function(g,h){g=c(h.helper);h=c(this).data("draggable").options;
if(g.css("opacity"))h._opacity=g.css("opacity");g.css("opacity",h.opacity)},stop:function(g,h){g=c(this).data("draggable").options;g._opacity&&c(h.helper).css("opacity",g._opacity)}});c.ui.plugin.add("draggable","scroll",{start:function(){var g=c(this).data("draggable");if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML")g.overflowOffset=g.scrollParent.offset()},drag:function(g){var h=c(this).data("draggable"),f=h.options,j=false;if(h.scrollParent[0]!=document&&h.scrollParent[0].tagName!=
"HTML"){if(!f.axis||f.axis!="x")if(h.overflowOffset.top+h.scrollParent[0].offsetHeight-g.pageY<f.scrollSensitivity)h.scrollParent[0].scrollTop=j=h.scrollParent[0].scrollTop+f.scrollSpeed;else if(g.pageY-h.overflowOffset.top<f.scrollSensitivity)h.scrollParent[0].scrollTop=j=h.scrollParent[0].scrollTop-f.scrollSpeed;if(!f.axis||f.axis!="y")if(h.overflowOffset.left+h.scrollParent[0].offsetWidth-g.pageX<f.scrollSensitivity)h.scrollParent[0].scrollLeft=j=h.scrollParent[0].scrollLeft+f.scrollSpeed;else if(g.pageX-
h.overflowOffset.left<f.scrollSensitivity)h.scrollParent[0].scrollLeft=j=h.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(!f.axis||f.axis!="x")if(g.pageY-c(document).scrollTop()<f.scrollSensitivity)j=c(document).scrollTop(c(document).scrollTop()-f.scrollSpeed);else if(c(window).height()-(g.pageY-c(document).scrollTop())<f.scrollSensitivity)j=c(document).scrollTop(c(document).scrollTop()+f.scrollSpeed);if(!f.axis||f.axis!="y")if(g.pageX-c(document).scrollLeft()<f.scrollSensitivity)j=c(document).scrollLeft(c(document).scrollLeft()-
f.scrollSpeed);else if(c(window).width()-(g.pageX-c(document).scrollLeft())<f.scrollSensitivity)j=c(document).scrollLeft(c(document).scrollLeft()+f.scrollSpeed)}j!==false&&c.ui.ddmanager&&!f.dropBehaviour&&c.ui.ddmanager.prepareOffsets(h,g)}});c.ui.plugin.add("draggable","snap",{start:function(){var g=c(this).data("draggable"),h=g.options;g.snapElements=[];c(h.snap.constructor!=String?h.snap.items||":data(draggable)":h.snap).each(function(){var f=c(this),j=f.offset();this!=g.element[0]&&g.snapElements.push({item:this,
width:f.outerWidth(),height:f.outerHeight(),top:j.top,left:j.left})})},drag:function(g,h){for(var f=c(this).data("draggable"),j=f.options,k=j.snapTolerance,o=h.offset.left,x=o+f.helperProportions.width,y=h.offset.top,q=y+f.helperProportions.height,n=f.snapElements.length-1;n>=0;n--){var r=f.snapElements[n].left,w=r+f.snapElements[n].width,z=f.snapElements[n].top,E=z+f.snapElements[n].height;if(r-k<o&&o<w+k&&z-k<y&&y<E+k||r-k<o&&o<w+k&&z-k<q&&q<E+k||r-k<x&&x<w+k&&z-k<y&&y<E+k||r-k<x&&x<w+k&&z-k<q&&
q<E+k){if(j.snapMode!="inner"){var d=Math.abs(z-q)<=k,P=Math.abs(E-y)<=k,T=Math.abs(r-x)<=k,H=Math.abs(w-o)<=k;if(d)h.position.top=f._convertPositionTo("relative",{top:z-f.helperProportions.height,left:0}).top-f.margins.top;if(P)h.position.top=f._convertPositionTo("relative",{top:E,left:0}).top-f.margins.top;if(T)h.position.left=f._convertPositionTo("relative",{top:0,left:r-f.helperProportions.width}).left-f.margins.left;if(H)h.position.left=f._convertPositionTo("relative",{top:0,left:w}).left-f.margins.left}var U=
d||P||T||H;if(j.snapMode!="outer"){d=Math.abs(z-y)<=k;P=Math.abs(E-q)<=k;T=Math.abs(r-o)<=k;H=Math.abs(w-x)<=k;if(d)h.position.top=f._convertPositionTo("relative",{top:z,left:0}).top-f.margins.top;if(P)h.position.top=f._convertPositionTo("relative",{top:E-f.helperProportions.height,left:0}).top-f.margins.top;if(T)h.position.left=f._convertPositionTo("relative",{top:0,left:r}).left-f.margins.left;if(H)h.position.left=f._convertPositionTo("relative",{top:0,left:w-f.helperProportions.width}).left-f.margins.left}if(!f.snapElements[n].snapping&&
(d||P||T||H||U))f.options.snap.snap&&f.options.snap.snap.call(f.element,g,c.extend(f._uiHash(),{snapItem:f.snapElements[n].item}));f.snapElements[n].snapping=d||P||T||H||U}else{f.snapElements[n].snapping&&f.options.snap.release&&f.options.snap.release.call(f.element,g,c.extend(f._uiHash(),{snapItem:f.snapElements[n].item}));f.snapElements[n].snapping=false}}}});c.ui.plugin.add("draggable","stack",{start:function(){var g=c(this).data("draggable").options;g=c.makeArray(c(g.stack)).sort(function(f,j){return(parseInt(c(f).css("zIndex"),
10)||0)-(parseInt(c(j).css("zIndex"),10)||0)});if(g.length){var h=parseInt(g[0].style.zIndex)||0;c(g).each(function(f){this.style.zIndex=h+f});this[0].style.zIndex=h+g.length}}});c.ui.plugin.add("draggable","zIndex",{start:function(g,h){g=c(h.helper);h=c(this).data("draggable").options;if(g.css("zIndex"))h._zIndex=g.css("zIndex");g.css("zIndex",h.zIndex)},stop:function(g,h){g=c(this).data("draggable").options;g._zIndex&&c(h.helper).css("zIndex",g._zIndex)}})})(jQuery);
(function(c){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var f=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!j.aspectRatio,aspectRatio:j.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var k=this.handles.split(",");this.handles={};for(var o=0;o<k.length;o++){var x=c.trim(k[o]),y=c('<div class="ui-resizable-handle '+("ui-resizable-"+x)+'"></div>');/sw|se|ne|nw/.test(x)&&y.css({zIndex:++j.zIndex});"se"==x&&y.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[x]=".ui-resizable-"+x;this.element.append(y)}}this._renderAxis=function(q){q=q||this.element;for(var n in this.handles){if(this.handles[n].constructor==
String)this.handles[n]=c(this.handles[n],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var r=c(this.handles[n],this.element),w=0;w=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth();r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(r,w);this._proportionallyResize()}c(this.handles[n])}};this._renderAxis(this.element);this._handles=c(".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(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){c(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var f=function(k){c(k).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 j=this.element;j.after(this.originalElement.css({position:j.css("position"),width:j.outerWidth(),height:j.outerHeight(),top:j.css("top"),left:j.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);f(this.originalElement);return this},_mouseCapture:function(f){var j=false;for(var k in this.handles)if(c(this.handles[k])[0]==f.target)j=true;return!this.options.disabled&&j},_mouseStart:function(f){var j=this.options,k=this.element.position(),
o=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(o.is(".ui-draggable")||/absolute/.test(o.css("position")))o.css({position:"absolute",top:k.top,left:k.left});c.browser.opera&&/relative/.test(o.css("position"))&&o.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();k=g(this.helper.css("left"));var x=g(this.helper.css("top"));if(j.containment){k+=c(j.containment).scrollLeft()||0;x+=c(j.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:k,top:x};this.size=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()};this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()};this.originalPosition={left:k,top:x};this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=typeof j.aspectRatio=="number"?j.aspectRatio:
this.originalSize.width/this.originalSize.height||1;j=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",j=="auto"?this.axis+"-resize":j);o.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(f){var j=this.helper,k=this.originalMousePosition,o=this._change[this.axis];if(!o)return false;k=o.apply(this,[f,f.pageX-k.left||0,f.pageY-k.top||0]);if(this._aspectRatio||f.shiftKey)k=this._updateRatio(k,f);k=this._respectSize(k,f);this._propagate("resize",
f);j.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(k);this._trigger("resize",f,this.ui());return false},_mouseStop:function(f){this.resizing=false;var j=this.options;if(this._helper){var k=this._proportionallyResizeElements,o=k.length&&/textarea/i.test(k[0].nodeName);k=o&&c.ui.hasScroll(k[0],"left")?0:this.sizeDiff.height;
o={width:this.size.width-(o?0:this.sizeDiff.width),height:this.size.height-k};k=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var x=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;j.animate||this.element.css(c.extend(o,{top:x,left:k}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!j.animate&&this._proportionallyResize()}c("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(h(f.left))this.position.left=f.left;if(h(f.top))this.position.top=f.top;if(h(f.height))this.size.height=f.height;if(h(f.width))this.size.width=f.width},_updateRatio:function(f){var j=this.position,k=this.size,o=this.axis;if(f.height)f.width=k.height*this.aspectRatio;else if(f.width)f.height=k.width/this.aspectRatio;if(o=="sw"){f.left=j.left+(k.width-f.width);f.top=
null}if(o=="nw"){f.top=j.top+(k.height-f.height);f.left=j.left+(k.width-f.width)}return f},_respectSize:function(f){var j=this.options,k=this.axis,o=h(f.width)&&j.maxWidth&&j.maxWidth<f.width,x=h(f.height)&&j.maxHeight&&j.maxHeight<f.height,y=h(f.width)&&j.minWidth&&j.minWidth>f.width,q=h(f.height)&&j.minHeight&&j.minHeight>f.height;if(y)f.width=j.minWidth;if(q)f.height=j.minHeight;if(o)f.width=j.maxWidth;if(x)f.height=j.maxHeight;var n=this.originalPosition.left+this.originalSize.width,r=this.position.top+
this.size.height,w=/sw|nw|w/.test(k);k=/nw|ne|n/.test(k);if(y&&w)f.left=n-j.minWidth;if(o&&w)f.left=n-j.maxWidth;if(q&&k)f.top=r-j.minHeight;if(x&&k)f.top=r-j.maxHeight;if((j=!f.width&&!f.height)&&!f.left&&f.top)f.top=null;else if(j&&!f.top&&f.left)f.left=null;return f},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var f=this.helper||this.element,j=0;j<this._proportionallyResizeElements.length;j++){var k=this._proportionallyResizeElements[j];if(!this.borderDif){var o=
[k.css("borderTopWidth"),k.css("borderRightWidth"),k.css("borderBottomWidth"),k.css("borderLeftWidth")],x=[k.css("paddingTop"),k.css("paddingRight"),k.css("paddingBottom"),k.css("paddingLeft")];this.borderDif=c.map(o,function(y,q){y=parseInt(y,10)||0;q=parseInt(x[q],10)||0;return y+q})}c.browser.msie&&(c(f).is(":hidden")||c(f).parents(":hidden").length)||k.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||c('<div style="overflow:hidden;"></div>');var j=c.browser.msie&&c.browser.version<7,k=j?1:0;j=j?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+j,height:this.element.outerHeight()+j,position:"absolute",left:this.elementOffset.left-k+"px",top:this.elementOffset.top-k+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(f,
j){return{width:this.originalSize.width+j}},w:function(f,j){return{left:this.originalPosition.left+j,width:this.originalSize.width-j}},n:function(f,j,k){return{top:this.originalPosition.top+k,height:this.originalSize.height-k}},s:function(f,j,k){return{height:this.originalSize.height+k}},se:function(f,j,k){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,j,k]))},sw:function(f,j,k){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,j,
k]))},ne:function(f,j,k){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,j,k]))},nw:function(f,j,k){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,j,k]))}},_propagate:function(f,j){c.ui.plugin.call(this,f,[j,this.ui()]);f!="resize"&&this._trigger(f,j,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.1"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var f=c(this).data("resizable").options,j=function(k){c(k).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof f.alsoResize=="object"&&!f.alsoResize.parentNode)if(f.alsoResize.length){f.alsoResize=
f.alsoResize[0];j(f.alsoResize)}else c.each(f.alsoResize,function(k){j(k)});else j(f.alsoResize)},resize:function(){var f=c(this).data("resizable"),j=f.options,k=f.originalSize,o=f.originalPosition,x={height:f.size.height-k.height||0,width:f.size.width-k.width||0,top:f.position.top-o.top||0,left:f.position.left-o.left||0},y=function(q,n){c(q).each(function(){var r=c(this),w=c(this).data("resizable-alsoresize"),z={};c.each((n&&n.length?n:["width","height","top","left"])||["width","height","top","left"],
function(E,d){if((E=(w[d]||0)+(x[d]||0))&&E>=0)z[d]=E||null});if(/relative/.test(r.css("position"))&&c.browser.opera){f._revertToRelativePosition=true;r.css({position:"absolute",top:"auto",left:"auto"})}r.css(z)})};typeof j.alsoResize=="object"&&!j.alsoResize.nodeType?c.each(j.alsoResize,function(q,n){y(q,n)}):y(j.alsoResize)},stop:function(){var f=c(this).data("resizable");if(f._revertToRelativePosition&&c.browser.opera){f._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});
c.ui.plugin.add("resizable","animate",{stop:function(f){var j=c(this).data("resizable"),k=j.options,o=j._proportionallyResizeElements,x=o.length&&/textarea/i.test(o[0].nodeName),y=x&&c.ui.hasScroll(o[0],"left")?0:j.sizeDiff.height;x={width:j.size.width-(x?0:j.sizeDiff.width),height:j.size.height-y};y=parseInt(j.element.css("left"),10)+(j.position.left-j.originalPosition.left)||null;var q=parseInt(j.element.css("top"),10)+(j.position.top-j.originalPosition.top)||null;j.element.animate(c.extend(x,q&&
y?{top:q,left:y}:{}),{duration:k.animateDuration,easing:k.animateEasing,step:function(){var n={width:parseInt(j.element.css("width"),10),height:parseInt(j.element.css("height"),10),top:parseInt(j.element.css("top"),10),left:parseInt(j.element.css("left"),10)};o&&o.length&&c(o[0]).css({width:n.width,height:n.height});j._updateCache(n);j._propagate("resize",f)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var f=c(this).data("resizable"),j=f.element,k=f.options.containment;if(j=k instanceof
c?k.get(0):/parent/.test(k)?j.parent().get(0):k){f.containerElement=c(j);if(/document/.test(k)||k==document){f.containerOffset={left:0,top:0};f.containerPosition={left:0,top:0};f.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var o=c(j),x=[];c(["Top","Right","Left","Bottom"]).each(function(n,r){x[n]=g(o.css("padding"+r))});f.containerOffset=o.offset();f.containerPosition=o.position();f.containerSize={height:o.innerHeight()-
x[3],width:o.innerWidth()-x[1]};k=f.containerOffset;var y=f.containerSize.height,q=f.containerSize.width;q=c.ui.hasScroll(j,"left")?j.scrollWidth:q;y=c.ui.hasScroll(j)?j.scrollHeight:y;f.parentData={element:j,left:k.left,top:k.top,width:q,height:y}}}},resize:function(f){var j=c(this).data("resizable"),k=j.options,o=j.containerOffset,x=j.position;f=j._aspectRatio||f.shiftKey;var y={top:0,left:0},q=j.containerElement;if(q[0]!=document&&/static/.test(q.css("position")))y=o;if(x.left<(j._helper?o.left:
0)){j.size.width+=j._helper?j.position.left-o.left:j.position.left-y.left;if(f)j.size.height=j.size.width/k.aspectRatio;j.position.left=k.helper?o.left:0}if(x.top<(j._helper?o.top:0)){j.size.height+=j._helper?j.position.top-o.top:j.position.top;if(f)j.size.width=j.size.height*k.aspectRatio;j.position.top=j._helper?o.top:0}j.offset.left=j.parentData.left+j.position.left;j.offset.top=j.parentData.top+j.position.top;k=Math.abs((j._helper?j.offset.left-y.left:j.offset.left-y.left)+j.sizeDiff.width);o=
Math.abs((j._helper?j.offset.top-y.top:j.offset.top-o.top)+j.sizeDiff.height);x=j.containerElement.get(0)==j.element.parent().get(0);y=/relative|absolute/.test(j.containerElement.css("position"));if(x&&y)k-=j.parentData.left;if(k+j.size.width>=j.parentData.width){j.size.width=j.parentData.width-k;if(f)j.size.height=j.size.width/j.aspectRatio}if(o+j.size.height>=j.parentData.height){j.size.height=j.parentData.height-o;if(f)j.size.width=j.size.height*j.aspectRatio}},stop:function(){var f=c(this).data("resizable"),
j=f.options,k=f.containerOffset,o=f.containerPosition,x=f.containerElement,y=c(f.helper),q=y.offset(),n=y.outerWidth()-f.sizeDiff.width;y=y.outerHeight()-f.sizeDiff.height;f._helper&&!j.animate&&/relative/.test(x.css("position"))&&c(this).css({left:q.left-o.left-k.left,width:n,height:y});f._helper&&!j.animate&&/static/.test(x.css("position"))&&c(this).css({left:q.left-o.left-k.left,width:n,height:y})}});c.ui.plugin.add("resizable","ghost",{start:function(){var f=c(this).data("resizable"),j=f.options,
k=f.size;f.ghost=f.originalElement.clone();f.ghost.css({opacity:0.25,display:"block",position:"relative",height:k.height,width:k.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof j.ghost=="string"?j.ghost:"");f.ghost.appendTo(f.helper)},resize:function(){var f=c(this).data("resizable");f.ghost&&f.ghost.css({position:"relative",height:f.size.height,width:f.size.width})},stop:function(){var f=c(this).data("resizable");f.ghost&&f.helper&&f.helper.get(0).removeChild(f.ghost.get(0))}});
c.ui.plugin.add("resizable","grid",{resize:function(){var f=c(this).data("resizable"),j=f.options,k=f.size,o=f.originalSize,x=f.originalPosition,y=f.axis;j.grid=typeof j.grid=="number"?[j.grid,j.grid]:j.grid;var q=Math.round((k.width-o.width)/(j.grid[0]||1))*(j.grid[0]||1);j=Math.round((k.height-o.height)/(j.grid[1]||1))*(j.grid[1]||1);if(/^(se|s|e)$/.test(y)){f.size.width=o.width+q;f.size.height=o.height+j}else if(/^(ne)$/.test(y)){f.size.width=o.width+q;f.size.height=o.height+j;f.position.top=x.top-
j}else{if(/^(sw)$/.test(y)){f.size.width=o.width+q;f.size.height=o.height+j}else{f.size.width=o.width+q;f.size.height=o.height+j;f.position.top=x.top-j}f.position.left=x.left-q}}});var g=function(f){return parseInt(f,10)||0},h=function(f){return!isNaN(parseInt(f,10))}})(jQuery);
(function(c){var g,h=function(j){c(":ui-button",j.target.form).each(function(){var k=c(this).data("button");setTimeout(function(){k.refresh()},1)})},f=function(j){var k=j.name,o=j.form,x=c([]);if(k)x=o?c(o).find("[name='"+k+"']"):c("[name='"+k+"']",j.ownerDocument).filter(function(){return!this.form});return x};c.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h);this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");var j=this,k=this.options,o=this.type==="checkbox"||this.type==="radio",x="ui-state-hover"+(!o?" ui-state-active":"");if(k.label===null)k.label=this.buttonElement.html();if(this.element.is(":disabled"))k.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!k.disabled){c(this).addClass("ui-state-hover");this===g&&c(this).addClass("ui-state-active")}}).bind("mouseleave.button",
function(){k.disabled||c(this).removeClass(x)}).bind("focus.button",function(){c(this).addClass("ui-state-focus")}).bind("blur.button",function(){c(this).removeClass("ui-state-focus")});o&&this.element.bind("change.button",function(){j.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(k.disabled)return false;c(this).toggleClass("ui-state-active");j.buttonElement.attr("aria-pressed",j.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
function(){if(k.disabled)return false;c(this).addClass("ui-state-active");j.buttonElement.attr("aria-pressed",true);var y=j.element[0];f(y).not(y).map(function(){return c(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(k.disabled)return false;c(this).addClass("ui-state-active");g=this;c(document).one("mouseup",function(){g=null})}).bind("mouseup.button",function(){if(k.disabled)return false;c(this).removeClass("ui-state-active")}).bind("keydown.button",
function(y){if(k.disabled)return false;if(y.keyCode==c.ui.keyCode.SPACE||y.keyCode==c.ui.keyCode.ENTER)c(this).addClass("ui-state-active")}).bind("keyup.button",function(){c(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(y){y.keyCode===c.ui.keyCode.SPACE&&c(this).click()})}this._setOption("disabled",k.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("[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var j=this.element.is(":checked");j&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",j)}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 ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");c.Widget.prototype.destroy.call(this)},_setOption:function(j,k){c.Widget.prototype._setOption.apply(this,arguments);if(j==="disabled")k?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var j=this.element.is(":disabled");j!==this.options.disabled&&this._setOption("disabled",j);if(this.type==="radio")f(this.element[0]).each(function(){c(this).is(":checked")?c(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):c(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var j=this.buttonElement,k=c("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(j.empty()).text(),
o=this.options.icons,x=o.primary&&o.secondary;if(o.primary||o.secondary){j.addClass("ui-button-text-icon"+(x?"s":""));o.primary&&j.prepend("<span class='ui-button-icon-primary ui-icon "+o.primary+"'></span>");o.secondary&&j.append("<span class='ui-button-icon-secondary ui-icon "+o.secondary+"'></span>");if(!this.options.text){j.addClass(x?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");this.hasTitle||j.attr("title",k)}}else j.addClass("ui-button-text-only")}}});
c.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(j,k){j==="disabled"&&this.buttons.button("option",j,k);c.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return c(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");c.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var g=this,h=g.options,f=h.title||g.originalTitle||"&#160;",j=c.ui.dialog.getTitleId(g.element),k=(g.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
h.dialogClass).css({zIndex:h.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(y){if(h.closeOnEscape&&y.keyCode&&y.keyCode===c.ui.keyCode.ESCAPE){g.close(y);y.preventDefault()}}).attr({role:"dialog","aria-labelledby":j}).mousedown(function(y){g.moveToTop(false,y)});g.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k);var o=(g.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),
x=c('<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(y){g.close(y);return false}).appendTo(o);(g.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(h.closeText).appendTo(x);c("<span></span>").addClass("ui-dialog-title").attr("id",
j).html(f).prependTo(o);if(c.isFunction(h.beforeclose)&&!c.isFunction(h.beforeClose))h.beforeClose=h.beforeclose;o.find("*").add(o).disableSelection();h.draggable&&c.fn.draggable&&g._makeDraggable();h.resizable&&c.fn.resizable&&g._makeResizable();g._createButtons(h.buttons);g._isOpen=false;c.fn.bgiframe&&k.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 h=this,f;if(false!==h._trigger("beforeClose",g)){h.overlay&&h.overlay.destroy();h.uiDialog.unbind("keypress.ui-dialog");h._isOpen=false;if(h.options.hide)h.uiDialog.hide(h.options.hide,function(){h._trigger("close",g)});else{h.uiDialog.hide();h._trigger("close",g)}c.ui.dialog.overlay.resize();if(h.options.modal){f=0;c(".ui-dialog").each(function(){if(this!==
h.uiDialog[0])f=Math.max(f,c(this).css("z-index"))});c.ui.dialog.maxZ=f}return h}},isOpen:function(){return this._isOpen},moveToTop:function(g,h){var f=this.options;if(f.modal&&!g||!f.stack&&!f.modal)return this._trigger("focus",h);if(f.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=f.zIndex;if(this.overlay){c.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}g={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};c.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",c.ui.dialog.maxZ);this.element.attr(g);this._trigger("focus",h);return this},open:function(){if(!this._isOpen){var g=this.options,h=this.uiDialog;this.overlay=g.modal?new c.ui.dialog.overlay(this):null;h.next().length&&h.appendTo("body");this._size();this._position(g.position);h.show(g.show);this.moveToTop(true);g.modal&&h.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var j=c(":tabbable",this),k=j.filter(":first");j=j.filter(":last");if(f.target===
j[0]&&!f.shiftKey){k.focus(1);return false}else if(f.target===k[0]&&f.shiftKey){j.focus(1);return false}}});c([]).add(h.find(".ui-dialog-content :tabbable:first")).add(h.find(".ui-dialog-buttonpane :tabbable:first")).add(h).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(g){var h=this,f=false,j=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");h.uiDialog.find(".ui-dialog-buttonpane").remove();typeof g==="object"&&
g!==null&&c.each(g,function(){return!(f=true)});if(f){c.each(g,function(k,o){k=c('<button type="button"></button>').text(k).click(function(){o.apply(h.element[0],arguments)}).appendTo(j);c.fn.button&&k.button()});j.appendTo(h.uiDialog)}},_makeDraggable:function(){function g(o){return{position:o.position,offset:o.offset}}var h=this,f=h.options,j=c(document),k;h.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,
x){k=f.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");h._trigger("dragStart",o,g(x))},drag:function(o,x){h._trigger("drag",o,g(x))},stop:function(o,x){f.position=[x.position.left-j.scrollLeft(),x.position.top-j.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(k);h._trigger("dragStop",o,g(x));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){function h(o){return{originalPosition:o.originalPosition,originalSize:o.originalSize,
position:o.position,size:o.size}}g=g===undefined?this.options.resizable:g;var f=this,j=f.options,k=f.uiDialog.css("position");f.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:f.element,maxWidth:j.maxWidth,maxHeight:j.maxHeight,minWidth:j.minWidth,minHeight:f._minHeight(),handles:typeof g==="string"?g:"n,e,s,w,se,sw,ne,nw",start:function(o,x){c(this).addClass("ui-dialog-resizing");f._trigger("resizeStart",o,h(x))},resize:function(o,x){f._trigger("resize",o,h(x))},
stop:function(o,x){c(this).removeClass("ui-dialog-resizing");j.height=c(this).height();j.width=c(this).width();f._trigger("resizeStop",o,h(x));c.ui.dialog.overlay.resize()}}).css("position",k).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 h=[],f=[0,0];g=g||c.ui.dialog.prototype.options.position;if(typeof g==="string"||typeof g==="object"&&
"0"in g){h=g.split?g.split(" "):[g[0],g[1]];if(h.length===1)h[1]=h[0];c.each(["left","top"],function(j,k){if(+h[j]===h[j]){f[j]=h[j];h[j]=k}})}else if(typeof g==="object"){if("left"in g){h[0]="left";f[0]=g.left}else if("right"in g){h[0]="right";f[0]=-g.right}if("top"in g){h[1]="top";f[1]=g.top}else if("bottom"in g){h[1]="bottom";f[1]=-g.bottom}}(g=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:h.join(" "),at:h.join(" "),offset:f.join(" "),of:window,
collision:"fit",using:function(j){var k=c(this).css(j).offset().top;k<0&&c(this).css("top",j.top-k)}});g||this.uiDialog.hide()},_setOption:function(g,h){var f=this.uiDialog,j=f.is(":data(resizable)"),k=false;switch(g){case "beforeclose":g="beforeClose";break;case "buttons":this._createButtons(h);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+h);break;case "dialogClass":f.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+h);break;case "disabled":h?
f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":h?this._makeDraggable():f.draggable("destroy");break;case "height":k=true;break;case "maxHeight":j&&f.resizable("option","maxHeight",h);k=true;break;case "maxWidth":j&&f.resizable("option","maxWidth",h);k=true;break;case "minHeight":j&&f.resizable("option","minHeight",h);k=true;break;case "minWidth":j&&f.resizable("option","minWidth",h);k=true;break;case "position":this._position(h);break;case "resizable":j&&
!h&&f.resizable("destroy");j&&typeof h==="string"&&f.resizable("option","handles",h);!j&&h!==false&&this._makeResizable(h);break;case "title":c(".ui-dialog-title",this.uiDialogTitlebar).html(""+(h||"&#160;"));break;case "width":k=true;break}c.Widget.prototype._setOption.apply(this,arguments);k&&this._size()},_size:function(){var g=this.options,h;this.element.css({width:"auto",minHeight:0,height:0});h=this.uiDialog.css({height:"auto",width:g.width}).height();this.element.css(g.height==="auto"?{minHeight:Math.max(g.minHeight-
h,0),height:"auto"}:{minHeight:0,height:Math.max(g.height-h,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.1",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=c.ui.dialog.overlay.create(g)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.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(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(f){return c(f.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(f){if(g.options.closeOnEscape&&f.keyCode&&f.keyCode===c.ui.keyCode.ESCAPE){g.close(f);f.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var h=
(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&h.bgiframe();this.instances.push(h);return h},destroy:function(g){this.oldInstances.push(this.instances.splice(c.inArray(g,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");g.remove();var h=0;c.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var g,
h;if(c.browser.msie&&c.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);h=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return g<h?c(window).height()+"px":g+"px"}else return c(document).height()+"px"},width:function(){var g,h;if(c.browser.msie&&c.browser.version<7){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);h=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return g<
h?c(window).width()+"px":g+"px"}else return c(document).width()+"px"},resize:function(){var g=c([]);c.each(c.ui.dialog.overlay.instances,function(){g=g.add(this)});g.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(c){var g=0,h=0;c.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'},_create:function(){this._tabify(true)},_setOption:function(f,j){if(f=="selected")this.options.collapsible&&j==this.options.selected||
this.select(j);else{this.options[f]=j;this._tabify()}},_tabId:function(f){return f.title&&f.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++g},_sanitizeSelector:function(f){return f.replace(/:/g,"\\:")},_cookie:function(){var f=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++h);return c.cookie.apply(null,[f].concat(c.makeArray(arguments)))},_ui:function(f,j){return{tab:f,panel:j,index:this.anchors.index(f)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var f=
c(this);f.html(f.data("label.tabs")).removeData("label.tabs")})},_tabify:function(f){function j(E,d){E.css({display:""});!c.support.opacity&&d.opacity&&E[0].style.removeAttribute("filter")}this.list=this.element.find("ol,ul").eq(0);this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var k=this,o=this.options,x=/^#.+/;this.anchors.each(function(E,d){var P=c(d).attr("href"),T=P.split("#")[0],H;if(T&&(T===location.toString().split("#")[0]||
(H=c("base")[0])&&T===H.href)){P=d.hash;d.href=P}if(x.test(P))k.panels=k.panels.add(k._sanitizeSelector(P));else if(P!="#"){c.data(d,"href.tabs",P);c.data(d,"load.tabs",P.replace(/#.*$/,""));P=k._tabId(d);d.href="#"+P;d=c("#"+P);if(!d.length){d=c(o.panelTemplate).attr("id",P).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(k.panels[E-1]||k.list);d.data("destroy.tabs",true)}k.panels=k.panels.add(d)}else o.disabled.push(E)});if(f){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(o.selected===undefined){location.hash&&this.anchors.each(function(E,d){if(d.hash==location.hash){o.selected=E;return false}});if(typeof o.selected!="number"&&o.cookie)o.selected=parseInt(k._cookie(),10);if(typeof o.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)o.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));o.selected=o.selected||(this.lis.length?0:-1)}else if(o.selected===null)o.selected=-1;o.selected=o.selected>=0&&this.anchors[o.selected]||o.selected<0?o.selected:0;o.disabled=c.unique(o.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(E){return k.lis.index(E)}))).sort();c.inArray(o.selected,o.disabled)!=-1&&o.disabled.splice(c.inArray(o.selected,o.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(o.selected>=0&&this.anchors.length){this.panels.eq(o.selected).removeClass("ui-tabs-hide");this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active");k.element.queue("tabs",function(){k._trigger("show",null,k._ui(k.anchors[o.selected],k.panels[o.selected]))});this.load(o.selected)}c(window).bind("unload",function(){k.lis.add(k.anchors).unbind(".tabs");k.lis=k.anchors=k.panels=null})}else o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[o.collapsible?"addClass":
"removeClass"]("ui-tabs-collapsible");o.cookie&&this._cookie(o.selected,o.cookie);f=0;for(var y;y=this.lis[f];f++)c(y)[c.inArray(f,o.disabled)!=-1&&!c(y).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");o.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(o.event!="mouseover"){var q=function(E,d){d.is(":not(.ui-state-disabled)")&&d.addClass("ui-state-"+E)};this.lis.bind("mouseover.tabs",function(){q("hover",c(this))});this.lis.bind("mouseout.tabs",
function(){c(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){q("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){c(this).closest("li").removeClass("ui-state-focus")})}var n,r;if(o.fx)if(c.isArray(o.fx)){n=o.fx[0];r=o.fx[1]}else n=r=o.fx;var w=r?function(E,d){c(E).closest("li").addClass("ui-tabs-selected ui-state-active");d.hide().removeClass("ui-tabs-hide").animate(r,r.duration||"normal",function(){j(d,r);k._trigger("show",null,k._ui(E,d[0]))})}:
function(E,d){c(E).closest("li").addClass("ui-tabs-selected ui-state-active");d.removeClass("ui-tabs-hide");k._trigger("show",null,k._ui(E,d[0]))},z=n?function(E,d){d.animate(n,n.duration||"normal",function(){k.lis.removeClass("ui-tabs-selected ui-state-active");d.addClass("ui-tabs-hide");j(d,n);k.element.dequeue("tabs")})}:function(E,d){k.lis.removeClass("ui-tabs-selected ui-state-active");d.addClass("ui-tabs-hide");k.element.dequeue("tabs")};this.anchors.bind(o.event+".tabs",function(){var E=this,
d=c(this).closest("li"),P=k.panels.filter(":not(.ui-tabs-hide)"),T=c(k._sanitizeSelector(this.hash));if(d.hasClass("ui-tabs-selected")&&!o.collapsible||d.hasClass("ui-state-disabled")||d.hasClass("ui-state-processing")||k._trigger("select",null,k._ui(this,T[0]))===false){this.blur();return false}o.selected=k.anchors.index(this);k.abort();if(o.collapsible)if(d.hasClass("ui-tabs-selected")){o.selected=-1;o.cookie&&k._cookie(o.selected,o.cookie);k.element.queue("tabs",function(){z(E,P)}).dequeue("tabs");
this.blur();return false}else if(!P.length){o.cookie&&k._cookie(o.selected,o.cookie);k.element.queue("tabs",function(){w(E,T)});k.load(k.anchors.index(this));this.blur();return false}o.cookie&&k._cookie(o.selected,o.cookie);if(T.length){P.length&&k.element.queue("tabs",function(){z(E,P)});k.element.queue("tabs",function(){w(E,T)});k.load(k.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";c.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},
destroy:function(){var f=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 j=c.data(this,"href.tabs");if(j)this.href=j;var k=c(this).unbind(".tabs");c.each(["href","load","cache"],function(o,x){k.removeData(x+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){c.data(this,
"destroy.tabs")?c(this).remove():c(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});f.cookie&&this._cookie(null,f.cookie);return this},add:function(f,j,k){if(k===undefined)k=this.anchors.length;var o=this,x=this.options;j=c(x.tabTemplate.replace(/#\{href\}/g,f).replace(/#\{label\}/g,j));f=!f.indexOf("#")?f.replace("#",""):this._tabId(c("a",j)[0]);j.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var y=c("#"+f);y.length||(y=c(x.panelTemplate).attr("id",f).data("destroy.tabs",true));y.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(k>=this.lis.length){j.appendTo(this.list);y.appendTo(this.list[0].parentNode)}else{j.insertBefore(this.lis[k]);y.insertBefore(this.panels[k])}x.disabled=c.map(x.disabled,function(q){return q>=k?++q:q});this._tabify();if(this.anchors.length==1){x.selected=0;j.addClass("ui-tabs-selected ui-state-active");y.removeClass("ui-tabs-hide");
this.element.queue("tabs",function(){o._trigger("show",null,o._ui(o.anchors[0],o.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[k],this.panels[k]));return this},remove:function(f){var j=this.options,k=this.lis.eq(f).remove(),o=this.panels.eq(f).remove();if(k.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(f+(f+1<this.anchors.length?1:-1));j.disabled=c.map(c.grep(j.disabled,function(x){return x!=f}),function(x){return x>=f?--x:x});this._tabify();this._trigger("remove",
null,this._ui(k.find("a")[0],o[0]));return this},enable:function(f){var j=this.options;if(c.inArray(f,j.disabled)!=-1){this.lis.eq(f).removeClass("ui-state-disabled");j.disabled=c.grep(j.disabled,function(k){return k!=f});this._trigger("enable",null,this._ui(this.anchors[f],this.panels[f]));return this}},disable:function(f){var j=this.options;if(f!=j.selected){this.lis.eq(f).addClass("ui-state-disabled");j.disabled.push(f);j.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[f],this.panels[f]))}return this},
select:function(f){if(typeof f=="string")f=this.anchors.index(this.anchors.filter("[href$="+f+"]"));else if(f===null)f=-1;if(f==-1&&this.options.collapsible)f=this.options.selected;this.anchors.eq(f).trigger(this.options.event+".tabs");return this},load:function(f){var j=this,k=this.options,o=this.anchors.eq(f)[0],x=c.data(o,"load.tabs");this.abort();if(!x||this.element.queue("tabs").length!==0&&c.data(o,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(f).addClass("ui-state-processing");
if(k.spinner){var y=c("span",o);y.data("label.tabs",y.html()).html(k.spinner)}this.xhr=c.ajax(c.extend({},k.ajaxOptions,{url:x,success:function(q,n){c(j._sanitizeSelector(o.hash)).html(q);j._cleanup();k.cache&&c.data(o,"cache.tabs",true);j._trigger("load",null,j._ui(j.anchors[f],j.panels[f]));try{k.ajaxOptions.success(q,n)}catch(r){}},error:function(q,n){j._cleanup();j._trigger("load",null,j._ui(j.anchors[f],j.panels[f]));try{k.ajaxOptions.error(q,n,f,o)}catch(r){}}}));j.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(f,j){this.anchors.eq(f).removeData("cache.tabs").data("load.tabs",j);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.8.1"});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(f,j){var k=this,o=this.options,x=k._rotate||(k._rotate=
function(y){clearTimeout(k.rotation);k.rotation=setTimeout(function(){var q=o.selected;k.select(++q<k.anchors.length?q:0)},f);y&&y.stopPropagation()});j=k._unrotate||(k._unrotate=!j?function(y){y.clientX&&k.rotate(null)}:function(){t=o.selected;x()});if(f){this.element.bind("tabsshow",x);this.anchors.bind(o.event+".tabs",j);x()}else{clearTimeout(k.rotation);this.element.unbind("tabsshow",x);this.anchors.unbind(o.event+".tabs",j);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
jQuery.effects||function(c){function g(q){var n;if(q&&q.constructor==Array&&q.length==3)return q;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(q))return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)];if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(q))return[parseFloat(n[1])*2.55,parseFloat(n[2])*2.55,parseFloat(n[3])*2.55];if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(q))return[parseInt(n[1],
16),parseInt(n[2],16),parseInt(n[3],16)];if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(q))return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(q))return o.transparent;return o[c.trim(q).toLowerCase()]}function h(){var q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,n={},r,w;if(q&&q.length&&q[0]&&q[q[0]])for(var z=q.length;z--;){r=q[z];if(typeof q[r]=="string"){w=r.replace(/\-(\w)/g,function(E,d){return d.toUpperCase()});
n[w]=q[r]}}else for(r in q)if(typeof q[r]==="string")n[r]=q[r];return n}function f(q){var n,r;for(n in q){r=q[n];if(r==null||c.isFunction(r)||n in y||/scrollbar/.test(n)||!/color/i.test(n)&&isNaN(parseFloat(r)))delete q[n]}return q}function j(q,n){var r={_:0},w;for(w in n)if(q[w]!=n[w])r[w]=n[w];return r}function k(q,n,r,w){if(typeof q=="object"){w=n;r=null;n=q;q=n.effect}if(c.isFunction(n)){w=n;r=null;n={}}if(c.isFunction(r)){w=r;r=null}if(typeof n=="number"||c.fx.speeds[n]){w=r;r=n;n={}}n=n||{};
r=r||n.duration;r=c.fx.off?0:typeof r=="number"?r:c.fx.speeds[r]||c.fx.speeds._default;w=w||n.complete;return[q,n,r,w]}c.effects={};c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(q,n){c.fx.step[n]=function(r){if(!r.colorInit){var w;w=r.elem;var z=n,E;do{E=c.curCSS(w,z);if(E!=""&&E!="transparent"||c.nodeName(w,"body"))break;z="backgroundColor"}while(w=w.parentNode);w=g(E);r.start=w;r.end=g(r.end);r.colorInit=true}r.elem.style[n]=
"rgb("+Math.max(Math.min(parseInt(r.pos*(r.end[0]-r.start[0])+r.start[0],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[1]-r.start[1])+r.start[1],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[2]-r.start[2])+r.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]},x=["add","remove","toggle"],y={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.effects.animateClass=function(q,n,r,w){if(c.isFunction(r)){w=r;r=null}return this.each(function(){var z=c(this),E=z.attr("style")||" ",d=f(h.call(this)),P,T=z.attr("className");c.each(x,function(H,U){q[U]&&z[U+"Class"](q[U])});
P=f(h.call(this));z.attr("className",T);z.animate(j(d,P),n,r,function(){c.each(x,function(H,U){q[U]&&z[U+"Class"](q[U])});if(typeof z.attr("style")=="object"){z.attr("style").cssText="";z.attr("style").cssText=E}else z.attr("style",E);w&&w.apply(this,arguments)})})};c.fn.extend({_addClass:c.fn.addClass,addClass:function(q,n,r,w){return n?c.effects.animateClass.apply(this,[{add:q},n,r,w]):this._addClass(q)},_removeClass:c.fn.removeClass,removeClass:function(q,n,r,w){return n?c.effects.animateClass.apply(this,
[{remove:q},n,r,w]):this._removeClass(q)},_toggleClass:c.fn.toggleClass,toggleClass:function(q,n,r,w,z){return typeof n=="boolean"||n===undefined?r?c.effects.animateClass.apply(this,[n?{add:q}:{remove:q},r,w,z]):this._toggleClass(q,n):c.effects.animateClass.apply(this,[{toggle:q},n,r,w])},switchClass:function(q,n,r,w,z){return c.effects.animateClass.apply(this,[{add:n,remove:q},r,w,z])}});c.extend(c.effects,{version:"1.8.1",save:function(q,n){for(var r=0;r<n.length;r++)n[r]!==null&&q.data("ec.storage."+
n[r],q[0].style[n[r]])},restore:function(q,n){for(var r=0;r<n.length;r++)n[r]!==null&&q.css(n[r],q.data("ec.storage."+n[r]))},setMode:function(q,n){if(n=="toggle")n=q.is(":hidden")?"show":"hide";return n},getBaseline:function(q,n){var r;switch(q[0]){case "top":r=0;break;case "middle":r=0.5;break;case "bottom":r=1;break;default:r=q[0]/n.height}switch(q[1]){case "left":q=0;break;case "center":q=0.5;break;case "right":q=1;break;default:q=q[1]/n.width}return{x:q,y:r}},createWrapper:function(q){if(q.parent().is(".ui-effects-wrapper"))return q.parent();
var n={width:q.outerWidth(true),height:q.outerHeight(true),"float":q.css("float")},r=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});q.wrap(r);r=q.parent();if(q.css("position")=="static"){r.css({position:"relative"});q.css({position:"relative"})}else{c.extend(n,{position:q.css("position"),zIndex:q.css("z-index")});c.each(["top","left","bottom","right"],function(w,z){n[z]=q.css(z);if(isNaN(parseInt(n[z],10)))n[z]="auto"});
q.css({position:"relative",top:0,left:0})}return r.css(n).show()},removeWrapper:function(q){if(q.parent().is(".ui-effects-wrapper"))return q.parent().replaceWith(q);return q},setTransition:function(q,n,r,w){w=w||{};c.each(n,function(z,E){unit=q.cssUnit(E);if(unit[0]>0)w[E]=unit[0]*r+unit[1]});return w}});c.fn.extend({effect:function(q){var n=k.apply(this,arguments);n={options:n[1],duration:n[2],callback:n[3]};var r=c.effects[q];return r&&!c.fx.off?r.call(this,n):this},_show:c.fn.show,show:function(q){if(!q||
typeof q=="number"||c.fx.speeds[q])return this._show.apply(this,arguments);else{var n=k.apply(this,arguments);n[1].mode="show";return this.effect.apply(this,n)}},_hide:c.fn.hide,hide:function(q){if(!q||typeof q=="number"||c.fx.speeds[q])return this._hide.apply(this,arguments);else{var n=k.apply(this,arguments);n[1].mode="hide";return this.effect.apply(this,n)}},__toggle:c.fn.toggle,toggle:function(q){if(!q||typeof q=="number"||c.fx.speeds[q]||typeof q=="boolean"||c.isFunction(q))return this.__toggle.apply(this,
arguments);else{var n=k.apply(this,arguments);n[1].mode="toggle";return this.effect.apply(this,n)}},cssUnit:function(q){var n=this.css(q),r=[];c.each(["em","px","%","pt"],function(w,z){if(n.indexOf(z)>0)r=[parseFloat(n),z]});return r}});c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(q,n,r,w,z){return c.easing[c.easing.def](q,n,r,w,z)},easeInQuad:function(q,n,r,w,z){return w*(n/=z)*n+r},easeOutQuad:function(q,n,r,w,z){return-w*(n/=z)*(n-2)+r},easeInOutQuad:function(q,
n,r,w,z){if((n/=z/2)<1)return w/2*n*n+r;return-w/2*(--n*(n-2)-1)+r},easeInCubic:function(q,n,r,w,z){return w*(n/=z)*n*n+r},easeOutCubic:function(q,n,r,w,z){return w*((n=n/z-1)*n*n+1)+r},easeInOutCubic:function(q,n,r,w,z){if((n/=z/2)<1)return w/2*n*n*n+r;return w/2*((n-=2)*n*n+2)+r},easeInQuart:function(q,n,r,w,z){return w*(n/=z)*n*n*n+r},easeOutQuart:function(q,n,r,w,z){return-w*((n=n/z-1)*n*n*n-1)+r},easeInOutQuart:function(q,n,r,w,z){if((n/=z/2)<1)return w/2*n*n*n*n+r;return-w/2*((n-=2)*n*n*n-2)+
r},easeInQuint:function(q,n,r,w,z){return w*(n/=z)*n*n*n*n+r},easeOutQuint:function(q,n,r,w,z){return w*((n=n/z-1)*n*n*n*n+1)+r},easeInOutQuint:function(q,n,r,w,z){if((n/=z/2)<1)return w/2*n*n*n*n*n+r;return w/2*((n-=2)*n*n*n*n+2)+r},easeInSine:function(q,n,r,w,z){return-w*Math.cos(n/z*(Math.PI/2))+w+r},easeOutSine:function(q,n,r,w,z){return w*Math.sin(n/z*(Math.PI/2))+r},easeInOutSine:function(q,n,r,w,z){return-w/2*(Math.cos(Math.PI*n/z)-1)+r},easeInExpo:function(q,n,r,w,z){return n==0?r:w*Math.pow(2,
10*(n/z-1))+r},easeOutExpo:function(q,n,r,w,z){return n==z?r+w:w*(-Math.pow(2,-10*n/z)+1)+r},easeInOutExpo:function(q,n,r,w,z){if(n==0)return r;if(n==z)return r+w;if((n/=z/2)<1)return w/2*Math.pow(2,10*(n-1))+r;return w/2*(-Math.pow(2,-10*--n)+2)+r},easeInCirc:function(q,n,r,w,z){return-w*(Math.sqrt(1-(n/=z)*n)-1)+r},easeOutCirc:function(q,n,r,w,z){return w*Math.sqrt(1-(n=n/z-1)*n)+r},easeInOutCirc:function(q,n,r,w,z){if((n/=z/2)<1)return-w/2*(Math.sqrt(1-n*n)-1)+r;return w/2*(Math.sqrt(1-(n-=2)*
n)+1)+r},easeInElastic:function(q,n,r,w,z){var E=0,d=w;if(n==0)return r;if((n/=z)==1)return r+w;E||(E=z*0.3);if(d<Math.abs(w)){d=w;q=E/4}else q=E/(2*Math.PI)*Math.asin(w/d);return-(d*Math.pow(2,10*(n-=1))*Math.sin((n*z-q)*2*Math.PI/E))+r},easeOutElastic:function(q,n,r,w,z){var E=0,d=w;if(n==0)return r;if((n/=z)==1)return r+w;E||(E=z*0.3);if(d<Math.abs(w)){d=w;q=E/4}else q=E/(2*Math.PI)*Math.asin(w/d);return d*Math.pow(2,-10*n)*Math.sin((n*z-q)*2*Math.PI/E)+w+r},easeInOutElastic:function(q,n,r,w,z){var E=
0,d=w;if(n==0)return r;if((n/=z/2)==2)return r+w;E||(E=z*0.3*1.5);if(d<Math.abs(w)){d=w;q=E/4}else q=E/(2*Math.PI)*Math.asin(w/d);if(n<1)return-0.5*d*Math.pow(2,10*(n-=1))*Math.sin((n*z-q)*2*Math.PI/E)+r;return d*Math.pow(2,-10*(n-=1))*Math.sin((n*z-q)*2*Math.PI/E)*0.5+w+r},easeInBack:function(q,n,r,w,z,E){if(E==undefined)E=1.70158;return w*(n/=z)*n*((E+1)*n-E)+r},easeOutBack:function(q,n,r,w,z,E){if(E==undefined)E=1.70158;return w*((n=n/z-1)*n*((E+1)*n+E)+1)+r},easeInOutBack:function(q,n,r,w,z,E){if(E==
undefined)E=1.70158;if((n/=z/2)<1)return w/2*n*n*(((E*=1.525)+1)*n-E)+r;return w/2*((n-=2)*n*(((E*=1.525)+1)*n+E)+2)+r},easeInBounce:function(q,n,r,w,z){return w-c.easing.easeOutBounce(q,z-n,0,w,z)+r},easeOutBounce:function(q,n,r,w,z){return(n/=z)<1/2.75?w*7.5625*n*n+r:n<2/2.75?w*(7.5625*(n-=1.5/2.75)*n+0.75)+r:n<2.5/2.75?w*(7.5625*(n-=2.25/2.75)*n+0.9375)+r:w*(7.5625*(n-=2.625/2.75)*n+0.984375)+r},easeInOutBounce:function(q,n,r,w,z){if(n<z/2)return c.easing.easeInBounce(q,n*2,0,w,z)*0.5+r;return c.easing.easeOutBounce(q,
n*2-z,0,w,z)*0.5+w*0.5+r}})}(jQuery);
(function(c){c.effects.blind=function(g){return this.queue(function(){var h=c(this),f=["position","top","left"],j=c.effects.setMode(h,g.options.mode||"hide"),k=g.options.direction||"vertical";c.effects.save(h,f);h.show();var o=c.effects.createWrapper(h).css({overflow:"hidden"}),x=k=="vertical"?"height":"width";k=k=="vertical"?o.height():o.width();j=="show"&&o.css(x,0);var y={};y[x]=j=="show"?k:0;o.animate(y,g.duration,g.options.easing,function(){j=="hide"&&h.hide();c.effects.restore(h,f);c.effects.removeWrapper(h);
g.callback&&g.callback.apply(h[0],arguments);h.dequeue()})})}})(jQuery);
(function(c){c.effects.clip=function(g){return this.queue(function(){var h=c(this),f=["position","top","left","height","width"],j=c.effects.setMode(h,g.options.mode||"hide"),k=g.options.direction||"vertical";c.effects.save(h,f);h.show();var o=c.effects.createWrapper(h).css({overflow:"hidden"});o=h[0].tagName=="IMG"?o:h;var x={size:k=="vertical"?"height":"width",position:k=="vertical"?"top":"left"};k=k=="vertical"?o.height():o.width();if(j=="show"){o.css(x.size,0);o.css(x.position,k/2)}var y={};y[x.size]=
j=="show"?k:0;y[x.position]=j=="show"?0:k/2;o.animate(y,{queue:false,duration:g.duration,easing:g.options.easing,complete:function(){j=="hide"&&h.hide();c.effects.restore(h,f);c.effects.removeWrapper(h);g.callback&&g.callback.apply(h[0],arguments);h.dequeue()}})})}})(jQuery);
(function(c){c.effects.drop=function(g){return this.queue(function(){var h=c(this),f=["position","top","left","opacity"],j=c.effects.setMode(h,g.options.mode||"hide"),k=g.options.direction||"left";c.effects.save(h,f);h.show();c.effects.createWrapper(h);var o=k=="up"||k=="down"?"top":"left";k=k=="up"||k=="left"?"pos":"neg";var x=g.options.distance||(o=="top"?h.outerHeight({margin:true})/2:h.outerWidth({margin:true})/2);if(j=="show")h.css("opacity",0).css(o,k=="pos"?-x:x);var y={opacity:j=="show"?1:
0};y[o]=(j=="show"?k=="pos"?"+=":"-=":k=="pos"?"-=":"+=")+x;h.animate(y,{queue:false,duration:g.duration,easing:g.options.easing,complete:function(){j=="hide"&&h.hide();c.effects.restore(h,f);c.effects.removeWrapper(h);g.callback&&g.callback.apply(this,arguments);h.dequeue()}})})}})(jQuery);
(function(c){c.effects.fold=function(g){return this.queue(function(){var h=c(this),f=["position","top","left"],j=c.effects.setMode(h,g.options.mode||"hide"),k=g.options.size||15,o=!!g.options.horizFirst,x=g.duration?g.duration/2:c.fx.speeds._default/2;c.effects.save(h,f);h.show();var y=c.effects.createWrapper(h).css({overflow:"hidden"}),q=j=="show"!=o,n=q?["width","height"]:["height","width"];q=q?[y.width(),y.height()]:[y.height(),y.width()];var r=/([0-9]+)%/.exec(k);if(r)k=parseInt(r[1],10)/100*
q[j=="hide"?0:1];if(j=="show")y.css(o?{height:0,width:k}:{height:k,width:0});o={};r={};o[n[0]]=j=="show"?q[0]:k;r[n[1]]=j=="show"?q[1]:0;y.animate(o,x,g.options.easing).animate(r,x,g.options.easing,function(){j=="hide"&&h.hide();c.effects.restore(h,f);c.effects.removeWrapper(h);g.callback&&g.callback.apply(h[0],arguments);h.dequeue()})})}})(jQuery);
(function(c){c.effects.highlight=function(g){return this.queue(function(){var h=c(this),f=["backgroundImage","backgroundColor","opacity"],j=c.effects.setMode(h,g.options.mode||"show"),k={backgroundColor:h.css("backgroundColor")};if(j=="hide")k.opacity=0;c.effects.save(h,f);h.show().css({backgroundImage:"none",backgroundColor:g.options.color||"#ffff99"}).animate(k,{queue:false,duration:g.duration,easing:g.options.easing,complete:function(){j=="hide"&&h.hide();c.effects.restore(h,f);j=="show"&&!c.support.opacity&&
this.style.removeAttribute("filter");g.callback&&g.callback.apply(this,arguments);h.dequeue()}})})}})(jQuery);
(function(c){c.effects.puff=function(g){return this.queue(function(){var h=c(this),f=c.effects.setMode(h,g.options.mode||"hide"),j=parseInt(g.options.percent,10)||150,k=j/100,o={height:h.height(),width:h.width()};c.extend(g.options,{fade:true,mode:f,percent:f=="hide"?j:100,from:f=="hide"?o:{height:o.height*k,width:o.width*k}});h.effect("scale",g.options,g.duration,g.callback);h.dequeue()})};c.effects.scale=function(g){return this.queue(function(){var h=c(this),f=c.extend(true,{},g.options),j=c.effects.setMode(h,
g.options.mode||"effect"),k=parseInt(g.options.percent,10)||(parseInt(g.options.percent,10)==0?0:j=="hide"?0:100),o=g.options.direction||"both",x=g.options.origin;if(j!="effect"){f.origin=x||["middle","center"];f.restore=true}x={height:h.height(),width:h.width()};h.from=g.options.from||(j=="show"?{height:0,width:0}:x);k={y:o!="horizontal"?k/100:1,x:o!="vertical"?k/100:1};h.to={height:x.height*k.y,width:x.width*k.x};if(g.options.fade){if(j=="show"){h.from.opacity=0;h.to.opacity=1}if(j=="hide"){h.from.opacity=
1;h.to.opacity=0}}f.from=h.from;f.to=h.to;f.mode=j;h.effect("size",f,g.duration,g.callback);h.dequeue()})};c.effects.size=function(g){return this.queue(function(){var h=c(this),f=["position","top","left","width","height","overflow","opacity"],j=["position","top","left","overflow","opacity"],k=["width","height","overflow"],o=["fontSize"],x=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],y=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],q=c.effects.setMode(h,
g.options.mode||"effect"),n=g.options.restore||false,r=g.options.scale||"both",w=g.options.origin,z={height:h.height(),width:h.width()};h.from=g.options.from||z;h.to=g.options.to||z;if(w){w=c.effects.getBaseline(w,z);h.from.top=(z.height-h.from.height)*w.y;h.from.left=(z.width-h.from.width)*w.x;h.to.top=(z.height-h.to.height)*w.y;h.to.left=(z.width-h.to.width)*w.x}var E={from:{y:h.from.height/z.height,x:h.from.width/z.width},to:{y:h.to.height/z.height,x:h.to.width/z.width}};if(r=="box"||r=="both"){if(E.from.y!=
E.to.y){f=f.concat(x);h.from=c.effects.setTransition(h,x,E.from.y,h.from);h.to=c.effects.setTransition(h,x,E.to.y,h.to)}if(E.from.x!=E.to.x){f=f.concat(y);h.from=c.effects.setTransition(h,y,E.from.x,h.from);h.to=c.effects.setTransition(h,y,E.to.x,h.to)}}if(r=="content"||r=="both")if(E.from.y!=E.to.y){f=f.concat(o);h.from=c.effects.setTransition(h,o,E.from.y,h.from);h.to=c.effects.setTransition(h,o,E.to.y,h.to)}c.effects.save(h,n?f:j);h.show();c.effects.createWrapper(h);h.css("overflow","hidden").css(h.from);
if(r=="content"||r=="both"){x=x.concat(["marginTop","marginBottom"]).concat(o);y=y.concat(["marginLeft","marginRight"]);k=f.concat(x).concat(y);h.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,k);var d={height:child.height(),width:child.width()};child.from={height:d.height*E.from.y,width:d.width*E.from.x};child.to={height:d.height*E.to.y,width:d.width*E.to.x};if(E.from.y!=E.to.y){child.from=c.effects.setTransition(child,x,E.from.y,child.from);child.to=c.effects.setTransition(child,
x,E.to.y,child.to)}if(E.from.x!=E.to.x){child.from=c.effects.setTransition(child,y,E.from.x,child.from);child.to=c.effects.setTransition(child,y,E.to.x,child.to)}child.css(child.from);child.animate(child.to,g.duration,g.options.easing,function(){n&&c.effects.restore(child,k)})})}h.animate(h.to,{queue:false,duration:g.duration,easing:g.options.easing,complete:function(){h.to.opacity===0&&h.css("opacity",h.from.opacity);q=="hide"&&h.hide();c.effects.restore(h,n?f:j);c.effects.removeWrapper(h);g.callback&&
g.callback.apply(this,arguments);h.dequeue()}})})}})(jQuery);
(function(c){c.effects.slide=function(g){return this.queue(function(){var h=c(this),f=["position","top","left"],j=c.effects.setMode(h,g.options.mode||"show"),k=g.options.direction||"left";c.effects.save(h,f);h.show();c.effects.createWrapper(h).css({overflow:"hidden"});var o=k=="up"||k=="down"?"top":"left";k=k=="up"||k=="left"?"pos":"neg";var x=g.options.distance||(o=="top"?h.outerHeight({margin:true}):h.outerWidth({margin:true}));if(j=="show")h.css(o,k=="pos"?-x:x);var y={};y[o]=(j=="show"?k=="pos"?
"+=":"-=":k=="pos"?"-=":"+=")+x;h.animate(y,{queue:false,duration:g.duration,easing:g.options.easing,complete:function(){j=="hide"&&h.hide();c.effects.restore(h,f);c.effects.removeWrapper(h);g.callback&&g.callback.apply(this,arguments);h.dequeue()}})})}})(jQuery);(function(c){c().ajaxSend(function(g,h){h.setRequestHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*")})})(jQuery);
(function(c){c.fn.reset=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};c.fn.enable=function(){return this.each(function(){this.disabled=false})};c.fn.disable=function(){return this.each(function(){this.disabled=true})}})(jQuery);
(function(c){c.extend({fieldEvent:function(g,h){var f=g[0]||g,j="change";if(f.type=="radio"||f.type=="checkbox")j="click";else if(h&&f.type=="text"||f.type=="textarea")j="keyup";return j}});c.fn.extend({delayedObserver:function(g,h){var f=c(this);if(typeof window.delayedObserverStack=="undefined")window.delayedObserverStack=[];if(typeof window.delayedObserverCallback=="undefined")window.delayedObserverCallback=function(k){observed=window.delayedObserverStack[k];observed.timer&&clearTimeout(observed.timer);
observed.timer=setTimeout(function(){observed.timer=null;observed.callback(observed.obj,observed.obj.formVal())},observed.delay*1E3);observed.oldVal=observed.obj.formVal()};window.delayedObserverStack.push({obj:f,timer:null,delay:g,oldVal:f.formVal(),callback:h});var j=window.delayedObserverStack.length-1;f[0].tagName=="FORM"?c(":input",f).each(function(){var k=c(this);k.bind(c.fieldEvent(k,g),function(){observed=window.delayedObserverStack[j];observed.obj.formVal()!=observed.obj.oldVal&&window.delayedObserverCallback(j)})}):
f.bind(c.fieldEvent(f,g),function(){observed=window.delayedObserverStack[j];observed.obj.formVal()!=observed.obj.oldVal&&window.delayedObserverCallback(j)})},formVal:function(){var g=this[0];if(g.tagName=="FORM")return this.serialize();return g.type=="checkbox"||self.type=="radio"?this.filter("input:checked").val()||"":this.val()}})})(jQuery);
(function(c){c.fn.extend({visualEffect:function(g){e=g.replace(/\_(.)/g,function(h,f){return f.toUpperCase()});return eval("$(this)."+e+"()")},appear:function(g,h){return this.fadeIn(g,h)},blindDown:function(g,h){return this.show("blind",{direction:"vertical"},g,h)},blindUp:function(g,h){return this.hide("blind",{direction:"vertical"},g,h)},blindRight:function(g,h){return this.show("blind",{direction:"horizontal"},g,h)},blindLeft:function(g,h){this.hide("blind",{direction:"horizontal"},g,h);return this},
dropOut:function(g,h){return this.hide("drop",{direction:"down"},g,h)},dropIn:function(g,h){return this.show("drop",{direction:"up"},g,h)},fade:function(g,h){return this.fadeOut(g,h)},fadeToggle:function(g,h){return this.animate({opacity:"toggle"},g,h)},fold:function(g,h){return this.hide("fold",{},g,h)},foldOut:function(g,h){return this.show("fold",{},g,h)},grow:function(g,h){return this.show("scale",{},g,h)},highlight:function(g,h){return this.show("highlight",{},g,h)},puff:function(g,h){return this.hide("puff",
{},g,h)},pulsate:function(g,h){return this.show("pulsate",{},g,h)},shake:function(g,h){return this.show("shake",{},g,h)},shrink:function(g,h){return this.hide("scale",{},g,h)},squish:function(g,h){return this.hide("scale",{origin:["top","left"]},g,h)},slideUp:function(g,h){return this.hide("slide",{direction:"up"},g,h)},slideDown:function(g,h){return this.show("slide",{direction:"up"},g,h)},switchOff:function(g,h){return this.hide("clip",{},g,h)},switchOn:function(g,h){return this.show("clip",{},
g,h)}})})(jQuery);
function FeedMenu(c,g){var h=$('<span class="feed_menu"><select></select></span>'),f=h.find("select");g&&h.addClass(g);var j={links:c||"link[type*=rss],link[type*=atom]"};this.build=function(k){k=k||j.links;var o=$('<optgroup label="Atom Feeds"></optgroup>'),x=$('<optgroup label="RSS Feeds"></optgroup>'),y=[];$(k).each(function(){var q=$(this).is("link[type*=rss]")?"rss":$(this).is("link[type*=atom]")?"atom":null,n=$(this).is("link")?"Subscribe to '"+$(this).attr("title")+"'":$(this).attr("title");n=
$("<option></option>").html(n).attr("value",$(this).attr("href")).click(function(){document.location.href=$(this).attr("value");h.removeClass("feed_menu_focused")});if(q=="rss")x.append(n);else q=="atom"&&o.append(n);y.push(n)});if(x.find("option").length>1)$.browser.opera?f.append(x.find("option")):f.append(x);if(o.find("option").length>1)$.browser.opera?f.append(o.find("option")):f.append(o);else for(opt in y)f.append(y[opt]);f.blur(function(){if($.browser.msie||$.browser.safari||$.browser.opera)this.selectedIndex=
-1;h.removeClass("open")}).focus(function(){if($.browser.msie||$.browser.safari||$.browser.opera)this.selectedIndex=-1;h.addClass("open")}).change(function(){if($.browser.msie||$.browser.safari||$.browser.opera){var q=this.selectedIndex;this.selectedIndex=-1;if(q>-1){q=this.options[q];this.selectedIndex=-1;document.location.href=$(q).attr("value")}}}).get(0).selectedIndex=-1};this.write=function(k){k=k||"body";this.build();$(k).append(h)}}
$(document).ready(function(){$("button, input:submit, a",".pagination").button();$("#loading").bind("ajaxSend",function(){$(this).show();$("body").attr("style","cursor:progress")}).bind("ajaxComplete",function(){$(this).hide();$("body").attr("style","cursor:default");$("#flash").not(":empty").slideDown(2E3).slideUp(3E3,function(){$(this).empty()})})});
