(function(a,n){function x(b,d,h){if(h===n&&b.nodeType===1){h=b.getAttribute("data-"+d);if(typeof h==="string"){try{h=h==="true"?true:h==="false"?false:h==="null"?null:!f.isNaN(h)?parseFloat(h):Z.test(h)?f.parseJSON(h):h}catch(m){}f.data(b,d,h)}else h=n}return h}function w(){return false}function u(){return true}function c(b,d,h){h[0].type=b;return f.event.handle.apply(d,h)}function g(b){var d,h,m,p,v,B,A,G,R,L,U,Y=[];p=[];v=f.data(this,this.nodeType?"events":"__events__");if(typeof v==="function")v=
v.events;if(!(b.liveFired===this||!v||!v.live||b.button&&b.type==="click")){if(b.namespace)U=RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var ja=v.live.slice(0);for(A=0;A<ja.length;A++){v=ja[A];v.origType.replace(Aa,"")===b.type?p.push(v.selector):ja.splice(A--,1)}p=f(b.target).closest(p,b.currentTarget);G=0;for(R=p.length;G<R;G++){L=p[G];for(A=0;A<ja.length;A++){v=ja[A];if(L.selector===v.selector&&(!U||U.test(v.namespace))){B=L.elem;m=null;if(v.preType===
"mouseenter"||v.preType==="mouseleave"){b.type=v.preType;m=f(b.relatedTarget).closest(v.selector)[0]}if(!m||m!==B)Y.push({elem:B,handleObj:v,level:L.level})}}}G=0;for(R=Y.length;G<R;G++){p=Y[G];if(h&&p.level>h)break;b.currentTarget=p.elem;b.data=p.handleObj.data;b.handleObj=p.handleObj;U=p.handleObj.origHandler.apply(p.elem,arguments);if(U===false||b.isPropagationStopped()){h=p.level;if(U===false)d=false;if(b.isImmediatePropagationStopped())break}}return d}}function l(b,d){return(b&&b!=="*"?b+".":
"")+d.replace(Ka,"`").replace(Ca,"&")}function o(b,d,h){if(f.isFunction(d))return f.grep(b,function(p,v){return!!d.call(p,v,p)===h});else if(d.nodeType)return f.grep(b,function(p){return p===d===h});else if(typeof d==="string"){var m=f.grep(b,function(p){return p.nodeType===1});if(cb.test(d))return f.filter(d,m,!h);else d=f.filter(d,m)}return f.grep(b,function(p){return f.inArray(p,d)>=0===h})}function q(b,d){var h=0;d.each(function(){if(this.nodeName===(b[h]&&b[h].nodeName)){var m=f.data(b[h++]),
p=f.data(this,m);if(m=m&&m.events){delete p.handle;p.events={};for(var v in m)for(var B in m[v])f.event.add(this,v,m[v][B],m[v][B].data)}}})}function C(b,d){d.src?f.ajax({url:d.src,async:false,dataType:"script"}):f.globalEval(d.text||d.textContent||d.innerHTML||"");d.parentNode&&d.parentNode.removeChild(d)}function I(b,d,h){var m=d==="width"?b.offsetWidth:b.offsetHeight;if(h==="border")return m;f.each(d==="width"?db:eb,function(){h||(m-=parseFloat(f.css(b,"padding"+this))||0);if(h==="margin")m+=parseFloat(f.css(b,
"margin"+this))||0;else m-=parseFloat(f.css(b,"border"+this+"Width"))||0});return m}function K(b,d,h,m){if(f.isArray(d)&&d.length)f.each(d,function(p,v){h||fb.test(b)?m(b,v):K(b+"["+(typeof v==="object"||f.isArray(v)?p:"")+"]",v,h,m)});else if(!h&&d!=null&&typeof d==="object")f.isEmptyObject(d)?m(b,""):f.each(d,function(p,v){K(b+"["+p+"]",v,h,m)});else m(b,d)}function N(b,d){var h={};f.each(Sa.concat.apply([],Sa.slice(0,d)),function(){h[this]=b});return h}function W(b){if(!Pa[b]){var d=f("<"+b+">").appendTo("body"),
h=d.css("display");d.remove();if(h==="none"||h==="")h="block";Pa[b]=h}return Pa[b]}function V(b){return f.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:false}var D=a.document,f=function(){function b(){if(!d.isReady){try{D.documentElement.doScroll("left")}catch(z){setTimeout(b,1);return}d.ready()}}var d=function(z,M){return new d.fn.init(z,M)},h=a.jQuery,m=a.$,p,v=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,B=/\S/,A=/^\s+/,G=/\s+$/,R=/\W/,L=/\d/,U=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Y=/^[\],:{}\s]*$/,
ja=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ha=/(?:^|:|,)(?:\s*\[)+/g,oa=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,y=/(msie) ([\w.]+)/,F=/(mozilla)(?:.*? rv:([\w.]+))?/,E=navigator.userAgent,H=false,J=[],O,S=Object.prototype.toString,ca=Object.prototype.hasOwnProperty,pa=Array.prototype.push,sa=Array.prototype.slice,ta=String.prototype.trim,ba=Array.prototype.indexOf,Da={};d.fn=d.prototype={init:function(z,M){var P,
T,ea;if(!z)return this;if(z.nodeType){this.context=this[0]=z;this.length=1;return this}if(z==="body"&&!M&&D.body){this.context=D;this[0]=D.body;this.selector="body";this.length=1;return this}if(typeof z==="string")if((P=v.exec(z))&&(P[1]||!M))if(P[1]){ea=M?M.ownerDocument||M:D;if(T=U.exec(z))if(d.isPlainObject(M)){z=[D.createElement(T[1])];d.fn.attr.call(z,M,true)}else z=[ea.createElement(T[1])];else{T=d.buildFragment([P[1]],[ea]);z=(T.cacheable?T.fragment.cloneNode(true):T.fragment).childNodes}return d.merge(this,
z)}else{if((T=D.getElementById(P[2]))&&T.parentNode){if(T.id!==P[2])return p.find(z);this.length=1;this[0]=T}this.context=D;this.selector=z;return this}else if(!M&&!R.test(z)){this.selector=z;this.context=D;z=D.getElementsByTagName(z);return d.merge(this,z)}else return!M||M.jquery?(M||p).find(z):d(M).find(z);else if(d.isFunction(z))return p.ready(z);if(z.selector!==n){this.selector=z.selector;this.context=z.context}return d.makeArray(z,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
toArray:function(){return sa.call(this,0)},get:function(z){return z==null?this.toArray():z<0?this.slice(z)[0]:this[z]},pushStack:function(z,M,P){var T=d();d.isArray(z)?pa.apply(T,z):d.merge(T,z);T.prevObject=this;T.context=this.context;if(M==="find")T.selector=this.selector+(this.selector?" ":"")+P;else if(M)T.selector=this.selector+"."+M+"("+P+")";return T},each:function(z,M){return d.each(this,z,M)},ready:function(z){d.bindReady();if(d.isReady)z.call(D,d);else J&&J.push(z);return this},eq:function(z){return z===
-1?this.slice(z):this.slice(z,+z+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(sa.apply(this,arguments),"slice",sa.call(arguments).join(","))},map:function(z){return this.pushStack(d.map(this,function(M,P){return z.call(M,P,M)}))},end:function(){return this.prevObject||d(null)},push:pa,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var z,M,P,T,ea,da=arguments[0]||{},ma=1,va=arguments.length,
Qa=false;if(typeof da==="boolean"){Qa=da;da=arguments[1]||{};ma=2}if(typeof da!=="object"&&!d.isFunction(da))da={};if(va===ma){da=this;--ma}for(;ma<va;ma++)if((z=arguments[ma])!=null)for(M in z){P=da[M];T=z[M];if(da!==T)if(Qa&&T&&(d.isPlainObject(T)||(ea=d.isArray(T)))){if(ea){ea=false;P=P&&d.isArray(P)?P:[]}else P=P&&d.isPlainObject(P)?P:{};da[M]=d.extend(Qa,P,T)}else if(T!==n)da[M]=T}return da};d.extend({noConflict:function(z){a.$=m;if(z)a.jQuery=h;return d},isReady:false,readyWait:1,ready:function(z){z===
true&&d.readyWait--;if(!d.readyWait||z!==true&&!d.isReady){if(!D.body)return setTimeout(d.ready,1);d.isReady=true;if(!(z!==true&&--d.readyWait>0))if(J){var M=0,P=J;for(J=null;z=P[M++];)z.call(D,d);d.fn.trigger&&d(D).trigger("ready").unbind("ready")}}},bindReady:function(){if(!H){H=true;if(D.readyState==="complete")return setTimeout(d.ready,1);if(D.addEventListener){D.addEventListener("DOMContentLoaded",O,false);a.addEventListener("load",d.ready,false)}else if(D.attachEvent){D.attachEvent("onreadystatechange",
O);a.attachEvent("onload",d.ready);var z=false;try{z=a.frameElement==null}catch(M){}D.documentElement.doScroll&&z&&b()}}},isFunction:function(z){return d.type(z)==="function"},isArray:Array.isArray||function(z){return d.type(z)==="array"},isWindow:function(z){return z&&typeof z==="object"&&"setInterval"in z},isNaN:function(z){return z==null||!L.test(z)||isNaN(z)},type:function(z){return z==null?String(z):Da[S.call(z)]||"object"},isPlainObject:function(z){if(!z||d.type(z)!=="object"||z.nodeType||d.isWindow(z))return false;
if(z.constructor&&!ca.call(z,"constructor")&&!ca.call(z.constructor.prototype,"isPrototypeOf"))return false;for(var M in z);return M===n||ca.call(z,M)},isEmptyObject:function(z){for(var M in z)return false;return true},error:function(z){throw z;},parseJSON:function(z){if(typeof z!=="string"||!z)return null;z=d.trim(z);if(Y.test(z.replace(ja,"@").replace(Q,"]").replace(ha,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(z):(new Function("return "+z))();else d.error("Invalid JSON: "+z)},noop:function(){},
globalEval:function(z){if(z&&B.test(z)){var M=D.getElementsByTagName("head")[0]||D.documentElement,P=D.createElement("script");P.type="text/javascript";if(d.support.scriptEval)P.appendChild(D.createTextNode(z));else P.text=z;M.insertBefore(P,M.firstChild);M.removeChild(P)}},nodeName:function(z,M){return z.nodeName&&z.nodeName.toUpperCase()===M.toUpperCase()},each:function(z,M,P){var T,ea=0,da=z.length,ma=da===n||d.isFunction(z);if(P)if(ma)for(T in z){if(M.apply(z[T],P)===false)break}else for(;ea<
da;){if(M.apply(z[ea++],P)===false)break}else if(ma)for(T in z){if(M.call(z[T],T,z[T])===false)break}else for(P=z[0];ea<da&&M.call(P,ea,P)!==false;P=z[++ea]);return z},trim:ta?function(z){return z==null?"":ta.call(z)}:function(z){return z==null?"":z.toString().replace(A,"").replace(G,"")},makeArray:function(z,M){var P=M||[];if(z!=null){var T=d.type(z);z.length==null||T==="string"||T==="function"||T==="regexp"||d.isWindow(z)?pa.call(P,z):d.merge(P,z)}return P},inArray:function(z,M){if(M.indexOf)return M.indexOf(z);
for(var P=0,T=M.length;P<T;P++)if(M[P]===z)return P;return-1},merge:function(z,M){var P=z.length,T=0;if(typeof M.length==="number")for(var ea=M.length;T<ea;T++)z[P++]=M[T];else for(;M[T]!==n;)z[P++]=M[T++];z.length=P;return z},grep:function(z,M,P){var T=[],ea;P=!!P;for(var da=0,ma=z.length;da<ma;da++){ea=!!M(z[da],da);P!==ea&&T.push(z[da])}return T},map:function(z,M,P){for(var T=[],ea,da=0,ma=z.length;da<ma;da++){ea=M(z[da],da,P);if(ea!=null)T[T.length]=ea}return T.concat.apply([],T)},guid:1,proxy:function(z,
M,P){if(arguments.length===2)if(typeof M==="string"){P=z;z=P[M];M=n}else if(M&&!d.isFunction(M)){P=M;M=n}if(!M&&z)M=function(){return z.apply(P||this,arguments)};if(z)M.guid=z.guid=z.guid||M.guid||d.guid++;return M},access:function(z,M,P,T,ea,da){var ma=z.length;if(typeof M==="object"){for(var va in M)d.access(z,va,M[va],T,ea,P);return z}if(P!==n){T=!da&&T&&d.isFunction(P);for(va=0;va<ma;va++)ea(z[va],M,T?P.call(z[va],va,ea(z[va],M)):P,da);return z}return ma?ea(z[0],M):n},now:function(){return(new Date).getTime()},
uaMatch:function(z){z=z.toLowerCase();z=oa.exec(z)||s.exec(z)||y.exec(z)||z.indexOf("compatible")<0&&F.exec(z)||[];return{browser:z[1]||"",version:z[2]||"0"}},browser:{}});d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(z,M){Da["[object "+M+"]"]=M.toLowerCase()});E=d.uaMatch(E);if(E.browser){d.browser[E.browser]=true;d.browser.version=E.version}if(d.browser.webkit)d.browser.safari=true;if(ba)d.inArray=function(z,M){return ba.call(M,z)};if(!/\s/.test("\u00a0")){A=
/^[\s\xA0]+/;G=/[\s\xA0]+$/}p=d(D);if(D.addEventListener)O=function(){D.removeEventListener("DOMContentLoaded",O,false);d.ready()};else if(D.attachEvent)O=function(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",O);d.ready()}};return a.jQuery=a.$=d}();(function(){f.support={};var b=D.documentElement,d=D.createElement("script"),h=D.createElement("div"),m="script"+f.now();h.style.display="none";h.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var p=h.getElementsByTagName("*"),v=h.getElementsByTagName("a")[0],B=D.createElement("select"),A=B.appendChild(D.createElement("option"));if(!(!p||!p.length||!v)){f.support={leadingWhitespace:h.firstChild.nodeType===3,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/red/.test(v.getAttribute("style")),hrefNormalized:v.getAttribute("href")==="/a",opacity:/^0.55$/.test(v.style.opacity),cssFloat:!!v.style.cssFloat,checkOn:h.getElementsByTagName("input")[0].value===
"on",optSelected:A.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};B.disabled=true;f.support.optDisabled=!A.disabled;d.type="text/javascript";try{d.appendChild(D.createTextNode("window."+m+"=1;"))}catch(G){}b.insertBefore(d,b.firstChild);if(a[m]){f.support.scriptEval=true;delete a[m]}try{delete d.test}catch(R){f.support.deleteExpando=false}b.removeChild(d);
if(h.attachEvent&&h.fireEvent){h.attachEvent("onclick",function L(){f.support.noCloneEvent=false;h.detachEvent("onclick",L)});h.cloneNode(true).fireEvent("onclick")}h=D.createElement("div");h.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=D.createDocumentFragment();b.appendChild(h.firstChild);f.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;f(function(){var L=D.createElement("div");L.style.width=L.style.paddingLeft="1px";D.body.appendChild(L);f.boxModel=
f.support.boxModel=L.offsetWidth===2;if("zoom"in L.style){L.style.display="inline";L.style.zoom=1;f.support.inlineBlockNeedsLayout=L.offsetWidth===2;L.style.display="";L.innerHTML="<div style='width:4px;'></div>";f.support.shrinkWrapBlocks=L.offsetWidth!==2}L.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var U=L.getElementsByTagName("td");f.support.reliableHiddenOffsets=U[0].offsetHeight===0;U[0].style.display="";U[1].style.display="none";f.support.reliableHiddenOffsets=
f.support.reliableHiddenOffsets&&U[0].offsetHeight===0;L.innerHTML="";D.body.removeChild(L).style.display="none"});b=function(L){var U=D.createElement("div");L="on"+L;var Y=L in U;if(!Y){U.setAttribute(L,"return;");Y=typeof U[L]==="function"}return Y};f.support.submitBubbles=b("submit");f.support.changeBubbles=b("change");b=d=h=p=v=null}})();var X={},Z=/^(?:\{.*\}|\[.*\])$/;f.extend({cache:{},uuid:0,expando:"jQuery"+f.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},
data:function(b,d,h){if(f.acceptData(b)){b=b==a?X:b;var m=b.nodeType,p=m?b[f.expando]:null,v=f.cache;if(!(m&&!p&&typeof d==="string"&&h===n)){if(m)p||(b[f.expando]=p=++f.uuid);else v=b;if(typeof d==="object")if(m)v[p]=f.extend(v[p],d);else f.extend(v,d);else if(m&&!v[p])v[p]={};b=m?v[p]:v;if(h!==n)b[d]=h;return typeof d==="string"?b[d]:b}}},removeData:function(b,d){if(f.acceptData(b)){b=b==a?X:b;var h=b.nodeType,m=h?b[f.expando]:b,p=f.cache,v=h?p[m]:m;if(d){if(v){delete v[d];h&&f.isEmptyObject(v)&&
f.removeData(b)}}else if(h&&f.support.deleteExpando)delete b[f.expando];else if(b.removeAttribute)b.removeAttribute(f.expando);else if(h)delete p[m];else for(var B in b)delete b[B]}},acceptData:function(b){if(b.nodeName){var d=f.noData[b.nodeName.toLowerCase()];if(d)return!(d===true||b.getAttribute("classid")!==d)}return true}});f.fn.extend({data:function(b,d){var h=null;if(typeof b==="undefined"){if(this.length){var m=this[0].attributes,p;h=f.data(this[0]);for(var v=0,B=m.length;v<B;v++){p=m[v].name;
if(p.indexOf("data-")===0){p=p.substr(5);x(this[0],p,h[p])}}}return h}else if(typeof b==="object")return this.each(function(){f.data(this,b)});var A=b.split(".");A[1]=A[1]?"."+A[1]:"";if(d===n){h=this.triggerHandler("getData"+A[1]+"!",[A[0]]);if(h===n&&this.length){h=f.data(this[0],b);h=x(this[0],b,h)}return h===n&&A[1]?this.data(A[0]):h}else return this.each(function(){var G=f(this),R=[A[0],d];G.triggerHandler("setData"+A[1]+"!",R);f.data(this,b,d);G.triggerHandler("changeData"+A[1]+"!",R)})},removeData:function(b){return this.each(function(){f.removeData(this,
b)})}});f.extend({queue:function(b,d,h){if(b){d=(d||"fx")+"queue";var m=f.data(b,d);if(!h)return m||[];if(!m||f.isArray(h))m=f.data(b,d,f.makeArray(h));else m.push(h);return m}},dequeue:function(b,d){d=d||"fx";var h=f.queue(b,d),m=h.shift();if(m==="inprogress")m=h.shift();if(m){d==="fx"&&h.unshift("inprogress");m.call(b,function(){f.dequeue(b,d)})}}});f.fn.extend({queue:function(b,d){if(typeof b!=="string"){d=b;b="fx"}if(d===n)return f.queue(this[0],b);return this.each(function(){var h=f.queue(this,
b,d);b==="fx"&&h[0]!=="inprogress"&&f.dequeue(this,b)})},dequeue:function(b){return this.each(function(){f.dequeue(this,b)})},delay:function(b,d){b=f.fx?f.fx.speeds[b]||b:b;d=d||"fx";return this.queue(d,function(){var h=this;setTimeout(function(){f.dequeue(h,d)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var aa=/[\n\t]/g,fa=/\s+/,na=/\r/g,la=/^(?:href|src|style)$/,ga=/^(?:button|input)$/i,qa=/^(?:button|input|object|select|textarea)$/i,Fa=/^a(?:rea)?$/i,Ga=/^(?:radio|checkbox)$/i;
f.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};f.fn.extend({attr:function(b,d){return f.access(this,b,d,true,f.attr)},removeAttr:function(b){return this.each(function(){f.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(f.isFunction(b))return this.each(function(R){var L=f(this);L.addClass(b.call(this,
R,L.attr("class")))});if(b&&typeof b==="string")for(var d=(b||"").split(fa),h=0,m=this.length;h<m;h++){var p=this[h];if(p.nodeType===1)if(p.className){for(var v=" "+p.className+" ",B=p.className,A=0,G=d.length;A<G;A++)if(v.indexOf(" "+d[A]+" ")<0)B+=" "+d[A];p.className=f.trim(B)}else p.className=b}return this},removeClass:function(b){if(f.isFunction(b))return this.each(function(G){var R=f(this);R.removeClass(b.call(this,G,R.attr("class")))});if(b&&typeof b==="string"||b===n)for(var d=(b||"").split(fa),
h=0,m=this.length;h<m;h++){var p=this[h];if(p.nodeType===1&&p.className)if(b){for(var v=(" "+p.className+" ").replace(aa," "),B=0,A=d.length;B<A;B++)v=v.replace(" "+d[B]+" "," ");p.className=f.trim(v)}else p.className=""}return this},toggleClass:function(b,d){var h=typeof b,m=typeof d==="boolean";if(f.isFunction(b))return this.each(function(p){var v=f(this);v.toggleClass(b.call(this,p,v.attr("class"),d),d)});return this.each(function(){if(h==="string")for(var p,v=0,B=f(this),A=d,G=b.split(fa);p=G[v++];){A=
m?A:!B.hasClass(p);B[A?"addClass":"removeClass"](p)}else if(h==="undefined"||h==="boolean"){this.className&&f.data(this,"__className__",this.className);this.className=this.className||b===false?"":f.data(this,"__className__")||""}})},hasClass:function(b){b=" "+b+" ";for(var d=0,h=this.length;d<h;d++)if((" "+this[d].className+" ").replace(aa," ").indexOf(b)>-1)return true;return false},val:function(b){if(!arguments.length){var d=this[0];if(d){if(f.nodeName(d,"option")){var h=d.attributes.value;return!h||
h.specified?d.value:d.text}if(f.nodeName(d,"select")){var m=d.selectedIndex;h=[];var p=d.options;d=d.type==="select-one";if(m<0)return null;var v=d?m:0;for(m=d?m+1:p.length;v<m;v++){var B=p[v];if(B.selected&&(f.support.optDisabled?!B.disabled:B.getAttribute("disabled")===null)&&(!B.parentNode.disabled||!f.nodeName(B.parentNode,"optgroup"))){b=f(B).val();if(d)return b;h.push(b)}}return h}if(Ga.test(d.type)&&!f.support.checkOn)return d.getAttribute("value")===null?"on":d.value;return(d.value||"").replace(na,
"")}return n}var A=f.isFunction(b);return this.each(function(G){var R=f(this),L=b;if(this.nodeType===1){if(A)L=b.call(this,G,R.val());if(L==null)L="";else if(typeof L==="number")L+="";else if(f.isArray(L))L=f.map(L,function(Y){return Y==null?"":Y+""});if(f.isArray(L)&&Ga.test(this.type))this.checked=f.inArray(R.val(),L)>=0;else if(f.nodeName(this,"select")){var U=f.makeArray(L);f("option",this).each(function(){this.selected=f.inArray(f(this).val(),U)>=0});if(!U.length)this.selectedIndex=-1}else this.value=
L}})}});f.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,d,h,m){if(!b||b.nodeType===3||b.nodeType===8)return n;if(m&&d in f.attrFn)return f(b)[d](h);m=b.nodeType!==1||!f.isXMLDoc(b);var p=h!==n;d=m&&f.props[d]||d;var v=la.test(d);if((d in b||b[d]!==n)&&m&&!v){if(p){d==="type"&&ga.test(b.nodeName)&&b.parentNode&&f.error("type property can't be changed");if(h===null)b.nodeType===1&&b.removeAttribute(d);else b[d]=h}if(f.nodeName(b,
"form")&&b.getAttributeNode(d))return b.getAttributeNode(d).nodeValue;if(d==="tabIndex")return(d=b.getAttributeNode("tabIndex"))&&d.specified?d.value:qa.test(b.nodeName)||Fa.test(b.nodeName)&&b.href?0:n;return b[d]}if(!f.support.style&&m&&d==="style"){if(p)b.style.cssText=""+h;return b.style.cssText}p&&b.setAttribute(d,""+h);if(!b.attributes[d]&&b.hasAttribute&&!b.hasAttribute(d))return n;b=!f.support.hrefNormalized&&m&&v?b.getAttribute(d,2):b.getAttribute(d);return b===null?n:b}});var Aa=/\.(.*)$/,
xa=/^(?:textarea|input|select)$/i,Ka=/\./g,Ca=/ /g,La=/[^\w\s.|`]/g,ka=function(b){return b.replace(La,"\\$&")},ra={focusin:0,focusout:0};f.event={add:function(b,d,h,m){if(!(b.nodeType===3||b.nodeType===8)){if(f.isWindow(b)&&b!==a&&!b.frameElement)b=a;if(h===false)h=w;else if(!h)return;var p,v;if(h.handler){p=h;h=p.handler}if(!h.guid)h.guid=f.guid++;if(v=f.data(b)){var B=b.nodeType?"events":"__events__",A=v[B],G=v.handle;if(typeof A==="function"){G=A.handle;A=A.events}else if(!A){b.nodeType||(v[B]=
v=function(){});v.events=A={}}if(!G)v.handle=G=function(){return typeof f!=="undefined"&&!f.event.triggered?f.event.handle.apply(G.elem,arguments):n};G.elem=b;d=d.split(" ");for(var R=0,L;B=d[R++];){v=p?f.extend({},p):{handler:h,data:m};if(B.indexOf(".")>-1){L=B.split(".");B=L.shift();v.namespace=L.slice(0).sort().join(".")}else{L=[];v.namespace=""}v.type=B;if(!v.guid)v.guid=h.guid;var U=A[B],Y=f.event.special[B]||{};if(!U){U=A[B]=[];if(!Y.setup||Y.setup.call(b,m,L,G)===false)if(b.addEventListener)b.addEventListener(B,
G,false);else b.attachEvent&&b.attachEvent("on"+B,G)}if(Y.add){Y.add.call(b,v);if(!v.handler.guid)v.handler.guid=h.guid}U.push(v);f.event.global[B]=true}b=null}}},global:{},remove:function(b,d,h,m){if(!(b.nodeType===3||b.nodeType===8)){if(h===false)h=w;var p,v,B=0,A,G,R,L,U,Y,ja=b.nodeType?"events":"__events__",Q=f.data(b),ha=Q&&Q[ja];if(Q&&ha){if(typeof ha==="function"){Q=ha;ha=ha.events}if(d&&d.type){h=d.handler;d=d.type}if(!d||typeof d==="string"&&d.charAt(0)==="."){d=d||"";for(p in ha)f.event.remove(b,
p+d)}else{for(d=d.split(" ");p=d[B++];){L=p;A=p.indexOf(".")<0;G=[];if(!A){G=p.split(".");p=G.shift();R=RegExp("(^|\\.)"+f.map(G.slice(0).sort(),ka).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(U=ha[p])if(h){L=f.event.special[p]||{};for(v=m||0;v<U.length;v++){Y=U[v];if(h.guid===Y.guid){if(A||R.test(Y.namespace)){m==null&&U.splice(v--,1);L.remove&&L.remove.call(b,Y)}if(m!=null)break}}if(U.length===0||m!=null&&U.length===1){if(!L.teardown||L.teardown.call(b,G)===false)f.removeEvent(b,p,Q.handle);delete ha[p]}}else for(v=
0;v<U.length;v++){Y=U[v];if(A||R.test(Y.namespace)){f.event.remove(b,L,Y.handler,v);U.splice(v--,1)}}}if(f.isEmptyObject(ha)){if(d=Q.handle)d.elem=null;delete Q.events;delete Q.handle;if(typeof Q==="function")f.removeData(b,ja);else f.isEmptyObject(Q)&&f.removeData(b)}}}}},trigger:function(b,d,h,m){var p=b.type||b;if(!m){b=typeof b==="object"?b[f.expando]?b:f.extend(f.Event(p),b):f.Event(p);if(p.indexOf("!")>=0){b.type=p=p.slice(0,-1);b.exclusive=true}if(!h){b.stopPropagation();f.event.global[p]&&
f.each(f.cache,function(){this.events&&this.events[p]&&f.event.trigger(b,d,this.handle.elem)})}if(!h||h.nodeType===3||h.nodeType===8)return n;b.result=n;b.target=h;d=f.makeArray(d);d.unshift(b)}b.currentTarget=h;(m=h.nodeType?f.data(h,"handle"):(f.data(h,"__events__")||{}).handle)&&m.apply(h,d);m=h.parentNode||h.ownerDocument;try{if(!(h&&h.nodeName&&f.noData[h.nodeName.toLowerCase()]))if(h["on"+p]&&h["on"+p].apply(h,d)===false){b.result=false;b.preventDefault()}}catch(v){}if(!b.isPropagationStopped()&&
m)f.event.trigger(b,d,m,true);else if(!b.isDefaultPrevented()){var B;m=b.target;var A=p.replace(Aa,""),G=f.nodeName(m,"a")&&A==="click",R=f.event.special[A]||{};if((!R._default||R._default.call(h,b)===false)&&!G&&!(m&&m.nodeName&&f.noData[m.nodeName.toLowerCase()])){try{if(m[A]){if(B=m["on"+A])m["on"+A]=null;f.event.triggered=true;m[A]()}}catch(L){}if(B)m["on"+A]=B;f.event.triggered=false}}},handle:function(b){var d,h,m,p;h=[];var v=f.makeArray(arguments);b=v[0]=f.event.fix(b||a.event);b.currentTarget=
this;d=b.type.indexOf(".")<0&&!b.exclusive;if(!d){m=b.type.split(".");b.type=m.shift();h=m.slice(0).sort();m=RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)")}b.namespace=b.namespace||h.join(".");p=f.data(this,this.nodeType?"events":"__events__");if(typeof p==="function")p=p.events;h=(p||{})[b.type];if(p&&h){h=h.slice(0);p=0;for(var B=h.length;p<B;p++){var A=h[p];if(d||m.test(A.namespace)){b.handler=A.handler;b.data=A.data;b.handleObj=A;A=A.handler.apply(this,v);if(A!==n){b.result=A;if(A===false){b.preventDefault();
b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[f.expando])return b;var d=b;b=f.Event(d);for(var h=this.props.length,
m;h;){m=this.props[--h];b[m]=d[m]}if(!b.target)b.target=b.srcElement||D;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){d=D.documentElement;h=D.body;b.pageX=b.clientX+(d&&d.scrollLeft||h&&h.scrollLeft||0)-(d&&d.clientLeft||h&&h.clientLeft||0);b.pageY=b.clientY+(d&&d.scrollTop||h&&h.scrollTop||0)-(d&&d.clientTop||h&&h.clientTop||0)}if(b.which==null&&(b.charCode!=
null||b.keyCode!=null))b.which=b.charCode!=null?b.charCode:b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==n)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(b){f.event.add(this,l(b.origType,b.selector),f.extend({},b,{handler:g,guid:b.handler.guid}))},remove:function(b){f.event.remove(this,l(b.origType,b.selector),b)}},beforeunload:{setup:function(b,d,h){if(f.isWindow(this))this.onbeforeunload=
h},teardown:function(b,d){if(this.onbeforeunload===d)this.onbeforeunload=null}}}};f.removeEvent=D.removeEventListener?function(b,d,h){b.removeEventListener&&b.removeEventListener(d,h,false)}:function(b,d,h){b.detachEvent&&b.detachEvent("on"+d,h)};f.Event=function(b){if(!this.preventDefault)return new f.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=f.now();this[f.expando]=true};f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var b=
this.originalEvent;if(b)if(b.preventDefault)b.preventDefault();else b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w};var wa=function(b){var d=b.relatedTarget;try{for(;d&&d!==this;)d=d.parentNode;if(d!==this){b.type=
b.data;f.event.handle.apply(this,arguments)}}catch(h){}},ia=function(b){b.type=b.data;f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,d){f.event.special[b]={setup:function(h){f.event.add(this,d,h&&h.selector?ia:wa,b)},teardown:function(h){f.event.remove(this,d,h&&h.selector?ia:wa)}}});if(!f.support.submitBubbles)f.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){f.event.add(this,"click.specialSubmit",function(b){var d=
b.target,h=d.type;if((h==="submit"||h==="image")&&f(d).closest("form").length){b.liveFired=n;return c("submit",this,arguments)}});f.event.add(this,"keypress.specialSubmit",function(b){var d=b.target,h=d.type;if((h==="text"||h==="password")&&f(d).closest("form").length&&b.keyCode===13){b.liveFired=n;return c("submit",this,arguments)}})}else return false},teardown:function(){f.event.remove(this,".specialSubmit")}};if(!f.support.changeBubbles){var Ba,Ha=function(b){var d=b.type,h=b.value;if(d==="radio"||
d==="checkbox")h=b.checked;else if(d==="select-multiple")h=b.selectedIndex>-1?f.map(b.options,function(m){return m.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")h=b.selectedIndex;return h},ya=function(b,d){var h=b.target,m,p;if(!(!xa.test(h.nodeName)||h.readOnly)){m=f.data(h,"_change_data");p=Ha(h);if(b.type!=="focusout"||h.type!=="radio")f.data(h,"_change_data",p);if(!(m===n||p===m))if(m!=null||p){b.type="change";b.liveFired=n;return f.event.trigger(b,d,h)}}};f.event.special.change=
{filters:{focusout:ya,beforedeactivate:ya,click:function(b){var d=b.target,h=d.type;if(h==="radio"||h==="checkbox"||d.nodeName.toLowerCase()==="select")return ya.call(this,b)},keydown:function(b){var d=b.target,h=d.type;if(b.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(h==="checkbox"||h==="radio")||h==="select-multiple")return ya.call(this,b)},beforeactivate:function(b){b=b.target;f.data(b,"_change_data",Ha(b))}},setup:function(){if(this.type==="file")return false;for(var b in Ba)f.event.add(this,
b+".specialChange",Ba[b]);return xa.test(this.nodeName)},teardown:function(){f.event.remove(this,".specialChange");return xa.test(this.nodeName)}};Ba=f.event.special.change.filters;Ba.focus=Ba.beforeactivate}D.addEventListener&&f.each({focus:"focusin",blur:"focusout"},function(b,d){function h(m){m=f.event.fix(m);m.type=d;return f.event.trigger(m,null,m.target)}f.event.special[d]={setup:function(){ra[d]++===0&&D.addEventListener(b,h,true)},teardown:function(){--ra[d]===0&&D.removeEventListener(b,h,
true)}}});f.each(["bind","one"],function(b,d){f.fn[d]=function(h,m,p){if(typeof h==="object"){for(var v in h)this[d](v,m,h[v],p);return this}if(f.isFunction(m)||m===false){p=m;m=n}var B=d==="one"?f.proxy(p,function(G){f(this).unbind(G,B);return p.apply(this,arguments)}):p;if(h==="unload"&&d!=="one")this.one(h,m,p);else{v=0;for(var A=this.length;v<A;v++)f.event.add(this[v],h,B,m)}return this}});f.fn.extend({unbind:function(b,d){if(typeof b==="object"&&!b.preventDefault)for(var h in b)this.unbind(h,
b[h]);else{h=0;for(var m=this.length;h<m;h++)f.event.remove(this[h],b,d)}return this},delegate:function(b,d,h,m){return this.live(d,h,m,b)},undelegate:function(b,d,h){return arguments.length===0?this.unbind("live"):this.die(d,null,h,b)},trigger:function(b,d){return this.each(function(){f.event.trigger(b,d,this)})},triggerHandler:function(b,d){if(this[0]){var h=f.Event(b);h.preventDefault();h.stopPropagation();f.event.trigger(h,d,this[0]);return h.result}},toggle:function(b){for(var d=arguments,h=
1;h<d.length;)f.proxy(b,d[h++]);return this.click(f.proxy(b,function(m){var p=(f.data(this,"lastToggle"+b.guid)||0)%h;f.data(this,"lastToggle"+b.guid,p+1);m.preventDefault();return d[p].apply(this,arguments)||false}))},hover:function(b,d){return this.mouseenter(b).mouseleave(d||b)}});var za={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(b,d){f.fn[d]=function(h,m,p,v){var B,A=0,G,R,L=v||this.selector;v=v?this:f(this.context);if(typeof h===
"object"&&!h.preventDefault){for(B in h)v[d](B,m,h[B],L);return this}if(f.isFunction(m)){p=m;m=n}for(h=(h||"").split(" ");(B=h[A++])!=null;){G=Aa.exec(B);R="";if(G){R=G[0];B=B.replace(Aa,"")}if(B==="hover")h.push("mouseenter"+R,"mouseleave"+R);else{G=B;if(B==="focus"||B==="blur"){h.push(za[B]+R);B+=R}else B=(za[B]||B)+R;if(d==="live"){R=0;for(var U=v.length;R<U;R++)f.event.add(v[R],"live."+l(B,L),{data:m,selector:L,handler:p,origType:B,origHandler:p,preType:G})}else v.unbind("live."+l(B,L),p)}}return this}});
f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(b,d){f.fn[d]=function(h,m){if(m==null){m=h;h=null}return arguments.length>0?this.bind(d,h,m):this.trigger(d)};if(f.attrFn)f.attrFn[d]=true});a.attachEvent&&!a.addEventListener&&f(a).bind("unload",function(){for(var b in f.cache)if(f.cache[b].handle)try{f.event.remove(f.cache[b].handle.elem)}catch(d){}});
(function(){function b(s,y,F,E,H,J){H=0;for(var O=E.length;H<O;H++){var S=E[H];if(S){var ca=false;for(S=S[s];S;){if(S.sizcache===F){ca=E[S.sizset];break}if(S.nodeType===1&&!J){S.sizcache=F;S.sizset=H}if(S.nodeName.toLowerCase()===y){ca=S;break}S=S[s]}E[H]=ca}}}function d(s,y,F,E,H,J){H=0;for(var O=E.length;H<O;H++){var S=E[H];if(S){var ca=false;for(S=S[s];S;){if(S.sizcache===F){ca=E[S.sizset];break}if(S.nodeType===1){if(!J){S.sizcache=F;S.sizset=H}if(typeof y!=="string"){if(S===y){ca=true;break}}else if(A.filter(y,
[S]).length>0){ca=S;break}}S=S[s]}E[H]=ca}}}var h=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,p=Object.prototype.toString,v=false,B=true;[0,0].sort(function(){B=false;return 0});var A=function(s,y,F,E){F=F||[];var H=y=y||D;if(y.nodeType!==1&&y.nodeType!==9)return[];if(!s||typeof s!=="string")return F;var J,O,S,ca,pa,sa=true,ta=A.isXML(y),ba=[],Da=s;do{h.exec("");if(J=h.exec(Da)){Da=J[3];ba.push(J[1]);if(J[2]){ca=
J[3];break}}}while(J);if(ba.length>1&&R.exec(s))if(ba.length===2&&G.relative[ba[0]])O=oa(ba[0]+ba[1],y);else for(O=G.relative[ba[0]]?[y]:A(ba.shift(),y);ba.length;){s=ba.shift();if(G.relative[s])s+=ba.shift();O=oa(s,O)}else{if(!E&&ba.length>1&&y.nodeType===9&&!ta&&G.match.ID.test(ba[0])&&!G.match.ID.test(ba[ba.length-1])){J=A.find(ba.shift(),y,ta);y=J.expr?A.filter(J.expr,J.set)[0]:J.set[0]}if(y){J=E?{expr:ba.pop(),set:Y(E)}:A.find(ba.pop(),ba.length===1&&(ba[0]==="~"||ba[0]==="+")&&y.parentNode?
y.parentNode:y,ta);O=J.expr?A.filter(J.expr,J.set):J.set;if(ba.length>0)S=Y(O);else sa=false;for(;ba.length;){J=pa=ba.pop();if(G.relative[pa])J=ba.pop();else pa="";if(J==null)J=y;G.relative[pa](S,J,ta)}}else S=[]}S||(S=O);S||A.error(pa||s);if(p.call(S)==="[object Array]")if(sa)if(y&&y.nodeType===1)for(s=0;S[s]!=null;s++){if(S[s]&&(S[s]===true||S[s].nodeType===1&&A.contains(y,S[s])))F.push(O[s])}else for(s=0;S[s]!=null;s++)S[s]&&S[s].nodeType===1&&F.push(O[s]);else F.push.apply(F,S);else Y(S,F);if(ca){A(ca,
H,F,E);A.uniqueSort(F)}return F};A.uniqueSort=function(s){if(Q){v=B;s.sort(Q);if(v)for(var y=1;y<s.length;y++)s[y]===s[y-1]&&s.splice(y--,1)}return s};A.matches=function(s,y){return A(s,null,null,y)};A.matchesSelector=function(s,y){return A(y,null,null,[s]).length>0};A.find=function(s,y,F){var E;if(!s)return[];for(var H=0,J=G.order.length;H<J;H++){var O,S=G.order[H];if(O=G.leftMatch[S].exec(s)){var ca=O[1];O.splice(1,1);if(ca.substr(ca.length-1)!=="\\"){O[1]=(O[1]||"").replace(/\\/g,"");E=G.find[S](O,
y,F);if(E!=null){s=s.replace(G.match[S],"");break}}}}E||(E=y.getElementsByTagName("*"));return{set:E,expr:s}};A.filter=function(s,y,F,E){for(var H,J,O=s,S=[],ca=y,pa=y&&y[0]&&A.isXML(y[0]);s&&y.length;){for(var sa in G.filter)if((H=G.leftMatch[sa].exec(s))!=null&&H[2]){var ta,ba,Da=G.filter[sa];ba=H[1];J=false;H.splice(1,1);if(ba.substr(ba.length-1)!=="\\"){if(ca===S)S=[];if(G.preFilter[sa])if(H=G.preFilter[sa](H,ca,F,S,E,pa)){if(H===true)continue}else J=ta=true;if(H)for(var z=0;(ba=ca[z])!=null;z++)if(ba){ta=
Da(ba,H,z,ca);var M=E^!!ta;if(F&&ta!=null)if(M)J=true;else ca[z]=false;else if(M){S.push(ba);J=true}}if(ta!==n){F||(ca=S);s=s.replace(G.match[sa],"");if(!J)return[];break}}}if(s===O)if(J==null)A.error(s);else break;O=s}return ca};A.error=function(s){throw"Syntax error, unrecognized expression: "+s;};var G=A.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(s){return s.getAttribute("href")}},relative:{"+":function(s,y){var F=typeof y==="string",E=F&&!/\W/.test(y);F=F&&!E;if(E)y=y.toLowerCase();E=0;for(var H=s.length,
J;E<H;E++)if(J=s[E]){for(;(J=J.previousSibling)&&J.nodeType!==1;);s[E]=F||J&&J.nodeName.toLowerCase()===y?J||false:J===y}F&&A.filter(y,s,true)},">":function(s,y){var F,E=typeof y==="string",H=0,J=s.length;if(E&&!/\W/.test(y))for(y=y.toLowerCase();H<J;H++){if(F=s[H]){F=F.parentNode;s[H]=F.nodeName.toLowerCase()===y?F:false}}else{for(;H<J;H++)if(F=s[H])s[H]=E?F.parentNode:F.parentNode===y;E&&A.filter(y,s,true)}},"":function(s,y,F){var E,H=m++,J=d;if(typeof y==="string"&&!/\W/.test(y)){E=y=y.toLowerCase();
J=b}J("parentNode",y,H,s,E,F)},"~":function(s,y,F){var E,H=m++,J=d;if(typeof y==="string"&&!/\W/.test(y)){E=y=y.toLowerCase();J=b}J("previousSibling",y,H,s,E,F)}},find:{ID:function(s,y,F){if(typeof y.getElementById!=="undefined"&&!F)return(s=y.getElementById(s[1]))&&s.parentNode?[s]:[]},NAME:function(s,y){if(typeof y.getElementsByName!=="undefined"){for(var F=[],E=y.getElementsByName(s[1]),H=0,J=E.length;H<J;H++)E[H].getAttribute("name")===s[1]&&F.push(E[H]);return F.length===0?null:F}},TAG:function(s,
y){return y.getElementsByTagName(s[1])}},preFilter:{CLASS:function(s,y,F,E,H,J){s=" "+s[1].replace(/\\/g,"")+" ";if(J)return s;J=0;for(var O;(O=y[J])!=null;J++)if(O)if(H^(O.className&&(" "+O.className+" ").replace(/[\t\n]/g," ").indexOf(s)>=0))F||E.push(O);else if(F)y[J]=false;return false},ID:function(s){return s[1].replace(/\\/g,"")},TAG:function(s){return s[1].toLowerCase()},CHILD:function(s){if(s[1]==="nth"){var y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]==="even"&&"2n"||s[2]==="odd"&&"2n+1"||!/\D/.test(s[2])&&
"0n+"+s[2]||s[2]);s[2]=y[1]+(y[2]||1)-0;s[3]=y[3]-0}s[0]=m++;return s},ATTR:function(s,y,F,E,H,J){y=s[1].replace(/\\/g,"");if(!J&&G.attrMap[y])s[1]=G.attrMap[y];if(s[2]==="~=")s[4]=" "+s[4]+" ";return s},PSEUDO:function(s,y,F,E,H){if(s[1]==="not")if((h.exec(s[3])||"").length>1||/^\w/.test(s[3]))s[3]=A(s[3],null,null,y);else{s=A.filter(s[3],y,F,true^H);F||E.push.apply(E,s);return false}else if(G.match.POS.test(s[0])||G.match.CHILD.test(s[0]))return true;return s},POS:function(s){s.unshift(true);return s}},
filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return!!s.firstChild},empty:function(s){return!s.firstChild},has:function(s,y,F){return!!A(F[3],s).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){return"text"===s.type},radio:function(s){return"radio"===s.type},checkbox:function(s){return"checkbox"===
s.type},file:function(s){return"file"===s.type},password:function(s){return"password"===s.type},submit:function(s){return"submit"===s.type},image:function(s){return"image"===s.type},reset:function(s){return"reset"===s.type},button:function(s){return"button"===s.type||s.nodeName.toLowerCase()==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)}},setFilters:{first:function(s,y){return y===0},last:function(s,y,F,E){return y===E.length-1},even:function(s,y){return y%2===
0},odd:function(s,y){return y%2===1},lt:function(s,y,F){return y<F[3]-0},gt:function(s,y,F){return y>F[3]-0},nth:function(s,y,F){return F[3]-0===y},eq:function(s,y,F){return F[3]-0===y}},filter:{PSEUDO:function(s,y,F,E){var H=y[1],J=G.filters[H];if(J)return J(s,F,y,E);else if(H==="contains")return(s.textContent||s.innerText||A.getText([s])||"").indexOf(y[3])>=0;else if(H==="not"){y=y[3];F=0;for(E=y.length;F<E;F++)if(y[F]===s)return false;return true}else A.error("Syntax error, unrecognized expression: "+
H)},CHILD:function(s,y){var F=y[1],E=s;switch(F){case "only":case "first":for(;E=E.previousSibling;)if(E.nodeType===1)return false;if(F==="first")return true;E=s;case "last":for(;E=E.nextSibling;)if(E.nodeType===1)return false;return true;case "nth":F=y[2];var H=y[3];if(F===1&&H===0)return true;var J=y[0],O=s.parentNode;if(O&&(O.sizcache!==J||!s.nodeIndex)){var S=0;for(E=O.firstChild;E;E=E.nextSibling)if(E.nodeType===1)E.nodeIndex=++S;O.sizcache=J}E=s.nodeIndex-H;return F===0?E===0:E%F===0&&E/F>=
0}},ID:function(s,y){return s.nodeType===1&&s.getAttribute("id")===y},TAG:function(s,y){return y==="*"&&s.nodeType===1||s.nodeName.toLowerCase()===y},CLASS:function(s,y){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(y)>-1},ATTR:function(s,y){var F=y[1];F=G.attrHandle[F]?G.attrHandle[F](s):s[F]!=null?s[F]:s.getAttribute(F);var E=F+"",H=y[2],J=y[4];return F==null?H==="!=":H==="="?E===J:H==="*="?E.indexOf(J)>=0:H==="~="?(" "+E+" ").indexOf(J)>=0:!J?E&&F!==false:H==="!="?E!==J:H==="^="?
E.indexOf(J)===0:H==="$="?E.substr(E.length-J.length)===J:H==="|="?E===J||E.substr(0,J.length+1)===J+"-":false},POS:function(s,y,F,E){var H=G.setFilters[y[2]];if(H)return H(s,F,y,E)}}},R=G.match.POS,L=function(s,y){return"\\"+(y-0+1)},U;for(U in G.match){G.match[U]=RegExp(G.match[U].source+/(?![^\[]*\])(?![^\(]*\))/.source);G.leftMatch[U]=RegExp(/(^(?:.|\r|\n)*?)/.source+G.match[U].source.replace(/\\(\d+)/g,L))}var Y=function(s,y){s=Array.prototype.slice.call(s,0);if(y){y.push.apply(y,s);return y}return s};
try{Array.prototype.slice.call(D.documentElement.childNodes,0)}catch(ja){Y=function(s,y){var F=0,E=y||[];if(p.call(s)==="[object Array]")Array.prototype.push.apply(E,s);else if(typeof s.length==="number")for(var H=s.length;F<H;F++)E.push(s[F]);else for(;s[F];F++)E.push(s[F]);return E}}var Q,ha;if(D.documentElement.compareDocumentPosition)Q=function(s,y){if(s===y){v=true;return 0}if(!s.compareDocumentPosition||!y.compareDocumentPosition)return s.compareDocumentPosition?-1:1;return s.compareDocumentPosition(y)&
4?-1:1};else{Q=function(s,y){var F,E,H=[],J=[];F=s.parentNode;E=y.parentNode;var O=F;if(s===y){v=true;return 0}else if(F===E)return ha(s,y);else if(F){if(!E)return 1}else return-1;for(;O;){H.unshift(O);O=O.parentNode}for(O=E;O;){J.unshift(O);O=O.parentNode}F=H.length;E=J.length;for(O=0;O<F&&O<E;O++)if(H[O]!==J[O])return ha(H[O],J[O]);return O===F?ha(s,J[O],-1):ha(H[O],y,1)};ha=function(s,y,F){if(s===y)return F;for(s=s.nextSibling;s;){if(s===y)return-1;s=s.nextSibling}return 1}}A.getText=function(s){for(var y=
"",F,E=0;s[E];E++){F=s[E];if(F.nodeType===3||F.nodeType===4)y+=F.nodeValue;else if(F.nodeType!==8)y+=A.getText(F.childNodes)}return y};(function(){var s=D.createElement("div"),y="script"+(new Date).getTime(),F=D.documentElement;s.innerHTML="<a name='"+y+"'/>";F.insertBefore(s,F.firstChild);if(D.getElementById(y)){G.find.ID=function(E,H,J){if(typeof H.getElementById!=="undefined"&&!J)return(H=H.getElementById(E[1]))?H.id===E[1]||typeof H.getAttributeNode!=="undefined"&&H.getAttributeNode("id").nodeValue===
E[1]?[H]:n:[]};G.filter.ID=function(E,H){var J=typeof E.getAttributeNode!=="undefined"&&E.getAttributeNode("id");return E.nodeType===1&&J&&J.nodeValue===H}}F.removeChild(s);F=s=null})();(function(){var s=D.createElement("div");s.appendChild(D.createComment(""));if(s.getElementsByTagName("*").length>0)G.find.TAG=function(y,F){var E=F.getElementsByTagName(y[1]);if(y[1]==="*"){for(var H=[],J=0;E[J];J++)E[J].nodeType===1&&H.push(E[J]);E=H}return E};s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!==
"undefined"&&s.firstChild.getAttribute("href")!=="#")G.attrHandle.href=function(y){return y.getAttribute("href",2)};s=null})();D.querySelectorAll&&function(){var s=A,y=D.createElement("div");y.innerHTML="<p class='TEST'></p>";if(!(y.querySelectorAll&&y.querySelectorAll(".TEST").length===0)){A=function(E,H,J,O){H=H||D;E=E.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!O&&!A.isXML(H))if(H.nodeType===9)try{return Y(H.querySelectorAll(E),J)}catch(S){}else if(H.nodeType===1&&H.nodeName.toLowerCase()!==
"object"){var ca=H.getAttribute("id"),pa=ca||"__sizzle__";ca||H.setAttribute("id",pa);try{return Y(H.querySelectorAll("#"+pa+" "+E),J)}catch(sa){}finally{ca||H.removeAttribute("id")}}return s(E,H,J,O)};for(var F in s)A[F]=s[F];y=null}}();(function(){var s=D.documentElement,y=s.matchesSelector||s.mozMatchesSelector||s.webkitMatchesSelector||s.msMatchesSelector,F=false;try{y.call(D.documentElement,"[test!='']:sizzle")}catch(E){F=true}if(y)A.matchesSelector=function(H,J){J=J.replace(/\=\s*([^'"\]]*)\s*\]/g,
"='$1']");if(!A.isXML(H))try{if(F||!G.match.PSEUDO.test(J)&&!/!=/.test(J))return y.call(H,J)}catch(O){}return A(J,null,null,[H]).length>0}})();(function(){var s=D.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){G.order.splice(1,0,"CLASS");G.find.CLASS=function(y,F,E){if(typeof F.getElementsByClassName!=="undefined"&&
!E)return F.getElementsByClassName(y[1])};s=null}}})();A.contains=D.documentElement.contains?function(s,y){return s!==y&&(s.contains?s.contains(y):true)}:D.documentElement.compareDocumentPosition?function(s,y){return!!(s.compareDocumentPosition(y)&16)}:function(){return false};A.isXML=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false};var oa=function(s,y){for(var F,E=[],H="",J=y.nodeType?[y]:y;F=G.match.PSEUDO.exec(s);){H+=F[0];s=s.replace(G.match.PSEUDO,"")}s=
G.relative[s]?s+"*":s;F=0;for(var O=J.length;F<O;F++)A(s,J[F],E);return A.filter(H,E)};f.find=A;f.expr=A.selectors;f.expr[":"]=f.expr.filters;f.unique=A.uniqueSort;f.text=A.getText;f.isXMLDoc=A.isXML;f.contains=A.contains})();var Ia=/Until$/,gb=/^(?:parents|prevUntil|prevAll)/,hb=/,/,cb=/^.[^:#\[\.,]*$/,ib=Array.prototype.slice,jb=f.expr.match.POS;f.fn.extend({find:function(b){for(var d=this.pushStack("","find",b),h=0,m=0,p=this.length;m<p;m++){h=d.length;f.find(b,this[m],d);if(m>0)for(var v=h;v<
d.length;v++)for(var B=0;B<h;B++)if(d[B]===d[v]){d.splice(v--,1);break}}return d},has:function(b){var d=f(b);return this.filter(function(){for(var h=0,m=d.length;h<m;h++)if(f.contains(this,d[h]))return true})},not:function(b){return this.pushStack(o(this,b,false),"not",b)},filter:function(b){return this.pushStack(o(this,b,true),"filter",b)},is:function(b){return!!b&&f.filter(b,this).length>0},closest:function(b,d){var h=[],m,p,v=this[0];if(f.isArray(b)){var B,A={},G=1;if(v&&b.length){m=0;for(p=b.length;m<
p;m++){B=b[m];A[B]||(A[B]=f.expr.match.POS.test(B)?f(B,d||this.context):B)}for(;v&&v.ownerDocument&&v!==d;){for(B in A){m=A[B];if(m.jquery?m.index(v)>-1:f(v).is(m))h.push({selector:B,elem:v,level:G})}v=v.parentNode;G++}}return h}B=jb.test(b)?f(b,d||this.context):null;m=0;for(p=this.length;m<p;m++)for(v=this[m];v;)if(B?B.index(v)>-1:f.find.matchesSelector(v,b)){h.push(v);break}else{v=v.parentNode;if(!v||!v.ownerDocument||v===d)break}h=h.length>1?f.unique(h):h;return this.pushStack(h,"closest",b)},
index:function(b){if(!b||typeof b==="string")return f.inArray(this[0],b?f(b):this.parent().children());return f.inArray(b.jquery?b[0]:b,this)},add:function(b,d){var h=typeof b==="string"?f(b,d||this.context):f.makeArray(b),m=f.merge(this.get(),h);return this.pushStack(!h[0]||!h[0].parentNode||h[0].parentNode.nodeType===11||!m[0]||!m[0].parentNode||m[0].parentNode.nodeType===11?m:f.unique(m))},andSelf:function(){return this.add(this.prevObject)}});f.each({parent:function(b){return(b=b.parentNode)&&
b.nodeType!==11?b:null},parents:function(b){return f.dir(b,"parentNode")},parentsUntil:function(b,d,h){return f.dir(b,"parentNode",h)},next:function(b){return f.nth(b,2,"nextSibling")},prev:function(b){return f.nth(b,2,"previousSibling")},nextAll:function(b){return f.dir(b,"nextSibling")},prevAll:function(b){return f.dir(b,"previousSibling")},nextUntil:function(b,d,h){return f.dir(b,"nextSibling",h)},prevUntil:function(b,d,h){return f.dir(b,"previousSibling",h)},siblings:function(b){return f.sibling(b.parentNode.firstChild,
b)},children:function(b){return f.sibling(b.firstChild)},contents:function(b){return f.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:f.makeArray(b.childNodes)}},function(b,d){f.fn[b]=function(h,m){var p=f.map(this,d,h);Ia.test(b)||(m=h);if(m&&typeof m==="string")p=f.filter(m,p);p=this.length>1?f.unique(p):p;if((this.length>1||hb.test(m))&&gb.test(b))p=p.reverse();return this.pushStack(p,b,ib.call(arguments).join(","))}});f.extend({filter:function(b,d,h){if(h)b=":not("+b+")";return d.length===
1?f.find.matchesSelector(d[0],b)?[d[0]]:[]:f.find.matches(b,d)},dir:function(b,d,h){var m=[];for(b=b[d];b&&b.nodeType!==9&&(h===n||b.nodeType!==1||!f(b).is(h));){b.nodeType===1&&m.push(b);b=b[d]}return m},nth:function(b,d,h){d=d||1;for(var m=0;b;b=b[h])if(b.nodeType===1&&++m===d)break;return b},sibling:function(b,d){for(var h=[];b;b=b.nextSibling)b.nodeType===1&&b!==d&&h.push(b);return h}});var Ta=/ jQuery\d+="(?:\d+|null)"/g,Ma=/^\s+/,Ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
Va=/<([\w:]+)/,kb=/<tbody/i,lb=/<|&#?\w+;/,Wa=/<(?:script|object|embed|option|style)/i,Xa=/checked\s*(?:[^=]|=\s*.checked.)/i,mb=/\=([^="'>\s]+\/)>/g,ua={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,"",""]};ua.optgroup=ua.option;
ua.tbody=ua.tfoot=ua.colgroup=ua.caption=ua.thead;ua.th=ua.td;if(!f.support.htmlSerialize)ua._default=[1,"div<div>","</div>"];f.fn.extend({text:function(b){if(f.isFunction(b))return this.each(function(d){var h=f(this);h.text(b.call(this,d,h.text()))});if(typeof b!=="object"&&b!==n)return this.empty().append((this[0]&&this[0].ownerDocument||D).createTextNode(b));return f.text(this)},wrapAll:function(b){if(f.isFunction(b))return this.each(function(h){f(this).wrapAll(b.call(this,h))});if(this[0]){var d=
f(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&d.insertBefore(this[0]);d.map(function(){for(var h=this;h.firstChild&&h.firstChild.nodeType===1;)h=h.firstChild;return h}).append(this)}return this},wrapInner:function(b){if(f.isFunction(b))return this.each(function(d){f(this).wrapInner(b.call(this,d))});return this.each(function(){var d=f(this),h=d.contents();h.length?h.wrapAll(b):d.append(b)})},wrap:function(b){return this.each(function(){f(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,
"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(d){this.parentNode.insertBefore(d,this)});else if(arguments.length){var b=f(arguments[0]);b.push.apply(b,this.toArray());
return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(d){this.parentNode.insertBefore(d,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,f(arguments[0]).toArray());return b}},remove:function(b,d){for(var h=0,m;(m=this[h])!=null;h++)if(!b||f.filter(b,[m]).length){if(!d&&m.nodeType===1){f.cleanData(m.getElementsByTagName("*"));f.cleanData([m])}m.parentNode&&
m.parentNode.removeChild(m)}return this},empty:function(){for(var b=0,d;(d=this[b])!=null;b++)for(d.nodeType===1&&f.cleanData(d.getElementsByTagName("*"));d.firstChild;)d.removeChild(d.firstChild);return this},clone:function(b){var d=this.map(function(){if(!f.support.noCloneEvent&&!f.isXMLDoc(this)){var h=this.outerHTML,m=this.ownerDocument;if(!h){h=m.createElement("div");h.appendChild(this.cloneNode(true));h=h.innerHTML}return f.clean([h.replace(Ta,"").replace(mb,'="$1">').replace(Ma,"")],m)[0]}else return this.cloneNode(true)});
if(b===true){q(this,d);q(this.find("*"),d.find("*"))}return d},html:function(b){if(b===n)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ta,""):null;else if(typeof b==="string"&&!Wa.test(b)&&(f.support.leadingWhitespace||!Ma.test(b))&&!ua[(Va.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(Ua,"<$1></$2>");try{for(var d=0,h=this.length;d<h;d++)if(this[d].nodeType===1){f.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=b}}catch(m){this.empty().append(b)}}else f.isFunction(b)?
this.each(function(p){var v=f(this);v.html(b.call(this,p,v.html()))}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(f.isFunction(b))return this.each(function(d){var h=f(this),m=h.html();h.replaceWith(b.call(this,d,m))});if(typeof b!=="string")b=f(b).detach();return this.each(function(){var d=this.nextSibling,h=this.parentNode;f(this).remove();d?f(d).before(b):f(h).append(b)})}else return this.pushStack(f(f.isFunction(b)?b():b),"replaceWith",b)},detach:function(b){return this.remove(b,
true)},domManip:function(b,d,h){var m,p,v,B=b[0],A=[];if(!f.support.checkClone&&arguments.length===3&&typeof B==="string"&&Xa.test(B))return this.each(function(){f(this).domManip(b,d,h,true)});if(f.isFunction(B))return this.each(function(R){var L=f(this);b[0]=B.call(this,R,d?L.html():n);L.domManip(b,d,h)});if(this[0]){m=B&&B.parentNode;m=f.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===this.length?{fragment:m}:f.buildFragment(b,this,A);v=m.fragment;if(p=v.childNodes.length===1?v=v.firstChild:
v.firstChild){d=d&&f.nodeName(p,"tr");p=0;for(var G=this.length;p<G;p++)h.call(d?f.nodeName(this[p],"table")?this[p].getElementsByTagName("tbody")[0]||this[p].appendChild(this[p].ownerDocument.createElement("tbody")):this[p]:this[p],p>0||m.cacheable||this.length>1?v.cloneNode(true):v)}A.length&&f.each(A,C)}return this}});f.buildFragment=function(b,d,h){var m,p,v;d=d&&d[0]?d[0].ownerDocument||d[0]:D;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&d===D&&!Wa.test(b[0])&&(f.support.checkClone||
!Xa.test(b[0]))){p=true;if(v=f.fragments[b[0]])if(v!==1)m=v}if(!m){m=d.createDocumentFragment();f.clean(b,d,m,h)}if(p)f.fragments[b[0]]=v?m:1;return{fragment:m,cacheable:p}};f.fragments={};f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,d){f.fn[b]=function(h){var m=[];h=f(h);var p=this.length===1&&this[0].parentNode;if(p&&p.nodeType===11&&p.childNodes.length===1&&h.length===1){h[d](this[0]);return this}else{p=0;for(var v=
h.length;p<v;p++){var B=(p>0?this.clone(true):this).get();f(h[p])[d](B);m=m.concat(B)}return this.pushStack(m,b,h.selector)}}});f.extend({clean:function(b,d,h,m){d=d||D;if(typeof d.createElement==="undefined")d=d.ownerDocument||d[0]&&d[0].ownerDocument||D;for(var p=[],v=0,B;(B=b[v])!=null;v++){if(typeof B==="number")B+="";if(B){if(typeof B==="string"&&!lb.test(B))B=d.createTextNode(B);else if(typeof B==="string"){B=B.replace(Ua,"<$1></$2>");var A=(Va.exec(B)||["",""])[1].toLowerCase(),G=ua[A]||ua._default,
R=G[0],L=d.createElement("div");for(L.innerHTML=G[1]+B+G[2];R--;)L=L.lastChild;if(!f.support.tbody){R=kb.test(B);A=A==="table"&&!R?L.firstChild&&L.firstChild.childNodes:G[1]==="<table>"&&!R?L.childNodes:[];for(G=A.length-1;G>=0;--G)f.nodeName(A[G],"tbody")&&!A[G].childNodes.length&&A[G].parentNode.removeChild(A[G])}!f.support.leadingWhitespace&&Ma.test(B)&&L.insertBefore(d.createTextNode(Ma.exec(B)[0]),L.firstChild);B=L.childNodes}if(B.nodeType)p.push(B);else p=f.merge(p,B)}}if(h)for(v=0;p[v];v++)if(m&&
f.nodeName(p[v],"script")&&(!p[v].type||p[v].type.toLowerCase()==="text/javascript"))m.push(p[v].parentNode?p[v].parentNode.removeChild(p[v]):p[v]);else{p[v].nodeType===1&&p.splice.apply(p,[v+1,0].concat(f.makeArray(p[v].getElementsByTagName("script"))));h.appendChild(p[v])}return p},cleanData:function(b){for(var d,h,m=f.cache,p=f.event.special,v=f.support.deleteExpando,B=0,A;(A=b[B])!=null;B++)if(!(A.nodeName&&f.noData[A.nodeName.toLowerCase()]))if(h=A[f.expando]){if((d=m[h])&&d.events)for(var G in d.events)p[G]?
f.event.remove(A,G):f.removeEvent(A,G,d.handle);if(v)delete A[f.expando];else A.removeAttribute&&A.removeAttribute(f.expando);delete m[h]}}});var Ya=/alpha\([^)]*\)/i,nb=/opacity=([^)]*)/,ob=/-([a-z])/ig,pb=/([A-Z])/g,Za=/^-?\d+(?:px)?$/i,qb=/^-?\d/,rb={position:"absolute",visibility:"hidden",display:"block"},db=["Left","Right"],eb=["Top","Bottom"],Ja,$a,Na,sb=function(b,d){return d.toUpperCase()};f.fn.css=function(b,d){if(arguments.length===2&&d===n)return this;return f.access(this,b,d,true,function(h,
m,p){return p!==n?f.style(h,m,p):f.css(h,m)})};f.extend({cssHooks:{opacity:{get:function(b,d){if(d){var h=Ja(b,"opacity","opacity");return h===""?"1":h}else return b.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(b,d,h,m){if(!(!b||b.nodeType===3||b.nodeType===8||!b.style)){var p,v=f.camelCase(d),B=b.style,A=f.cssHooks[v];d=f.cssProps[v]||v;if(h!==n){if(!(typeof h==="number"&&
isNaN(h)||h==null)){if(typeof h==="number"&&!f.cssNumber[v])h+="px";if(!A||!("set"in A)||(h=A.set(b,h))!==n)try{B[d]=h}catch(G){}}}else{if(A&&"get"in A&&(p=A.get(b,false,m))!==n)return p;return B[d]}}},css:function(b,d,h){var m,p=f.camelCase(d),v=f.cssHooks[p];d=f.cssProps[p]||p;if(v&&"get"in v&&(m=v.get(b,true,h))!==n)return m;else if(Ja)return Ja(b,d,p)},swap:function(b,d,h){var m={},p;for(p in d){m[p]=b.style[p];b.style[p]=d[p]}h.call(b);for(p in d)b.style[p]=m[p]},camelCase:function(b){return b.replace(ob,
sb)}});f.curCSS=f.css;f.each(["height","width"],function(b,d){f.cssHooks[d]={get:function(h,m,p){var v;if(m){if(h.offsetWidth!==0)v=I(h,d,p);else f.swap(h,rb,function(){v=I(h,d,p)});if(v<=0){v=Ja(h,d,d);if(v==="0px"&&Na)v=Na(h,d,d);if(v!=null)return v===""||v==="auto"?"0px":v}if(v<0||v==null){v=h.style[d];return v===""||v==="auto"?"0px":v}return typeof v==="string"?v:v+"px"}},set:function(h,m){if(Za.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!f.support.opacity)f.cssHooks.opacity=
{get:function(b,d){return nb.test((d&&b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/100+"":d?"1":""},set:function(b,d){var h=b.style;h.zoom=1;var m=f.isNaN(d)?"":"alpha(opacity="+d*100+")",p=h.filter||"";h.filter=Ya.test(p)?p.replace(Ya,m):h.filter+" "+m}};if(D.defaultView&&D.defaultView.getComputedStyle)$a=function(b,d,h){var m;h=h.replace(pb,"-$1").toLowerCase();if(!(d=b.ownerDocument.defaultView))return n;if(d=d.getComputedStyle(b,null)){m=d.getPropertyValue(h);
if(m===""&&!f.contains(b.ownerDocument.documentElement,b))m=f.style(b,h)}return m};if(D.documentElement.currentStyle)Na=function(b,d){var h,m,p=b.currentStyle&&b.currentStyle[d],v=b.style;if(!Za.test(p)&&qb.test(p)){h=v.left;m=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;v.left=d==="fontSize"?"1em":p||0;p=v.pixelLeft+"px";v.left=h;b.runtimeStyle.left=m}return p===""?"auto":p};Ja=$a||Na;if(f.expr&&f.expr.filters){f.expr.filters.hidden=function(b){var d=b.offsetHeight;return b.offsetWidth===
0&&d===0||!f.support.reliableHiddenOffsets&&(b.style.display||f.css(b,"display"))==="none"};f.expr.filters.visible=function(b){return!f.expr.filters.hidden(b)}}var tb=f.now(),ub=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,vb=/^(?:select|textarea)/i,wb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,xb=/^(?:GET|HEAD)$/,fb=/\[\]$/,Ea=/\=\?(&|$)/,Ra=/\?/,yb=/([?&])_=[^&]*/,zb=/^(\w+:)?\/\/([^\/?#]+)/,Ab=/%20/g,Bb=/#.*$/,ab=f.fn.load;f.fn.extend({load:function(b,
d,h){if(typeof b!=="string"&&ab)return ab.apply(this,arguments);else if(!this.length)return this;var m=b.indexOf(" ");if(m>=0){var p=b.slice(m,b.length);b=b.slice(0,m)}m="GET";if(d)if(f.isFunction(d)){h=d;d=null}else if(typeof d==="object"){d=f.param(d,f.ajaxSettings.traditional);m="POST"}var v=this;f.ajax({url:b,type:m,dataType:"html",data:d,complete:function(B,A){if(A==="success"||A==="notmodified")v.html(p?f("<div>").append(B.responseText.replace(ub,"")).find(p):B.responseText);h&&v.each(h,[B.responseText,
A,B])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vb.test(this.nodeName)||wb.test(this.type))}).map(function(b,d){var h=f(this).val();return h==null?null:f.isArray(h)?f.map(h,function(m){return{name:d.name,value:m}}):{name:d.name,value:h}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(b,d){f.fn[d]=function(h){return this.bind(d,h)}});f.extend({get:function(b,d,h,m){if(f.isFunction(d)){m=m||h;h=d;d=null}return f.ajax({type:"GET",url:b,data:d,success:h,dataType:m})},getScript:function(b,d){return f.get(b,null,d,"script")},getJSON:function(b,d,h){return f.get(b,d,h,"json")},post:function(b,d,h,m){if(f.isFunction(d)){m=m||h;h=d;d={}}return f.ajax({type:"POST",url:b,data:d,success:h,dataType:m})},ajaxSetup:function(b){f.extend(f.ajaxSettings,b)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new a.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(b){var d=f.extend(true,{},f.ajaxSettings,b),h,m,p,v=d.type.toUpperCase(),B=xb.test(v);d.url=d.url.replace(Bb,"");d.context=b&&b.context!=null?b.context:d;if(d.data&&
d.processData&&typeof d.data!=="string")d.data=f.param(d.data,d.traditional);if(d.dataType==="jsonp"){if(v==="GET")Ea.test(d.url)||(d.url+=(Ra.test(d.url)?"&":"?")+(d.jsonp||"callback")+"=?");else if(!d.data||!Ea.test(d.data))d.data=(d.data?d.data+"&":"")+(d.jsonp||"callback")+"=?";d.dataType="json"}if(d.dataType==="json"&&(d.data&&Ea.test(d.data)||Ea.test(d.url))){h=d.jsonpCallback||"jsonp"+tb++;if(d.data)d.data=(d.data+"").replace(Ea,"="+h+"$1");d.url=d.url.replace(Ea,"="+h+"$1");d.dataType="script";
var A=a[h];a[h]=function(E){if(f.isFunction(A))A(E);else{a[h]=n;try{delete a[h]}catch(H){}}p=E;f.handleSuccess(d,Q,m,p);f.handleComplete(d,Q,m,p);L&&L.removeChild(U)}}if(d.dataType==="script"&&d.cache===null)d.cache=false;if(d.cache===false&&B){var G=f.now(),R=d.url.replace(yb,"$1_="+G);d.url=R+(R===d.url?(Ra.test(d.url)?"&":"?")+"_="+G:"")}if(d.data&&B)d.url+=(Ra.test(d.url)?"&":"?")+d.data;d.global&&f.active++===0&&f.event.trigger("ajaxStart");G=(G=zb.exec(d.url))&&(G[1]&&G[1].toLowerCase()!==location.protocol||
G[2].toLowerCase()!==location.host);if(d.dataType==="script"&&v==="GET"&&G){var L=D.getElementsByTagName("head")[0]||D.documentElement,U=D.createElement("script");if(d.scriptCharset)U.charset=d.scriptCharset;U.src=d.url;if(!h){var Y=false;U.onload=U.onreadystatechange=function(){if(!Y&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){Y=true;f.handleSuccess(d,Q,m,p);f.handleComplete(d,Q,m,p);U.onload=U.onreadystatechange=null;L&&U.parentNode&&L.removeChild(U)}}}L.insertBefore(U,
L.firstChild);return n}var ja=false,Q=d.xhr();if(Q){d.username?Q.open(v,d.url,d.async,d.username,d.password):Q.open(v,d.url,d.async);try{if(d.data!=null&&!B||b&&b.contentType)Q.setRequestHeader("Content-Type",d.contentType);if(d.ifModified){f.lastModified[d.url]&&Q.setRequestHeader("If-Modified-Since",f.lastModified[d.url]);f.etag[d.url]&&Q.setRequestHeader("If-None-Match",f.etag[d.url])}G||Q.setRequestHeader("X-Requested-With","XMLHttpRequest");Q.setRequestHeader("Accept",d.dataType&&d.accepts[d.dataType]?
d.accepts[d.dataType]+", */*; q=0.01":d.accepts._default)}catch(ha){}if(d.beforeSend&&d.beforeSend.call(d.context,Q,d)===false){d.global&&f.active--===1&&f.event.trigger("ajaxStop");Q.abort();return false}d.global&&f.triggerGlobal(d,"ajaxSend",[Q,d]);var oa=Q.onreadystatechange=function(E){if(!Q||Q.readyState===0||E==="abort"){ja||f.handleComplete(d,Q,m,p);ja=true;if(Q)Q.onreadystatechange=f.noop}else if(!ja&&Q&&(Q.readyState===4||E==="timeout")){ja=true;Q.onreadystatechange=f.noop;m=E==="timeout"?
"timeout":!f.httpSuccess(Q)?"error":d.ifModified&&f.httpNotModified(Q,d.url)?"notmodified":"success";var H;if(m==="success")try{p=f.httpData(Q,d.dataType,d)}catch(J){m="parsererror";H=J}if(m==="success"||m==="notmodified")h||f.handleSuccess(d,Q,m,p);else f.handleError(d,Q,m,H);h||f.handleComplete(d,Q,m,p);E==="timeout"&&Q.abort();if(d.async)Q=null}};try{var s=Q.abort;Q.abort=function(){Q&&Function.prototype.call.call(s,Q);oa("abort")}}catch(y){}d.async&&d.timeout>0&&setTimeout(function(){Q&&!ja&&
oa("timeout")},d.timeout);try{Q.send(B||d.data==null?null:d.data)}catch(F){f.handleError(d,Q,null,F);f.handleComplete(d,Q,m,p)}d.async||oa();return Q}},param:function(b,d){var h=[],m=function(v,B){B=f.isFunction(B)?B():B;h[h.length]=encodeURIComponent(v)+"="+encodeURIComponent(B)};if(d===n)d=f.ajaxSettings.traditional;if(f.isArray(b)||b.jquery)f.each(b,function(){m(this.name,this.value)});else for(var p in b)K(p,b[p],d,m);return h.join("&").replace(Ab,"+")}});f.extend({active:0,lastModified:{},etag:{},
handleError:function(b,d,h,m){b.error&&b.error.call(b.context,d,h,m);b.global&&f.triggerGlobal(b,"ajaxError",[d,b,m])},handleSuccess:function(b,d,h,m){b.success&&b.success.call(b.context,m,h,d);b.global&&f.triggerGlobal(b,"ajaxSuccess",[d,b])},handleComplete:function(b,d,h){b.complete&&b.complete.call(b.context,d,h);b.global&&f.triggerGlobal(b,"ajaxComplete",[d,b]);b.global&&f.active--===1&&f.event.trigger("ajaxStop")},triggerGlobal:function(b,d,h){(b.context&&b.context.url==null?f(b.context):f.event).trigger(d,
h)},httpSuccess:function(b){try{return!b.status&&location.protocol==="file:"||b.status>=200&&b.status<300||b.status===304||b.status===1223}catch(d){}return false},httpNotModified:function(b,d){var h=b.getResponseHeader("Last-Modified"),m=b.getResponseHeader("Etag");if(h)f.lastModified[d]=h;if(m)f.etag[d]=m;return b.status===304},httpData:function(b,d,h){var m=b.getResponseHeader("content-type")||"",p=d==="xml"||!d&&m.indexOf("xml")>=0;b=p?b.responseXML:b.responseText;p&&b.documentElement.nodeName===
"parsererror"&&f.error("parsererror");if(h&&h.dataFilter)b=h.dataFilter(b,d);if(typeof b==="string")if(d==="json"||!d&&m.indexOf("json")>=0)b=f.parseJSON(b);else if(d==="script"||!d&&m.indexOf("javascript")>=0)f.globalEval(b);return b}});if(a.ActiveXObject)f.ajaxSettings.xhr=function(){if(a.location.protocol!=="file:")try{return new a.XMLHttpRequest}catch(b){}try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(d){}};f.support.ajax=!!f.ajaxSettings.xhr();var Pa={},Cb=/^(?:toggle|show|hide)$/,
Db=/^([+\-]=)?([\d+.\-]+)(.*)$/,Oa,Sa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];f.fn.extend({show:function(b,d,h){if(b||b===0)return this.animate(N("show",3),b,d,h);else{h=0;for(var m=this.length;h<m;h++){b=this[h];d=b.style.display;if(!f.data(b,"olddisplay")&&d==="none")d=b.style.display="";d===""&&f.css(b,"display")==="none"&&f.data(b,"olddisplay",W(b.nodeName))}for(h=0;h<m;h++){b=this[h];d=
b.style.display;if(d===""||d==="none")b.style.display=f.data(b,"olddisplay")||""}return this}},hide:function(b,d,h){if(b||b===0)return this.animate(N("hide",3),b,d,h);else{b=0;for(d=this.length;b<d;b++){h=f.css(this[b],"display");h!=="none"&&f.data(this[b],"olddisplay",h)}for(b=0;b<d;b++)this[b].style.display="none";return this}},_toggle:f.fn.toggle,toggle:function(b,d,h){var m=typeof b==="boolean";if(f.isFunction(b)&&f.isFunction(d))this._toggle.apply(this,arguments);else b==null||m?this.each(function(){var p=
m?b:f(this).is(":hidden");f(this)[p?"show":"hide"]()}):this.animate(N("toggle",3),b,d,h);return this},fadeTo:function(b,d,h,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:d},b,h,m)},animate:function(b,d,h,m){var p=f.speed(d,h,m);if(f.isEmptyObject(b))return this.each(p.complete);return this[p.queue===false?"each":"queue"](function(){var v=f.extend({},p),B,A=this.nodeType===1,G=A&&f(this).is(":hidden"),R=this;for(B in b){var L=f.camelCase(B);if(B!==L){b[L]=b[B];delete b[B];
B=L}if(b[B]==="hide"&&G||b[B]==="show"&&!G)return v.complete.call(this);if(A&&(B==="height"||B==="width")){v.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(f.css(this,"display")==="inline"&&f.css(this,"float")==="none")if(f.support.inlineBlockNeedsLayout)if(W(this.nodeName)==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(f.isArray(b[B])){(v.specialEasing=v.specialEasing||{})[B]=b[B][1];
b[B]=b[B][0]}}if(v.overflow!=null)this.style.overflow="hidden";v.curAnim=f.extend({},b);f.each(b,function(U,Y){var ja=new f.fx(R,v,U);if(Cb.test(Y))ja[Y==="toggle"?G?"show":"hide":Y](b);else{var Q=Db.exec(Y),ha=ja.cur()||0;if(Q){var oa=parseFloat(Q[2]),s=Q[3]||"px";if(s!=="px"){f.style(R,U,(oa||1)+s);ha=(oa||1)/ja.cur()*ha;f.style(R,U,ha+s)}if(Q[1])oa=(Q[1]==="-="?-1:1)*oa+ha;ja.custom(ha,oa,s)}else ja.custom(ha,Y,"")}});return true})},stop:function(b,d){var h=f.timers;b&&this.queue([]);this.each(function(){for(var m=
h.length-1;m>=0;m--)if(h[m].elem===this){d&&h[m](true);h.splice(m,1)}});d||this.dequeue();return this}});f.each({slideDown:N("show",1),slideUp:N("hide",1),slideToggle:N("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,d){f.fn[b]=function(h,m,p){return this.animate(d,h,m,p)}});f.extend({speed:function(b,d,h){var m=b&&typeof b==="object"?f.extend({},b):{complete:h||!h&&d||f.isFunction(b)&&b,duration:b,easing:h&&d||d&&!f.isFunction(d)&&d};m.duration=
f.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in f.fx.speeds?f.fx.speeds[m.duration]:f.fx.speeds._default;m.old=m.complete;m.complete=function(){m.queue!==false&&f(this).dequeue();f.isFunction(m.old)&&m.old.call(this)};return m},easing:{linear:function(b,d,h,m){return h+m*b},swing:function(b,d,h,m){return(-Math.cos(b*Math.PI)/2+0.5)*m+h}},timers:[],fx:function(b,d,h){this.options=d;this.elem=b;this.prop=h;if(!d.orig)d.orig={}}});f.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var b=parseFloat(f.css(this.elem,this.prop));return b&&b>-1E4?b:0},custom:function(b,d,h){function m(B){return p.step(B)}var p=this,v=f.fx;this.startTime=f.now();this.start=b;this.end=d;this.unit=h||this.unit||"px";this.now=this.start;this.pos=this.state=0;m.elem=this.elem;if(m()&&
f.timers.push(m)&&!Oa)Oa=setInterval(v.tick,v.interval)},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var d=f.now(),h=true;if(b||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();
this.options.curAnim[this.prop]=true;for(var m in this.options.curAnim)if(this.options.curAnim[m]!==true)h=false;if(h){if(this.options.overflow!=null&&!f.support.shrinkWrapBlocks){var p=this.elem,v=this.options;f.each(["","X","Y"],function(A,G){p.style["overflow"+G]=v.overflow[A]})}this.options.hide&&f(this.elem).hide();if(this.options.hide||this.options.show)for(var B in this.options.curAnim)f.style(this.elem,B,this.options.orig[B]);this.options.complete.call(this.elem)}return false}else{b=d-this.startTime;
this.state=b/this.options.duration;d=this.options.easing||(f.easing.swing?"swing":"linear");this.pos=f.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||d](this.state,b,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};f.extend(f.fx,{tick:function(){for(var b=f.timers,d=0;d<b.length;d++)b[d]()||b.splice(d--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(Oa);Oa=null},speeds:{slow:600,fast:200,_default:400},
step:{opacity:function(b){f.style(b.elem,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit;else b.elem[b.prop]=b.now}}});if(f.expr&&f.expr.filters)f.expr.filters.animated=function(b){return f.grep(f.timers,function(d){return b===d.elem}).length};var Eb=/^t(?:able|d|h)$/i,bb=/^(?:body|html)$/i;f.fn.offset="getBoundingClientRect"in D.documentElement?function(b){var d=this[0],h;
if(b)return this.each(function(B){f.offset.setOffset(this,b,B)});if(!d||!d.ownerDocument)return null;if(d===d.ownerDocument.body)return f.offset.bodyOffset(d);try{h=d.getBoundingClientRect()}catch(m){}var p=d.ownerDocument,v=p.documentElement;if(!h||!f.contains(v,d))return h||{top:0,left:0};d=p.body;p=V(p);return{top:h.top+(p.pageYOffset||f.support.boxModel&&v.scrollTop||d.scrollTop)-(v.clientTop||d.clientTop||0),left:h.left+(p.pageXOffset||f.support.boxModel&&v.scrollLeft||d.scrollLeft)-(v.clientLeft||
d.clientLeft||0)}}:function(b){var d=this[0];if(b)return this.each(function(R){f.offset.setOffset(this,b,R)});if(!d||!d.ownerDocument)return null;if(d===d.ownerDocument.body)return f.offset.bodyOffset(d);f.offset.initialize();var h,m=d.offsetParent,p=d.ownerDocument,v=p.documentElement,B=p.body;h=(p=p.defaultView)?p.getComputedStyle(d,null):d.currentStyle;for(var A=d.offsetTop,G=d.offsetLeft;(d=d.parentNode)&&d!==B&&d!==v;){if(f.offset.supportsFixedPosition&&h.position==="fixed")break;h=p?p.getComputedStyle(d,
null):d.currentStyle;A-=d.scrollTop;G-=d.scrollLeft;if(d===m){A+=d.offsetTop;G+=d.offsetLeft;if(f.offset.doesNotAddBorder&&!(f.offset.doesAddBorderForTableAndCells&&Eb.test(d.nodeName))){A+=parseFloat(h.borderTopWidth)||0;G+=parseFloat(h.borderLeftWidth)||0}m=d.offsetParent}if(f.offset.subtractsBorderForOverflowNotVisible&&h.overflow!=="visible"){A+=parseFloat(h.borderTopWidth)||0;G+=parseFloat(h.borderLeftWidth)||0}h=h}if(h.position==="relative"||h.position==="static"){A+=B.offsetTop;G+=B.offsetLeft}if(f.offset.supportsFixedPosition&&
h.position==="fixed"){A+=Math.max(v.scrollTop,B.scrollTop);G+=Math.max(v.scrollLeft,B.scrollLeft)}return{top:A,left:G}};f.offset={initialize:function(){var b=D.body,d=D.createElement("div"),h,m,p,v=parseFloat(f.css(b,"marginTop"))||0;f.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});d.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
b.insertBefore(d,b.firstChild);h=d.firstChild;m=h.firstChild;p=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=m.offsetTop!==5;this.doesAddBorderForTableAndCells=p.offsetTop===5;m.style.position="fixed";m.style.top="20px";this.supportsFixedPosition=m.offsetTop===20||m.offsetTop===15;m.style.position=m.style.top="";h.style.overflow="hidden";h.style.position="relative";this.subtractsBorderForOverflowNotVisible=m.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==v;b.removeChild(d);
f.offset.initialize=f.noop},bodyOffset:function(b){var d=b.offsetTop,h=b.offsetLeft;f.offset.initialize();if(f.offset.doesNotIncludeMarginInBodyOffset){d+=parseFloat(f.css(b,"marginTop"))||0;h+=parseFloat(f.css(b,"marginLeft"))||0}return{top:d,left:h}},setOffset:function(b,d,h){var m=f.css(b,"position");if(m==="static")b.style.position="relative";var p=f(b),v=p.offset(),B=f.css(b,"top"),A=f.css(b,"left"),G=m==="absolute"&&f.inArray("auto",[B,A])>-1;m={};var R={};if(G)R=p.position();B=G?R.top:parseInt(B,
10)||0;A=G?R.left:parseInt(A,10)||0;if(f.isFunction(d))d=d.call(b,h,v);if(d.top!=null)m.top=d.top-v.top+B;if(d.left!=null)m.left=d.left-v.left+A;"using"in d?d.using.call(b,m):p.css(m)}};f.fn.extend({position:function(){if(!this[0])return null;var b=this[0],d=this.offsetParent(),h=this.offset(),m=bb.test(d[0].nodeName)?{top:0,left:0}:d.offset();h.top-=parseFloat(f.css(b,"marginTop"))||0;h.left-=parseFloat(f.css(b,"marginLeft"))||0;m.top+=parseFloat(f.css(d[0],"borderTopWidth"))||0;m.left+=parseFloat(f.css(d[0],
"borderLeftWidth"))||0;return{top:h.top-m.top,left:h.left-m.left}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent||D.body;b&&!bb.test(b.nodeName)&&f.css(b,"position")==="static";)b=b.offsetParent;return b})}});f.each(["Left","Top"],function(b,d){var h="scroll"+d;f.fn[h]=function(m){var p=this[0],v;if(!p)return null;return m!==n?this.each(function(){if(v=V(this))v.scrollTo(!b?m:f(v).scrollLeft(),b?m:f(v).scrollTop());else this[h]=m}):(v=V(p))?"pageXOffset"in v?v[b?"pageYOffset":
"pageXOffset"]:f.support.boxModel&&v.document.documentElement[h]||v.document.body[h]:p[h]}});f.each(["Height","Width"],function(b,d){var h=d.toLowerCase();f.fn["inner"+d]=function(){return this[0]?parseFloat(f.css(this[0],h,"padding")):null};f.fn["outer"+d]=function(m){return this[0]?parseFloat(f.css(this[0],h,m?"margin":"border")):null};f.fn[h]=function(m){var p=this[0];if(!p)return m==null?null:this;if(f.isFunction(m))return this.each(function(B){var A=f(this);A[h](m.call(this,B,A[h]()))});if(f.isWindow(p))return p.document.compatMode===
"CSS1Compat"&&p.document.documentElement["client"+d]||p.document.body["client"+d];else if(p.nodeType===9)return Math.max(p.documentElement["client"+d],p.body["scroll"+d],p.documentElement["scroll"+d],p.body["offset"+d],p.documentElement["offset"+d]);else if(m===n){p=f.css(p,h);var v=parseFloat(p);return f.isNaN(v)?p:v}else return this.css(h,typeof m==="string"?m:m+"px")}})})(window);(function(a,n){function x(w){return!a(w).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.6",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(w,u){return typeof w==="number"?this.each(function(){var c=this;setTimeout(function(){a(c).focus();u&&u.call(c)},w)}):this._focus.apply(this,arguments)},scrollParent:function(){var w;w=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,
"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!w.length?a(document):w},zIndex:function(w){if(w!==n)return this.css("zIndex",w);if(this.length){w=a(this[0]);for(var u;w.length&&w[0]!==document;){u=w.css("position");
if(u==="absolute"||u==="relative"||u==="fixed"){u=parseInt(w.css("zIndex"),10);if(!isNaN(u)&&u!==0)return u}w=w.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(w){w.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(w,u){function c(q,C,I,K){a.each(g,function(){C-=parseFloat(a.curCSS(q,"padding"+this,true))||0;if(I)C-=parseFloat(a.curCSS(q,
"border"+this+"Width",true))||0;if(K)C-=parseFloat(a.curCSS(q,"margin"+this,true))||0});return C}var g=u==="Width"?["Left","Right"]:["Top","Bottom"],l=u.toLowerCase(),o={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+u]=function(q){if(q===n)return o["inner"+u].call(this);return this.each(function(){a(this).css(l,c(this,q)+"px")})};a.fn["outer"+u]=function(q,C){if(typeof q!=="number")return o["outer"+u].call(this,q);return this.each(function(){a(this).css(l,
c(this,q,true,C)+"px")})}});a.extend(a.expr[":"],{data:function(w,u,c){return!!a.data(w,c[3])},focusable:function(w){var u=w.nodeName.toLowerCase(),c=a.attr(w,"tabindex");if("area"===u){u=w.parentNode;c=u.name;if(!w.href||!c||u.nodeName.toLowerCase()!=="map")return false;w=a("img[usemap=#"+c+"]")[0];return!!w&&x(w)}return(/input|select|textarea|button|object/.test(u)?!w.disabled:"a"==u?w.href||!isNaN(c):!isNaN(c))&&x(w)},tabbable:function(w){var u=a.attr(w,"tabindex");return(isNaN(u)||u>=0)&&a(w).is(":focusable")}});
a(function(){var w=document.body,u=w.appendChild(u=document.createElement("div"));a.extend(u.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=u.offsetHeight===100;a.support.selectstart="onselectstart"in u;w.removeChild(u).style.display="none"});a.extend(a.ui,{plugin:{add:function(w,u,c){w=a.ui[w].prototype;for(var g in c){w.plugins[g]=w.plugins[g]||[];w.plugins[g].push([u,c[g]])}},call:function(w,u,c){if((u=w.plugins[u])&&w.element[0].parentNode)for(var g=0;g<u.length;g++)w.options[u[g][0]]&&
u[g][1].apply(w.element,c)}},contains:function(w,u){return document.compareDocumentPosition?w.compareDocumentPosition(u)&16:w!==u&&w.contains(u)},hasScroll:function(w,u){if(a(w).css("overflow")==="hidden")return false;u=u&&u==="left"?"scrollLeft":"scrollTop";var c=false;if(w[u]>0)return true;w[u]=1;c=w[u]>0;w[u]=0;return c},isOverAxis:function(w,u,c){return w>u&&w<u+c},isOver:function(w,u,c,g,l,o){return a.ui.isOverAxis(w,c,l)&&a.ui.isOverAxis(u,g,o)}})}})(jQuery);
(function(a,n){if(a.cleanData){var x=a.cleanData;a.cleanData=function(u){for(var c=0,g;(g=u[c])!=null;c++)a(g).triggerHandler("remove");x(u)}}else{var w=a.fn.remove;a.fn.remove=function(u,c){return this.each(function(){if(!c)if(!u||a.filter(u,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return w.call(a(this),u,c)})}}a.widget=function(u,c,g){var l=u.split(".")[0],o;u=u.split(".")[1];o=l+"-"+u;if(!g){g=c;c=a.Widget}a.expr[":"][o]=function(q){return!!a.data(q,
u)};a[l]=a[l]||{};a[l][u]=function(q,C){arguments.length&&this._createWidget(q,C)};c=new c;c.options=a.extend(true,{},c.options);a[l][u].prototype=a.extend(true,c,{namespace:l,widgetName:u,widgetEventPrefix:a[l][u].prototype.widgetEventPrefix||u,widgetBaseClass:o},g);a.widget.bridge(u,a[l][u])};a.widget.bridge=function(u,c){a.fn[u]=function(g){var l=typeof g==="string",o=Array.prototype.slice.call(arguments,1),q=this;g=!l&&o.length?a.extend.apply(null,[true,g].concat(o)):g;if(l&&g.charAt(0)==="_")return q;
l?this.each(function(){var C=a.data(this,u),I=C&&a.isFunction(C[g])?C[g].apply(C,o):C;if(I!==C&&I!==n){q=I;return false}}):this.each(function(){var C=a.data(this,u);C?C.option(g||{})._init():a.data(this,u,new c(g,this))});return q}};a.Widget=function(u,c){arguments.length&&this._createWidget(u,c)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(u,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(true,{},this.options,
this._getCreateOptions(),u);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(u,c){var g=u;if(arguments.length===0)return a.extend({},this.options);if(typeof u==="string"){if(c===n)return this.options[u];g={};g[u]=c}this._setOptions(g);return this},_setOptions:function(u){var c=this;a.each(u,function(g,l){c._setOption(g,l)});return this},_setOption:function(u,c){this.options[u]=c;if(u==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(u,c,g){var l=this.options[u];c=a.Event(c);c.type=(u===this.widgetEventPrefix?u:this.widgetEventPrefix+u).toLowerCase();g=g||{};if(c.originalEvent){u=a.event.props.length;for(var o;u;){o=a.event.props[--u];c[o]=c.originalEvent[o]}}this.element.trigger(c,g);return!(a.isFunction(l)&&l.call(this.element[0],c,g)===false||c.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var n=this;this.element.bind("mousedown."+this.widgetName,function(x){return n._mouseDown(x)}).bind("click."+this.widgetName,function(x){if(n._preventClickEvent){n._preventClickEvent=false;x.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(n){n.originalEvent=n.originalEvent||{};if(!n.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(n);this._mouseDownEvent=n;var x=this,w=n.which==1,u=typeof this.options.cancel=="string"?a(n.target).parents().add(n.target).filter(this.options.cancel).length:false;if(!w||u||!this._mouseCapture(n))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){x.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(n)&&this._mouseDelayMet(n)){this._mouseStarted=this._mouseStart(n)!==false;if(!this._mouseStarted){n.preventDefault();
return true}}this._mouseMoveDelegate=function(c){return x._mouseMove(c)};this._mouseUpDelegate=function(c){return x._mouseUp(c)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);n.preventDefault();return n.originalEvent.mouseHandled=true}},_mouseMove:function(n){if(a.browser.msie&&!(document.documentMode>=9)&&!n.button)return this._mouseUp(n);if(this._mouseStarted){this._mouseDrag(n);return n.preventDefault()}if(this._mouseDistanceMet(n)&&
this._mouseDelayMet(n))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,n)!==false)?this._mouseDrag(n):this._mouseUp(n);return!this._mouseStarted},_mouseUp:function(n){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=n.target==this._mouseDownEvent.target;this._mouseStop(n)}return false},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-
n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.ui=a.ui||{};var n=/left|center|right/,x=/top|center|bottom/,w=a.fn.position,u=a.fn.offset;a.fn.position=function(c){if(!c||!c.of)return w.apply(this,arguments);c=a.extend({},c);var g=a(c.of),l=g[0],o=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],C,I,K;if(l.nodeType===9){C=g.width();I=g.height();K={top:0,left:0}}else if(l.setTimeout){C=g.width();I=g.height();K={top:g.scrollTop(),left:g.scrollLeft()}}else if(l.preventDefault){c.at="left top";C=I=0;K={top:c.of.pageY,
left:c.of.pageX}}else{C=g.outerWidth();I=g.outerHeight();K=g.offset()}a.each(["my","at"],function(){var N=(c[this]||"").split(" ");if(N.length===1)N=n.test(N[0])?N.concat(["center"]):x.test(N[0])?["center"].concat(N):["center","center"];N[0]=n.test(N[0])?N[0]:"center";N[1]=x.test(N[1])?N[1]:"center";c[this]=N});if(o.length===1)o[1]=o[0];q[0]=parseInt(q[0],10)||0;if(q.length===1)q[1]=q[0];q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right")K.left+=C;else if(c.at[0]==="center")K.left+=C/2;if(c.at[1]==="bottom")K.top+=
I;else if(c.at[1]==="center")K.top+=I/2;K.left+=q[0];K.top+=q[1];return this.each(function(){var N=a(this),W=N.outerWidth(),V=N.outerHeight(),D=parseInt(a.curCSS(this,"marginLeft",true))||0,f=parseInt(a.curCSS(this,"marginTop",true))||0,X=W+D+parseInt(a.curCSS(this,"marginRight",true))||0,Z=V+f+parseInt(a.curCSS(this,"marginBottom",true))||0,aa=a.extend({},K),fa;if(c.my[0]==="right")aa.left-=W;else if(c.my[0]==="center")aa.left-=W/2;if(c.my[1]==="bottom")aa.top-=V;else if(c.my[1]==="center")aa.top-=
V/2;aa.left=parseInt(aa.left);aa.top=parseInt(aa.top);fa={left:aa.left-D,top:aa.top-f};a.each(["left","top"],function(na,la){a.ui.position[o[na]]&&a.ui.position[o[na]][la](aa,{targetWidth:C,targetHeight:I,elemWidth:W,elemHeight:V,collisionPosition:fa,collisionWidth:X,collisionHeight:Z,offset:q,my:c.my,at:c.at})});a.fn.bgiframe&&N.bgiframe();N.offset(a.extend(aa,{using:c.using}))})};a.ui.position={fit:{left:function(c,g){var l=a(window);l=g.collisionPosition.left+g.collisionWidth-l.width()-l.scrollLeft();
c.left=l>0?c.left-l:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var l=a(window);l=g.collisionPosition.top+g.collisionHeight-l.height()-l.scrollTop();c.top=l>0?c.top-l:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,g){if(g.at[0]!=="center"){var l=a(window);l=g.collisionPosition.left+g.collisionWidth-l.width()-l.scrollLeft();var o=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,q=g.at[0]==="left"?g.targetWidth:-g.targetWidth,C=-2*g.offset[0];
c.left+=g.collisionPosition.left<0?o+q+C:l>0?o+q+C:0}},top:function(c,g){if(g.at[1]!=="center"){var l=a(window);l=g.collisionPosition.top+g.collisionHeight-l.height()-l.scrollTop();var o=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,q=g.at[1]==="top"?g.targetHeight:-g.targetHeight,C=-2*g.offset[1];c.top+=g.collisionPosition.top<0?o+q+C:l>0?o+q+C:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(c,g){if(/static/.test(a.curCSS(c,"position")))c.style.position="relative";var l=
a(c),o=l.offset(),q=parseInt(a.curCSS(c,"top",true),10)||0,C=parseInt(a.curCSS(c,"left",true),10)||0;o={top:g.top-o.top+q,left:g.left-o.left+C};"using"in g?g.using.call(c,o):l.css(o)};a.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument)return null;if(c)return this.each(function(){a.offset.setOffset(this,c)});return u.call(this)}}})(jQuery);
(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var n=this,x=n.options;n.running=0;n.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
n.headers=n.element.find(x.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){x.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){x.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){x.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){x.disabled||a(this).removeClass("ui-state-focus")});n.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(x.navigation){var w=n.element.find("a").filter(x.navigationFilter).eq(0);if(w.length){var u=w.closest(".ui-accordion-header");n.active=u.length?u:w.closest(".ui-accordion-content").prev()}}n.active=n._findActive(n.active||x.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");n.active.next().addClass("ui-accordion-content-active");n._createIcons();n.resize();n.element.attr("role","tablist");n.headers.attr("role","tab").bind("keydown.accordion",
function(c){return n._keydown(c)}).next().attr("role","tabpanel");n.headers.not(n.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();n.active.length?n.active.attr({"aria-expanded":"true",tabIndex:0}):n.headers.eq(0).attr("tabIndex",0);a.browser.safari||n.headers.find("a").attr("tabIndex",-1);x.event&&n.headers.bind(x.event.split(" ").join(".accordion ")+".accordion",function(c){n._clickHandler.call(n,c,this);c.preventDefault()})},_createIcons:function(){var n=this.options;if(n.icons){a("<span></span>").addClass("ui-icon "+
n.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(n.icons.header).toggleClass(n.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var n=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var x=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(n.autoHeight||n.fillHeight)x.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(n,x){a.Widget.prototype._setOption.apply(this,arguments);n=="active"&&this.activate(x);if(n=="icons"){this._destroyIcons();
x&&this._createIcons()}if(n=="disabled")this.headers.add(this.headers.next())[x?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(n){if(!(this.options.disabled||n.altKey||n.ctrlKey)){var x=a.ui.keyCode,w=this.headers.length,u=this.headers.index(n.target),c=false;switch(n.keyCode){case x.RIGHT:case x.DOWN:c=this.headers[(u+1)%w];break;case x.LEFT:case x.UP:c=this.headers[(u-1+w)%w];break;case x.SPACE:case x.ENTER:this._clickHandler({target:n.target},n.target);
n.preventDefault()}if(c){a(n.target).attr("tabIndex",-1);a(c).attr("tabIndex",0);c.focus();return false}return true}},resize:function(){var n=this.options,x;if(n.fillSpace){if(a.browser.msie){var w=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}x=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",w);this.headers.each(function(){x-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,x-a(this).innerHeight()+
a(this).height()))}).css("overflow","auto")}else if(n.autoHeight){x=0;this.headers.next().each(function(){x=Math.max(x,a(this).height("").height())}).height(x)}return this},activate:function(n){this.options.active=n;n=this._findActive(n)[0];this._clickHandler({target:n},n);return this},_findActive:function(n){return n?typeof n==="number"?this.headers.filter(":eq("+n+")"):this.headers.not(this.headers.not(n)):n===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(n,x){var w=this.options;
if(!w.disabled)if(n.target){n=a(n.currentTarget||x);x=n[0]===this.active[0];w.active=w.collapsible&&x?false:this.headers.index(n);if(!(this.running||!w.collapsible&&x)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(w.icons.headerSelected).addClass(w.icons.header);if(!x){n.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(w.icons.header).addClass(w.icons.headerSelected);
n.next().addClass("ui-accordion-content-active")}g=n.next();u=this.active.next();c={options:w,newHeader:x&&w.collapsible?a([]):n,oldHeader:this.active,newContent:x&&w.collapsible?a([]):g,oldContent:u};w=this.headers.index(this.active[0])>this.headers.index(n[0]);this.active=x?a([]):n;this._toggle(g,u,c,x,w)}}else if(w.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(w.icons.headerSelected).addClass(w.icons.header);
this.active.next().addClass("ui-accordion-content-active");var u=this.active.next(),c={options:w,newHeader:a([]),oldHeader:w.active,newContent:a([]),oldContent:u},g=this.active=a([]);this._toggle(g,u,c)}},_toggle:function(n,x,w,u,c){var g=this,l=g.options;g.toShow=n;g.toHide=x;g.data=w;var o=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=x.size()===0?n.size():x.size();if(l.animated){w={};w=l.collapsible&&u?{toShow:a([]),toHide:x,complete:o,
down:c,autoHeight:l.autoHeight||l.fillSpace}:{toShow:n,toHide:x,complete:o,down:c,autoHeight:l.autoHeight||l.fillSpace};if(!l.proxied)l.proxied=l.animated;if(!l.proxiedDuration)l.proxiedDuration=l.duration;l.animated=a.isFunction(l.proxied)?l.proxied(w):l.proxied;l.duration=a.isFunction(l.proxiedDuration)?l.proxiedDuration(w):l.proxiedDuration;u=a.ui.accordion.animations;var q=l.duration,C=l.animated;if(C&&!u[C]&&!a.easing[C])C="slide";u[C]||(u[C]=function(I){this.slide(I,{easing:C,duration:q||700})});
u[C](w)}else{if(l.collapsible&&u)n.toggle();else{x.hide();n.show()}o(true)}x.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();n.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(n){this.running=n?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.6",animations:{slide:function(n,
x){n=a.extend({easing:"swing",duration:300},n,x);if(n.toHide.size())if(n.toShow.size()){var w=n.toShow.css("overflow"),u=0,c={},g={},l;x=n.toShow;l=x[0].style.width;x.width(parseInt(x.parent().width(),10)-parseInt(x.css("paddingLeft"),10)-parseInt(x.css("paddingRight"),10)-(parseInt(x.css("borderLeftWidth"),10)||0)-(parseInt(x.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(o,q){g[q]="hide";o=(""+a.css(n.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);c[q]={value:o[1],
unit:o[2]||"px"}});n.toShow.css({height:0,overflow:"hidden"}).show();n.toHide.filter(":hidden").each(n.complete).end().filter(":visible").animate(g,{step:function(o,q){if(q.prop=="height")u=q.end-q.start===0?0:(q.now-q.start)/(q.end-q.start);n.toShow[0].style[q.prop]=u*c[q.prop].value+c[q.prop].unit},duration:n.duration,easing:n.easing,complete:function(){n.autoHeight||n.toShow.css("height","");n.toShow.css({width:l,overflow:w});n.complete()}})}else n.toHide.animate({height:"hide",paddingTop:"hide",
paddingBottom:"hide"},n);else n.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},n)},bounceslide:function(n){this.slide(n,{easing:n.down?"easeOutBounce":"swing",duration:n.down?1E3:200})}}})})(jQuery);
(function(a,n){var x=0,w=0;a.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(u,c){if(u=="selected")this.options.collapsible&&c==this.options.selected||
this.select(c);else{this.options[u]=c;this._tabify()}},_tabId:function(u){return u.title&&u.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+ ++x},_sanitizeSelector:function(u){return u.replace(/:/g,"\\:")},_cookie:function(){var u=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++w);return a.cookie.apply(null,[u].concat(a.makeArray(arguments)))},_ui:function(u,c){return{tab:u,panel:c,index:this.anchors.index(u)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var u=
a(this);u.html(u.data("label.tabs")).removeData("label.tabs")})},_tabify:function(u){function c(V,D){V.css("display","");!a.support.opacity&&D.opacity&&V[0].style.removeAttribute("filter")}var g=this,l=this.options,o=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(V,D){var f=a(D).attr("href"),X=f.split("#")[0],Z;if(X&&(X===location.toString().split("#")[0]||
(Z=a("base")[0])&&X===Z.href)){f=D.hash;D.href=f}if(o.test(f))g.panels=g.panels.add(g._sanitizeSelector(f));else if(f&&f!=="#"){a.data(D,"href.tabs",f);a.data(D,"load.tabs",f.replace(/#.*$/,""));f=g._tabId(D);D.href="#"+f;D=a("#"+f);if(!D.length){D=a(l.panelTemplate).attr("id",f).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(g.panels[V-1]||g.list);D.data("destroy.tabs",true)}g.panels=g.panels.add(D)}else l.disabled.push(V)});if(u){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(l.selected===n){location.hash&&this.anchors.each(function(V,D){if(D.hash==location.hash){l.selected=V;return false}});if(typeof l.selected!=="number"&&l.cookie)l.selected=parseInt(g._cookie(),10);if(typeof l.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)l.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));l.selected=l.selected||(this.lis.length?0:-1)}else if(l.selected===null)l.selected=-1;l.selected=l.selected>=0&&this.anchors[l.selected]||l.selected<0?l.selected:0;l.disabled=a.unique(l.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(V){return g.lis.index(V)}))).sort();a.inArray(l.selected,l.disabled)!=-1&&l.disabled.splice(a.inArray(l.selected,l.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(l.selected>=0&&this.anchors.length){a(g._sanitizeSelector(g.anchors[l.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(l.selected).addClass("ui-tabs-selected ui-state-active");g.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[l.selected],a(g._sanitizeSelector(g.anchors[l.selected].hash))))});this.load(l.selected)}a(window).bind("unload",function(){g.lis.add(g.anchors).unbind(".tabs");g.lis=g.anchors=g.panels=null})}else l.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
this.element[l.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");l.cookie&&this._cookie(l.selected,l.cookie);u=0;for(var q;q=this.lis[u];u++)a(q)[a.inArray(u,l.disabled)!=-1&&!a(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");l.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(l.event!=="mouseover"){var C=function(V,D){D.is(":not(.ui-state-disabled)")&&D.addClass("ui-state-"+V)};this.lis.bind("mouseover.tabs",
function(){C("hover",a(this))});this.lis.bind("mouseout.tabs",function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){C("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var I,K;if(l.fx)if(a.isArray(l.fx)){I=l.fx[0];K=l.fx[1]}else I=K=l.fx;var N=K?function(V,D){a(V).closest("li").addClass("ui-tabs-selected ui-state-active");D.hide().removeClass("ui-tabs-hide").animate(K,K.duration||"normal",
function(){c(D,K);g._trigger("show",null,g._ui(V,D[0]))})}:function(V,D){a(V).closest("li").addClass("ui-tabs-selected ui-state-active");D.removeClass("ui-tabs-hide");g._trigger("show",null,g._ui(V,D[0]))},W=I?function(V,D){D.animate(I,I.duration||"normal",function(){g.lis.removeClass("ui-tabs-selected ui-state-active");D.addClass("ui-tabs-hide");c(D,I);g.element.dequeue("tabs")})}:function(V,D){g.lis.removeClass("ui-tabs-selected ui-state-active");D.addClass("ui-tabs-hide");g.element.dequeue("tabs")};
this.anchors.bind(l.event+".tabs",function(){var V=this,D=a(V).closest("li"),f=g.panels.filter(":not(.ui-tabs-hide)"),X=a(g._sanitizeSelector(V.hash));if(D.hasClass("ui-tabs-selected")&&!l.collapsible||D.hasClass("ui-state-disabled")||D.hasClass("ui-state-processing")||g.panels.filter(":animated").length||g._trigger("select",null,g._ui(this,X[0]))===false){this.blur();return false}l.selected=g.anchors.index(this);g.abort();if(l.collapsible)if(D.hasClass("ui-tabs-selected")){l.selected=-1;l.cookie&&
g._cookie(l.selected,l.cookie);g.element.queue("tabs",function(){W(V,f)}).dequeue("tabs");this.blur();return false}else if(!f.length){l.cookie&&g._cookie(l.selected,l.cookie);g.element.queue("tabs",function(){N(V,X)});g.load(g.anchors.index(this));this.blur();return false}l.cookie&&g._cookie(l.selected,l.cookie);if(X.length){f.length&&g.element.queue("tabs",function(){W(V,f)});g.element.queue("tabs",function(){N(V,X)});g.load(g.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(u){if(typeof u=="string")u=this.anchors.index(this.anchors.filter("[href$="+u+"]"));return u},destroy:function(){var u=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=
a.data(this,"href.tabs");if(c)this.href=c;var g=a(this).unbind(".tabs");a.each(["href","load","cache"],function(l,o){g.removeData(o+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(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")});u.cookie&&this._cookie(null,u.cookie);return this},add:function(u,
c,g){if(g===n)g=this.anchors.length;var l=this,o=this.options;c=a(o.tabTemplate.replace(/#\{href\}/g,u).replace(/#\{label\}/g,c));u=!u.indexOf("#")?u.replace("#",""):this._tabId(a("a",c)[0]);c.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=a("#"+u);q.length||(q=a(o.panelTemplate).attr("id",u).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(g>=this.lis.length){c.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{c.insertBefore(this.lis[g]);
q.insertBefore(this.panels[g])}o.disabled=a.map(o.disabled,function(C){return C>=g?++C:C});this._tabify();if(this.anchors.length==1){o.selected=0;c.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){l._trigger("show",null,l._ui(l.anchors[0],l.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[g],this.panels[g]));return this},remove:function(u){u=this._getIndex(u);var c=this.options,g=this.lis.eq(u).remove(),l=this.panels.eq(u).remove();
if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(u+(u+1<this.anchors.length?1:-1));c.disabled=a.map(a.grep(c.disabled,function(o){return o!=u}),function(o){return o>=u?--o:o});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],l[0]));return this},enable:function(u){u=this._getIndex(u);var c=this.options;if(a.inArray(u,c.disabled)!=-1){this.lis.eq(u).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(g){return g!=u});this._trigger("enable",null,
this._ui(this.anchors[u],this.panels[u]));return this}},disable:function(u){u=this._getIndex(u);var c=this.options;if(u!=c.selected){this.lis.eq(u).addClass("ui-state-disabled");c.disabled.push(u);c.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[u],this.panels[u]))}return this},select:function(u){u=this._getIndex(u);if(u==-1)if(this.options.collapsible&&this.options.selected!=-1)u=this.options.selected;else return this;this.anchors.eq(u).trigger(this.options.event+".tabs");return this},
load:function(u){u=this._getIndex(u);var c=this,g=this.options,l=this.anchors.eq(u)[0],o=a.data(l,"load.tabs");this.abort();if(!o||this.element.queue("tabs").length!==0&&a.data(l,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(u).addClass("ui-state-processing");if(g.spinner){var q=a("span",l);q.data("label.tabs",q.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:o,success:function(C,I){a(c._sanitizeSelector(l.hash)).html(C);c._cleanup();g.cache&&a.data(l,"cache.tabs",
true);c._trigger("load",null,c._ui(c.anchors[u],c.panels[u]));try{g.ajaxOptions.success(C,I)}catch(K){}},error:function(C,I){c._cleanup();c._trigger("load",null,c._ui(c.anchors[u],c.panels[u]));try{g.ajaxOptions.error(C,I,u,l)}catch(K){}}}));c.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(u,
c){this.anchors.eq(u).removeData("cache.tabs").data("load.tabs",c);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.6"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(u,c){var g=this,l=this.options,o=g._rotate||(g._rotate=function(q){clearTimeout(g.rotation);g.rotation=setTimeout(function(){var C=l.selected;g.select(++C<g.anchors.length?C:0)},u);q&&q.stopPropagation()});c=g._unrotate||(g._unrotate=!c?function(q){q.clientX&&g.rotate(null)}:
function(){t=l.selected;o()});if(u){this.element.bind("tabsshow",o);this.anchors.bind(l.event+".tabs",c);o()}else{clearTimeout(g.rotation);this.element.unbind("tabsshow",o);this.anchors.unbind(l.event+".tabs",c);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(a,n){function x(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function w(c,g){a.extend(c,
g);for(var l in g)if(g[l]==null||g[l]==n)c[l]=g[l];return c}a.extend(a.ui,{datepicker:{version:"1.8.6"}});var u=(new Date).getTime();a.extend(x.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(c){w(this._defaults,c||{});return this},_attachDatepicker:function(c,g){var l=null,o;for(o in this._defaults){var q=c.getAttribute("date:"+o);if(q){l=l||{};try{l[o]=eval(q)}catch(C){l[o]=
q}}}o=c.nodeName.toLowerCase();q=o=="div"||o=="span";if(!c.id){this.uuid+=1;c.id="dp"+this.uuid}var I=this._newInst(a(c),q);I.settings=a.extend({},g||{},l||{});if(o=="input")this._connectDatepicker(c,I);else q&&this._inlineDatepicker(c,I)},_newInst:function(c,g){return{id:c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:g,dpDiv:!g?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(c,g){var l=a(c);g.append=a([]);g.trigger=a([]);if(!l.hasClass(this.markerClassName)){this._attachments(l,g);l.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(o,q,C){g.settings[q]=C}).bind("getData.datepicker",function(o,q){return this._get(g,q)});this._autoSize(g);a.data(c,"datepicker",g)}},_attachments:function(c,g){var l=this._get(g,"appendText"),o=this._get(g,"isRTL");g.append&&
g.append.remove();if(l){g.append=a('<span class="'+this._appendClass+'">'+l+"</span>");c[o?"before":"after"](g.append)}c.unbind("focus",this._showDatepicker);g.trigger&&g.trigger.remove();l=this._get(g,"showOn");if(l=="focus"||l=="both")c.focus(this._showDatepicker);if(l=="button"||l=="both"){l=this._get(g,"buttonText");var q=this._get(g,"buttonImage");g.trigger=a(this._get(g,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:q,alt:l,title:l}):a('<button type="button"></button>').addClass(this._triggerClass).html(q==
""?l:a("<img/>").attr({src:q,alt:l,title:l})));c[o?"before":"after"](g.trigger);g.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==c[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(c[0]);return false})}},_autoSize:function(c){if(this._get(c,"autoSize")&&!c.inline){var g=new Date(2009,11,20),l=this._get(c,"dateFormat");if(l.match(/[DM]/)){var o=function(q){for(var C=0,I=0,K=0;K<q.length;K++)if(q[K].length>C){C=q[K].length;I=K}return I};g.setMonth(o(this._get(c,
l.match(/MM/)?"monthNames":"monthNamesShort")));g.setDate(o(this._get(c,l.match(/DD/)?"dayNames":"dayNamesShort"))+20-g.getDay())}c.input.attr("size",this._formatDate(c,g).length)}},_inlineDatepicker:function(c,g){var l=a(c);if(!l.hasClass(this.markerClassName)){l.addClass(this.markerClassName).append(g.dpDiv).bind("setData.datepicker",function(o,q,C){g.settings[q]=C}).bind("getData.datepicker",function(o,q){return this._get(g,q)});a.data(c,"datepicker",g);this._setDate(g,this._getDefaultDate(g),
true);this._updateDatepicker(g);this._updateAlternate(g)}},_dialogDatepicker:function(c,g,l,o,q){c=this._dialogInst;if(!c){this.uuid+=1;this._dialogInput=a('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);c=this._dialogInst=this._newInst(this._dialogInput,false);c.settings={};a.data(this._dialogInput[0],"datepicker",c)}w(c.settings,o||{});g=g&&g.constructor==
Date?this._formatDate(c,g):g;this._dialogInput.val(g);this._pos=q?q.length?q:[q.pageX,q.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=l;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",c);return this},_destroyDatepicker:function(c){var g=a(c),l=a.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();a.removeData(c,"datepicker");if(o=="input"){l.append.remove();l.trigger.remove();g.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(o=="div"||o=="span")g.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(c){var g=a(c),l=a.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();if(o=="input"){c.disabled=false;l.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(o=="div"||o=="span")g.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(q){return q==c?null:q})}},_disableDatepicker:function(c){var g=
a(c),l=a.data(c,"datepicker");if(g.hasClass(this.markerClassName)){var o=c.nodeName.toLowerCase();if(o=="input"){c.disabled=true;l.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(o=="div"||o=="span")g.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(q){return q==c?null:q});this._disabledInputs[this._disabledInputs.length]=c}},_isDisabledDatepicker:function(c){if(!c)return false;
for(var g=0;g<this._disabledInputs.length;g++)if(this._disabledInputs[g]==c)return true;return false},_getInst:function(c){try{return a.data(c,"datepicker")}catch(g){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(c,g,l){var o=this._getInst(c);if(arguments.length==2&&typeof g=="string")return g=="defaults"?a.extend({},a.datepicker._defaults):o?g=="all"?a.extend({},o.settings):this._get(o,g):null;var q=g||{};if(typeof g=="string"){q={};q[g]=l}if(o){this._curInst==o&&
this._hideDatepicker();var C=this._getDateDatepicker(c,true);w(o.settings,q);this._attachments(a(c),o);this._autoSize(o);this._setDateDatepicker(c,C);this._updateDatepicker(o)}},_changeDatepicker:function(c,g,l){this._optionDatepicker(c,g,l)},_refreshDatepicker:function(c){(c=this._getInst(c))&&this._updateDatepicker(c)},_setDateDatepicker:function(c,g){if(c=this._getInst(c)){this._setDate(c,g);this._updateDatepicker(c);this._updateAlternate(c)}},_getDateDatepicker:function(c,g){(c=this._getInst(c))&&
!c.inline&&this._setDateFromField(c,g);return c?this._getDate(c):null},_doKeyDown:function(c){var g=a.datepicker._getInst(c.target),l=true,o=g.dpDiv.is(".ui-datepicker-rtl");g._keyEvent=true;if(a.datepicker._datepickerShowing)switch(c.keyCode){case 9:a.datepicker._hideDatepicker();l=false;break;case 13:l=a("td."+a.datepicker._dayOverClass,g.dpDiv).add(a("td."+a.datepicker._currentClass,g.dpDiv));l[0]?a.datepicker._selectDay(c.target,g.selectedMonth,g.selectedYear,l[0]):a.datepicker._hideDatepicker();
return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(c.target,c.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 35:if(c.ctrlKey||c.metaKey)a.datepicker._clearDate(c.target);l=c.ctrlKey||c.metaKey;break;case 36:if(c.ctrlKey||c.metaKey)a.datepicker._gotoToday(c.target);l=c.ctrlKey||
c.metaKey;break;case 37:if(c.ctrlKey||c.metaKey)a.datepicker._adjustDate(c.target,o?+1:-1,"D");l=c.ctrlKey||c.metaKey;if(c.originalEvent.altKey)a.datepicker._adjustDate(c.target,c.ctrlKey?-a.datepicker._get(g,"stepBigMonths"):-a.datepicker._get(g,"stepMonths"),"M");break;case 38:if(c.ctrlKey||c.metaKey)a.datepicker._adjustDate(c.target,-7,"D");l=c.ctrlKey||c.metaKey;break;case 39:if(c.ctrlKey||c.metaKey)a.datepicker._adjustDate(c.target,o?-1:+1,"D");l=c.ctrlKey||c.metaKey;if(c.originalEvent.altKey)a.datepicker._adjustDate(c.target,
c.ctrlKey?+a.datepicker._get(g,"stepBigMonths"):+a.datepicker._get(g,"stepMonths"),"M");break;case 40:if(c.ctrlKey||c.metaKey)a.datepicker._adjustDate(c.target,+7,"D");l=c.ctrlKey||c.metaKey;break;default:l=false}else if(c.keyCode==36&&c.ctrlKey)a.datepicker._showDatepicker(this);else l=false;if(l){c.preventDefault();c.stopPropagation()}},_doKeyPress:function(c){var g=a.datepicker._getInst(c.target);if(a.datepicker._get(g,"constrainInput")){g=a.datepicker._possibleChars(a.datepicker._get(g,"dateFormat"));
var l=String.fromCharCode(c.charCode==n?c.keyCode:c.charCode);return c.ctrlKey||l<" "||!g||g.indexOf(l)>-1}},_doKeyUp:function(c){c=a.datepicker._getInst(c.target);if(c.input.val()!=c.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,a.datepicker._getFormatConfig(c))){a.datepicker._setDateFromField(c);a.datepicker._updateAlternate(c);a.datepicker._updateDatepicker(c)}}catch(g){a.datepicker.log(g)}return true},_showDatepicker:function(c){c=c.target||
c;if(c.nodeName.toLowerCase()!="input")c=a("input",c.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(c)||a.datepicker._lastInput==c)){var g=a.datepicker._getInst(c);a.datepicker._curInst&&a.datepicker._curInst!=g&&a.datepicker._curInst.dpDiv.stop(true,true);var l=a.datepicker._get(g,"beforeShow");w(g.settings,l?l.apply(c,[c,g]):{});g.lastVal=null;a.datepicker._lastInput=c;a.datepicker._setDateFromField(g);if(a.datepicker._inDialog)c.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(c);
a.datepicker._pos[1]+=c.offsetHeight}var o=false;a(c).parents().each(function(){o|=a(this).css("position")=="fixed";return!o});if(o&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}l={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;g.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(g);l=a.datepicker._checkOffset(g,l,o);g.dpDiv.css({position:a.datepicker._inDialog&&
a.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"});if(!g.inline){l=a.datepicker._get(g,"showAnim");var q=a.datepicker._get(g,"duration"),C=function(){a.datepicker._datepickerShowing=true;var I=a.datepicker._getBorders(g.dpDiv);g.dpDiv.find("iframe.ui-datepicker-cover").css({left:-I[0],top:-I[1],width:g.dpDiv.outerWidth(),height:g.dpDiv.outerHeight()})};g.dpDiv.zIndex(a(c).zIndex()+1);a.effects&&a.effects[l]?g.dpDiv.show(l,a.datepicker._get(g,"showOptions"),q,
C):g.dpDiv[l||"show"](l?q:null,C);if(!l||!q)C();g.input.is(":visible")&&!g.input.is(":disabled")&&g.input.focus();a.datepicker._curInst=g}}},_updateDatepicker:function(c){var g=this,l=a.datepicker._getBorders(c.dpDiv);c.dpDiv.empty().append(this._generateHTML(c)).find("iframe.ui-datepicker-cover").css({left:-l[0],top:-l[1],width:c.dpDiv.outerWidth(),height:c.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){a(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!g._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.input[0])){a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");a(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();l=this._getNumberOfMonths(c);var o=l[1];o>1?c.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"):c.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c.dpDiv[(l[0]!=1||l[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");c.dpDiv[(this._get(c,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
c==a.datepicker._curInst&&a.datepicker._datepickerShowing&&c.input&&c.input.is(":visible")&&!c.input.is(":disabled")&&c.input.focus()},_getBorders:function(c){var g=function(l){return{thin:1,medium:2,thick:3}[l]||l};return[parseFloat(g(c.css("border-left-width"))),parseFloat(g(c.css("border-top-width")))]},_checkOffset:function(c,g,l){var o=c.dpDiv.outerWidth(),q=c.dpDiv.outerHeight(),C=c.input?c.input.outerWidth():0,I=c.input?c.input.outerHeight():0,K=document.documentElement.clientWidth+a(document).scrollLeft(),
N=document.documentElement.clientHeight+a(document).scrollTop();g.left-=this._get(c,"isRTL")?o-C:0;g.left-=l&&g.left==c.input.offset().left?a(document).scrollLeft():0;g.top-=l&&g.top==c.input.offset().top+I?a(document).scrollTop():0;g.left-=Math.min(g.left,g.left+o>K&&K>o?Math.abs(g.left+o-K):0);g.top-=Math.min(g.top,g.top+q>N&&N>q?Math.abs(q+I):0);return g},_findPos:function(c){for(var g=this._get(this._getInst(c),"isRTL");c&&(c.type=="hidden"||c.nodeType!=1);)c=c[g?"previousSibling":"nextSibling"];
c=a(c).offset();return[c.left,c.top]},_hideDatepicker:function(c){var g=this._curInst;if(!(!g||c&&g!=a.data(c,"datepicker")))if(this._datepickerShowing){c=this._get(g,"showAnim");var l=this._get(g,"duration"),o=function(){a.datepicker._tidyDialog(g);this._curInst=null};a.effects&&a.effects[c]?g.dpDiv.hide(c,a.datepicker._get(g,"showOptions"),l,o):g.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?l:null,o);c||o();if(c=this._get(g,"onClose"))c.apply(g.input?g.input[0]:null,[g.input?g.input.val():
"",g]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(c){c.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(a.datepicker._curInst){c=a(c.target);c[0].id!=a.datepicker._mainDivId&&c.parents("#"+a.datepicker._mainDivId).length==0&&!c.hasClass(a.datepicker.markerClassName)&&
!c.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(c,g,l){c=a(c);var o=this._getInst(c[0]);if(!this._isDisabledDatepicker(c[0])){this._adjustInstDate(o,g+(l=="M"?this._get(o,"showCurrentAtPos"):0),l);this._updateDatepicker(o)}},_gotoToday:function(c){c=a(c);var g=this._getInst(c[0]);if(this._get(g,"gotoCurrent")&&g.currentDay){g.selectedDay=g.currentDay;g.drawMonth=g.selectedMonth=g.currentMonth;
g.drawYear=g.selectedYear=g.currentYear}else{var l=new Date;g.selectedDay=l.getDate();g.drawMonth=g.selectedMonth=l.getMonth();g.drawYear=g.selectedYear=l.getFullYear()}this._notifyChange(g);this._adjustDate(c)},_selectMonthYear:function(c,g,l){c=a(c);var o=this._getInst(c[0]);o._selectingMonthYear=false;o["selected"+(l=="M"?"Month":"Year")]=o["draw"+(l=="M"?"Month":"Year")]=parseInt(g.options[g.selectedIndex].value,10);this._notifyChange(o);this._adjustDate(c)},_clickMonthYear:function(c){var g=
this._getInst(a(c)[0]);g.input&&g._selectingMonthYear&&setTimeout(function(){g.input.focus()},0);g._selectingMonthYear=!g._selectingMonthYear},_selectDay:function(c,g,l,o){var q=a(c);if(!(a(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(q[0]))){q=this._getInst(q[0]);q.selectedDay=q.currentDay=a("a",o).html();q.selectedMonth=q.currentMonth=g;q.selectedYear=q.currentYear=l;this._selectDate(c,this._formatDate(q,q.currentDay,q.currentMonth,q.currentYear))}},_clearDate:function(c){c=
a(c);this._getInst(c[0]);this._selectDate(c,"")},_selectDate:function(c,g){c=this._getInst(a(c)[0]);g=g!=null?g:this._formatDate(c);c.input&&c.input.val(g);this._updateAlternate(c);var l=this._get(c,"onSelect");if(l)l.apply(c.input?c.input[0]:null,[g,c]);else c.input&&c.input.trigger("change");if(c.inline)this._updateDatepicker(c);else{this._hideDatepicker();this._lastInput=c.input[0];typeof c.input[0]!="object"&&c.input.focus();this._lastInput=null}},_updateAlternate:function(c){var g=this._get(c,
"altField");if(g){var l=this._get(c,"altFormat")||this._get(c,"dateFormat"),o=this._getDate(c),q=this.formatDate(l,o,this._getFormatConfig(c));a(g).each(function(){a(this).val(q)})}},noWeekends:function(c){c=c.getDay();return[c>0&&c<6,""]},iso8601Week:function(c){c=new Date(c.getTime());c.setDate(c.getDate()+4-(c.getDay()||7));var g=c.getTime();c.setMonth(0);c.setDate(1);return Math.floor(Math.round((g-c)/864E5)/7)+1},parseDate:function(c,g,l){if(c==null||g==null)throw"Invalid arguments";g=typeof g==
"object"?g.toString():g+"";if(g=="")return null;for(var o=(l?l.shortYearCutoff:null)||this._defaults.shortYearCutoff,q=(l?l.dayNamesShort:null)||this._defaults.dayNamesShort,C=(l?l.dayNames:null)||this._defaults.dayNames,I=(l?l.monthNamesShort:null)||this._defaults.monthNamesShort,K=(l?l.monthNames:null)||this._defaults.monthNames,N=l=-1,W=-1,V=-1,D=false,f=function(ga){(ga=na+1<c.length&&c.charAt(na+1)==ga)&&na++;return ga},X=function(ga){f(ga);ga=RegExp("^\\d{1,"+(ga=="@"?14:ga=="!"?20:ga=="y"?
4:ga=="o"?3:2)+"}");ga=g.substring(fa).match(ga);if(!ga)throw"Missing number at position "+fa;fa+=ga[0].length;return parseInt(ga[0],10)},Z=function(ga,qa,Fa){ga=f(ga)?Fa:qa;for(qa=0;qa<ga.length;qa++)if(g.substr(fa,ga[qa].length).toLowerCase()==ga[qa].toLowerCase()){fa+=ga[qa].length;return qa+1}throw"Unknown name at position "+fa;},aa=function(){if(g.charAt(fa)!=c.charAt(na))throw"Unexpected literal at position "+fa;fa++},fa=0,na=0;na<c.length;na++)if(D)if(c.charAt(na)=="'"&&!f("'"))D=false;else aa();
else switch(c.charAt(na)){case "d":W=X("d");break;case "D":Z("D",q,C);break;case "o":V=X("o");break;case "m":N=X("m");break;case "M":N=Z("M",I,K);break;case "y":l=X("y");break;case "@":var la=new Date(X("@"));l=la.getFullYear();N=la.getMonth()+1;W=la.getDate();break;case "!":la=new Date((X("!")-this._ticksTo1970)/1E4);l=la.getFullYear();N=la.getMonth()+1;W=la.getDate();break;case "'":if(f("'"))aa();else D=true;break;default:aa()}if(l==-1)l=(new Date).getFullYear();else if(l<100)l+=(new Date).getFullYear()-
(new Date).getFullYear()%100+(l<=o?0:-100);if(V>-1){N=1;W=V;do{o=this._getDaysInMonth(l,N-1);if(W<=o)break;N++;W-=o}while(1)}la=this._daylightSavingAdjust(new Date(l,N-1,W));if(la.getFullYear()!=l||la.getMonth()+1!=N||la.getDate()!=W)throw"Invalid date";return la},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-
Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(c,g,l){if(!g)return"";var o=(l?l.dayNamesShort:null)||this._defaults.dayNamesShort,q=(l?l.dayNames:null)||this._defaults.dayNames,C=(l?l.monthNamesShort:null)||this._defaults.monthNamesShort;l=(l?l.monthNames:null)||this._defaults.monthNames;var I=function(f){(f=D+1<c.length&&c.charAt(D+1)==f)&&D++;return f},K=function(f,X,Z){X=""+X;if(I(f))for(;X.length<Z;)X="0"+X;return X},N=function(f,X,Z,aa){return I(f)?aa[X]:Z[X]},W="",V=false;
if(g)for(var D=0;D<c.length;D++)if(V)if(c.charAt(D)=="'"&&!I("'"))V=false;else W+=c.charAt(D);else switch(c.charAt(D)){case "d":W+=K("d",g.getDate(),2);break;case "D":W+=N("D",g.getDay(),o,q);break;case "o":W+=K("o",(g.getTime()-(new Date(g.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":W+=K("m",g.getMonth()+1,2);break;case "M":W+=N("M",g.getMonth(),C,l);break;case "y":W+=I("y")?g.getFullYear():(g.getYear()%100<10?"0":"")+g.getYear()%100;break;case "@":W+=g.getTime();break;case "!":W+=g.getTime()*
1E4+this._ticksTo1970;break;case "'":if(I("'"))W+="'";else V=true;break;default:W+=c.charAt(D)}return W},_possibleChars:function(c){for(var g="",l=false,o=function(C){(C=q+1<c.length&&c.charAt(q+1)==C)&&q++;return C},q=0;q<c.length;q++)if(l)if(c.charAt(q)=="'"&&!o("'"))l=false;else g+=c.charAt(q);else switch(c.charAt(q)){case "d":case "m":case "y":case "@":g+="0123456789";break;case "D":case "M":return null;case "'":if(o("'"))g+="'";else l=true;break;default:g+=c.charAt(q)}return g},_get:function(c,
g){return c.settings[g]!==n?c.settings[g]:this._defaults[g]},_setDateFromField:function(c,g){if(c.input.val()!=c.lastVal){var l=this._get(c,"dateFormat"),o=c.lastVal=c.input?c.input.val():null,q,C;q=C=this._getDefaultDate(c);var I=this._getFormatConfig(c);try{q=this.parseDate(l,o,I)||C}catch(K){this.log(K);o=g?"":o}c.selectedDay=q.getDate();c.drawMonth=c.selectedMonth=q.getMonth();c.drawYear=c.selectedYear=q.getFullYear();c.currentDay=o?q.getDate():0;c.currentMonth=o?q.getMonth():0;c.currentYear=
o?q.getFullYear():0;this._adjustInstDate(c)}},_getDefaultDate:function(c){return this._restrictMinMax(c,this._determineDate(c,this._get(c,"defaultDate"),new Date))},_determineDate:function(c,g,l){var o=function(C){var I=new Date;I.setDate(I.getDate()+C);return I},q=function(C){try{return a.datepicker.parseDate(a.datepicker._get(c,"dateFormat"),C,a.datepicker._getFormatConfig(c))}catch(I){}var K=(C.toLowerCase().match(/^c/)?a.datepicker._getDate(c):null)||new Date,N=K.getFullYear(),W=K.getMonth();
K=K.getDate();for(var V=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,D=V.exec(C);D;){switch(D[2]||"d"){case "d":case "D":K+=parseInt(D[1],10);break;case "w":case "W":K+=parseInt(D[1],10)*7;break;case "m":case "M":W+=parseInt(D[1],10);K=Math.min(K,a.datepicker._getDaysInMonth(N,W));break;case "y":case "Y":N+=parseInt(D[1],10);K=Math.min(K,a.datepicker._getDaysInMonth(N,W))}D=V.exec(C)}return new Date(N,W,K)};if(g=(g=g==null?l:typeof g=="string"?q(g):typeof g=="number"?isNaN(g)?l:o(g):g)&&g.toString()=="Invalid Date"?
l:g){g.setHours(0);g.setMinutes(0);g.setSeconds(0);g.setMilliseconds(0)}return this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(c){if(!c)return null;c.setHours(c.getHours()>12?c.getHours()+2:0);return c},_setDate:function(c,g,l){var o=!g,q=c.selectedMonth,C=c.selectedYear;g=this._restrictMinMax(c,this._determineDate(c,g,new Date));c.selectedDay=c.currentDay=g.getDate();c.drawMonth=c.selectedMonth=c.currentMonth=g.getMonth();c.drawYear=c.selectedYear=c.currentYear=g.getFullYear();if((q!=
c.selectedMonth||C!=c.selectedYear)&&!l)this._notifyChange(c);this._adjustInstDate(c);if(c.input)c.input.val(o?"":this._formatDate(c))},_getDate:function(c){return!c.currentYear||c.input&&c.input.val()==""?null:this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay))},_generateHTML:function(c){var g=new Date;g=this._daylightSavingAdjust(new Date(g.getFullYear(),g.getMonth(),g.getDate()));var l=this._get(c,"isRTL"),o=this._get(c,"showButtonPanel"),q=this._get(c,"hideIfNoPrevNext"),
C=this._get(c,"navigationAsDateFormat"),I=this._getNumberOfMonths(c),K=this._get(c,"showCurrentAtPos"),N=this._get(c,"stepMonths"),W=I[0]!=1||I[1]!=1,V=this._daylightSavingAdjust(!c.currentDay?new Date(9999,9,9):new Date(c.currentYear,c.currentMonth,c.currentDay)),D=this._getMinMaxDate(c,"min"),f=this._getMinMaxDate(c,"max");K=c.drawMonth-K;var X=c.drawYear;if(K<0){K+=12;X--}if(f){var Z=this._daylightSavingAdjust(new Date(f.getFullYear(),f.getMonth()-I[0]*I[1]+1,f.getDate()));for(Z=D&&Z<D?D:Z;this._daylightSavingAdjust(new Date(X,
K,1))>Z;){K--;if(K<0){K=11;X--}}}c.drawMonth=K;c.drawYear=X;Z=this._get(c,"prevText");Z=!C?Z:this.formatDate(Z,this._daylightSavingAdjust(new Date(X,K-N,1)),this._getFormatConfig(c));Z=this._canAdjustMonth(c,-1,X,K)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+u+".datepicker._adjustDate('#"+c.id+"', -"+N+", 'M');\" title=\""+Z+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"e":"w")+'">'+Z+"</span></a>":q?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+
Z+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"e":"w")+'">'+Z+"</span></a>";var aa=this._get(c,"nextText");aa=!C?aa:this.formatDate(aa,this._daylightSavingAdjust(new Date(X,K+N,1)),this._getFormatConfig(c));q=this._canAdjustMonth(c,+1,X,K)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+u+".datepicker._adjustDate('#"+c.id+"', +"+N+", 'M');\" title=\""+aa+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"w":"e")+'">'+aa+"</span></a>":q?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+
aa+'"><span class="ui-icon ui-icon-circle-triangle-'+(l?"w":"e")+'">'+aa+"</span></a>";N=this._get(c,"currentText");aa=this._get(c,"gotoCurrent")&&c.currentDay?V:g;N=!C?N:this.formatDate(N,aa,this._getFormatConfig(c));C=!c.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+u+'.datepicker._hideDatepicker();">'+this._get(c,"closeText")+"</button>":"";o=o?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(l?C:"")+
(this._isInRange(c,aa)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+u+".datepicker._gotoToday('#"+c.id+"');\">"+N+"</button>":"")+(l?"":C)+"</div>":"";C=parseInt(this._get(c,"firstDay"),10);C=isNaN(C)?0:C;N=this._get(c,"showWeek");aa=this._get(c,"dayNames");this._get(c,"dayNamesShort");var fa=this._get(c,"dayNamesMin"),na=this._get(c,"monthNames"),la=this._get(c,"monthNamesShort"),ga=this._get(c,"beforeShowDay"),qa=
this._get(c,"showOtherMonths"),Fa=this._get(c,"selectOtherMonths");this._get(c,"calculateWeek");for(var Ga=this._getDefaultDate(c),Aa="",xa=0;xa<I[0];xa++){for(var Ka="",Ca=0;Ca<I[1];Ca++){var La=this._daylightSavingAdjust(new Date(X,K,c.selectedDay)),ka=" ui-corner-all",ra="";if(W){ra+='<div class="ui-datepicker-group';if(I[1]>1)switch(Ca){case 0:ra+=" ui-datepicker-group-first";ka=" ui-corner-"+(l?"right":"left");break;case I[1]-1:ra+=" ui-datepicker-group-last";ka=" ui-corner-"+(l?"left":"right");
break;default:ra+=" ui-datepicker-group-middle";ka=""}ra+='">'}ra+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+ka+'">'+(/all|left/.test(ka)&&xa==0?l?q:Z:"")+(/all|right/.test(ka)&&xa==0?l?Z:q:"")+this._generateMonthYearHeader(c,K,X,D,f,xa>0||Ca>0,na,la)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var wa=N?'<th class="ui-datepicker-week-col">'+this._get(c,"weekHeader")+"</th>":"";for(ka=0;ka<7;ka++){var ia=(ka+C)%7;wa+="<th"+((ka+C+6)%7>=5?' class="ui-datepicker-week-end"':
"")+'><span title="'+aa[ia]+'">'+fa[ia]+"</span></th>"}ra+=wa+"</tr></thead><tbody>";wa=this._getDaysInMonth(X,K);if(X==c.selectedYear&&K==c.selectedMonth)c.selectedDay=Math.min(c.selectedDay,wa);ka=(this._getFirstDayOfMonth(X,K)-C+7)%7;wa=W?6:Math.ceil((ka+wa)/7);ia=this._daylightSavingAdjust(new Date(X,K,1-ka));for(var Ba=0;Ba<wa;Ba++){ra+="<tr>";var Ha=!N?"":'<td class="ui-datepicker-week-col">'+this._get(c,"calculateWeek")(ia)+"</td>";for(ka=0;ka<7;ka++){var ya=ga?ga.apply(c.input?c.input[0]:
null,[ia]):[true,""],za=ia.getMonth()!=K,Ia=za&&!Fa||!ya[0]||D&&ia<D||f&&ia>f;Ha+='<td class="'+((ka+C+6)%7>=5?" ui-datepicker-week-end":"")+(za?" ui-datepicker-other-month":"")+(ia.getTime()==La.getTime()&&K==c.selectedMonth&&c._keyEvent||Ga.getTime()==ia.getTime()&&Ga.getTime()==La.getTime()?" "+this._dayOverClass:"")+(Ia?" "+this._unselectableClass+" ui-state-disabled":"")+(za&&!qa?"":" "+ya[1]+(ia.getTime()==V.getTime()?" "+this._currentClass:"")+(ia.getTime()==g.getTime()?" ui-datepicker-today":
""))+'"'+((!za||qa)&&ya[2]?' title="'+ya[2]+'"':"")+(Ia?"":' onclick="DP_jQuery_'+u+".datepicker._selectDay('#"+c.id+"',"+ia.getMonth()+","+ia.getFullYear()+', this);return false;"')+">"+(za&&!qa?"&#xa0;":Ia?'<span class="ui-state-default">'+ia.getDate()+"</span>":'<a class="ui-state-default'+(ia.getTime()==g.getTime()?" ui-state-highlight":"")+(ia.getTime()==V.getTime()?" ui-state-active":"")+(za?" ui-priority-secondary":"")+'" href="#">'+ia.getDate()+"</a>")+"</td>";ia.setDate(ia.getDate()+1);ia=
this._daylightSavingAdjust(ia)}ra+=Ha+"</tr>"}K++;if(K>11){K=0;X++}ra+="</tbody></table>"+(W?"</div>"+(I[0]>0&&Ca==I[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");Ka+=ra}Aa+=Ka}Aa+=o+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!c.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");c._keyEvent=false;return Aa},_generateMonthYearHeader:function(c,g,l,o,q,C,I,K){var N=this._get(c,"changeMonth"),W=this._get(c,"changeYear"),V=this._get(c,
"showMonthAfterYear"),D='<div class="ui-datepicker-title">',f="";if(C||!N)f+='<span class="ui-datepicker-month">'+I[g]+"</span>";else{I=o&&o.getFullYear()==l;var X=q&&q.getFullYear()==l;f+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+u+".datepicker._selectMonthYear('#"+c.id+"', this, 'M');\" onclick=\"DP_jQuery_"+u+".datepicker._clickMonthYear('#"+c.id+"');\">";for(var Z=0;Z<12;Z++)if((!I||Z>=o.getMonth())&&(!X||Z<=q.getMonth()))f+='<option value="'+Z+'"'+(Z==g?' selected="selected"':
"")+">"+K[Z]+"</option>";f+="</select>"}V||(D+=f+(C||!(N&&W)?"&#xa0;":""));if(C||!W)D+='<span class="ui-datepicker-year">'+l+"</span>";else{K=this._get(c,"yearRange").split(":");var aa=(new Date).getFullYear();I=function(fa){fa=fa.match(/c[+-].*/)?l+parseInt(fa.substring(1),10):fa.match(/[+-].*/)?aa+parseInt(fa,10):parseInt(fa,10);return isNaN(fa)?aa:fa};g=I(K[0]);K=Math.max(g,I(K[1]||""));g=o?Math.max(g,o.getFullYear()):g;K=q?Math.min(K,q.getFullYear()):K;for(D+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+
u+".datepicker._selectMonthYear('#"+c.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+u+".datepicker._clickMonthYear('#"+c.id+"');\">";g<=K;g++)D+='<option value="'+g+'"'+(g==l?' selected="selected"':"")+">"+g+"</option>";D+="</select>"}D+=this._get(c,"yearSuffix");if(V)D+=(C||!(N&&W)?"&#xa0;":"")+f;D+="</div>";return D},_adjustInstDate:function(c,g,l){var o=c.drawYear+(l=="Y"?g:0),q=c.drawMonth+(l=="M"?g:0);g=Math.min(c.selectedDay,this._getDaysInMonth(o,q))+(l=="D"?g:0);o=this._restrictMinMax(c,this._daylightSavingAdjust(new Date(o,
q,g)));c.selectedDay=o.getDate();c.drawMonth=c.selectedMonth=o.getMonth();c.drawYear=c.selectedYear=o.getFullYear();if(l=="M"||l=="Y")this._notifyChange(c)},_restrictMinMax:function(c,g){var l=this._getMinMaxDate(c,"min");c=this._getMinMaxDate(c,"max");g=l&&g<l?l:g;return c&&g>c?c:g},_notifyChange:function(c){var g=this._get(c,"onChangeMonthYear");if(g)g.apply(c.input?c.input[0]:null,[c.selectedYear,c.selectedMonth+1,c])},_getNumberOfMonths:function(c){c=this._get(c,"numberOfMonths");return c==null?
[1,1]:typeof c=="number"?[1,c]:c},_getMinMaxDate:function(c,g){return this._determineDate(c,this._get(c,g+"Date"),null)},_getDaysInMonth:function(c,g){return 32-(new Date(c,g,32)).getDate()},_getFirstDayOfMonth:function(c,g){return(new Date(c,g,1)).getDay()},_canAdjustMonth:function(c,g,l,o){var q=this._getNumberOfMonths(c);l=this._daylightSavingAdjust(new Date(l,o+(g<0?g:q[0]*q[1]),1));g<0&&l.setDate(this._getDaysInMonth(l.getFullYear(),l.getMonth()));return this._isInRange(c,l)},_isInRange:function(c,
g){var l=this._getMinMaxDate(c,"min");c=this._getMinMaxDate(c,"max");return(!l||g.getTime()>=l.getTime())&&(!c||g.getTime()<=c.getTime())},_getFormatConfig:function(c){var g=this._get(c,"shortYearCutoff");g=typeof g!="string"?g:(new Date).getFullYear()%100+parseInt(g,10);return{shortYearCutoff:g,dayNamesShort:this._get(c,"dayNamesShort"),dayNames:this._get(c,"dayNames"),monthNamesShort:this._get(c,"monthNamesShort"),monthNames:this._get(c,"monthNames")}},_formatDate:function(c,g,l,o){if(!g){c.currentDay=
c.selectedDay;c.currentMonth=c.selectedMonth;c.currentYear=c.selectedYear}g=g?typeof g=="object"?g:this._daylightSavingAdjust(new Date(o,l,g)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),g,this._getFormatConfig(c))}});a.fn.datepicker=function(c){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var g=Array.prototype.slice.call(arguments,
1);if(typeof c=="string"&&(c=="isDisabled"||c=="getDate"||c=="widget"))return a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));if(c=="option"&&arguments.length==2&&typeof arguments[1]=="string")return a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this[0]].concat(g));return this.each(function(){typeof c=="string"?a.datepicker["_"+c+"Datepicker"].apply(a.datepicker,[this].concat(g)):a.datepicker._attachDatepicker(this,c)})};a.datepicker=new x;a.datepicker.initialized=
false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.6";window["DP_jQuery_"+u]=a})(jQuery);(function(a){a.extend(a.fn,{livequery:function(x,w,u){var c=this,g;if(a.isFunction(x)){u=w;w=x;x=undefined}a.each(a.livequery.queries,function(l,o){if(c.selector==o.selector&&c.context==o.context&&x==o.type&&(!w||w.$lqguid==o.fn.$lqguid)&&(!u||u.$lqguid==o.fn2.$lqguid))return(g=o)&&false});g=g||new a.livequery(this.selector,this.context,x,w,u);g.stopped=false;g.run();return this},expire:function(x,w,u){var c=this;if(a.isFunction(x)){u=w;w=x;x=undefined}a.each(a.livequery.queries,function(g,l){if(c.selector==
l.selector&&c.context==l.context&&(!x||x==l.type)&&(!w||w.$lqguid==l.fn.$lqguid)&&(!u||u.$lqguid==l.fn2.$lqguid)&&!this.stopped)a.livequery.stop(l.id)});return this}});a.livequery=function(x,w,u,c,g){this.selector=x;this.context=w||document;this.type=u;this.fn=c;this.fn2=g;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;c.$lqguid=c.$lqguid||a.livequery.guid++;if(g)g.$lqguid=g.$lqguid||a.livequery.guid++;return this};a.livequery.prototype={stop:function(){var x=this;if(this.type)this.elements.unbind(this.type,
this.fn);else this.fn2&&this.elements.each(function(w,u){x.fn2.apply(u)});this.elements=[];this.stopped=true},run:function(){if(!this.stopped){var x=this,w=this.elements,u=a(this.selector,this.context),c=u.not(w);this.elements=u;if(this.type){c.bind(this.type,this.fn);w.length>0&&a.each(w,function(g,l){a.inArray(l,u)<0&&a.event.remove(l,x.type,x.fn)})}else{c.each(function(){x.fn.apply(this)});this.fn2&&w.length>0&&a.each(w,function(g,l){a.inArray(l,u)<0&&x.fn2.apply(l)})}}}};a.extend(a.livequery,
{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length)for(var x=a.livequery.queue.length;x--;)a.livequery.queries[a.livequery.queue.shift()].run()},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(x,w){if(a.fn[w]){var u=a.fn[w];a.fn[w]=function(){var c=u.apply(this,arguments);a.livequery.run();return c}}})},run:function(x){if(x!=
undefined)a.inArray(x,a.livequery.queue)<0&&a.livequery.queue.push(x);else a.each(a.livequery.queries,function(w){a.inArray(w,a.livequery.queue)<0&&a.livequery.queue.push(w)});a.livequery.timeout&&clearTimeout(a.livequery.timeout);a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(x){x!=undefined?a.livequery.queries[x].stop():a.each(a.livequery.queries,function(w){a.livequery.queries[w].stop()})}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr",
"removeAttr","addClass","removeClass","toggleClass","empty","remove");a(function(){a.livequery.play()});var n=a.prototype.init;a.prototype.init=function(x,w){var u=n.apply(this,arguments);if(x&&x.selector){u.context=x.context;u.selector=x.selector}if(typeof x=="string"){u.context=w||document;u.selector=x}return u};a.prototype.init.prototype=a.prototype})(jQuery);function isDevel(){return false}var __nDBG__=0,__nDBG2__=0,__DBG__="",ALLOW_DEBUG_DIALOG=true,ALLOW_READY_DEBUG=false;
function _debug_open(){var a=$("#wDEBUG").length;if(ALLOW_READY_DEBUG&&a>0){$("#wDEBUG").show();ALLOW_DEBUG_DIALOG&&is_function($("#wDEBUG").dialog)&&!$("#wDEBUG").dialog("isOpen")&&$("#wDEBUG").dialog("open");$("#wDEBUG").dialog("isOpen")&&$("#wDEBUG").parents(".ui-dialog").css("zIndex",calculateMoreHighZIndex())}else if(a===0){if($("#DEBUG").length<=0){$("body").append("<div id='wDEBUG' style='display:none; height: 250px'><div class='DBG_TTTL' style='padding: 0px 10px;height:20px;background:darkblue;color:white;font:bold 12px/20px Arial;'>DEBUG</div><textarea id='DEBUG' style='background:#008000;color:#00ff00;width:100%;height:70%;min-height:100px'></textarea><hr/><textarea id='myCONSOLE' style='background:#008000;color:#00ff00;width:80%;height:20%;min-height:50px'></textarea><input type='checkbox' id='outputReturn' value='1'/><input type='button' id='cnslbtn' value='run'/></div>");if($("#cnslbtn").data("actload")!=
true){$("#cnslbtn").click(function(){var n=$("#myCONSOLE").val();try{var x=eval(n)}catch(w){debug("Error in console.");console.error(w);debug(w)}finally{$("#outputReturn").is(":checked")&&typeof x!="undefined"&&debug(x)}return false});$("#myCONSOLE").keypress(function(n){if(n.ctrlKey==true&&(n.which==13||n.keyCode==13))$("#cnslbtn").click()});$("#cnslbtn").data("actload",true)}if(ALLOW_DEBUG_DIALOG&&is_function($("#wDEBUG").dialog)){$("#wDEBUG").css({height:"100%"});$("#wDEBUG").dialog({autoOpen:true,
width:700,minWidth:200,height:250,title:"DEBUG",open:function(){$(this).parents(".ui-dialog").css("zIndex",calculateMoreHighZIndex());$(this).css("overflow","hidden")}});$("#wDEBUG").data("AllowDebug",true);$("#wDEBUG .DBG_TTTL").remove()}else $("#wDEBUG").css({position:"absolute",bottom:"0px",right:"0px",zIndex:"200000",width:"100%",height:"6em"})}__nDBG__==1&&$(document).ready(function(){$("#wDEBUG .DBG_TTTL").click(function(){var n=$(this).parent().children("textarea");if(n.is(":hidden")){n.show();
$(this).parent().css({width:"100%"})}else{n.hide();$(this).parent().css({width:100})}})})}$("#DEBUG").length>0&&$("#DEBUG").val(__DBG__)}function debug(a){if(__nDBG2__>100){__DBG__="";__nDBG2__=0}__nDBG2__++;__nDBG__++;var n=(__nDBG__<100?"0":"")+(__nDBG__<10?"0":"")+__nDBG__;if(is_object(a))a=___openObject(a);__DBG__=n+": "+a+"\r\n"+__DBG__;ALLOW_READY_DEBUG&&_debug_open()}
if(isDevel()){$(window).load(function(){ALLOW_READY_DEBUG=true;__DBG__!=""&&_debug_open()});$(document).keypress(function(a){a.which==240&&_debug_open()})}
function ___openObject(a,n,x){try{n||(n="");x||(x=0);if(x>2)return">>>>Nearest Level<<<<";var w="";j=0;for(c in a){if(j!=0)w+=",\n";w+=n+"["+c+"]:";try{w+=isHTMLELEMENT(a[c])?a[c].tagName+"#"+a[c].id+"."+a[c].className:is_object(a[c])?"{"+___openObject(a[c],n+"  ",x+1)+n+"\n}":is_array(a[c])?"["+___openObject(a[c],n+"  ",x+1)+"\n]":is_string(a[c])||is_number(a[c])||is_boolean(a[c])?a[c]:typeof a[c]}catch(u){w+=" >>NotAllowedElement<<"}j++}if(j==0&&a.length&&a.length>0){w="";for(var c=0;c<a.length;c++){if(j!=
0)w+=",\n";w+=n+"["+c+"]:";try{w+=isHTMLELEMENT(a[c])?a[c].tagName+"#"+a[c].id+"."+a[c].className:is_object(a[c])?"{"+___openObject(a[c],n+"  ",x+1)+n+"\n}":is_array(a[c])?"["+___openObject(a[c],n+"  ",x+1)+"\n]":is_string(a[c])||is_number(a[c])||is_boolean(a[c])?a[c]:typeof a[c]}catch(g){w+=" >>NotAllowedElement<<"}j++}}return w}catch(l){}return">> Error To Read <<"}var __ALERT__TIMER___=null,__ALERT__TIMER___2=null,__ALERT__NOCLOSE__=true;
function _alert(a,n,x){var w=$("#ALERT");if(w.length<=0){$("body").append('<div id="ALERT" style="position:fixed;z-index:552894464;margin:0 auto;padding: 0.7em 1.4em; top: 30px" class="ui-state-highlight ui-extreme-corner-all"><p><h1 class="InnerTEXT"></h1></p></div>');w=$("#ALERT")}w.data("addClass",x);w.attr("class","ui-state-highlight ui-extreme-corner-all");if(empty(a))a=false;if(w.data("openAlert")==true&&a!==false)__ALERT__NOCLOSE__=true;if(is_string(n)){x=n;n=false}if(empty(x)||!x)x="";w.addClass(x);
openTime=1E3;var u=function(){clearInterval(__ALERT__TIMER___);clearInterval(__ALERT__TIMER___2);w.fadeOut(400,function(){w.data("openAlert",false)});w.removeClass(x)},c=function(g){if(__ALERT__NOCLOSE__!=true||g)u();__ALERT__NOCLOSE__=false};if(w.data("clickset")!=true){w.click(c);w.data("clickset",true)}if(a==false){__ALERT__NOCLOSE__!=true&&c(true);return false}if(!empty(a)){is_string(a)||(a=a.toString());a=str_replace("\n","<br>",a);openTime=(str_count(" ",a)+1)*800;a.length>0&&$("#ALERT .InnerTEXT").html(a)}a=
function(){var g=($(window).width()-w.outerWidth())/2;w.css("left",g)};if(w.is(":hidden")){w.css("opacity","0.0001").show();a();w.hide().css("opacity","1")}else a();if(w.data("openAlert")!=true){w.data("openAlert",true);w.fadeIn(400,function(){if(!n){clearInterval(__ALERT__TIMER___);__ALERT__TIMER___=setInterval(c,openTime)}})}else{clearInterval(__ALERT__TIMER___2);__ALERT__TIMER___2=setInterval(c,openTime*2)}}
function alertClose(){var a=$("#ALERT");if(a.length>0){clearInterval(__ALERT__TIMER___);clearInterval(__ALERT__TIMER___2);a.fadeOut(300,function(){a.data("openAlert",false)});a.removeClass(a.data("addClass"))}}
function AlertWin(a,n,x){$("#_ALERTWIN_").length<=0&&$("body").append('<div id="_ALERTWIN_" style="display:none"><span style="margin-right: 0.3em;" class="left ui-icon ui-icon-alert"/> <p class="InnerTEXT"></p></div>');var w=$("#_ALERTWIN_");n=empty(n)?"<?=$DIC->_('Alert')?>":n;if(w.data("dialogSET"))w.dialog("option","title",n);else{w.dialog({autoOpen:false,bgiframe:true,title:n,buttons:{"<?=$DIC->_('Accept')?>":function(){$(this).dialog("close")}},height:200,modal:true,overlay:{backgroundColor:"#000",
opacity:0.5},zIndex:2E7});w.data("dialogSET",true)}$(".InnerTEXT",w).html(a);is_function(x)?w.dialog("option","close",x):w.dialog("option","close",function(){});w.dialog("open")}function str_count(a,n){var x=0;e=0;do{e=n.indexOf(a,e+1);x++}while(e!=-1);return x}function toNum(a,n){return a[0]&&parseInt(jQuery.curCSS(a[0],n,true),10)||0}function ucfirst(a){return a.charAt(0).toUpperCase()+a.substring(1,a.length)}
function str_replace(a,n,x){if(a===null||n===null||x===null||!is_string(x)){console.error("Los parametros enviado a str_replace son invalidos");console.info(a);console.info(n);console.info(x);return""}if(is_object(a))for(k in a)x=__str_replace(a[k],n,x);else x=__str_replace(a,n,x);return x}function __str_replace(a,n,x){for(;x.indexOf(a)!=-1;)x=x.replace(a,n);return x}function strtolower(a){return a.toLowerCase(a)}function strtoupper(a){return a.toUpperCase(a)}
function in_array(a,n){if(document.all){for(k in n)if(n[k]==a)return true;return false}else return n.indexOf(a)!=-1}function array_key_exists(a,n){for(k in n)if(k==a)return true;return false}var _ISIE_=[];function isIE(a){if(typeof a=="undefined")a=9E4;if(typeof _ISIE_[a]=="undefined"){_ISIE_[a]=false;for(i=1;i<=a;i++)if(navigator.userAgent.indexOf("MSIE "+i.toString())!=-1){_ISIE_[i]=true;_ISIE_[a]=true}}return _ISIE_[a]}
function browserName(){var a=window.navigator.appName;return a.indexOf("Explorer")!=-1?"IE":a.indexOf("Netscape")!=-1?"FF":a.indexOf("Safari")!=-1?"Safari":a.indexOf("Konkeror")!=-1?"Konkeror":a.indexOf("Opera")!=-1?"Opera":"Unknow"}function toInt(a){return parseInt(a)}function countP(a){var n=0;for(k in a)n++;return n}function is_undefined(a){return typeof a=="undefined"}function isset(a){return typeof a!="undefined"}function is_object(a){return typeof a=="object"}
function is_string(a){return typeof a=="string"}function is_function(a){return typeof a=="function"}function is_int(a){return typeof a=="number"}function is_number(a){return typeof a=="number"}function is_boolean(a){return typeof a=="boolean"}function is_array(a){return typeof a=="array"}function is_set(a){return typeof a!="undefined"}function empty(a){return a==null||typeof a=="undefined"||a===""}function isHTMLELEMENT(a){return a!==null&&is_object(a)&&!empty(a.nodeType)}
function count(a){var n=0;for(k in a)n+=1;return n}function rand(a,n){np=n-a;r=Math.random()*np;r=Math.round(r);return toInt(a)+r}var APPHandler;function getAPPHandler(){return APPHandler}function setAPPHandler(a){APPHandler=a}function dg_offsetW(a){a=sumCSSp(a,["paddingLeft","paddingRight","marginLeft","marginRight","borderRightWidth","borderLeftWidth"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}
function dg_offsetH(a){a=sumCSSp(a,["paddingTop","paddingBottom","marginTop","marginBottom","borderTopWidth","borderBottomWidth"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}function dg_offsetW_in(a){a=sumCSSp(a,["paddingLeft","paddingRight"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}function dg_offsetH_in(a){a=sumCSSp(a,["paddingTop","paddingBottom"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}
function dg_offsetW_out(a){a=sumCSSp(a,["marginLeft","marginRight","borderRightWidth","borderLeftWidth"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}function dg_offsetH_out(a){a=sumCSSp(a,["marginTop","marginBottom","borderTopWidth","borderBottomWidth"]);if(a.toString()=="NaN"||typeof a=="NaN")a=0;return a}function cdg_offsetW(a){a=a.clone();SYSTEM.getTempWhere().append(a);var n=dg_offsetW(a);a.remove();return n}
function cdg_offsetH(a){a=a.clone();SYSTEM.tempWhere.append(a);var n=dg_offsetH(a);a.remove();return n}function sumCSSp(a,n){var x=0;if($(a).length>0)for(k in n)if(!empty($(a).css(n[k]))){var w=str_replace(["px","em","ex"],"",$(a).css(n[k]));if(toInt(w)>0)x+=toInt(w)}return x}function d2h(a){return a.toString(16)}function h2d(a){return parseInt(a,16)}function rColor(){var a=["lightblue","lightgreen","lightpink","brown","green","darkblue","orange"];return a[rand(0,a.length-1)]}
function rHexColor(){return"#"+d2h(rand(0,15))+d2h(rand(0,15))+d2h(rand(0,15))+d2h(rand(0,15))+d2h(rand(0,15))+d2h(rand(0,15))}function is_on(a,n){return(a&n)!=0?true:false}function dgCharSearch(a,n){var x=false,w;for(w in a)if(n.indexOf(a[w])!=-1){x=true;break}return x}var BlackScreenH=false;
function OpenBlackScreen(){CloseBlackScreen();$("select:visible:not(._NOT_OCULTABLE_),input:visible:not(._NOT_OCULTABLE_),textarea:visible:not(._NOT_OCULTABLE_),object:visible:not(._NOT_OCULTABLE_),embed:visible:not(._NOT_OCULTABLE_)").addClass("_OCULTABLES_").css("visibility","hidden");if($("#BKScreen").length==0){var a=$("<div id='BKScreen'></div>");a.css({opacity:0,backgroundColor:"black",position:"absolute",top:"0px",left:"0px",zIndex:"8000"})}else a=$("#BKScreen");var n=function(){if($("#BKScreen").is(":visible")){$("#BKScreen").width($(window).width());
$("#BKScreen").height($(window).height())}},x=function(){if($("#BKScreen").is(":visible")){$($("#BKScreen")).scrollTop($(window).scrollTop());$("#BKScreen").centerScreen()}};$("BODY").append(a);if(!BlackScreenH){$(window).scroll(x);$(window).resize(n);BlackScreenH=true}n();x();a.fadeTo(350,0.8)}function CloseBlackScreen(){$("._OCULTABLES_").css("visibility","visible");$("#BKScreen").fadeTo(350,0,function(){$("#BKScreen").remove()})}
function replaceTildes(a){var n={"\ufffd":"a","\ufffd":"e","\ufffd":"i","\ufffd":"o","\ufffd":"u","\ufffd":"A","\ufffd":"E","\ufffd":"I","\ufffd":"O","\ufffd":"U","\ufffd":"a","\ufffd":"e","\ufffd":"i","\ufffd":"o","\ufffd":"u","\ufffd":"A","\ufffd":"E","\ufffd":"I","\ufffd":"O","\ufffd":"U","\ufffd":"a","\ufffd":"e","\ufffd":"i","\ufffd":"o","\ufffd":"u","\ufffd":"A","\ufffd":"E","\ufffd":"I","\ufffd":"O","\ufffd":"U","\ufffd":"a","\ufffd":"e","\ufffd":"i","\ufffd":"o","\ufffd":"u","\ufffd":"A",
"\ufffd":"E","\ufffd":"I","\ufffd":"O","\ufffd":"U","\ufffd":"c","\ufffd":"C","\u00f1":"n","\u00f1":"N"};for(i in n)a=str_replace(i,n[i],a);return a}function round(a,n){var x=Math.pow(10,n);a*=x;return a=Math.round(a)/x}var __GENUID__=0;function genUID(){__GENUID__++;for(var a=((new Date).getTime()+__GENUID__).toString(),n=["A","B","C","D","E","F","G","H","I","J"],x="dg",w=0;w<a.length;w++)x+=n[toInt(a.charAt(w))];return x}function trim(a){return a.replace(/^\s*|\s*$/g,"")}
function whoElm(a){if(a==document)return"document";if(a==window)return"window";return $(a).attr("tagName")+"#"+$(a).attr("id")+"."+$(a).attr("class")}function dataForm(a){var n=$(a).serializeArray(),x="";for(i in n)x+=n[i].name+" = "+n[i].value+"<br/>";n=$("<div></div>");$("<div class='btnSend Boton3d ui-state-default'>Submit Form</div>").click(function(){$(a).submit()}).appendTo(n);n.prepend(x).appendTo("Body").dialog({height:500,width:800})}
function plainArray(a,n){var x=function(c,g){for(k in c)if(is_array(c[k])||is_object(c[k]))x(c[k],g);else g[k]=c[k]};if(is_object(a)||is_array(a)){var w={};for(k in a){var u=empty(n)?k:n+"["+k+"]";w[u]=plainArray(a[k],u)}u={};for(k in w)if(is_array(w[k])||is_object(w[k]))x(w[k],u);else u[k]=w[k];return u}else if(is_string(a)||is_number(a))return a;else if(a==null)return"NULL";return null}
function date(a,n){var x=typeof n=="undefined"?new Date:typeof n=="number"?new Date(n*1E3):new Date(n),w=function(q,C){return(q+="").length<C?Array(++C-q.length).join("0")+q:q},u="",c=__DATEPICKER___.dayNames,g={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},l=__DATEPICKER___.monthNames,o={d:function(){return w(o.j(),2)},D:function(){return o.l().substr(0,3)},j:function(){return x.getDate()},l:function(){return c[o.w()]},N:function(){return o.w()+1},S:function(){return g[o.j()]?g[o.j()]:"th"},
w:function(){return x.getDay()},z:function(){return(x-new Date(x.getFullYear()+"/1/1"))/864E5>>0},W:function(){var q=o.z(),C=364+o.L()-q,I=((new Date(x.getFullYear()+"/1/1")).getDay()||7)-1;if(C<=2&&(x.getDay()||7)-1<=2-C)return 1;else if(q<=2&&I>=4&&q>=6-I){q=new Date(x.getFullYear()-1+"/12/31");return date("W",Math.round(q.getTime()/1E3))}else return 1+(I<=3?(q+I)/7:(q-(7-I))/7)>>0},F:function(){return l[o.n()]},m:function(){return w(o.n(),2)},M:function(){return o.F().substr(0,3)},n:function(){return x.getMonth()},
t:function(){var q;return(q=x.getMonth()+1)==2?28+o.L():q&1&&q<8||!(q&1)&&q>7?31:30},L:function(){var q=o.Y();return!(q&3)&&(q%100||!(q%400))?1:0},o:function(){if(o.n()===12&&o.W()===1)return x.getFullYear()+1;if(o.n()===1&&o.W()>=52)return x.getFullYear()-1;return x.getFullYear()},Y:function(){return x.getFullYear()},y:function(){return(x.getFullYear()+"").slice(2)},a:function(){return x.getHours()>11?"pm":"am"},A:function(){return o.a().toUpperCase()},B:function(){var q=(x.getTimezoneOffset()+60)*
60;q=x.getHours()*3600+x.getMinutes()*60+x.getSeconds()+q;q=Math.floor(q/86.4);if(q>1E3)q-=1E3;if(q<0)q+=1E3;if(String(q).length==1)q="00"+q;if(String(q).length==2)q="0"+q;return q},g:function(){return x.getHours()%12||12},G:function(){return x.getHours()},h:function(){return w(o.g(),2)},H:function(){return w(x.getHours(),2)},i:function(){return w(x.getMinutes(),2)},s:function(){return w(x.getSeconds(),2)},u:function(){return w(x.getMilliseconds()*1E3,6)},e:function(){return"UTC"},I:function(){var q=
new Date(x.getFullYear(),6,1,0,0,0);q=q.getHours()-q.getUTCHours();return x.getHours()-x.getUTCHours()!=q?1:0},O:function(){var q=w(Math.abs(x.getTimezoneOffset()/60*100),4);return q=x.getTimezoneOffset()>0?"-"+q:"+"+q},P:function(){var q=o.O();return q.substr(0,3)+":"+q.substr(3,2)},T:function(){return"UTC"},Z:function(){return-x.getTimezoneOffset()*60},c:function(){return o.Y()+"-"+o.m()+"-"+o.d()+"T"+o.h()+":"+o.i()+":"+o.s()+o.P()},r:function(){return o.D()+", "+o.d()+" "+o.M()+" "+o.Y()+" "+
o.H()+":"+o.i()+":"+o.s()+" "+o.O()},U:function(){return Math.round(x.getTime()/1E3)}};return a.replace(/[\\]?([a-zA-Z])/g,function(q,C){return u=q!=C?C:o[C]?o[C]():C})}function $embbed(a){return $(a).get(0).contentWindow}function $parent(){return window.parent}function $Iframe(a,n,x){$(a).get(0).contentWindow.$fromParent(n,x)}function $fromParent(a,n){return n.apply($(a),[])}
function str_short(a,n){if(a.length>n){cutPos=a.indexOf(" ",n>15?n-15:n-n/2);if(cutPos==-1)cutPos=n-3;a=a.substring(0,cutPos)+"..."}return a}
function validateCCC(a){var n=[" ","!",'"',"'","#","$","%","&","/","(",")","=","?","\\","\ufffd","\ufffd","<",">","\u00f1","{","[","^","]","}","|","\ufffd","\ufffd","_","-"];if(dgCharSearch(n,a)){a=replaceTildes(a.toLowerCase());a=str_replace(n,"",a)}if(/^[0-9]{20}$/.test(a)){n=a.substring(0,4);var x=a.substring(4,8),w=a.substring(8,10);a=a.substring(10,20);return obtenerDigito("00"+n+x)!=parseInt(w.charAt(0))||obtenerDigito(a)!=parseInt(w.charAt(1))?false:true}else return false}
function obtenerDigito(a){valores=[1,2,4,8,5,10,9,7,3,6];for(i=control=0;i<=9;i++)control+=parseInt(a.charAt(i))*valores[i];control=11-control%11;if(control==11)control=0;else if(control==10)control=1;return control}if(!isset(console))var console={info:function(){},error:function(){},warning:function(){},trace:function(){}};function calculateMoreHighZIndex(a){isset(a)||(a=document);var n=0;$("*",a).each(function(){var x=parseInt($(this).css("zIndex"));if(x>n)n=x});return n}
function calculateMoreHighZIndexFor(a){isset(a)||(a=document);var n=0;$(a).each(function(){var x=parseInt($(this).css("zIndex"));if(x>n)n=x});return n}function flatObj(a,n){is_set(n)||(n=false);var x={};for(key in a){var w=n==false?key:n+"["+key+"]";if(is_object(a[key])||is_array(a[key])){w=flatObj(a[key],w);for(k in w)x[k]=w[k]}else if(is_string(a[key])||is_boolean(a[key])||is_number(a[key]))x[w]=a[key]}return x}
function getOnly(a,n){a=a.toString();a=a.substr(1,a.length-2);for(var x=RegExp(a,""),w="",u=0;u<n.length;u++){var c=n.charAt(u).toString();if(x.test(c)==true)w+=c}return w}function getOnlyNumbers(a){return getOnly(/[0-9]/,a)}function getOnlyLetters(a){return getOnly(/[A-Z]|[a-z]/,a)}function getOnlyAlphaNumeric(a){return getOnly(/[A-Z]|[a-z]|[0-9]/,a)}
function camelcase(a){a=trim(a);return/\S[A-Z]/.test(a)?a.replace(/(.)([A-Z])/g,function(n,x,w){return x+" "+w.toLowerCase()}):a.replace(/( )([a-z])/g,function(n,x,w){return w.toUpperCase()})}String.prototype.camelCase=function(){var a=trim(this);return/\S[A-Z]/.test(a)?a.replace(/(.)([A-Z])/g,function(n,x,w){return x+" "+w.toLowerCase()}):a.replace(/( )([a-z])/g,function(n,x,w){return w.toUpperCase()})};
function typeOf(a){var n=typeof a;if(n==="object")if(a){if(a instanceof Array)n="array"}else n="null";return n}if(typeof console.info=="undefined")console.info=function(){};if(typeof console.error=="undefined")console.error=function(){};if(typeof console.debug=="undefined")console.debug=function(){};if(typeof console.group=="undefined")console.group=function(){};if(typeof console.groupEnd=="undefined")console.groupEnd=function(){};if(typeof console.warn=="undefined")console.warn=function(){};
if(typeof console.dir=="undefined")console.dir=function(){};if(typeof dgTools=="undefined")var dgTools={triggerDebug:false};if(typeof dgTools.triggerDebug=="undefined")dgTools.triggerDebug=false;
(function(a){var n=jQuery.fn.addClass,x=jQuery.fn.removeClass,w=jQuery.fn.toggleClass;jQuery.dgUtilsVersion="1.8.2";jQuery.fn.extend({addClass:function(){var l=n.apply(this,arguments);a(this).trigger("addClass",arguments);return l},removeClass:function(){var l=x.apply(this,arguments);a(this).trigger("removeClass",arguments);return l},toggleClass:function(){var l=false;if(a(this).hasClass(arguments[0]))l=true;var o=w.apply(this,arguments);l?a(this).trigger("removeClass",arguments):a(this).trigger("addClass",
arguments);return o},imgready:function(l){a.isFunction(l)&&a(this).bind("imgready",l)},myDebugTrigger:function(){console.debug("Event: "+arguments[0]+" in "+whoElm(this[0]));this.trigger.apply(this,arguments)},rClick:function(l){isIE()?this.each(function(){var o=this;a(this).mousedown(function(C){a(this).mouseup(function(){a(this).unbind("mouseup");if(C.button==2){l.apply(o,[C]);return false}else return true})});this.oncontextmenu=function(){return false};try{a("*",this).get(0).oncontextmenu=function(){return false}}catch(q){}}):
this.each(function(){var o=this;this.oncontextmenu=function(){l.apply(o,arguments);return false};try{a("*",this).get(0).oncontextmenu=function(){l.apply(o,arguments);return false}}catch(q){}});return this},mClick:function(l){this.each(function(){a(this).mousedown(function(o){if(!isIE(10)&&o.button==1||isIE(10)&&o.button==4){l.apply(this,[o]);if(o.preventDefault)o.preventDefault();else o.returnValue=false;return false}else return true})});return this},wheel:function(l){if(a.isFunction(l)){var o=this;
a(this).data("themouseisover",false).bind("mouseenter",function(){a(this).data("themouseisover",true)}).bind("mouseleave",function(){a(this).data("themouseisover",false)});var q=function(C){var I=true;a(".dg-ui-wheelaction").each(function(){if(a(this).data("themouseisover")===true){a(this).trigger("wheel",[C]);I=false}});if(!I)try{C.preventDefault()}catch(K){}return I?true:false};if(a(window).data("ListenerDOMMouseScroll")!==true){window.addEventListener&&window.addEventListener("DOMMouseScroll",
q,false);window.onmousewheel=document.onmousewheel=q;a(window).data("ListenerDOMMouseScroll",true)}a(this).addClass("dg-ui-wheelaction").bind("wheel",function(C,I){var K=0;if(!I)I=window.event;if(I.wheelDelta){K=I.wheelDelta/120;if(window.opera)K=-K}else if(I.detail)K=-I.detail/3;K&&l.apply(o,[K])})}},scrollMax:function(){if(this.length==1){var l={left:0,top:0};l.left+=this[0].scrollWidth;l.top+=this[0].scrollTop;return l}return null},reach:function(l){for(var o=this.length-1;o>=0;o--)l.apply(this[o],
[]);return this},centerScreen:function(l){if(empty(l))l=false;var o=this.width(),q=this.height(),C=a(window).height(),I=a(window).width();o=Math.floor(a(window).scrollLeft()+(I-o)/2);q=Math.floor(a(window).scrollTop()+(C-q)/2);var K=false;this.parents().each(function(){var W=a(this).css("position");if(W=="relative"||W=="absolute"){K=a(this).offset();if(K.left!=0||K.top!=0)return false}return true});if(K!==false){o-=K.left;q-=K.top}this.css({position:"absolute",left:o+"px",top:q+"px"});if(l&&!this.data("reCenterObject")){var N=
this;a(this).data("reCenterObject",true);a(window).bind("reCenterObjects",function(){N.centerScreen()})}},_draggable:function(){this.reach(function(){var I=a(this).offset();a(this).css({top:I.top,left:I.left,position:"absolute"})});var l={move:function(I){var K=I.pageY-q;I=I.pageX-o;_alert(K+"x"+I);a(C).css({top:K,left:I})},mout:function(){a(document).mousemove(l.move)},mover:function(){a(document).unbind("mousemove",l.move)}},o=0,q=0,C;a(document).bind("mouseup",function(){a(C).unbind("mousemove mouseout",
l.move);a(C).unbind("mouseout",l.mout);a(C).unbind("mouseover",l.mover);a(document).unbind("mousemove",l.move)});this.mousedown(function(I){C=this;var K=a(this).offset();o=I.pageX-K.left;q=I.pageY-K.top;a(this).mousemove(l.move);a(this).mouseout(l.mout);a(this).mouseover(l.mover);return false})},jsSerialize:function(){var l={};a(this).each(function(){var o=a(this).serializeArray();for(i in o)l[o[i].name]=o[i].value});return l},mySerializeObj:function(){var l={};a("input,select,textarea",this).each(function(){var o=
a(this).attr("name"),q=a(this);if(q.attr("tagName").toLowerCase()=="input"&&(q.attr("type")=="checkbox"||q.attr("type")=="radio")&&q.is(":checked"))empty(o)||(l[o]=q.val());else q.attr("type")=="checkbox"||q.attr("type")=="radio"||empty(q.attr("name"))||(l[o]=q.val())});return l},mySerialize:function(){var l="";a("input,select,textarea",this).each(function(){var o=a(this).attr("name");if(a(this).attr("tagName").toLowerCase()=="input"&&(a(this).attr("type")=="checkbox"||a(this).attr("type")=="radio")&&
a(this).is(":checked"))empty(o)||(l+=(empty(l)?"":"&")+encodeURIComponent(o)+"="+encodeURIComponent(a(this).val()));else a(this).attr("type")=="checkbox"||a(this).attr("type")=="radio"||empty(o)||(l+=(empty(l)?"":"&")+encodeURIComponent(o)+"="+encodeURIComponent(a(this).val()))});return l=l.replace(/%20/g,"+")},startWith:function(l){var o=a("Aemptytag");this.each(function(){if(a(this).text().indexOf(l)===0){o.push(a(this));console.debug("added")}});return o},bindReady:function(l,o){var q=a(this);
typeOf(q.data("dg_event"))!=="object"&&q.data("dg_event",{});typeOf(q.data("dg_readyEvents"))!=="object"&&q.data("dg_readyEvents",{});typeOf(q.data("dg_readyEventsArgs"))!=="object"&&q.data("dg_readyEventsArgs",{});if(q.data("dg_readyEvents")[l])try{o.apply(this,q.data("dg_readyEventsArgs")[l])}catch(C){typeof console!=="undefined"&&console.error(C)}else{var I=a(this).data("dg_event");if(typeOf(event[l])!=="array")event[l]=[];event[l].push(o);readyEvents=q.data("dg_readyEvents");readyEvents[l]=false;
q.data("dg_readyEvents",readyEvents);q.data("dg_event",I)}return this},triggerReady:function(l){var o=typeof arguments[1]!=="undefined"?arguments[1]:[],q=a(this);typeOf(q.data("dg_event"))!=="object"&&q.data("dg_event",{});typeOf(q.data("dg_readyEvents"))!=="object"&&q.data("dg_readyEvents",{});typeOf(q.data("dg_readyEventsArgs"))!=="object"&&q.data("dg_readyEventsArgs",{});readyEvents=q.data("dg_readyEvents");readyEvents[l]=true;q.data("dg_readyEvents",readyEvents);var C=q.data("dg_readyEventsArgs");
C[l]=o;q.data("dg_readyEventsArgs",C);if(q.data("dg_readyEvents")[l]!==true&&typeof q.data("dg_event")[l]=="array"&&q.data("dg_event")[l].length>0){o=q.data("dg_event")[l];for(i in o)try{o[i].apply(this,arguments)}catch(I){typeof console!=="undefined"&&console.error(I)}}return this}});a.mySerializeObj=function(l){var o={};for(i in l){var q=a(l[i]).attr("name"),C=a(l[i]);if(C.attr("tagName").toLowerCase()=="input"&&(C.attr("type")=="checkbox"||C.attr("type")=="radio")&&C.is(":checked"))empty(q)||(o[q]=
C.val());else C.attr("type")=="checkbox"||C.attr("type")=="radio"||empty(C.attr("name"))||(o[q]=C.val())}return o};if(dgTools.triggerDebug){var u=jQuery.fn.trigger;jQuery.fn.trigger=function(){var l=typeOf(arguments[0])=="object"?arguments[0].type:arguments[0];console.groupCollapsed("Trigger "+l);console.debug(this);console.debug(arguments);console.groupEnd();return u.apply(this,arguments)}}var c={W:0,H:0};a(document).ready(function(){a(window).scroll(function(){a(window).trigger("reCenterObjects")});
a(window).resize(function(){var l=a(window).width(),o=a(window).height();if(c.W!=l||c.H!=o){a(window).trigger("reCenterObjects");a(window).trigger("ReallyResize",[l,o]);c.W=l;c.H=o}})});a.widget("ui.contextMenu",{contextMenu:null,habil:null,element:null,options:null,intItems:null,_init:function(){if(!this.contextMenu){this.contextMenu=a("<ul>").addClass("ui-context clearfix ui-clearfix").addClass(this.options.styleClass).hide(0);this.intItems={};a("body").append(this.contextMenu);var l=function(){a(".ui-context").hide(300)};
a(document).unbind("click.contextMenu",l);a(document).bind("click.contextMenu",l);var o=this;this.element.rClick(function(q){if(o.habil){o.contextMenu.css({top:q.clientY+a(window).scrollTop(),left:q.clientX+a(window).scrollLeft(),width:"auto",height:"auto",minWidth:o.options.minWidth,position:"absolute",display:"none",zIndex:calculateMoreHighZIndex()});isIE()&&o.contextMenu.css("width","200");l();o.contextMenu.show(300);q.stopPropagation();return false}return false})}this.habil=false},getCM:function(){return"hola"},
destroy:function(){a(this.contextMenu).remove();a.widget.prototype.destroy.apply(this,arguments)},clean:function(){a(this.contextMenu).children().remove()},addItem:function(l,o,q){var C=genUID();this.habil=true;q||(q="none");var I=a("<li class='ui-context-item ui-state-default ui-helper-clearfix'><span class='ui-icon ui-icon-"+q+"' style='display:inline;float:left;'></span> <span class='NAME' style='float:left;display:inline;'></span></li>");I.hover(function(){a(this).addClass("ui-state-hover")},
function(){a(this).removeClass("ui-state-hover")});a(".NAME",I).html(l);is_function(o)&&I.bind("click.contextMenu",this._createBtnCallBack(o));this.contextMenu.append(I);this.intItems[C]={item:I,icon:q};return C},_createBtnCallBack:function(l){return function(){l.apply(this,arguments)}},modItem:function(l,o){if(!empty(this.intItems[l])&&this.intItems[l].item.length>0){empty(o.name)||a(".NAME",this.intItems[l].item).html(o.name);if(!empty(o.icon)){a(".ui-icon",this.intItems[l].item).removeClass("ui-icon-"+
this.intItems[l].icon).addClass("ui-icon-"+o.icon);this.intItems[l].icon=o.icon}if(!empty(o.callback)&&is_function(o.callback)){this.intItems[l].item.unbind("click.contextMenu");this.intItems[l].item.bind("click.contextMenu",this._createBtnCallBack(callback))}}}});a.extend(a.ui.contextMenu,{defaults:{minWidth:200,styleClass:"ui-widget ui-widget-content"},getter:["addItem"],getterSetter:[]});a.widget("dg.dgModal",{overlay:null,animating:null,element:null,options:null,seted:{resize:null},_init:function(){if(!empty(this.options.child))this.options.child=
a(this.options.child);for(i in this.seted)this.seted[i]=false;this.animating=false;this._create();this.options.initialOpen&&this.open()},_create:function(){var l=a(">.dg-ui-overlay",this.element);l.length>0&&l.each(function(){a(this).remove()});this.element.append(a("<div class='dg-ui-overlay'></div>"));this.overlay=a(">.dg-ui-overlay",this.element);this.overlay.css({position:"absolute",background:this.options.color,opacity:this.options.opacity});if(this.element.css("position")!="absolute"||this.element.css("position")!=
"relative")this.element.css("position","relative");this.overlay.hide();this.close()},destroy:function(){a(this.overlay).length>0?a(this.overlay).remove():a(".dg-ui-overlay",this.element).remove();a.widget.prototype.destroy.apply(this,arguments)},open:function(){var l=this,o=0,q=0;if(this.element==window||this.element.attr("tagName").toLowerCase()=="body"||this.element==document){this.element=a("body");var C=function(){if(l.overlay.is(":visible")){l.overlay.css({width:0,height:0});var V=a(window).width(),
D=a(window).height();l.overlay.css({width:V,height:D})}};if(!this.seted.resize){a(window).resize(C);this.seted.resize=true}C();C=this.element.width();var I=this.element.height()}else{C=this.element.outerWidth();I=this.element.outerHeight();if(this.element.css("paddingTop")>0)o="-"+this.element.css("paddingTop");if(this.element.css("paddingLeft")>0)q="-"+this.element.css("paddingLeft")}var K=calculateMoreHighZIndex();this.element.append(this.overlay);this.overlay.css({top:o,left:q,width:C,height:I,
zIndex:K});this.overlay.hide(0);this.overlay.fadeOut(0);if(this.options.child!==null&&this.options.child.length>0){this.options.child.appendTo(this.element);this.options.child.css({zIndex:K+1,position:"absolute"}).centerScreen()}if(isIE()){try{this.overlay.show(0)}catch(N){}try{l.options.child!==null&&l.options.child.length>0&&l.options.child.show(0)}catch(W){}}else{if(this.animating){this.options.child!==null&&this.options.child.length>0&&this.options.child.stop();this.overlay.stop()}this.animating=
true;(function(){if(this.options.child!==null&&this.options.child.length>0){this.options.child.css({opacity:0}).show(0);this.options.child.animate({opacity:1},this.options.animateTime)}this.overlay.css({opacity:0}).show(0);this.overlay.animate({opacity:this.options.opacity},this.options.animateTime,function(){l.animating=false})}).apply(this,[])}},close:function(){var l=this;if(isIE()){try{a(this.overlay).hide(0)}catch(o){debug(o)}if(l.options.child!==null&&l.options.child.length>0)try{a(this.options.child).hide(0)}catch(q){debug(q)}}else{if(this.animating){this.options.child!==
null&&this.options.child.length>0&&this.options.child.stop();this.overlay.stop();this.overlay.hide()}this.animating=true;(function(){l.options.child!==null&&l.options.child.length>0&&l.options.child.animate({opacity:0},this.options.animateTime,function(){a(this).hide(0)});l.overlay.animate({opacity:0},l.options.animateTime,function(){a(this).hide(0);l.animating=false})}).apply(this,[])}},getZIndex:function(){return this.overlay.css("zIndex")}});a.extend(a.dg.dgModal,{defaults:{opacity:"0.6",color:"#808080",
child:null,initialOpen:true,animateTime:500},getter:["getZIndex"],getterSetter:[]});if(isIE(10)){var g={};g.hide=jQuery.fn.hide;jQuery.fn.hide=function(){try{return g.hide.apply(this,arguments)}catch(l){debug("hide");return this}};g.show=jQuery.fn.show;jQuery.fn.show=function(){try{return g.show.apply(this,arguments)}catch(l){debug("show");return this}};g.animate=jQuery.fn.animate;jQuery.fn.animate=function(){try{return g.animate.apply(this,arguments)}catch(l){debug("animate");return this}};g.effect=
jQuery.fn.effect;jQuery.fn.effect=function(){try{return g.effect.apply(this,arguments)}catch(l){debug("Effect");return this}}}})(jQuery);function ShowCalculateNHide(a,n){var x=$(a).parents(":hidden:not(body,html)");x.each(function(){if($(this).css("display")=="none"){$(this).show(0);$(this).data("ShowCalculateNHide",true)}});try{is_function(n)&&n.apply(a,[])}catch(w){}x.each(function(){if($(this).data("ShowCalculateNHide")===true){$(this).hide(0);$(this).data("ShowCalculateNHide",false)}})}
function myConfirm(a,n,x,w){$("<div>"+n+"</div>").appendTo("body").dialog({autoOpen:true,height:200,width:300,title:a,resizable:false,modal:true,overlay:{backgroundColor:"#000",opacity:0.5},close:function(){if($(this).data("Accept")!==true)try{is_function(w)&&w()}catch(u){empty(console)||console.error(u)}$(this).dialog("destroy");$(this).remove()},buttons:{Aceptar:function(){try{is_function(x)&&x()}catch(u){empty(console)||console.error(u)}$(this).data("Accept",true);$(this).dialog("close")},Cancelar:function(){$(this).dialog("close")}}})}
;

