(function(a,c){function f(){if(!h.isReady){try{A.documentElement.doScroll("left")}catch(g){setTimeout(f,1);return}h.ready()}}function d(g,j){j.src?h.ajax({url:j.src,async:false,dataType:"script"}):h.globalEval(j.text||j.textContent||j.innerHTML||"");j.parentNode&&j.parentNode.removeChild(j)}function b(g,j,k,p,q,v){var y=g.length;if(typeof j==="object"){for(var F in j)b(g,F,j[F],p,q,k);return g}if(k!==c){p=!v&&p&&h.isFunction(k);for(F=0;F<y;F++)q(g[F],j,p?k.call(g[F],F,q(g[F],j)):k,v);return g}return y?
q(g[0],j):c}function e(){return(new Date).getTime()}function i(){return false}function o(){return true}function n(g,j,k){k[0].type=g;return h.event.handle.apply(j,k)}function m(g){var j,k=[],p=[],q=arguments,v,y,F,C,G,K;y=h.data(this,"events");if(!(g.liveFired===this||!y||!y.live||g.button&&g.type==="click")){g.liveFired=this;var R=y.live.slice(0);for(C=0;C<R.length;C++){y=R[C];y.origType.replace(ta,"")===g.type?p.push(y.selector):R.splice(C--,1)}v=h(g.target).closest(p,g.currentTarget);G=0;for(K=
v.length;G<K;G++)for(C=0;C<R.length;C++){y=R[C];if(v[G].selector===y.selector){F=v[G].elem;p=null;if(y.preType==="mouseenter"||y.preType==="mouseleave")p=h(g.relatedTarget).closest(y.selector)[0];if(!p||p!==F)k.push({elem:F,handleObj:y})}}G=0;for(K=k.length;G<K;G++){v=k[G];g.currentTarget=v.elem;g.data=v.handleObj.data;g.handleObj=v.handleObj;if(v.handleObj.origHandler.apply(v.elem,q)===false){j=false;break}}return j}}function l(g,j){return"live."+(g&&g!=="*"?g+".":"")+j.replace(/\./g,"`").replace(/ /g,
"&")}function r(g,j){var k=0;j.each(function(){if(this.nodeName===(g[k]&&g[k].nodeName)){var p=h.data(g[k++]),q=h.data(this,p);if(p=p&&p.events){delete q.handle;q.events={};for(var v in p)for(var y in p[v])h.event.add(this,v,p[v][y],p[v][y].data)}}})}function u(g,j,k){var p,q,v;j=j&&j[0]?j[0].ownerDocument||j[0]:A;if(g.length===1&&typeof g[0]==="string"&&g[0].length<512&&j===A&&!Ka.test(g[0])&&(h.support.checkClone||!La.test(g[0]))){q=true;if(v=h.fragments[g[0]])if(v!==1)p=v}if(!p){p=j.createDocumentFragment();
h.clean(g,j,p,k)}if(q)h.fragments[g[0]]=v?p:1;return{fragment:p,cacheable:q}}function w(g,j){var k={};h.each(Ma.concat.apply([],Ma.slice(0,j)),function(){k[this]=g});return k}function x(g){return"scrollTo"in g&&g.document?g:g.nodeType===9?g.defaultView||g.parentWindow:false}var h=function(g,j){return new h.fn.init(g,j)},H=a.jQuery,B=a.$,A=a.document,N,P=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Q=/^.[^:#\[\.,]*$/,Y=/\S/,U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ba=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ha=navigator.userAgent,
pa=false,ia=[],Z,ka=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,qa=Array.prototype.push,W=Array.prototype.slice,da=Array.prototype.indexOf;h.fn=h.prototype={init:function(g,j){var k,p,q;if(!g)return this;if(g.nodeType){this.context=this[0]=g;this.length=1;return this}if(g==="body"&&!j){this.context=A;this[0]=A.body;this.selector="body";this.length=1;return this}if(typeof g==="string")if((k=P.exec(g))&&(k[1]||!j))if(k[1]){q=j?j.ownerDocument||j:A;if(p=ba.exec(g))if(h.isPlainObject(j)){g=
[A.createElement(p[1])];h.fn.attr.call(g,j,true)}else g=[q.createElement(p[1])];else{p=u([k[1]],[q]);g=(p.cacheable?p.fragment.cloneNode(true):p.fragment).childNodes}return h.merge(this,g)}else{if(p=A.getElementById(k[2])){if(p.id!==k[2])return N.find(g);this.length=1;this[0]=p}this.context=A;this.selector=g;return this}else if(!j&&/^\w+$/.test(g)){this.selector=g;this.context=A;g=A.getElementsByTagName(g);return h.merge(this,g)}else return!j||j.jquery?(j||N).find(g):h(j).find(g);else if(h.isFunction(g))return N.ready(g);
if(g.selector!==c){this.selector=g.selector;this.context=g.context}return h.makeArray(g,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return W.call(this,0)},get:function(g){return g==null?this.toArray():g<0?this.slice(g)[0]:this[g]},pushStack:function(g,j,k){var p=h();h.isArray(g)?qa.apply(p,g):h.merge(p,g);p.prevObject=this;p.context=this.context;if(j==="find")p.selector=this.selector+(this.selector?" ":"")+k;else if(j)p.selector=this.selector+
"."+j+"("+k+")";return p},each:function(g,j){return h.each(this,g,j)},ready:function(g){h.bindReady();if(h.isReady)g.call(A,h);else ia&&ia.push(g);return this},eq:function(g){return g===-1?this.slice(g):this.slice(g,+g+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(W.apply(this,arguments),"slice",W.call(arguments).join(","))},map:function(g){return this.pushStack(h.map(this,function(j,k){return g.call(j,k,j)}))},end:function(){return this.prevObject||
h(null)},push:qa,sort:[].sort,splice:[].splice};h.fn.init.prototype=h.fn;h.extend=h.fn.extend=function(){var g=arguments[0]||{},j=1,k=arguments.length,p=false,q,v,y,F;if(typeof g==="boolean"){p=g;g=arguments[1]||{};j=2}if(typeof g!=="object"&&!h.isFunction(g))g={};if(k===j){g=this;--j}for(;j<k;j++)if((q=arguments[j])!=null)for(v in q){y=g[v];F=q[v];if(g!==F)if(p&&F&&(h.isPlainObject(F)||h.isArray(F))){y=y&&(h.isPlainObject(y)||h.isArray(y))?y:h.isArray(F)?[]:{};g[v]=h.extend(p,y,F)}else if(F!==c)g[v]=
F}return g};h.extend({noConflict:function(g){a.$=B;if(g)a.jQuery=H;return h},isReady:false,ready:function(){if(!h.isReady){if(!A.body)return setTimeout(h.ready,13);h.isReady=true;if(ia){for(var g,j=0;g=ia[j++];)g.call(A,h);ia=null}h.fn.triggerHandler&&h(A).triggerHandler("ready")}},bindReady:function(){if(!pa){pa=true;if(A.readyState==="complete")return h.ready();if(A.addEventListener){A.addEventListener("DOMContentLoaded",Z,false);a.addEventListener("load",h.ready,false)}else if(A.attachEvent){A.attachEvent("onreadystatechange",
Z);a.attachEvent("onload",h.ready);var g=false;try{g=a.frameElement==null}catch(j){}A.documentElement.doScroll&&g&&f()}}},isFunction:function(g){return ka.call(g)==="[object Function]"},isArray:function(g){return ka.call(g)==="[object Array]"},isPlainObject:function(g){if(!g||ka.call(g)!=="[object Object]"||g.nodeType||g.setInterval)return false;if(g.constructor&&!ja.call(g,"constructor")&&!ja.call(g.constructor.prototype,"isPrototypeOf"))return false;var j;for(j in g);return j===c||ja.call(g,j)},
isEmptyObject:function(g){for(var j in g)return false;return true},error:function(g){throw g;},parseJSON:function(g){if(typeof g!=="string"||!g)return null;g=h.trim(g);if(/^[\],:{}\s]*$/.test(g.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(g):(new Function("return "+g))();else h.error("Invalid JSON: "+g)},noop:function(){},globalEval:function(g){if(g&&
Y.test(g)){var j=A.getElementsByTagName("head")[0]||A.documentElement,k=A.createElement("script");k.type="text/javascript";if(h.support.scriptEval)k.appendChild(A.createTextNode(g));else k.text=g;j.insertBefore(k,j.firstChild);j.removeChild(k)}},nodeName:function(g,j){return g.nodeName&&g.nodeName.toUpperCase()===j.toUpperCase()},each:function(g,j,k){var p,q=0,v=g.length,y=v===c||h.isFunction(g);if(k)if(y)for(p in g){if(j.apply(g[p],k)===false)break}else for(;q<v;){if(j.apply(g[q++],k)===false)break}else if(y)for(p in g){if(j.call(g[p],
p,g[p])===false)break}else for(k=g[0];q<v&&j.call(k,q,k)!==false;k=g[++q]);return g},trim:function(g){return(g||"").replace(U,"")},makeArray:function(g,j){var k=j||[];if(g!=null)g.length==null||typeof g==="string"||h.isFunction(g)||typeof g!=="function"&&g.setInterval?qa.call(k,g):h.merge(k,g);return k},inArray:function(g,j){if(j.indexOf)return j.indexOf(g);for(var k=0,p=j.length;k<p;k++)if(j[k]===g)return k;return-1},merge:function(g,j){var k=g.length,p=0;if(typeof j.length==="number")for(var q=
j.length;p<q;p++)g[k++]=j[p];else for(;j[p]!==c;)g[k++]=j[p++];g.length=k;return g},grep:function(g,j,k){for(var p=[],q=0,v=g.length;q<v;q++)!k!==!j(g[q],q)&&p.push(g[q]);return p},map:function(g,j,k){for(var p=[],q,v=0,y=g.length;v<y;v++){q=j(g[v],v,k);if(q!=null)p[p.length]=q}return p.concat.apply([],p)},guid:1,proxy:function(g,j,k){if(arguments.length===2)if(typeof j==="string"){k=g;g=k[j];j=c}else if(j&&!h.isFunction(j)){k=j;j=c}if(!j&&g)j=function(){return g.apply(k||this,arguments)};if(g)j.guid=
g.guid=g.guid||j.guid||h.guid++;return j},uaMatch:function(g){g=g.toLowerCase();g=/(webkit)[ \/]([\w.]+)/.exec(g)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(g)||/(msie) ([\w.]+)/.exec(g)||!/compatible/.test(g)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(g)||[];return{browser:g[1]||"",version:g[2]||"0"}},browser:{}});ha=h.uaMatch(ha);if(ha.browser){h.browser[ha.browser]=true;h.browser.version=ha.version}if(h.browser.webkit)h.browser.safari=true;if(da)h.inArray=function(g,j){return da.call(j,g)};N=h(A);if(A.addEventListener)Z=
function(){A.removeEventListener("DOMContentLoaded",Z,false);h.ready()};else if(A.attachEvent)Z=function(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",Z);h.ready()}};(function(){h.support={};var g=A.documentElement,j=A.createElement("script"),k=A.createElement("div"),p="script"+e();k.style.display="none";k.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var q=k.getElementsByTagName("*"),v=k.getElementsByTagName("a")[0];
if(!(!q||!q.length||!v)){h.support={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.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:k.getElementsByTagName("input")[0].value==="on",optSelected:A.createElement("select").appendChild(A.createElement("option")).selected,parentNode:k.removeChild(k.appendChild(A.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};j.type="text/javascript";try{j.appendChild(A.createTextNode("window."+p+"=1;"))}catch(y){}g.insertBefore(j,g.firstChild);if(a[p]){h.support.scriptEval=true;delete a[p]}try{delete j.test}catch(F){h.support.deleteExpando=false}g.removeChild(j);if(k.attachEvent&&k.fireEvent){k.attachEvent("onclick",function C(){h.support.noCloneEvent=false;k.detachEvent("onclick",C)});k.cloneNode(true).fireEvent("onclick")}k=A.createElement("div");
k.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";g=A.createDocumentFragment();g.appendChild(k.firstChild);h.support.checkClone=g.cloneNode(true).cloneNode(true).lastChild.checked;h(function(){var C=A.createElement("div");C.style.width=C.style.paddingLeft="1px";A.body.appendChild(C);h.boxModel=h.support.boxModel=C.offsetWidth===2;A.body.removeChild(C).style.display="none"});g=function(C){var G=A.createElement("div");C="on"+C;var K=C in G;if(!K){G.setAttribute(C,"return;");K=typeof G[C]===
"function"}return K};h.support.submitBubbles=g("submit");h.support.changeBubbles=g("change");g=j=k=q=v=null}})();h.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ca="jQuery"+e(),X=0,ua={};h.extend({cache:{},expando:ca,noData:{embed:true,object:true,applet:true},data:function(g,j,k){if(!(g.nodeName&&h.noData[g.nodeName.toLowerCase()])){g=
g==a?ua:g;var p=g[ca],q=h.cache;if(!p&&typeof j==="string"&&k===c)return null;p||(p=++X);if(typeof j==="object"){g[ca]=p;q[p]=h.extend(true,{},j)}else if(!q[p]){g[ca]=p;q[p]={}}g=q[p];if(k!==c)g[j]=k;return typeof j==="string"?g[j]:g}},removeData:function(g,j){if(!(g.nodeName&&h.noData[g.nodeName.toLowerCase()])){g=g==a?ua:g;var k=g[ca],p=h.cache,q=p[k];if(j){if(q){delete q[j];h.isEmptyObject(q)&&h.removeData(g)}}else{if(h.support.deleteExpando)delete g[h.expando];else g.removeAttribute&&g.removeAttribute(h.expando);
delete p[k]}}}});h.fn.extend({data:function(g,j){if(typeof g==="undefined"&&this.length)return h.data(this[0]);else if(typeof g==="object")return this.each(function(){h.data(this,g)});var k=g.split(".");k[1]=k[1]?"."+k[1]:"";if(j===c){var p=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(p===c&&this.length)p=h.data(this[0],g);return p===c&&k[1]?this.data(k[0]):p}else return this.trigger("setData"+k[1]+"!",[k[0],j]).each(function(){h.data(this,g,j)})},removeData:function(g){return this.each(function(){h.removeData(this,
g)})}});h.extend({queue:function(g,j,k){if(g){j=(j||"fx")+"queue";var p=h.data(g,j);if(!k)return p||[];if(!p||h.isArray(k))p=h.data(g,j,h.makeArray(k));else p.push(k);return p}},dequeue:function(g,j){j=j||"fx";var k=h.queue(g,j),p=k.shift();if(p==="inprogress")p=k.shift();if(p){j==="fx"&&k.unshift("inprogress");p.call(g,function(){h.dequeue(g,j)})}}});h.fn.extend({queue:function(g,j){if(typeof g!=="string"){j=g;g="fx"}if(j===c)return h.queue(this[0],g);return this.each(function(){var k=h.queue(this,
g,j);g==="fx"&&k[0]!=="inprogress"&&h.dequeue(this,g)})},dequeue:function(g){return this.each(function(){h.dequeue(this,g)})},delay:function(g,j){g=h.fx?h.fx.speeds[g]||g:g;j=j||"fx";return this.queue(j,function(){var k=this;setTimeout(function(){h.dequeue(k,j)},g)})},clearQueue:function(g){return this.queue(g||"fx",[])}});var va=/[\n\t]/g,la=/\s+/,ma=/\r/g,wa=/href|src|style/,bb=/(button|input)/i,cb=/(button|input|object|select|textarea)/i,db=/^(a|area)$/i,Na=/radio|checkbox/;h.fn.extend({attr:function(g,
j){return b(this,g,j,true,h.attr)},removeAttr:function(g){return this.each(function(){h.attr(this,g,"");this.nodeType===1&&this.removeAttribute(g)})},addClass:function(g){if(h.isFunction(g))return this.each(function(G){var K=h(this);K.addClass(g.call(this,G,K.attr("class")))});if(g&&typeof g==="string")for(var j=(g||"").split(la),k=0,p=this.length;k<p;k++){var q=this[k];if(q.nodeType===1)if(q.className){for(var v=" "+q.className+" ",y=q.className,F=0,C=j.length;F<C;F++)if(v.indexOf(" "+j[F]+" ")<
0)y+=" "+j[F];q.className=h.trim(y)}else q.className=g}return this},removeClass:function(g){if(h.isFunction(g))return this.each(function(C){var G=h(this);G.removeClass(g.call(this,C,G.attr("class")))});if(g&&typeof g==="string"||g===c)for(var j=(g||"").split(la),k=0,p=this.length;k<p;k++){var q=this[k];if(q.nodeType===1&&q.className)if(g){for(var v=(" "+q.className+" ").replace(va," "),y=0,F=j.length;y<F;y++)v=v.replace(" "+j[y]+" "," ");q.className=h.trim(v)}else q.className=""}return this},toggleClass:function(g,
j){var k=typeof g,p=typeof j==="boolean";if(h.isFunction(g))return this.each(function(q){var v=h(this);v.toggleClass(g.call(this,q,v.attr("class"),j),j)});return this.each(function(){if(k==="string")for(var q,v=0,y=h(this),F=j,C=g.split(la);q=C[v++];){F=p?F:!y.hasClass(q);y[F?"addClass":"removeClass"](q)}else if(k==="undefined"||k==="boolean"){this.className&&h.data(this,"__className__",this.className);this.className=this.className||g===false?"":h.data(this,"__className__")||""}})},hasClass:function(g){g=
" "+g+" ";for(var j=0,k=this.length;j<k;j++)if((" "+this[j].className+" ").replace(va," ").indexOf(g)>-1)return true;return false},val:function(g){if(g===c){var j=this[0];if(j){if(h.nodeName(j,"option"))return(j.attributes.value||{}).specified?j.value:j.text;if(h.nodeName(j,"select")){var k=j.selectedIndex,p=[],q=j.options;j=j.type==="select-one";if(k<0)return null;var v=j?k:0;for(k=j?k+1:q.length;v<k;v++){var y=q[v];if(y.selected){g=h(y).val();if(j)return g;p.push(g)}}return p}if(Na.test(j.type)&&
!h.support.checkOn)return j.getAttribute("value")===null?"on":j.value;return(j.value||"").replace(ma,"")}return c}var F=h.isFunction(g);return this.each(function(C){var G=h(this),K=g;if(this.nodeType===1){if(F)K=g.call(this,C,G.val());if(typeof K==="number")K+="";if(h.isArray(K)&&Na.test(this.type))this.checked=h.inArray(G.val(),K)>=0;else if(h.nodeName(this,"select")){var R=h.makeArray(K);h("option",this).each(function(){this.selected=h.inArray(h(this).val(),R)>=0});if(!R.length)this.selectedIndex=
-1}else this.value=K}})}});h.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(g,j,k,p){if(!g||g.nodeType===3||g.nodeType===8)return c;if(p&&j in h.attrFn)return h(g)[j](k);p=g.nodeType!==1||!h.isXMLDoc(g);var q=k!==c;j=p&&h.props[j]||j;if(g.nodeType===1){var v=wa.test(j);if(j in g&&p&&!v){if(q){j==="type"&&bb.test(g.nodeName)&&g.parentNode&&h.error("type property can't be changed");g[j]=k}if(h.nodeName(g,"form")&&g.getAttributeNode(j))return g.getAttributeNode(j).nodeValue;
if(j==="tabIndex")return(j=g.getAttributeNode("tabIndex"))&&j.specified?j.value:cb.test(g.nodeName)||db.test(g.nodeName)&&g.href?0:c;return g[j]}if(!h.support.style&&p&&j==="style"){if(q)g.style.cssText=""+k;return g.style.cssText}q&&g.setAttribute(j,""+k);g=!h.support.hrefNormalized&&p&&v?g.getAttribute(j,2):g.getAttribute(j);return g===null?c:g}return h.style(g,j,k)}});var ta=/\.(.*)$/,eb=function(g){return g.replace(/[^\w\s\.\|`]/g,function(j){return"\\"+j})};h.event={add:function(g,j,k,p){if(!(g.nodeType===
3||g.nodeType===8)){if(g.setInterval&&g!==a&&!g.frameElement)g=a;var q,v;if(k.handler){q=k;k=q.handler}if(!k.guid)k.guid=h.guid++;if(v=h.data(g)){var y=v.events=v.events||{},F=v.handle;if(!F)v.handle=F=function(){return typeof h!=="undefined"&&!h.event.triggered?h.event.handle.apply(F.elem,arguments):c};F.elem=g;j=j.split(" ");for(var C,G=0,K;C=j[G++];){v=q?h.extend({},q):{handler:k,data:p};if(C.indexOf(".")>-1){K=C.split(".");C=K.shift();v.namespace=K.slice(0).sort().join(".")}else{K=[];v.namespace=
""}v.type=C;v.guid=k.guid;var R=y[C],T=h.event.special[C]||{};if(!R){R=y[C]=[];if(!T.setup||T.setup.call(g,p,K,F)===false)if(g.addEventListener)g.addEventListener(C,F,false);else g.attachEvent&&g.attachEvent("on"+C,F)}if(T.add){T.add.call(g,v);if(!v.handler.guid)v.handler.guid=k.guid}R.push(v);h.event.global[C]=true}g=null}}},global:{},remove:function(g,j,k,p){if(!(g.nodeType===3||g.nodeType===8)){var q,v=0,y,F,C,G,K,R,T=h.data(g),aa=T&&T.events;if(T&&aa){if(j&&j.type){k=j.handler;j=j.type}if(!j||
typeof j==="string"&&j.charAt(0)==="."){j=j||"";for(q in aa)h.event.remove(g,q+j)}else{for(j=j.split(" ");q=j[v++];){G=q;y=q.indexOf(".")<0;F=[];if(!y){F=q.split(".");q=F.shift();C=RegExp("(^|\\.)"+h.map(F.slice(0).sort(),eb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(K=aa[q])if(k){G=h.event.special[q]||{};for(V=p||0;V<K.length;V++){R=K[V];if(k.guid===R.guid){if(y||C.test(R.namespace)){p==null&&K.splice(V--,1);G.remove&&G.remove.call(g,R)}if(p!=null)break}}if(K.length===0||p!=null&&K.length===1){if(!G.teardown||
G.teardown.call(g,F)===false)Oa(g,q,T.handle);delete aa[q]}}else for(var V=0;V<K.length;V++){R=K[V];if(y||C.test(R.namespace)){h.event.remove(g,G,R.handler,V);K.splice(V--,1)}}}if(h.isEmptyObject(aa)){if(j=T.handle)j.elem=null;delete T.events;delete T.handle;h.isEmptyObject(T)&&h.removeData(g)}}}}},trigger:function(g,j,k,p){var q=g.type||g;if(!p){g=typeof g==="object"?g[ca]?g:h.extend(h.Event(q),g):h.Event(q);if(q.indexOf("!")>=0){g.type=q=q.slice(0,-1);g.exclusive=true}if(!k){g.stopPropagation();
h.event.global[q]&&h.each(h.cache,function(){this.events&&this.events[q]&&h.event.trigger(g,j,this.handle.elem)})}if(!k||k.nodeType===3||k.nodeType===8)return c;g.result=c;g.target=k;j=h.makeArray(j);j.unshift(g)}g.currentTarget=k;(p=h.data(k,"handle"))&&p.apply(k,j);p=k.parentNode||k.ownerDocument;try{if(!(k&&k.nodeName&&h.noData[k.nodeName.toLowerCase()]))if(k["on"+q]&&k["on"+q].apply(k,j)===false)g.result=false}catch(v){}if(!g.isPropagationStopped()&&p)h.event.trigger(g,j,p,true);else if(!g.isDefaultPrevented()){p=
g.target;var y,F=h.nodeName(p,"a")&&q==="click",C=h.event.special[q]||{};if((!C._default||C._default.call(k,g)===false)&&!F&&!(p&&p.nodeName&&h.noData[p.nodeName.toLowerCase()])){try{if(p[q]){if(y=p["on"+q])p["on"+q]=null;h.event.triggered=true;p[q]()}}catch(G){}if(y)p["on"+q]=y;h.event.triggered=false}}},handle:function(g){var j,k,p,q;g=arguments[0]=h.event.fix(g||a.event);g.currentTarget=this;j=g.type.indexOf(".")<0&&!g.exclusive;if(!j){k=g.type.split(".");g.type=k.shift();p=RegExp("(^|\\.)"+k.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}q=h.data(this,"events");k=q[g.type];if(q&&k){k=k.slice(0);q=0;for(var v=k.length;q<v;q++){var y=k[q];if(j||p.test(y.namespace)){g.handler=y.handler;g.data=y.data;g.handleObj=y;y=y.handler.apply(this,arguments);if(y!==c){g.result=y;if(y===false){g.preventDefault();g.stopPropagation()}}if(g.isImmediatePropagationStopped())break}}}return g.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(g){if(g[ca])return g;var j=g;g=h.Event(j);for(var k=this.props.length,p;k;){p=this.props[--k];g[p]=j[p]}if(!g.target)g.target=g.srcElement||A;if(g.target.nodeType===3)g.target=g.target.parentNode;if(!g.relatedTarget&&g.fromElement)g.relatedTarget=g.fromElement===g.target?g.toElement:g.fromElement;if(g.pageX==null&&g.clientX!=null){j=A.documentElement;k=A.body;g.pageX=g.clientX+(j&&j.scrollLeft||k&&k.scrollLeft||0)-(j&&j.clientLeft||k&&k.clientLeft||0);g.pageY=g.clientY+(j&&j.scrollTop||
k&&k.scrollTop||0)-(j&&j.clientTop||k&&k.clientTop||0)}if(!g.which&&(g.charCode||g.charCode===0?g.charCode:g.keyCode))g.which=g.charCode||g.keyCode;if(!g.metaKey&&g.ctrlKey)g.metaKey=g.ctrlKey;if(!g.which&&g.button!==c)g.which=g.button&1?1:g.button&2?3:g.button&4?2:0;return g},guid:1E8,proxy:h.proxy,special:{ready:{setup:h.bindReady,teardown:h.noop},live:{add:function(g){h.event.add(this,g.origType,h.extend({},g,{handler:m}))},remove:function(g){var j=true,k=g.origType.replace(ta,"");h.each(h.data(this,
"events").live||[],function(){if(k===this.origType.replace(ta,""))return j=false});j&&h.event.remove(this,g.origType,m)}},beforeunload:{setup:function(g,j,k){if(this.setInterval)this.onbeforeunload=k;return false},teardown:function(g,j){if(this.onbeforeunload===j)this.onbeforeunload=null}}}};var Oa=A.removeEventListener?function(g,j,k){g.removeEventListener(j,k,false)}:function(g,j,k){g.detachEvent("on"+j,k)};h.Event=function(g){if(!this.preventDefault)return new h.Event(g);if(g&&g.type){this.originalEvent=
g;this.type=g.type}else this.type=g;this.timeStamp=e();this[ca]=true};h.Event.prototype={preventDefault:function(){this.isDefaultPrevented=o;var g=this.originalEvent;if(g){g.preventDefault&&g.preventDefault();g.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=o;var g=this.originalEvent;if(g){g.stopPropagation&&g.stopPropagation();g.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,
isImmediatePropagationStopped:i};var Pa=function(g){var j=g.relatedTarget;try{for(;j&&j!==this;)j=j.parentNode;if(j!==this){g.type=g.data;h.event.handle.apply(this,arguments)}}catch(k){}},Qa=function(g){g.type=g.data;h.event.handle.apply(this,arguments)};h.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(g,j){h.event.special[g]={setup:function(k){h.event.add(this,j,k&&k.selector?Qa:Pa,g)},teardown:function(k){h.event.remove(this,j,k&&k.selector?Qa:Pa)}}});if(!h.support.submitBubbles)h.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){h.event.add(this,"click.specialSubmit",function(g){var j=g.target,k=j.type;if((k==="submit"||k==="image")&&h(j).closest("form").length)return n("submit",this,arguments)});h.event.add(this,"keypress.specialSubmit",function(g){var j=g.target,k=j.type;if((k==="text"||k==="password")&&h(j).closest("form").length&&g.keyCode===13)return n("submit",this,arguments)})}else return false},teardown:function(){h.event.remove(this,".specialSubmit")}};if(!h.support.changeBubbles){var Ba=
/textarea|input|select/i,Ca,Ra=function(g){var j=g.type,k=g.value;if(j==="radio"||j==="checkbox")k=g.checked;else if(j==="select-multiple")k=g.selectedIndex>-1?h.map(g.options,function(p){return p.selected}).join("-"):"";else if(g.nodeName.toLowerCase()==="select")k=g.selectedIndex;return k},Da=function(g,j){var k=g.target,p,q;if(!(!Ba.test(k.nodeName)||k.readOnly)){p=h.data(k,"_change_data");q=Ra(k);if(g.type!=="focusout"||k.type!=="radio")h.data(k,"_change_data",q);if(!(p===c||q===p))if(p!=null||
q){g.type="change";return h.event.trigger(g,j,k)}}};h.event.special.change={filters:{focusout:Da,click:function(g){var j=g.target,k=j.type;if(k==="radio"||k==="checkbox"||j.nodeName.toLowerCase()==="select")return Da.call(this,g)},keydown:function(g){var j=g.target,k=j.type;if(g.keyCode===13&&j.nodeName.toLowerCase()!=="textarea"||g.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")return Da.call(this,g)},beforeactivate:function(g){g=g.target;h.data(g,"_change_data",Ra(g))}},setup:function(){if(this.type===
"file")return false;for(var g in Ca)h.event.add(this,g+".specialChange",Ca[g]);return Ba.test(this.nodeName)},teardown:function(){h.event.remove(this,".specialChange");return Ba.test(this.nodeName)}};Ca=h.event.special.change.filters}A.addEventListener&&h.each({focus:"focusin",blur:"focusout"},function(g,j){function k(p){p=h.event.fix(p);p.type=j;return h.event.handle.call(this,p)}h.event.special[j]={setup:function(){this.addEventListener(g,k,true)},teardown:function(){this.removeEventListener(g,
k,true)}}});h.each(["bind","one"],function(g,j){h.fn[j]=function(k,p,q){if(typeof k==="object"){for(var v in k)this[j](v,p,k[v],q);return this}if(h.isFunction(p)){q=p;p=c}var y=j==="one"?h.proxy(q,function(C){h(this).unbind(C,y);return q.apply(this,arguments)}):q;if(k==="unload"&&j!=="one")this.one(k,p,q);else{v=0;for(var F=this.length;v<F;v++)h.event.add(this[v],k,y,p)}return this}});h.fn.extend({unbind:function(g,j){if(typeof g==="object"&&!g.preventDefault)for(var k in g)this.unbind(k,g[k]);else{k=
0;for(var p=this.length;k<p;k++)h.event.remove(this[k],g,j)}return this},delegate:function(g,j,k,p){return this.live(j,k,p,g)},undelegate:function(g,j,k){return arguments.length===0?this.unbind("live"):this.die(j,null,k,g)},trigger:function(g,j){return this.each(function(){h.event.trigger(g,j,this)})},triggerHandler:function(g,j){if(this[0]){var k=h.Event(g);k.preventDefault();k.stopPropagation();h.event.trigger(k,j,this[0]);return k.result}},toggle:function(g){for(var j=arguments,k=1;k<j.length;)h.proxy(g,
j[k++]);return this.click(h.proxy(g,function(p){var q=(h.data(this,"lastToggle"+g.guid)||0)%k;h.data(this,"lastToggle"+g.guid,q+1);p.preventDefault();return j[q].apply(this,arguments)||false}))},hover:function(g,j){return this.mouseenter(g).mouseleave(j||g)}});var Sa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};h.each(["live","die"],function(g,j){h.fn[j]=function(k,p,q,v){var y,F=0,C,G,K=v||this.selector,R=v?this:h(this.context);if(h.isFunction(p)){q=p;p=c}for(k=
(k||"").split(" ");(y=k[F++])!=null;){v=ta.exec(y);C="";if(v){C=v[0];y=y.replace(ta,"")}if(y==="hover")k.push("mouseenter"+C,"mouseleave"+C);else{G=y;if(y==="focus"||y==="blur"){k.push(Sa[y]+C);y+=C}else y=(Sa[y]||y)+C;j==="live"?R.each(function(){h.event.add(this,l(y,K),{data:p,selector:K,handler:q,origType:y,origHandler:q,preType:G})}):R.unbind(l(y,K),q)}}return this}});h.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(g,j){h.fn[j]=function(k){return k?this.bind(j,k):this.trigger(j)};if(h.attrFn)h.attrFn[j]=true});a.attachEvent&&!a.addEventListener&&a.attachEvent("onunload",function(){for(var g in h.cache)if(h.cache[g].handle)try{h.event.remove(h.cache[g].handle.elem)}catch(j){}});(function(){function g(s){for(var z="",D,E=0;s[E];E++){D=s[E];if(D.nodeType===3||D.nodeType===4)z+=D.nodeValue;else if(D.nodeType!==8)z+=g(D.childNodes)}return z}function j(s,z,D,E,J,I){J=0;for(var M=E.length;J<M;J++){var L=E[J];
if(L){L=L[s];for(var S=false;L;){if(L.sizcache===D){S=E[L.sizset];break}if(L.nodeType===1&&!I){L.sizcache=D;L.sizset=J}if(L.nodeName.toLowerCase()===z){S=L;break}L=L[s]}E[J]=S}}}function k(s,z,D,E,J,I){J=0;for(var M=E.length;J<M;J++){var L=E[J];if(L){L=L[s];for(var S=false;L;){if(L.sizcache===D){S=E[L.sizset];break}if(L.nodeType===1){if(!I){L.sizcache=D;L.sizset=J}if(typeof z!=="string"){if(L===z){S=true;break}}else if(C.filter(z,[L]).length>0){S=L;break}}L=L[s]}E[J]=S}}}var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
q=0,v=Object.prototype.toString,y=false,F=true;[0,0].sort(function(){F=false;return 0});var C=function(s,z,D,E){D=D||[];var J=z=z||A;if(z.nodeType!==1&&z.nodeType!==9)return[];if(!s||typeof s!=="string")return D;for(var I=[],M,L,S,xa,na=true,ra=O(z),oa=s;(p.exec(""),M=p.exec(oa))!==null;){oa=M[3];I.push(M[1]);if(M[2]){xa=M[3];break}}if(I.length>1&&K.exec(s))if(I.length===2&&G.relative[I[0]])L=Ea(I[0]+I[1],z);else for(L=G.relative[I[0]]?[z]:C(I.shift(),z);I.length;){s=I.shift();if(G.relative[s])s+=
I.shift();L=Ea(s,L)}else{if(!E&&I.length>1&&z.nodeType===9&&!ra&&G.match.ID.test(I[0])&&!G.match.ID.test(I[I.length-1])){M=C.find(I.shift(),z,ra);z=M.expr?C.filter(M.expr,M.set)[0]:M.set[0]}if(z){M=E?{expr:I.pop(),set:T(E)}:C.find(I.pop(),I.length===1&&(I[0]==="~"||I[0]==="+")&&z.parentNode?z.parentNode:z,ra);L=M.expr?C.filter(M.expr,M.set):M.set;if(I.length>0)S=T(L);else na=false;for(;I.length;){var fa=I.pop();M=fa;if(G.relative[fa])M=I.pop();else fa="";if(M==null)M=z;G.relative[fa](S,M,ra)}}else S=
[]}S||(S=L);S||C.error(fa||s);if(v.call(S)==="[object Array]")if(na)if(z&&z.nodeType===1)for(s=0;S[s]!=null;s++){if(S[s]&&(S[s]===true||S[s].nodeType===1&&ea(z,S[s])))D.push(L[s])}else for(s=0;S[s]!=null;s++)S[s]&&S[s].nodeType===1&&D.push(L[s]);else D.push.apply(D,S);else T(S,D);if(xa){C(xa,J,D,E);C.uniqueSort(D)}return D};C.uniqueSort=function(s){if(V){y=F;s.sort(V);if(y)for(var z=1;z<s.length;z++)s[z]===s[z-1]&&s.splice(z--,1)}return s};C.matches=function(s,z){return C(s,null,null,z)};C.find=function(s,
z,D){var E,J;if(!s)return[];for(var I=0,M=G.order.length;I<M;I++){var L=G.order[I];if(J=G.leftMatch[L].exec(s)){var S=J[1];J.splice(1,1);if(S.substr(S.length-1)!=="\\"){J[1]=(J[1]||"").replace(/\\/g,"");E=G.find[L](J,z,D);if(E!=null){s=s.replace(G.match[L],"");break}}}}E||(E=z.getElementsByTagName("*"));return{set:E,expr:s}};C.filter=function(s,z,D,E){for(var J=s,I=[],M=z,L,S,xa=z&&z[0]&&O(z[0]);s&&z.length;){for(var na in G.filter)if((L=G.leftMatch[na].exec(s))!=null&&L[2]){var ra=G.filter[na],oa,
fa;fa=L[1];S=false;L.splice(1,1);if(fa.substr(fa.length-1)!=="\\"){if(M===I)I=[];if(G.preFilter[na])if(L=G.preFilter[na](L,M,D,I,E,xa)){if(L===true)continue}else S=oa=true;if(L)for(var ya=0;(fa=M[ya])!=null;ya++)if(fa){oa=ra(fa,L,ya,M);var Ta=E^!!oa;if(D&&oa!=null)if(Ta)S=true;else M[ya]=false;else if(Ta){I.push(fa);S=true}}if(oa!==c){D||(M=I);s=s.replace(G.match[na],"");if(!S)return[];break}}}if(s===J)if(S==null)C.error(s);else break;J=s}return M};C.error=function(s){throw"Syntax error, unrecognized expression: "+
s;};var G=C.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,z){var D=typeof z==="string",E=D&&!/\W/.test(z);D=D&&!E;if(E)z=z.toLowerCase();E=0;for(var J=s.length,I;E<J;E++)if(I=s[E]){for(;(I=I.previousSibling)&&I.nodeType!==1;);s[E]=D||I&&I.nodeName.toLowerCase()===z?I||false:I===z}D&&C.filter(z,s,true)},">":function(s,z){var D=typeof z==="string";if(D&&!/\W/.test(z)){z=z.toLowerCase();for(var E=0,J=s.length;E<J;E++){var I=
s[E];if(I){D=I.parentNode;s[E]=D.nodeName.toLowerCase()===z?D:false}}}else{E=0;for(J=s.length;E<J;E++)if(I=s[E])s[E]=D?I.parentNode:I.parentNode===z;D&&C.filter(z,s,true)}},"":function(s,z,D){var E=q++,J=k;if(typeof z==="string"&&!/\W/.test(z)){var I=z=z.toLowerCase();J=j}J("parentNode",z,E,s,I,D)},"~":function(s,z,D){var E=q++,J=k;if(typeof z==="string"&&!/\W/.test(z)){var I=z=z.toLowerCase();J=j}J("previousSibling",z,E,s,I,D)}},find:{ID:function(s,z,D){if(typeof z.getElementById!=="undefined"&&
!D)return(s=z.getElementById(s[1]))?[s]:[]},NAME:function(s,z){if(typeof z.getElementsByName!=="undefined"){for(var D=[],E=z.getElementsByName(s[1]),J=0,I=E.length;J<I;J++)E[J].getAttribute("name")===s[1]&&D.push(E[J]);return D.length===0?null:D}},TAG:function(s,z){return z.getElementsByTagName(s[1])}},preFilter:{CLASS:function(s,z,D,E,J,I){s=" "+s[1].replace(/\\/g,"")+" ";if(I)return s;I=0;for(var M;(M=z[I])!=null;I++)if(M)if(J^(M.className&&(" "+M.className+" ").replace(/[\t\n]/g," ").indexOf(s)>=
0))D||E.push(M);else if(D)z[I]=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 z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]==="even"&&"2n"||s[2]==="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=z[1]+(z[2]||1)-0;s[3]=z[3]-0}s[0]=q++;return s},ATTR:function(s,z,D,E,J,I){z=s[1].replace(/\\/g,"");if(!I&&G.attrMap[z])s[1]=G.attrMap[z];if(s[2]==="~=")s[4]=" "+s[4]+" ";return s},PSEUDO:function(s,z,D,E,
J){if(s[1]==="not")if((p.exec(s[3])||"").length>1||/^\w/.test(s[3]))s[3]=C(s[3],null,null,z);else{s=C.filter(s[3],z,D,true^J);D||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,z,D){return!!C(D[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,z){return z===0},last:function(s,z,D,E){return z===E.length-1},even:function(s,z){return z%2===0},odd:function(s,z){return z%2===1},lt:function(s,z,D){return z<D[3]-0},gt:function(s,z,D){return z>D[3]-0},nth:function(s,z,D){return D[3]-0===z},eq:function(s,z,D){return D[3]-0===z}},filter:{PSEUDO:function(s,z,D,E){var J=z[1],I=G.filters[J];if(I)return I(s,
D,z,E);else if(J==="contains")return(s.textContent||s.innerText||g([s])||"").indexOf(z[3])>=0;else if(J==="not"){z=z[3];D=0;for(E=z.length;D<E;D++)if(z[D]===s)return false;return true}else C.error("Syntax error, unrecognized expression: "+J)},CHILD:function(s,z){var D=z[1],E=s;switch(D){case "only":case "first":for(;E=E.previousSibling;)if(E.nodeType===1)return false;if(D==="first")return true;E=s;case "last":for(;E=E.nextSibling;)if(E.nodeType===1)return false;return true;case "nth":D=z[2];var J=
z[3];if(D===1&&J===0)return true;var I=z[0],M=s.parentNode;if(M&&(M.sizcache!==I||!s.nodeIndex)){var L=0;for(E=M.firstChild;E;E=E.nextSibling)if(E.nodeType===1)E.nodeIndex=++L;M.sizcache=I}E=s.nodeIndex-J;return D===0?E===0:E%D===0&&E/D>=0}},ID:function(s,z){return s.nodeType===1&&s.getAttribute("id")===z},TAG:function(s,z){return z==="*"&&s.nodeType===1||s.nodeName.toLowerCase()===z},CLASS:function(s,z){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(z)>-1},ATTR:function(s,z){var D=
z[1];D=G.attrHandle[D]?G.attrHandle[D](s):s[D]!=null?s[D]:s.getAttribute(D);var E=D+"",J=z[2],I=z[4];return D==null?J==="!=":J==="="?E===I:J==="*="?E.indexOf(I)>=0:J==="~="?(" "+E+" ").indexOf(I)>=0:!I?E&&D!==false:J==="!="?E!==I:J==="^="?E.indexOf(I)===0:J==="$="?E.substr(E.length-I.length)===I:J==="|="?E===I||E.substr(0,I.length+1)===I+"-":false},POS:function(s,z,D,E){var J=G.setFilters[z[2]];if(J)return J(s,D,z,E)}}},K=G.match.POS;for(var R in G.match){G.match[R]=RegExp(G.match[R].source+/(?![^\[]*\])(?![^\(]*\))/.source);
G.leftMatch[R]=RegExp(/(^(?:.|\r|\n)*?)/.source+G.match[R].source.replace(/\\(\d+)/g,function(s,z){return"\\"+(z-0+1)}))}var T=function(s,z){s=Array.prototype.slice.call(s,0);if(z){z.push.apply(z,s);return z}return s};try{Array.prototype.slice.call(A.documentElement.childNodes,0)}catch(aa){T=function(s,z){var D=z||[];if(v.call(s)==="[object Array]")Array.prototype.push.apply(D,s);else if(typeof s.length==="number")for(var E=0,J=s.length;E<J;E++)D.push(s[E]);else for(E=0;s[E];E++)D.push(s[E]);return D}}var V;
if(A.documentElement.compareDocumentPosition)V=function(s,z){if(!s.compareDocumentPosition||!z.compareDocumentPosition){if(s==z)y=true;return s.compareDocumentPosition?-1:1}var D=s.compareDocumentPosition(z)&4?-1:s===z?0:1;if(D===0)y=true;return D};else if("sourceIndex"in A.documentElement)V=function(s,z){if(!s.sourceIndex||!z.sourceIndex){if(s==z)y=true;return s.sourceIndex?-1:1}var D=s.sourceIndex-z.sourceIndex;if(D===0)y=true;return D};else if(A.createRange)V=function(s,z){if(!s.ownerDocument||
!z.ownerDocument){if(s==z)y=true;return s.ownerDocument?-1:1}var D=s.ownerDocument.createRange(),E=z.ownerDocument.createRange();D.setStart(s,0);D.setEnd(s,0);E.setStart(z,0);E.setEnd(z,0);D=D.compareBoundaryPoints(Range.START_TO_END,E);if(D===0)y=true;return D};(function(){var s=A.createElement("div"),z="script"+(new Date).getTime();s.innerHTML="<a name='"+z+"'/>";var D=A.documentElement;D.insertBefore(s,D.firstChild);if(A.getElementById(z)){G.find.ID=function(E,J,I){if(typeof J.getElementById!==
"undefined"&&!I)return(J=J.getElementById(E[1]))?J.id===E[1]||typeof J.getAttributeNode!=="undefined"&&J.getAttributeNode("id").nodeValue===E[1]?[J]:c:[]};G.filter.ID=function(E,J){var I=typeof E.getAttributeNode!=="undefined"&&E.getAttributeNode("id");return E.nodeType===1&&I&&I.nodeValue===J}}D.removeChild(s);D=s=null})();(function(){var s=A.createElement("div");s.appendChild(A.createComment(""));if(s.getElementsByTagName("*").length>0)G.find.TAG=function(z,D){var E=D.getElementsByTagName(z[1]);
if(z[1]==="*"){for(var J=[],I=0;E[I];I++)E[I].nodeType===1&&J.push(E[I]);E=J}return E};s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#")G.attrHandle.href=function(z){return z.getAttribute("href",2)};s=null})();A.querySelectorAll&&function(){var s=C,z=A.createElement("div");z.innerHTML="<p class='TEST'></p>";if(!(z.querySelectorAll&&z.querySelectorAll(".TEST").length===0)){C=function(E,J,I,M){J=J||A;if(!M&&J.nodeType===
9&&!O(J))try{return T(J.querySelectorAll(E),I)}catch(L){}return s(E,J,I,M)};for(var D in s)C[D]=s[D];z=null}}();(function(){var s=A.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(z,D,E){if(typeof D.getElementsByClassName!=="undefined"&&!E)return D.getElementsByClassName(z[1])};
s=null}}})();var ea=A.compareDocumentPosition?function(s,z){return!!(s.compareDocumentPosition(z)&16)}:function(s,z){return s!==z&&(s.contains?s.contains(z):true)},O=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false},Ea=function(s,z){for(var D=[],E="",J,I=z.nodeType?[z]:z;J=G.match.PSEUDO.exec(s);){E+=J[0];s=s.replace(G.match.PSEUDO,"")}s=G.relative[s]?s+"*":s;J=0;for(var M=I.length;J<M;J++)C(s,I[J],D);return C.filter(E,D)};h.find=C;h.expr=C.selectors;h.expr[":"]=
h.expr.filters;h.unique=C.uniqueSort;h.text=g;h.isXMLDoc=O;h.contains=ea})();var fb=/Until$/,gb=/^(?:parents|prevUntil|prevAll)/,hb=/,/;W=Array.prototype.slice;var Ua=function(g,j,k){if(h.isFunction(j))return h.grep(g,function(q,v){return!!j.call(q,v,q)===k});else if(j.nodeType)return h.grep(g,function(q){return q===j===k});else if(typeof j==="string"){var p=h.grep(g,function(q){return q.nodeType===1});if(Q.test(j))return h.filter(j,p,!k);else j=h.filter(j,p)}return h.grep(g,function(q){return h.inArray(q,
j)>=0===k})};h.fn.extend({find:function(g){for(var j=this.pushStack("","find",g),k=0,p=0,q=this.length;p<q;p++){k=j.length;h.find(g,this[p],j);if(p>0)for(var v=k;v<j.length;v++)for(var y=0;y<k;y++)if(j[y]===j[v]){j.splice(v--,1);break}}return j},has:function(g){var j=h(g);return this.filter(function(){for(var k=0,p=j.length;k<p;k++)if(h.contains(this,j[k]))return true})},not:function(g){return this.pushStack(Ua(this,g,false),"not",g)},filter:function(g){return this.pushStack(Ua(this,g,true),"filter",
g)},is:function(g){return!!g&&h.filter(g,this).length>0},closest:function(g,j){if(h.isArray(g)){var k=[],p=this[0],q,v={},y;if(p&&g.length){q=0;for(var F=g.length;q<F;q++){y=g[q];v[y]||(v[y]=h.expr.match.POS.test(y)?h(y,j||this.context):y)}for(;p&&p.ownerDocument&&p!==j;){for(y in v){q=v[y];if(q.jquery?q.index(p)>-1:h(p).is(q)){k.push({selector:y,elem:p});delete v[y]}}p=p.parentNode}}return k}var C=h.expr.match.POS.test(g)?h(g,j||this.context):null;return this.map(function(G,K){for(;K&&K.ownerDocument&&
K!==j;){if(C?C.index(K)>-1:h(K).is(g))return K;K=K.parentNode}return null})},index:function(g){if(!g||typeof g==="string")return h.inArray(this[0],g?h(g):this.parent().children());return h.inArray(g.jquery?g[0]:g,this)},add:function(g,j){var k=typeof g==="string"?h(g,j||this.context):h.makeArray(g),p=h.merge(this.get(),k);return this.pushStack(!k[0]||!k[0].parentNode||k[0].parentNode.nodeType===11||!p[0]||!p[0].parentNode||p[0].parentNode.nodeType===11?p:h.unique(p))},andSelf:function(){return this.add(this.prevObject)}});
h.each({parent:function(g){return(g=g.parentNode)&&g.nodeType!==11?g:null},parents:function(g){return h.dir(g,"parentNode")},parentsUntil:function(g,j,k){return h.dir(g,"parentNode",k)},next:function(g){return h.nth(g,2,"nextSibling")},prev:function(g){return h.nth(g,2,"previousSibling")},nextAll:function(g){return h.dir(g,"nextSibling")},prevAll:function(g){return h.dir(g,"previousSibling")},nextUntil:function(g,j,k){return h.dir(g,"nextSibling",k)},prevUntil:function(g,j,k){return h.dir(g,"previousSibling",
k)},siblings:function(g){return h.sibling(g.parentNode.firstChild,g)},children:function(g){return h.sibling(g.firstChild)},contents:function(g){return h.nodeName(g,"iframe")?g.contentDocument||g.contentWindow.document:h.makeArray(g.childNodes)}},function(g,j){h.fn[g]=function(k,p){var q=h.map(this,j,k);fb.test(g)||(p=k);if(p&&typeof p==="string")q=h.filter(p,q);q=this.length>1?h.unique(q):q;if((this.length>1||hb.test(p))&&gb.test(g))q=q.reverse();return this.pushStack(q,g,W.call(arguments).join(","))}});
h.extend({filter:function(g,j,k){if(k)g=":not("+g+")";return h.find.matches(g,j)},dir:function(g,j,k){var p=[];for(g=g[j];g&&g.nodeType!==9&&(k===c||g.nodeType!==1||!h(g).is(k));){g.nodeType===1&&p.push(g);g=g[j]}return p},nth:function(g,j,k){j=j||1;for(var p=0;g;g=g[k])if(g.nodeType===1&&++p===j)break;return g},sibling:function(g,j){for(var k=[];g;g=g.nextSibling)g.nodeType===1&&g!==j&&k.push(g);return k}});var Va=/ jQuery\d+="(?:\d+|null)"/g,za=/^\s+/,Wa=/(<([\w:]+)[^>]*?)\/>/g,ib=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,
Xa=/<([\w:]+)/,jb=/<tbody/i,kb=/<|&#?\w+;/,Ka=/<script|<object|<embed|<option|<style/i,La=/checked\s*(?:[^=]|=\s*.checked.)/i,Ya=function(g,j,k){return ib.test(k)?g:j+"></"+k+">"},ga={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,
"",""]};ga.optgroup=ga.option;ga.tbody=ga.tfoot=ga.colgroup=ga.caption=ga.thead;ga.th=ga.td;if(!h.support.htmlSerialize)ga._default=[1,"div<div>","</div>"];h.fn.extend({text:function(g){if(h.isFunction(g))return this.each(function(j){var k=h(this);k.text(g.call(this,j,k.text()))});if(typeof g!=="object"&&g!==c)return this.empty().append((this[0]&&this[0].ownerDocument||A).createTextNode(g));return h.text(this)},wrapAll:function(g){if(h.isFunction(g))return this.each(function(k){h(this).wrapAll(g.call(this,
k))});if(this[0]){var j=h(g,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&j.insertBefore(this[0]);j.map(function(){for(var k=this;k.firstChild&&k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(g){if(h.isFunction(g))return this.each(function(j){h(this).wrapInner(g.call(this,j))});return this.each(function(){var j=h(this),k=j.contents();k.length?k.wrapAll(g):j.append(g)})},wrap:function(g){return this.each(function(){h(this).wrapAll(g)})},
unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(g){this.nodeType===1&&this.appendChild(g)})},prepend:function(){return this.domManip(arguments,true,function(g){this.nodeType===1&&this.insertBefore(g,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(j){this.parentNode.insertBefore(j,this)});else if(arguments.length){var g=
h(arguments[0]);g.push.apply(g,this.toArray());return this.pushStack(g,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(j){this.parentNode.insertBefore(j,this.nextSibling)});else if(arguments.length){var g=this.pushStack(this,"after",arguments);g.push.apply(g,h(arguments[0]).toArray());return g}},remove:function(g,j){for(var k=0,p;(p=this[k])!=null;k++)if(!g||h.filter(g,[p]).length){if(!j&&p.nodeType===1){h.cleanData(p.getElementsByTagName("*"));
h.cleanData([p])}p.parentNode&&p.parentNode.removeChild(p)}return this},empty:function(){for(var g=0,j;(j=this[g])!=null;g++)for(j.nodeType===1&&h.cleanData(j.getElementsByTagName("*"));j.firstChild;)j.removeChild(j.firstChild);return this},clone:function(g){var j=this.map(function(){if(!h.support.noCloneEvent&&!h.isXMLDoc(this)){var k=this.outerHTML,p=this.ownerDocument;if(!k){k=p.createElement("div");k.appendChild(this.cloneNode(true));k=k.innerHTML}return h.clean([k.replace(Va,"").replace(/=([^="'>\s]+\/)>/g,
'="$1">').replace(za,"")],p)[0]}else return this.cloneNode(true)});if(g===true){r(this,j);r(this.find("*"),j.find("*"))}return j},html:function(g){if(g===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Va,""):null;else if(typeof g==="string"&&!Ka.test(g)&&(h.support.leadingWhitespace||!za.test(g))&&!ga[(Xa.exec(g)||["",""])[1].toLowerCase()]){g=g.replace(Wa,Ya);try{for(var j=0,k=this.length;j<k;j++)if(this[j].nodeType===1){h.cleanData(this[j].getElementsByTagName("*"));this[j].innerHTML=
g}}catch(p){this.empty().append(g)}}else h.isFunction(g)?this.each(function(q){var v=h(this),y=v.html();v.empty().append(function(){return g.call(this,q,y)})}):this.empty().append(g);return this},replaceWith:function(g){if(this[0]&&this[0].parentNode){if(h.isFunction(g))return this.each(function(j){var k=h(this),p=k.html();k.replaceWith(g.call(this,j,p))});if(typeof g!=="string")g=h(g).detach();return this.each(function(){var j=this.nextSibling,k=this.parentNode;h(this).remove();j?h(j).before(g):
h(k).append(g)})}else return this.pushStack(h(h.isFunction(g)?g():g),"replaceWith",g)},detach:function(g){return this.remove(g,true)},domManip:function(g,j,k){var p,q,v=g[0],y=[],F;if(!h.support.checkClone&&arguments.length===3&&typeof v==="string"&&La.test(v))return this.each(function(){h(this).domManip(g,j,k,true)});if(h.isFunction(v))return this.each(function(G){var K=h(this);g[0]=v.call(this,G,j?K.html():c);K.domManip(g,j,k)});if(this[0]){p=v&&v.parentNode;p=h.support.parentNode&&p&&p.nodeType===
11&&p.childNodes.length===this.length?{fragment:p}:u(g,this,y);F=p.fragment;if(q=F.childNodes.length===1?F=F.firstChild:F.firstChild){j=j&&h.nodeName(q,"tr");q=0;for(var C=this.length;q<C;q++)k.call(j?h.nodeName(this[q],"table")?this[q].getElementsByTagName("tbody")[0]||this[q].appendChild(this[q].ownerDocument.createElement("tbody")):this[q]:this[q],q>0||p.cacheable||this.length>1?F.cloneNode(true):F)}y.length&&h.each(y,d)}return this}});h.fragments={};h.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(g,j){h.fn[g]=function(k){var p=[];k=h(k);var q=this.length===1&&this[0].parentNode;if(q&&q.nodeType===11&&q.childNodes.length===1&&k.length===1){k[j](this[0]);return this}else{q=0;for(var v=k.length;q<v;q++){var y=(q>0?this.clone(true):this).get();h.fn[j].apply(h(k[q]),y);p=p.concat(y)}return this.pushStack(p,g,k.selector)}}});h.extend({clean:function(g,j,k,p){j=j||A;if(typeof j.createElement==="undefined")j=j.ownerDocument||
j[0]&&j[0].ownerDocument||A;for(var q=[],v=0,y;(y=g[v])!=null;v++){if(typeof y==="number")y+="";if(y){if(typeof y==="string"&&!kb.test(y))y=j.createTextNode(y);else if(typeof y==="string"){y=y.replace(Wa,Ya);var F=(Xa.exec(y)||["",""])[1].toLowerCase(),C=ga[F]||ga._default,G=C[0],K=j.createElement("div");for(K.innerHTML=C[1]+y+C[2];G--;)K=K.lastChild;if(!h.support.tbody){G=jb.test(y);F=F==="table"&&!G?K.firstChild&&K.firstChild.childNodes:C[1]==="<table>"&&!G?K.childNodes:[];for(C=F.length-1;C>=0;--C)h.nodeName(F[C],
"tbody")&&!F[C].childNodes.length&&F[C].parentNode.removeChild(F[C])}!h.support.leadingWhitespace&&za.test(y)&&K.insertBefore(j.createTextNode(za.exec(y)[0]),K.firstChild);y=K.childNodes}if(y.nodeType)q.push(y);else q=h.merge(q,y)}}if(k)for(v=0;q[v];v++)if(p&&h.nodeName(q[v],"script")&&(!q[v].type||q[v].type.toLowerCase()==="text/javascript"))p.push(q[v].parentNode?q[v].parentNode.removeChild(q[v]):q[v]);else{q[v].nodeType===1&&q.splice.apply(q,[v+1,0].concat(h.makeArray(q[v].getElementsByTagName("script"))));
k.appendChild(q[v])}return q},cleanData:function(g){for(var j,k,p=h.cache,q=h.event.special,v=h.support.deleteExpando,y=0,F;(F=g[y])!=null;y++)if(k=F[h.expando]){j=p[k];if(j.events)for(var C in j.events)q[C]?h.event.remove(F,C):Oa(F,C,j.handle);if(v)delete F[h.expando];else F.removeAttribute&&F.removeAttribute(h.expando);delete p[k]}}});var lb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Za=/alpha\([^)]*\)/,$a=/opacity=([^)]*)/,Fa=/float/i,Ga=/-([a-z])/ig,mb=/([A-Z])/g,nb=/^-?\d+(?:px)?$/i,
ob=/^-?\d/,pb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],rb=["Top","Bottom"],sb=A.defaultView&&A.defaultView.getComputedStyle,ab=h.support.cssFloat?"cssFloat":"styleFloat",Ha=function(g,j){return j.toUpperCase()};h.fn.css=function(g,j){return b(this,g,j,true,function(k,p,q){if(q===c)return h.curCSS(k,p);if(typeof q==="number"&&!lb.test(p))q+="px";h.style(k,p,q)})};h.extend({style:function(g,j,k){if(!g||g.nodeType===3||g.nodeType===8)return c;if((j==="width"||j===
"height")&&parseFloat(k)<0)k=c;var p=g.style||g,q=k!==c;if(!h.support.opacity&&j==="opacity"){if(q){p.zoom=1;j=parseInt(k,10)+""==="NaN"?"":"alpha(opacity="+k*100+")";g=p.filter||h.curCSS(g,"filter")||"";p.filter=Za.test(g)?g.replace(Za,j):j}return p.filter&&p.filter.indexOf("opacity=")>=0?parseFloat($a.exec(p.filter)[1])/100+"":""}if(Fa.test(j))j=ab;j=j.replace(Ga,Ha);if(q)p[j]=k;return p[j]},css:function(g,j,k,p){if(j==="width"||j==="height"){var q,v=j==="width"?qb:rb;k=function(){q=j==="width"?
g.offsetWidth:g.offsetHeight;p!=="border"&&h.each(v,function(){p||(q-=parseFloat(h.curCSS(g,"padding"+this,true))||0);if(p==="margin")q+=parseFloat(h.curCSS(g,"margin"+this,true))||0;else q-=parseFloat(h.curCSS(g,"border"+this+"Width",true))||0})};g.offsetWidth!==0?k():h.swap(g,pb,k);return Math.max(0,Math.round(q))}return h.curCSS(g,j,k)},curCSS:function(g,j,k){var p,q=g.style;if(!h.support.opacity&&j==="opacity"&&g.currentStyle){p=$a.test(g.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":
"";return p===""?"1":p}if(Fa.test(j))j=ab;if(!k&&q&&q[j])p=q[j];else if(sb){if(Fa.test(j))j="float";j=j.replace(mb,"-$1").toLowerCase();q=g.ownerDocument.defaultView;if(!q)return null;if(g=q.getComputedStyle(g,null))p=g.getPropertyValue(j);if(j==="opacity"&&p==="")p="1"}else if(g.currentStyle){k=j.replace(Ga,Ha);p=g.currentStyle[j]||g.currentStyle[k];if(!nb.test(p)&&ob.test(p)){j=q.left;var v=g.runtimeStyle.left;g.runtimeStyle.left=g.currentStyle.left;q.left=k==="fontSize"?"1em":p||0;p=q.pixelLeft+
"px";q.left=j;g.runtimeStyle.left=v}}return p},swap:function(g,j,k){var p={};for(var q in j){p[q]=g.style[q];g.style[q]=j[q]}k.call(g);for(q in j)g.style[q]=p[q]}});if(h.expr&&h.expr.filters){h.expr.filters.hidden=function(g){var j=g.offsetWidth,k=g.offsetHeight,p=g.nodeName.toLowerCase()==="tr";return j===0&&k===0&&!p?true:j>0&&k>0&&!p?false:h.curCSS(g,"display")==="none"};h.expr.filters.visible=function(g){return!h.expr.filters.hidden(g)}}var tb=e(),ub=/<script(.|\s)*?\/script>/gi,vb=/select|textarea/i,
wb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,sa=/=\?(&|$)/,Ia=/\?/,xb=/(\?|&)_=.*?(&|$)/,yb=/^(\w+:)?\/\/([^\/?#]+)/,zb=/%20/g,Ab=h.fn.load;h.fn.extend({load:function(g,j,k){if(typeof g!=="string")return Ab.call(this,g);else if(!this.length)return this;var p=g.indexOf(" ");if(p>=0){var q=g.slice(p,g.length);g=g.slice(0,p)}p="GET";if(j)if(h.isFunction(j)){k=j;j=null}else if(typeof j==="object"){j=h.param(j,h.ajaxSettings.traditional);p="POST"}var v=
this;h.ajax({url:g,type:p,dataType:"html",data:j,complete:function(y,F){if(F==="success"||F==="notmodified")v.html(q?h("<div />").append(y.responseText.replace(ub,"")).find(q):y.responseText);k&&v.each(k,[y.responseText,F,y])}});return this},serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||vb.test(this.nodeName)||
wb.test(this.type))}).map(function(g,j){var k=h(this).val();return k==null?null:h.isArray(k)?h.map(k,function(p){return{name:j.name,value:p}}):{name:j.name,value:k}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(g,j){h.fn[j]=function(k){return this.bind(j,k)}});h.extend({get:function(g,j,k,p){if(h.isFunction(j)){p=p||k;k=j;j=null}return h.ajax({type:"GET",url:g,data:j,success:k,dataType:p})},getScript:function(g,j){return h.get(g,null,j,"script")},
getJSON:function(g,j,k){return h.get(g,j,k,"json")},post:function(g,j,k,p){if(h.isFunction(j)){p=p||k;k=j;j={}}return h.ajax({type:"POST",url:g,data:j,success:k,dataType:p})},ajaxSetup:function(g){h.extend(h.ajaxSettings,g)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:a.XMLHttpRequest&&(a.location.protocol!=="file:"||!a.ActiveXObject)?function(){return new a.XMLHttpRequest}:function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(g){}},
accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(g){function j(){q.success&&q.success.call(C,F,y,O);q.global&&p("ajaxSuccess",[O,q])}function k(){q.complete&&q.complete.call(C,O,y);q.global&&p("ajaxComplete",[O,q]);q.global&&!--h.active&&h.event.trigger("ajaxStop")}function p(J,I){(q.context?h(q.context):h.event).trigger(J,I)}var q=
h.extend(true,{},h.ajaxSettings,g),v,y,F,C=g&&g.context||q,G=q.type.toUpperCase();if(q.data&&q.processData&&typeof q.data!=="string")q.data=h.param(q.data,q.traditional);if(q.dataType==="jsonp"){if(G==="GET")sa.test(q.url)||(q.url+=(Ia.test(q.url)?"&":"?")+(q.jsonp||"callback")+"=?");else if(!q.data||!sa.test(q.data))q.data=(q.data?q.data+"&":"")+(q.jsonp||"callback")+"=?";q.dataType="json"}if(q.dataType==="json"&&(q.data&&sa.test(q.data)||sa.test(q.url))){v=q.jsonpCallback||"jsonp"+tb++;if(q.data)q.data=
(q.data+"").replace(sa,"="+v+"$1");q.url=q.url.replace(sa,"="+v+"$1");q.dataType="script";a[v]=a[v]||function(J){F=J;j();k();a[v]=c;try{delete a[v]}catch(I){}T&&T.removeChild(aa)}}if(q.dataType==="script"&&q.cache===null)q.cache=false;if(q.cache===false&&G==="GET"){var K=e(),R=q.url.replace(xb,"$1_="+K+"$2");q.url=R+(R===q.url?(Ia.test(q.url)?"&":"?")+"_="+K:"")}if(q.data&&G==="GET")q.url+=(Ia.test(q.url)?"&":"?")+q.data;q.global&&!h.active++&&h.event.trigger("ajaxStart");K=(K=yb.exec(q.url))&&(K[1]&&
K[1]!==location.protocol||K[2]!==location.host);if(q.dataType==="script"&&G==="GET"&&K){var T=A.getElementsByTagName("head")[0]||A.documentElement,aa=A.createElement("script");aa.src=q.url;if(q.scriptCharset)aa.charset=q.scriptCharset;if(!v){var V=false;aa.onload=aa.onreadystatechange=function(){if(!V&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){V=true;j();k();aa.onload=aa.onreadystatechange=null;T&&aa.parentNode&&T.removeChild(aa)}}}T.insertBefore(aa,T.firstChild);
return c}var ea=false,O=q.xhr();if(O){q.username?O.open(G,q.url,q.async,q.username,q.password):O.open(G,q.url,q.async);try{if(q.data||g&&g.contentType)O.setRequestHeader("Content-Type",q.contentType);if(q.ifModified){h.lastModified[q.url]&&O.setRequestHeader("If-Modified-Since",h.lastModified[q.url]);h.etag[q.url]&&O.setRequestHeader("If-None-Match",h.etag[q.url])}K||O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",q.dataType&&q.accepts[q.dataType]?q.accepts[q.dataType]+
", */*":q.accepts._default)}catch(Ea){}if(q.beforeSend&&q.beforeSend.call(C,O,q)===false){q.global&&!--h.active&&h.event.trigger("ajaxStop");O.abort();return false}q.global&&p("ajaxSend",[O,q]);var s=O.onreadystatechange=function(J){if(!O||O.readyState===0||J==="abort"){ea||k();ea=true;if(O)O.onreadystatechange=h.noop}else if(!ea&&O&&(O.readyState===4||J==="timeout")){ea=true;O.onreadystatechange=h.noop;y=J==="timeout"?"timeout":!h.httpSuccess(O)?"error":q.ifModified&&h.httpNotModified(O,q.url)?"notmodified":
"success";var I;if(y==="success")try{F=h.httpData(O,q.dataType,q)}catch(M){y="parsererror";I=M}if(y==="success"||y==="notmodified")v||j();else h.handleError(q,O,y,I);k();J==="timeout"&&O.abort();if(q.async)O=null}};try{var z=O.abort;O.abort=function(){O&&z.call(O);s("abort")}}catch(D){}q.async&&q.timeout>0&&setTimeout(function(){O&&!ea&&s("timeout")},q.timeout);try{O.send(G==="POST"||G==="PUT"||G==="DELETE"?q.data:null)}catch(E){h.handleError(q,O,null,E);k()}q.async||s();return O}},handleError:function(g,
j,k,p){if(g.error)g.error.call(g.context||g,j,k,p);if(g.global)(g.context?h(g.context):h.event).trigger("ajaxError",[j,g,p])},active:0,httpSuccess:function(g){try{return!g.status&&location.protocol==="file:"||g.status>=200&&g.status<300||g.status===304||g.status===1223||g.status===0}catch(j){}return false},httpNotModified:function(g,j){var k=g.getResponseHeader("Last-Modified"),p=g.getResponseHeader("Etag");if(k)h.lastModified[j]=k;if(p)h.etag[j]=p;return g.status===304||g.status===0},httpData:function(g,
j,k){var p=g.getResponseHeader("content-type")||"",q=j==="xml"||!j&&p.indexOf("xml")>=0;g=q?g.responseXML:g.responseText;q&&g.documentElement.nodeName==="parsererror"&&h.error("parsererror");if(k&&k.dataFilter)g=k.dataFilter(g,j);if(typeof g==="string")if(j==="json"||!j&&p.indexOf("json")>=0)g=h.parseJSON(g);else if(j==="script"||!j&&p.indexOf("javascript")>=0)h.globalEval(g);return g},param:function(g,j){function k(y,F){if(h.isArray(F))h.each(F,function(C,G){j||/\[\]$/.test(y)?p(y,G):k(y+"["+(typeof G===
"object"||h.isArray(G)?C:"")+"]",G)});else!j&&F!=null&&typeof F==="object"?h.each(F,function(C,G){k(y+"["+C+"]",G)}):p(y,F)}function p(y,F){F=h.isFunction(F)?F():F;q[q.length]=encodeURIComponent(y)+"="+encodeURIComponent(F)}var q=[];if(j===c)j=h.ajaxSettings.traditional;if(h.isArray(g)||g.jquery)h.each(g,function(){p(this.name,this.value)});else for(var v in g)k(v,g[v]);return q.join("&").replace(zb,"+")}});var Ja={},Bb=/toggle|show|hide/,Cb=/^([+-]=)?([\d+-.]+)(.*)$/,Aa,Ma=[["height","marginTop",
"marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];h.fn.extend({show:function(g,j){if(g||g===0)return this.animate(w("show",3),g,j);else{for(var k=0,p=this.length;k<p;k++){var q=h.data(this[k],"olddisplay");this[k].style.display=q||"";if(h.css(this[k],"display")==="none"){q=this[k].nodeName;var v;if(Ja[q])v=Ja[q];else{var y=h("<"+q+" />").appendTo("body");v=y.css("display");if(v==="none")v="block";y.remove();Ja[q]=v}h.data(this[k],
"olddisplay",v)}}k=0;for(p=this.length;k<p;k++)this[k].style.display=h.data(this[k],"olddisplay")||"";return this}},hide:function(g,j){if(g||g===0)return this.animate(w("hide",3),g,j);else{for(var k=0,p=this.length;k<p;k++){var q=h.data(this[k],"olddisplay");!q&&q!=="none"&&h.data(this[k],"olddisplay",h.css(this[k],"display"))}k=0;for(p=this.length;k<p;k++)this[k].style.display="none";return this}},_toggle:h.fn.toggle,toggle:function(g,j){var k=typeof g==="boolean";if(h.isFunction(g)&&h.isFunction(j))this._toggle.apply(this,
arguments);else g==null||k?this.each(function(){var p=k?g:h(this).is(":hidden");h(this)[p?"show":"hide"]()}):this.animate(w("toggle",3),g,j);return this},fadeTo:function(g,j,k){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:j},g,k)},animate:function(g,j,k,p){var q=h.speed(j,k,p);if(h.isEmptyObject(g))return this.each(q.complete);return this[q.queue===false?"each":"queue"](function(){var v=h.extend({},q),y,F=this.nodeType===1&&h(this).is(":hidden"),C=this;for(y in g){var G=
y.replace(Ga,Ha);if(y!==G){g[G]=g[y];delete g[y];y=G}if(g[y]==="hide"&&F||g[y]==="show"&&!F)return v.complete.call(this);if((y==="height"||y==="width")&&this.style){v.display=h.css(this,"display");v.overflow=this.style.overflow}if(h.isArray(g[y])){(v.specialEasing=v.specialEasing||{})[y]=g[y][1];g[y]=g[y][0]}}if(v.overflow!=null)this.style.overflow="hidden";v.curAnim=h.extend({},g);h.each(g,function(K,R){var T=new h.fx(C,v,K);if(Bb.test(R))T[R==="toggle"?F?"show":"hide":R](g);else{var aa=Cb.exec(R),
V=T.cur(true)||0;if(aa){var ea=parseFloat(aa[2]),O=aa[3]||"px";if(O!=="px"){C.style[K]=(ea||1)+O;V=(ea||1)/T.cur(true)*V;C.style[K]=V+O}if(aa[1])ea=(aa[1]==="-="?-1:1)*ea+V;T.custom(V,ea,O)}else T.custom(V,R,"")}});return true})},stop:function(g,j){var k=h.timers;g&&this.queue([]);this.each(function(){for(var p=k.length-1;p>=0;p--)if(k[p].elem===this){j&&k[p](true);k.splice(p,1)}});j||this.dequeue();return this}});h.each({slideDown:w("show",1),slideUp:w("hide",1),slideToggle:w("toggle",1),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"}},function(g,j){h.fn[g]=function(k,p){return this.animate(j,k,p)}});h.extend({speed:function(g,j,k){var p=g&&typeof g==="object"?g:{complete:k||!k&&j||h.isFunction(g)&&g,duration:g,easing:k&&j||j&&!h.isFunction(j)&&j};p.duration=h.fx.off?0:typeof p.duration==="number"?p.duration:h.fx.speeds[p.duration]||h.fx.speeds._default;p.old=p.complete;p.complete=function(){p.queue!==false&&h(this).dequeue();h.isFunction(p.old)&&p.old.call(this)};return p},easing:{linear:function(g,j,
k,p){return k+p*g},swing:function(g,j,k,p){return(-Math.cos(g*Math.PI)/2+0.5)*p+k}},timers:[],fx:function(g,j,k){this.options=j;this.elem=g;this.prop=k;if(!j.orig)j.orig={}}});h.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(h.fx.step[this.prop]||h.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(g){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==
null))return this.elem[this.prop];return(g=parseFloat(h.css(this.elem,this.prop,g)))&&g>-1E4?g:parseFloat(h.curCSS(this.elem,this.prop))||0},custom:function(g,j,k){function p(v){return q.step(v)}this.startTime=e();this.start=g;this.end=j;this.unit=k||this.unit||"px";this.now=this.start;this.pos=this.state=0;var q=this;p.elem=this.elem;if(p()&&h.timers.push(p)&&!Aa)Aa=setInterval(h.fx.tick,13)},show:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop===
"width"||this.prop==="height"?1:0,this.cur());h(this.elem).show()},hide:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(g){var j=e(),k=true;if(g||j>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var p in this.options.curAnim)if(this.options.curAnim[p]!==true)k=false;if(k){if(this.options.display!=null){this.elem.style.overflow=
this.options.overflow;g=h.data(this.elem,"olddisplay");this.elem.style.display=g?g:this.options.display;if(h.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&h(this.elem).hide();if(this.options.hide||this.options.show)for(var q in this.options.curAnim)h.style(this.elem,q,this.options.orig[q]);this.options.complete.call(this.elem)}return false}else{q=j-this.startTime;this.state=q/this.options.duration;g=this.options.easing||(h.easing.swing?"swing":"linear");this.pos=
h.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||g](this.state,q,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};h.extend(h.fx,{tick:function(){for(var g=h.timers,j=0;j<g.length;j++)g[j]()||g.splice(j--,1);g.length||h.fx.stop()},stop:function(){clearInterval(Aa);Aa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(g){h.style(g.elem,"opacity",g.now)},_default:function(g){if(g.elem.style&&g.elem.style[g.prop]!=
null)g.elem.style[g.prop]=(g.prop==="width"||g.prop==="height"?Math.max(0,g.now):g.now)+g.unit;else g.elem[g.prop]=g.now}}});if(h.expr&&h.expr.filters)h.expr.filters.animated=function(g){return h.grep(h.timers,function(j){return g===j.elem}).length};h.fn.offset="getBoundingClientRect"in A.documentElement?function(g){var j=this[0];if(g)return this.each(function(q){h.offset.setOffset(this,g,q)});if(!j||!j.ownerDocument)return null;if(j===j.ownerDocument.body)return h.offset.bodyOffset(j);var k=j.getBoundingClientRect(),
p=j.ownerDocument;j=p.body;p=p.documentElement;return{top:k.top+(self.pageYOffset||h.support.boxModel&&p.scrollTop||j.scrollTop)-(p.clientTop||j.clientTop||0),left:k.left+(self.pageXOffset||h.support.boxModel&&p.scrollLeft||j.scrollLeft)-(p.clientLeft||j.clientLeft||0)}}:function(g){var j=this[0];if(g)return this.each(function(K){h.offset.setOffset(this,g,K)});if(!j||!j.ownerDocument)return null;if(j===j.ownerDocument.body)return h.offset.bodyOffset(j);h.offset.initialize();var k=j.offsetParent,p=
j,q=j.ownerDocument,v,y=q.documentElement,F=q.body;p=(q=q.defaultView)?q.getComputedStyle(j,null):j.currentStyle;for(var C=j.offsetTop,G=j.offsetLeft;(j=j.parentNode)&&j!==F&&j!==y;){if(h.offset.supportsFixedPosition&&p.position==="fixed")break;v=q?q.getComputedStyle(j,null):j.currentStyle;C-=j.scrollTop;G-=j.scrollLeft;if(j===k){C+=j.offsetTop;G+=j.offsetLeft;if(h.offset.doesNotAddBorder&&!(h.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(j.nodeName))){C+=parseFloat(v.borderTopWidth)||
0;G+=parseFloat(v.borderLeftWidth)||0}p=k;k=j.offsetParent}if(h.offset.subtractsBorderForOverflowNotVisible&&v.overflow!=="visible"){C+=parseFloat(v.borderTopWidth)||0;G+=parseFloat(v.borderLeftWidth)||0}p=v}if(p.position==="relative"||p.position==="static"){C+=F.offsetTop;G+=F.offsetLeft}if(h.offset.supportsFixedPosition&&p.position==="fixed"){C+=Math.max(y.scrollTop,F.scrollTop);G+=Math.max(y.scrollLeft,F.scrollLeft)}return{top:C,left:G}};h.offset={initialize:function(){var g=A.body,j=A.createElement("div"),
k,p,q,v=parseFloat(h.curCSS(g,"marginTop",true))||0;h.extend(j.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});j.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>";g.insertBefore(j,g.firstChild);
k=j.firstChild;p=k.firstChild;q=k.nextSibling.firstChild.firstChild;this.doesNotAddBorder=p.offsetTop!==5;this.doesAddBorderForTableAndCells=q.offsetTop===5;p.style.position="fixed";p.style.top="20px";this.supportsFixedPosition=p.offsetTop===20||p.offsetTop===15;p.style.position=p.style.top="";k.style.overflow="hidden";k.style.position="relative";this.subtractsBorderForOverflowNotVisible=p.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=g.offsetTop!==v;g.removeChild(j);h.offset.initialize=h.noop},
bodyOffset:function(g){var j=g.offsetTop,k=g.offsetLeft;h.offset.initialize();if(h.offset.doesNotIncludeMarginInBodyOffset){j+=parseFloat(h.curCSS(g,"marginTop",true))||0;k+=parseFloat(h.curCSS(g,"marginLeft",true))||0}return{top:j,left:k}},setOffset:function(g,j,k){if(/static/.test(h.curCSS(g,"position")))g.style.position="relative";var p=h(g),q=p.offset(),v=parseInt(h.curCSS(g,"top",true),10)||0,y=parseInt(h.curCSS(g,"left",true),10)||0;if(h.isFunction(j))j=j.call(g,k,q);k={top:j.top-q.top+v,left:j.left-
q.left+y};"using"in j?j.using.call(g,k):p.css(k)}};h.fn.extend({position:function(){if(!this[0])return null;var g=this[0],j=this.offsetParent(),k=this.offset(),p=/^body|html$/i.test(j[0].nodeName)?{top:0,left:0}:j.offset();k.top-=parseFloat(h.curCSS(g,"marginTop",true))||0;k.left-=parseFloat(h.curCSS(g,"marginLeft",true))||0;p.top+=parseFloat(h.curCSS(j[0],"borderTopWidth",true))||0;p.left+=parseFloat(h.curCSS(j[0],"borderLeftWidth",true))||0;return{top:k.top-p.top,left:k.left-p.left}},offsetParent:function(){return this.map(function(){for(var g=
this.offsetParent||A.body;g&&!/^body|html$/i.test(g.nodeName)&&h.css(g,"position")==="static";)g=g.offsetParent;return g})}});h.each(["Left","Top"],function(g,j){var k="scroll"+j;h.fn[k]=function(p){var q=this[0],v;if(!q)return null;if(p!==c)return this.each(function(){if(v=x(this))v.scrollTo(!g?p:h(v).scrollLeft(),g?p:h(v).scrollTop());else this[k]=p});else return(v=x(q))?"pageXOffset"in v?v[g?"pageYOffset":"pageXOffset"]:h.support.boxModel&&v.document.documentElement[k]||v.document.body[k]:q[k]}});
h.each(["Height","Width"],function(g,j){var k=j.toLowerCase();h.fn["inner"+j]=function(){return this[0]?h.css(this[0],k,false,"padding"):null};h.fn["outer"+j]=function(p){return this[0]?h.css(this[0],k,false,p?"margin":"border"):null};h.fn[k]=function(p){var q=this[0];if(!q)return p==null?null:this;if(h.isFunction(p))return this.each(function(v){var y=h(this);y[k](p.call(this,v,y[k]()))});return"scrollTo"in q&&q.document?q.document.compatMode==="CSS1Compat"&&q.document.documentElement["client"+j]||
q.document.body["client"+j]:q.nodeType===9?Math.max(q.documentElement["client"+j],q.body["scroll"+j],q.documentElement["scroll"+j],q.body["offset"+j],q.documentElement["offset"+j]):p===c?h.css(q,k):this.css(k,typeof p==="string"?p:p+"px")}});a.jQuery=a.$=h})(window);
(function(a){a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.2",plugin:{add:function(c,f,d){c=a.ui[c].prototype;for(var b in d){c.plugins[b]=c.plugins[b]||[];c.plugins[b].push([f,d[b]])}},call:function(c,f,d){if((f=c.plugins[f])&&c.element[0].parentNode)for(var b=0;b<f.length;b++)c.options[f[b][0]]&&f[b][1].apply(c.element,d)}},contains:function(c,f){return document.compareDocumentPosition?c.compareDocumentPosition(f)&16:c!==f&&c.contains(f)},hasScroll:function(c,f){if(a(c).css("overflow")==
"hidden")return false;var d=f&&f=="left"?"scrollLeft":"scrollTop",b=false;if(c[d]>0)return true;c[d]=1;b=c[d]>0;c[d]=0;return b},isOverAxis:function(c,f,d){return c>f&&c<f+d},isOver:function(c,f,d,b,e,i){return a.ui.isOverAxis(c,d,e)&&a.ui.isOverAxis(f,b,i)},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(c,f){return typeof c==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();f&&f.call(d)},c)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},scrollParent:function(){var c;c=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"))||!c.length?a(document):c},zIndex:function(c){if(c!==undefined)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var f;c.length&&c[0]!==document;){f=c.css("position");if(f=="absolute"||f=="relative"||f=="fixed"){f=parseInt(c.css("zIndex"));if(!isNaN(f)&&f!=0)return f}c=c.parent()}}return 0}});a.extend(a.expr[":"],{data:function(c,f,d){return!!a.data(c,d[3])},focusable:function(c){var f=c.nodeName.toLowerCase(),d=a.attr(c,"tabindex");return(/input|select|textarea|button|object/.test(f)?
!c.disabled:"a"==f||"area"==f?c.href||!isNaN(d):!isNaN(d))&&!a(c)["area"==f?"parents":"closest"](":hidden").length},tabbable:function(c){var f=a.attr(c,"tabindex");return(isNaN(f)||f>=0)&&a(c).is(":focusable")}})}})(jQuery);
(function(a){var c=a.fn.remove;a.fn.remove=function(f,d){return this.each(function(){if(!d)if(!f||a.filter(f,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")});return c.call(a(this),f,d)})};a.widget=function(f,d,b){var e=f.split(".")[0],i;f=f.split(".")[1];i=e+"-"+f;if(!b){b=d;d=a.Widget}a.expr[":"][i]=function(o){return!!a.data(o,f)};a[e]=a[e]||{};a[e][f]=function(o,n){arguments.length&&this._createWidget(o,n)};d=new d;d.options=a.extend({},d.options);a[e][f].prototype=
a.extend(true,d,{namespace:e,widgetName:f,widgetEventPrefix:a[e][f].prototype.widgetEventPrefix||f,widgetBaseClass:i},b);a.widget.bridge(f,a[e][f])};a.widget.bridge=function(f,d){a.fn[f]=function(b){var e=typeof b==="string",i=Array.prototype.slice.call(arguments,1),o=this;b=!e&&i.length?a.extend.apply(null,[true,b].concat(i)):b;if(e&&b.substring(0,1)==="_")return o;e?this.each(function(){var n=a.data(this,f),m=n&&a.isFunction(n[b])?n[b].apply(n,i):n;if(m!==n&&m!==undefined){o=m;return false}}):this.each(function(){var n=
a.data(this,f);if(n){b&&n.option(b);n._init()}else a.data(this,f,new d(b,this))});return o}};a.Widget=function(f,d){arguments.length&&this._createWidget(f,d)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,d){this.element=a(d).data(this.widgetName,this);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(d)[this.widgetName],f);var b=this;this.element.bind("remove."+this.widgetName,function(){b.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,d){var b=f,e=this;if(arguments.length===0)return a.extend({},e.options);if(typeof f==="string"){if(d===undefined)return this.options[f];b={};b[f]=d}a.each(b,function(i,
o){e._setOption(i,o)});return e},_setOption:function(f,d){this.options[f]=d;if(f==="disabled")this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",d);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,d,b){var e=this.options[f];d=a.Event(d);d.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();b=b||{};if(d.originalEvent){f=
a.event.props.length;for(var i;f;){i=a.event.props[--f];d[i]=d.originalEvent[i]}}this.element.trigger(d,b);return!(a.isFunction(e)&&e.call(this.element[0],d,b)===false||d.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(f){return c._mouseDown(f)}).bind("click."+this.widgetName,function(f){if(c._preventClickEvent){c._preventClickEvent=false;f.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){c.originalEvent=c.originalEvent||{};if(!c.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(c);this._mouseDownEvent=c;var f=this,d=c.which==1,b=typeof this.options.cancel=="string"?a(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!d||b||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=this._mouseStart(c)!==false;if(!this._mouseStarted){c.preventDefault();
return true}}this._mouseMoveDelegate=function(e){return f._mouseMove(e)};this._mouseUpDelegate=function(e){return f._mouseUp(e)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(a.browser.msie&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&
this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=c.target==this._mouseDownEvent.target;this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-
c.pageX),Math.abs(this._mouseDownEvent.pageY-c.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 c=/left|center|right/,f=/top|center|bottom/,d=a.fn.position,b=a.fn.offset;a.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=a.extend({},e);var i=a(e.of),o=(e.collision||"flip").split(" "),n=e.offset?e.offset.split(" "):[0,0],m,l,r;if(e.of.nodeType===9){m=i.width();l=i.height();r={top:0,left:0}}else if(e.of.scrollTo&&e.of.document){m=i.width();l=i.height();r={top:i.scrollTop(),left:i.scrollLeft()}}else if(e.of.preventDefault){e.at="left top";m=l=
0;r={top:e.of.pageY,left:e.of.pageX}}else{m=i.outerWidth();l=i.outerHeight();r=i.offset()}a.each(["my","at"],function(){var u=(e[this]||"").split(" ");if(u.length===1)u=c.test(u[0])?u.concat(["center"]):f.test(u[0])?["center"].concat(u):["center","center"];u[0]=c.test(u[0])?u[0]:"center";u[1]=f.test(u[1])?u[1]:"center";e[this]=u});if(o.length===1)o[1]=o[0];n[0]=parseInt(n[0],10)||0;if(n.length===1)n[1]=n[0];n[1]=parseInt(n[1],10)||0;if(e.at[0]==="right")r.left+=m;else if(e.at[0]==="center")r.left+=
m/2;if(e.at[1]==="bottom")r.top+=l;else if(e.at[1]==="center")r.top+=l/2;r.left+=n[0];r.top+=n[1];return this.each(function(){var u=a(this),w=u.outerWidth(),x=u.outerHeight(),h=a.extend({},r);if(e.my[0]==="right")h.left-=w;else if(e.my[0]==="center")h.left-=w/2;if(e.my[1]==="bottom")h.top-=x;else if(e.my[1]==="center")h.top-=x/2;h.left=parseInt(h.left);h.top=parseInt(h.top);a.each(["left","top"],function(H,B){a.ui.position[o[H]]&&a.ui.position[o[H]][B](h,{targetWidth:m,targetHeight:l,elemWidth:w,
elemHeight:x,offset:n,my:e.my,at:e.at})});a.fn.bgiframe&&u.bgiframe();u.offset(a.extend(h,{using:e.using}))})};a.ui.position={fit:{left:function(e,i){var o=a(window);o=e.left+i.elemWidth-o.width()-o.scrollLeft();e.left=o>0?e.left-o:Math.max(0,e.left)},top:function(e,i){var o=a(window);o=e.top+i.elemHeight-o.height()-o.scrollTop();e.top=o>0?e.top-o:Math.max(0,e.top)}},flip:{left:function(e,i){if(i.at[0]!=="center"){var o=a(window);o=e.left+i.elemWidth-o.width()-o.scrollLeft();var n=i.my[0]==="left"?
-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,m=-2*i.offset[0];e.left+=e.left<0?n+i.targetWidth+m:o>0?n-i.targetWidth+m:0}},top:function(e,i){if(i.at[1]!=="center"){var o=a(window);o=e.top+i.elemHeight-o.height()-o.scrollTop();var n=i.my[1]==="top"?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,m=i.at[1]==="top"?i.targetHeight:-i.targetHeight,l=-2*i.offset[1];e.top+=e.top<0?n+i.targetHeight+l:o>0?n+m+l:0}}}};if(!a.offset.setOffset){a.offset.setOffset=function(e,i){if(/static/.test(a.curCSS(e,"position")))e.style.position=
"relative";var o=a(e),n=o.offset(),m=parseInt(a.curCSS(e,"top",true),10)||0,l=parseInt(a.curCSS(e,"left",true),10)||0;n={top:i.top-n.top+m,left:i.left-n.left+l};"using"in i?i.using.call(e,n):o.css(n)};a.fn.offset=function(e){var i=this[0];if(!i||!i.ownerDocument)return null;if(e)return this.each(function(){a.offset.setOffset(this,e)});return b.call(this)}}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var f=
this.options;if(this.helper||f.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var f=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,f){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!f){var d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var f=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)f=a.ui.ddmanager.drop(this,c);if(this.dropped){f=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,
f)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",c)!==false&&d._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var f=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
c.target)f=true});return f},_createHelper:function(c){var f=this.options;c=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[c])):f.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(f.appendTo=="parent"?this.element[0].parentNode:f.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment==
"parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&
c.containment.constructor!=Array){var f=a(c.containment)[0];if(f){c=a(c.containment).offset();var d=a(f).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),10)||0)-(parseInt(a(f).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==Array)this.containment=c.containment},_convertPositionTo:function(c,f){if(!f)f=this.position;var d=c=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(b[0].tagName);return{top:f.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:b.scrollTop())*d),left:f.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
e?0:b.scrollLeft())*d)}},_generatePosition:function(c){var f=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(d[0].tagName),e=c.pageX,i=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])i=this.containment[1]+
this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])i=this.containment[3]+this.offset.click.top}if(f.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/f.grid[1])*f.grid[1];i=this.containment?!(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?i:!(i-this.offset.click.top<this.containment[1])?i-f.grid[1]:i+f.grid[1]:i;e=this.originalPageX+
Math.round((e-this.originalPageX)/f.grid[0])*f.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-f.grid[0]:e+f.grid[0]:e}}return{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:d.scrollTop()),left:e-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:d.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,f,d){d=d||this._uiHash();a.ui.plugin.call(this,c,[f,d]);if(c=="drag")this.positionAbs=
this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,f,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.2"});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,f){var d=a(this).data("draggable"),b=d.options,e=a.extend({},f,{item:d.element});d.sortables=[];a(b.connectToSortable).each(function(){var i=a.data(this,"sortable");
if(i&&!i.options.disabled){d.sortables.push({instance:i,shouldRevert:i.options.revert});i._refreshItems();i._trigger("activate",c,e)}})},stop:function(c,f){var d=a(this).data("draggable"),b=a.extend({},f,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;
d.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var d=a(this).data("draggable"),b=this;a.each(d.sortables,function(){this.instance.positionAbs=d.positionAbs;this.instance.helperProportions=d.helperProportions;this.instance.offset.click=d.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=d.offset.click.top;this.instance.offset.click.left=d.offset.click.left;this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top;d._trigger("toSortable",c);d.dropped=this.instance.element;d.currentItem=d.element;this.instance.fromOutside=d}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();d._trigger("fromSortable",c);d.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),f=a(this).data("draggable").options;if(c.css("cursor"))f._cursor=c.css("cursor");c.css("cursor",f.cursor)},stop:function(){var c=a(this).data("draggable").options;c._cursor&&a("body").css("cursor",c._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var c=
a(this).data("draggable").options;a(c.iframeFix===true?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,f){var d=a(f.helper),
b=a(this).data("draggable").options;if(d.css("opacity"))b._opacity=d.css("opacity");d.css("opacity",b.opacity)},stop:function(c,f){var d=a(this).data("draggable").options;d._opacity&&a(f.helper).css("opacity",d._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var f=a(this).data("draggable"),d=f.options,b=false;if(f.scrollParent[0]!=
document&&f.scrollParent[0].tagName!="HTML"){if(!d.axis||d.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-c.pageY<d.scrollSensitivity)f.scrollParent[0].scrollTop=b=f.scrollParent[0].scrollTop+d.scrollSpeed;else if(c.pageY-f.overflowOffset.top<d.scrollSensitivity)f.scrollParent[0].scrollTop=b=f.scrollParent[0].scrollTop-d.scrollSpeed;if(!d.axis||d.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-c.pageX<d.scrollSensitivity)f.scrollParent[0].scrollLeft=b=f.scrollParent[0].scrollLeft+
d.scrollSpeed;else if(c.pageX-f.overflowOffset.left<d.scrollSensitivity)f.scrollParent[0].scrollLeft=b=f.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(!d.axis||d.axis!="x")if(c.pageY-a(document).scrollTop()<d.scrollSensitivity)b=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<d.scrollSensitivity)b=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed);if(!d.axis||d.axis!="y")if(c.pageX-a(document).scrollLeft()<d.scrollSensitivity)b=
a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<d.scrollSensitivity)b=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}b!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(f,c)}});a.ui.plugin.add("draggable","snap",{start:function(){var c=a(this).data("draggable"),f=c.options;c.snapElements=[];a(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var d=a(this),
b=d.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:d.outerWidth(),height:d.outerHeight(),top:b.top,left:b.left})})},drag:function(c,f){for(var d=a(this).data("draggable"),b=d.options,e=b.snapTolerance,i=f.offset.left,o=i+d.helperProportions.width,n=f.offset.top,m=n+d.helperProportions.height,l=d.snapElements.length-1;l>=0;l--){var r=d.snapElements[l].left,u=r+d.snapElements[l].width,w=d.snapElements[l].top,x=w+d.snapElements[l].height;if(r-e<i&&i<u+e&&w-e<n&&n<x+e||r-e<i&&i<u+e&&
w-e<m&&m<x+e||r-e<o&&o<u+e&&w-e<n&&n<x+e||r-e<o&&o<u+e&&w-e<m&&m<x+e){if(b.snapMode!="inner"){var h=Math.abs(w-m)<=e,H=Math.abs(x-n)<=e,B=Math.abs(r-o)<=e,A=Math.abs(u-i)<=e;if(h)f.position.top=d._convertPositionTo("relative",{top:w-d.helperProportions.height,left:0}).top-d.margins.top;if(H)f.position.top=d._convertPositionTo("relative",{top:x,left:0}).top-d.margins.top;if(B)f.position.left=d._convertPositionTo("relative",{top:0,left:r-d.helperProportions.width}).left-d.margins.left;if(A)f.position.left=
d._convertPositionTo("relative",{top:0,left:u}).left-d.margins.left}var N=h||H||B||A;if(b.snapMode!="outer"){h=Math.abs(w-n)<=e;H=Math.abs(x-m)<=e;B=Math.abs(r-i)<=e;A=Math.abs(u-o)<=e;if(h)f.position.top=d._convertPositionTo("relative",{top:w,left:0}).top-d.margins.top;if(H)f.position.top=d._convertPositionTo("relative",{top:x-d.helperProportions.height,left:0}).top-d.margins.top;if(B)f.position.left=d._convertPositionTo("relative",{top:0,left:r}).left-d.margins.left;if(A)f.position.left=d._convertPositionTo("relative",
{top:0,left:u-d.helperProportions.width}).left-d.margins.left}if(!d.snapElements[l].snapping&&(h||H||B||A||N))d.options.snap.snap&&d.options.snap.snap.call(d.element,c,a.extend(d._uiHash(),{snapItem:d.snapElements[l].item}));d.snapElements[l].snapping=h||H||B||A||N}else{d.snapElements[l].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,c,a.extend(d._uiHash(),{snapItem:d.snapElements[l].item}));d.snapElements[l].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=
a(this).data("draggable").options;c=a.makeArray(a(c.stack)).sort(function(d,b){return(parseInt(a(d).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(c.length){var f=parseInt(c[0].style.zIndex)||0;a(c).each(function(d){this.style.zIndex=f+d});this[0].style.zIndex=f+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,f){var d=a(f.helper),b=a(this).data("draggable").options;if(d.css("zIndex"))b._zIndex=d.css("zIndex");d.css("zIndex",b.zIndex)},stop:function(c,f){var d=
a(this).data("draggable").options;d._zIndex&&a(f.helper).css("zIndex",d._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,f=c.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(f)?f:function(d){return d.is(f)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[];a.ui.ddmanager.droppables[c.scope].push(this);
c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],f=0;f<c.length;f++)c[f]==this&&c.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,f){if(c=="accept")this.accept=a.isFunction(f)?f:function(d){return d.is(f)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var f=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);f&&this._trigger("activate",c,this.ui(f))},_deactivate:function(c){var f=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",c,this.ui(f))},_over:function(c){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",c,this.ui(f))}},_out:function(c){var f=a.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(f))}},_drop:function(c,f){var d=f||a.ui.ddmanager.current;if(!d||(d.currentItem||d.element)[0]==this.element[0])return false;var b=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=
a.data(this,"droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope==d.options.scope&&e.accept.call(e.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(e,{offset:e.element.offset()}),e.options.tolerance)){b=true;return false}});if(b)return false;if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
c,this.ui(d));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.2"});a.ui.intersect=function(c,f,d){if(!f.offset)return false;var b=(c.positionAbs||c.position.absolute).left,e=b+c.helperProportions.width,i=(c.positionAbs||c.position.absolute).top,o=i+c.helperProportions.height,n=f.offset.left,m=n+f.proportions.width,l=f.offset.top,r=l+f.proportions.height;switch(d){case "fit":return n<
b&&e<m&&l<i&&o<r;case "intersect":return n<b+c.helperProportions.width/2&&e-c.helperProportions.width/2<m&&l<i+c.helperProportions.height/2&&o-c.helperProportions.height/2<r;case "pointer":return a.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,l,n,f.proportions.height,f.proportions.width);case "touch":return(i>=l&&i<=r||o>=l&&o<=r||i<l&&o>r)&&(b>=n&&b<=m||e>=n&&e<=m||b<n&&e>m);default:return false}};
a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,f){var d=a.ui.ddmanager.droppables[c.options.scope]||[],b=f?f.type:null,e=(c.currentItem||c.element).find(":data(droppable)").andSelf(),i=0;a:for(;i<d.length;i++)if(!(d[i].options.disabled||c&&!d[i].accept.call(d[i].element[0],c.currentItem||c.element))){for(var o=0;o<e.length;o++)if(e[o]==d[i].element[0]){d[i].proportions.height=0;continue a}d[i].visible=d[i].element.css("display")!="none";if(d[i].visible){d[i].offset=
d[i].element.offset();d[i].proportions={width:d[i].element[0].offsetWidth,height:d[i].element[0].offsetHeight};b=="mousedown"&&d[i]._activate.call(d[i],f)}}},drop:function(c,f){var d=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance))d=d||this._drop.call(this,f);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,f)}}});return d},drag:function(c,f){c.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(c,f);a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var d=a.ui.intersect(c,this,this.options.tolerance);if(d=!d&&this.isover==1?"isout":d&&this.isover==0?"isover":null){var b;if(this.options.greedy){var e=this.element.parents(":data(droppable):eq(0)");if(e.length){b=a.data(e[0],"droppable");
b.greedyChild=d=="isover"?1:0}}if(b&&d=="isover"){b.isover=0;b.isout=1;b._out.call(b,f)}this[d]=1;this[d=="isout"?"isover":"isout"]=0;this[d=="isover"?"_over":"_out"].call(this,f);if(b&&d=="isout"){b.isout=0;b.isover=1;b._over.call(b,f)}}}})}}})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var d=this,b=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=b.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var e=this.handles.split(",");this.handles={};for(var i=0;i<e.length;i++){var o=a.trim(e[i]),n=a('<div class="ui-resizable-handle '+("ui-resizable-"+o)+'"></div>');/sw|se|ne|nw/.test(o)&&n.css({zIndex:++b.zIndex});"se"==o&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[o]=".ui-resizable-"+o;this.element.append(n)}}this._renderAxis=function(m){m=m||this.element;for(var l in this.handles){if(this.handles[l].constructor==
String)this.handles[l]=a(this.handles[l],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var r=a(this.handles[l],this.element),u=0;u=/sw|ne|nw|se|n|s/.test(l)?r.outerHeight():r.outerWidth();r=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");m.css(r,u);this._proportionallyResize()}a(this.handles[l])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!d.resizing){if(this.className)var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);d.axis=m&&m[1]?m[1]:"se"}});if(b.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");d._handles.show()},function(){if(!d.resizing){a(this).addClass("ui-resizable-autohide");d._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(e){a(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){d(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);return this},_mouseCapture:function(d){var b=false;for(var e in this.handles)if(a(this.handles[e])[0]==d.target)b=true;return!this.options.disabled&&b},_mouseStart:function(d){var b=this.options,e=this.element.position(),
i=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(i.is(".ui-draggable")||/absolute/.test(i.css("position")))i.css({position:"absolute",top:e.top,left:e.left});a.browser.opera&&/relative/.test(i.css("position"))&&i.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();e=c(this.helper.css("left"));var o=c(this.helper.css("top"));if(b.containment){e+=a(b.containment).scrollLeft()||0;o+=a(b.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:e,top:o};this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()};this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()};this.originalPosition={left:e,top:o};this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()};this.originalMousePosition={left:d.pageX,top:d.pageY};this.aspectRatio=typeof b.aspectRatio=="number"?b.aspectRatio:
this.originalSize.width/this.originalSize.height||1;b=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",b=="auto"?this.axis+"-resize":b);i.addClass("ui-resizable-resizing");this._propagate("start",d);return true},_mouseDrag:function(d){var b=this.helper,e=this.originalMousePosition,i=this._change[this.axis];if(!i)return false;e=i.apply(this,[d,d.pageX-e.left||0,d.pageY-e.top||0]);if(this._aspectRatio||d.shiftKey)e=this._updateRatio(e,d);e=this._respectSize(e,d);this._propagate("resize",
d);b.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(e);this._trigger("resize",d,this.ui());return false},_mouseStop:function(d){this.resizing=false;var b=this.options;if(this._helper){var e=this._proportionallyResizeElements,i=e.length&&/textarea/i.test(e[0].nodeName);e=i&&a.ui.hasScroll(e[0],"left")?0:this.sizeDiff.height;
i={width:this.size.width-(i?0:this.sizeDiff.width),height:this.size.height-e};e=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var o=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;b.animate||this.element.css(a.extend(i,{top:o,left:e}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!b.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",d);this._helper&&this.helper.remove();return false},_updateCache:function(d){this.offset=this.helper.offset();if(f(d.left))this.position.left=d.left;if(f(d.top))this.position.top=d.top;if(f(d.height))this.size.height=d.height;if(f(d.width))this.size.width=d.width},_updateRatio:function(d){var b=this.position,e=this.size,i=this.axis;if(d.height)d.width=e.height*this.aspectRatio;else if(d.width)d.height=e.width/this.aspectRatio;if(i=="sw"){d.left=b.left+(e.width-d.width);d.top=
null}if(i=="nw"){d.top=b.top+(e.height-d.height);d.left=b.left+(e.width-d.width)}return d},_respectSize:function(d){var b=this.options,e=this.axis,i=f(d.width)&&b.maxWidth&&b.maxWidth<d.width,o=f(d.height)&&b.maxHeight&&b.maxHeight<d.height,n=f(d.width)&&b.minWidth&&b.minWidth>d.width,m=f(d.height)&&b.minHeight&&b.minHeight>d.height;if(n)d.width=b.minWidth;if(m)d.height=b.minHeight;if(i)d.width=b.maxWidth;if(o)d.height=b.maxHeight;var l=this.originalPosition.left+this.originalSize.width,r=this.position.top+
this.size.height,u=/sw|nw|w/.test(e);e=/nw|ne|n/.test(e);if(n&&u)d.left=l-b.minWidth;if(i&&u)d.left=l-b.maxWidth;if(m&&e)d.top=r-b.minHeight;if(o&&e)d.top=r-b.maxHeight;if((b=!d.width&&!d.height)&&!d.left&&d.top)d.top=null;else if(b&&!d.top&&d.left)d.left=null;return d},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var d=this.helper||this.element,b=0;b<this._proportionallyResizeElements.length;b++){var e=this._proportionallyResizeElements[b];if(!this.borderDif){var i=
[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];this.borderDif=a.map(i,function(n,m){var l=parseInt(n,10)||0,r=parseInt(o[m],10)||0;return l+r})}a.browser.msie&&(a(d).is(":hidden")||a(d).parents(":hidden").length)||e.css({height:d.height()-this.borderDif[0]-this.borderDif[2]||0,width:d.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var d=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var b=a.browser.msie&&a.browser.version<7,e=b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(d,
b){return{width:this.originalSize.width+b}},w:function(d,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(d,b,e){return{top:this.originalPosition.top+e,height:this.originalSize.height-e}},s:function(d,b,e){return{height:this.originalSize.height+e}},se:function(d,b,e){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,b,e]))},sw:function(d,b,e){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,b,
e]))},ne:function(d,b,e){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,b,e]))},nw:function(d,b,e){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,b,e]))}},_propagate:function(d,b){a.ui.plugin.call(this,d,[b,this.ui()]);d!="resize"&&this._trigger(d,b,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.2"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var d=a(this).data("resizable").options,b=function(e){a(e).each(function(){a(this).data("resizable-alsoresize",{width:parseInt(a(this).width(),10),height:parseInt(a(this).height(),10),left:parseInt(a(this).css("left"),10),top:parseInt(a(this).css("top"),10)})})};if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode)if(d.alsoResize.length){d.alsoResize=
d.alsoResize[0];b(d.alsoResize)}else a.each(d.alsoResize,function(e){b(e)});else b(d.alsoResize)},resize:function(){var d=a(this).data("resizable"),b=d.options,e=d.originalSize,i=d.originalPosition,o={height:d.size.height-e.height||0,width:d.size.width-e.width||0,top:d.position.top-i.top||0,left:d.position.left-i.left||0},n=function(m,l){a(m).each(function(){var r=a(this),u=a(this).data("resizable-alsoresize"),w={};a.each((l&&l.length?l:["width","height","top","left"])||["width","height","top","left"],
function(x,h){var H=(u[h]||0)+(o[h]||0);if(H&&H>=0)w[h]=H||null});if(/relative/.test(r.css("position"))&&a.browser.opera){d._revertToRelativePosition=true;r.css({position:"absolute",top:"auto",left:"auto"})}r.css(w)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?a.each(b.alsoResize,function(m,l){n(m,l)}):n(b.alsoResize)},stop:function(){var d=a(this).data("resizable");if(d._revertToRelativePosition&&a.browser.opera){d._revertToRelativePosition=false;el.css({position:"relative"})}a(this).removeData("resizable-alsoresize-start")}});
a.ui.plugin.add("resizable","animate",{stop:function(d){var b=a(this).data("resizable"),e=b.options,i=b._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),n=o&&a.ui.hasScroll(i[0],"left")?0:b.sizeDiff.height;o={width:b.size.width-(o?0:b.sizeDiff.width),height:b.size.height-n};n=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var m=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(o,m&&
n?{top:m,left:n}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var l={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};i&&i.length&&a(i[0]).css({width:l.width,height:l.height});b._updateCache(l);b._propagate("resize",d)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var d=a(this).data("resizable"),b=d.element,e=d.options.containment;if(b=e instanceof
a?e.get(0):/parent/.test(e)?b.parent().get(0):e){d.containerElement=a(b);if(/document/.test(e)||e==document){d.containerOffset={left:0,top:0};d.containerPosition={left:0,top:0};d.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var i=a(b),o=[];a(["Top","Right","Left","Bottom"]).each(function(l,r){o[l]=c(i.css("padding"+r))});d.containerOffset=i.offset();d.containerPosition=i.position();d.containerSize={height:i.innerHeight()-
o[3],width:i.innerWidth()-o[1]};e=d.containerOffset;var n=d.containerSize.height,m=d.containerSize.width;m=a.ui.hasScroll(b,"left")?b.scrollWidth:m;n=a.ui.hasScroll(b)?b.scrollHeight:n;d.parentData={element:b,left:e.left,top:e.top,width:m,height:n}}}},resize:function(d){var b=a(this).data("resizable"),e=b.options,i=b.containerOffset,o=b.position;d=b._aspectRatio||d.shiftKey;var n={top:0,left:0},m=b.containerElement;if(m[0]!=document&&/static/.test(m.css("position")))n=i;if(o.left<(b._helper?i.left:
0)){b.size.width+=b._helper?b.position.left-i.left:b.position.left-n.left;if(d)b.size.height=b.size.width/e.aspectRatio;b.position.left=e.helper?i.left:0}if(o.top<(b._helper?i.top:0)){b.size.height+=b._helper?b.position.top-i.top:b.position.top;if(d)b.size.width=b.size.height*e.aspectRatio;b.position.top=b._helper?i.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;e=Math.abs((b._helper?b.offset.left-n.left:b.offset.left-n.left)+b.sizeDiff.width);i=
Math.abs((b._helper?b.offset.top-n.top:b.offset.top-i.top)+b.sizeDiff.height);o=b.containerElement.get(0)==b.element.parent().get(0);n=/relative|absolute/.test(b.containerElement.css("position"));if(o&&n)e-=b.parentData.left;if(e+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-e;if(d)b.size.height=b.size.width/b.aspectRatio}if(i+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-i;if(d)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var d=a(this).data("resizable"),
b=d.options,e=d.containerOffset,i=d.containerPosition,o=d.containerElement,n=a(d.helper),m=n.offset(),l=n.outerWidth()-d.sizeDiff.width;n=n.outerHeight()-d.sizeDiff.height;d._helper&&!b.animate&&/relative/.test(o.css("position"))&&a(this).css({left:m.left-i.left-e.left,width:l,height:n});d._helper&&!b.animate&&/static/.test(o.css("position"))&&a(this).css({left:m.left-i.left-e.left,width:l,height:n})}});a.ui.plugin.add("resizable","ghost",{start:function(){var d=a(this).data("resizable"),b=d.options,
e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof b.ghost=="string"?b.ghost:"");d.ghost.appendTo(d.helper)},resize:function(){var d=a(this).data("resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=a(this).data("resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}});
a.ui.plugin.add("resizable","grid",{resize:function(){var d=a(this).data("resizable"),b=d.options,e=d.size,i=d.originalSize,o=d.originalPosition,n=d.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var m=Math.round((e.width-i.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((e.height-i.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(n)){d.size.width=i.width+m;d.size.height=i.height+b}else if(/^(ne)$/.test(n)){d.size.width=i.width+m;d.size.height=i.height+b;d.position.top=o.top-
b}else{if(/^(sw)$/.test(n)){d.size.width=i.width+m;d.size.height=i.height+b}else{d.size.width=i.width+m;d.size.height=i.height+b;d.position.top=o.top-b}d.position.left=o.left-m}}});var c=function(d){return parseInt(d,10)||0},f=function(d){return!isNaN(parseInt(d,10))}})(jQuery);
(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=a(c.options.filter,c.element[0]);f.each(function(){var d=a(this),b=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),
selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=a(d.filter,this.element[0]);this._trigger("start",c);a(d.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=a.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");
b.unselecting=true;f._trigger("unselecting",c,{unselecting:b.element})}});a(c.target).parents().andSelf().each(function(){var b=a.data(this,"selectable-item");if(b){var e=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting");b.unselecting=!e;b.selecting=e;(b.selected=e)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=
this;this.dragged=true;if(!this.options.disabled){var d=this.options,b=this.opos[0],e=this.opos[1],i=c.pageX,o=c.pageY;if(b>i){var n=i;i=b;b=n}if(e>o){n=o;o=e;e=n}this.helper.css({left:b,top:e,width:i-b,height:o-e});this.selectees.each(function(){var m=a.data(this,"selectable-item");if(!(!m||m.element==f.element[0])){var l=false;if(d.tolerance=="touch")l=!(m.left>i||m.right<b||m.top>o||m.bottom<e);else if(d.tolerance=="fit")l=m.left>b&&m.right<i&&m.top>e&&m.bottom<o;if(l){if(m.selected){m.$element.removeClass("ui-selected");
m.selected=false}if(m.unselecting){m.$element.removeClass("ui-unselecting");m.unselecting=false}if(!m.selecting){m.$element.addClass("ui-selecting");m.selecting=true;f._trigger("selecting",c,{selecting:m.element})}}else{if(m.selecting)if(c.metaKey&&m.startselected){m.$element.removeClass("ui-selecting");m.selecting=false;m.$element.addClass("ui-selected");m.selected=true}else{m.$element.removeClass("ui-selecting");m.selecting=false;if(m.startselected){m.$element.addClass("ui-unselecting");m.unselecting=
true}f._trigger("unselecting",c,{unselecting:m.element})}if(m.selected)if(!c.metaKey&&!m.startselected){m.$element.removeClass("ui-selected");m.selected=false;m.$element.addClass("ui-unselecting");m.unselecting=true;f._trigger("unselecting",c,{unselecting:m.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=
false;f._trigger("unselected",c,{unselected:d.element})});a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.2"})})(jQuery);
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--)this.items[c].item.removeData("sortable-item");return this},_setOption:function(c,f){if(c==="disabled"){this.options[c]=f;this.widget()[f?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(c,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var d=null,b=this;a(c.target).parents().each(function(){if(a.data(this,"sortable-item")==b){d=a(this);return false}});if(a.data(c.target,"sortable-item")==b)d=a(c.target);if(!d)return false;if(this.options.handle&&!f){var e=false;a(this.options.handle,d).find("*").andSelf().each(function(){if(this==c.target)e=true});if(!e)return false}this.currentItem=
d;this._removeCurrentsFromItems();return true},_mouseStart:function(c,f,d){f=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,
{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
if(f.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",c,this._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(c.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-c.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(c.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<f.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<f.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+
f.scrollSpeed);if(c.pageX-a(document).scrollLeft()<f.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<f.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}d!==false&&a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(f=this.items.length-1;f>=0;f--){d=this.items[f];var b=d.item[0],e=this._intersectsWithPointer(d);if(e)if(b!=this.currentItem[0]&&this.placeholder[e==1?"next":"prev"]()[0]!=b&&!a.ui.contains(this.placeholder[0],b)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],b):true)){this.direction=e==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(d))this._rearrange(c,
d);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,f){if(c){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var d=this,b=d.placeholder.offset();d.reverting=true;a(this.helper).animate({left:b.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(c)})}else this._clear(c,f);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,this._uiHash(this));this.containers[c].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):
a(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(c){var f=this._getItemsAsjQuery(c&&c.connected),d=[];c=c||{};a(f).each(function(){var b=(a(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[-=_](.+)/);if(b)d.push((c.key||b[1]+"[]")+"="+(c.key&&c.expression?b[1]:b[2]))});return d.join("&")},toArray:function(c){var f=this._getItemsAsjQuery(c&&c.connected),d=[];c=c||{};f.each(function(){d.push(a(c.item||this).attr(c.attribute||"id")||"")});return d},
_intersectsWith:function(c){var f=this.positionAbs.left,d=f+this.helperProportions.width,b=this.positionAbs.top,e=b+this.helperProportions.height,i=c.left,o=i+c.width,n=c.top,m=n+c.height,l=this.offset.click.top,r=this.offset.click.left;l=b+l>n&&b+l<m&&f+r>i&&f+r<o;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?l:i<f+this.helperProportions.width/
2&&d-this.helperProportions.width/2<o&&n<b+this.helperProportions.height/2&&e-this.helperProportions.height/2<m},_intersectsWithPointer:function(c){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);f=f&&c;c=this._getDragVerticalDirection();var d=this._getDragHorizontalDirection();if(!f)return false;return this.floating?d&&d=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(c){var f=
a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height);c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width);var d=this._getDragVerticalDirection(),b=this._getDragHorizontalDirection();return this.floating&&b?b=="right"&&c||b=="left"&&!c:d&&(d=="down"&&f||d=="up"&&!f)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=
this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var f=[],d=[],b=this._connectWith();if(b&&c)for(c=b.length-1;c>=0;c--)for(var e=a(b[c]),i=e.length-1;i>=0;i--){var o=a.data(e[i],"sortable");if(o&&o!=this&&!o.options.disabled)d.push([a.isFunction(o.options.items)?
o.options.items.call(o.element):a(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(c=d.length-1;c>=0;c--)d[c][0].each(function(){f.push(this)});return a(f)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),
f=0;f<this.items.length;f++)for(var d=0;d<c.length;d++)c[d]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(c){this.items=[];this.containers=[this];var f=this.items,d=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):a(this.options.items,this.element),this]],b=this._connectWith();if(b)for(var e=b.length-1;e>=0;e--)for(var i=a(b[e]),o=i.length-1;o>=0;o--){var n=a.data(i[o],"sortable");if(n&&n!=this&&!n.options.disabled){d.push([a.isFunction(n.options.items)?
n.options.items.call(n.element[0],c,{item:this.currentItem}):a(n.options.items,n.element),n]);this.containers.push(n)}}for(e=d.length-1;e>=0;e--){c=d[e][1];b=d[e][0];o=0;for(i=b.length;o<i;o++){n=a(b[o]);n.data("sortable-item",c);f.push({item:n,instance:c,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=0;f--){var d=this.items[f],b=this.options.toleranceElement?a(this.options.toleranceElement,
d.item):d.item;if(!c){d.width=b.outerWidth();d.height=b.outerHeight()}b=b.offset();d.left=b.left;d.top=b.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){b=this.containers[f].element.offset();this.containers[f].containerCache.left=b.left;this.containers[f].containerCache.top=b.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();this.containers[f].containerCache.height=
this.containers[f].element.outerHeight()}return this},_createPlaceholder:function(c){var f=c||this,d=f.options;if(!d.placeholder||d.placeholder.constructor==String){var b=d.placeholder;d.placeholder={element:function(){var e=a(document.createElement(f.currentItem[0].nodeName)).addClass(b||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!b)e.style.visibility="hidden";return e},update:function(e,i){if(!(b&&!d.forcePlaceholderSize)){i.height()||i.height(f.currentItem.innerHeight()-
parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));i.width()||i.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(d.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);d.placeholder.update(f,f.placeholder)},_contactContainers:function(c){for(var f=null,d=null,b=this.containers.length-1;b>=0;b--)if(!a.ui.contains(this.currentItem[0],
this.containers[b].element[0]))if(this._intersectsWith(this.containers[b].containerCache)){if(!(f&&a.ui.contains(this.containers[b].element[0],f.element[0]))){f=this.containers[b];d=b}}else if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",c,this._uiHash(this));this.containers[b].containerCache.over=0}if(f)if(this.containers.length===1){this.containers[d]._trigger("over",c,this._uiHash(this));this.containers[d].containerCache.over=1}else if(this.currentContainer!=this.containers[d]){f=
1E4;b=null;for(var e=this.positionAbs[this.containers[d].floating?"left":"top"],i=this.items.length-1;i>=0;i--)if(a.ui.contains(this.containers[d].element[0],this.items[i].item[0])){var o=this.items[i][this.containers[d].floating?"left":"top"];if(Math.abs(o-e)<f){f=Math.abs(o-e);b=this.items[i]}}if(b||this.options.dropOnEmpty){this.currentContainer=this.containers[d];b?this._rearrange(c,b,null,true):this._rearrange(c,null,this.containers[d].element,true);this._trigger("change",c,this._uiHash());this.containers[d]._trigger("change",
c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[d]._trigger("over",c,this._uiHash(this));this.containers[d].containerCache.over=1}}},_createHelper:function(c){var f=this.options;c=a.isFunction(f.helper)?a(f.helper.apply(this.element[0],[c,this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||a(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[0]==
this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(c[0].style.width==""||f.forceHelperSize)c.width(this.currentItem.width());if(c[0].style.height==""||f.forceHelperSize)c.height(this.currentItem.height());return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;
if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var f=
a(c.containment)[0];c=a(c.containment).offset();var d=a(f).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(f).css("borderLeftWidth"),10)||0)+(parseInt(a(f).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(f).css("borderTopWidth"),10)||0)+(parseInt(a(f).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(a(f).css("borderLeftWidth"),10)||0)-(parseInt(a(f).css("paddingRight"),10)||0)-this.helperProportions.width-
this.margins.left,c.top+(d?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(a(f).css("borderTopWidth"),10)||0)-(parseInt(a(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,f){if(!f)f=this.position;var d=c=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(b[0].tagName);return{top:f.top+
this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:b.scrollTop())*d),left:f.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:b.scrollLeft())*d)}},_generatePosition:function(c){var f=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(d[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var e=c.pageX,i=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])i=this.containment[1]+this.offset.click.top;
if(c.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])i=this.containment[3]+this.offset.click.top}if(f.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/f.grid[1])*f.grid[1];i=this.containment?!(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?i:!(i-this.offset.click.top<this.containment[1])?i-f.grid[1]:i+f.grid[1]:i;e=this.originalPageX+Math.round((e-
this.originalPageX)/f.grid[0])*f.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-f.grid[0]:e+f.grid[0]:e}}return{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:d.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+
(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:d.scrollLeft())}},_rearrange:function(c,f,d,b){d?d[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var e=this,i=this.counter;window.setTimeout(function(){i==e.counter&&e.refreshPositions(!b)},0)},_clear:function(c,f){this.reverting=false;var d=[];!this._noFinalSort&&
this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!f&&d.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||
this.domPosition.parent!=this.currentItem.parent()[0])&&!f)d.push(function(e){this._trigger("update",e,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){f||d.push(function(e){this._trigger("remove",e,this._uiHash())});for(b=this.containers.length-1;b>=0;b--)if(a.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!f){d.push(function(e){return function(i){e._trigger("receive",i,this._uiHash(this))}}.call(this,this.containers[b]));d.push(function(e){return function(i){e._trigger("update",
i,this._uiHash(this))}}.call(this,this.containers[b]))}}for(b=this.containers.length-1;b>=0;b--){f||d.push(function(e){return function(i){e._trigger("deactivate",i,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){d.push(function(e){return function(i){e._trigger("out",i,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",
this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",c,this._uiHash());for(b=0;b<d.length;b++)d[b].call(this,c);this._trigger("stop",c,this._uiHash())}return false}f||this._trigger("beforeStop",c,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(b=
0;b<d.length;b++)d[b].call(this,c);this._trigger("stop",c,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var f=c||this;return{helper:f.helper,placeholder:f.placeholder||a([]),position:f.position,originalPosition:f.originalPosition,offset:f.positionAbs,item:f.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.2"})})(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 c=this.options,f=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");
this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(c.navigation){var d=this.element.find("a").filter(c.navigationFilter);if(d.length){var b=d.closest(".ui-accordion-header");this.active=b.length?b:d.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||c.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");this._createIcons();this.resize();this.element.attr("role","tablist");this.headers.attr("role",
"tab").bind("keydown",function(e){return f._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");a.browser.safari||this.headers.find("a").attr("tabIndex","-1");c.event&&this.headers.bind(c.event+".accordion",function(e){f._clickHandler.call(f,e,this);e.preventDefault()})},_createIcons:function(){var c=
this.options;if(c.icons){a("<span/>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");
this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var f=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight)f.css("height",
"");return this},_setOption:function(c,f){a.Widget.prototype._setOption.apply(this,arguments);c=="active"&&this.activate(f);if(c=="icons"){this._destroyIcons();f&&this._createIcons()}},_keydown:function(c){var f=a.ui.keyCode;if(!(this.options.disabled||c.altKey||c.ctrlKey)){var d=this.headers.length,b=this.headers.index(c.target),e=false;switch(c.keyCode){case f.RIGHT:case f.DOWN:e=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:e=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:this._clickHandler({target:c.target},
c.target);c.preventDefault()}if(e){a(c.target).attr("tabIndex","-1");a(e).attr("tabIndex","0");e.focus();return false}return true}},resize:function(){var c=this.options,f;if(c.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){f-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,
f-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else if(c.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,a(this).height())}).height(f)}return this},activate:function(c){this.options.active=c;c=this._findActive(c)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c=="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,f){var d=
this.options;if(!d.disabled)if(c.target){var b=a(c.currentTarget||f),e=b[0]==this.active[0];d.active=d.collapsible&&e?false:a(".ui-accordion-header",this.element).index(b);if(!(this.running||!d.collapsible&&e)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!e){b.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
b.next().addClass("ui-accordion-content-active")}n=b.next();i=this.active.next();o={options:d,newHeader:e&&d.collapsible?a([]):b,oldHeader:this.active,newContent:e&&d.collapsible?a([]):n,oldContent:i};d=this.headers.index(this.active[0])>this.headers.index(b[0]);this.active=e?a([]):b;this._toggle(n,i,o,e,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
this.active.next().addClass("ui-accordion-content-active");var i=this.active.next(),o={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:i},n=this.active=a([]);this._toggle(n,i,o)}},_toggle:function(c,f,d,b,e){var i=this.options,o=this;this.toShow=c;this.toHide=f;this.data=d;var n=function(){if(o)return o._completed.apply(o,arguments)};this._trigger("changestart",null,this.data);this.running=f.size()===0?c.size():f.size();if(i.animated){d={};d=i.collapsible&&b?{toShow:a([]),
toHide:f,complete:n,down:e,autoHeight:i.autoHeight||i.fillSpace}:{toShow:c,toHide:f,complete:n,down:e,autoHeight:i.autoHeight||i.fillSpace};if(!i.proxied)i.proxied=i.animated;if(!i.proxiedDuration)i.proxiedDuration=i.duration;i.animated=a.isFunction(i.proxied)?i.proxied(d):i.proxied;i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(d):i.proxiedDuration;b=a.ui.accordion.animations;var m=i.duration,l=i.animated;if(l&&!b[l]&&!a.easing[l])l="slide";b[l]||(b[l]=function(r){this.slide(r,{easing:l,
duration:m||700})});b[l](d)}else{if(i.collapsible&&b)c.toggle();else{f.hide();c.show()}n(true)}f.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();c.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(c){var f=this.options;this.running=c?0:--this.running;if(!this.running){f.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.2",animations:{slide:function(c,f){c=a.extend({easing:"swing",duration:300},c,f);if(c.toHide.size())if(c.toShow.size()){var d=c.toShow.css("overflow"),b=0,e={},i={},o,n=c.toShow;o=n[0].style.width;n.width(parseInt(n.parent().width(),10)-parseInt(n.css("paddingLeft"),10)-parseInt(n.css("paddingRight"),10)-(parseInt(n.css("borderLeftWidth"),10)||0)-(parseInt(n.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(m,l){i[l]="hide";var r=(""+a.css(c.toShow[0],
l)).match(/^([\d+-.]+)(.*)$/);e[l]={value:r[1],unit:r[2]||"px"}});c.toShow.css({height:0,overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate(i,{step:function(m,l){if(l.prop=="height")b=l.end-l.start===0?0:(l.now-l.start)/(l.end-l.start);c.toShow[0].style[l.prop]=b*e[l.prop].value+e[l.prop].unit},duration:c.duration,easing:c.easing,complete:function(){c.autoHeight||c.toShow.css("height","");c.toShow.css("width",o);c.toShow.css({overflow:d});c.complete()}})}else c.toHide.animate({height:"hide"},
c);else c.toShow.animate({height:"show"},c)},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1E3:200})}}})})(jQuery);
(function(a){a.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var c=this,f=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(d){var b=a.ui.keyCode;switch(d.keyCode){case b.PAGE_UP:c._move("previousPage",d);break;case b.PAGE_DOWN:c._move("nextPage",d);break;case b.UP:c._move("previous",d);d.preventDefault();
break;case b.DOWN:c._move("next",d);d.preventDefault();break;case b.ENTER:case b.NUMPAD_ENTER:c.menu.active&&d.preventDefault();case b.TAB:if(!c.menu.active)return;c.menu.select(d);break;case b.ESCAPE:c.element.val(c.term);c.close(d);break;case b.LEFT:case b.RIGHT:case b.SHIFT:case b.CONTROL:case b.ALT:case b.COMMAND:case b.COMMAND_RIGHT:case b.INSERT:case b.CAPS_LOCK:case b.END:case b.HOME:break;default:clearTimeout(c.searching);c.searching=setTimeout(function(){c.search(null,d)},c.options.delay);
break}}).bind("focus.autocomplete",function(){c.selectedItem=null;c.previous=c.element.val()}).bind("blur.autocomplete",function(d){clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(d);c._change(d)},150)});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo("body",f).mousedown(function(){setTimeout(function(){clearTimeout(c.closing)},13)}).menu({focus:function(d,b){var e=b.item.data("item.autocomplete");
false!==c._trigger("focus",null,{item:e})&&/^key/.test(d.originalEvent.type)&&c.element.val(e.value)},selected:function(d,b){var e=b.item.data("item.autocomplete");false!==c._trigger("select",d,{item:e})&&c.element.val(e.value);c.close(d);var i=c.previous;if(c.element[0]!==f.activeElement){c.element.focus();c.previous=i}c.selectedItem=e},blur:function(){c.menu.element.is(":visible")&&c.element.val(c.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.fn.bgiframe&&this.menu.element.bgiframe()},
destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(c){a.Widget.prototype._setOption.apply(this,arguments);c==="source"&&this._initSource()},_initSource:function(){var c,f;if(a.isArray(this.options.source)){c=this.options.source;this.source=function(d,b){b(a.ui.autocomplete.filter(c,d.term))}}else if(typeof this.options.source===
"string"){f=this.options.source;this.source=function(d,b){a.getJSON(f,d,b)}}else this.source=this.options.source},search:function(c,f){c=c!=null?c:this.element.val();if(c.length<this.options.minLength)return this.close(f);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(c)},_search:function(c){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:c},this.response)},_response:function(c){if(c.length){c=this._normalize(c);this._suggest(c);
this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",c);this.menu.element.hide();this.menu.deactivate()}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value)return c;return a.map(c,function(f){if(typeof f==="string")return{label:f,value:f};return a.extend({label:f.label||
f.value,value:f.value||f.label},f)})},_suggest:function(c){var f=this.menu.element.empty().zIndex(this.element.zIndex()+1),d;this._renderMenu(f,c);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});c=f.width("").width();d=this.element.width();f.width(Math.max(c,d))},_renderMenu:function(c,f){var d=this;a.each(f,function(b,e){d._renderItem(c,e)})},_renderItem:function(c,f){return a("<li></li>").data("item.autocomplete",
f).append("<a>"+f.label+"</a>").appendTo(c)},_move:function(c,f){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(c)||this.menu.last()&&/^next/.test(c)){this.element.val(this.term);this.menu.deactivate()}else this.menu[c](f);else this.search(null,f)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(c,f){var d=RegExp(a.ui.autocomplete.escapeRegex(f),
"i");return a.grep(c,function(b){return d.test(b.label||b.value||b)})}})})(jQuery);
(function(a){a.widget("ui.menu",{_create:function(){var c=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(f){if(a(f.target).closest(".ui-menu-item a").length){f.preventDefault();c.select(f)}});this.refresh()},refresh:function(){var c=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(f){c.activate(f,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(c,f){this.deactivate();if(this.hasScroll()){var d=f.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),e=this.element.height();if(d<0)this.element.attr("scrollTop",b+d);else d>e&&this.element.attr("scrollTop",b+d-e+f.height())}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",c,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(c,f,d){if(this.active){c=this.active[c+"All"](".ui-menu-item").eq(0);c.length?this.activate(d,c):this.activate(d,this.element.children(f))}else this.activate(d,this.element.children(f))},nextPage:function(c){if(this.hasScroll())if(!this.active||
this.last())this.activate(c,this.element.children(":first"));else{var f=this.active.offset().top,d=this.element.height(),b=this.element.children("li").filter(function(){var e=a(this).offset().top-f-d+a(this).height();return e<10&&e>-10});b.length||(b=this.element.children(":last"));this.activate(c,b)}else this.activate(c,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(c){if(this.hasScroll())if(!this.active||this.first())this.activate(c,this.element.children(":last"));
else{var f=this.active.offset().top,d=this.element.height();result=this.element.children("li").filter(function(){var b=a(this).offset().top-f+d-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(":first"));this.activate(c,result)}else this.activate(c,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(c){this._trigger("selected",c,{item:this.active})}})})(jQuery);
(function(a){var c,f=function(b){a(":ui-button",b.target.form).each(function(){var e=a(this).data("button");setTimeout(function(){e.refresh()},1)})},d=function(b){var e=b.name,i=b.form,o=a([]);if(e)o=i?a(i).find("[name='"+e+"']"):a("[name='"+e+"']",b.ownerDocument).filter(function(){return!this.form});return o};a.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",f);this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");var b=this,e=this.options,i=this.type==="checkbox"||this.type==="radio",o="ui-state-hover"+(!i?" ui-state-active":"");if(e.label===null)e.label=this.buttonElement.html();if(this.element.is(":disabled"))e.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!e.disabled){a(this).addClass("ui-state-hover");this===c&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",
function(){e.disabled||a(this).removeClass(o)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});i&&this.element.bind("change.button",function(){b.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(e.disabled)return false;a(this).toggleClass("ui-state-active");b.buttonElement.attr("aria-pressed",b.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
function(){if(e.disabled)return false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var n=b.element[0];d(n).not(n).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(e.disabled)return false;a(this).addClass("ui-state-active");c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(e.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",
function(n){if(e.disabled)return false;if(n.keyCode==a.ui.keyCode.SPACE||n.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(n){n.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",e.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?
"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var b=this.element.is(":checked");b&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,e){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")e?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")d(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon ui-button-text-only"),
e=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),i=this.options.icons,o=i.primary&&i.secondary;if(i.primary||i.secondary){b.addClass("ui-button-text-icon"+(o?"s":""));i.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+i.primary+"'></span>");i.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+i.secondary+"'></span>");if(!this.options.text){b.addClass(o?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");
this.hasTitle||b.attr("title",e)}}else b.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(b,e){b==="disabled"&&this.buttons.button("option",b,e);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(a){a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var c=this,f=c.options,d=f.title||c.originalTitle||"&#160;",b=a.ui.dialog.getTitleId(c.element),e=(c.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
f.dialogClass).css({zIndex:f.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){if(f.closeOnEscape&&n.keyCode&&n.keyCode===a.ui.keyCode.ESCAPE){c.close(n);n.preventDefault()}}).attr({role:"dialog","aria-labelledby":b}).mousedown(function(n){c.moveToTop(false,n)});c.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(e);var i=(c.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(e),
o=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){o.addClass("ui-state-hover")},function(){o.removeClass("ui-state-hover")}).focus(function(){o.addClass("ui-state-focus")}).blur(function(){o.removeClass("ui-state-focus")}).click(function(n){c.close(n);return false}).appendTo(i);(c.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(f.closeText).appendTo(o);a("<span></span>").addClass("ui-dialog-title").attr("id",
b).html(d).prependTo(i);if(a.isFunction(f.beforeclose)&&!a.isFunction(f.beforeClose))f.beforeClose=f.beforeclose;i.find("*").add(i).disableSelection();f.draggable&&a.fn.draggable&&c._makeDraggable();f.resizable&&a.fn.resizable&&c._makeResizable();c._createButtons(f.buttons);c._isOpen=false;a.fn.bgiframe&&e.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(c){var f=this,d;if(false!==f._trigger("beforeClose",c)){f.overlay&&f.overlay.destroy();f.uiDialog.unbind("keypress.ui-dialog");f._isOpen=false;if(f.options.hide)f.uiDialog.hide(f.options.hide,function(){f._trigger("close",c)});else{f.uiDialog.hide();f._trigger("close",c)}a.ui.dialog.overlay.resize();if(f.options.modal){d=0;a(".ui-dialog").each(function(){if(this!==
f.uiDialog[0])d=Math.max(d,a(this).css("z-index"))});a.ui.dialog.maxZ=d}a("object, embed").show();return f}},isOpen:function(){return this._isOpen},moveToTop:function(c,f){var d=this.options;if(d.modal&&!c||!d.stack&&!d.modal)return this._trigger("focus",f);if(d.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=d.zIndex;if(this.overlay){a.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",f);return this},open:function(){a("object, embed").hide();if(!this._isOpen){var c=this.options,f=this.uiDialog;this.overlay=c.modal?new a.ui.dialog.overlay(this):null;f.next().length&&f.appendTo("body");this._size();this._position(c.position);f.show(c.show);this.moveToTop(true);c.modal&&f.bind("keypress.ui-dialog",function(d){if(d.keyCode===a.ui.keyCode.TAB){var b=a(":tabbable",this),e=b.filter(":first");
b=b.filter(":last");if(d.target===b[0]&&!d.shiftKey){e.focus(1);return false}else if(d.target===e[0]&&d.shiftKey){b.focus(1);return false}}});a([]).add(f.find(".ui-dialog-content :tabbable:first")).add(f.find(".ui-dialog-buttonpane :tabbable:first")).add(f).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(c){var f=this,d=false,b=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");f.uiDialog.find(".ui-dialog-buttonpane").remove();
typeof c==="object"&&c!==null&&a.each(c,function(){return!(d=true)});if(d){a.each(c,function(e,i){var o=a('<button type="button"></button>').text(e).click(function(){i.apply(f.element[0],arguments)}).appendTo(b);a.fn.button&&o.button()});b.appendTo(f.uiDialog)}},_makeDraggable:function(){function c(i){return{position:i.position,offset:i.offset}}var f=this,d=f.options,b=a(document),e;f.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",
start:function(i,o){e=d.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");f._trigger("dragStart",i,c(o))},drag:function(i,o){f._trigger("drag",i,c(o))},stop:function(i,o){d.position=[o.position.left-b.scrollLeft(),o.position.top-b.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(e);f._trigger("dragStop",i,c(o));a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function f(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,
position:i.position,size:i.size}}c=c===undefined?this.options.resizable:c;var d=this,b=d.options,e=d.uiDialog.css("position");c=typeof c==="string"?c:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:d._minHeight(),handles:c,start:function(i,o){a(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",i,f(o))},resize:function(i,o){d._trigger("resize",i,f(o))},
stop:function(i,o){a(this).removeClass("ui-dialog-resizing");b.height=a(this).height();b.width=a(this).width();d._trigger("resizeStop",i,f(o));a.ui.dialog.overlay.resize()}}).css("position",e).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(c){var f=[],d=[0,0];c=c||a.ui.dialog.prototype.options.position;if(typeof c==="string"||typeof c==="object"&&
"0"in c){f=c.split?c.split(" "):[c[0],c[1]];if(f.length===1)f[1]=f[0];a.each(["left","top"],function(b,e){if(+f[b]===f[b]){d[b]=f[b];f[b]=e}})}else if(typeof c==="object"){if("left"in c){f[0]="left";d[0]=c.left}else if("right"in c){f[0]="right";d[0]=-c.right}if("top"in c){f[1]="top";d[1]=c.top}else if("bottom"in c){f[1]="bottom";d[1]=-c.bottom}}(c=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:f.join(" "),at:f.join(" "),offset:d.join(" "),of:window,
collision:"fit",using:function(b){var e=a(this).css(b).offset().top;e<0&&a(this).css("top",b.top-e)}});c||this.uiDialog.hide()},_setOption:function(c,f){var d=this.uiDialog,b=d.is(":data(resizable)"),e=false;switch(c){case "beforeclose":c="beforeClose";break;case "buttons":this._createButtons(f);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+f);break;case "dialogClass":d.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+f);break;case "disabled":f?
d.addClass("ui-dialog-disabled"):d.removeClass("ui-dialog-disabled");break;case "draggable":f?this._makeDraggable():d.draggable("destroy");break;case "height":e=true;break;case "maxHeight":b&&d.resizable("option","maxHeight",f);e=true;break;case "maxWidth":b&&d.resizable("option","maxWidth",f);e=true;break;case "minHeight":b&&d.resizable("option","minHeight",f);e=true;break;case "minWidth":b&&d.resizable("option","minWidth",f);e=true;break;case "position":this._position(f);break;case "resizable":b&&
!f&&d.resizable("destroy");b&&typeof f==="string"&&d.resizable("option","handles",f);!b&&f!==false&&this._makeResizable(f);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(f||"&#160;"));break;case "width":e=true;break}a.Widget.prototype._setOption.apply(this,arguments);e&&this._size()},_size:function(){var c=this.options,f;this.element.css({width:"auto",minHeight:0,height:0});f=this.uiDialog.css({height:"auto",width:c.width}).height();this.element.css(c.height==="auto"?{minHeight:Math.max(c.minHeight-
f,0),height:"auto"}:{minHeight:0,height:Math.max(c.height-f,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.2",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=a.ui.dialog.overlay.create(c)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(c){return c+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(d){return a(d.target).zIndex()>=a.ui.dialog.overlay.maxZ})},1);a(document).bind("keydown.dialog-overlay",function(d){if(c.options.closeOnEscape&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE){c.close(d);d.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var f=
(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&f.bgiframe();this.instances.push(f);return f},destroy:function(c){this.oldInstances.push(this.instances.splice(a.inArray(c,this.instances),1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");c.remove();var f=0;a.each(this.instances,function(){f=Math.max(f,this.css("z-index"))});this.maxZ=f},height:function(){var c,
f;if(a.browser.msie&&a.browser.version<7){c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);f=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return c<f?a(window).height()+"px":c+"px"}else return a(document).height()+"px"},width:function(){var c,f;if(a.browser.msie&&a.browser.version<7){c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);f=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return c<
f?a(window).width()+"px":c+"px"}else return a(document).width()+"px"},resize:function(){var c=a([]);a.each(a.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a){a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var c=this,f=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");f.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=a([]);if(f.range){if(f.range===true){this.range=a("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!==2)f.values=[f.values[0],f.values[0]]}else this.range=a("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range==="min"||f.range==="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(f.values&&f.values.length)for(;a(".ui-slider-handle",this.element).length<f.values.length;)a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){f.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)a(this).blur();
else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(d){var b=true,e=a(this).data("index.ui-slider-handle"),i,o,n;if(!c.options.disabled){switch(d.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:b=
false;if(!c._keySliding){c._keySliding=true;a(this).addClass("ui-state-active");i=c._start(d,e);if(i===false)return}break}n=c.options.step;i=c.options.values&&c.options.values.length?o=c.values(e):o=c.value();switch(d.keyCode){case a.ui.keyCode.HOME:o=c._valueMin();break;case a.ui.keyCode.END:o=c._valueMax();break;case a.ui.keyCode.PAGE_UP:o=c._trimAlignValue(i+(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:o=c._trimAlignValue(i-(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(i===
c._valueMax())return;o=c._trimAlignValue(i+n);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(i===c._valueMin())return;o=c._trimAlignValue(i-n);break}c._slide(d,e,o);return b}}).keyup(function(d){var b=a(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(d,b);c._change(d,b);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(c){var f=this.options,d,b,e,i,o,n;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();d={x:c.pageX,y:c.pageY};b=this._normValueFromMouse(d);e=this._valueMax()-this._valueMin()+1;o=this;this.handles.each(function(m){var l=Math.abs(b-o.values(m));if(e>l){e=l;i=a(this);n=m}});if(f.range===true&&this.values(1)===f.min){n+=1;i=a(this.handles[n])}if(this._start(c,
n)===false)return false;this._mouseSliding=true;o._handleIndex=n;i.addClass("ui-state-active").focus();f=i.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-f.left-i.width()/2,top:c.pageY-f.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)};b=this._normValueFromMouse(d);this._slide(c,n,b);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(c){var f=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,f);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var f;
if(this.orientation==="horizontal"){f=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=c/f;if(f>1)f=1;if(f<0)f=0;if(this.orientation==="vertical")f=1-f;c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+f*c)},_start:function(c,f){var d={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){d.value=
this.values(f);d.values=this.values()}return this._trigger("start",c,d)},_slide:function(c,f,d){var b;if(this.options.values&&this.options.values.length){b=this.values(f?0:1);if(this.options.values.length===2&&this.options.range===true&&(f===0&&d>b||f===1&&d<b))d=b;if(d!==this.values(f)){b=this.values();b[f]=d;c=this._trigger("slide",c,{handle:this.handles[f],value:d,values:b});this.values(f?0:1);c!==false&&this.values(f,d,true)}}else if(d!==this.value()){c=this._trigger("slide",c,{handle:this.handles[f],
value:d});c!==false&&this.value(d)}},_stop:function(c,f){var d={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(f);d.values=this.values()}this._trigger("stop",c,d)},_change:function(c,f){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(f);d.values=this.values()}this._trigger("change",c,d)}},value:function(c){if(arguments.length){this.options.value=
this._trimAlignValue(c);this._refreshValue();this._change(null,0)}return this._value()},values:function(c,f){var d,b,e;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(f);this._refreshValue();this._change(null,c)}if(arguments.length)if(a.isArray(arguments[0])){d=this.options.values;b=arguments[0];for(e=0;e<d.length;e+=1){d[e]=this._trimAlignValue(b[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();
else return this._values()},_setOption:function(c,f){var d,b=0;if(a.isArray(this.options.values))b=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(c){case "disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(d=0;d<b;d+=1)this._change(null,d);this._animateOff=false;break}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(c){var f,d;if(arguments.length){f=this.options.values[c];
return f=this._trimAlignValue(f)}else{f=this.options.values.slice();for(d=0;d<f.length;d+=1)f[d]=this._trimAlignValue(f[d]);return f}},_trimAlignValue:function(c){if(c<this._valueMin())return this._valueMin();if(c>this._valueMax())return this._valueMax();var f=this.options.step>0?this.options.step:1,d=c%f;c=c-d;if(Math.abs(d)*2>=f)c+=d>0?f:-f;return parseFloat(c.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var c=
this.options.range,f=this.options,d=this,b=!this._animateOff?f.animate:false,e,i={},o,n,m,l;if(this.options.values&&this.options.values.length)this.handles.each(function(r){e=(d.values(r)-d._valueMin())/(d._valueMax()-d._valueMin())*100;i[d.orientation==="horizontal"?"left":"bottom"]=e+"%";a(this).stop(1,1)[b?"animate":"css"](i,f.animate);if(d.options.range===true)if(d.orientation==="horizontal"){if(r===0)d.range.stop(1,1)[b?"animate":"css"]({left:e+"%"},f.animate);if(r===1)d.range[b?"animate":"css"]({width:e-
o+"%"},{queue:false,duration:f.animate})}else{if(r===0)d.range.stop(1,1)[b?"animate":"css"]({bottom:e+"%"},f.animate);if(r===1)d.range[b?"animate":"css"]({height:e-o+"%"},{queue:false,duration:f.animate})}o=e});else{n=this.value();m=this._valueMin();l=this._valueMax();e=l!==m?(n-m)/(l-m)*100:0;i[d.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[b?"animate":"css"](i,f.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[b?"animate":"css"]({width:e+"%"},
f.animate);if(c==="max"&&this.orientation==="horizontal")this.range[b?"animate":"css"]({width:100-e+"%"},{queue:false,duration:f.animate});if(c==="min"&&this.orientation==="vertical")this.range.stop(1,1)[b?"animate":"css"]({height:e+"%"},f.animate);if(c==="max"&&this.orientation==="vertical")this.range[b?"animate":"css"]({height:100-e+"%"},{queue:false,duration:f.animate})}}});a.extend(a.ui.slider,{version:"1.8.2"})})(jQuery);
(function(a){var c=0,f=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(d,b){if(d=="selected")this.options.collapsible&&b==this.options.selected||
this.select(b);else{this.options[d]=b;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+ ++c},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++f);return a.cookie.apply(null,[d].concat(a.makeArray(arguments)))},_ui:function(d,b){return{tab:d,panel:b,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=
a(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(d){function b(x,h){x.css({display:""});!a.support.opacity&&h.opacity&&x[0].style.removeAttribute("filter")}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([]);var e=this,i=this.options,o=/^#.+/;this.anchors.each(function(x,h){var H=a(h).attr("href"),B=H.split("#")[0],A;if(B&&(B===location.toString().split("#")[0]||
(A=a("base")[0])&&B===A.href)){H=h.hash;h.href=H}if(o.test(H))e.panels=e.panels.add(e._sanitizeSelector(H));else if(H!="#"){a.data(h,"href.tabs",H);a.data(h,"load.tabs",H.replace(/#.*$/,""));H=e._tabId(h);h.href="#"+H;B=a("#"+H);if(!B.length){B=a(i.panelTemplate).attr("id",H).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(e.panels[x-1]||e.list);B.data("destroy.tabs",true)}e.panels=e.panels.add(B)}else i.disabled.push(x)});if(d){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(i.selected===undefined){location.hash&&this.anchors.each(function(x,h){if(h.hash==location.hash){i.selected=x;return false}});if(typeof i.selected!="number"&&i.cookie)i.selected=parseInt(e._cookie(),10);if(typeof i.selected!="number"&&this.lis.filter(".ui-tabs-selected").length)i.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));i.selected=i.selected||(this.lis.length?0:-1)}else if(i.selected===null)i.selected=-1;i.selected=i.selected>=0&&this.anchors[i.selected]||i.selected<0?i.selected:0;i.disabled=a.unique(i.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(x){return e.lis.index(x)}))).sort();a.inArray(i.selected,i.disabled)!=-1&&i.disabled.splice(a.inArray(i.selected,i.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(i.selected>=0&&this.anchors.length){this.panels.eq(i.selected).removeClass("ui-tabs-hide");this.lis.eq(i.selected).addClass("ui-tabs-selected ui-state-active");e.element.queue("tabs",function(){e._trigger("show",null,e._ui(e.anchors[i.selected],e.panels[i.selected]))});this.load(i.selected)}a(window).bind("unload",function(){e.lis.add(e.anchors).unbind(".tabs");e.lis=e.anchors=e.panels=null})}else i.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[i.collapsible?"addClass":
"removeClass"]("ui-tabs-collapsible");i.cookie&&this._cookie(i.selected,i.cookie);d=0;for(var n;n=this.lis[d];d++)a(n)[a.inArray(d,i.disabled)!=-1&&!a(n).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");i.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(i.event!="mouseover"){var m=function(x,h){h.is(":not(.ui-state-disabled)")&&h.addClass("ui-state-"+x)};this.lis.bind("mouseover.tabs",function(){m("hover",a(this))});this.lis.bind("mouseout.tabs",
function(){a(this).removeClass("ui-state-hover")});this.anchors.bind("focus.tabs",function(){m("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){a(this).closest("li").removeClass("ui-state-focus")})}var l,r;if(i.fx)if(a.isArray(i.fx)){l=i.fx[0];r=i.fx[1]}else l=r=i.fx;var u=r?function(x,h){a(x).closest("li").addClass("ui-tabs-selected ui-state-active");h.hide().removeClass("ui-tabs-hide").animate(r,r.duration||"normal",function(){b(h,r);e._trigger("show",null,e._ui(x,h[0]))})}:
function(x,h){a(x).closest("li").addClass("ui-tabs-selected ui-state-active");h.removeClass("ui-tabs-hide");e._trigger("show",null,e._ui(x,h[0]))},w=l?function(x,h){h.animate(l,l.duration||"normal",function(){e.lis.removeClass("ui-tabs-selected ui-state-active");h.addClass("ui-tabs-hide");b(h,l);e.element.dequeue("tabs")})}:function(x,h){e.lis.removeClass("ui-tabs-selected ui-state-active");h.addClass("ui-tabs-hide");e.element.dequeue("tabs")};this.anchors.bind(i.event+".tabs",function(){var x=this,
h=a(this).closest("li"),H=e.panels.filter(":not(.ui-tabs-hide)"),B=a(e._sanitizeSelector(this.hash));if(h.hasClass("ui-tabs-selected")&&!i.collapsible||h.hasClass("ui-state-disabled")||h.hasClass("ui-state-processing")||e._trigger("select",null,e._ui(this,B[0]))===false){this.blur();return false}i.selected=e.anchors.index(this);e.abort();if(i.collapsible)if(h.hasClass("ui-tabs-selected")){i.selected=-1;i.cookie&&e._cookie(i.selected,i.cookie);e.element.queue("tabs",function(){w(x,H)}).dequeue("tabs");
this.blur();return false}else if(!H.length){i.cookie&&e._cookie(i.selected,i.cookie);e.element.queue("tabs",function(){u(x,B)});e.load(e.anchors.index(this));this.blur();return false}i.cookie&&e._cookie(i.selected,i.cookie);if(B.length){H.length&&e.element.queue("tabs",function(){w(x,H)});e.element.queue("tabs",function(){u(x,B)});e.load(e.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},
destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var e=a(this).unbind(".tabs");a.each(["href","load","cache"],function(i,o){e.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")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(d,b,e){if(e===undefined)e=this.anchors.length;var i=this,o=this.options;b=a(o.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,b));d=!d.indexOf("#")?d.replace("#",""):this._tabId(a("a",b)[0]);b.addClass("ui-state-default ui-corner-top").data("destroy.tabs",
true);var n=a("#"+d);n.length||(n=a(o.panelTemplate).attr("id",d).data("destroy.tabs",true));n.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(e>=this.lis.length){b.appendTo(this.list);n.appendTo(this.list[0].parentNode)}else{b.insertBefore(this.lis[e]);n.insertBefore(this.panels[e])}o.disabled=a.map(o.disabled,function(m){return m>=e?++m:m});this._tabify();if(this.anchors.length==1){o.selected=0;b.addClass("ui-tabs-selected ui-state-active");n.removeClass("ui-tabs-hide");
this.element.queue("tabs",function(){i._trigger("show",null,i._ui(i.anchors[0],i.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(d){var b=this.options,e=this.lis.eq(d).remove(),i=this.panels.eq(d).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(d+(d+1<this.anchors.length?1:-1));b.disabled=a.map(a.grep(b.disabled,function(o){return o!=d}),function(o){return o>=d?--o:o});this._tabify();this._trigger("remove",
null,this._ui(e.find("a")[0],i[0]));return this},enable:function(d){var b=this.options;if(a.inArray(d,b.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");b.disabled=a.grep(b.disabled,function(e){return e!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]));return this}},disable:function(d){var b=this.options;if(d!=b.selected){this.lis.eq(d).addClass("ui-state-disabled");b.disabled.push(d);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}return this},
select:function(d){if(typeof d=="string")d=this.anchors.index(this.anchors.filter("[href$="+d+"]"));else if(d===null)d=-1;if(d==-1&&this.options.collapsible)d=this.options.selected;this.anchors.eq(d).trigger(this.options.event+".tabs");return this},load:function(d){var b=this,e=this.options,i=this.anchors.eq(d)[0],o=a.data(i,"load.tabs");this.abort();if(!o||this.element.queue("tabs").length!==0&&a.data(i,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(d).addClass("ui-state-processing");
if(e.spinner){var n=a("span",i);n.data("label.tabs",n.html()).html(e.spinner)}this.xhr=a.ajax(a.extend({},e.ajaxOptions,{url:o,success:function(m,l){a(b._sanitizeSelector(i.hash)).html(m);b._cleanup();e.cache&&a.data(i,"cache.tabs",true);b._trigger("load",null,b._ui(b.anchors[d],b.panels[d]));try{e.ajaxOptions.success(m,l)}catch(r){}},error:function(m,l){b._cleanup();b._trigger("load",null,b._ui(b.anchors[d],b.panels[d]));try{e.ajaxOptions.error(m,l,d,i)}catch(r){}}}));b.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(d,b){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.2"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,b){var e=this,i=this.options,o=e._rotate||(e._rotate=
function(m){clearTimeout(e.rotation);e.rotation=setTimeout(function(){var l=i.selected;e.select(++l<e.anchors.length?l:0)},d);m&&m.stopPropagation()}),n=e._unrotate||(e._unrotate=!b?function(m){m.clientX&&e.rotate(null)}:function(){t=i.selected;o()});if(d){this.element.bind("tabsshow",o);this.anchors.bind(i.event+".tabs",n);o()}else{clearTimeout(e.rotation);this.element.unbind("tabsshow",o);this.anchors.unbind(i.event+".tabs",n);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(a){function c(){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 f(b,e){a.extend(b,
e);for(var i in e)if(e[i]==null||e[i]==undefined)b[i]=e[i];return b}a.extend(a.ui,{datepicker:{version:"1.8.2"}});var d=(new Date).getTime();a.extend(c.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){f(this._defaults,b||{});return this},_attachDatepicker:function(b,e){var i=null;for(var o in this._defaults){var n=b.getAttribute("date:"+o);if(n){i=i||{};try{i[o]=eval(n)}catch(m){i[o]=
n}}}o=b.nodeName.toLowerCase();n=o=="div"||o=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var l=this._newInst(a(b),n);l.settings=a.extend({},e||{},i||{});if(o=="input")this._connectDatepicker(b,l);else n&&this._inlineDatepicker(b,l)},_newInst:function(b,e){return{id:b[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:!e?this.dpDiv:a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(b,e){var i=a(b);e.append=a([]);e.trigger=a([]);if(!i.hasClass(this.markerClassName)){this._attachments(i,e);i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(o,n,m){e.settings[n]=m}).bind("getData.datepicker",function(o,n){return this._get(e,n)});this._autoSize(e);a.data(b,"datepicker",e)}},_attachments:function(b,e){var i=this._get(e,"appendText"),o=this._get(e,"isRTL");e.append&&
e.append.remove();if(i){e.append=a('<span class="'+this._appendClass+'">'+i+"</span>");b[o?"before":"after"](e.append)}b.unbind("focus",this._showDatepicker);e.trigger&&e.trigger.remove();i=this._get(e,"showOn");if(i=="focus"||i=="both")b.focus(this._showDatepicker);if(i=="button"||i=="both"){i=this._get(e,"buttonText");var n=this._get(e,"buttonImage");e.trigger=a(this._get(e,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:n,alt:i,title:i}):a('<button type="button"></button>').addClass(this._triggerClass).html(n==
""?i:a("<img/>").attr({src:n,alt:i,title:i})));b[o?"before":"after"](e.trigger);e.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var e=new Date(2009,11,20),i=this._get(b,"dateFormat");if(i.match(/[DM]/)){var o=function(n){for(var m=0,l=0,r=0;r<n.length;r++)if(n[r].length>m){m=n[r].length;l=r}return l};e.setMonth(o(this._get(b,
i.match(/MM/)?"monthNames":"monthNamesShort")));e.setDate(o(this._get(b,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}b.input.attr("size",this._formatDate(b,e).length)}},_inlineDatepicker:function(b,e){var i=a(b);if(!i.hasClass(this.markerClassName)){i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(o,n,m){e.settings[n]=m}).bind("getData.datepicker",function(o,n){return this._get(e,n)});a.data(b,"datepicker",e);this._setDate(e,this._getDefaultDate(e),
true);this._updateDatepicker(e);this._updateAlternate(e)}},_dialogDatepicker:function(b,e,i,o,n){b=this._dialogInst;if(!b){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);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};a.data(this._dialogInput[0],"datepicker",b)}f(b.settings,o||{});e=e&&e.constructor==
Date?this._formatDate(b,e):e;this._dialogInput.val(e);this._pos=n?n.length?n:[n.pageX,n.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");b.settings.onSelect=i;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",b);return this},_destroyDatepicker:function(b){var e=a(b),i=a.data(b,"datepicker");if(e.hasClass(this.markerClassName)){var o=b.nodeName.toLowerCase();a.removeData(b,"datepicker");if(o=="input"){i.append.remove();i.trigger.remove();e.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")e.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(b){var e=a(b),i=a.data(b,"datepicker");if(e.hasClass(this.markerClassName)){var o=b.nodeName.toLowerCase();if(o=="input"){b.disabled=false;i.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(o=="div"||o=="span")e.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(n){return n==b?null:n})}},_disableDatepicker:function(b){var e=
a(b),i=a.data(b,"datepicker");if(e.hasClass(this.markerClassName)){var o=b.nodeName.toLowerCase();if(o=="input"){b.disabled=true;i.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(o=="div"||o=="span")e.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=a.map(this._disabledInputs,function(n){return n==b?null:n});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;
for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==b)return true;return false},_getInst:function(b){try{return a.data(b,"datepicker")}catch(e){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,e,i){var o=this._getInst(b);if(arguments.length==2&&typeof e=="string")return e=="defaults"?a.extend({},a.datepicker._defaults):o?e=="all"?a.extend({},o.settings):this._get(o,e):null;var n=e||{};if(typeof e=="string"){n={};n[e]=i}if(o){this._curInst==o&&
this._hideDatepicker();var m=this._getDateDatepicker(b,true);f(o.settings,n);this._attachments(a(b),o);this._autoSize(o);this._setDateDatepicker(b,m);this._updateDatepicker(o)}},_changeDatepicker:function(b,e,i){this._optionDatepicker(b,e,i)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,e){var i=this._getInst(b);if(i){this._setDate(i,e);this._updateDatepicker(i);this._updateAlternate(i)}},_getDateDatepicker:function(b,e){var i=this._getInst(b);
i&&!i.inline&&this._setDateFromField(i,e);return i?this._getDate(i):null},_doKeyDown:function(b){var e=a.datepicker._getInst(b.target),i=true,o=e.dpDiv.is(".ui-datepicker-rtl");e._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();i=false;break;case 13:i=a("td."+a.datepicker._dayOverClass,e.dpDiv).add(a("td."+a.datepicker._currentClass,e.dpDiv));i[0]?a.datepicker._selectDay(b.target,e.selectedMonth,e.selectedYear,i[0]):a.datepicker._hideDatepicker();
return false;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(e,"stepBigMonths"):-a.datepicker._get(e,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(e,"stepBigMonths"):+a.datepicker._get(e,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)a.datepicker._clearDate(b.target);i=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)a.datepicker._gotoToday(b.target);i=b.ctrlKey||
b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,o?+1:-1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(e,"stepBigMonths"):-a.datepicker._get(e,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,-7,"D");i=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,o?-1:+1,"D");i=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)a.datepicker._adjustDate(b.target,
b.ctrlKey?+a.datepicker._get(e,"stepBigMonths"):+a.datepicker._get(e,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,+7,"D");i=b.ctrlKey||b.metaKey;break;default:i=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else i=false;if(i){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput")){e=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat"));
var i=String.fromCharCode(b.charCode==undefined?b.keyCode:b.charCode);return b.ctrlKey||i<" "||!e||e.indexOf(i)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b))){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(e){a.datepicker.log(e)}return true},_showDatepicker:function(b){b=b.target||
b;if(b.nodeName.toLowerCase()!="input")b=a("input",b.parentNode)[0];if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var e=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=e&&a.datepicker._curInst.dpDiv.stop(true,true);var i=a.datepicker._get(e,"beforeShow");f(e.settings,i?i.apply(b,[b,e]):{});e.lastVal=null;a.datepicker._lastInput=b;a.datepicker._setDateFromField(e);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(b);
a.datepicker._pos[1]+=b.offsetHeight}var o=false;a(b).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}i={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(e);i=a.datepicker._checkOffset(e,i,o);e.dpDiv.css({position:a.datepicker._inDialog&&
a.blockUI?"static":o?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"});if(!e.inline){i=a.datepicker._get(e,"showAnim");var n=a.datepicker._get(e,"duration"),m=function(){a.datepicker._datepickerShowing=true;var l=a.datepicker._getBorders(e.dpDiv);e.dpDiv.find("iframe.ui-datepicker-cover").css({left:-l[0],top:-l[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})};e.dpDiv.zIndex(a(b).zIndex()+1);a.effects&&a.effects[i]?e.dpDiv.show(i,a.datepicker._get(e,"showOptions"),n,
m):e.dpDiv[i||"show"](i?n:null,m);if(!i||!n)m();e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus();a.datepicker._curInst=e}}},_updateDatepicker:function(b){var e=this,i=a.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b)).find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.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(!e._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.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();i=this._getNumberOfMonths(b);var o=i[1];o>1?b.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(i[0]!=1||i[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus()},_getBorders:function(b){var e=function(i){return{thin:1,medium:2,thick:3}[i]||i};return[parseFloat(e(b.css("border-left-width"))),parseFloat(e(b.css("border-top-width")))]},_checkOffset:function(b,e,i){var o=b.dpDiv.outerWidth(),n=b.dpDiv.outerHeight(),m=b.input?b.input.outerWidth():0,l=b.input?b.input.outerHeight():0,r=document.documentElement.clientWidth+a(document).scrollLeft(),
u=document.documentElement.clientHeight+a(document).scrollTop();e.left-=this._get(b,"isRTL")?o-m:0;e.left-=i&&e.left==b.input.offset().left?a(document).scrollLeft():0;e.top-=i&&e.top==b.input.offset().top+l?a(document).scrollTop():0;e.left-=Math.min(e.left,e.left+o>r&&r>o?Math.abs(e.left+o-r):0);e.top-=Math.min(e.top,e.top+n>u&&u>n?Math.abs(n+l):0);return e},_findPos:function(b){for(var e=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[e?"previousSibling":"nextSibling"];
b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var e=this._curInst;if(!(!e||b&&e!=a.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(e,"showAnim");var i=this._get(e,"duration"),o=function(){a.datepicker._tidyDialog(e);this._curInst=null};a.effects&&a.effects[b]?e.dpDiv.hide(b,a.datepicker._get(e,"showOptions"),i,o):e.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?i:null,o);b||o();if(b=this._get(e,"onClose"))b.apply(e.input?e.input[0]:null,[e.input?e.input.val():
"",e]);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(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){b=a(b.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&
!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,e,i){b=a(b);var o=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(o,e+(i=="M"?this._get(o,"showCurrentAtPos"):0),i);this._updateDatepicker(o)}},_gotoToday:function(b){b=a(b);var e=this._getInst(b[0]);if(this._get(e,"gotoCurrent")&&e.currentDay){e.selectedDay=e.currentDay;e.drawMonth=e.selectedMonth=e.currentMonth;
e.drawYear=e.selectedYear=e.currentYear}else{var i=new Date;e.selectedDay=i.getDate();e.drawMonth=e.selectedMonth=i.getMonth();e.drawYear=e.selectedYear=i.getFullYear()}this._notifyChange(e);this._adjustDate(b)},_selectMonthYear:function(b,e,i){b=a(b);var o=this._getInst(b[0]);o._selectingMonthYear=false;o["selected"+(i=="M"?"Month":"Year")]=o["draw"+(i=="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10);this._notifyChange(o);this._adjustDate(b)},_clickMonthYear:function(b){b=this._getInst(a(b)[0]);
b.input&&b._selectingMonthYear&&!a.browser.msie&&b.input.focus();b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(b,e,i,o){var n=a(b);if(!(a(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0]))){n=this._getInst(n[0]);n.selectedDay=n.currentDay=a("a",o).html();n.selectedMonth=n.currentMonth=e;n.selectedYear=n.currentYear=i;this._selectDate(b,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear))}},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,
"")},_selectDate:function(b,e){var i=this._getInst(a(b)[0]);e=e!=null?e:this._formatDate(i);i.input&&i.input.val(e);this._updateAlternate(i);var o=this._get(i,"onSelect");if(o)o.apply(i.input?i.input[0]:null,[e,i]);else i.input&&i.input.trigger("change");if(i.inline)this._updateDatepicker(i);else{this._hideDatepicker();this._lastInput=i.input[0];typeof i.input[0]!="object"&&i.input.focus();this._lastInput=null}},_updateAlternate:function(b){var e=this._get(b,"altField");if(e){var i=this._get(b,"altFormat")||
this._get(b,"dateFormat"),o=this._getDate(b),n=this.formatDate(i,o,this._getFormatConfig(b));a(e).each(function(){a(this).val(n)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var e=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((e-b)/864E5)/7)+1},parseDate:function(b,e,i){if(b==null||e==null)throw"Invalid arguments";e=typeof e=="object"?e.toString():e+"";if(e=="")return null;
for(var o=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,m=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,u=i=-1,w=-1,x=-1,h=false,H=function(U){(U=Q+1<b.length&&b.charAt(Q+1)==U)&&Q++;return U},B=function(U){H(U);U=RegExp("^\\d{1,"+(U=="@"?14:U=="!"?20:U=="y"?4:U=="o"?3:2)+"}");U=e.substring(P).match(U);if(!U)throw"Missing number at position "+
P;P+=U[0].length;return parseInt(U[0],10)},A=function(U,ba,ha){U=H(U)?ha:ba;for(ba=0;ba<U.length;ba++)if(e.substr(P,U[ba].length)==U[ba]){P+=U[ba].length;return ba+1}throw"Unknown name at position "+P;},N=function(){if(e.charAt(P)!=b.charAt(Q))throw"Unexpected literal at position "+P;P++},P=0,Q=0;Q<b.length;Q++)if(h)if(b.charAt(Q)=="'"&&!H("'"))h=false;else N();else switch(b.charAt(Q)){case "d":w=B("d");break;case "D":A("D",n,m);break;case "o":x=B("o");break;case "m":u=B("m");break;case "M":u=A("M",
l,r);break;case "y":i=B("y");break;case "@":var Y=new Date(B("@"));i=Y.getFullYear();u=Y.getMonth()+1;w=Y.getDate();break;case "!":Y=new Date((B("!")-this._ticksTo1970)/1E4);i=Y.getFullYear();u=Y.getMonth()+1;w=Y.getDate();break;case "'":if(H("'"))N();else h=true;break;default:N()}if(i==-1)i=(new Date).getFullYear();else if(i<100)i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=o?0:-100);if(x>-1){u=1;w=x;do{o=this._getDaysInMonth(i,u-1);if(w<=o)break;u++;w-=o}while(1)}Y=this._daylightSavingAdjust(new Date(i,
u-1,w));if(Y.getFullYear()!=i||Y.getMonth()+1!=u||Y.getDate()!=w)throw"Invalid date";return Y},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(b,e,i){if(!e)return"";var o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?
i.dayNames:null)||this._defaults.dayNames,m=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var l=function(H){(H=h+1<b.length&&b.charAt(h+1)==H)&&h++;return H},r=function(H,B,A){B=""+B;if(l(H))for(;B.length<A;)B="0"+B;return B},u=function(H,B,A,N){return l(H)?N[B]:A[B]},w="",x=false;if(e)for(var h=0;h<b.length;h++)if(x)if(b.charAt(h)=="'"&&!l("'"))x=false;else w+=b.charAt(h);else switch(b.charAt(h)){case "d":w+=r("d",e.getDate(),2);break;
case "D":w+=u("D",e.getDay(),o,n);break;case "o":w+=r("o",(e.getTime()-(new Date(e.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":w+=r("m",e.getMonth()+1,2);break;case "M":w+=u("M",e.getMonth(),m,i);break;case "y":w+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case "@":w+=e.getTime();break;case "!":w+=e.getTime()*1E4+this._ticksTo1970;break;case "'":if(l("'"))w+="'";else x=true;break;default:w+=b.charAt(h)}return w},_possibleChars:function(b){for(var e="",i=false,
o=function(m){(m=n+1<b.length&&b.charAt(n+1)==m)&&n++;return m},n=0;n<b.length;n++)if(i)if(b.charAt(n)=="'"&&!o("'"))i=false;else e+=b.charAt(n);else switch(b.charAt(n)){case "d":case "m":case "y":case "@":e+="0123456789";break;case "D":case "M":return null;case "'":if(o("'"))e+="'";else i=true;break;default:e+=b.charAt(n)}return e},_get:function(b,e){return b.settings[e]!==undefined?b.settings[e]:this._defaults[e]},_setDateFromField:function(b,e){if(b.input.val()!=b.lastVal){var i=this._get(b,"dateFormat"),
o=b.lastVal=b.input?b.input.val():null,n,m;n=m=this._getDefaultDate(b);var l=this._getFormatConfig(b);try{n=this.parseDate(i,o,l)||m}catch(r){this.log(r);o=e?"":o}b.selectedDay=n.getDate();b.drawMonth=b.selectedMonth=n.getMonth();b.drawYear=b.selectedYear=n.getFullYear();b.currentDay=o?n.getDate():0;b.currentMonth=o?n.getMonth():0;b.currentYear=o?n.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},
_determineDate:function(b,e,i){var o=function(m){var l=new Date;l.setDate(l.getDate()+m);return l},n=function(m){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),m,a.datepicker._getFormatConfig(b))}catch(l){}var r=(m.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,u=r.getFullYear(),w=r.getMonth();r=r.getDate();for(var x=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=x.exec(m);h;){switch(h[2]||"d"){case "d":case "D":r+=parseInt(h[1],10);break;case "w":case "W":r+=parseInt(h[1],
10)*7;break;case "m":case "M":w+=parseInt(h[1],10);r=Math.min(r,a.datepicker._getDaysInMonth(u,w));break;case "y":case "Y":u+=parseInt(h[1],10);r=Math.min(r,a.datepicker._getDaysInMonth(u,w));break}h=x.exec(m)}return new Date(u,w,r)};if(e=(e=e==null?i:typeof e=="string"?n(e):typeof e=="number"?isNaN(e)?i:o(e):e)&&e.toString()=="Invalid Date"?i:e){e.setHours(0);e.setMinutes(0);e.setSeconds(0);e.setMilliseconds(0)}return this._daylightSavingAdjust(e)},_daylightSavingAdjust:function(b){if(!b)return null;
b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,e,i){var o=!e,n=b.selectedMonth,m=b.selectedYear;e=this._restrictMinMax(b,this._determineDate(b,e,new Date));b.selectedDay=b.currentDay=e.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=e.getMonth();b.drawYear=b.selectedYear=b.currentYear=e.getFullYear();if((n!=b.selectedMonth||m!=b.selectedYear)&&!i)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(o?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||
b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(b){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(b,"isRTL"),o=this._get(b,"showButtonPanel"),n=this._get(b,"hideIfNoPrevNext"),m=this._get(b,"navigationAsDateFormat"),l=this._getNumberOfMonths(b),r=this._get(b,"showCurrentAtPos"),u=this._get(b,"stepMonths"),w=l[0]!=1||l[1]!=1,x=this._daylightSavingAdjust(!b.currentDay?
new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),h=this._getMinMaxDate(b,"min"),H=this._getMinMaxDate(b,"max");r=b.drawMonth-r;var B=b.drawYear;if(r<0){r+=12;B--}if(H){var A=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth()-l[0]*l[1]+1,H.getDate()));for(A=h&&A<h?h:A;this._daylightSavingAdjust(new Date(B,r,1))>A;){r--;if(r<0){r=11;B--}}}b.drawMonth=r;b.drawYear=B;A=this._get(b,"prevText");A=!m?A:this.formatDate(A,this._daylightSavingAdjust(new Date(B,r-u,1)),this._getFormatConfig(b));
A=this._canAdjustMonth(b,-1,B,r)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+d+".datepicker._adjustDate('#"+b.id+"', -"+u+", 'M');\" title=\""+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+A+"</span></a>":n?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+A+"</span></a>";var N=this._get(b,"nextText");N=!m?N:this.formatDate(N,this._daylightSavingAdjust(new Date(B,
r+u,1)),this._getFormatConfig(b));n=this._canAdjustMonth(b,+1,B,r)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+d+".datepicker._adjustDate('#"+b.id+"', +"+u+", 'M');\" title=\""+N+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+N+"</span></a>":n?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+N+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+N+"</span></a>";u=this._get(b,"currentText");N=this._get(b,"gotoCurrent")&&
b.currentDay?x:e;u=!m?u:this.formatDate(u,N,this._getFormatConfig(b));m=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+d+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";o=o?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?m:"")+(this._isInRange(b,N)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
d+".datepicker._gotoToday('#"+b.id+"');\">"+u+"</button>":"")+(i?"":m)+"</div>":"";m=parseInt(this._get(b,"firstDay"),10);m=isNaN(m)?0:m;u=this._get(b,"showWeek");N=this._get(b,"dayNames");this._get(b,"dayNamesShort");var P=this._get(b,"dayNamesMin"),Q=this._get(b,"monthNames"),Y=this._get(b,"monthNamesShort"),U=this._get(b,"beforeShowDay"),ba=this._get(b,"showOtherMonths"),ha=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var pa=this._getDefaultDate(b),ia="",Z=0;Z<l[0];Z++){for(var ka=
"",ja=0;ja<l[1];ja++){var qa=this._daylightSavingAdjust(new Date(B,r,b.selectedDay)),W=" ui-corner-all",da="";if(w){da+='<div class="ui-datepicker-group';if(l[1]>1)switch(ja){case 0:da+=" ui-datepicker-group-first";W=" ui-corner-"+(i?"right":"left");break;case l[1]-1:da+=" ui-datepicker-group-last";W=" ui-corner-"+(i?"left":"right");break;default:da+=" ui-datepicker-group-middle";W="";break}da+='">'}da+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+W+'">'+(/all|left/.test(W)&&
Z==0?i?n:A:"")+(/all|right/.test(W)&&Z==0?i?A:n:"")+this._generateMonthYearHeader(b,r,B,h,H,Z>0||ja>0,Q,Y)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var ca=u?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(W=0;W<7;W++){var X=(W+m)%7;ca+="<th"+((W+m+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+N[X]+'">'+P[X]+"</span></th>"}da+=ca+"</tr></thead><tbody>";ca=this._getDaysInMonth(B,r);if(B==b.selectedYear&&r==b.selectedMonth)b.selectedDay=
Math.min(b.selectedDay,ca);W=(this._getFirstDayOfMonth(B,r)-m+7)%7;ca=w?6:Math.ceil((W+ca)/7);X=this._daylightSavingAdjust(new Date(B,r,1-W));for(var ua=0;ua<ca;ua++){da+="<tr>";var va=!u?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(X)+"</td>";for(W=0;W<7;W++){var la=U?U.apply(b.input?b.input[0]:null,[X]):[true,""],ma=X.getMonth()!=r,wa=ma&&!ha||!la[0]||h&&X<h||H&&X>H;va+='<td class="'+((W+m+6)%7>=5?" ui-datepicker-week-end":"")+(ma?" ui-datepicker-other-month":"")+(X.getTime()==
qa.getTime()&&r==b.selectedMonth&&b._keyEvent||pa.getTime()==X.getTime()&&pa.getTime()==qa.getTime()?" "+this._dayOverClass:"")+(wa?" "+this._unselectableClass+" ui-state-disabled":"")+(ma&&!ba?"":" "+la[1]+(X.getTime()==x.getTime()?" "+this._currentClass:"")+(X.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+((!ma||ba)&&la[2]?' title="'+la[2]+'"':"")+(wa?"":' onclick="DP_jQuery_'+d+".datepicker._selectDay('#"+b.id+"',"+X.getMonth()+","+X.getFullYear()+', this);return false;"')+">"+(ma&&!ba?
"&#xa0;":wa?'<span class="ui-state-default">'+X.getDate()+"</span>":'<a class="ui-state-default'+(X.getTime()==e.getTime()?" ui-state-highlight":"")+(X.getTime()==x.getTime()?" ui-state-active":"")+(ma?" ui-priority-secondary":"")+'" href="#">'+X.getDate()+"</a>")+"</td>";X.setDate(X.getDate()+1);X=this._daylightSavingAdjust(X)}da+=va+"</tr>"}r++;if(r>11){r=0;B++}da+="</tbody></table>"+(w?"</div>"+(l[0]>0&&ja==l[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");ka+=da}ia+=ka}ia+=o+(a.browser.msie&&
parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");b._keyEvent=false;return ia},_generateMonthYearHeader:function(b,e,i,o,n,m,l,r){var u=this._get(b,"changeMonth"),w=this._get(b,"changeYear"),x=this._get(b,"showMonthAfterYear"),h='<div class="ui-datepicker-title">',H="";if(m||!u)H+='<span class="ui-datepicker-month">'+l[e]+"</span>";else{l=o&&o.getFullYear()==i;var B=n&&n.getFullYear()==i;H+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+
d+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+d+".datepicker._clickMonthYear('#"+b.id+"');\">";for(var A=0;A<12;A++)if((!l||A>=o.getMonth())&&(!B||A<=n.getMonth()))H+='<option value="'+A+'"'+(A==e?' selected="selected"':"")+">"+r[A]+"</option>";H+="</select>"}x||(h+=H+(m||!(u&&w)?"&#xa0;":""));if(m||!w)h+='<span class="ui-datepicker-year">'+i+"</span>";else{r=this._get(b,"yearRange").split(":");var N=(new Date).getFullYear();l=function(P){P=P.match(/c[+-].*/)?i+
parseInt(P.substring(1),10):P.match(/[+-].*/)?N+parseInt(P,10):parseInt(P,10);return isNaN(P)?N:P};e=l(r[0]);r=Math.max(e,l(r[1]||""));e=o?Math.max(e,o.getFullYear()):e;r=n?Math.min(r,n.getFullYear()):r;for(h+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+d+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+d+".datepicker._clickMonthYear('#"+b.id+"');\">";e<=r;e++)h+='<option value="'+e+'"'+(e==i?' selected="selected"':"")+">"+e+"</option>";h+="</select>"}h+=
this._get(b,"yearSuffix");if(x)h+=(m||!(u&&w)?"&#xa0;":"")+H;h+="</div>";return h},_adjustInstDate:function(b,e,i){var o=b.drawYear+(i=="Y"?e:0),n=b.drawMonth+(i=="M"?e:0);e=Math.min(b.selectedDay,this._getDaysInMonth(o,n))+(i=="D"?e:0);o=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(o,n,e)));b.selectedDay=o.getDate();b.drawMonth=b.selectedMonth=o.getMonth();b.drawYear=b.selectedYear=o.getFullYear();if(i=="M"||i=="Y")this._notifyChange(b)},_restrictMinMax:function(b,e){var i=this._getMinMaxDate(b,
"min"),o=this._getMinMaxDate(b,"max");e=i&&e<i?i:e;return e=o&&e>o?o:e},_notifyChange:function(b){var e=this._get(b,"onChangeMonthYear");if(e)e.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,e){return this._determineDate(b,this._get(b,e+"Date"),null)},_getDaysInMonth:function(b,e){return 32-(new Date(b,e,32)).getDate()},_getFirstDayOfMonth:function(b,
e){return(new Date(b,e,1)).getDay()},_canAdjustMonth:function(b,e,i,o){var n=this._getNumberOfMonths(b);i=this._daylightSavingAdjust(new Date(i,o+(e<0?e:n[0]*n[1]),1));e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth()));return this._isInRange(b,i)},_isInRange:function(b,e){var i=this._getMinMaxDate(b,"min"),o=this._getMinMaxDate(b,"max");return(!i||e.getTime()>=i.getTime())&&(!o||e.getTime()<=o.getTime())},_getFormatConfig:function(b){var e=this._get(b,"shortYearCutoff");e=typeof e!=
"string"?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,e,i,o){if(!e){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}e=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(o,i,e)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));
return this.formatDate(this._get(b,"dateFormat"),e,this._getFormatConfig(b))}});a.fn.datepicker=function(b){if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var e=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(e));if(b=="option"&&arguments.length==2&&typeof arguments[1]==
"string")return a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(e));return this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(e)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new c;a.datepicker.initialized=false;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.2";window["DP_jQuery_"+d]=a})(jQuery);
(function(a){a.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(c){if(c===undefined)return this._value();this._setOption("value",c);return this},_setOption:function(c,f){switch(c){case "value":this.options.value=f;this._refreshValue();this._trigger("change");break}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var c=this.options.value;if(typeof c!=="number")c=0;if(c<this._valueMin())c=this._valueMin();if(c>this._valueMax())c=this._valueMax();return c},
_valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var c=this.value();this.valueDiv[c===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(c+"%");this.element.attr("aria-valuenow",c)}});a.extend(a.ui.progressbar,{version:"1.8.2"})})(jQuery);
jQuery.effects||function(a){function c(m){var l;if(m&&m.constructor==Array&&m.length==3)return m;if(l=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(m))return[parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10)];if(l=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(m))return[parseFloat(l[1])*2.55,parseFloat(l[2])*2.55,parseFloat(l[3])*2.55];if(l=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(m))return[parseInt(l[1],
16),parseInt(l[2],16),parseInt(l[3],16)];if(l=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(m))return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(m))return i.transparent;return i[a.trim(m).toLowerCase()]}function f(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,l={},r,u;if(m&&m.length&&m[0]&&m[m[0]])for(var w=m.length;w--;){r=m[w];if(typeof m[r]=="string"){u=r.replace(/\-(\w)/g,function(x,h){return h.toUpperCase()});
l[u]=m[r]}}else for(r in m)if(typeof m[r]==="string")l[r]=m[r];return l}function d(m){var l,r;for(l in m){r=m[l];if(r==null||a.isFunction(r)||l in n||/scrollbar/.test(l)||!/color/i.test(l)&&isNaN(parseFloat(r)))delete m[l]}return m}function b(m,l){var r={_:0},u;for(u in l)if(m[u]!=l[u])r[u]=l[u];return r}function e(m,l,r,u){if(typeof m=="object"){u=l;r=null;l=m;m=l.effect}if(a.isFunction(l)){u=l;r=null;l={}}if(a.isFunction(r)){u=r;r=null}if(typeof l=="number"||a.fx.speeds[l]){u=r;r=l;l={}}l=l||{};
r=r||l.duration;r=a.fx.off?0:typeof r=="number"?r:a.fx.speeds[r]||a.fx.speeds._default;u=u||l.complete;return[m,l,r,u]}a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(m,l){a.fx.step[l]=function(r){if(!r.colorInit){var u;u=r.elem;var w=l,x;do{x=a.curCSS(u,w);if(x!=""&&x!="transparent"||a.nodeName(u,"body"))break;w="backgroundColor"}while(u=u.parentNode);u=c(x);r.start=u;r.end=c(r.end);r.colorInit=true}r.elem.style[l]=
"rgb("+Math.max(Math.min(parseInt(r.pos*(r.end[0]-r.start[0])+r.start[0],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[1]-r.start[1])+r.start[1],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[2]-r.start[2])+r.start[2],10),255),0)+")"}});var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},o=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(m,l,r,u){if(a.isFunction(r)){u=r;r=null}return this.each(function(){var w=a(this),x=w.attr("style")||" ",h=d(f.call(this)),H,B=w.attr("className");a.each(o,function(A,N){m[N]&&w[N+"Class"](m[N])});
H=d(f.call(this));w.attr("className",B);w.animate(b(h,H),l,r,function(){a.each(o,function(A,N){m[N]&&w[N+"Class"](m[N])});if(typeof w.attr("style")=="object"){w.attr("style").cssText="";w.attr("style").cssText=x}else w.attr("style",x);u&&u.apply(this,arguments)})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(m,l,r,u){return l?a.effects.animateClass.apply(this,[{add:m},l,r,u]):this._addClass(m)},_removeClass:a.fn.removeClass,removeClass:function(m,l,r,u){return l?a.effects.animateClass.apply(this,
[{remove:m},l,r,u]):this._removeClass(m)},_toggleClass:a.fn.toggleClass,toggleClass:function(m,l,r,u,w){return typeof l=="boolean"||l===undefined?r?a.effects.animateClass.apply(this,[l?{add:m}:{remove:m},r,u,w]):this._toggleClass(m,l):a.effects.animateClass.apply(this,[{toggle:m},l,r,u])},switchClass:function(m,l,r,u,w){return a.effects.animateClass.apply(this,[{add:l,remove:m},r,u,w])}});a.extend(a.effects,{version:"1.8.2",save:function(m,l){for(var r=0;r<l.length;r++)l[r]!==null&&m.data("ec.storage."+
l[r],m[0].style[l[r]])},restore:function(m,l){for(var r=0;r<l.length;r++)l[r]!==null&&m.css(l[r],m.data("ec.storage."+l[r]))},setMode:function(m,l){if(l=="toggle")l=m.is(":hidden")?"show":"hide";return l},getBaseline:function(m,l){var r,u;switch(m[0]){case "top":r=0;break;case "middle":r=0.5;break;case "bottom":r=1;break;default:r=m[0]/l.height}switch(m[1]){case "left":u=0;break;case "center":u=0.5;break;case "right":u=1;break;default:u=m[1]/l.width}return{x:u,y:r}},createWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent();
var l={width:m.outerWidth(true),height:m.outerHeight(true),"float":m.css("float")},r=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});m.wrap(r);r=m.parent();if(m.css("position")=="static"){r.css({position:"relative"});m.css({position:"relative"})}else{a.extend(l,{position:m.css("position"),zIndex:m.css("z-index")});a.each(["top","left","bottom","right"],function(u,w){l[w]=m.css(w);if(isNaN(parseInt(l[w],10)))l[w]="auto"});
m.css({position:"relative",top:0,left:0})}return r.css(l).show()},removeWrapper:function(m){if(m.parent().is(".ui-effects-wrapper"))return m.parent().replaceWith(m);return m},setTransition:function(m,l,r,u){u=u||{};a.each(l,function(w,x){unit=m.cssUnit(x);if(unit[0]>0)u[x]=unit[0]*r+unit[1]});return u}});a.fn.extend({effect:function(m){var l=e.apply(this,arguments);l={options:l[1],duration:l[2],callback:l[3]};var r=a.effects[m];return r&&!a.fx.off?r.call(this,l):this},_show:a.fn.show,show:function(m){if(!m||
typeof m=="number"||a.fx.speeds[m])return this._show.apply(this,arguments);else{var l=e.apply(this,arguments);l[1].mode="show";return this.effect.apply(this,l)}},_hide:a.fn.hide,hide:function(m){if(!m||typeof m=="number"||a.fx.speeds[m])return this._hide.apply(this,arguments);else{var l=e.apply(this,arguments);l[1].mode="hide";return this.effect.apply(this,l)}},__toggle:a.fn.toggle,toggle:function(m){if(!m||typeof m=="number"||a.fx.speeds[m]||typeof m=="boolean"||a.isFunction(m))return this.__toggle.apply(this,
arguments);else{var l=e.apply(this,arguments);l[1].mode="toggle";return this.effect.apply(this,l)}},cssUnit:function(m){var l=this.css(m),r=[];a.each(["em","px","%","pt"],function(u,w){if(l.indexOf(w)>0)r=[parseFloat(l),w]});return r}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(m,l,r,u,w){return a.easing[a.easing.def](m,l,r,u,w)},easeInQuad:function(m,l,r,u,w){return u*(l/=w)*l+r},easeOutQuad:function(m,l,r,u,w){return-u*(l/=w)*(l-2)+r},easeInOutQuad:function(m,
l,r,u,w){if((l/=w/2)<1)return u/2*l*l+r;return-u/2*(--l*(l-2)-1)+r},easeInCubic:function(m,l,r,u,w){return u*(l/=w)*l*l+r},easeOutCubic:function(m,l,r,u,w){return u*((l=l/w-1)*l*l+1)+r},easeInOutCubic:function(m,l,r,u,w){if((l/=w/2)<1)return u/2*l*l*l+r;return u/2*((l-=2)*l*l+2)+r},easeInQuart:function(m,l,r,u,w){return u*(l/=w)*l*l*l+r},easeOutQuart:function(m,l,r,u,w){return-u*((l=l/w-1)*l*l*l-1)+r},easeInOutQuart:function(m,l,r,u,w){if((l/=w/2)<1)return u/2*l*l*l*l+r;return-u/2*((l-=2)*l*l*l-2)+
r},easeInQuint:function(m,l,r,u,w){return u*(l/=w)*l*l*l*l+r},easeOutQuint:function(m,l,r,u,w){return u*((l=l/w-1)*l*l*l*l+1)+r},easeInOutQuint:function(m,l,r,u,w){if((l/=w/2)<1)return u/2*l*l*l*l*l+r;return u/2*((l-=2)*l*l*l*l+2)+r},easeInSine:function(m,l,r,u,w){return-u*Math.cos(l/w*(Math.PI/2))+u+r},easeOutSine:function(m,l,r,u,w){return u*Math.sin(l/w*(Math.PI/2))+r},easeInOutSine:function(m,l,r,u,w){return-u/2*(Math.cos(Math.PI*l/w)-1)+r},easeInExpo:function(m,l,r,u,w){return l==0?r:u*Math.pow(2,
10*(l/w-1))+r},easeOutExpo:function(m,l,r,u,w){return l==w?r+u:u*(-Math.pow(2,-10*l/w)+1)+r},easeInOutExpo:function(m,l,r,u,w){if(l==0)return r;if(l==w)return r+u;if((l/=w/2)<1)return u/2*Math.pow(2,10*(l-1))+r;return u/2*(-Math.pow(2,-10*--l)+2)+r},easeInCirc:function(m,l,r,u,w){return-u*(Math.sqrt(1-(l/=w)*l)-1)+r},easeOutCirc:function(m,l,r,u,w){return u*Math.sqrt(1-(l=l/w-1)*l)+r},easeInOutCirc:function(m,l,r,u,w){if((l/=w/2)<1)return-u/2*(Math.sqrt(1-l*l)-1)+r;return u/2*(Math.sqrt(1-(l-=2)*
l)+1)+r},easeInElastic:function(m,l,r,u,w){m=1.70158;var x=0,h=u;if(l==0)return r;if((l/=w)==1)return r+u;x||(x=w*0.3);if(h<Math.abs(u)){h=u;m=x/4}else m=x/(2*Math.PI)*Math.asin(u/h);return-(h*Math.pow(2,10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/x))+r},easeOutElastic:function(m,l,r,u,w){m=1.70158;var x=0,h=u;if(l==0)return r;if((l/=w)==1)return r+u;x||(x=w*0.3);if(h<Math.abs(u)){h=u;m=x/4}else m=x/(2*Math.PI)*Math.asin(u/h);return h*Math.pow(2,-10*l)*Math.sin((l*w-m)*2*Math.PI/x)+u+r},easeInOutElastic:function(m,
l,r,u,w){m=1.70158;var x=0,h=u;if(l==0)return r;if((l/=w/2)==2)return r+u;x||(x=w*0.3*1.5);if(h<Math.abs(u)){h=u;m=x/4}else m=x/(2*Math.PI)*Math.asin(u/h);if(l<1)return-0.5*h*Math.pow(2,10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/x)+r;return h*Math.pow(2,-10*(l-=1))*Math.sin((l*w-m)*2*Math.PI/x)*0.5+u+r},easeInBack:function(m,l,r,u,w,x){if(x==undefined)x=1.70158;return u*(l/=w)*l*((x+1)*l-x)+r},easeOutBack:function(m,l,r,u,w,x){if(x==undefined)x=1.70158;return u*((l=l/w-1)*l*((x+1)*l+x)+1)+r},easeInOutBack:function(m,
l,r,u,w,x){if(x==undefined)x=1.70158;if((l/=w/2)<1)return u/2*l*l*(((x*=1.525)+1)*l-x)+r;return u/2*((l-=2)*l*(((x*=1.525)+1)*l+x)+2)+r},easeInBounce:function(m,l,r,u,w){return u-a.easing.easeOutBounce(m,w-l,0,u,w)+r},easeOutBounce:function(m,l,r,u,w){return(l/=w)<1/2.75?u*7.5625*l*l+r:l<2/2.75?u*(7.5625*(l-=1.5/2.75)*l+0.75)+r:l<2.5/2.75?u*(7.5625*(l-=2.25/2.75)*l+0.9375)+r:u*(7.5625*(l-=2.625/2.75)*l+0.984375)+r},easeInOutBounce:function(m,l,r,u,w){if(l<w/2)return a.easing.easeInBounce(m,l*2,0,
u,w)*0.5+r;return a.easing.easeOutBounce(m,l*2-w,0,u,w)*0.5+u*0.5+r}})}(jQuery);
(function(a){a.effects.blind=function(c){return this.queue(function(){var f=a(this),d=["position","top","left"],b=a.effects.setMode(f,c.options.mode||"hide"),e=c.options.direction||"vertical";a.effects.save(f,d);f.show();var i=a.effects.createWrapper(f).css({overflow:"hidden"}),o=e=="vertical"?"height":"width";e=e=="vertical"?i.height():i.width();b=="show"&&i.css(o,0);var n={};n[o]=b=="show"?e:0;i.animate(n,c.duration,c.options.easing,function(){b=="hide"&&f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);
c.callback&&c.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
(function(a){a.effects.bounce=function(c){return this.queue(function(){var f=a(this),d=["position","top","left"],b=a.effects.setMode(f,c.options.mode||"effect"),e=c.options.direction||"up",i=c.options.distance||20,o=c.options.times||5,n=c.duration||250;/show|hide/.test(b)&&d.push("opacity");a.effects.save(f,d);f.show();a.effects.createWrapper(f);var m=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";i=c.options.distance||(m=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/
3);if(b=="show")f.css("opacity",0).css(m,e=="pos"?-i:i);if(b=="hide")i/=o*2;b!="hide"&&o--;if(b=="show"){var l={opacity:1};l[m]=(e=="pos"?"+=":"-=")+i;f.animate(l,n/2,c.options.easing);i/=2;o--}for(l=0;l<o;l++){var r={},u={};r[m]=(e=="pos"?"-=":"+=")+i;u[m]=(e=="pos"?"+=":"-=")+i;f.animate(r,n/2,c.options.easing).animate(u,n/2,c.options.easing);i=b=="hide"?i*2:i/2}if(b=="hide"){l={opacity:0};l[m]=(e=="pos"?"-=":"+=")+i;f.animate(l,n/2,c.options.easing,function(){f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);
c.callback&&c.callback.apply(this,arguments)})}else{r={};u={};r[m]=(e=="pos"?"-=":"+=")+i;u[m]=(e=="pos"?"+=":"-=")+i;f.animate(r,n/2,c.options.easing).animate(u,n/2,c.options.easing,function(){a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(this,arguments)})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
(function(a){a.effects.clip=function(c){return this.queue(function(){var f=a(this),d=["position","top","left","height","width"],b=a.effects.setMode(f,c.options.mode||"hide"),e=c.options.direction||"vertical";a.effects.save(f,d);f.show();var i=a.effects.createWrapper(f).css({overflow:"hidden"});i=f[0].tagName=="IMG"?i:f;var o={size:e=="vertical"?"height":"width",position:e=="vertical"?"top":"left"};e=e=="vertical"?i.height():i.width();if(b=="show"){i.css(o.size,0);i.css(o.position,e/2)}var n={};n[o.size]=
b=="show"?e:0;n[o.position]=b=="show"?0:e/2;i.animate(n,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(f[0],arguments);f.dequeue()}})})}})(jQuery);
(function(a){a.effects.drop=function(c){return this.queue(function(){var f=a(this),d=["position","top","left","opacity"],b=a.effects.setMode(f,c.options.mode||"hide"),e=c.options.direction||"left";a.effects.save(f,d);f.show();a.effects.createWrapper(f);var i=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";var o=c.options.distance||(i=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(b=="show")f.css("opacity",0).css(i,e=="pos"?-o:o);var n={opacity:b=="show"?1:
0};n[i]=(b=="show"?e=="pos"?"+=":"-=":e=="pos"?"-=":"+=")+o;f.animate(n,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(a){a.effects.explode=function(c){return this.queue(function(){var f=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3,d=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":c.options.mode;var b=a(this).show().css("visibility","hidden"),e=b.offset();e.top-=parseInt(b.css("marginTop"),10)||0;e.left-=parseInt(b.css("marginLeft"),10)||0;for(var i=b.outerWidth(true),o=b.outerHeight(true),n=0;n<f;n++)for(var m=
0;m<d;m++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-m*(i/d),top:-n*(o/f)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:i/d,height:o/f,left:e.left+m*(i/d)+(c.options.mode=="show"?(m-Math.floor(d/2))*(i/d):0),top:e.top+n*(o/f)+(c.options.mode=="show"?(n-Math.floor(f/2))*(o/f):0),opacity:c.options.mode=="show"?0:1}).animate({left:e.left+m*(i/d)+(c.options.mode=="show"?0:(m-Math.floor(d/2))*(i/d)),top:e.top+
n*(o/f)+(c.options.mode=="show"?0:(n-Math.floor(f/2))*(o/f)),opacity:c.options.mode=="show"?1:0},c.duration||500);setTimeout(function(){c.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();c.callback&&c.callback.apply(b[0]);b.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);
(function(a){a.effects.fold=function(c){return this.queue(function(){var f=a(this),d=["position","top","left"],b=a.effects.setMode(f,c.options.mode||"hide"),e=c.options.size||15,i=!!c.options.horizFirst,o=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(f,d);f.show();var n=a.effects.createWrapper(f).css({overflow:"hidden"}),m=b=="show"!=i,l=m?["width","height"]:["height","width"];m=m?[n.width(),n.height()]:[n.height(),n.width()];var r=/([0-9]+)%/.exec(e);if(r)e=parseInt(r[1],10)/100*
m[b=="hide"?0:1];if(b=="show")n.css(i?{height:0,width:e}:{height:e,width:0});i={};r={};i[l[0]]=b=="show"?m[0]:e;r[l[1]]=b=="show"?m[1]:0;n.animate(i,o,c.options.easing).animate(r,o,c.options.easing,function(){b=="hide"&&f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(f[0],arguments);f.dequeue()})})}})(jQuery);
(function(a){a.effects.highlight=function(c){return this.queue(function(){var f=a(this),d=["backgroundImage","backgroundColor","opacity"],b=a.effects.setMode(f,c.options.mode||"show"),e={backgroundColor:f.css("backgroundColor")};if(b=="hide")e.opacity=0;a.effects.save(f,d);f.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(e,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&f.hide();a.effects.restore(f,d);b=="show"&&!a.support.opacity&&
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(a){a.effects.pulsate=function(c){return this.queue(function(){var f=a(this),d=a.effects.setMode(f,c.options.mode||"show");times=(c.options.times||5)*2-1;duration=c.duration?c.duration/2:a.fx.speeds._default/2;isVisible=f.is(":visible");animateTo=0;if(!isVisible){f.css("opacity",0).show();animateTo=1}if(d=="hide"&&isVisible||d=="show"&&!isVisible)times--;for(d=0;d<times;d++){f.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}f.animate({opacity:animateTo},duration,
c.options.easing,function(){animateTo==0&&f.hide();c.callback&&c.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()}).dequeue()})}})(jQuery);
(function(a){a.effects.puff=function(c){return this.queue(function(){var f=a(this),d=a.effects.setMode(f,c.options.mode||"hide"),b=parseInt(c.options.percent,10)||150,e=b/100,i={height:f.height(),width:f.width()};a.extend(c.options,{fade:true,mode:d,percent:d=="hide"?b:100,from:d=="hide"?i:{height:i.height*e,width:i.width*e}});f.effect("scale",c.options,c.duration,c.callback);f.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var f=a(this),d=a.extend(true,{},c.options),b=a.effects.setMode(f,
c.options.mode||"effect"),e=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:b=="hide"?0:100),i=c.options.direction||"both",o=c.options.origin;if(b!="effect"){d.origin=o||["middle","center"];d.restore=true}o={height:f.height(),width:f.width()};f.from=c.options.from||(b=="show"?{height:0,width:0}:o);e={y:i!="horizontal"?e/100:1,x:i!="vertical"?e/100:1};f.to={height:o.height*e.y,width:o.width*e.x};if(c.options.fade){if(b=="show"){f.from.opacity=0;f.to.opacity=1}if(b=="hide"){f.from.opacity=
1;f.to.opacity=0}}d.from=f.from;d.to=f.to;d.mode=b;f.effect("size",d,c.duration,c.callback);f.dequeue()})};a.effects.size=function(c){return this.queue(function(){var f=a(this),d=["position","top","left","width","height","overflow","opacity"],b=["position","top","left","overflow","opacity"],e=["width","height","overflow"],i=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],m=a.effects.setMode(f,
c.options.mode||"effect"),l=c.options.restore||false,r=c.options.scale||"both",u=c.options.origin,w={height:f.height(),width:f.width()};f.from=c.options.from||w;f.to=c.options.to||w;if(u){u=a.effects.getBaseline(u,w);f.from.top=(w.height-f.from.height)*u.y;f.from.left=(w.width-f.from.width)*u.x;f.to.top=(w.height-f.to.height)*u.y;f.to.left=(w.width-f.to.width)*u.x}var x={from:{y:f.from.height/w.height,x:f.from.width/w.width},to:{y:f.to.height/w.height,x:f.to.width/w.width}};if(r=="box"||r=="both"){if(x.from.y!=
x.to.y){d=d.concat(o);f.from=a.effects.setTransition(f,o,x.from.y,f.from);f.to=a.effects.setTransition(f,o,x.to.y,f.to)}if(x.from.x!=x.to.x){d=d.concat(n);f.from=a.effects.setTransition(f,n,x.from.x,f.from);f.to=a.effects.setTransition(f,n,x.to.x,f.to)}}if(r=="content"||r=="both")if(x.from.y!=x.to.y){d=d.concat(i);f.from=a.effects.setTransition(f,i,x.from.y,f.from);f.to=a.effects.setTransition(f,i,x.to.y,f.to)}a.effects.save(f,l?d:b);f.show();a.effects.createWrapper(f);f.css("overflow","hidden").css(f.from);
if(r=="content"||r=="both"){o=o.concat(["marginTop","marginBottom"]).concat(i);n=n.concat(["marginLeft","marginRight"]);e=d.concat(o).concat(n);f.find("*[width]").each(function(){child=a(this);l&&a.effects.save(child,e);var h={height:child.height(),width:child.width()};child.from={height:h.height*x.from.y,width:h.width*x.from.x};child.to={height:h.height*x.to.y,width:h.width*x.to.x};if(x.from.y!=x.to.y){child.from=a.effects.setTransition(child,o,x.from.y,child.from);child.to=a.effects.setTransition(child,
o,x.to.y,child.to)}if(x.from.x!=x.to.x){child.from=a.effects.setTransition(child,n,x.from.x,child.from);child.to=a.effects.setTransition(child,n,x.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){l&&a.effects.restore(child,e)})})}f.animate(f.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){f.to.opacity===0&&f.css("opacity",f.from.opacity);m=="hide"&&f.hide();a.effects.restore(f,l?d:b);a.effects.removeWrapper(f);c.callback&&
c.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(a){a.effects.shake=function(c){return this.queue(function(){var f=a(this),d=["position","top","left"];a.effects.setMode(f,c.options.mode||"effect");var b=c.options.direction||"left",e=c.options.distance||20,i=c.options.times||3,o=c.duration||c.options.duration||140;a.effects.save(f,d);f.show();a.effects.createWrapper(f);var n=b=="up"||b=="down"?"top":"left",m=b=="up"||b=="left"?"pos":"neg";b={};var l={},r={};b[n]=(m=="pos"?"-=":"+=")+e;l[n]=(m=="pos"?"+=":"-=")+e*2;r[n]=(m=="pos"?"-=":"+=")+
e*2;f.animate(b,o,c.options.easing);for(e=1;e<i;e++)f.animate(l,o,c.options.easing).animate(r,o,c.options.easing);f.animate(l,o,c.options.easing).animate(b,o/2,c.options.easing,function(){a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(this,arguments)});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);
(function(a){a.effects.slide=function(c){return this.queue(function(){var f=a(this),d=["position","top","left"],b=a.effects.setMode(f,c.options.mode||"show"),e=c.options.direction||"left";a.effects.save(f,d);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var i=e=="up"||e=="down"?"top":"left";e=e=="up"||e=="left"?"pos":"neg";var o=c.options.distance||(i=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(b=="show")f.css(i,e=="pos"?-o:o);var n={};n[i]=(b=="show"?e=="pos"?
"+=":"-=":e=="pos"?"-=":"+=")+o;f.animate(n,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){b=="hide"&&f.hide();a.effects.restore(f,d);a.effects.removeWrapper(f);c.callback&&c.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);
(function(a){a.effects.transfer=function(c){return this.queue(function(){var f=a(this),d=a(c.options.to),b=d.offset();d={top:b.top,left:b.left,height:d.innerHeight(),width:d.innerWidth()};b=f.offset();var e=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:b.top,left:b.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(d,c.duration,c.options.easing,function(){e.remove();c.callback&&c.callback.apply(f[0],arguments);
f.dequeue()})})}})(jQuery);
(function(a){a.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(c,f){this.defaults.type=c;this.defaults.name=f},get:function(c,f){var d=a.extend({},this.defaults,f);if(!d.single.length)d.single="metadata";var b=a.data(c,d.single);if(b)return b;b="{}";var e=function(n){if(typeof n!="string")return n;return n=eval("("+n+")")};if(d.type=="html5"){var i={};a(c.attributes).each(function(){var n=this.nodeName;if(n.match(/^data-/))n=n.replace(/^data-/,
"");else return true;i[n]=e(this.nodeValue)})}else{if(d.type=="class"){var o=d.cre.exec(c.className);if(o)b=o[1]}else if(d.type=="elem"){if(!c.getElementsByTagName)return;o=c.getElementsByTagName(d.name);if(o.length)b=a.trim(o[0].innerHTML)}else if(c.getAttribute!=undefined)if(o=c.getAttribute(d.name))b=o;i=e(b.indexOf("{")<0?"{"+b+"}":b)}a.data(c,d.single,i);return i}}});a.fn.metadata=function(c){return a.metadata.get(this[0],c)}})(jQuery);
jQuery.browser.mozilla&&$(function(){$("form.cmxform").hide().find("dt>label:not(.nocmx):not(.error)").each(function(){var a=$(this),c=a.html(),f=document.defaultView.getComputedStyle(this,"").getPropertyValue("width");c=$("<span>").css("display","block").width(f).html(c);a.css("display","-moz-inline-box").empty().append(c)}).end().show()});
this.JSON||(JSON=function(){function a(m){return m<10?"0"+m:m}function c(m){b.lastIndex=0;return b.test(m)?'"'+m.replace(b,function(l){var r=o[l];if(typeof r==="string")return r;return"\\u"+("0000"+(+l.charCodeAt(0)).toString(16)).slice(-4)})+'"':'"'+m+'"'}function f(m,l){var r,u,w,x,h=e,H,B=l[m];if(B&&typeof B==="object"&&typeof B.toJSON==="function")B=B.toJSON(m);if(typeof n==="function")B=n.call(l,m,B);switch(typeof B){case "string":return c(B);case "number":return isFinite(B)?String(B):"null";
case "boolean":case "null":return String(B);case "object":if(!B)return"null";e+=i;H=[];if(typeof B.length==="number"&&!B.propertyIsEnumerable("length")){x=B.length;for(r=0;r<x;r+=1)H[r]=f(r,B)||"null";w=H.length===0?"[]":e?"[\n"+e+H.join(",\n"+e)+"\n"+h+"]":"["+H.join(",")+"]";e=h;return w}if(n&&typeof n==="object"){x=n.length;for(r=0;r<x;r+=1){u=n[r];if(typeof u==="string")if(w=f(u,B))H.push(c(u)+(e?": ":":")+w)}}else for(u in B)if(Object.hasOwnProperty.call(B,u))if(w=f(u,B))H.push(c(u)+(e?": ":
":")+w);w=H.length===0?"{}":e?"{\n"+e+H.join(",\n"+e)+"\n"+h+"}":"{"+H.join(",")+"}";e=h;return w}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
b=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e,i,o={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},n;return{stringify:function(m,l,r){var u;i=e="";if(typeof r==="number")for(u=0;u<r;u+=1)i+=" ";else if(typeof r==="string")i=r;if((n=l)&&typeof l!=="function"&&(typeof l!=="object"||typeof l.length!=="number"))throw Error("JSON.stringify");return f("",{"":m})},parse:function(m,l){function r(w,
x){var h,H,B=w[x];if(B&&typeof B==="object")for(h in B)if(Object.hasOwnProperty.call(B,h)){H=r(B,h);if(H!==undefined)B[h]=H;else delete B[h]}return l.call(w,x,B)}var u;d.lastIndex=0;if(d.test(m))m=m.replace(d,function(w){return"\\u"+("0000"+(+w.charCodeAt(0)).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(m.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){u=eval("("+m+")");return typeof l===
"function"?r({"":u},""):u}throw new SyntaxError("JSON.parse");}}}());
(function(a){a.jsonrpc=function(c){return new (function(f){var d=this;this.options=jQuery.extend({url:"",version:"",async:false,error:function(){throw"unable to complete rpc request";},success:null,start:null},f);this.sequence=1;this.error=false;this.strstr=function(b,e,i){var o=0;b+="";o=b.indexOf(e);return o==-1?false:i?b.substr(0,o):b.slice(o)};this.isset=function(){var b=arguments,e=b.length,i=0;if(e===0)throw"Empty isset";for(;i!==e;)if(typeof b[i]=="undefined"||b[i]===null)return false;else i++;
return true};this.call_array=function(b,e){var i=d.sequence++,o=[];jQuery.ajax({async:d.options.async,contentType:"application/json",type:d.options.transport,processData:false,dataType:"json",url:d.options.url,cache:false,data:JSON.stringify(d.options.version==1?{method:b,params:e,id:i}:{jsonrpc:"2.0",method:b,params:e,id:i}),beforeSend:function(){typeof d.options.start=="function"&&d.options.start()},error:function(n,m,l){typeof d.options.error=="function"&&d.options.error(n,m,l)},success:function(n){try{if(n.id!=
i)throw"Rpc Security Error: The response id does not match with the request id. (Request: "+i+", Response: "+n.id+")";if(d.isset(n.error))throw"Rpc Error "+n.error.code+": "+n.error.message;o=n.result;typeof d.options.success=="function"&&d.options.success(o)}catch(m){typeof d.options.error=="function"&&d.options.error(m)}}});return o};this.call=function(){var b=[];if(arguments.length==0)throw"First parameter is required.";for(var e=1;e<arguments.length;e++)b.push(arguments[e]);e=arguments[0];try{return this.call_array(e,
b)}catch(i){throw i;}};jQuery.ajax({async:d.options.async,contentType:"application/json",type:"get",processData:false,dataType:"json",url:d.options.url,cache:false,error:function(b,e){d.error=true;d.error_message=e;d.error_request=b},success:function(b){if(d.isset(b.methods)){if(!d.options.version)d.options.version=b.envelope=="JSON-RPC-1.0"?1:2;d.options.transport=b.transport;jQuery.each(b.methods,function(e){var i=d,o=e;if(d.strstr(e,".")){o=e.split(".");for(var n=0;n<o.length-1;n++){d.isset(i[o[n]])||
(i[o[n]]={});i=i[o[n]]}o=o[o.length-1]}i[o]=function(){for(var m=[],l=0;l<arguments.length;l++)m.push(arguments[l]);try{return d.call_array(e,m)}catch(r){throw r;}}})}else d.options.transport="post"}});return this})(c)}})(jQuery);
(function(a){var c=[],f="",d="Ok",b="Close",e=false,i=null,o=null;a.getAbModuleContainer=function(n){var m=null;return m=a("."+n+"_ModuleContainer").length>0?a("."+n+"_ModuleContainer"):a("#zone_"+n+"_Table").length>0?a("#zone_"+n+"_Table"):null};a.errorMessage=function(n,m,l,r){var u={theme:"ErrorMessage",sticky:true};if(r!=null){u.sticky=false;u.life=r}if(m!=null)u.header=m;if(l!=null)u.close=l;a.jGrowl(n,u)};a.okMessage=function(n,m,l,r){var u={theme:"OKMessage"};u.life=r!=null?r:2E3;if(m!=null)u.header=
m;if(l!=null)u.close=l;a.jGrowl(n,u)};a.pleaseWait=function(n,m,l,r){if(m==null)m="Please Wait";n={message:'<img src="'+n+'images/loading.gif" /> '+m,forceIframe:true,overlayCSS:{"z-index":"10000"},css:{"z-index":"10001",padding:"15px","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:0.5}};if(r!=null)n.onBlock=r;l==null?a.blockUI(n):a(l).block(n)};a.multiLanguageOrganizeTabs=function(n){var m=0;if(typeof SystemLocales!="undefined"&&typeof SystemCurrentLocale!="undefined")for(var l=
0;l<SystemLocales.length;l++)if(SystemLocales[l]==SystemCurrentLocale){m=l;break}n&&a(".multiLanguageTabsEditor .EditorArea").not(".DisabledAuto").each(function(){startTinyMCE(this.id)});a(".multiLanguageTabs, .multiLanguageTabsEditor").not(".alreadyTab").each(function(){n||a(this).hasClass("multiLanguageTabsEditor")&&startTinyMCE(this.id);a(this).tabs({event:"mouseover",selected:m}).addClass("alreadyTab")})};a.jrpc=function(n){n||(n="");if(i==null){i=a.jsonrpc({url:n+"jsonrpc.php"});o=n}return i};
a.jrpcOnStart=function(n){i.options.start=typeof n=="function"?n:null};a.jrpcOnEnd=function(n){i.options.success=typeof n=="function"?n:null};a.jrpcRevert=function(){i=a.jsonrpc({url:o+"jsonrpc.php"})};a.jrpcAsync=function(n){i.options.async=n};a.jrpcConfig=function(n){if(n!=null)for(var m in n)if(m=="start")a.jrpcOnStart(n[m]);else if(m=="end")a.jrpcOnEnd(n[m]);else if(m=="async")a.jrpcAsync(n[m]);else{if(m=="error")i.options.error=n[m]}else{a.jrpcOnStart(null);a.jrpcOnEnd(null);a.jrpcAsync(false);
i.options.error=function(){throw"unable to complete rpc request";}}};a.animateModuleButtons=function(n){var m=a.getAbModuleContainer(n);if(m!==null)if(m.find(".moduleButtons").length>0){m.find(".moduleButtons").hide();m.hover(function(){m.find(".moduleButtons").animate({opacity:"show"},200)},function(){m.find(".moduleButtons").animate({opacity:"hide"},200)})}};a(function(){a.multiLanguageOrganizeTabs(true);a(".moduleButtons").hide()});a.strstr=function(n,m,l){var r=0;n+="";r=n.indexOf(m);return r==
-1?false:l?n.substr(0,r):n.slice(r)};a.isset=function(){var n=arguments,m=n.length,l=0;if(m===0)throw"Empty isset";for(;l!==m;)if(typeof n[l]=="undefined"||n[l]===null)return false;else l++;return true};a.fn.center=function(){this.css("position","absolute");this.css("top",(a(window).height()-this.height())/2+a(window).scrollTop()+"px");this.css("left",(a(window).width()-this.width())/2+a(window).scrollLeft()+"px");return this};a.fn.centerTo=function(n){this.css("position","relative");this.css("top",
(a(n).height()-this.height())/2+"px");this.css("left",(a(n).width()-this.width())/2+"px");return this};a.arrayIndexOf=function(n,m){if(typeof Array.prototype.indexOf=="undefined"){for(var l in n)if(n[l]==m)return l;return-1}else return n.indexOf(m)};a.Localize=function(n,m,l,r){if(e)throw"System has already been localized.";if(!a.isArray(n))throw"locales must be an array";if(a.inArray(m,n)<0)throw"the current locale must be in the locales array";c=n;f=m;d=l;b=r;e=true};a.getLocalized=function(n){if(!e)throw"System must be localized before using this";
if(n==null)return{locales:c,current:f,okText:d,closeText:b};n+="";switch(n.toLowerCase()){case "locales":return c;case "current":return f;case "oktext":return d;case "closetext":return b;case "all":return a.getLocalized(null);default:throw"Invalid option "+n;}};a.fn.extend({tooltip:function(){this.each(function(){var n;if(a.trim(a(this).attr("title"))!=""){n=a(this).attr("title");a(this).removeAttr("title")}else if(a.trim(a(this).data("tooltip"))!="")n=a(this).data("tooltip");n!=null&&a(this).hover(function(){return overlib('<div align="left">'+
n+"</div>",FULLHTML)},function(){return nd()})});return this}});a(function(){a("#overDiv").remove();a("body").prepend('<div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>')})})(jQuery);
(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var f=function(b){return b&&b.constructor==Number?b+"px":b},d='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
f(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":f(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":f(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":f(c.height))+';"/>';return this.each(function(){a("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(d),this.firstChild)})}return this}})(jQuery);
(function(a){var c=1;a.fn.fileChooser=function(f){f=a.extend({},{relPath:"/AbCore/",multiSelect:false,windowId:"auto",title:"File Chooser",onSelection:null,appendStart:null,filter:"all"},f);if(f.windowId=="auto")if(typeof this.id!="undefined")if(a.trim(this.id)!="")f.windowId=this.id+"_filemanager";if(f.windowId=="auto"){var d=c++;f.windowId="filemanager_"+d}if(f.filter.toLowerCase().indexOf("all")!=-1)f.filter="all";var b=new (function(i,o){var n=function(m){return typeof m=="object"&&typeof m.length==
"number"&&!m.propertyIsEnumerable("length")&&typeof m.splice=="function"};this.idx=0;this.obj=a(i);this.settings=o;this.setValue=function(m){this.obj.is("input")?this.obj.val(m):this.obj.text(m)};this.start=function(){var m=this.idx++,l=this,r=this.settings.relPath+"includes/FileManager/index.php?embedded=1";if(this.settings.filter!="all")r+="&filter="+this.settings.filter;a("body").append('<div id="'+this.settings.windowId+""+m+'" title="'+this.settings.title+'"></div>');a("#"+this.settings.windowId+
""+m).append('<iframe style="width: 100%; height: 100%; border: 0px none;" src="'+r+'" border="0" frameborder="0"></iframe>');a("#"+this.settings.windowId+""+m).dialog({bgiframe:true,autoOpen:true,width:882,height:510,modal:true});window.setFile=function(u){var w;if(n(u)&&l.settings.multiSelect)w=u;else if(n(u)&&!l.settings.multiSelect){if(u.length>=1)w=u[0]}else w=u;typeof l.settings.onSelection=="function"?l.settings.onSelection(l,w):l.setValue(w)};window.closeFileChooser=function(){l.end(m)}};
this.end=function(m){a("#"+this.settings.windowId+""+m).dialog("destroy");a("#"+this.settings.windowId+""+m).remove();delete window.closeFileChooser;delete window.setFile}})(this,f);d=a(this).parent();if(f.appendStart!=null)d=a(f.appendStart);var e=a('<a href="Javascript: ;" title="'+f.title+'"></a>');e.append('<img src="'+f.relPath+'images/filechooser.gif" title="'+f.title+'" alt="'+f.title+'" border="0" />');e.click(function(){b.start()});e.appendTo(d)}})(jQuery);
(function(a){function c(x,h){var H=x==window,B=h&&h.message!==undefined?h.message:undefined;h=a.extend({},a.blockUI.defaults,h||{});h.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,h.overlayCSS||{});var A=a.extend({},a.blockUI.defaults.css,h.css||{}),N=a.extend({},a.blockUI.defaults.themedCSS,h.themedCSS||{});B=B===undefined?h.message:B;H&&u&&f(window,{fadeOut:0});if(B&&typeof B!="string"&&(B.parentNode||B.jquery)){var P=B.jquery?B[0]:B,Q={};a(x).data("blockUI.history",Q);Q.el=P;Q.parent=P.parentNode;
Q.display=P.style.display;Q.position=P.style.position;Q.parent&&Q.parent.removeChild(P)}Q=h.baseZ;var Y=a.browser.msie||h.forceIframe?a('<iframe class="blockUI" style="z-index:'+Q++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"></iframe>'):a('<div class="blockUI" style="display:none"></div>');P=a('<div class="blockUI blockOverlay" style="z-index:'+Q++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
Q=a(h.theme&&H?'<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+Q+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(h.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>':h.theme?'<div class="blockUI blockMsg blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+Q+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(h.title||
"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>':H?'<div class="blockUI blockMsg blockPage" style="z-index:'+Q+';display:none;position:fixed"></div>':'<div class="blockUI blockMsg blockElement" style="z-index:'+Q+';display:none;position:absolute"></div>');if(B)if(h.theme){Q.css(N);Q.addClass("ui-widget-content")}else Q.css(A);if(!h.applyPlatformOpacityRules||!(a.browser.mozilla&&/Linux/.test(navigator.platform)))P.css(h.overlayCSS);P.css("position",H?"fixed":"absolute");
if(a.browser.msie||h.forceIframe)Y.css("opacity",0);A=[Y,P,Q];var U=H?a("body"):a(x);a.each(A,function(){this.appendTo(U)});h.theme&&h.draggable&&a.fn.draggable&&Q.draggable({handle:".ui-dialog-titlebar",cancel:"li"});A=l&&(!a.boxModel||a("object,embed",H?null:x).length>0);if(r||A){H&&h.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((r||!a.boxModel)&&!H){A=parseInt(a.css(x,"borderTopWidth"))||0;N=parseInt(a.css(x,"borderLeftWidth"))||0;var ba=A?"(0 - "+A+")":0,ha=N?"(0 - "+N+
")":0}a.each([Y,P,Q],function(pa,ia){var Z=ia[0].style;Z.position="absolute";if(pa<2){H?Z.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):Z.setExpression("height",'this.parentNode.offsetHeight + "px"');H?Z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):Z.setExpression("width",'this.parentNode.offsetWidth + "px"');ha&&Z.setExpression("left",
ha);ba&&Z.setExpression("top",ba)}else if(h.centerY){H&&Z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');Z.marginTop=0}else if(!h.centerY&&H){var ka="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(h.css&&h.css.top?parseInt(h.css.top):0)+') + "px"';Z.setExpression("top",
ka)}})}if(B){h.theme?Q.find(".ui-widget-content").append(B):Q.append(B);if(B.jquery||B.nodeType)a(B).show()}if((a.browser.msie||h.forceIframe)&&h.showOverlay)Y.show();if(h.fadeIn){A=h.onBlock?h.onBlock:n;Y=h.showOverlay&&!B?A:n;A=B?A:n;h.showOverlay&&P._fadeIn(h.fadeIn,Y);B&&Q._fadeIn(h.fadeIn,A)}else{h.showOverlay&&P.show();B&&Q.show();h.onBlock&&h.onBlock()}b(1,x,h);if(H){u=Q[0];w=a(":input:enabled:visible",u);h.focusInput&&setTimeout(i,20)}else o(Q[0],h.centerX,h.centerY);if(h.timeout){B=setTimeout(function(){H?
a.unblockUI(h):a(x).unblock(h)},h.timeout);a(x).data("blockUI.timeout",B)}}function f(x,h){var H=x==window,B=a(x),A=B.data("blockUI.history"),N=B.data("blockUI.timeout");if(N){clearTimeout(N);B.removeData("blockUI.timeout")}h=a.extend({},a.blockUI.defaults,h||{});b(0,x,h);var P;P=H?a("body").children().filter(".blockUI").add("body > .blockUI"):a(".blockUI",x);if(H)u=w=null;if(h.fadeOut){P.fadeOut(h.fadeOut);setTimeout(function(){d(P,A,h,x)},h.fadeOut)}else d(P,A,h,x)}function d(x,h,H,B){x.each(function(){this.parentNode&&
this.parentNode.removeChild(this)});if(h&&h.el){h.el.style.display=h.display;h.el.style.position=h.position;h.parent&&h.parent.appendChild(h.el);a(B).removeData("blockUI.history")}typeof H.onUnblock=="function"&&H.onUnblock(B,H)}function b(x,h,H){var B=h==window;h=a(h);if(!(!x&&(B&&!u||!B&&!h.data("blockUI.isBlocked")))){B||h.data("blockUI.isBlocked",x);!H.bindEvents||x&&!H.showOverlay||(x?a(document).bind("mousedown mouseup keydown keypress",H,e):a(document).unbind("mousedown mouseup keydown keypress",
e))}}function e(x){if(x.keyCode&&x.keyCode==9)if(u&&x.data.constrainTabKey){var h=w,H=x.shiftKey&&x.target==h[0];if(!x.shiftKey&&x.target==h[h.length-1]||H){setTimeout(function(){i(H)},10);return false}}if(a(x.target).parents("div.blockMsg").length>0)return true;return a(x.target).parents().children().filter("div.blockUI").length==0}function i(x){if(w)(x=w[x===true?w.length-1:0])&&x.focus()}function o(x,h,H){var B=x.parentNode,A=x.style,N=(B.offsetWidth-x.offsetWidth)/2-(parseInt(a.css(B,"borderLeftWidth"))||
0);x=(B.offsetHeight-x.offsetHeight)/2-(parseInt(a.css(B,"borderTopWidth"))||0);if(h)A.left=N>0?N+"px":"0";if(H)A.top=x>0?x+"px":"0"}if(/1\.(0|1|2)\.(0|1|2)/.test(a.fn.jquery)||/^1.1/.test(a.fn.jquery))alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+a.fn.jquery);else{a.fn._fadeIn=a.fn.fadeIn;var n=function(){},m=document.documentMode||0,l=a.browser.msie&&(a.browser.version<8&&!m||m<8),r=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!m;a.blockUI=function(x){c(window,x)};a.unblockUI=
function(x){f(window,x)};a.growlUI=function(x,h,H,B){var A=a('<div class="growlUI"></div>');x&&A.append("<h1>"+x+"</h1>");h&&A.append("<h2>"+h+"</h2>");if(H==undefined)H=3E3;a.blockUI({message:A,fadeIn:700,fadeOut:1E3,centerY:false,timeout:H,showOverlay:false,onUnblock:B,css:a.blockUI.defaults.growlCSS})};a.fn.block=function(x){return this.unblock({fadeOut:0}).each(function(){if(a.css(this,"position")=="static")this.style.position="relative";if(a.browser.msie)this.style.zoom=1;c(this,x)})};a.fn.unblock=
function(x){return this.each(function(){f(this,x)})};a.blockUI.version=2.33;a.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",
opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1E3,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4};var u=null,
w=[]}})(jQuery);
(function(a){a.jGrowl=function(c,f){a("#jGrowl").size()==0&&a('<div id="jGrowl"></div>').addClass(a.jGrowl.defaults.position).appendTo("body");a("#jGrowl").jGrowl(c,f)};a.fn.jGrowl=function(c,f){if(a.isFunction(this.each)){var d=arguments;return this.each(function(){if(a(this).data("jGrowl.instance")==undefined){a(this).data("jGrowl.instance",new a.fn.jGrowl);a(this).data("jGrowl.instance").startup(this)}a.isFunction(a(this).data("jGrowl.instance")[c])?a(this).data("jGrowl.instance")[c].apply(a(this).data("jGrowl.instance"),a.makeArray(d).slice(1)):
a(this).data("jGrowl.instance").create(c,f)})}};a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:false,position:"top-right",glue:"after",theme:"default",corners:"10px",check:250,life:3E3,speed:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],
element:null,interval:null,create:function(c,f){f=a.extend({},this.defaults,f);this.notifications[this.notifications.length]={message:c,options:f};f.log.apply(this.element,[this.element,c,f])},render:function(c){var f=this,d=c.message,b=c.options;c=a('<div class="jGrowl-notification'+(b.group!=undefined&&b.group!=""?" "+b.group:"")+'"><div class="close">'+b.closeTemplate+'</div><div class="header">'+b.header+'</div><div class="message">'+d+"</div></div>").data("jGrowl",b).addClass(b.theme).children("div.close").bind("click.jGrowl",
function(){a(this).parent().trigger("jGrowl.close")}).parent();b.glue=="after"?a("div.jGrowl-notification:last",this.element).after(c):a("div.jGrowl-notification:first",this.element).before(c);a(c).bind("mouseover.jGrowl",function(){a(this).data("jGrowl").pause=true}).bind("mouseout.jGrowl",function(){a(this).data("jGrowl").pause=false}).bind("jGrowl.beforeOpen",function(){b.beforeOpen.apply(f.element,[f.element,d,b])}).bind("jGrowl.open",function(){b.open.apply(f.element,[f.element,d,b])}).bind("jGrowl.beforeClose",
function(){b.beforeClose.apply(f.element,[f.element,d,b])}).bind("jGrowl.close",function(){a(this).trigger("jGrowl.beforeClose").animate(b.animateClose,b.speed,b.easing,function(){a(this).remove();b.close.apply(f.element,[f.element,d,b])})}).trigger("jGrowl.beforeOpen").animate(b.animateOpen,b.speed,b.easing,function(){a(this).data("jGrowl").created=new Date}).trigger("jGrowl.open");a.fn.corner!=undefined&&a(c).corner(b.corners);a("div.jGrowl-notification:parent",this.element).size()>1&&a("div.jGrowl-closer",
this.element).size()==0&&this.defaults.closer!=false&&a(this.defaults.closerTemplate).addClass("jGrowl-closer").addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().children("div.close").trigger("click.jGrowl");a.isFunction(f.defaults.closer)&&f.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])})},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){if(a(this).data("jGrowl")!=
undefined&&a(this).data("jGrowl").created!=undefined&&a(this).data("jGrowl").created.getTime()+a(this).data("jGrowl").life<(new Date).getTime()&&a(this).data("jGrowl").sticky!=true&&(a(this).data("jGrowl").pause==undefined||a(this).data("jGrowl").pause!=true))a(this).trigger("jGrowl.close")});if(this.notifications.length>0&&(this.defaults.pool==0||a(this.element).find("div.jGrowl-notification:parent").size()<this.defaults.pool))this.render(this.notifications.shift());a(this.element).find("div.jGrowl-notification:parent").size()<
2&&a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})},startup:function(c){this.element=a(c).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){jQuery(c).data("jGrowl.instance").update()},this.defaults.check);a.browser.msie&&parseInt(a.browser.version)<7&&!window.XMLHttpRequest&&a(this.element).addClass("ie6")},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();
clearInterval(this.interval)}});a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);var olLoaded=0;var pmStart=1E7;var pmUpper=10001E3;var pmCount=pmStart+1;var pmt="";var pms=new Array;var olInfo=new Info("4.21",1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array,postParse=new Array,cmdLine=new Array,runTime=new Array;registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");
if(typeof ol_fgcolor=="undefined")var ol_fgcolor="#CCCCFF";if(typeof ol_bgcolor=="undefined")var ol_bgcolor="#333399";if(typeof ol_textcolor=="undefined")var ol_textcolor="#000000";if(typeof ol_capcolor=="undefined")var ol_capcolor="#FFFFFF";if(typeof ol_closecolor=="undefined")var ol_closecolor="#9999FF";if(typeof ol_textfont=="undefined")var ol_textfont="Verdana,Arial,Helvetica";if(typeof ol_captionfont=="undefined")var ol_captionfont="Verdana,Arial,Helvetica";
if(typeof ol_closefont=="undefined")var ol_closefont="Verdana,Arial,Helvetica";if(typeof ol_textsize=="undefined")var ol_textsize="1";if(typeof ol_captionsize=="undefined")var ol_captionsize="1";if(typeof ol_closesize=="undefined")var ol_closesize="1";if(typeof ol_width=="undefined")var ol_width="200";if(typeof ol_border=="undefined")var ol_border="1";if(typeof ol_cellpad=="undefined")var ol_cellpad=2;if(typeof ol_offsetx=="undefined")var ol_offsetx=10;
if(typeof ol_offsety=="undefined")var ol_offsety=10;if(typeof ol_text=="undefined")var ol_text="Default Text";if(typeof ol_cap=="undefined")var ol_cap="";if(typeof ol_sticky=="undefined")var ol_sticky=0;if(typeof ol_background=="undefined")var ol_background="";if(typeof ol_close=="undefined")var ol_close="Close";if(typeof ol_hpos=="undefined")var ol_hpos=RIGHT;if(typeof ol_status=="undefined")var ol_status="";if(typeof ol_autostatus=="undefined")var ol_autostatus=0;
if(typeof ol_height=="undefined")var ol_height=-1;if(typeof ol_snapx=="undefined")var ol_snapx=0;if(typeof ol_snapy=="undefined")var ol_snapy=0;if(typeof ol_fixx=="undefined")var ol_fixx=-1;if(typeof ol_fixy=="undefined")var ol_fixy=-1;if(typeof ol_relx=="undefined")var ol_relx=null;if(typeof ol_rely=="undefined")var ol_rely=null;if(typeof ol_fgbackground=="undefined")var ol_fgbackground="";if(typeof ol_bgbackground=="undefined")var ol_bgbackground="";
if(typeof ol_padxl=="undefined")var ol_padxl=1;if(typeof ol_padxr=="undefined")var ol_padxr=1;if(typeof ol_padyt=="undefined")var ol_padyt=1;if(typeof ol_padyb=="undefined")var ol_padyb=1;if(typeof ol_fullhtml=="undefined")var ol_fullhtml=0;if(typeof ol_vpos=="undefined")var ol_vpos=BELOW;if(typeof ol_aboveheight=="undefined")var ol_aboveheight=0;if(typeof ol_capicon=="undefined")var ol_capicon="";if(typeof ol_frame=="undefined")var ol_frame=self;if(typeof ol_timeout=="undefined")var ol_timeout=0;
if(typeof ol_function=="undefined")var ol_function=null;if(typeof ol_delay=="undefined")var ol_delay=0;if(typeof ol_hauto=="undefined")var ol_hauto=0;if(typeof ol_vauto=="undefined")var ol_vauto=0;if(typeof ol_closeclick=="undefined")var ol_closeclick=0;if(typeof ol_wrap=="undefined")var ol_wrap=0;if(typeof ol_followmouse=="undefined")var ol_followmouse=1;if(typeof ol_mouseoff=="undefined")var ol_mouseoff=0;if(typeof ol_closetitle=="undefined")var ol_closetitle="Close";
if(typeof ol_compatmode=="undefined")var ol_compatmode=0;if(typeof ol_css=="undefined")var ol_css=CSSOFF;if(typeof ol_fgclass=="undefined")var ol_fgclass="";if(typeof ol_bgclass=="undefined")var ol_bgclass="";if(typeof ol_textfontclass=="undefined")var ol_textfontclass="";if(typeof ol_captionfontclass=="undefined")var ol_captionfontclass="";if(typeof ol_closefontclass=="undefined")var ol_closefontclass="";if(typeof ol_texts=="undefined")var ol_texts=new Array("Text 0","Text 1");
if(typeof ol_caps=="undefined")var ol_caps=new Array("Caption 0","Caption 1");var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;
var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;
var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;var o3_mouseoff=0;var o3_closetitle="";var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=navigator.userAgent.indexOf("Mac")!=-1;
var olOp=navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode;var olNs4=navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4;var olNs6=document.getElementById?true:false;var olKq=olNs6&&/konqueror/i.test(navigator.userAgent);var olIe4=document.all?true:false;var olIe5=false;var olIe55=false;var docRoot="document.body";if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight)location.reload()}}
if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=versNum>=5.5&&!olOp?true:false;if(olNs6)olNs6=false}}if(olNs6)olIe4=false}if(document.compatMode&&document.compatMode=="CSS1Compat")docRoot=olIe4&&!olOp?"document.documentElement":docRoot;if(window.addEventListener)window.addEventListener("load",OLonLoad_handler,false);else if(window.attachEvent)window.attachEvent("onload",OLonLoad_handler);
var capExtent;
function overlib(){if(!olLoaded||isExclusive(overlib.arguments))return true;if(olCheckMouseCapture)olMouseCapture();if(over){over=typeof over.id!="string"?o3_frame.document.all["overDiv"]:over;cClick()}olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=
ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;
o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=
ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer()))return false;parseTokens("o3_",overlib.arguments);if(!postParseChecks())return false;if(o3_delay==0)return runHook("olMain",FREPLACE);else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false}}
function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time);if(o3_removecounter>=1)o3_showingsticky=0;if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0)runHook("hideObject",FREPLACE,over)}else o3_removecounter++}return true}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0}return false}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments)}
function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml)layerhtml=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);else{styleType=pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass";if(o3_fgbackground!="")o3_fgbackground='background="'+o3_fgbackground+'"';if(o3_bgbackground!="")o3_bgbackground=styleType?'background="'+o3_bgbackground+'"':o3_bgbackground;if(o3_fgcolor!="")o3_fgcolor=styleType?'bgcolor="'+
o3_fgcolor+'"':o3_fgcolor;if(o3_bgcolor!="")o3_bgcolor=styleType?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor;if(o3_height>0)o3_height=styleType?'height="'+o3_height+'"':o3_height;else o3_height="";if(o3_cap=="")layerhtml=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text);else if(o3_sticky)layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close);else layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"")}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);
o3_timerid=0}o3_showingsticky=1;o3_removecounter=0}if(!runHook("createPopup",FREPLACE,layerhtml))return false;if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1)o3_status=o3_cap}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout)}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return olOp&&event&&event.type=="mouseover"&&!o3_status?"":o3_status!=""}
function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+(olNs4||!cpIsMultiple?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+
'">':!olNs4&&cpIsMultiple?' style="'+setCellPadStr(o3_cellpad)+'">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return txt}
function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent;closing="";closeevent="onmouseover";if(o3_closeclick==1)closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";if(o3_capicon!=""){nameId=' hspace = "5"'+' align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg)nameId=' hspace="5"'+' name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"';o3_capicon='<img src="'+
o3_capicon+'"'+nameId+" />"}if(close!="")closing="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+(o3_compatmode&&o3_closefontclass?' class="'+o3_closefontclass+'" ':" ")+closeevent+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+close+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>";txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+
(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+title+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+closing+'</tr></table><table width="100%" border="0" '+(olNs4||!cpIsMultiple?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+
(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':!olNs4&&cpIsMultiple?' style="'+setCellPadStr(o3_cellpad)+'">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return txt}
function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml)txt=text;else txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+
o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';set_background(picture);return txt}function set_background(pic){if(pic=="")if(olNs4)over.background.src=null;else{if(over.style)over.style.backgroundImage="none"}else if(olNs4)over.background.src=pic;else if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+pic+")"}}var olShowId=-1;
function disp(statustext){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);olNs6&&olShowId<0?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=o3_sticky||o3_followmouse==0?0:1}runHook("disp",FAFTER);if(statustext!="")self.status=statustext}
function createPopup(lyrContent){runHook("createPopup",FBEFORE);if(o3_wrap){var wd,ww,theObj=olNs4?over:over.style;theObj.top=theObj.left=(olIe4&&!olOp?0:-1E4)+(!olNs4?"px":0);layerWrite(lyrContent);wd=olNs4?over.clip.width:over.offsetWidth;if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\&nbsp;/g," ");o3_width=ww;o3_wrap=0}}layerWrite(lyrContent);if(o3_wrap)o3_width=olNs4?over.clip.width:over.offsetWidth;runHook("createPopup",FAFTER,lyrContent);return true}
function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth)widthFix=18;iwidth=windowWidth();winoffset=olIe4?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight)iheight=o3_frame.innerHeight;else if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight"))iheight=eval("o3_frame."+docRoot+".clientHeight");scrolloffset=
olIe4?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY)}
function olMouseMove(e){var e=e?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY}else if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop")}if(o3_allowmove==1)runHook("placeLayer",FREPLACE);if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){olHideDelay?hideDelay(olHideDelay):cClick();hoveringSwitch=!hoveringSwitch}}function no_overlib(){return ver3fix}
function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=!olIe4&&window.onmousemove;if(document.onmousemove||wMv){if(wMv)capExtent=window;f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null)str=f+"(e); ";else if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||wMv&&fN[1]=="onmousemove"){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,
"").replace(/\s+$/,"");if(eval("typeof "+sS+" == 'undefined'"))window.onmousemove=null;else str=sS+"(e);"}}if(!str){olCheckMouseCapture=false;return}}else if(fN[1])str=fN[1]+"(e); ";else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n"}str+="olMouseMove(e); ";mseHandler=new Function("e",str)}capExtent.onmousemove=mseHandler;if(olNs4)capExtent.captureEvents(Event.MOUSEMOVE)}
function parseTokens(pf,ar){var v,i,mode=-1,par=pf!="ol_";var fnMark=par&&!ar.length?1:0;for(i=0;i<ar.length;i++)if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=par?1:0;i--}else switch(pf){case "ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString()}mode=0}else{if(ar[i]>=pmCount||ar[i]==DONOTHING)continue;if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[++i]+"].toString()");continue}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[++i]+"].toString()");
continue}if(ar[i]==STICKY){if(pf!="ol_")eval(pf+"sticky=1");continue}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue}if(ar[i]==NOCLOSE){if(pf!="ol_")opt_NOCLOSE();continue}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_")olHautoFlag=1;continue}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[++i]);continue}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[++i]);continue}if(ar[i]==FGCOLOR){eval(pf+
'fgcolor="'+ar[++i]+'"');continue}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue}if(ar[i]==WIDTH){eval(pf+"width="+ar[++i]);continue}if(ar[i]==BORDER){eval(pf+"border="+ar[++i]);continue}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,pf+"cellpad");continue}if(ar[i]==STATUS){eval(pf+"status='"+
escSglQuote(ar[++i])+"'");continue}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus == 1) ? 0 : 1");continue}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus == 2) ? 0 : 2");continue}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[++i]);continue}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[++i]);continue}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[++i]);continue}if(ar[i]==FIXX){eval(pf+"fixx="+ar[++i]);continue}if(ar[i]==
FIXY){eval(pf+"fixy="+ar[++i]);continue}if(ar[i]==RELX){eval(pf+"relx="+ar[++i]);continue}if(ar[i]==RELY){eval(pf+"rely="+ar[++i]);continue}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue}if(ar[i]==PADX){eval(pf+"padxl="+ar[++i]);eval(pf+"padxr="+ar[++i]);continue}if(ar[i]==PADY){eval(pf+"padyt="+ar[++i]);eval(pf+"padyb="+ar[++i]);continue}if(ar[i]==FULLHTML){if(pf!="ol_")eval(pf+"fullhtml=1");continue}if(ar[i]==
BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_")olVautoFlag=1;continue}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue}if(ar[i]==
CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[++i]);continue}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[++i];ol_function=typeof v=="function"?v:null}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number")v=ar[++i];opt_FUNCTION(v)}continue}if(ar[i]==DELAY){eval(pf+"delay="+ar[++i]);continue}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto == 0) ? 1 : 0");continue}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto == 0) ? 1 : 0");continue}if(ar[i]==
CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick == 0) ? 1 : 0");continue}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap == 0) ? 1 : 0");continue}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse == 1) ? 0 : 1");continue}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0) ? 1 : 0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper))olHideDelay=ar[++i];continue}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==
CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0) ? 1 : 0");continue}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue}i=parseCmdLine(pf,
i,ar)}if(fnMark&&o3_function)o3_text=o3_function();if(pf=="o3_"&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text))o3_text=o3_text.replace(/[ ]+/g,"&nbsp;");if(!tReg.test(o3_cap))o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;")}if(pf=="o3_"&&o3_sticky){if(!o3_close&&o3_frame!=ol_frame)o3_close=ol_close;if(o3_mouseoff&&o3_frame==ol_frame)opt_NOCLOSE(" ")}}
function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers["overDiv"].document;lyr.write(txt);lyr.close()}else if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac)over.innerHTML="";over.innerHTML=txt}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt);while(over.hasChildNodes())over.removeChild(over.lastChild);over.appendChild(domfrag)}}
function showObject(obj){runHook("showObject",FBEFORE);var theObj=olNs4?obj:obj.style;theObj.visibility="visible";runHook("showObject",FAFTER)}
function hideObject(obj){runHook("hideObject",FBEFORE);var theObj=olNs4?obj:obj.style;if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}theObj.visibility="hidden";theObj.top=theObj.left=(olIe4&&!olOp?0:-1E4)+(!olNs4?"px":0);if(o3_timerid>0)clearTimeout(o3_timerid);if(o3_delayid>0)clearTimeout(o3_delayid);o3_timerid=0;o3_delayid=0;self.status="";if(obj.onmouseout||obj.onmouseover){if(olNs4)obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);obj.onmouseout=obj.onmouseover=null}runHook("hideObject",
FAFTER)}function repositionTo(obj,xL,yL){var theObj=olNs4?obj:obj.style;theObj.left=xL+(!olNs4?"px":0);theObj.top=yL+(!olNs4?"px":0)}function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom)return true;return false}
function opt_FUNCTION(callme){o3_text=callme?typeof callme=="string"?/.+\(.*\)/.test(callme)?eval(callme):callme:callme():o3_function?o3_function():"No Function";return 0}
function opt_NOCLOSE(unused){if(!unused)o3_close="";if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};over.onmouseout=function(e){if(olHideDelay)hideDelay(olHideDelay);else cClick(e)}}else over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};return 0}
function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart)break;str+=args[k]+","}if(str)str=str.substring(0,--str.length);k--;pV=olNs4&&/cellpad/i.test(parameter)?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(str){return str.toString().replace(/'/g,"\\'")}
function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded)olLoaded=1;if(window.removeEventListener&&e.eventPhase==3)window.removeEventListener("load",OLonLoad_handler,false);else if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length)for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i]))continue;while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,
l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn))eval(fn)}}}}}
function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=whichString=="close"?1:0,hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=olNs4?!hasDims?fontSizeStr:"1":fontSizeStr;if(endWrap)return hasDims&&!olNs4?isClose?"</span>":"</div>":"</font>";else{fontStr="o3_"+whichString+"font";fontColor="o3_"+(whichString=="caption"?"cap":whichString)+"color";return hasDims&&!olNs4?isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+
fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">':'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">'}}function quoteMultiNameFonts(theFont){var v,pM=theFont.split(",");for(var i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(v)&&!/['"]/.test(v)){v="'"+v+"'";pM[i]=v}}return pM.join()}
function isExclusive(args){return false}function setCellPadStr(parameter){var Str="",j=0,ary=new Array,top,bottom,left,right;Str+="padding: ";ary=parameter.replace(/\s+/g,"").split(",");switch(ary.length){case 2:top=bottom=ary[j];left=right=ary[++j];break;case 3:top=ary[j];left=right=ary[++j];bottom=ary[++j];break;case 4:top=ary[j];right=ary[++j];bottom=ary[++j];left=ary[++j];break}Str+=ary.length==1?ary[0]+"px;":top+"px "+right+"px "+bottom+"px "+left+"px;";return Str}
function hideDelay(time){if(time&&!o3_delay){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout=time)}}
function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null)placeX=o3_relx!=null?o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx:o3_fixx;else{if(o3_hauto==1)if(o3_x-winoffset>iwidth/2)o3_hpos=LEFT;else o3_hpos=RIGHT;if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-parsedWidth/2;if(placeX<winoffset)placeX=winoffset}if(o3_hpos==RIGHT){placeX=
o3_x+o3_offsetx;if(placeX+parsedWidth>winoffset+iwidth-widthFix){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0)placeX=0}}if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX<winoffset)placeX=winoffset}if(o3_snapx>1){var snapping=placeX%o3_snapx;if(o3_hpos==LEFT)placeX=placeX-(o3_snapx+snapping);else placeX=placeX+(o3_snapx-snapping);if(placeX<winoffset)placeX=winoffset}}return placeX}
function verticalPlacement(browserHeight,verticalScrollAmount){var placeY,iheight=browserHeight,scrolloffset=verticalScrollAmount;var parsedHeight=o3_aboveheight?parseInt(o3_aboveheight):olNs4?over.clip.height:over.offsetHeight;if(o3_fixy>-1||o3_rely!=null)placeY=o3_rely!=null?o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely:o3_fixy;else{if(o3_vauto==1)if(o3_y-scrolloffset>iheight/2&&o3_vpos==BELOW&&o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)o3_vpos=ABOVE;else if(o3_vpos==
ABOVE&&o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)o3_vpos=BELOW;if(o3_vpos==ABOVE){if(o3_aboveheight==0)o3_aboveheight=parsedHeight;placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY<scrolloffset)placeY=scrolloffset}else placeY=o3_y+o3_offsety;if(o3_snapy>1){var snapping=placeY%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE)placeY=placeY-(o3_snapy+snapping);else placeY=placeY+(o3_snapy-snapping);if(placeY<scrolloffset)placeY=scrolloffset}}return placeY}
function checkPositionFlags(){if(olHautoFlag)olHautoFlag=o3_hauto=0;if(olVautoFlag)olVautoFlag=o3_vauto=0;return true}function windowWidth(){var w;if(o3_frame.innerWidth)w=o3_frame.innerWidth;else if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth"))w=eval("o3_frame."+docRoot+".clientWidth");return w}
function createDivContainer(id,frm,zValue){id=id||"overDiv",frm=frm||o3_frame,zValue=zValue||1E3;var objRef,divContainer=layerReference(id);if(divContainer==null){if(olNs4){divContainer=frm.document.layers[id]=new Layer(window.innerWidth,frm);objRef=divContainer}else{var body=olIe4?frm.document.all.tags("BODY")[0]:frm.document.getElementsByTagName("BODY")[0];if(olIe4&&!document.getElementById){body.insertAdjacentHTML("beforeEnd",'<div id="'+id+'"></div>');divContainer=layerReference(id)}else{divContainer=
frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer)}objRef=divContainer.style}objRef.position="absolute";objRef.visibility="hidden";objRef.zIndex=zValue;if(olIe4&&!olOp)objRef.left=objRef.top="0px";else objRef.left=objRef.top=-1E4+(!olNs4?"px":0)}return divContainer}function layerReference(id){return olNs4?o3_frame.document.layers[id]:document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)}
function isFunction(fnRef){var rtn=true;if(typeof fnRef=="object")for(var i=0;i<fnRef.length;i++){if(typeof fnRef[i]=="function")continue;rtn=false;break}else if(typeof fnRef!="function")rtn=false;return rtn}function argToString(array,strtInd,argName){var jS=strtInd,aS="",ar=array;argName=argName?argName:"ar";if(ar.length>jS){for(var k=jS;k<ar.length;k++)aS+=argName+"["+k+"], ";aS=aS.substring(0,aS.length-2)}return aS}
function reOrder(hookPt,fnRef,order){var newPt=new Array,match,i,j;if(!order||typeof order=="undefined"||typeof order=="number")return hookPt;if(typeof order=="function"){if(typeof fnRef=="object")newPt=newPt.concat(fnRef);else newPt[newPt.length++]=fnRef;for(i=0;i<hookPt.length;i++){match=false;if(typeof fnRef=="function"&&hookPt[i]==fnRef)continue;else for(j=0;j<fnRef.length;j++)if(hookPt[i]==fnRef[j]){match=true;break}if(!match)newPt[newPt.length++]=hookPt[i]}newPt[newPt.length++]=order}else if(typeof order==
"object"){if(typeof fnRef=="object")newPt=newPt.concat(fnRef);else newPt[newPt.length++]=fnRef;for(j=0;j<hookPt.length;j++){match=false;if(typeof fnRef=="function"&&hookPt[j]==fnRef)continue;else for(i=0;i<fnRef.length;i++)if(hookPt[j]==fnRef[i]){match=true;break}if(!match)newPt[newPt.length++]=hookPt[j]}for(i=0;i<newPt.length;i++)hookPt[i]=newPt[i];newPt.length=0;for(j=0;j<hookPt.length;j++){match=false;for(i=0;i<order.length;i++)if(hookPt[j]==order[i]){match=true;break}if(!match)newPt[newPt.length++]=
hookPt[j]}newPt=newPt.concat(order)}hookPt=newPt;return hookPt}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length)for(var k=0;k<runTime.length;k++)runTime[k]()}function parseCmdLine(pf,i,args){if(typeof cmdLine!="undefined"&&cmdLine.length)for(var k=0;k<cmdLine.length;k++){var j=cmdLine[k](pf,i,args);if(j>-1){i=j;break}}return i}
function postParseChecks(pf,args){if(typeof postParse!="undefined"&&postParse.length)for(var k=0;k<postParse.length;k++){if(postParse[k](pf,args))continue;return false}return true}function registerCommands(cmdStr){if(typeof cmdStr!="string")return;var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++)eval(pM[i].toUpperCase()+"="+pmCount++)}function registerNoParameterCommands(cmdStr){if(!cmdStr&&typeof cmdStr!="string")return;pmt=!pmt?cmdStr:pmt+","+cmdStr}
function registerHook(fnHookTo,fnRef,hookType,optPm){var hookPt,last=typeof optPm;if(fnHookTo=="plgIn"||fnHookTo=="postParse")return;if(typeof hookPts[fnHookTo]=="undefined")hookPts[fnHookTo]=new FunctionReference;hookPt=hookPts[fnHookTo];if(hookType!=null){if(hookType==FREPLACE){hookPt.ovload=fnRef;if(fnHookTo.indexOf("ol_content_")>-1)hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef}else if(hookType==FBEFORE||hookType==FAFTER){var hookPt=hookType==1?hookPt.before:hookPt.after;if(typeof fnRef=="object")hookPt=
hookPt.concat(fnRef);else hookPt[hookPt.length++]=fnRef;if(optPm)hookPt=reOrder(hookPt,fnRef,optPm)}else if(hookType==FALTERNATE){if(last=="number")hookPt.alt[pms[optPm-1-pmStart]]=fnRef}else if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=="object")hookPt=hookPt.concat(fnRef);else hookPt[hookPt.length++]=fnRef}return}}function registerRunTimeFunction(fn){if(isFunction(fn))if(typeof fn=="object")runTime=runTime.concat(fn);else runTime[runTime.length++]=fn}
function registerCmdLineFunction(fn){if(isFunction(fn))if(typeof fn=="object")cmdLine=cmdLine.concat(fn);else cmdLine[cmdLine.length++]=fn}function registerPostParseFunction(fn){if(isFunction(fn))if(typeof fn=="object")postParse=postParse.concat(fn);else postParse[postParse.length++]=fn}
function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload))rtnVal=eval(fnHookTo+"("+arS+")");else rtnVal=eval("l("+arS+")")}else if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=hookType==1?l.before:l.after;if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++)eval("l[k]("+arS+")")}}}else if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,
3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined")rtnVal=eval(fnHookTo+"("+arS+")");else rtnVal=eval("l("+arS+")")}else if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--)if((rtnVal=eval("l[k-1]("+arS+")"))!=void 0)break}return rtnVal}function FunctionReference(){this.ovload=null;this.before=new Array;this.after=new Array;this.alt=new Array;this.chain=new Array}
function Info(version,prerelease){this.version=version;this.prerelease=prerelease;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets}function meets(reqdVersion){return!reqdVersion?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);
registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);
registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||olIe5&&isMac||olKq)olLoaded=1;registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if(olNs4||olNs6||olIe4)olMouseCapture();else{overlib=no_overlib;nd=no_overlib;ver3fix=true};

