(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),
e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===
1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]===
"*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,
b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),
e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=
parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();
b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();
if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio")if(c==="option")b.selected=a.defaultSelected;else{if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<
e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===
c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,
e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=
0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=
this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);
return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?
this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i=
{}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,
1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&
b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;
for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a);},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),
d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d)if(i)for(f in a){if(c.apply(a[f],
d)===!1)break}else for(;g<h;){if(c.apply(a[g++],d)===!1)break}else if(i)for(f in a){if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,
a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));
if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=
!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof
e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test("\u00a0")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",
B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?
e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=
d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,
fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,
d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=
arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),
q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),
hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,
g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=
i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,
k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",
l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,
d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,
k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]=
{},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=
b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,
c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&
(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?
f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!=
"string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!=
"string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=
a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=
(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&
f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+=
"":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,
c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||
(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in
h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",
b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,
d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!=
"boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=
w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||
b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],
{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&
(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,
arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,
o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+
"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,
d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,
o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=
0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=
b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),
o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},
props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,
h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||
{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===
b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);
a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),
f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),
f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&
!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},
function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);
return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,
a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,
b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>
0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,
l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>
1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,
k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,
e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=
null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a);};
var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d)if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else{if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},
type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<
f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=
"undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,
"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+
a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&
a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===
a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();
return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,
b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case "only":case "first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case "last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case "nth":c=b[2],e=b[3];if(c===
1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,
c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=
new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);
else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),
j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!=
"undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);
if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||
c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!==
"object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,
"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className=
"e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:
0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,
O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=
0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});
g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:
a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,
"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,
b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===
1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,
$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={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,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,
b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?
a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,
this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),
f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||
!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();
c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});
if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),
f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",
insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||
!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=
k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),
o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof(r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},
cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=
/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,
widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||
(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=
bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=
bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,
a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;
return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&
(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&
(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,
url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},
contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=
y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},
c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||
(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]===
"http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&
d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,
v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z;}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||
a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||
e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,
c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||
f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===
4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=
/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",
cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a==
"boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties=
{};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?
this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,
""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&
g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&
a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,
b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;
this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=
!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==
!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=
this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],
function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);
try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,
a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&
(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,
i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,
n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=
parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||
g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=
f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&
define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
(function(c){c.ui={plugin:{add:function(b,a,d){var b=c.ui[b].prototype,f;for(f in d)b.plugins[f]=b.plugins[f]||[],b.plugins[f].push([a,d[f]])},call:function(b,a,d){if(a=b.plugins[a])for(var f=0;f<a.length;f++)b.options[a[f][0]]&&a[f][1].apply(b.element,d)}},cssCache:{},css:function(b){if(c.ui.cssCache[b])return c.ui.cssCache[b];var a=c('<div class="ui-gen">').addClass(b).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");c.ui.cssCache[b]=!(/auto|default/.test(a.css("cursor"))&&
!/^[1-9]/.test(a.css("height"))&&!/^[1-9]/.test(a.css("width"))&&/none/.test(a.css("backgroundImage"))&&/transparent|rgba\(0, 0, 0, 0\)/.test(a.css("backgroundColor")));try{c("body").get(0).removeChild(a.get(0))}catch(d){}return c.ui.cssCache[b]},disableSelection:function(b){c(b).attr("unselectable","on").css("MozUserSelect","none")},enableSelection:function(b){c(b).attr("unselectable","off").css("MozUserSelect","")},hasScroll:function(b,a){var d=/top/.test(a||"top")?"scrollTop":"scrollLeft",f=!1;
if(0<b[d])return!0;b[d]=1;f=0<b[d]?!0:!1;b[d]=0;return f}};var e=c.fn.remove;c.fn.remove=function(){c("*",this).add(this).triggerHandler("remove");return e.apply(this,arguments)};c.widget=function(b,a){var d=b.split(".")[0],b=b.split(".")[1];c.fn[b]=function(a){var e="string"==typeof a,h=Array.prototype.slice.call(arguments,1),g;if(g=e){g=a;var j=c[d][b].getter||[],j="string"==typeof j?j.split(/,?\s+/):j;g=-1!=c.inArray(g,j)}return g?(g=c.data(this[0],b))?g[a].apply(g,h):void 0:this.each(function(){var g=
c.data(this,b);e&&g&&c.isFunction(g[a])?g[a].apply(g,h):e||c.data(this,b,new c[d][b](this,a))})};c[d][b]=function(a,e){var h=this;this.widgetName=b;this.widgetBaseClass=d+"-"+b;this.options=c.extend({},c.widget.defaults,c[d][b].defaults,e);this.element=c(a).bind("setData."+b,function(a,d,b){return h.setData(d,b)}).bind("getData."+b,function(a,d){return h.getData(d)}).bind("remove",function(){return h.destroy()});this.init()};c[d][b].prototype=c.extend({},c.widget.prototype,a)};c.widget.prototype=
{init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(b){return this.options[b]},setData:function(b,a){this.options[b]=a;if("disabled"==b)this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")},enable:function(){this.setData("disabled",!1)},disable:function(){this.setData("disabled",!0)}};c.widget.defaults={disabled:!1};c.ui.mouse={mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b.mouseDown(a)});
c.browser.msie&&(this._mouseUnselectable=this.element.attr("unselectable"),this.element.attr("unselectable","on"));this.started=!1},mouseDestroy:function(){this.element.unbind("."+this.widgetName);c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},mouseDown:function(b){this._mouseStarted&&this.mouseUp(b);this._mouseDownEvent=b;var a=this,d=1==b.which,f="string"==typeof this.options.cancel?c(b.target).parents().add(b.target).filter(this.options.cancel).length:!1;if(!d||f||!this.mouseCapture(b))return!0;
this._mouseDelayMet=!this.options.delay;this._mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){a._mouseDelayMet=!0},this.options.delay));if(this.mouseDistanceMet(b)&&this.mouseDelayMet(b)&&(this._mouseStarted=!1!==this.mouseStart(b),!this._mouseStarted))return b.preventDefault(),!0;this._mouseMoveDelegate=function(d){return a.mouseMove(d)};this._mouseUpDelegate=function(d){return a.mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,
this._mouseUpDelegate);return!1},mouseMove:function(b){if(c.browser.msie&&!b.button)return this.mouseUp(b);if(this._mouseStarted)return this.mouseDrag(b),!1;this.mouseDistanceMet(b)&&this.mouseDelayMet(b)&&((this._mouseStarted=!1!==this.mouseStart(this._mouseDownEvent,b))?this.mouseDrag(b):this.mouseUp(b));return!this._mouseStarted},mouseUp:function(b){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);this._mouseStarted&&
(this._mouseStarted=!1,this.mouseStop(b));return!1},mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},mouseDelayMet:function(){return this._mouseDelayMet},mouseStart:function(){},mouseDrag:function(){},mouseStop:function(){},mouseCapture:function(){return!0}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
(function(c){c.widget("ui.draggable",c.extend({},c.ui.mouse,{init:function(){var c=this.options;"original"==c.helper&&!/(relative|absolute|fixed)/.test(this.element.css("position"))&&this.element.css("position","relative");this.element.addClass("ui-draggable");c.disabled&&this.element.addClass("ui-draggable-disabled");this.mouseInit()},mouseStart:function(e){var b=this.options;if(this.helper||b.disabled||c(e.target).is(".ui-resizable-handle"))return!1;var a=!this.options.handle||!c(this.options.handle,
this.element).length?!0:!1;c(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(a=!0)});if(!a)return!1;c.ui.ddmanager&&(c.ui.ddmanager.current=this);this.helper=c.isFunction(b.helper)?c(b.helper.apply(this.element[0],[e])):"clone"==b.helper?this.element.clone():this.element;this.helper.parents("body").length||this.helper.appendTo("parent"==b.appendTo?this.element[0].parentNode:b.appendTo);this.helper[0]!=this.element[0]&&!/(fixed|absolute)/.test(this.helper.css("position"))&&
this.helper.css("position","absolute");this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var d=this.offsetParent.offset();this.offsetParent[0]==
document.body&&c.browser.mozilla&&(d={top:0,left:0});this.offset.parent={top:d.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:d.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};d=this.element.position();this.offset.relative="relative"==this.cssPosition?{top:d.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:d.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(e);
this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(b.cursorAt&&(void 0!=b.cursorAt.left&&(this.offset.click.left=b.cursorAt.left+this.margins.left),void 0!=b.cursorAt.right&&(this.offset.click.left=this.helperProportions.width-b.cursorAt.right+this.margins.left),void 0!=b.cursorAt.top&&(this.offset.click.top=b.cursorAt.top+this.margins.top),void 0!=b.cursorAt.bottom))this.offset.click.top=this.helperProportions.height-b.cursorAt.bottom+this.margins.top;if(b.containment){"parent"==
b.containment&&(b.containment=this.helper[0].parentNode);if("document"==b.containment||"window"==b.containment)this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c("document"==b.containment?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(c("document"==b.containment?document:window).height()||document.body.parentNode.scrollHeight)-
this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)];if(!/^(document|window|parent)$/.test(b.containment)){var d=c(b.containment)[0],f=c(b.containment).offset();this.containment=[f.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,f.top+(parseInt(c(d).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,f.left+Math.max(d.scrollWidth,
d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),f.top+Math.max(d.scrollHeight,d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",e);this.helperProportions={width:this.helper.outerWidth(),
height:this.helper.outerHeight()};c.ui.ddmanager&&!b.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this.mouseDrag(e);return!0},convertPositionTo:function(e,b){b||(b=this.position);var a="absolute"==e?1:-1;return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-("fixed"==this.cssPosition||"absolute"==this.cssPosition&&this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*a+("fixed"==this.cssPosition?c(document).scrollTop():
0)*a+this.margins.top*a,left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-("fixed"==this.cssPosition||"absolute"==this.cssPosition&&this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*a+("fixed"==this.cssPosition?c(document).scrollLeft():0)*a+this.margins.left*a}},generatePosition:function(e){var b=this.options,e={top:e.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition||"absolute"==this.cssPosition&&this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollTop)-("fixed"==this.cssPosition?c(document).scrollTop():0),left:e.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition||"absolute"==this.cssPosition&&this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)-("fixed"==this.cssPosition?c(document).scrollLeft():0)};if(!this.originalPosition)return e;if(this.containment&&(e.left<this.containment[0]&&(e.left=this.containment[0]),e.top<this.containment[1]&&
(e.top=this.containment[1]),e.left>this.containment[2]&&(e.left=this.containment[2]),e.top>this.containment[3]))e.top=this.containment[3];if(b.grid){var a=this.originalPosition.top+Math.round((e.top-this.originalPosition.top)/b.grid[1])*b.grid[1];e.top=this.containment?!(a<this.containment[1]||a>this.containment[3])?a:!(a<this.containment[1])?a-b.grid[1]:a+b.grid[1]:a;a=this.originalPosition.left+Math.round((e.left-this.originalPosition.left)/b.grid[0])*b.grid[0];e.left=this.containment?!(a<this.containment[0]||
a>this.containment[2])?a:!(a<this.containment[0])?a-b.grid[0]:a+b.grid[0]:a}return e},mouseDrag:function(e){this.position=this.generatePosition(e);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",e)||this.position;if(!this.options.axis||"y"!=this.options.axis)this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||"x"!=this.options.axis)this.helper[0].style.top=this.position.top+"px";c.ui.ddmanager&&c.ui.ddmanager.drag(this,e);return!1},mouseStop:function(e){var b=
!1;c.ui.ddmanager&&!this.options.dropBehaviour&&(b=c.ui.ddmanager.drop(this,e));if("invalid"==this.options.revert&&!b||"valid"==this.options.revert&&b||!0===this.options.revert){var a=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){a.propagate("stop",e);a.clear()})}else this.propagate("stop",e),this.clear();return!1},clear:function(){this.helper.removeClass("ui-draggable-dragging");"original"!=this.options.helper&&!this.cancelHelperRemoval&&this.helper.remove();
this.helper=null;this.cancelHelperRemoval=!1},plugins:{},uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options}},propagate:function(e,b){c.ui.plugin.call(this,e,[b,this.uiHash()]);"drag"==e&&(this.positionAbs=this.convertPositionTo("absolute"));return this.element.triggerHandler("drag"==e?e:"drag"+e,[b,this.uiHash()],this.options[e])},destroy:function(){this.element.data("draggable")&&(this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable"),
this.mouseDestroy())}}));c.extend(c.ui.draggable,{defaults:{appendTo:"parent",axis:!1,cancel:":input",delay:0,distance:1,helper:"original"}});c.ui.plugin.add("draggable","cursor",{start:function(e,b){var a=c("body");a.css("cursor")&&(b.options._cursor=a.css("cursor"));a.css("cursor",b.options.cursor)},stop:function(e,b){b.options._cursor&&c("body").css("cursor",b.options._cursor)}});c.ui.plugin.add("draggable","zIndex",{start:function(e,b){var a=c(b.helper);a.css("zIndex")&&(b.options._zIndex=a.css("zIndex"));
a.css("zIndex",b.options.zIndex)},stop:function(e,b){b.options._zIndex&&c(b.helper).css("zIndex",b.options._zIndex)}});c.ui.plugin.add("draggable","opacity",{start:function(e,b){var a=c(b.helper);a.css("opacity")&&(b.options._opacity=a.css("opacity"));a.css("opacity",b.options.opacity)},stop:function(e,b){b.options._opacity&&c(b.helper).css("opacity",b.options._opacity)}});c.ui.plugin.add("draggable","iframeFix",{start:function(e,b){c(!0===b.options.iframeFix?"iframe":b.options.iframeFix).each(function(){c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(c(this).offset()).appendTo("body")})},stop:function(){c("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}});c.ui.plugin.add("draggable","scroll",{start:function(e,b){var a=b.options,d=c(this).data("draggable");a.scrollSensitivity=a.scrollSensitivity||20;a.scrollSpeed=a.scrollSpeed||20;a:{a=this;do{if(/auto|scroll/.test(a.css("overflow"))||/auto|scroll/.test(a.css("overflow-y")))break a;
a=a.parent()}while(a[0].parentNode);a=c(document)}d.overflowY=a;a:{a=this;do{if(/auto|scroll/.test(a.css("overflow"))||/auto|scroll/.test(a.css("overflow-x")))break a;a=a.parent()}while(a[0].parentNode);a=c(document)}d.overflowX=a;d.overflowY[0]!=document&&"HTML"!=d.overflowY[0].tagName&&(d.overflowYOffset=d.overflowY.offset());d.overflowX[0]!=document&&"HTML"!=d.overflowX[0].tagName&&(d.overflowXOffset=d.overflowX.offset())},drag:function(e,b){var a=b.options,d=c(this).data("draggable");if(d.overflowY[0]!=
document&&"HTML"!=d.overflowY[0].tagName){if(d.overflowYOffset.top+d.overflowY[0].offsetHeight-e.pageY<a.scrollSensitivity&&(d.overflowY[0].scrollTop+=a.scrollSpeed),e.pageY-d.overflowYOffset.top<a.scrollSensitivity)d.overflowY[0].scrollTop-=a.scrollSpeed}else e.pageY-c(document).scrollTop()<a.scrollSensitivity&&c(document).scrollTop(c(document).scrollTop()-a.scrollSpeed),c(window).height()-(e.pageY-c(document).scrollTop())<a.scrollSensitivity&&c(document).scrollTop(c(document).scrollTop()+a.scrollSpeed);
if(d.overflowX[0]!=document&&"HTML"!=d.overflowX[0].tagName){if(d.overflowXOffset.left+d.overflowX[0].offsetWidth-e.pageX<a.scrollSensitivity&&(d.overflowX[0].scrollLeft+=a.scrollSpeed),e.pageX-d.overflowXOffset.left<a.scrollSensitivity)d.overflowX[0].scrollLeft-=a.scrollSpeed}else e.pageX-c(document).scrollLeft()<a.scrollSensitivity&&c(document).scrollLeft(c(document).scrollLeft()-a.scrollSpeed),c(window).width()-(e.pageX-c(document).scrollLeft())<a.scrollSensitivity&&c(document).scrollLeft(c(document).scrollLeft()+
a.scrollSpeed)}});c.ui.plugin.add("draggable","snap",{start:function(e,b){var a=c(this).data("draggable");a.snapElements=[];c(!0===b.options.snap?".ui-draggable":b.options.snap).each(function(){var d=c(this),b=d.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:d.outerWidth(),height:d.outerHeight(),top:b.top,left:b.left})})},drag:function(e,b){for(var a=c(this).data("draggable"),d=b.options.snapTolerance||20,f=b.absolutePosition.left,i=f+a.helperProportions.width,h=b.absolutePosition.top,
g=h+a.helperProportions.height,j=a.snapElements.length-1;0<=j;j--){var k=a.snapElements[j].left,l=k+a.snapElements[j].width,o=a.snapElements[j].top,m=o+a.snapElements[j].height;if(k-d<f&&f<l+d&&o-d<h&&h<m+d||k-d<f&&f<l+d&&o-d<g&&g<m+d||k-d<i&&i<l+d&&o-d<h&&h<m+d||k-d<i&&i<l+d&&o-d<g&&g<m+d){if("inner"!=b.options.snapMode){var n=20>=Math.abs(o-g),t=20>=Math.abs(m-h),q=20>=Math.abs(k-i),u=20>=Math.abs(l-f);n&&(b.position.top=a.convertPositionTo("relative",{top:o-a.helperProportions.height,left:0}).top);
t&&(b.position.top=a.convertPositionTo("relative",{top:m,left:0}).top);q&&(b.position.left=a.convertPositionTo("relative",{top:0,left:k-a.helperProportions.width}).left);u&&(b.position.left=a.convertPositionTo("relative",{top:0,left:l}).left)}if("outer"!=b.options.snapMode&&(n=20>=Math.abs(o-h),t=20>=Math.abs(m-g),q=20>=Math.abs(k-f),u=20>=Math.abs(l-i),n&&(b.position.top=a.convertPositionTo("relative",{top:o,left:0}).top),t&&(b.position.top=a.convertPositionTo("relative",{top:m-a.helperProportions.height,
left:0}).top),q&&(b.position.left=a.convertPositionTo("relative",{top:0,left:k}).left),u))b.position.left=a.convertPositionTo("relative",{top:0,left:l-a.helperProportions.width}).left}}}});c.ui.plugin.add("draggable","connectToSortable",{start:function(e,b){var a=c(this).data("draggable");a.sortables=[];c(b.options.connectToSortable).each(function(){if(c.data(this,"sortable")){var d=c.data(this,"sortable");a.sortables.push({instance:d,shouldRevert:d.options.revert});d.refreshItems();d.propagate("activate",
e,a)}})},stop:function(e){var b=c(this).data("draggable");c.each(b.sortables,function(){this.instance.isOver?(this.instance.isOver=0,b.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance.mouseStop(e),this.instance.element.triggerHandler("sortreceive",[e,c.extend(this.instance.ui(),{sender:b.element})],this.instance.options.receive),this.instance.options.helper=this.instance.options._helper):this.instance.propagate("deactivate",
e,b)})},drag:function(e,b){var a=c(this).data("draggable"),d=this,f=function(a){var d=a.left,b=d+a.width,f=a.top,a=f+a.height;return d<this.positionAbs.left+this.offset.click.left&&this.positionAbs.left+this.offset.click.left<b&&f<this.positionAbs.top+this.offset.click.top&&this.positionAbs.top+this.offset.click.top<a};c.each(a.sortables,function(){f.call(a,this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=c(d).clone().appendTo(this.instance.element).data("sortable-item",
!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return b.helper[0]},e.target=this.instance.currentItem[0],this.instance.mouseCapture(e,!0),this.instance.mouseStart(e,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,
a.propagate("toSortable",e)),this.instance.currentItem&&this.instance.mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance.mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a.propagate("fromSortable",e))})}});c.ui.plugin.add("draggable","stack",{start:function(e,b){var a=c.makeArray(c(b.options.stack.group)).sort(function(a,
f){return(parseInt(c(a).css("zIndex"),10)||b.options.stack.min)-(parseInt(c(f).css("zIndex"),10)||b.options.stack.min)});c(a).each(function(a){this.style.zIndex=b.options.stack.min+a});this[0].style.zIndex=b.options.stack.min+a.length}})})(jQuery);
(function(c){c.widget("ui.droppable",{init:function(){this.element.addClass("ui-droppable");this.isover=0;this.isout=1;var e=this.options,b=e.accept,e=c.extend(e,{accept:e.accept&&e.accept.constructor==Function?e.accept:function(a){return c(a).is(b)}});this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};c.ui.ddmanager.droppables.push(this)},plugins:{},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,absolutePosition:c.positionAbs,
options:this.options,element:this.element}},destroy:function(){for(var e=c.ui.ddmanager.droppables,b=0;b<e.length;b++)e[b]==this&&e.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},over:function(e){var b=c.ui.ddmanager.current;if(b&&(b.currentItem||b.element)[0]!=this.element[0])if(this.options.accept.call(this.element,b.currentItem||b.element))c.ui.plugin.call(this,"over",[e,this.ui(b)]),this.element.triggerHandler("dropover",
[e,this.ui(b)],this.options.over)},out:function(e){var b=c.ui.ddmanager.current;if(b&&(b.currentItem||b.element)[0]!=this.element[0])if(this.options.accept.call(this.element,b.currentItem||b.element))c.ui.plugin.call(this,"out",[e,this.ui(b)]),this.element.triggerHandler("dropout",[e,this.ui(b)],this.options.out)},drop:function(e,b){var a=b||c.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return!1;var d=!1;this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function(){var b=
c.data(this,"droppable");if(b.options.greedy&&c.ui.intersect(a,c.extend(b,{offset:b.element.offset()}),b.options.tolerance))return d=!0,!1});return d?!1:this.options.accept.call(this.element,a.currentItem||a.element)?(c.ui.plugin.call(this,"drop",[e,this.ui(a)]),this.element.triggerHandler("drop",[e,this.ui(a)],this.options.drop),!0):!1},activate:function(e){var b=c.ui.ddmanager.current;c.ui.plugin.call(this,"activate",[e,this.ui(b)]);b&&this.element.triggerHandler("dropactivate",[e,this.ui(b)],this.options.activate)},
deactivate:function(e){var b=c.ui.ddmanager.current;c.ui.plugin.call(this,"deactivate",[e,this.ui(b)]);b&&this.element.triggerHandler("dropdeactivate",[e,this.ui(b)],this.options.deactivate)}});c.extend(c.ui.droppable,{defaults:{disabled:!1,tolerance:"intersect"}});c.ui.intersect=function(c,b,a){if(!b.offset)return!1;var d=(c.positionAbs||c.position.absolute).left,f=d+c.helperProportions.width,i=(c.positionAbs||c.position.absolute).top,h=i+c.helperProportions.height,g=b.offset.left,j=g+b.proportions.width,
k=b.offset.top,b=k+b.proportions.height;switch(a){case "fit":return g<d&&f<j&&k<i&&h<b;case "intersect":return g<d+c.helperProportions.width/2&&f-c.helperProportions.width/2<j&&k<i+c.helperProportions.height/2&&h-c.helperProportions.height/2<b;case "pointer":return g<(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left&&(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left<j&&k<(c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top&&
(c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top<b;case "touch":return(i>=k&&i<=b||h>=k&&h<=b||i<k&&h>b)&&(d>=g&&d<=j||f>=g&&f<=j||d<g&&f>j);default:return!1}};c.ui.ddmanager={current:null,droppables:[],prepareOffsets:function(e,b){for(var a=c.ui.ddmanager.droppables,d=b?b.type:null,f=0;f<a.length;f++)a[f].options.disabled||e&&!a[f].options.accept.call(a[f].element,e.currentItem||e.element)||(a[f].visible="none"!=a[f].element.css("display"),a[f].visible&&(a[f].offset=a[f].element.offset(),
a[f].proportions={width:a[f].element[0].offsetWidth,height:a[f].element[0].offsetHeight},("dragstart"==d||"sortactivate"==d)&&a[f].activate.call(a[f],b)))},drop:function(e,b){var a=!1;c.each(c.ui.ddmanager.droppables,function(){if(this.options&&(!this.options.disabled&&this.visible&&c.ui.intersect(e,this,this.options.tolerance)&&(a=this.drop.call(this,b)),!this.options.disabled&&this.visible&&this.options.accept.call(this.element,e.currentItem||e.element)))this.isout=1,this.isover=0,this.deactivate.call(this,
b)});return a},drag:function(e,b){e.options.refreshPositions&&c.ui.ddmanager.prepareOffsets(e,b);c.each(c.ui.ddmanager.droppables,function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var a=c.ui.intersect(e,this,this.options.tolerance);if(a=!a&&1==this.isover?"isout":a&&0==this.isover?"isover":null){var d;if(this.options.greedy){var f=this.element.parents(".ui-droppable:eq(0)");f.length&&(d=c.data(f[0],"droppable"),d.greedyChild="isover"==a?1:0)}d&&"isover"==a&&(d.isover=0,d.isout=
1,d.out.call(d,b));this[a]=1;this["isout"==a?"isover":"isout"]=0;this["isover"==a?"over":"out"].call(this,b);d&&"isout"==a&&(d.isout=0,d.isover=1,d.over.call(d,b))}}})}};c.ui.plugin.add("droppable","activeClass",{activate:function(e,b){c(this).addClass(b.options.activeClass)},deactivate:function(e,b){c(this).removeClass(b.options.activeClass)},drop:function(e,b){c(this).removeClass(b.options.activeClass)}});c.ui.plugin.add("droppable","hoverClass",{over:function(e,b){c(this).addClass(b.options.hoverClass)},
out:function(e,b){c(this).removeClass(b.options.hoverClass)},drop:function(e,b){c(this).removeClass(b.options.hoverClass)}})})(jQuery);
(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{init:function(){var e=this,b=this.options,a=this.element.css("position");this.originalElement=this.element;this.element.addClass("ui-resizable").css({position:/static/.test(a)?"relative":a});c.extend(b,{_aspectRatio:!!b.aspectRatio,helper:b.helper||b.ghost||b.animate?b.helper||"proxy":null,knobHandles:!0===b.knobHandles?"ui-resizable-knob-handle":b.knobHandles});b.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",
background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:"1px solid #DEDEDE"},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:"1px solid #DEDEDE"},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:"1px solid #DEDEDE"},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:"1px solid #DEDEDE"},"ui-resizable-se":{cursor:"se-resize",width:"4px",
height:"4px",borderRight:"1px solid #DEDEDE",borderBottom:"1px solid #DEDEDE"},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:"1px solid #DEDEDE",borderLeft:"1px solid #DEDEDE"},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:"1px solid #DEDEDE",borderTop:"1px solid #DEDEDE"},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:"1px solid #DEDEDE",borderTop:"1px solid #DEDEDE"}};b.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",
border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",
right:"0px",top:"0px"}};b._nodeName=this.element[0].nodeName;b._nodeName.match(/canvas|textarea|input|select|button|img/i)&&(a=this.element,/relative/.test(a.css("position"))&&c.browser.opera&&a.css({position:"relative",top:"auto",left:"auto"}),a.wrap(c('<div class="ui-wrapper"\tstyle="overflow: hidden;"></div>').css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})),a=this.element,this.element=this.element.parent(),this.element.data("resizable",
this),this.element.css({marginLeft:a.css("marginLeft"),marginTop:a.css("marginTop"),marginRight:a.css("marginRight"),marginBottom:a.css("marginBottom")}),a.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),c.browser.safari&&b.preventDefault&&a.css("resize","none"),b.proportionallyResize=a.css({position:"static",zoom:1,display:"block"}),this.element.css({margin:a.css("margin")}),this._proportionallyResize());b.handles||(b.handles=!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",
e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(b.handles.constructor==String){b.zIndex=b.zIndex||1E3;"all"==b.handles&&(b.handles="n,e,s,w,se,sw,ne,nw");a=b.handles.split(",");b.handles={};for(var d={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",
sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"},f=0;f<a.length;f++){var i=c.trim(a[f]),h=b.defaultTheme,g="ui-resizable-"+i,j=!c.ui.css(g)&&!b.knobHandles,k=c.ui.css("ui-resizable-knob-handle"),h=c.extend(h[g],h["ui-resizable-handle"]),k=c.extend(b.knobTheme[g],!k?b.knobTheme["ui-resizable-handle"]:{}),l=/sw|se|ne|nw/.test(i)?{zIndex:++b.zIndex}:{},g=c(['<div class="ui-resizable-handle ',g,'" style="',j?d[i]:"",d.handle,'"></div>'].join("")).css(l);b.handles[i]=
".ui-resizable-"+i;this.element.append(g.css(j?h:{}).css(b.knobHandles?k:{}).addClass(b.knobHandles?"ui-resizable-knob-handle":"").addClass(b.knobHandles))}b.knobHandles&&this.element.addClass("ui-resizable-knob").css((c.ui.css("ui-resizable-knob"),{}))}this._renderAxis=function(a){var a=a||this.element,d;for(d in b.handles){b.handles[d].constructor==String&&(b.handles[d]=c(b.handles[d],this.element).show());b.transparent&&b.handles[d].css({opacity:0});if(this.element.is(".ui-wrapper")&&b._nodeName.match(/textarea|input|select|button/i)){var f=
c(b.handles[d],this.element),e=0,e=/sw|ne|nw|se|n|s/.test(d)?f.outerHeight():f.outerWidth(),f=["padding",/ne|nw|n/.test(d)?"Top":/se|sw|s/.test(d)?"Bottom":/^e$/.test(d)?"Right":"Left"].join("");b.transparent||a.css(f,e);this._proportionallyResize()}c(b.handles[d])}};this._renderAxis(this.element);b._handles=c(".ui-resizable-handle",e.element);b.disableSelection&&b._handles.each(function(a,d){c.ui.disableSelection(d)});b._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
e.axis=b.axis=a&&a[1]?a[1]:"se"}});b.autoHide&&(b._handles.hide(),c(e.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){c(this).addClass("ui-resizable-autohide");b._handles.hide()}}));this.mouseInit()},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,
originalPosition:this.originalPosition}},propagate:function(e,b){c.ui.plugin.call(this,e,[b,this.ui()]);"resize"!=e&&this.element.triggerHandler(["resize",e].join(""),[b,this.ui()],this.options[e])},destroy:function(){var e=this.element,b=e.children(".ui-resizable").get(0);this.mouseDestroy();var a=function(a){c(a).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};a(e);e.is(".ui-wrapper")&&b&&(e.parent().append(c(b).css({position:e.css("position"),
width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove(),a(b))},mouseStart:function(e){if(this.options.disabled)return!1;var b=!1,a;for(a in this.options.handles)c(this.options.handles[a])[0]==e.target&&(b=!0);if(!b)return!1;var b=this.options,d=this.element.position();a=this.element;var f=function(a){return parseInt(a,10)||0},i=c.browser.msie&&7>c.browser.version;b.resizing=!0;b.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(a.is(".ui-draggable")||
/absolute/.test(a.css("position"))){var h=c.browser.msie&&!b.containment&&/absolute/.test(a.css("position"))&&!/relative/.test(a.parent().css("position"));a.css({position:"absolute",top:d.top+(h?b.documentScroll.top:0),left:d.left+(h?b.documentScroll.left:0)})}c.browser.opera&&/relative/.test(a.css("position"))&&a.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();d=f(this.helper.css("left"));f=f(this.helper.css("top"));b.containment&&(d+=c(b.containment).scrollLeft()||0,f+=c(b.containment).scrollTop()||
0);this.offset=this.helper.offset();this.position={left:d,top:f};this.size=b.helper||i?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()};this.originalSize=b.helper||i?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()};this.originalPosition={left:d,top:f};this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};b.aspectRatio="number"==typeof b.aspectRatio?b.aspectRatio:
this.originalSize.height/this.originalSize.width||1;b.preserveCursor&&c("body").css("cursor",this.axis+"-resize");this.propagate("start",e);return!0},mouseDrag:function(c){var b=this.helper,a=this.options,d=this.originalMousePosition,f=this._change[this.axis];if(!f)return!1;d=f.apply(this,[c,c.pageX-d.left||0,c.pageY-d.top||0]);if(a._aspectRatio||c.shiftKey)d=this._updateRatio(d,c);d=this._respectSize(d,c);this.propagate("resize",c);b.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+
"px",height:this.size.height+"px"});!a.helper&&a.proportionallyResize&&this._proportionallyResize();this._updateCache(d);this.element.triggerHandler("resize",[c,this.ui()],this.options.resize);return!1},mouseStop:function(e){this.options.resizing=!1;var b=this.options;if(b.helper){var a=b.proportionallyResize,d=a&&/textarea/i.test(a.get(0).nodeName),a=d&&c.ui.hasScroll(a.get(0),"left")?0:this.sizeDiff.height,d={width:this.size.width-(d?0:this.sizeDiff.width),height:this.size.height-a},a=parseInt(this.element.css("left"),
10)+(this.position.left-this.originalPosition.left)||null,f=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;b.animate||this.element.css(c.extend(d,{top:f,left:a}));b.helper&&!b.animate&&this._proportionallyResize()}b.preserveCursor&&c("body").css("cursor","auto");this.propagate("stop",e);b.helper&&this.helper.remove();return!1},_updateCache:function(c){this.offset=this.helper.offset();c.left&&(this.position.left=c.left);c.top&&(this.position.top=c.top);c.height&&
(this.size.height=c.height);c.width&&(this.size.width=c.width)},_updateRatio:function(c){var b=this.options,a=this.position,d=this.size,f=this.axis;c.height?c.width=d.height/b.aspectRatio:c.width&&(c.height=d.width*b.aspectRatio);"sw"==f&&(c.left=a.left+(d.width-c.width),c.top=null);"nw"==f&&(c.top=a.top+(d.height-c.height),c.left=a.left+(d.width-c.width));return c},_respectSize:function(c){var b=this.options,a=this.axis,d=c.width&&b.maxWidth&&b.maxWidth<c.width,f=c.height&&b.maxHeight&&b.maxHeight<
c.height,i=c.width&&b.minWidth&&b.minWidth>c.width,h=c.height&&b.minHeight&&b.minHeight>c.height;i&&(c.width=b.minWidth);h&&(c.height=b.minHeight);d&&(c.width=b.maxWidth);f&&(c.height=b.maxHeight);var g=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(a),a=/nw|ne|n/.test(a);i&&k&&(c.left=g-b.minWidth);d&&k&&(c.left=g-b.maxWidth);h&&a&&(c.top=j-b.minHeight);f&&a&&(c.top=j-b.maxHeight);(b=!c.width&&!c.height)&&!c.left&&c.top?c.top=null:b&&!c.top&&
c.left&&(c.left=null);return c},_proportionallyResize:function(){var e=this.options;if(e.proportionallyResize){var b=e.proportionallyResize,a=this.helper||this.element;if(!e.borderDif){var d=[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],f=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];e.borderDif=c.map(d,function(a,d){var b=parseInt(a,10)||0,c=parseInt(f[d],10)||0;return b+c})}b.css({height:a.height()-
e.borderDif[0]-e.borderDif[2]+"px",width:a.width()-e.borderDif[1]-e.borderDif[3]+"px"})}},_renderProxy:function(){var e=this.element,b=this.options;this.elementOffset=e.offset();if(b.helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var a=c.browser.msie&&7>c.browser.version,d=a?1:0,a=a?2:-1;this.helper.addClass(b.helper).css({width:e.outerWidth()+a,height:e.outerHeight()+a,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++b.zIndex});
this.helper.appendTo("body");b.disableSelection&&c.ui.disableSelection(this.helper.get(0))}else this.helper=e},_change:{e:function(c,b){return{width:this.originalSize.width+b}},w:function(c,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(c,b,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(c,b,a){return{height:this.originalSize.height+a}},se:function(e,b,a){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,
[e,b,a]))},sw:function(e,b,a){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,b,a]))},ne:function(e,b,a){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,b,a]))},nw:function(e,b,a){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,b,a]))}}}));c.extend(c.ui.resizable,{defaults:{cancel:":input",distance:1,delay:0,preventDefault:!0,transparent:!1,minWidth:10,minHeight:10,aspectRatio:!1,disableSelection:!0,
preserveCursor:!0,autoHide:!1,knobHandles:!1}});c.ui.plugin.add("resizable","containment",{start:function(e,b){var a=b.options,d=c(this).data("resizable"),f=d.element,a=a.containment;if(f=a instanceof c?a.get(0):/parent/.test(a)?f.parent().get(0):a)if(d.containerElement=c(f),/document/.test(a)||a==document)d.containerOffset={left:0,top:0},d.containerPosition={left:0,top:0},d.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight};
else{d.containerOffset=c(f).offset();d.containerPosition=c(f).position();d.containerSize={height:c(f).innerHeight(),width:c(f).innerWidth()};var a=d.containerOffset,i=d.containerSize.height,h=d.containerSize.width,h=c.ui.hasScroll(f,"left")?f.scrollWidth:h,i=c.ui.hasScroll(f)?f.scrollHeight:i;d.parentData={element:f,left:a.left,top:a.top,width:h,height:i}}},resize:function(e,b){var a=b.options,d=c(this).data("resizable"),f=d.containerOffset,i=d.position,h=a._aspectRatio||e.shiftKey,g={top:0,left:0},
j=d.containerElement;j[0]!=document&&/static/.test(j.css("position"))&&(g=d.containerPosition);if(i.left<(a.helper?f.left:g.left))d.size.width+=a.helper?d.position.left-f.left:d.position.left-g.left,h&&(d.size.height=d.size.width*a.aspectRatio),d.position.left=a.helper?f.left:g.left;if(i.top<(a.helper?f.top:0))d.size.height+=a.helper?d.position.top-f.top:d.position.top,h&&(d.size.width=d.size.height/a.aspectRatio),d.position.top=a.helper?f.top:0;i=(a.helper?d.offset.left-f.left:d.position.left-g.left)+
d.sizeDiff.width;f=(a.helper?d.offset.top-f.top:d.position.top)+d.sizeDiff.height;i+d.size.width>=d.parentData.width&&(d.size.width=d.parentData.width-i,h&&(d.size.height=d.size.width*a.aspectRatio));f+d.size.height>=d.parentData.height&&(d.size.height=d.parentData.height-f,h&&(d.size.width=d.size.height/a.aspectRatio))},stop:function(e,b){var a=b.options,d=c(this).data("resizable"),f=d.containerOffset,i=d.containerPosition,h=d.containerElement,g=c(d.helper),d=g.offset(),j=g.innerWidth(),g=g.innerHeight();
a.helper&&!a.animate&&/relative/.test(h.css("position"))&&c(this).css({left:d.left-f.left,top:d.top-f.top,width:j,height:g});a.helper&&!a.animate&&/static/.test(h.css("position"))&&c(this).css({left:i.left+(d.left-f.left),top:i.top+(d.top-f.top),width:j,height:g})}});c.ui.plugin.add("resizable","grid",{resize:function(e,b){var a=b.options,d=c(this).data("resizable"),f=d.size,i=d.originalSize,h=d.originalPosition,g=d.axis;a.grid="number"==typeof a.grid?[a.grid,a.grid]:a.grid;var j=Math.round((f.width-
i.width)/(a.grid[0]||1))*(a.grid[0]||1),a=Math.round((f.height-i.height)/(a.grid[1]||1))*(a.grid[1]||1);/^(se|s|e)$/.test(g)?(d.size.width=i.width+j,d.size.height=i.height+a):/^(ne)$/.test(g)?(d.size.width=i.width+j,d.size.height=i.height+a,d.position.top=h.top-a):(/^(sw)$/.test(g)?(d.size.width=i.width+j,d.size.height=i.height+a):(d.size.width=i.width+j,d.size.height=i.height+a,d.position.top=h.top-a),d.position.left=h.left-j)}});c.ui.plugin.add("resizable","animate",{stop:function(e,b){var a=b.options,
d=c(this).data("resizable"),f=a.proportionallyResize,i=f&&/textarea/i.test(f.get(0).nodeName),h=i&&c.ui.hasScroll(f.get(0),"left")?0:d.sizeDiff.height,i={width:d.size.width-(i?0:d.sizeDiff.width),height:d.size.height-h},h=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,g=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(c.extend(i,g&&h?{top:g,left:h}:{}),{duration:a.animateDuration||"slow",easing:a.animateEasing||"swing",
step:function(){var a={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};f&&f.css({width:a.width,height:a.height});d._updateCache(a);d.propagate("animate",e)}})}});c.ui.plugin.add("resizable","ghost",{start:function(e,b){var a=b.options,d=c(this).data("resizable"),f=a.proportionallyResize,i=d.size;d.ghost=f?f.clone():d.element.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",
height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof a.ghost?a.ghost:"");d.ghost.appendTo(d.helper)},resize:function(){var e=c(this).data("resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=c(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});c.ui.plugin.add("resizable","alsoResize",{start:function(e,b){var a=b.options;c(this).data("resizable");
var d=function(a){c(a).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};"object"==typeof a.alsoResize?a.alsoResize.length?(a.alsoResize=a.alsoResize[0],d(a.alsoResize)):c.each(a.alsoResize,function(a){d(a)}):d(a.alsoResize)},resize:function(e,b){var a=b.options,d=c(this).data("resizable"),f=d.originalSize,i=d.originalPosition,h={height:d.size.height-
f.height||0,width:d.size.width-f.width||0,top:d.position.top-i.top||0,left:d.position.left-i.left||0},g=function(a,d){c(a).each(function(){var a=c(this).data("resizable-alsoresize"),b={};c.each((d&&d.length?d:["width","height","top","left"])||["width","height","top","left"],function(d,c){var f=(a[c]||0)+(h[c]||0);f&&0<=f&&(b[c]=f||null)});c(this).css(b)})};"object"==typeof a.alsoResize?c.each(a.alsoResize,function(a,d){g(a,d)}):g(a.alsoResize)},stop:function(){c(this).removeData("resizable-alsoresize-start")}})})(jQuery);
(function(c){c.widget("ui.selectable",c.extend({},c.ui.mouse,{init:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=!1;var b;this.refresh=function(){b=c(e.options.filter,e.element[0]);b.each(function(){var a=c(this),d=a.offset();c.data(this,"selectable-item",{element:this,$element:a,left:d.left,top:d.top,right:d.left+a.width(),bottom:d.top+a.height(),startselected:!1,selected:a.hasClass("ui-selected"),selecting:a.hasClass("ui-selecting"),unselecting:a.hasClass("ui-unselecting")})})};
this.refresh();this.selectees=b.addClass("ui-selectee");this.mouseInit();this.helper=c(document.createElement("div")).css({border:"1px dotted black"})},toggle:function(){this.options.disabled?this.enable():this.disable()},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this.mouseDestroy()},mouseStart:function(e){var b=this;this.opos=[e.pageX,e.pageY];if(!this.options.disabled){var a=this.options;this.selectees=c(a.filter,
this.element[0]);this.element.triggerHandler("selectablestart",[e,{selectable:this.element[0],options:a}],a.start);c("body").append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});a.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var d=c.data(this,"selectable-item");d.startselected=!0;e.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,
b.element.triggerHandler("selectableunselecting",[e,{selectable:b.element[0],unselecting:d.element,options:a}],a.unselecting))});var d=!1;c(e.target).parents().andSelf().each(function(){c.data(this,"selectable-item")&&(d=!0)});return this.options.keyboard?!d:!0}},mouseDrag:function(e){var b=this;this.dragged=!0;if(!this.options.disabled){var a=this.options,d=this.opos[0],f=this.opos[1],i=e.pageX,h=e.pageY;if(d>i)var g=i,i=d,d=g;f>h&&(g=h,h=f,f=g);this.helper.css({left:d,top:f,width:i-d,height:h-f});
this.selectees.each(function(){var g=c.data(this,"selectable-item");if(g&&g.element!=b.element[0]){var k=false;a.tolerance=="touch"?k=!(g.left>i||g.right<d||g.top>h||g.bottom<f):a.tolerance=="fit"&&(k=g.left>d&&g.right<i&&g.top>f&&g.bottom<h);if(k){if(g.selected){g.$element.removeClass("ui-selected");g.selected=false}if(g.unselecting){g.$element.removeClass("ui-unselecting");g.unselecting=false}if(!g.selecting){g.$element.addClass("ui-selecting");g.selecting=true;b.element.triggerHandler("selectableselecting",
[e,{selectable:b.element[0],selecting:g.element,options:a}],a.selecting)}}else{if(g.selecting)if(e.ctrlKey&&g.startselected){g.$element.removeClass("ui-selecting");g.selecting=false;g.$element.addClass("ui-selected");g.selected=true}else{g.$element.removeClass("ui-selecting");g.selecting=false;if(g.startselected){g.$element.addClass("ui-unselecting");g.unselecting=true}b.element.triggerHandler("selectableunselecting",[e,{selectable:b.element[0],unselecting:g.element,options:a}],a.unselecting)}if(g.selected&&
!e.ctrlKey&&!g.startselected){g.$element.removeClass("ui-selected");g.selected=false;g.$element.addClass("ui-unselecting");g.unselecting=true;b.element.triggerHandler("selectableunselecting",[e,{selectable:b.element[0],unselecting:g.element,options:a}],a.unselecting)}}}});return!1}},mouseStop:function(e){var b=this;this.dragged=!1;var a=this.options;c(".ui-unselecting",this.element[0]).each(function(){var d=c.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=!1;d.startselected=
!1;b.element.triggerHandler("selectableunselected",[e,{selectable:b.element[0],unselected:d.element,options:a}],a.unselected)});c(".ui-selecting",this.element[0]).each(function(){var d=c.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=!1;d.selected=!0;d.startselected=!0;b.element.triggerHandler("selectableselected",[e,{selectable:b.element[0],selected:d.element,options:a}],a.selected)});this.element.triggerHandler("selectablestop",[e,{selectable:b.element[0],
options:this.options}],this.options.stop);this.helper.remove();return!1}}));c.extend(c.ui.selectable,{defaults:{distance:1,delay:0,cancel:":input",appendTo:"body",autoRefresh:!0,filter:"*",tolerance:"touch"}})})(jQuery);
(function(c){function e(b,a){var d=c.browser.safari&&522>c.browser.version;if(b.contains&&!d)return b.contains(a);if(b.compareDocumentPosition)return!!(b.compareDocumentPosition(a)&16);for(;a=a.parentNode;)if(a==b)return!0;return!1}c.widget("ui.sortable",c.extend({},c.ui.mouse,{init:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):!1;/(relative|absolute|fixed)/.test(this.element.css("position"))||
this.element.css("position","relative");this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(b){return{helper:(b||this).helper,placeholder:(b||this).placeholder||c([]),position:(b||this).position,absolutePosition:(b||this).positionAbs,options:this.options,element:this.element,item:(b||this).currentItem,sender:b?b.element:null}},propagate:function(b,a,d,f){c.ui.plugin.call(this,b,[a,this.ui(d)]);f||this.element.triggerHandler("sort"==b?b:"sort"+b,[a,this.ui(d)],this.options[b])},
serialize:function(b){var a=(c.isFunction(this.options.items)?this.options.items.call(this.element):c(this.options.items,this.element)).not(".ui-sortable-helper"),d=[],b=b||{};a.each(function(){var a=(c(this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);a&&d.push((b.key||a[1])+"[]="+(b.key&&b.expression?a[1]:a[2]))});return d.join("&")},toArray:function(b){var a=[];(c.isFunction(this.options.items)?this.options.items.call(this.element):c(this.options.items,this.element)).not(".ui-sortable-helper").each(function(){a.push(c(this).attr(b||
"id"))});return a},intersectsWith:function(b){var a=this.positionAbs.left,d=a+this.helperProportions.width,c=this.positionAbs.top,e=c+this.helperProportions.height,h=b.left,g=h+b.width,j=b.top,k=j+b.height;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"guess"==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]?c+this.offset.click.top>j&&c+this.offset.click.top<k&&a+this.offset.click.left>h&&a+this.offset.click.left<
g:h<a+this.helperProportions.width/2&&d-this.helperProportions.width/2<g&&j<c+this.helperProportions.height/2&&e-this.helperProportions.height/2<k},intersectsWithEdge:function(b){var a=this.positionAbs.left,d=a+this.helperProportions.width,c=this.positionAbs.top,e=c+this.helperProportions.height,h=b.left,g=h+b.width,j=b.top,k=j+b.height;if("pointer"==this.options.tolerance||"guess"==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>b[this.floating?"width":"height"]){if(!(c+
this.offset.click.top>j&&c+this.offset.click.top<k&&a+this.offset.click.left>h&&a+this.offset.click.left<g))return!1;if(this.floating){if(a+this.offset.click.left>h&&a+this.offset.click.left<h+b.width/2)return 2;if(a+this.offset.click.left>h+b.width/2&&a+this.offset.click.left<g)return 1}else{if(c+this.offset.click.top>j&&c+this.offset.click.top<j+b.height/2)return 2;if(c+this.offset.click.top>j+b.height/2&&c+this.offset.click.top<k)return 1}}else{if(!(h<a+this.helperProportions.width/2&&d-this.helperProportions.width/
2<g&&j<c+this.helperProportions.height/2&&e-this.helperProportions.height/2<k))return!1;if(this.floating){if(d>h&&a<h)return 2;if(a<g&&d>g)return 1}else{if(e>j&&c<j)return 1;if(c<k&&e>k)return 2}}return!1},refresh:function(){this.refreshItems();this.refreshPositions()},refreshItems:function(){this.items=[];this.containers=[this];var b=this.items,a=[[c.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element),
this]];if(this.options.connectWith)for(var d=this.options.connectWith.length-1;0<=d;d--)for(var f=c(this.options.connectWith[d]),e=f.length-1;0<=e;e--){var h=c.data(f[e],"sortable");h&&!h.options.disabled&&(a.push([c.isFunction(h.options.items)?h.options.items.call(h.element):c(h.options.items,h.element),h]),this.containers.push(h))}for(d=a.length-1;0<=d;d--)a[d][0].each(function(){c.data(this,"sortable-item",a[d][1]);b.push({item:c(this),instance:a[d][1],width:0,height:0,left:0,top:0})})},refreshPositions:function(b){if(this.offsetParent){var a=
this.offsetParent.offset();this.offset.parent={top:a.top+this.offsetParentBorders.top,left:a.left+this.offsetParentBorders.left}}for(a=this.items.length-1;0<=a;a--)if(!(this.items[a].instance!=this.currentContainer&&this.currentContainer&&this.items[a].item[0]!=this.currentItem[0])){var d=this.options.toleranceElement?c(this.options.toleranceElement,this.items[a].item):this.items[a].item;b||(this.items[a].width=d[0].offsetWidth,this.items[a].height=d[0].offsetHeight);d=d.offset();this.items[a].left=
d.left;this.items[a].top=d.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(a=this.containers.length-1;0<=a;a--)d=this.containers[a].element.offset(),this.containers[a].containerCache.left=d.left,this.containers[a].containerCache.top=d.top,this.containers[a].containerCache.width=this.containers[a].element.outerWidth(),this.containers[a].containerCache.height=this.containers[a].element.outerHeight()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this.mouseDestroy();for(var b=this.items.length-1;0<=b;b--)this.items[b].item.removeData("sortable-item")},createPlaceholder:function(b){var b=b||this,a=b.options;if(a.placeholder.constructor==String){var d=a.placeholder;a.placeholder={element:function(){return c("<div></div>").addClass(d)[0]},update:function(a,d){d.css(a.offset()).css({width:a.outerWidth(),height:a.outerHeight()})}}}b.placeholder=c(a.placeholder.element.call(b.element,b.currentItem)).appendTo("body").css({position:"absolute"});a.placeholder.update.call(b.element,
b.currentItem,b.placeholder)},contactContainers:function(b){for(var a=this.containers.length-1;0<=a;a--)if(this.intersectsWith(this.containers[a].containerCache)){if(!this.containers[a].containerCache.over){if(this.currentContainer!=this.containers[a]){for(var d=1E4,c=null,i=this.positionAbs[this.containers[a].floating?"left":"top"],h=this.items.length-1;0<=h;h--)if(e(this.containers[a].element[0],this.items[h].item[0])){var g=this.items[h][this.containers[a].floating?"left":"top"];Math.abs(g-i)<
d&&(d=Math.abs(g-i),c=this.items[h])}if(!c&&!this.options.dropOnEmpty)continue;this.placeholder&&this.placeholder.remove();this.containers[a].options.placeholder?this.containers[a].createPlaceholder(this):this.placeholder=null;this.currentContainer=this.containers[a];c?this.rearrange(b,c,null,!0):this.rearrange(b,null,this.containers[a].element,!0);this.propagate("change",b);this.containers[a].propagate("change",b,this)}this.containers[a].propagate("over",b,this);this.containers[a].containerCache.over=
1}}else this.containers[a].containerCache.over&&(this.containers[a].propagate("out",b,this),this.containers[a].containerCache.over=0)},mouseCapture:function(b,a){if(this.options.disabled||"static"==this.options.type)return!1;this.refreshItems();var d=null,f=this;c(b.target).parents().each(function(){if(c.data(this,"sortable-item")==f)return d=c(this),!1});c.data(b.target,"sortable-item")==f&&(d=c(b.target));if(!d)return!1;if(this.options.handle&&!a){var e=!1;c(this.options.handle,d).find("*").andSelf().each(function(){this==
b.target&&(e=!0)});if(!e)return!1}this.currentItem=d;return!0},mouseStart:function(b,a,d){a=this.options;this.currentContainer=this;this.refreshPositions();this.helper="function"==typeof a.helper?c(a.helper.apply(this.element[0],[b,this.currentItem])):this.currentItem.clone();this.helper.parents("body").length||c("parent"!=a.appendTo?a.appendTo:this.currentItem[0].parentNode)[0].appendChild(this.helper[0]);this.helper.css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.margins=
{left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:b.pageX-this.offset.left,top:b.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var f=this.offsetParent.offset();this.offsetParentBorders={top:parseInt(this.offsetParent.css("borderTopWidth"),10)||0,left:parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0};this.offset.parent={top:f.top+this.offsetParentBorders.top,left:f.left+this.offsetParentBorders.left};this.originalPosition=this.generatePosition(b);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};a.placeholder&&this.createPlaceholder();this.propagate("start",b);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(a.cursorAt&&
(void 0!=a.cursorAt.left&&(this.offset.click.left=a.cursorAt.left),void 0!=a.cursorAt.right&&(this.offset.click.left=this.helperProportions.width-a.cursorAt.right),void 0!=a.cursorAt.top&&(this.offset.click.top=a.cursorAt.top),void 0!=a.cursorAt.bottom))this.offset.click.top=this.helperProportions.height-a.cursorAt.bottom;if(a.containment){"parent"==a.containment&&(a.containment=this.helper[0].parentNode);if("document"==a.containment||"window"==a.containment)this.containment=[0-this.offset.parent.left,
0-this.offset.parent.top,c("document"==a.containment?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(c("document"==a.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)];if(!/^(document|window|parent)$/.test(a.containment)){var f=c(a.containment)[0],e=c(a.containment).offset();
this.containment=[e.left+(parseInt(c(f).css("borderLeftWidth"),10)||0)-this.offset.parent.left,e.top+(parseInt(c(f).css("borderTopWidth"),10)||0)-this.offset.parent.top,e.left+Math.max(f.scrollWidth,f.offsetWidth)-(parseInt(c(f).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),e.top+Math.max(f.scrollHeight,f.offsetHeight)-(parseInt(c(f).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-
this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}"clone"!=this.options.placeholder&&this.currentItem.css("visibility","hidden");if(!d)for(d=this.containers.length-1;0<=d;d--)this.containers[d].propagate("activate",b,this);c.ui.ddmanager&&(c.ui.ddmanager.current=this);c.ui.ddmanager&&!a.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,b);this.dragging=!0;this.mouseDrag(b);return!0},convertPositionTo:function(b,a){a||(a=this.position);var d="absolute"==b?1:-1;return{top:a.top+
this.offset.parent.top*d-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*d+this.margins.top*d,left:a.left+this.offset.parent.left*d-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*d+this.margins.left*d}},generatePosition:function(b){var a=this.options,b={top:b.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop),left:b.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft)};if(!this.originalPosition)return b;if(this.containment&&(b.left<this.containment[0]&&(b.left=this.containment[0]),b.top<this.containment[1]&&(b.top=this.containment[1]),b.left>this.containment[2]&&(b.left=this.containment[2]),b.top>this.containment[3]))b.top=this.containment[3];if(a.grid){var d=this.originalPosition.top+Math.round((b.top-this.originalPosition.top)/a.grid[1])*a.grid[1];b.top=this.containment?!(d<this.containment[1]||d>this.containment[3])?
d:!(d<this.containment[1])?d-a.grid[1]:d+a.grid[1]:d;d=this.originalPosition.left+Math.round((b.left-this.originalPosition.left)/a.grid[0])*a.grid[0];b.left=this.containment?!(d<this.containment[0]||d>this.containment[2])?d:!(d<this.containment[0])?d-a.grid[0]:d+a.grid[0]:d}return b},mouseDrag:function(b){this.position=this.generatePosition(b);this.positionAbs=this.convertPositionTo("absolute");c.ui.plugin.call(this,"sort",[b,this.ui()]);this.positionAbs=this.convertPositionTo("absolute");this.helper[0].style.left=
this.position.left+"px";this.helper[0].style.top=this.position.top+"px";for(var a=this.items.length-1;0<=a;a--){var d=this.intersectsWithEdge(this.items[a]);if(d&&this.items[a].item[0]!=this.currentItem[0]&&this.currentItem[1==d?"next":"prev"]()[0]!=this.items[a].item[0]&&!e(this.currentItem[0],this.items[a].item[0])&&("semi-dynamic"==this.options.type?!e(this.element[0],this.items[a].item[0]):1)){this.direction=1==d?"down":"up";this.rearrange(b,this.items[a]);this.propagate("change",b);break}}this.contactContainers(b);
c.ui.ddmanager&&c.ui.ddmanager.drag(this,b);this.element.triggerHandler("sort",[b,this.ui()],this.options.sort);return!1},rearrange:function(b,a,d,c){d?d[0].appendChild(this.currentItem[0]):a.item[0].parentNode.insertBefore(this.currentItem[0],"down"==this.direction?a.item[0]:a.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var e=this,h=this.counter;window.setTimeout(function(){h==e.counter&&e.refreshPositions(!c)},0);this.options.placeholder&&this.options.placeholder.update.call(this.element,
this.currentItem,this.placeholder)},mouseStop:function(b,a){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,f=d.currentItem.offset();d.placeholder&&d.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50);c(this.helper).animate({left:f.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.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(b)})}else this.clear(b,a);return!1},clear:function(b,a){(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&this.propagate("update",b,null,a);if(!e(this.element[0],this.currentItem[0])){this.propagate("remove",b,null,a);for(var d=this.containers.length-1;0<=d;d--)e(this.containers[d].element[0],this.currentItem[0])&&
(this.containers[d].propagate("update",b,this,a),this.containers[d].propagate("receive",b,this,a))}for(d=this.containers.length-1;0<=d;d--)this.containers[d].propagate("deactivate",b,this,a),this.containers[d].containerCache.over&&(this.containers[d].propagate("out",b,this),this.containers[d].containerCache.over=0);this.dragging=!1;if(this.cancelHelperRemoval)return this.propagate("stop",b,null,a),!1;c(this.currentItem).css("visibility","");this.placeholder&&this.placeholder.remove();this.helper.remove();
this.helper=null;this.propagate("stop",b,null,a);return!0}}));c.extend(c.ui.sortable,{getter:"serialize toArray",defaults:{helper:"clone",tolerance:"guess",distance:1,delay:0,scroll:!0,scrollSensitivity:20,scrollSpeed:20,cancel:":input",items:"> *",zIndex:1E3,dropOnEmpty:!0,appendTo:"parent"}});c.ui.plugin.add("sortable","cursor",{start:function(b,a){var d=c("body");d.css("cursor")&&(a.options._cursor=d.css("cursor"));d.css("cursor",a.options.cursor)},stop:function(b,a){a.options._cursor&&c("body").css("cursor",
a.options._cursor)}});c.ui.plugin.add("sortable","zIndex",{start:function(b,a){var d=a.helper;d.css("zIndex")&&(a.options._zIndex=d.css("zIndex"));d.css("zIndex",a.options.zIndex)},stop:function(b,a){a.options._zIndex&&c(a.helper).css("zIndex",a.options._zIndex)}});c.ui.plugin.add("sortable","opacity",{start:function(b,a){var d=a.helper;d.css("opacity")&&(a.options._opacity=d.css("opacity"));d.css("opacity",a.options.opacity)},stop:function(b,a){a.options._opacity&&c(a.helper).css("opacity",a.options._opacity)}});
c.ui.plugin.add("sortable","scroll",{start:function(){var b=c(this).data("sortable"),a;a:{a=b.currentItem;do{if(/auto|scroll/.test(a.css("overflow"))||/auto|scroll/.test(a.css("overflow-y")))break a;a=a.parent()}while(a[0].parentNode);a=c(document)}b.overflowY=a;a:{a=b.currentItem;do{if(/auto|scroll/.test(a.css("overflow"))||/auto|scroll/.test(a.css("overflow-x")))break a;a=a.parent()}while(a[0].parentNode);a=c(document)}b.overflowX=a;b.overflowY[0]!=document&&"HTML"!=b.overflowY[0].tagName&&(b.overflowYOffset=
b.overflowY.offset());b.overflowX[0]!=document&&"HTML"!=b.overflowX[0].tagName&&(b.overflowXOffset=b.overflowX.offset())},sort:function(b,a){var d=a.options,f=c(this).data("sortable");if(f.overflowY[0]!=document&&"HTML"!=f.overflowY[0].tagName){if(f.overflowYOffset.top+f.overflowY[0].offsetHeight-b.pageY<d.scrollSensitivity&&(f.overflowY[0].scrollTop+=d.scrollSpeed),b.pageY-f.overflowYOffset.top<d.scrollSensitivity)f.overflowY[0].scrollTop-=d.scrollSpeed}else b.pageY-c(document).scrollTop()<d.scrollSensitivity&&
c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed),c(window).height()-(b.pageY-c(document).scrollTop())<d.scrollSensitivity&&c(document).scrollTop(c(document).scrollTop()+d.scrollSpeed);if(f.overflowX[0]!=document&&"HTML"!=f.overflowX[0].tagName){if(f.overflowXOffset.left+f.overflowX[0].offsetWidth-b.pageX<d.scrollSensitivity&&(f.overflowX[0].scrollLeft+=d.scrollSpeed),b.pageX-f.overflowXOffset.left<d.scrollSensitivity)f.overflowX[0].scrollLeft-=d.scrollSpeed}else b.pageX-c(document).scrollLeft()<
d.scrollSensitivity&&c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed),c(window).width()-(b.pageX-c(document).scrollLeft())<d.scrollSensitivity&&c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}});c.ui.plugin.add("sortable","axis",{sort:function(b,a){var d=c(this).data("sortable");"y"==a.options.axis&&(d.position.left=d.originalPosition.left);"x"==a.options.axis&&(d.position.top=d.originalPosition.top)}})})(jQuery);
(function(c){function e(a){var d;return a&&a.constructor==Array&&3==a.length?a:(d=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))?[parseInt(d[1]),parseInt(d[2]),parseInt(d[3])]:(d=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))?[2.55*parseFloat(d[1]),2.55*parseFloat(d[2]),2.55*parseFloat(d[3])]:(d=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))?[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]:
(d=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))?[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(a)?b.transparent:b[jQuery.trim(a).toLowerCase()]}c.effects=c.effects||{};c.extend(c.effects,{save:function(a,d){for(var b=0;b<d.length;b++)null!==d[b]&&c.data(a[0],"ec.storage."+d[b],a[0].style[d[b]])},restore:function(a,d){for(var b=0;b<d.length;b++)null!==d[b]&&a.css(d[b],c.data(a[0],"ec.storage."+d[b]))},setMode:function(a,d){"toggle"==d&&(d=a.is(":hidden")?
"show":"hide");return d},getBaseline:function(a,d){var b,c;switch(a[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=a[0]/d.height}switch(a[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=a[1]/d.width}return{x:c,y:b}},createWrapper:function(a){if("fxWrapper"==a.parent().attr("id"))return a;var d={width:a.outerWidth({margin:!0}),height:a.outerHeight({margin:!0}),"float":a.css("float")};a.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
var b=a.parent();if("static"==a.css("position"))b.css({position:"relative"}),a.css({position:"relative"});else{var c=a.css("top");isNaN(parseInt(c))&&(c="auto");var e=a.css("left");isNaN(parseInt(e))&&(e="auto");b.css({position:a.css("position"),top:c,left:e,zIndex:a.css("z-index")}).show();a.css({position:"relative",top:0,left:0})}b.css(d);return b},removeWrapper:function(a){return"fxWrapper"==a.parent().attr("id")?a.parent().replaceWith(a):a},setTransition:function(a,d,b,e){e=e||{};c.each(d,function(d,
c){unit=a.cssUnit(c);0<unit[0]&&(e[c]=unit[0]*b+unit[1])});return e},animateClass:function(a,d,b,e){var h="function"==typeof b?b:e?e:null,g="object"==typeof b?b:null;return this.each(function(){var b={},f=c(this),e=f.attr("style")||"";"object"==typeof e&&(e=e.cssText);a.toggle&&(f.hasClass(a.toggle)?a.remove=a.toggle:a.add=a.toggle);var i=c.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);a.add&&f.addClass(a.add);a.remove&&f.removeClass(a.remove);
var m=c.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);a.add&&f.removeClass(a.add);a.remove&&f.addClass(a.remove);for(var n in m)if("function"!=typeof m[n]&&m[n]&&-1==n.indexOf("Moz")&&-1==n.indexOf("length")&&m[n]!=i[n]&&(n.match(/color/i)||!n.match(/color/i)&&!isNaN(parseInt(m[n],10)))&&("static"!=i.position||"static"==i.position&&!n.match(/left|top|bottom|right/)))b[n]=m[n];f.animate(b,d,g,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style").cssText=
"";c(this).attr("style").cssText=e}else c(this).attr("style",e);a.add&&c(this).addClass(a.add);a.remove&&c(this).removeClass(a.remove);h&&h.apply(this,arguments)})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(a,d,b,e){return c.effects[a]?c.effects[a].call(this,{method:a,options:d||{},duration:b,callback:e}):null},show:function(){if(!arguments[0]||arguments[0].constructor==
Number||/(slow|normal|fast)/.test(arguments[0]))return this._show.apply(this,arguments);var a=arguments[1]||{};a.mode="show";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])},hide:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._hide.apply(this,arguments);var a=arguments[1]||{};a.mode="hide";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])},
toggle:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0])||arguments[0].constructor==Function)return this.__toggle.apply(this,arguments);var a=arguments[1]||{};a.mode="toggle";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])},addClass:function(a,d,b,e){return d?c.effects.animateClass.apply(this,[{add:a},d,b,e]):this._addClass(a)},removeClass:function(a,d,b,e){return d?c.effects.animateClass.apply(this,
[{remove:a},d,b,e]):this._removeClass(a)},toggleClass:function(a,d,b,e){return d?c.effects.animateClass.apply(this,[{toggle:a},d,b,e]):this._toggleClass(a)},morph:function(a,d,b,e,h){return c.effects.animateClass.apply(this,[{add:d,remove:a},b,e,h])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(a){var d=this.css(a),b=[];c.each(["em","px","%","pt"],function(a,c){0<d.indexOf(c)&&(b=[parseFloat(d),c])});return b}});jQuery.each("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),
function(a,d){jQuery.fx.step[d]=function(a){if(a.state==0){var b;b=a.elem;var c=d,g;do{g=jQuery.curCSS(b,c);if(g!=""&&g!="transparent"||jQuery.nodeName(b,"body"))break;c="backgroundColor"}while(b=b.parentNode);b=e(g);a.start=b;a.end=e(a.end)}a.elem.style[d]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join()+")"}});
var b={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]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,d,
b,c,e){return jQuery.easing[jQuery.easing.def](a,d,b,c,e)},easeInQuad:function(a,d,b,c,e){return c*(d/=e)*d+b},easeOutQuad:function(a,d,b,c,e){return-c*(d/=e)*(d-2)+b},easeInOutQuad:function(a,d,b,c,e){return 1>(d/=e/2)?c/2*d*d+b:-c/2*(--d*(d-2)-1)+b},easeInCubic:function(a,d,b,c,e){return c*(d/=e)*d*d+b},easeOutCubic:function(a,d,b,c,e){return c*((d=d/e-1)*d*d+1)+b},easeInOutCubic:function(a,d,b,c,e){return 1>(d/=e/2)?c/2*d*d*d+b:c/2*((d-=2)*d*d+2)+b},easeInQuart:function(a,d,b,c,e){return c*(d/=
e)*d*d*d+b},easeOutQuart:function(a,d,b,c,e){return-c*((d=d/e-1)*d*d*d-1)+b},easeInOutQuart:function(a,d,b,c,e){return 1>(d/=e/2)?c/2*d*d*d*d+b:-c/2*((d-=2)*d*d*d-2)+b},easeInQuint:function(a,d,b,c,e){return c*(d/=e)*d*d*d*d+b},easeOutQuint:function(a,d,b,c,e){return c*((d=d/e-1)*d*d*d*d+1)+b},easeInOutQuint:function(a,d,b,c,e){return 1>(d/=e/2)?c/2*d*d*d*d*d+b:c/2*((d-=2)*d*d*d*d+2)+b},easeInSine:function(a,d,b,c,e){return-c*Math.cos(d/e*(Math.PI/2))+c+b},easeOutSine:function(a,d,b,c,e){return c*
Math.sin(d/e*(Math.PI/2))+b},easeInOutSine:function(a,d,b,c,e){return-c/2*(Math.cos(Math.PI*d/e)-1)+b},easeInExpo:function(a,d,b,c,e){return 0==d?b:c*Math.pow(2,10*(d/e-1))+b},easeOutExpo:function(a,d,b,c,e){return d==e?b+c:c*(-Math.pow(2,-10*d/e)+1)+b},easeInOutExpo:function(a,d,b,c,e){return 0==d?b:d==e?b+c:1>(d/=e/2)?c/2*Math.pow(2,10*(d-1))+b:c/2*(-Math.pow(2,-10*--d)+2)+b},easeInCirc:function(a,d,b,c,e){return-c*(Math.sqrt(1-(d/=e)*d)-1)+b},easeOutCirc:function(a,d,b,c,e){return c*Math.sqrt(1-
(d=d/e-1)*d)+b},easeInOutCirc:function(a,d,b,c,e){return 1>(d/=e/2)?-c/2*(Math.sqrt(1-d*d)-1)+b:c/2*(Math.sqrt(1-(d-=2)*d)+1)+b},easeInElastic:function(a,d,b,c,e){var a=1.70158,g=0,j=c;if(0==d)return b;if(1==(d/=e))return b+c;g||(g=0.3*e);j<Math.abs(c)?(j=c,a=g/4):a=g/(2*Math.PI)*Math.asin(c/j);return-(j*Math.pow(2,10*(d-=1))*Math.sin((d*e-a)*2*Math.PI/g))+b},easeOutElastic:function(a,d,b,c,e){var a=1.70158,g=0,j=c;if(0==d)return b;if(1==(d/=e))return b+c;g||(g=0.3*e);j<Math.abs(c)?(j=c,a=g/4):a=
g/(2*Math.PI)*Math.asin(c/j);return j*Math.pow(2,-10*d)*Math.sin((d*e-a)*2*Math.PI/g)+c+b},easeInOutElastic:function(a,d,b,c,e){var a=1.70158,g=0,j=c;if(0==d)return b;if(2==(d/=e/2))return b+c;g||(g=e*0.3*1.5);j<Math.abs(c)?(j=c,a=g/4):a=g/(2*Math.PI)*Math.asin(c/j);return 1>d?-0.5*j*Math.pow(2,10*(d-=1))*Math.sin((d*e-a)*2*Math.PI/g)+b:0.5*j*Math.pow(2,-10*(d-=1))*Math.sin((d*e-a)*2*Math.PI/g)+c+b},easeInBack:function(a,d,b,c,e,g){void 0==g&&(g=1.70158);return c*(d/=e)*d*((g+1)*d-g)+b},easeOutBack:function(a,
d,b,c,e,g){void 0==g&&(g=1.70158);return c*((d=d/e-1)*d*((g+1)*d+g)+1)+b},easeInOutBack:function(a,d,b,c,e,g){void 0==g&&(g=1.70158);return 1>(d/=e/2)?c/2*d*d*(((g*=1.525)+1)*d-g)+b:c/2*((d-=2)*d*(((g*=1.525)+1)*d+g)+2)+b},easeInBounce:function(a,d,b,c,e){return c-jQuery.easing.easeOutBounce(a,e-d,0,c,e)+b},easeOutBounce:function(a,d,b,c,e){return(d/=e)<1/2.75?c*7.5625*d*d+b:d<2/2.75?c*(7.5625*(d-=1.5/2.75)*d+0.75)+b:d<2.5/2.75?c*(7.5625*(d-=2.25/2.75)*d+0.9375)+b:c*(7.5625*(d-=2.625/2.75)*d+0.984375)+
b},easeInOutBounce:function(a,d,b,c,e){return d<e/2?0.5*jQuery.easing.easeInBounce(a,2*d,0,c,e)+b:0.5*jQuery.easing.easeOutBounce(a,2*d-e,0,c,e)+0.5*c+b}})})(jQuery);
(function(c){c.effects.blind=function(e){return this.queue(function(){var b=c(this),a=["position","top","left"],d=c.effects.setMode(b,e.options.mode||"hide"),f=e.options.direction||"vertical";c.effects.save(b,a);b.show();var i=c.effects.createWrapper(b).css({overflow:"hidden"}),h="vertical"==f?"height":"width",f="vertical"==f?i.height():i.width();"show"==d&&i.css(h,0);var g={};g[h]="show"==d?f:0;i.animate(g,e.duration,e.options.easing,function(){"hide"==d&&b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);
e.callback&&e.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
(function(c){c.effects.bounce=function(e){return this.queue(function(){var b=c(this),a=["position","top","left"],d=c.effects.setMode(b,e.options.mode||"effect"),f=e.options.direction||"up",i=e.options.distance||20,h=e.options.times||5,g=e.duration||250;/show|hide/.test(d)&&a.push("opacity");c.effects.save(b,a);b.show();c.effects.createWrapper(b);var j="up"==f||"down"==f?"top":"left",f="up"==f||"left"==f?"pos":"neg",i=e.options.distance||("top"==j?b.outerHeight({margin:!0})/3:b.outerWidth({margin:!0})/
3);"show"==d&&b.css("opacity",0).css(j,"pos"==f?-i:i);"hide"==d&&(i/=2*h);"hide"!=d&&h--;if("show"==d){var k={opacity:1};k[j]=("pos"==f?"+=":"-=")+i;b.animate(k,g/2,e.options.easing);i/=2;h--}for(k=0;k<h;k++){var l={},o={};l[j]=("pos"==f?"-=":"+=")+i;o[j]=("pos"==f?"+=":"-=")+i;b.animate(l,g/2,e.options.easing).animate(o,g/2,e.options.easing);i="hide"==d?2*i:i/2}"hide"==d?(k={opacity:0},k[j]=("pos"==f?"-=":"+=")+i,b.animate(k,g/2,e.options.easing,function(){b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);
e.callback&&e.callback.apply(this,arguments)})):(l={},o={},l[j]=("pos"==f?"-=":"+=")+i,o[j]=("pos"==f?"+=":"-=")+i,b.animate(l,g/2,e.options.easing).animate(o,g/2,e.options.easing,function(){c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(this,arguments)}));b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
(function(c){c.effects.clip=function(e){return this.queue(function(){var b=c(this),a=["position","top","left","height","width"],d=c.effects.setMode(b,e.options.mode||"hide"),f=e.options.direction||"vertical";c.effects.save(b,a);b.show();var i=c.effects.createWrapper(b).css({overflow:"hidden"}),i="IMG"==b[0].tagName?i:b,h="vertical"==f?"height":"width",g="vertical"==f?"top":"left",f="vertical"==f?i.height():i.width();"show"==d&&(i.css(h,0),i.css(g,f/2));var j={};j[h]="show"==d?f:0;j[g]="show"==d?0:
f/2;i.animate(j,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){d=="hide"&&b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(b[0],arguments);b.dequeue()}})})}})(jQuery);
(function(c){c.effects.drop=function(e){return this.queue(function(){var b=c(this),a=["position","top","left","opacity"],d=c.effects.setMode(b,e.options.mode||"hide"),f=e.options.direction||"left";c.effects.save(b,a);b.show();c.effects.createWrapper(b);var i="up"==f||"down"==f?"top":"left",f="up"==f||"left"==f?"pos":"neg",h=e.options.distance||("top"==i?b.outerHeight({margin:!0})/2:b.outerWidth({margin:!0})/2);"show"==d&&b.css("opacity",0).css(i,"pos"==f?-h:h);var g={opacity:"show"==d?1:0};g[i]=("show"==
d?"pos"==f?"+=":"-=":"pos"==f?"-=":"+=")+h;b.animate(g,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==d&&b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery);
(function(c){c.effects.explode=function(e){return this.queue(function(){var b=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,a=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode="toggle"==e.options.mode?c(this).is(":visible")?"hide":"show":e.options.mode;var d=c(this).show().css("visibility","hidden"),f=d.offset();f.top-=parseInt(d.css("marginTop"))||0;f.left-=parseInt(d.css("marginLeft"))||0;for(var i=d.outerWidth(!0),h=d.outerHeight(!0),g=0;g<b;g++)for(var j=0;j<
a;j++)d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(i/a),top:-g*(h/b)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:i/a,height:h/b,left:f.left+j*(i/a)+("show"==e.options.mode?(j-Math.floor(a/2))*(i/a):0),top:f.top+g*(h/b)+("show"==e.options.mode?(g-Math.floor(b/2))*(h/b):0),opacity:"show"==e.options.mode?0:1}).animate({left:f.left+j*(i/a)+("show"==e.options.mode?0:(j-Math.floor(a/2))*(i/a)),top:f.top+
g*(h/b)+("show"==e.options.mode?0:(g-Math.floor(b/2))*(h/b)),opacity:"show"==e.options.mode?1:0},e.duration||500);setTimeout(function(){"show"==e.options.mode?d.css({visibility:"visible"}):d.css({visibility:"visible"}).hide();e.callback&&e.callback.apply(d[0]);d.dequeue();c(".effects-explode").remove()},e.duration||500)})}})(jQuery);
(function(c){c.effects.fold=function(e){return this.queue(function(){var b=c(this),a=["position","top","left"],d=c.effects.setMode(b,e.options.mode||"hide"),f=e.options.size||15,i=!!e.options.horizFirst;c.effects.save(b,a);b.show();var h=c.effects.createWrapper(b).css({overflow:"hidden"}),g="show"==d!=i,j=g?["width","height"]:["height","width"],g=g?[h.width(),h.height()]:[h.height(),h.width()],k=/([0-9]+)%/.exec(f);k&&(f=parseInt(k[1])/100*g["hide"==d?0:1]);"show"==d&&h.css(i?{height:0,width:f}:{height:f,
width:0});i={};k={};i[j[0]]="show"==d?g[0]:f;k[j[1]]="show"==d?g[1]:0;h.animate(i,e.duration/2,e.options.easing).animate(k,e.duration/2,e.options.easing,function(){"hide"==d&&b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
(function(c){c.effects.highlight=function(e){return this.queue(function(){var b=c(this),a=["backgroundImage","backgroundColor","opacity"],d=c.effects.setMode(b,e.options.mode||"show"),f=e.options.color||"#ffff99",i=b.css("backgroundColor");c.effects.save(b,a);b.show();b.css({backgroundImage:"none",backgroundColor:f});f={backgroundColor:i};"hide"==d&&(f.opacity=0);b.animate(f,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==d&&b.hide();c.effects.restore(b,a);"show"==
d&&jQuery.browser.msie&&this.style.removeAttribute("filter");e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery);
(function(c){c.effects.pulsate=function(e){return this.queue(function(){var b=c(this),a=c.effects.setMode(b,e.options.mode||"show"),d=e.options.times||5;"hide"==a&&d--;b.is(":hidden")&&(b.css("opacity",0),b.show(),b.animate({opacity:1},e.duration/2,e.options.easing),d-=2);for(var f=0;f<d;f++)b.animate({opacity:0},e.duration/2,e.options.easing).animate({opacity:1},e.duration/2,e.options.easing);"hide"==a?b.animate({opacity:0},e.duration/2,e.options.easing,function(){b.hide();e.callback&&e.callback.apply(this,
arguments)}):b.animate({opacity:0},e.duration/2,e.options.easing).animate({opacity:1},e.duration/2,e.options.easing,function(){e.callback&&e.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
(function(c){c.effects.puff=function(e){return this.queue(function(){var b=c(this),a=c.extend(!0,{},e.options),d=c.effects.setMode(b,e.options.mode||"hide"),f=parseInt(e.options.percent)||150;a.fade=!0;var i={height:b.height(),width:b.width()},h=f/100;b.from="hide"==d?i:{height:i.height*h,width:i.width*h};a.from=b.from;a.percent="hide"==d?f:100;a.mode=d;b.effect("scale",a,e.duration,e.callback);b.dequeue()})};c.effects.scale=function(e){return this.queue(function(){var b=c(this),a=c.extend(!0,{},
e.options),d=c.effects.setMode(b,e.options.mode||"effect"),f=parseInt(e.options.percent)||(0==parseInt(e.options.percent)?0:"hide"==d?0:100),i=e.options.direction||"both",h=e.options.origin;"effect"!=d&&(a.origin=h||["middle","center"],a.restore=!0);h={height:b.height(),width:b.width()};b.from=e.options.from||("show"==d?{height:0,width:0}:h);b.to={height:h.height*("horizontal"!=i?f/100:1),width:h.width*("vertical"!=i?f/100:1)};if(e.options.fade&&("show"==d&&(b.from.opacity=0,b.to.opacity=1),"hide"==
d))b.from.opacity=1,b.to.opacity=0;a.from=b.from;a.to=b.to;a.mode=d;b.effect("size",a,e.duration,e.callback);b.dequeue()})};c.effects.size=function(e){return this.queue(function(){var b=c(this),a="position top left width height overflow opacity".split(" "),d=["position","top","left","overflow","opacity"],f=["width","height","overflow"],i=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],g=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],j=c.effects.setMode(b,
e.options.mode||"effect"),k=e.options.restore||!1,l=e.options.scale||"both",o=e.options.origin,m={height:b.height(),width:b.width()};b.from=e.options.from||m;b.to=e.options.to||m;o&&(o=c.effects.getBaseline(o,m),b.from.top=(m.height-b.from.height)*o.y,b.from.left=(m.width-b.from.width)*o.x,b.to.top=(m.height-b.to.height)*o.y,b.to.left=(m.width-b.to.width)*o.x);var n=b.from.height/m.height,t=b.from.width/m.width,q=b.to.height/m.height,u=b.to.width/m.width;if("box"==l||"both"==l)if(n!=q&&(a=a.concat(h),
b.from=c.effects.setTransition(b,h,n,b.from),b.to=c.effects.setTransition(b,h,q,b.to)),t!=u)a=a.concat(g),b.from=c.effects.setTransition(b,g,t,b.from),b.to=c.effects.setTransition(b,g,u,b.to);if(("content"==l||"both"==l)&&n!=q)a=a.concat(i),b.from=c.effects.setTransition(b,i,n,b.from),b.to=c.effects.setTransition(b,i,q,b.to);c.effects.save(b,k?a:d);b.show();c.effects.createWrapper(b);b.css("overflow","hidden").css(b.from);if("content"==l||"both"==l)h=h.concat(["marginTop","marginBottom"]).concat(i),
g=g.concat(["marginLeft","marginRight"]),f=a.concat(h).concat(g),b.find("*[width]").each(function(){child=c(this);k&&c.effects.save(child,f);var a=child.height(),d=child.width();child.from={height:a*n,width:d*t};child.to={height:a*q,width:d*u};if(n!=q){child.from=c.effects.setTransition(child,h,n,child.from);child.to=c.effects.setTransition(child,h,q,child.to)}if(t!=u){child.from=c.effects.setTransition(child,g,t,child.from);child.to=c.effects.setTransition(child,g,u,child.to)}child.css(child.from);
child.animate(child.to,e.duration,e.options.easing,function(){k&&c.effects.restore(child,f)})});b.animate(b.to,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){j=="hide"&&b.hide();c.effects.restore(b,k?a:d);c.effects.removeWrapper(b);e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery);
(function(c){c.effects.shake=function(e){return this.queue(function(){var b=c(this),a=["position","top","left"];c.effects.setMode(b,e.options.mode||"effect");var d=e.options.direction||"left",f=e.options.distance||20,i=e.options.times||3,h=e.duration||e.options.duration||140;c.effects.save(b,a);b.show();c.effects.createWrapper(b);var g="up"==d||"down"==d?"top":"left",j="up"==d||"left"==d?"pos":"neg",d={},k={},l={};d[g]=("pos"==j?"-=":"+=")+f;k[g]=("pos"==j?"+=":"-=")+2*f;l[g]=("pos"==j?"-=":"+=")+
2*f;b.animate(d,h,e.options.easing);for(f=1;f<i;f++)b.animate(k,h,e.options.easing).animate(l,h,e.options.easing);b.animate(k,h,e.options.easing).animate(d,h/2,e.options.easing,function(){c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
(function(c){c.effects.slide=function(e){return this.queue(function(){var b=c(this),a=["position","top","left"],d=c.effects.setMode(b,e.options.mode||"show"),f=e.options.direction||"left";c.effects.save(b,a);b.show();c.effects.createWrapper(b).css({overflow:"hidden"});var i="up"==f||"down"==f?"top":"left",f="up"==f||"left"==f?"pos":"neg",h=e.options.distance||("top"==i?b.outerHeight({margin:!0}):b.outerWidth({margin:!0}));"show"==d&&b.css(i,"pos"==f?-h:h);var g={};g[i]=("show"==d?"pos"==f?"+=":"-=":
"pos"==f?"-=":"+=")+h;b.animate(g,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==d&&b.hide();c.effects.restore(b,a);c.effects.removeWrapper(b);e.callback&&e.callback.apply(this,arguments);b.dequeue()}})})}})(jQuery);
(function(c){c.effects.transfer=function(e){return this.queue(function(){var b=c(this);c.effects.setMode(b,e.options.mode||"effect");var a=c(e.options.to),d=b.offset(),f=c('<div class="ui-effects-transfer"></div>').appendTo(document.body);e.options.className&&f.addClass(e.options.className);f.addClass(e.options.className);f.css({top:d.top,left:d.left,height:b.outerHeight()-parseInt(f.css("borderTopWidth"))-parseInt(f.css("borderBottomWidth")),width:b.outerWidth()-parseInt(f.css("borderLeftWidth"))-
parseInt(f.css("borderRightWidth")),position:"absolute"});d=a.offset();animation={top:d.top,left:d.left,height:a.outerHeight()-parseInt(f.css("borderTopWidth"))-parseInt(f.css("borderBottomWidth")),width:a.outerWidth()-parseInt(f.css("borderLeftWidth"))-parseInt(f.css("borderRightWidth"))};f.animate(animation,e.duration,e.options.easing,function(){f.remove();e.callback&&e.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
(function(c){function e(a){if(c.data(this,"accordion")){var d=c.data(this,"accordion"),b=d.options;b.running=a?0:--b.running;b.running||(b.clearStyle&&b.toShow.add(b.toHide).css({height:"",overflow:""}),c(this).triggerHandler("accordionchange",[c.event.fix({type:"accordionchange",target:d.element[0]}),b.data],b.change))}}function b(a,d,b,g,j){var k=c.data(this,"accordion").options;k.toShow=a;k.toHide=d;k.data=b;var l=e,o=this,b=function(){return l.apply(o,arguments)};k.running=0===d.size()?a.size():
d.size();if(k.animated)if(!k.alwaysOpen&&g)c.ui.accordion.animations[k.animated]({toShow:jQuery([]),toHide:d,complete:b,down:j,autoHeight:k.autoHeight});else c.ui.accordion.animations[k.animated]({toShow:a,toHide:d,complete:b,down:j,autoHeight:k.autoHeight});else!k.alwaysOpen&&g?a.toggle():(d.hide(),a.show()),b(!0)}function a(a){var d=c.data(this,"accordion").options;if(d.disabled)return!1;if(!a.target&&!d.alwaysOpen){d.active.parent().andSelf().toggleClass(d.selectedClass);var a=d.active.next(),
e={options:d,newHeader:jQuery([]),oldHeader:d.active,newContent:jQuery([]),oldContent:a},g=d.active=c([]);b.call(this,g,a,e);return!1}var j=c(a.target),j=c(j.parents(d.header)[0]||j),k=j[0]==d.active[0];if(d.running||d.alwaysOpen&&k)return!1;if(j.is(d.header)){d.active.parent().andSelf().toggleClass(d.selectedClass);k||j.parent().andSelf().addClass(d.selectedClass);var g=j.next(),a=d.active.next(),e={options:d,newHeader:j,oldHeader:d.active,newContent:g,oldContent:a},l=d.headers.index(d.active[0])>
d.headers.index(j[0]);d.active=k?c([]):j;b.call(this,g,a,e,k,l);return!1}}function d(a,d){return void 0!=d?"number"==typeof d?a.filter(":eq("+d+")"):a.not(a.not(d)):!1===d?c([]):a.filter(":eq(0)")}c.widget("ui.accordion",{init:function(){var b=this.options;if(b.navigation){var e=this.element.find("a").filter(b.navigationFilter);e.length&&(e.filter(b.header).length?b.active=e:(b.active=e.parent().parent().prev(),e.addClass("current")))}b.headers=this.element.find(b.header);b.active=d(b.headers,b.active);
c.browser.msie&&this.element.find("a").css("zoom","1");this.element.hasClass("ui-accordion")||(this.element.addClass("ui-accordion"),c("<span class='ui-accordion-left'/>").insertBefore(b.headers),c("<span class='ui-accordion-right'/>").appendTo(b.headers),b.headers.addClass("ui-accordion-header").attr("tabindex","0"));this.size();b.headers.not(b.active||"").next().hide();b.active.parent().andSelf().addClass(b.selectedClass);b.event&&this.element.bind(b.event+".accordion",a)},activate:function(b){a.call(this.element[0],
{target:d(this.options.headers,b)[0]})},destroy:function(){this.options.headers.next().css("display","");(this.options.fillSpace||this.options.autoHeight)&&this.options.headers.next().css("height","");c.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")},size:function(){var a=this.options,d=0,b=0;a.fillSpace?(d=this.element.parent().height(),a.headers.each(function(){d-=c(this).outerHeight()}),a.headers.next().each(function(){b=Math.max(b,c(this).innerHeight()-
c(this).height())}).height(d-b)):a.autoHeight&&a.headers.next().each(function(){d=Math.max(d,c(this).outerHeight())}).height(d)}});c.extend(c.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:!0,animated:"slide",event:"click",header:"a",autoHeight:!0,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(a,d){a=c.extend({easing:"swing",duration:300},a,d);if(a.toHide.size()){var b=a.toHide.height(),e=a.toShow.height()/
b;a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate({height:"hide"},{step:function(d){d=(b-d)*e;if(c.browser.msie||c.browser.opera)d=Math.ceil(d);a.toShow.height(d)},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","auto");a.complete()}})}else a.toShow.animate({height:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"bounceout":"swing",duration:a.down?1E3:200})},easeslide:function(a){this.slide(a,
{easing:"easeinout",duration:700})}}});c.fn.activate=function(a){return this.accordion("activate",a)}})(jQuery);
(function(c){function e(){this.debug=!1;this._curInst=null;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._promptClass="ui-datepicker-prompt";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",
closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",monthNames:"January February March April May June July August September October November December".split(" "),monthNamesShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",
weekStatus:"Week of the year",dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),dayNamesShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),dayNamesMin:"Su Mo Tu We Th Fr Sa".split(" "),dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:!1};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,closeAtTop:!0,
mandatory:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!0,changeYear:!0,yearRange:"-10:+10",changeFirstDay:!0,highlightWeek:!1,showOtherMonths:!1,showWeeks:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:!1,statusForDate:this.dateStatus,minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:!1,rangeSeparator:" - ",altField:"",altFormat:""};
c.extend(this._defaults,this.regional[""]);this.dpDiv=c('<div id="'+this._mainDivId+'" style="display: none;"></div>')}function b(a,d){c.extend(a,d);for(var b in d)if(null==d[b]||void 0==d[b])a[b]=d[b];return a}c.extend(e.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){b(this._defaults,a||{});return this},_attachDatepicker:function(a,d){var b=null;for(attrName in this._defaults){var e=a.getAttribute("date:"+attrName);if(e){b=
b||{};try{b[attrName]=eval(e)}catch(h){b[attrName]=e}}}var e=a.nodeName.toLowerCase(),g="div"==e||"span"==e;a.id||(a.id="dp"+(new Date).getTime());var j=this._newInst(c(a),g);j.settings=c.extend({},d||{},b||{});"input"==e?this._connectDatepicker(a,j):g&&this._inlineDatepicker(a,j)},_newInst:function(a,d){return{id:a[0].id,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:d,dpDiv:!d?this.dpDiv:c('<div class="ui-datepicker-inline"></div>')}},_connectDatepicker:function(a,
d){var b=c(a);if(!b.hasClass(this.markerClassName)){var e=this._get(d,"appendText"),h=this._get(d,"isRTL");if(e)b[h?"before":"after"]('<span class="'+this._appendClass+'">'+e+"</span>");e=this._get(d,"showOn");("focus"==e||"both"==e)&&b.focus(this._showDatepicker);if("button"==e||"both"==e){var e=this._get(d,"buttonText"),g=this._get(d,"buttonImage"),e=c(this._get(d,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:g,alt:e,title:e}):c('<button type="button"></button>').addClass(this._triggerClass).html(""==
g?e:c("<img/>").attr({src:g,alt:e,title:e})));b[h?"before":"after"](e);e.click(function(){c.datepicker._datepickerShowing&&c.datepicker._lastInput==a?c.datepicker._hideDatepicker():c.datepicker._showDatepicker(a);return!1})}b.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(a,b,c){d.settings[b]=c}).bind("getData.datepicker",function(a,b){return this._get(d,b)});c.data(a,"datepicker",d)}},_inlineDatepicker:function(a,d){var b=c(a);
b.hasClass(this.markerClassName)||(b.addClass(this.markerClassName).append(d.dpDiv).bind("setData.datepicker",function(a,b,c){d.settings[b]=c}).bind("getData.datepicker",function(a,b){return this._get(d,b)}),c.data(a,"datepicker",d),this._setDate(d,this._getDefaultDate(d)),this._updateDatepicker(d))},_inlineShow:function(a){var d=this._getNumberOfMonths(a);a.dpDiv.width(d[1]*c(".ui-datepicker",a.dpDiv[0]).width())},_dialogDatepicker:function(a,d,e,i,h){a=this._dialogInst;a||(a="dp"+(new Date).getTime(),
this._dialogInput=c('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>'),this._dialogInput.keydown(this._doKeyDown),c("body").append(this._dialogInput),a=this._dialogInst=this._newInst(this._dialogInput,!1),a.settings={},c.data(this._dialogInput[0],"datepicker",a));b(a.settings,i||{});this._dialogInput.val(d);this._pos=h?h.length?h:[h.pageX,h.pageY]:null;this._pos||(this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+
(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]);this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=e;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);c.blockUI&&c.blockUI(this.dpDiv);c.data(this._dialogInput[0],"datepicker",a);return this},
_destroyDatepicker:function(a){var d=a.nodeName.toLowerCase(),b=c(a);c.removeData(a,"datepicker");"input"==d?b.siblings("."+this._appendClass).remove().end().siblings("."+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress):("div"==d||"span"==d)&&b.removeClass(this.markerClassName).empty()},_enableDatepicker:function(a){a.disabled=!1;c(a).siblings("button."+this._triggerClass).each(function(){this.disabled=
!1}).end().siblings("img."+this._triggerClass).css({opacity:"1.0",cursor:""});this._disabledInputs=c.map(this._disabledInputs,function(d){return d==a?null:d})},_disableDatepicker:function(a){a.disabled=!0;c(a).siblings("button."+this._triggerClass).each(function(){this.disabled=!0}).end().siblings("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"});this._disabledInputs=c.map(this._disabledInputs,function(d){return d==a?null:d});this._disabledInputs[this._disabledInputs.length]=a},_isDisabledDatepicker:function(a){if(!a)return!1;
for(var d=0;d<this._disabledInputs.length;d++)if(this._disabledInputs[d]==a)return!0;return!1},_changeDatepicker:function(a,d,e){var i=d||{};"string"==typeof d&&(i={},i[d]=e);if(inst=c.data(a,"datepicker"))b(inst.settings,i),this._updateDatepicker(inst)},_setDateDatepicker:function(a,d,b){if(a=c.data(a,"datepicker"))this._setDate(a,d,b),this._updateDatepicker(a)},_getDateDatepicker:function(a){(a=c.data(a,"datepicker"))&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var d=
c.data(a.target,"datepicker"),b=!0;if(c.datepicker._datepickerShowing)switch(a.keyCode){case 9:c.datepicker._hideDatepicker(null,"");break;case 13:return c.datepicker._selectDay(a.target,d.selectedMonth,d.selectedYear,c("td.ui-datepicker-days-cell-over",d.dpDiv)[0]),!1;case 27:c.datepicker._hideDatepicker(null,c.datepicker._get(d,"duration"));break;case 33:c.datepicker._adjustDate(a.target,a.ctrlKey?-1:-c.datepicker._get(d,"stepMonths"),a.ctrlKey?"Y":"M");break;case 34:c.datepicker._adjustDate(a.target,
a.ctrlKey?1:+c.datepicker._get(d,"stepMonths"),a.ctrlKey?"Y":"M");break;case 35:a.ctrlKey&&c.datepicker._clearDate(a.target);break;case 36:a.ctrlKey&&c.datepicker._gotoToday(a.target);break;case 37:a.ctrlKey&&c.datepicker._adjustDate(a.target,-1,"D");break;case 38:a.ctrlKey&&c.datepicker._adjustDate(a.target,-7,"D");break;case 39:a.ctrlKey&&c.datepicker._adjustDate(a.target,1,"D");break;case 40:a.ctrlKey&&c.datepicker._adjustDate(a.target,7,"D");break;default:b=!1}else 36==a.keyCode&&a.ctrlKey?c.datepicker._showDatepicker(this):
b=!1;b&&(a.preventDefault(),a.stopPropagation())},_doKeyPress:function(a){var d=c.data(a.target,"datepicker"),d=c.datepicker._possibleChars(c.datepicker._get(d,"dateFormat")),b=String.fromCharCode(void 0==a.charCode?a.keyCode:a.charCode);return a.ctrlKey||" ">b||!d||-1<d.indexOf(b)},_showDatepicker:function(a){a=a.target||a;"input"!=a.nodeName.toLowerCase()&&(a=c("input",a.parentNode)[0]);if(!(c.datepicker._isDisabledDatepicker(a)||c.datepicker._lastInput==a)){var d=c.data(a,"datepicker"),e=c.datepicker._get(d,
"beforeShow");b(d.settings,e?e.apply(a,[a,d]):{});c.datepicker._hideDatepicker(null,"");c.datepicker._lastInput=a;c.datepicker._setDateFromField(d);c.datepicker._inDialog&&(a.value="");c.datepicker._pos||(c.datepicker._pos=c.datepicker._findPos(a),c.datepicker._pos[1]+=a.offsetHeight);var i=!1;c(a).parents().each(function(){i=i|c(this).css("position")=="fixed";return!i});i&&c.browser.opera&&(c.datepicker._pos[0]-=document.documentElement.scrollLeft,c.datepicker._pos[1]-=document.documentElement.scrollTop);
a={left:c.datepicker._pos[0],top:c.datepicker._pos[1]};c.datepicker._pos=null;d.rangeStart=null;d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});c.datepicker._updateDatepicker(d);d.dpDiv.width(c.datepicker._getNumberOfMonths(d)[1]*c(".ui-datepicker",d.dpDiv[0])[0].offsetWidth);a=c.datepicker._checkOffset(d,a,i);d.dpDiv.css({position:c.datepicker._inDialog&&c.blockUI?"static":i?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});if(!d.inline){var a=c.datepicker._get(d,
"showAnim")||"show",e=c.datepicker._get(d,"duration"),h=function(){c.datepicker._datepickerShowing=true;c.browser.msie&&parseInt(c.browser.version)<7&&c("iframe.ui-datepicker-cover").css({width:d.dpDiv.width()+4,height:d.dpDiv.height()+4})};if(c.effects&&c.effects[a])d.dpDiv.show(a,c.datepicker._get(d,"showOptions"),e,h);else d.dpDiv[a](e,h);""==e&&h();"hidden"!=d.input[0].type&&d.input[0].focus();c.datepicker._curInst=d}}},_updateDatepicker:function(a){var d=a.dpDiv.width()+4,b=a.dpDiv.height()+
4;a.dpDiv.empty().append(this._generateDatepicker(a)).find("iframe.ui-datepicker-cover").css({width:d,height:b});d=this._getNumberOfMonths(a);a.dpDiv[(1!=d[0]||1!=d[1]?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&"hidden"!=a.input[0].type&&c(a.input[0]).focus()},_checkOffset:function(a,d,b){var e=a.input?this._findPos(a.input[0]):null,h=window.innerWidth||document.documentElement.clientWidth,g=window.innerHeight||
document.documentElement.clientHeight,j=document.documentElement.scrollLeft||document.body.scrollLeft,k=document.documentElement.scrollTop||document.body.scrollTop;d.left=this._get(a,"isRTL")||d.left+a.dpDiv.width()-j>h?Math.max(b?0:j,e[0]+(a.input?a.input.width():0)-(b?j:0)-a.dpDiv.width()-(b&&c.browser.opera?document.documentElement.scrollLeft:0)):d.left-(b?j:0);d.top=d.top+a.dpDiv.height()-k>g?Math.max(b?0:k,e[1]-(b?k:0)-(this._inDialog?0:a.dpDiv.height())-(b&&c.browser.opera?document.documentElement.scrollTop:
0)):d.top-(b?k:0);return d},_findPos:function(a){for(;a&&("hidden"==a.type||1!=a.nodeType);)a=a.nextSibling;a=c(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,d){var b=this._curInst;if(b){this._get(b,"rangeSelect")&&this._stayOpen&&this._selectDate("#"+b.id,this._formatDate(b,b.currentDay,b.currentMonth,b.currentYear));this._stayOpen=!1;if(this._datepickerShowing){var d=null!=d?d:this._get(b,"duration"),e=this._get(b,"showAnim"),h=function(){c.datepicker._tidyDialog(b)};if(""!=d&&c.effects&&
c.effects[e])b.dpDiv.hide(e,c.datepicker._get(b,"showOptions"),d,h);else b.dpDiv[""==d?"hide":"slideDown"==e?"slideUp":"fadeIn"==e?"fadeOut":"hide"](d,h);""==d&&this._tidyDialog(b);(e=this._get(b,"onClose"))&&e.apply(b.input?b.input[0]:null,[this._getDate(b),b]);this._datepickerShowing=!1;this._lastInput=null;b.settings.prompt=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),c.blockUI&&(c.unblockUI(),c("body").append(this.dpDiv)));this._inDialog=!1}this._curInst=
null}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker");c("."+this._promptClass,a.dpDiv).remove()},_checkExternalClick:function(a){c.datepicker._curInst&&(a=c(a.target),0==a.parents("#"+c.datepicker._mainDivId).length&&!a.hasClass(c.datepicker.markerClassName)&&(!a.hasClass(c.datepicker._triggerClass)&&c.datepicker._datepickerShowing&&(!c.datepicker._inDialog||!c.blockUI))&&c.datepicker._hideDatepicker(null,""))},_adjustDate:function(a,b,e){a=c(a);a=c.data(a[0],
"datepicker");this._adjustInstDate(a,b,e);this._updateDatepicker(a)},_gotoToday:function(a){var a=c(a),b=c.data(a[0],"datepicker");if(this._get(b,"gotoCurrent")&&b.currentDay)b.selectedDay=b.currentDay,b.drawMonth=b.selectedMonth=b.currentMonth,b.drawYear=b.selectedYear=b.currentYear;else{var e=new Date;b.selectedDay=e.getDate();b.drawMonth=b.selectedMonth=e.getMonth();b.drawYear=b.selectedYear=e.getFullYear()}this._adjustDate(a);this._notifyChange(b)},_selectMonthYear:function(a,b,e){var a=c(a),
i=c.data(a[0],"datepicker");i._selectingMonthYear=!1;i["M"==e?"drawMonth":"drawYear"]=b.options[b.selectedIndex].value-0;this._adjustDate(a);this._notifyChange(i)},_clickMonthYear:function(a){a=c(a);a=c.data(a[0],"datepicker");a.input&&a._selectingMonthYear&&!c.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_changeFirstDay:function(a,b){var e=c(a),e=c.data(e[0],"datepicker");e.settings.firstDay=b;this._updateDatepicker(e)},_selectDay:function(a,b,e,i){if(!c(i).hasClass(this._unselectableClass)){var h=
c(a),h=c.data(h[0],"datepicker"),g=this._get(h,"rangeSelect");if(g&&(this._stayOpen=!this._stayOpen))c(".ui-datepicker td").removeClass(this._currentClass),c(i).addClass(this._currentClass);h.selectedDay=h.currentDay=c("a",i).html();h.selectedMonth=h.currentMonth=b;h.selectedYear=h.currentYear=e;this._stayOpen?h.endDay=h.endMonth=h.endYear=null:g&&(h.endDay=h.currentDay,h.endMonth=h.currentMonth,h.endYear=h.currentYear);this._selectDate(a,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear));
this._stayOpen?(h.rangeStart=new Date(h.currentYear,h.currentMonth,h.currentDay),this._updateDatepicker(h)):g&&(h.selectedDay=h.currentDay=h.rangeStart.getDate(),h.selectedMonth=h.currentMonth=h.rangeStart.getMonth(),h.selectedYear=h.currentYear=h.rangeStart.getFullYear(),h.rangeStart=null,h.inline&&this._updateDatepicker(h))}},_clearDate:function(a){var a=c(a),b=c.data(a[0],"datepicker");this._get(b,"mandatory")||(this._stayOpen=!1,b.endDay=b.endMonth=b.endYear=b.rangeStart=null,this._selectDate(a,
""))},_selectDate:function(a,b){var e=c(a),e=c.data(e[0],"datepicker"),b=null!=b?b:this._formatDate(e);this._get(e,"rangeSelect")&&b&&(b=(e.rangeStart?this._formatDate(e,e.rangeStart):b)+this._get(e,"rangeSeparator")+b);e.input&&e.input.val(b);this._updateAlternate(e);var i=this._get(e,"onSelect");i?i.apply(e.input?e.input[0]:null,[b,e]):e.input&&e.input.trigger("change");e.inline?this._updateDatepicker(e):this._stayOpen||(this._hideDatepicker(null,this._get(e,"duration")),this._lastInput=e.input[0],
"object"!=typeof e.input[0]&&e.input[0].focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var e=this._get(a,"altFormat"),i=this._getDate(a);dateStr=i&&(c.browser.safari&&"object"==typeof i&&i.length||i.constructor&&i.constructor.toString().match(/\Array\(\)/))?!i[0]&&!i[1]?"":this.formatDate(e,i[0],this._getFormatConfig(a))+this._get(a,"rangeSeparator")+this.formatDate(e,i[1]||i[0],this._getFormatConfig(a)):this.formatDate(e,i,this._getFormatConfig(a));
c(b).each(function(){c(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[0<a&&6>a,""]},iso8601Week:function(a){var a=new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getTimezoneOffset()/-60),b=new Date(a.getFullYear(),0,4),e=b.getDay()||7;b.setDate(b.getDate()+1-e);return 4>e&&a<b?(a.setDate(a.getDate()-3),c.datepicker.iso8601Week(a)):a>new Date(a.getFullYear(),11,28)&&(e=(new Date(a.getFullYear()+1,0,4)).getDay()||7,4<e&&(a.getDay()||7)<e-3)?(a.setDate(a.getDate()+3),c.datepicker.iso8601Week(a)):
Math.floor((a-b)/864E5/7)+1},dateStatus:function(a,b){return c.datepicker.formatDate(c.datepicker._get(b,"dateStatus"),a,c.datepicker._getFormatConfig(b))},parseDate:function(a,b,c){if(null==a||null==b)throw"Invalid arguments";b="object"==typeof b?b.toString():b+"";if(""==b)return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,h=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,g=(c?c.dayNames:null)||this._defaults.dayNames,j=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,
c=(c?c.monthNames:null)||this._defaults.monthNames,k=-1,l=-1,o=-1,m=!1,n=function(b){(b=s+1<a.length&&a.charAt(s+1)==b)&&s++;return b},t=function(a){n(a);for(var c=a="@"==a?14:"y"==a?4:2,e=0;0<c&&p<b.length&&"0"<=b.charAt(p)&&"9">=b.charAt(p);)e=10*e+(b.charAt(p++)-0),c--;if(c==a)throw"Missing number at position "+p;return e},q=function(a,c,e){a=n(a)?e:c;for(e=c=0;e<a.length;e++)c=Math.max(c,a[e].length);for(var e="",f=p;0<c&&p<b.length;){for(var e=e+b.charAt(p++),i=0;i<a.length;i++)if(e==a[i])return i+
1;c--}throw"Unknown name at position "+f;},u=function(){if(b.charAt(p)!=a.charAt(s))throw"Unexpected literal at position "+p;p++},p=0,s=0;s<a.length;s++)if(m)"'"==a.charAt(s)&&!n("'")?m=!1:u();else switch(a.charAt(s)){case "d":o=t("d");break;case "D":q("D",h,g);break;case "m":l=t("m");break;case "M":l=q("M",j,c);break;case "y":k=t("y");break;case "@":var r=new Date(t("@")),k=r.getFullYear(),l=r.getMonth()+1,o=r.getDate();break;case "'":n("'")?u():m=!0;break;default:u()}100>k&&(k+=(new Date).getFullYear()-
(new Date).getFullYear()%100+(k<=e?0:-100));r=new Date(k,l-1,o);if(r.getFullYear()!=k||r.getMonth()+1!=l||r.getDate()!=o)throw"Invalid date";return r},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",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,
g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,c=(c?c.monthNames:null)||this._defaults.monthNames,j=function(b){(b=m+1<a.length&&a.charAt(m+1)==b)&&m++;return b},k=function(a,b){return(j(a)&&10>b?"0":"")+b},l="",o=!1;if(b)for(var m=0;m<a.length;m++)if(o)"'"==a.charAt(m)&&!j("'")?o=!1:l+=a.charAt(m);else switch(a.charAt(m)){case "d":l+=k("d",b.getDate());break;case "D":var n;n=b.getDay();var t=e,q=h;n=j("D")?q[n]:t[n];l+=n;break;case "m":l+=k("m",b.getMonth()+1);break;case "M":n=b.getMonth();
t=g;q=c;n=j("M")?q[n]:t[n];l+=n;break;case "y":l+=j("y")?b.getFullYear():(10>b.getYear()%100?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "'":j("'")?l+="'":o=!0;break;default:l+=a.charAt(m)}return l},_possibleChars:function(a){for(var b="",c=!1,e=0;e<a.length;e++)if(c)"'"==a.charAt(e)&&!lookAhead("'")?c=!1:b+=a.charAt(e);else switch(a.charAt(e)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":lookAhead("'")?b+="'":c=!0;break;default:b+=
a.charAt(e)}return b},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setDateFromField:function(a){var b=this._get(a,"dateFormat"),c=a.input?a.input.val().split(this._get(a,"rangeSeparator")):null;a.endDay=a.endMonth=a.endYear=null;var e=defaultDate=this._getDefaultDate(a);if(0<c.length){var h=this._getFormatConfig(a);1<c.length&&(e=this.parseDate(b,c[1],h)||defaultDate,a.endDay=e.getDate(),a.endMonth=e.getMonth(),a.endYear=e.getFullYear());try{e=this.parseDate(b,
c[0],h)||defaultDate}catch(g){this.log(g),e=defaultDate}}a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();a.currentDay=c[0]?e.getDate():0;a.currentMonth=c[0]?e.getMonth():0;a.currentYear=c[0]?e.getFullYear():0;this._adjustInstDate(a)},_getDefaultDate:function(a){var b=this._determineDate(this._get(a,"defaultDate"),new Date),c=this._getMinMaxDate(a,"min",!0),a=this._getMinMaxDate(a,"max"),b=c&&b<c?c:b;return a&&b>a?a:b},_determineDate:function(a,
b){var c;if(null==a)c=b;else if("string"==typeof a){c=this._getDaysInMonth;for(var e=new Date,h=e.getFullYear(),g=e.getMonth(),e=e.getDate(),j=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=j.exec(a);k;){switch(k[2]||"d"){case "d":case "D":e+=k[1]-0;break;case "w":case "W":e+=7*k[1];break;case "m":case "M":g+=k[1]-0;e=Math.min(e,c(h,g));break;case "y":case "Y":h+=k[1]-0,e=Math.min(e,c(h,g))}k=j.exec(a)}c=new Date(h,g,e)}else"number"==typeof a?(c=new Date,c.setUTCDate(c.getUTCDate()+a)):c=a;return c},_setDate:function(a,
b,c){var e=!b,b=this._determineDate(b,new Date);a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();this._get(a,"rangeSelect")&&(c?(c=this._determineDate(c,null),a.endDay=c.getDate(),a.endMonth=c.getMonth(),a.endYear=c.getFullYear()):(a.endDay=a.currentDay,a.endMonth=a.currentMonth,a.endYear=a.currentYear));this._adjustInstDate(a);a.input&&a.input.val(e?"":this._formatDate(a)+(!this._get(a,"rangeSelect")?
"":this._get(a,"rangeSeparator")+this._formatDate(a,a.endDay,a.endMonth,a.endYear)))},_getDate:function(a){var b=!a.currentYear||a.input&&""==a.input.val()?null:new Date(a.currentYear,a.currentMonth,a.currentDay);return this._get(a,"rangeSelect")?[a.rangeStart||b,!a.endYear?null:new Date(a.endYear,a.endMonth,a.endDay)]:b},_generateDatepicker:function(a){var b=new Date,b=new Date(b.getFullYear(),b.getMonth(),b.getDate()),e=this._get(a,"showStatus"),i=this._get(a,"isRTL"),h=this._get(a,"mandatory")?
"":'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#'+a.id+"');\""+(e?this._addStatus(a,this._get(a,"clearStatus")||"&#xa0;"):"")+">"+this._get(a,"clearText")+"</a></div>",h='<div class="ui-datepicker-control">'+(i?"":h)+'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"'+(e?this._addStatus(a,this._get(a,"closeStatus")||"&#xa0;"):"")+">"+this._get(a,"closeText")+"</a></div>"+(i?h:"")+"</div>",g=this._get(a,"prompt"),j=this._get(a,"closeAtTop"),
k=this._get(a,"hideIfNoPrevNext"),l=this._get(a,"navigationAsDateFormat"),o=this._getNumberOfMonths(a),m=this._get(a,"stepMonths"),n=1!=o[0]||1!=o[1],t=!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay),q=this._getMinMaxDate(a,"min",!0),u=this._getMinMaxDate(a,"max"),p=a.drawMonth,s=a.drawYear;if(u)for(var r=new Date(u.getFullYear(),u.getMonth()-o[1]+1,u.getDate()),r=q&&r<q?q:r;new Date(s,p,1)>r;)p--,0>p&&(p=11,s--);for(var r=this._get(a,"prevText"),r=!l?r:this.formatDate(r,
new Date(s,p-m,1),this._getFormatConfig(a)),r='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(a,-1,s,p)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+a.id+"', -"+m+", 'M');\""+(e?this._addStatus(a,this._get(a,"prevStatus")||"&#xa0;"):"")+">"+r+"</a>":k?"":"<label>"+r+"</label>")+"</div>",x=this._get(a,"nextText"),x=!l?x:this.formatDate(x,new Date(s,p+m,1),this._getFormatConfig(a)),k='<div class="ui-datepicker-next">'+(this._canAdjustMonth(a,1,s,p)?"<a onclick=\"jQuery.datepicker._adjustDate('#"+
a.id+"', +"+m+", 'M');\""+(e?this._addStatus(a,this._get(a,"nextStatus")||"&#xa0;"):"")+">"+x+"</a>":k?"":"<label>"+x+"</label>")+"</div>",m=this._get(a,"currentText"),m=!l?m:this.formatDate(m,b,this._getFormatConfig(a)),i=(g?'<div class="'+this._promptClass+'">'+g+"</div>":"")+(j&&!a.inline?h:"")+'<div class="ui-datepicker-links">'+(i?k:r)+(this._isInRange(a,this._get(a,"gotoCurrent")&&a.currentDay?t:b)?'<div class="ui-datepicker-current"><a onclick="jQuery.datepicker._gotoToday(\'#'+a.id+"');\""+
(e?this._addStatus(a,this._get(a,"currentStatus")||"&#xa0;"):"")+">"+m+"</a></div>":"")+(i?r:k)+"</div>",g=this._get(a,"firstDay"),l=this._get(a,"changeFirstDay"),k=this._get(a,"dayNames"),m=this._get(a,"dayNamesShort"),r=this._get(a,"dayNamesMin"),x=this._get(a,"monthNames"),H=this._get(a,"beforeShowDay"),D=this._get(a,"highlightWeek"),A=this._get(a,"showOtherMonths"),I=this._get(a,"showWeeks"),L=this._get(a,"calculateWeek")||this.iso8601Week,E=e?this._get(a,"dayStatus")||"&#xa0;":"",M=this._get(a,
"statusForDate")||this.dateStatus,N=a.endDay?new Date(a.endYear,a.endMonth,a.endDay):t,F=0;F<o[0];F++)for(var B=0;B<o[1];B++){for(var J=new Date(s,p,a.selectedDay),i=i+('<div class="ui-datepicker-one-month'+(0==B?" ui-datepicker-new-row":"")+'">'+this._generateMonthYearHeader(a,p,s,q,u,J,0<F||0<B,e,x)+'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row">'+(I?"<td>"+this._get(a,"weekHeader")+"</td>":"")),w=0;7>w;w++)var v=(w+g)%7,z=-1<E.indexOf("DD")?
E.replace(/DD/,k[v]):E.replace(/D/,m[v]),i=i+("<td"+(5<=(w+g+6)%7?' class="ui-datepicker-week-end-cell"':"")+">"+(!l?"<span":"<a onclick=\"jQuery.datepicker._changeFirstDay('#"+a.id+"', "+v+');"')+(e?this._addStatus(a,z):"")+' title="'+k[v]+'">'+r[v]+(l?"</a>":"</span>")+"</td>");i+="</tr></thead><tbody>";w=this._getDaysInMonth(s,p);s==a.selectedYear&&p==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,w));for(var z=(this._getFirstDayOfMonth(s,p)-g+7)%7,v=new Date(s,p,1-z),z=n?6:Math.ceil((z+
w)/7),K=0;K<z;K++){i+='<tr class="ui-datepicker-days-row">'+(I?'<td class="ui-datepicker-week-col">'+L(v)+"</td>":"");for(w=0;7>w;w++){var C=H?H.apply(a.input?a.input[0]:null,[v]):[!0,""],y=v.getMonth()!=p,G=y||!C[0]||q&&v<q||u&&v>u,i=i+('<td class="ui-datepicker-days-cell'+(5<=(w+g+6)%7?" ui-datepicker-week-end-cell":"")+(y?" ui-datepicker-otherMonth":"")+(v.getTime()==J.getTime()&&p==a.selectedMonth?" ui-datepicker-days-cell-over":"")+(G?" "+this._unselectableClass:"")+(y&&!A?"":" "+C[1]+(v.getTime()>=
t.getTime()&&v.getTime()<=N.getTime()?" "+this._currentClass:"")+(v.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!y||A)&&C[2]?' title="'+C[2]+'"':"")+(G?D?" onmouseover=\"jQuery(this).parent().addClass('ui-datepicker-week-over');\" onmouseout=\"jQuery(this).parent().removeClass('ui-datepicker-week-over');\"":"":" onmouseover=\"jQuery(this).addClass('ui-datepicker-days-cell-over')"+(D?".parent().addClass('ui-datepicker-week-over')":"")+";"+(!e||y&&!A?"":"jQuery('#ui-datepicker-status-"+
a.id+"').html('"+(M.apply(a.input?a.input[0]:null,[v,a])||"&#xa0;")+"');")+"\" onmouseout=\"jQuery(this).removeClass('ui-datepicker-days-cell-over')"+(D?".parent().removeClass('ui-datepicker-week-over')":"")+";"+(!e||y&&!A?"":"jQuery('#ui-datepicker-status-"+a.id+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay(\'#'+a.id+"',"+p+","+s+', this);"')+">"+(y?A?v.getDate():"&#xa0;":G?v.getDate():"<a>"+v.getDate()+"</a>")+"</td>");v.setUTCDate(v.getUTCDate()+1)}i+="</tr>"}p++;11<p&&(p=0,s++);
i+="</tbody></table></div>"}return i+=(e?'<div style="clear: both;"></div><div id="ui-datepicker-status-'+a.id+'" class="ui-datepicker-status">'+(this._get(a,"initStatus")||"&#xa0;")+"</div>":"")+(!j&&!a.inline?h:"")+'<div style="clear: both;"></div>'+(c.browser.msie&&7>parseInt(c.browser.version)&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>':"")},_generateMonthYearHeader:function(a,b,c,e,h,g,j,k,l){e=a.rangeStart&&e&&g<e?g:e;g='<div class="ui-datepicker-header">';
if(j||!this._get(a,"changeMonth"))g+=l[b]+"&#xa0;";else{for(var o=e&&e.getFullYear()==c,m=h&&h.getFullYear()==c,g=g+('<select class="ui-datepicker-new-month" onchange="jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear('#"+a.id+"');\""+(k?this._addStatus(a,this._get(a,"monthStatus")||"&#xa0;"):"")+">"),n=0;12>n;n++)if((!o||n>=e.getMonth())&&(!m||n<=h.getMonth()))g+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+l[n]+"</option>";
g+="</select>"}if(j||!this._get(a,"changeYear"))g+=c;else{b=this._get(a,"yearRange").split(":");l=j=0;2!=b.length?(j=c-10,l=c+10):"+"==b[0].charAt(0)||"-"==b[0].charAt(0)?(j=l=(new Date).getFullYear(),j+=parseInt(b[0],10),l+=parseInt(b[1],10)):(j=parseInt(b[0],10),l=parseInt(b[1],10));j=e?Math.max(j,e.getFullYear()):j;l=h?Math.min(l,h.getFullYear()):l;for(g+='<select class="ui-datepicker-new-year" onchange="jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear('#"+
a.id+"');\""+(k?this._addStatus(a,this._get(a,"yearStatus")||"&#xa0;"):"")+">";j<=l;j++)g+='<option value="'+j+'"'+(j==c?' selected="selected"':"")+">"+j+"</option>";g+="</select>"}return g+"</div>"},_addStatus:function(a,b){return" onmouseover=\"jQuery('#ui-datepicker-status-"+a.id+"').html('"+b+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+a.id+"').html('&#xa0;');\""},_adjustInstDate:function(a,b,c){var e=a.drawYear+("Y"==c?b:0),h=a.drawMonth+("M"==c?b:0),b=Math.min(a.selectedDay,this._getDaysInMonth(e,
h))+("D"==c?b:0),e=new Date(e,h,b),h=this._getMinMaxDate(a,"min",!0),b=this._getMinMaxDate(a,"max"),e=h&&e<h?h:e,e=b&&e>b?b:e;a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();("M"==c||"Y"==c)&&this._notifyChange(a)},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[new Date(a.selectedYear,a.selectedMonth,1),a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return null==
a?[1,1]:"number"==typeof a?[1,a]:a},_getMinMaxDate:function(a,b,c){if(b=this._determineDate(this._get(a,b+"Date"),null))b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0);return!c||!a.rangeStart?b:!b||a.rangeStart>b?a.rangeStart:b},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var h=this._getNumberOfMonths(a),c=new Date(c,e+(0>b?b:h[1]),1);0>b&&c.setDate(this._getDaysInMonth(c.getFullYear(),
c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=!a.rangeStart?null:new Date(a.selectedYear,a.selectedMonth,a.selectedDay),c=(c=c&&a.rangeStart<c?a.rangeStart:c)||this._getMinMaxDate(a,"min"),e=this._getMinMaxDate(a,"max");return(!c||b>=c)&&(!e||b<=e)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,
"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);b=b?"object"==typeof b?b:new Date(e,c,b):new Date(a.currentYear,a.currentMonth,a.currentDay);return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});c.fn.datepicker=function(a){var b=Array.prototype.slice.call(arguments,1);return"string"==typeof a&&("isDisabled"==
a||"getDate"==a)?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this[0]].concat(b)):this.each(function(){"string"==typeof a?c.datepicker["_"+a+"Datepicker"].apply(c.datepicker,[this].concat(b)):c.datepicker._attachDatepicker(this,a)})};c.datepicker=new e;c(document).ready(function(){c(document.body).append(c.datepicker.dpDiv).mousedown(c.datepicker._checkExternalClick)})})(jQuery);
(function(c){var e={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};c.widget("ui.dialog",{init:function(){var b=this,a=this.options,d="string"==typeof a.resizable?a.resizable:"n,e,s,w,se,sw,ne,nw",e=this.element.addClass("ui-dialog-content").wrap("<div/>").wrap("<div/>"),
i=this.uiDialogContainer=e.parent().addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"}),h=a.title||e.attr("title")||"",h=(this.uiDialogTitlebar=c('<div class="ui-dialog-titlebar"/>')).append('<span class="ui-dialog-title">'+h+"</span>").append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>').prependTo(i),e=(this.uiDialog=i.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(a.dialogClass).addClass(e.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",
width:a.width,height:a.height,overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(c){a.closeOnEscape&&c.keyCode&&27==c.keyCode&&b.close()}).mousedown(function(){b.moveToTop()});(this.uiDialogButtonPane=c("<div/>")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(e);this.uiDialogTitlebarClose=c(".ui-dialog-titlebar-close",h).hover(function(){c(this).addClass("ui-dialog-titlebar-close-hover")},function(){c(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(a){a.stopPropagation()}).click(function(){b.close();
return!1});this.uiDialogTitlebar.find("*").add(this.uiDialogTitlebar).each(function(){c.ui.disableSelection(this)});c.fn.draggable&&(e.draggable({cancel:".ui-dialog-content",helper:a.dragHelper,handle:".ui-dialog-titlebar",start:function(c,d){b.moveToTop();a.dragStart&&a.dragStart.apply(b.element[0],arguments)},drag:function(c,d){a.drag&&a.drag.apply(b.element[0],arguments)},stop:function(d,e){a.dragStop&&a.dragStop.apply(b.element[0],arguments);c.ui.dialog.overlay.resize()}}),a.draggable||e.draggable("disable"));
c.fn.resizable&&(e.resizable({cancel:".ui-dialog-content",helper:a.resizeHelper,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:a.minHeight,start:function(){a.resizeStart&&a.resizeStart.apply(b.element[0],arguments)},resize:function(c,d){a.autoResize&&b.size.apply(b);a.resize&&a.resize.apply(b.element[0],arguments)},handles:d,stop:function(d,e){a.autoResize&&b.size.apply(b);a.resizeStop&&a.resizeStop.apply(b.element[0],arguments);c.ui.dialog.overlay.resize()}}),a.resizable||
e.resizable("disable"));this.createButtons(a.buttons);this.isOpen=!1;a.bgiframe&&c.fn.bgiframe&&e.bgiframe();a.autoOpen&&this.open()},setData:function(b,a){e[b]&&this.uiDialog.data(e[b],a);switch(b){case "buttons":this.createButtons(a);break;case "draggable":this.uiDialog.draggable(a?"enable":"disable");break;case "height":this.uiDialog.height(a);break;case "position":this.position(a);break;case "resizable":"string"==typeof a&&this.uiDialog.data("handles.resizable",a);this.uiDialog.resizable(a?"enable":
"disable");break;case "title":c(".ui-dialog-title",this.uiDialogTitlebar).text(a);break;case "width":this.uiDialog.width(a)}c.widget.prototype.setData.apply(this,arguments)},position:function(b){var a=c(window),d=c(document),e=d.scrollTop(),d=d.scrollLeft(),i=e;0<=c.inArray(b,["center","top","right","bottom","left"])&&(b=["right"==b||"left"==b?b:"center","top"==b||"bottom"==b?b:"middle"]);b.constructor!=Array&&(b=["center","middle"]);if(b[0].constructor==Number)d+=b[0];else switch(b[0]){case "left":d+=
0;break;case "right":d+=a.width()-this.uiDialog.width();break;default:case "center":d+=(a.width()-this.uiDialog.width())/2}if(b[1].constructor==Number)e+=b[1];else switch(b[1]){case "top":e+=0;break;case "bottom":e+=a.height()-this.uiDialog.height();break;default:case "middle":e+=(a.height()-this.uiDialog.height())/2}e=Math.max(e,i);this.uiDialog.css({top:e,left:d})},size:function(){var b=this.uiDialogContainer,a=this.uiDialogTitlebar,c=this.element,e=parseInt(c.css("margin-top"),10)+parseInt(c.css("margin-bottom"),
10),i=parseInt(c.css("margin-left"),10)+parseInt(c.css("margin-right"),10);c.height(b.height()-a.outerHeight()-e);c.width(b.width()-i)},open:function(){if(!this.isOpen){this.overlay=this.options.modal?new c.ui.dialog.overlay(this):null;0<this.uiDialog.next().length&&this.uiDialog.appendTo("body");this.position(this.options.position);this.uiDialog.show(this.options.show);this.options.autoResize&&this.size();this.moveToTop(!0);var b={options:this.options};this.uiDialogTitlebarClose.focus();this.element.triggerHandler("dialogopen",
[null,b],this.options.open);this.isOpen=!0}},moveToTop:function(b){if(this.options.modal&&!b||!this.options.stack&&!this.options.modal)return this.element.triggerHandler("dialogfocus",[null,{options:this.options}],this.options.focus);var a=this.options.zIndex,d=this.options;c(".ui-dialog:visible").each(function(){a=Math.max(a,parseInt(c(this).css("z-index"),10)||d.zIndex)});this.overlay&&this.overlay.$el.css("z-index",++a);this.uiDialog.css("z-index",++a);this.element.triggerHandler("dialogfocus",
[null,{options:this.options}],this.options.focus)},close:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide(this.options.hide);this.element.triggerHandler("dialogclose",[null,{options:this.options}],this.options.close);c.ui.dialog.overlay.resize();this.isOpen=!1},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove()},createButtons:function(b){var a=
this,d=!1,e=this.uiDialogButtonPane;e.empty().hide();c.each(b,function(){return!(d=!0)});d&&(e.show(),c.each(b,function(b,d){c("<button/>").text(b).click(function(){d.apply(a.element[0],arguments)}).appendTo(e)}))}});c.extend(c.ui.dialog,{defaults:{autoOpen:!0,autoResize:!0,bgiframe:!1,buttons:{},closeOnEscape:!0,draggable:!0,height:200,minHeight:100,minWidth:150,modal:!1,overlay:{},position:"center",resizable:!0,stack:!0,width:300,zIndex:1E3},overlay:function(b){this.$el=c.ui.dialog.overlay.create(b)}});
c.extend(c.ui.dialog.overlay,{instances:[],events:c.map("focus mousedown mouseup keydown keypress click".split(" "),function(b){return b+".dialog-overlay"}).join(" "),create:function(b){0===this.instances.length&&(setTimeout(function(){c("a, :input").bind(c.ui.dialog.overlay.events,function(){var a=!1,b=c(this).parents(".ui-dialog");if(b.length)if(a=c(".ui-dialog-overlay"),a.length){var e=parseInt(a.css("z-index"),10);a.each(function(){e=Math.max(e,parseInt(c(this).css("z-index"),10))});a=parseInt(b.css("z-index"),
10)>e}else a=!0;return a})},1),c(document).bind("keydown.dialog-overlay",function(a){a.keyCode&&27==a.keyCode&&b.close()}),c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize));var a=c("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(c.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},b.options.overlay));b.options.bgiframe&&c.fn.bgiframe&&a.bgiframe();this.instances.push(a);return a},destroy:function(b){this.instances.splice(c.inArray(this.instances,
b),1);0===this.instances.length&&c("a, :input").add([document,window]).unbind(".dialog-overlay");b.remove()},height:function(){if(c.browser.msie&&7>c.browser.version){var b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return b<a?c(window).height()+"px":b+"px"}return c(document).height()+"px"},width:function(){if(c.browser.msie&&7>c.browser.version){var b=Math.max(document.documentElement.scrollWidth,
document.body.scrollWidth),a=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<a?c(window).width()+"px":b+"px"}return c(document).width()+"px"},resize:function(){var b=c([]);c.each(c.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(c){c.fn.unwrap=c.fn.unwrap||function(e){return this.each(function(){c(this).parents(e).eq(0).after(this).remove()})};c.widget("ui.slider",{plugins:{},ui:function(){return{options:this.options,handle:this.currentHandle,value:"both"!=this.options.axis||!this.options.axis?Math.round(this.value(null,"vertical"==this.options.axis?"y":"x")):{x:Math.round(this.value(null,"x")),y:Math.round(this.value(null,"y"))},range:this.getRange()}},propagate:function(e,b){c.ui.plugin.call(this,e,[b,this.ui()]);
this.element.triggerHandler("slide"==e?e:"slide"+e,[b,this.ui()],this.options[e])},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");this.handle&&this.handle.length&&(this.handle.unwrap("a"),this.handle.each(function(){c(this).data("mouse").mouseDestroy()}));this.generated&&this.generated.remove()},setData:function(e,b){c.widget.prototype.setData.apply(this,arguments);/min|max|steps/.test(e)&&this.initBoundaries();"range"==e&&(b?2==
this.handle.length&&this.createRange():this.removeRange())},init:function(){var e=this;this.element.addClass("ui-slider");this.initBoundaries();this.handle=c(this.options.handle,this.element);this.handle.length||(e.handle=e.generated=c(e.options.handles||[0]).map(function(){var a=c("<div/>").addClass("ui-slider-handle").appendTo(e.element);this.id&&a.attr("id",this.id);return a[0]}));var b=function(a){this.element=c(a);this.element.data("mouse",this);this.options=e.options;this.element.bind("mousedown",
function(){e.currentHandle&&this.blur(e.currentHandle);e.focus(this,1)});this.mouseInit()};c.extend(b.prototype,c.ui.mouse,{mouseStart:function(a){return e.start.call(e,a,this.element[0])},mouseStop:function(a){return e.stop.call(e,a,this.element[0])},mouseDrag:function(a){return e.drag.call(e,a,this.element[0])},mouseCapture:function(){return true},trigger:function(a){this.mouseDown(a)}});c(this.handle).each(function(){new b(this)}).wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a>').parent().bind("focus",
function(){e.focus(this.firstChild)}).bind("blur",function(){e.blur(this.firstChild)}).bind("keydown",function(a){e.options.noKeyboard||e.keydown(a.keyCode,this.firstChild)});this.element.bind("mousedown.slider",function(a){e.click.apply(e,[a]);e.currentHandle.data("mouse").trigger(a);e.firstValue=e.firstValue+1});c.each(this.options.handles||[],function(a,b){e.moveTo(b.start,a,true)});isNaN(this.options.startValue)||this.moveTo(this.options.startValue,0,!0);this.previousHandle=c(this.handle[0]);
2==this.handle.length&&this.options.range&&this.createRange()},initBoundaries:function(){var e=this.element[0],b=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};c.extend(b,{axis:b.axis||(e.offsetWidth<e.offsetHeight?"vertical":"horizontal"),max:!isNaN(parseInt(b.max,10))?{x:parseInt(b.max,10),y:parseInt(b.max,10)}:{x:b.max&&b.max.x||100,y:b.max&&b.max.y||100},min:!isNaN(parseInt(b.min,10))?{x:parseInt(b.min,10),y:parseInt(b.min,10)}:{x:b.min&&b.min.x||
0,y:b.min&&b.min.y||0}});b.realMax={x:b.max.x-b.min.x,y:b.max.y-b.min.y};b.stepping={x:b.stepping&&b.stepping.x||parseInt(b.stepping,10)||(b.steps?b.realMax.x/(b.steps.x||parseInt(b.steps,10)||b.realMax.x):0),y:b.stepping&&b.stepping.y||parseInt(b.stepping,10)||(b.steps?b.realMax.y/(b.steps.y||parseInt(b.steps,10)||b.realMax.y):0)}},keydown:function(c,b){/(37|38|39|40)/.test(c)&&this.moveTo({x:/(37|39)/.test(c)?(37==c?"-":"+")+"="+this.oneStep("x"):0,y:/(38|40)/.test(c)?(38==c?"-":"+")+"="+this.oneStep("y"):
0},b)},focus:function(e,b){this.currentHandle=c(e).addClass("ui-slider-handle-active");b&&this.currentHandle.parent()[0].focus()},blur:function(e){c(e).removeClass("ui-slider-handle-active");this.currentHandle&&this.currentHandle[0]==e&&(this.previousHandle=this.currentHandle,this.currentHandle=null)},click:function(c){var b=!1;this.handle.each(function(){this==c.target&&(b=!0)});if(!b&&!(this.options.disabled||!this.currentHandle&&!this.previousHandle))!this.currentHandle&&this.previousHandle&&this.focus(this.previousHandle,
!0),this.offset=this.element.offset(),this.moveTo({y:this.convertValue(c.pageY-this.offset.top-this.currentHandle[0].offsetHeight/2,"y"),x:this.convertValue(c.pageX-this.offset.left-this.currentHandle[0].offsetWidth/2,"x")},null,!this.options.distance)},createRange:function(){this.rangeElement||(this.rangeElement=c("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element),this.updateRange())},removeRange:function(){this.rangeElement.remove();this.rangeElement=null},
updateRange:function(){var e="vertical"==this.options.axis?"top":"left",b="vertical"==this.options.axis?"height":"width";this.rangeElement.css(e,(parseInt(c(this.handle[0]).css(e),10)||0)+this.handleSize(0,"vertical"==this.options.axis?"y":"x")/2);this.rangeElement.css(b,(parseInt(c(this.handle[1]).css(e),10)||0)-(parseInt(c(this.handle[0]).css(e),10)||0))},getRange:function(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css("vertical"==this.options.axis?"height":"width"),
10),"vertical"==this.options.axis?"y":"x"):null},handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(e,b){1==this.handle.length&&(this.currentHandle=this.handle);b||(b="vertical"==this.options.axis?"y":"x");var a=c(void 0!=e&&null!==e?this.handle[e]||e:this.currentHandle);return a.data("mouse").sliderValue?parseInt(a.data("mouse").sliderValue[b],10):parseInt(parseInt(a.css("x"==b?"left":"top"),10)/(this.actualSize["x"==b?"width":"height"]-this.handleSize(e,b))*this.options.realMax[b]+
this.options.min[b],10)},convertValue:function(c,b){return this.options.min[b]+c/(this.actualSize["x"==b?"width":"height"]-this.handleSize(null,b))*this.options.realMax[b]},translateValue:function(c,b){return(c-this.options.min[b])/this.options.realMax[b]*(this.actualSize["x"==b?"width":"height"]-this.handleSize(null,b))},translateRange:function(c,b){this.rangeElement&&(this.currentHandle[0]==this.handle[0]&&c>=this.translateValue(this.value(1),b)&&(c=this.translateValue(this.value(1,b)-this.oneStep(b),
b)),this.currentHandle[0]==this.handle[1]&&c<=this.translateValue(this.value(0),b)&&(c=this.translateValue(this.value(0,b)+this.oneStep(b),b)));if(this.options.handles){var a=this.options.handles[this.handleIndex()];c<this.translateValue(a.min,b)?c=this.translateValue(a.min,b):c>this.translateValue(a.max,b)&&(c=this.translateValue(a.max,b))}return c},translateLimits:function(c,b){if(c>=this.actualSize["x"==b?"width":"height"]-this.handleSize(null,b))c=this.actualSize["x"==b?"width":"height"]-this.handleSize(null,
b);0>=c&&(c=0);return c},handleSize:function(e,b){return c(void 0!=e&&null!==e?this.handle[e]:this.currentHandle)[0]["offset"+("x"==b?"Width":"Height")]},oneStep:function(c){return this.options.stepping[c]||1},start:function(c,b){if(this.options.disabled)return!1;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.currentHandle||this.focus(this.previousHandle,!0);this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:c.pageY-
this.handleOffset.top,left:c.pageX-this.handleOffset.left};this.firstValue=this.value();this.propagate("start",c);this.drag(c,b);return!0},stop:function(c){this.propagate("stop",c);this.firstValue!=this.value()&&this.propagate("change",c);this.focus(this.currentHandle,!0);return!1},drag:function(c){var b=this.options,a=c.pageY-this.offset.top-this.clickOffset.top,d=c.pageX-this.offset.left-this.clickOffset.left;this.currentHandle||this.focus(this.previousHandle,!0);d=this.translateLimits(d,"x");a=
this.translateLimits(a,"y");if(b.stepping.x)var f=this.convertValue(d,"x"),f=Math.round(f/b.stepping.x)*b.stepping.x,d=this.translateValue(f,"x");b.stepping.y&&(f=this.convertValue(a,"y"),f=Math.round(f/b.stepping.y)*b.stepping.y,a=this.translateValue(f,"y"));d=this.translateRange(d,"x");a=this.translateRange(a,"y");"vertical"!=b.axis&&this.currentHandle.css({left:d});"horizontal"!=b.axis&&this.currentHandle.css({top:a});this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(d,
"x"))||0,y:Math.round(this.convertValue(a,"y"))||0};this.rangeElement&&this.updateRange();this.propagate("slide",c);return!1},moveTo:function(e,b,a){var d=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(void 0==b&&!this.currentHandle&&1!=this.handle.length)return!1;void 0==b&&!this.currentHandle&&(b=0);void 0!=b&&(this.currentHandle=this.previousHandle=c(this.handle[b]||b));void 0!==e.x&&void 0!==e.y?(b=e.x,e=e.y):b=e;if(void 0!==b&&b.constructor!=
Number)var f=/^\-\=/.test(b),i=/^\+\=/.test(b),b=f||i?this.value(null,"x")+parseInt(b.replace(f?"=":"+=",""),10):isNaN(parseInt(b,10))?void 0:parseInt(b,10);void 0!==e&&e.constructor!=Number&&(f=/^\-\=/.test(e),i=/^\+\=/.test(e),e=f||i?this.value(null,"y")+parseInt(e.replace(f?"=":"+=",""),10):isNaN(parseInt(e,10))?void 0:parseInt(e,10));"vertical"!=d.axis&&void 0!==b&&(d.stepping.x&&(b=Math.round(b/d.stepping.x)*d.stepping.x),b=this.translateValue(b,"x"),b=this.translateLimits(b,"x"),b=this.translateRange(b,
"x"),d.animate?this.currentHandle.stop().animate({left:b},Math.abs(parseInt(this.currentHandle.css("left"))-b)*(!isNaN(parseInt(d.animate))?d.animate:5)):this.currentHandle.css({left:b}));"horizontal"!=d.axis&&void 0!==e&&(d.stepping.y&&(e=Math.round(e/d.stepping.y)*d.stepping.y),e=this.translateValue(e,"y"),e=this.translateLimits(e,"y"),e=this.translateRange(e,"y"),d.animate?this.currentHandle.stop().animate({top:e},Math.abs(parseInt(this.currentHandle.css("top"))-e)*(!isNaN(parseInt(d.animate))?
d.animate:5)):this.currentHandle.css({top:e}));this.rangeElement&&this.updateRange();this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(b,"x"))||0,y:Math.round(this.convertValue(e,"y"))||0};a||(this.propagate("start",null),this.propagate("stop",null),this.propagate("change",null),this.propagate("slide",null))}});c.ui.slider.getter="value";c.ui.slider.defaults={handle:".ui-slider-handle",distance:1,animate:!1}})(jQuery);
(function(c){c.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(!0)},setData:function(c,b){/^selected/.test(c)?this.select(b):(this.options[c]=b,this.tabify())},length:function(){return this.$tabs.length},tabId:function(e){return e.title&&e.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+c.data(e)},ui:function(c,b){return{options:this.options,tab:c,panel:b,index:this.$tabs.index(c)}},tabify:function(e){function b(b,d,e){d.animate(h,h.duration||
k,function(){d.addClass(f.hideClass).css(l);c.browser.msie&&h.opacity&&(d[0].style.filter="");e&&a(b,e,d)})}function a(a,b){g===j&&b.css("display","block");b.animate(g,g.duration||k,function(){b.removeClass(f.hideClass).css(l);c.browser.msie&&g.opacity&&(b[0].style.filter="");c(d.element).triggerHandler("tabsshow",[d.fakeEvent("tabsshow"),d.ui(a,b[0])],f.show)})}this.$lis=c("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return c("a",this)[0]});this.$panels=c([]);var d=this,f=
this.options;this.$tabs.each(function(a,b){if(b.hash&&b.hash.replace("#",""))d.$panels=d.$panels.add(b.hash);else if("#"!=c(b).attr("href")){c.data(b,"href.tabs",b.href);c.data(b,"load.tabs",b.href);var e=d.tabId(b);b.href="#"+e;var g=c("#"+e);g.length||(g=c(f.panelTemplate).attr("id",e).addClass(f.panelClass).insertAfter(d.$panels[a-1]||d.element),g.data("destroy.tabs",!0));d.$panels=d.$panels.add(g)}else f.disabled.push(a+1)});if(e){this.element.addClass(f.navClass);this.$panels.each(function(){c(this).addClass(f.panelClass)});
if(void 0===f.selected)if(location.hash)this.$tabs.each(function(a,b){if(b.hash==location.hash){f.selected=a;if(c.browser.msie||c.browser.opera){var d=c(location.hash),e=d.attr("id");d.attr("id","");setTimeout(function(){d.attr("id",e)},500)}scrollTo(0,0);return!1}});else if(f.cookie){if((e=parseInt(c.cookie("ui-tabs"+c.data(d.element)),10))&&d.$tabs[e])f.selected=e}else d.$lis.filter("."+f.selectedClass).length&&(f.selected=d.$lis.index(d.$lis.filter("."+f.selectedClass)[0]));f.selected=null===f.selected||
void 0!==f.selected?f.selected:0;f.disabled=c.unique(f.disabled.concat(c.map(this.$lis.filter("."+f.disabledClass),function(a){return d.$lis.index(a)}))).sort();-1!=c.inArray(f.selected,f.disabled)&&f.disabled.splice(c.inArray(f.selected,f.disabled),1);this.$panels.addClass(f.hideClass);this.$lis.removeClass(f.selectedClass);null!==f.selected&&(this.$panels.eq(f.selected).show().removeClass(f.hideClass),this.$lis.eq(f.selected).addClass(f.selectedClass),e=function(){c(d.element).triggerHandler("tabsshow",
[d.fakeEvent("tabsshow"),d.ui(d.$tabs[f.selected],d.$panels[f.selected])],f.show)},c.data(this.$tabs[f.selected],"load.tabs")?this.load(f.selected,e):e());c(window).bind("unload",function(){d.$tabs.unbind(".tabs");d.$lis=d.$tabs=d.$panels=null})}for(var e=0,i;i=this.$lis[e];e++)c(i)[-1!=c.inArray(e,f.disabled)&&!c(i).hasClass(f.selectedClass)?"addClass":"removeClass"](f.disabledClass);!1===f.cache&&this.$tabs.removeData("cache.tabs");var h,g,j={"min-width":0,duration:1},k="normal";f.fx&&f.fx.constructor==
Array?(h=f.fx[0]||j,g=f.fx[1]||j):h=g=f.fx||j;var l={display:"",overflow:"",height:""};c.browser.msie||(l.opacity="");this.$tabs.unbind(".tabs").bind(f.event,function(){var e=c(this).parents("li:eq(0)"),g=d.$panels.filter(":visible"),h=c(this.hash);if(e.hasClass(f.selectedClass)&&!f.unselect||e.hasClass(f.disabledClass)||c(this).hasClass(f.loadingClass)||c(d.element).triggerHandler("tabsselect",[d.fakeEvent("tabsselect"),d.ui(this,h[0])],f.select)===false){this.blur();return false}d.options.selected=
d.$tabs.index(this);if(f.unselect){if(e.hasClass(f.selectedClass)){d.options.selected=null;e.removeClass(f.selectedClass);d.$panels.stop();b(this,g);this.blur();return false}if(!g.length){d.$panels.stop();var i=this;d.load(d.$tabs.index(this),function(){e.addClass(f.selectedClass).addClass(f.unselectClass);a(i,h)});this.blur();return false}}f.cookie&&c.cookie("ui-tabs"+c.data(d.element),d.options.selected,f.cookie);d.$panels.stop();if(h.length){i=this;d.load(d.$tabs.index(this),g.length?function(){var a=
i;e.addClass(f.selectedClass).siblings().removeClass(f.selectedClass);b(a,g,h)}:function(){e.addClass(f.selectedClass);a(i,h)})}else throw"jQuery UI Tabs: Mismatching fragment identifier.";c.browser.msie&&this.blur();return false});/^click/.test(f.event)||this.$tabs.bind("click.tabs",function(){return false})},add:function(e,b,a){void 0==a&&(a=this.$tabs.length);var d=this.options,b=c(d.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,b));b.data("destroy.tabs",!0);var e=0==e.indexOf("#")?
e.replace("#",""):this.tabId(c("a:first-child",b)[0]),f=c("#"+e);f.length||(f=c(d.panelTemplate).attr("id",e).addClass(d.hideClass).data("destroy.tabs",!0));f.addClass(d.panelClass);a>=this.$lis.length?(b.appendTo(this.element),f.appendTo(this.element[0].parentNode)):(b.insertBefore(this.$lis[a]),f.insertBefore(this.$panels[a]));d.disabled=c.map(d.disabled,function(b){return b>=a?++b:b});this.tabify();1==this.$tabs.length&&(b.addClass(d.selectedClass),f.removeClass(d.hideClass),(b=c.data(this.$tabs[0],
"load.tabs"))&&this.load(a,b));this.element.triggerHandler("tabsadd",[this.fakeEvent("tabsadd"),this.ui(this.$tabs[a],this.$panels[a])],d.add)},remove:function(e){var b=this.options,a=this.$lis.eq(e).remove(),d=this.$panels.eq(e).remove();a.hasClass(b.selectedClass)&&1<this.$tabs.length&&this.select(e+(e+1<this.$tabs.length?1:-1));b.disabled=c.map(c.grep(b.disabled,function(a){return a!=e}),function(a){return a>=e?--a:a});this.tabify();this.element.triggerHandler("tabsremove",[this.fakeEvent("tabsremove"),
this.ui(a.find("a")[0],d[0])],b.remove)},enable:function(e){var b=this.options;if(-1!=c.inArray(e,b.disabled)){var a=this.$lis.eq(e).removeClass(b.disabledClass);c.browser.safari&&(a.css("display","inline-block"),setTimeout(function(){a.css("display","block")},0));b.disabled=c.grep(b.disabled,function(a){return a!=e});this.element.triggerHandler("tabsenable",[this.fakeEvent("tabsenable"),this.ui(this.$tabs[e],this.$panels[e])],b.enable)}},disable:function(c){var b=this.options;c!=b.selected&&(this.$lis.eq(c).addClass(b.disabledClass),
b.disabled.push(c),b.disabled.sort(),this.element.triggerHandler("tabsdisable",[this.fakeEvent("tabsdisable"),this.ui(this.$tabs[c],this.$panels[c])],b.disable))},select:function(c){"string"==typeof c&&(c=this.$tabs.index(this.$tabs.filter("[href$="+c+"]")[0]));this.$tabs.eq(c).trigger(this.options.event)},load:function(e,b){var a=this,d=this.options,f=this.$tabs.eq(e),i=f[0],h=void 0==b||!1===b,g=f.data("load.tabs"),b=b||function(){};if(!g||!h&&c.data(i,"cache.tabs"))b();else{var j=function(a){var a=
c(a),b=a.find("*:last");return b.length&&b.is(":not(img)")&&b||a},k=function(){a.$tabs.filter("."+d.loadingClass).removeClass(d.loadingClass).each(function(){d.spinner&&j(this).parent().html(j(this).data("label.tabs"))});a.xhr=null};d.spinner&&(h=j(i).html(),j(i).wrapInner("<em></em>").find("em").data("label.tabs",h).html(d.spinner));var l=c.extend({},d.ajaxOptions,{url:g,success:function(f,g){c(i.hash).html(f);k();d.cache&&c.data(i,"cache.tabs",true);c(a.element).triggerHandler("tabsload",[a.fakeEvent("tabsload"),
a.ui(a.$tabs[e],a.$panels[e])],d.load);d.ajaxOptions.success&&d.ajaxOptions.success(f,g);b()}});this.xhr&&(this.xhr.abort(),k());f.addClass(d.loadingClass);setTimeout(function(){a.xhr=c.ajax(l)},0)}},url:function(c,b){this.$tabs.eq(c).removeData("cache.tabs").data("load.tabs",b)},destroy:function(){var e=this.options;this.element.unbind(".tabs").removeClass(e.navClass).removeData("tabs");this.$tabs.each(function(){var b=c.data(this,"href.tabs");b&&(this.href=b);var a=c(this).unbind(".tabs");c.each(["href",
"load","cache"],function(b,c){a.removeData(c+".tabs")})});this.$lis.add(this.$panels).each(function(){c.data(this,"destroy.tabs")?c(this).remove():c(this).removeClass([e.selectedClass,e.unselectClass,e.disabledClass,e.panelClass,e.hideClass].join(" "))})},fakeEvent:function(e){return c.event.fix({type:e,target:this.element[0]})}});c.ui.tabs.defaults={unselect:!1,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:!1,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',
panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};c.ui.tabs.getter="length";c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(c,b){function a(){f.rotation=setInterval(function(){i=++i<f.$tabs.length?i:0;f.select(i)},c)}function d(a){(!a||a.clientX)&&clearInterval(f.rotation)}var b=b||!1,f=this,i=this.options.selected;
c?(a(),b?this.$tabs.bind(this.options.event,function(){d();i=f.options.selected;a()}):this.$tabs.bind(this.options.event,d)):(d(),this.$tabs.unbind(this.options.event,d))}})})(jQuery);
(function(b){function aa(a){return"string"===b.type(a)}function la(a,c){if(b.isArray(c))for(var d=0,f=c.length;d<f;d++){var h=c[d];try{aa(h)&&(h=eval(h)),b.isFunction(h)&&h(a)}catch(l){}}}var Ca=Math.min,C=Math.max,qa=Math.floor;b.layout={version:"1.3.rc30.51",revision:0.033005,language:{Open:"Open",Close:"Close",Resize:"Resize",Slide:"Slide Open",Pin:"Pin",Unpin:"Un-Pin",noRoomToOpenTip:"Not enough room to show this pane.",minSizeWarning:"Panel has reached its minimum size",maxSizeWarning:"Panel has reached its maximum size",
pane:"pane",selector:"selector",errButton:"Error Adding Button \n\nInvalid ",errContainerMissing:"UI Layout Initialization Error\n\nThe specified layout-container does not exist.",errCenterPaneMissing:"UI Layout Initialization Error\n\nThe center-pane element does not exist.\n\nThe center-pane is a required element.",errContainerHeight:"UI Layout Initialization Warning\n\nThe layout-container \"CONTAINER\" has no height.\n\nTherefore the layout is 0-height and hence 'invisible'!"},browser:{mozilla:!!b.browser.mozilla,
webkit:!!b.browser.webkit||!!b.browser.safari,msie:!!b.browser.msie,isIE6:!!b.browser.msie&&6==b.browser.version,version:b.browser.version},effects:{slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}},blind:{},clip:{},explode:{},fade:{},fold:{},puff:{},size:{all:{easing:"swing"}}},
config:{optionRootKeys:"effects panes north south west east center".split(" "),allPanes:["north","south","west","east","center"],borderPanes:["north","south","west","east"],oppositeEdge:{north:"south",south:"north",east:"west",west:"east"},offscreenCSS:{left:"-99999px",right:"auto"},offscreenReset:"offscreenReset",hidden:{visibility:"hidden"},visible:{visibility:"visible"},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden"},cssDemo:{background:"#DDD",
border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDemo:{background:"#AAA"}},content:{cssReq:{position:"relative"},cssDemo:{overflow:"auto",padding:"3px"},cssDemoPane:{overflow:"hidden",padding:0}},panes:{cssReq:{position:"absolute",margin:0},cssDemo:{padding:"3px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{side:"Top",sizeType:"Height",dir:"horz",cssReq:{top:0,
bottom:"auto",left:0,right:0,width:"auto"}},south:{side:"Bottom",sizeType:"Height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{side:"Right",sizeType:"Width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{side:"Left",sizeType:"Width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},callbacks:{},
getParentPaneElem:function(a){a=b(a);if(a=a.data("layout")||a.data("parentLayout")){a=a.container;if(a.data("layoutPane"))return a;a=a.closest("."+b.layout.defaults.panes.paneClass);if(a.data("layoutPane"))return a}return null},getParentPaneInstance:function(a){return(a=b.layout.getParentPaneElem(a))?a.data("layoutPane"):null},getParentLayoutInstance:function(a){return(a=b.layout.getParentPaneElem(a))?a.data("parentLayout"):null},getEventObject:function(b){return"object"===typeof b&&b.stopPropagation?
b:null},parsePaneName:function(a){var c=b.layout.getEventObject(a);return c?(c.stopPropagation(),b(this).data("layoutEdge")):a},plugins:{draggable:!!b.fn.draggable,effects:{core:!!b.effects,slide:b.effects&&b.effects.slide}},onCreate:[],onLoad:[],onReady:[],onDestroy:[],onUnload:[],afterOpen:[],afterClose:[],scrollbarWidth:function(){return window.scrollbarWidth||b.layout.getScrollbarSize("width")},scrollbarHeight:function(){return window.scrollbarHeight||b.layout.getScrollbarSize("height")},getScrollbarSize:function(a){var c=
b('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; overflow: scroll;"></div>').appendTo("body"),d={width:c.width()-c[0].clientWidth,height:c.height()-c[0].clientHeight};c.remove();window.scrollbarWidth=d.width;window.scrollbarHeight=d.height;return a.match(/^(width|height)$/)?d[a]:d},showInvisibly:function(a,c){if(!a)return{};a.jquery||(a=b(a));var d={display:a.css("display"),visibility:a.css("visibility")};return c||"none"===d.display?(a.css({display:"block",
visibility:"hidden"}),d):{}},getElementDimensions:function(a){var c={},d=c.css={},f={},h,l,j=b.layout.cssNum,p=a.offset();c.offsetLeft=p.left;c.offsetTop=p.top;b.each(["Left","Right","Top","Bottom"],function(j,p){h=d["border"+p]=b.layout.borderWidth(a,p);l=d["padding"+p]=b.layout.cssNum(a,"padding"+p);f[p]=h+l;c["inset"+p]=l});c.offsetWidth=a.innerWidth();c.offsetHeight=a.innerHeight();c.outerWidth=a.outerWidth();c.outerHeight=a.outerHeight();c.innerWidth=C(0,c.outerWidth-f.Left-f.Right);c.innerHeight=
C(0,c.outerHeight-f.Top-f.Bottom);d.width=a.width();d.height=a.height();d.top=j(a,"top",!0);d.bottom=j(a,"bottom",!0);d.left=j(a,"left",!0);d.right=j(a,"right",!0);return c},getElementCSS:function(b,c){var d={},f=b[0].style,h=c.split(","),l=["Top","Bottom","Left","Right"],j=["Color","Style","Width"],p,y,L,O,C,B;for(O=0;O<h.length;O++)if(p=h[O],p.match(/(border|padding|margin)$/))for(C=0;4>C;C++)if(y=l[C],"border"===p)for(B=0;3>B;B++)L=j[B],d[p+y+L]=f[p+y+L];else d[p+y]=f[p+y];else d[p]=f[p];return d},
cssWidth:function(a,c){var d=b.layout.borderWidth,f=b.layout.cssNum;if(0>=c)return 0;if(!b.support.boxModel)return c;d=c-d(a,"Left")-d(a,"Right")-f(a,"paddingLeft")-f(a,"paddingRight");return C(0,d)},cssHeight:function(a,c){var d=b.layout.borderWidth,f=b.layout.cssNum;if(0>=c)return 0;if(!b.support.boxModel)return c;d=c-d(a,"Top")-d(a,"Bottom")-f(a,"paddingTop")-f(a,"paddingBottom");return C(0,d)},cssNum:function(a,c,d){a.jquery||(a=b(a));var f=b.layout.showInvisibly(a),c=b.curCSS(a[0],c,!0),d=d&&
"auto"==c?c:parseInt(c,10)||0;a.css(f);return d},borderWidth:function(a,c){a.jquery&&(a=a[0]);var d="border"+c.substr(0,1).toUpperCase()+c.substr(1);return"none"===b.curCSS(a,d+"Style",!0)?0:parseInt(b.curCSS(a,d+"Width",!0),10)||0},isMouseOverElem:function(a,c){var d=b(c||this),f=d.offset(),h=f.top,f=f.left,l=f+d.outerWidth(),d=h+d.outerHeight(),j=a.pageX,p=a.pageY;return b.layout.browser.msie&&0>j&&0>p||j>=f&&j<=l&&p>=h&&p<=d},msg:function(a,c,d,f){b.isPlainObject(a)&&window.debugData?("string"===
typeof c?(f=d,d=c):"object"===typeof d&&(f=d,d=null),d=d||"log( <object> )",f=b.extend({sort:!1,returnHTML:!1,display:!1},f),!0===c||f.display?debugData(a,d,f):window.console&&console.log(debugData(a,d,f))):c?alert(a):window.console?console.log(a):(c=b("#layoutLogger"),c.length||(c=b('<div id="layoutLogger" style="position: '+(b.support.fixedPosition?"fixed":"absolute")+'; top: 5px; z-index: 999999; max-width: 25%; overflow: hidden; border: 1px solid #000; border-radius: 5px; background: #FBFBFB; box-shadow: 0 2px 10px rgba(0,0,0,0.3);"><div style="font-size: 13px; font-weight: bold; padding: 5px 10px; background: #F6F6F6; border-radius: 5px 5px 0 0; cursor: move;"><span style="float: right; padding-left: 7px; cursor: pointer;" title="Remove Console" onclick="$(this).closest(\'#layoutLogger\').remove()">X</span>Layout console.log</div><ul style="font-size: 13px; font-weight: none; list-style: none; margin: 0; padding: 0 0 2px;"></ul></div>').appendTo("body"),
c.css("left",b(window).width()-c.outerWidth()-5),b.ui.draggable&&c.draggable({handle:":first-child"})),c.children("ul").append('<li style="padding: 4px 10px; margin: 0; border-top: 1px solid #CCC;">'+a.replace(/\</g,"&lt;").replace(/\>/g,"&gt;")+"</li>"))}};var G=b.layout.language;b.layout.defaults={name:"",containerSelector:"",containerClass:"ui-layout-container",scrollToBookmarkOnLoad:!0,resizeWithWindow:!0,resizeWithWindowDelay:200,resizeWithWindowMaxDelay:0,onresizeall_start:null,onresizeall_end:null,
onload_start:null,onload_end:null,onunload_start:null,onunload_end:null,autoBindCustomButtons:!1,initPanes:!0,showErrorMessages:!0,showDebugMessages:!1,zIndex:null,zIndexes:{pane_normal:0,content_mask:1,resizer_normal:2,pane_sliding:100,pane_animate:1E3,resizer_drag:1E4},panes:{applyDemoStyles:!1,closable:!0,resizable:!0,slidable:!0,initClosed:!1,initHidden:!1,contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore",findNestedContent:!1,paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",
togglerClass:"ui-layout-toggler",buttonClass:"ui-layout-button",minSize:0,maxSize:0,spacing_open:3,spacing_closed:3,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:G.Close,togglerTip_closed:G.Open,togglerContent_open:"",togglerContent_closed:"",resizerDblClickToggle:!0,autoResize:!0,autoReopen:!0,resizerDragOpacity:1,maskContents:!1,maskObjects:!1,maskZindex:null,resizingGrid:!1,livePaneResizing:!1,liveContentResizing:!1,liveResizingTolerance:1,
noRoomToOpenTip:G.noRoomToOpenTip,resizerTip:G.Resize,sliderTip:G.Slide,sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseleave",slideDelay_open:300,slideDelay_close:300,hideTogglerOnSlide:!1,preventQuickSlideClose:b.layout.browser.webkit,preventPrematureSlideClose:!1,showOverflowOnHover:!1,enableCursorHotkey:!0,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},fxOpacityFix:!0,animatePaneSizing:!1,childOptions:null,initChildLayout:!0,destroyChildLayout:!0,
resizeChildLayout:!0,triggerEventsOnLoad:!1,triggerEventsDuringLiveResize:!0,onshow_start:null,onshow_end:null,onhide_start:null,onhide_end:null,onopen_start:null,onopen_end:null,onclose_start:null,onclose_end:null,onresize_start:null,onresize_end:null,onsizecontent_start:null,onsizecontent_end:null,onswap_start:null,onswap_end:null,ondrag_start:null,ondrag_end:null},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize",customHotkey:""},south:{paneSelector:".ui-layout-south",
size:"auto",resizerCursor:"s-resize",customHotkey:""},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize",customHotkey:""},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize",customHotkey:""},center:{paneSelector:".ui-layout-center",minWidth:0,minHeight:0}};b.layout.optionsMap={layout:"stateManagement effects zIndexes name zIndex scrollToBookmarkOnLoad showErrorMessages resizeWithWindow resizeWithWindowDelay resizeWithWindowMaxDelay onresizeall onresizeall_start onresizeall_end onload onunload autoBindCustomButtons".split(" "),
center:"paneClass contentSelector contentIgnoreSelector findNestedContent applyDemoStyles triggerEventsOnLoad showOverflowOnHover maskContents maskObjects liveContentResizing childOptions initChildLayout resizeChildLayout destroyChildLayout onresize onresize_start onresize_end onsizecontent onsizecontent_start onsizecontent_end".split(" "),noDefault:["paneSelector","resizerCursor","customHotkey"]};b.layout.transformData=function(b){var c={panes:{},center:{}},d,f,h,l,j,p,y;if("object"!==typeof b)return c;
for(f in b){d=c;j=b[f];h=f.split("__");y=h.length-1;for(p=0;p<=y;p++)l=h[p],p===y?d[l]=j:d[l]||(d[l]={}),d=d[l]}return c};b.layout.backwardCompatibility={map:{applyDefaultStyles:"applyDemoStyles",resizeNestedLayout:"resizeChildLayout",resizeWhileDragging:"livePaneResizing",resizeContentWhileDragging:"liveContentResizing",triggerEventsWhileDragging:"triggerEventsDuringLiveResize",maskIframesOnResize:"maskContents",useStateCookie:"stateManagement.enabled","cookie.autoLoad":"stateManagement.autoLoad",
"cookie.autoSave":"stateManagement.autoSave","cookie.keys":"stateManagement.stateKeys","cookie.name":"stateManagement.cookie.name","cookie.domain":"stateManagement.cookie.domain","cookie.path":"stateManagement.cookie.path","cookie.expires":"stateManagement.cookie.expires","cookie.secure":"stateManagement.cookie.secure"},renameOptions:function(a){function c(b,c){for(var d=b.split("."),f=d.length-1,j={branch:a,key:d[f]},h=0,m;h<f;h++)m=d[h],j.branch=void 0==j.branch[m]?c?j.branch[m]={}:{}:j.branch[m];
return j}var d=b.layout.backwardCompatibility.map,f,h,l,j;for(j in d)f=c(j),l=f.branch[f.key],void 0!==l&&(h=c(d[j],!0),h.branch[h.key]=l,delete f.branch[f.key])},renameAllOptions:function(a){var c=b.layout.backwardCompatibility.renameOptions;c(a);a.defaults&&("object"!==typeof a.panes&&(a.panes={}),b.extend(!0,a.panes,a.defaults),delete a.defaults);a.panes&&c(a.panes);b.each(b.layout.config.allPanes,function(b,f){a[f]&&c(a[f])});return a}};b.fn.layout=function(a){function c(g){if(!g)return!0;var v=
g.keyCode;if(33>v)return!0;var a={38:"north",40:"south",37:"west",39:"east"},x=g.shiftKey,e=g.ctrlKey,k,q,c,i;e&&37<=v&&40>=v&&m[a[v]].enableCursorHotkey?i=a[v]:(e||x)&&b.each(j.borderPanes,function(g,b){k=m[b];q=k.customHotkey;c=k.customHotkeyModifier;if(x&&"SHIFT"==c||e&&"CTRL"==c||e&&x)if(q&&v===(isNaN(q)||9>=q?q.toUpperCase().charCodeAt(0):q))return i=b,!1});if(!i||!u[i]||!m[i].closable||o[i].isHidden)return!0;ma(i);g.stopPropagation();return g.returnValue=!1}function d(g){if(E()){this&&this.tagName&&
(g=this);var v;aa(g)?v=u[g]:b(g).data("layoutRole")?v=b(g):b(g).parents().each(function(){if(b(this).data("layoutRole"))return v=b(this),!1});if(v&&v.length){var a=v.data("layoutEdge"),g=o[a];g.cssSaved&&f(a);if(g.isSliding||g.isResizing||g.isClosed)g.cssSaved=!1;else{var x={zIndex:m.zIndexes.resizer_normal+1},e={},k=v.css("overflow"),q=v.css("overflowX"),c=v.css("overflowY");"visible"!=k&&(e.overflow=k,x.overflow="visible");q&&!q.match(/visible|auto/)&&(e.overflowX=q,x.overflowX="visible");c&&!c.match(/visible|auto/)&&
(e.overflowY=q,x.overflowY="visible");g.cssSaved=e;v.css(x);b.each(j.allPanes,function(g,b){b!=a&&f(b)})}}}}function f(g){if(E()){this&&this.tagName&&(g=this);var v;aa(g)?v=u[g]:b(g).data("layoutRole")?v=b(g):b(g).parents().each(function(){if(b(this).data("layoutRole"))return v=b(this),!1});if(v&&v.length){var g=v.data("layoutEdge"),g=o[g],a=g.cssSaved||{};!g.isSliding&&!g.isResizing&&v.css("zIndex",m.zIndexes.pane_normal);v.css(a);g.cssSaved=!1}}}var h=b.layout.browser,l=b.layout.language,j=b.layout.config,
p=b.layout.cssWidth,y=b.layout.cssHeight,L=b.layout.getElementDimensions,O=b.layout.getElementCSS,G=b.layout.getEventObject,B=b.layout.parsePaneName,m=b.extend(!0,{},b.layout.defaults);m.effects=b.extend(!0,{},b.layout.effects);var o={id:"layout"+b.now(),initialized:!1,container:{},north:{},south:{},east:{},west:{},center:{}},P={north:null,south:null,east:null,west:null,center:null},H={data:{},set:function(g,b,a){H.clear(g);H.data[g]=setTimeout(b,a)},clear:function(g){var b=H.data;b[g]&&(clearTimeout(b[g]),
delete b[g])}},ba=function(g,v){b.layout.msg(m.name+" / "+g,v&&m.showErrorMessages)},z=function(g,v,a){var x=v?m[v]:m,e=g+(g.match(/_/)?"":"_end"),k=e.match(/_end$/)?e.substr(0,e.length-4):"",q=x[e],c="NC",i=[];!q&&k&&(q=x[k]);q&&(aa(q)&&(q.match(/,/)?(i=q.split(","),q=eval(i[0])):q=eval(q)),b.isFunction(q)&&(c=i.length?q(i[1]):v&&u[v]?q(v,u[v],o[v],m[v],m.name):q(A,o,m,m.name)));!a&&!1!==c&&(v?(u[v].triggerHandler("layoutpane"+e,[v,u[v],o[v],m[v],m.name]),k&&u[v].triggerHandler("layoutpane"+k,[v,
u[v],o[v],m[v],m.name])):w.triggerHandler("layout"+e,[v,u[v],o[v],m[v],m.name]));("onresize_end"===g||"onsizecontent_end"===g)&&Da(v);return c},Wa=function(g){if(!h.mozilla){var b=u[g];"IFRAME"===o[g].tagName?b.css(j.hidden).css(j.visible):b.find("IFRAME").css(j.hidden).css(j.visible)}},ra=function(g){var b=u[g],g=j[g].dir,b={minWidth:1001-p(b,1E3),minHeight:1001-y(b,1E3)};"horz"===g&&(b.minSize=b.minHeight);"vert"===g&&(b.minSize=b.minWidth);return b},V=function(g,a,t){t||(t=j[g].dir);aa(a)&&a.match(/%/)&&
(a="100%"===a?-1:parseInt(a,10)/100);if(0===a)return 0;if(1<=a)return parseInt(a,10);var x=m,e=0;"horz"==t?e=r.innerHeight-(u.north?x.north.spacing_open:0)-(u.south?x.south.spacing_open:0):"vert"==t&&(e=r.innerWidth-(u.west?x.west.spacing_open:0)-(u.east?x.east.spacing_open:0));if(-1===a)return e;if(0<a)return qa(e*a);if("center"==g)return 0;var t="horz"===t?"height":"width",x=u[g],g="height"===t?N[g]:!1,e=b.layout.showInvisibly(x),k=x.css(t),c=g?g.css(t):0;x.css(t,"auto");g&&g.css(t,"auto");a="height"===
t?x.outerHeight():x.outerWidth();x.css(t,k).css(e);g&&g.css(t,c);return a},ca=function(g,b){var a=u[g],x=m[g],e=o[g],k=b?x.spacing_open:0,x=b?x.spacing_closed:0;return!a||e.isHidden?0:e.isClosed||e.isSliding&&b?x:"horz"===j[g].dir?a.outerHeight()+k:a.outerWidth()+k},T=function(g,b){if(E()){var a=m[g],x=o[g],e=j[g],k=e.dir;e.side.toLowerCase();e.sizeType.toLowerCase();var e=void 0!=b?b:x.isSliding,c=a.spacing_open,d=j.oppositeEdge[g],i=o[d],f=u[d],h=!f||!1===i.isVisible||i.isSliding?0:"horz"==k?f.outerHeight():
f.outerWidth(),d=(!f||i.isHidden?0:m[d][!1!==i.isClosed?"spacing_closed":"spacing_open"])||0,i="horz"==k?r.innerHeight:r.innerWidth,f=ra("center"),f="horz"==k?C(m.center.minHeight,f.minHeight):C(m.center.minWidth,f.minWidth),e=i-c-(e?0:V("center",f,k)+h+d),k=x.minSize=C(V(g,a.minSize),ra(g).minSize),e=x.maxSize=Ca(a.maxSize?V(g,a.maxSize):1E5,e),x=x.resizerPosition={},c=r.insetTop,h=r.insetLeft,d=r.innerWidth,i=r.innerHeight,a=a.spacing_open;switch(g){case "north":x.min=c+k;x.max=c+e;break;case "west":x.min=
h+k;x.max=h+e;break;case "south":x.min=c+i-e-a;x.max=c+i-k-a;break;case "east":x.min=h+d-e-a,x.max=h+d-k-a}}},Ea=function(g,a){var t=b(g),x=t.data("layoutRole"),e=t.data("layoutEdge"),c=m[e][x+"Class"],e="-"+e,q=t.hasClass(c+"-closed")?"-closed":"-open",d="-closed"===q?"-open":"-closed",q=c+"-hover "+(c+e+"-hover ")+(c+q+"-hover ")+(c+e+q+"-hover ");a&&(q+=c+d+"-hover "+(c+e+d+"-hover "));"resizer"==x&&t.hasClass(c+"-sliding")&&(q+=c+"-sliding-hover "+(c+e+"-sliding-hover "));return b.trim(q)},Fa=
function(g,a){var t=b(a||this);g&&"toggler"===t.data("layoutRole")&&g.stopPropagation();t.addClass(Ea(t))},U=function(g,a){var t=b(a||this);t.removeClass(Ea(t,!0))},Xa=function(){b.fn.disableSelection&&b("body").disableSelection()},Ya=function(g,a){var t=a||this,x=b(t).data("layoutEdge"),e=x+"ResizerLeave";H.clear(x+"_openSlider");H.clear(e);a?!o[x].isResizing&&b.fn.enableSelection&&b("body").enableSelection():H.set(e,function(){Ya(g,t)},200)},E=function(){return o.initialized||o.creatingLayout?!0:
sa()},sa=function(g){var a=m;if(!w.is(":visible"))return!g&&h.webkit&&"BODY"===w[0].tagName&&setTimeout(function(){sa(!0)},50),!1;if(!Za("center").length)return m.showErrorMessages&&ba(l.errCenterPaneMissing,!0),!1;o.creatingLayout=!0;b.extend(r,L(w));b.each(j.allPanes,function(g,b){$a(b,!0)});Ga();b.each(j.borderPanes,function(g,b){u[b]&&o[b].isVisible&&(T(b),W(b))});X("center");b.each(j.allPanes,function(g,b){var a=m[b];u[b]&&(o[b].isVisible&&(fa(b),a.triggerEventsOnLoad?z("onresize_end",b):Da(b)),
a.initChildLayout&&a.childOptions&&Ha(b))});a.scrollToBookmarkOnLoad&&(g=self.location,g.hash&&g.replace(g.hash));A.hasParentLayout?a.resizeWithWindow=!1:a.resizeWithWindow&&b(window).bind("resize."+I,ob);delete o.creatingLayout;o.initialized=!0;la(A,b.layout.onReady);z("onload_end");return!0},Ha=function(g,b){var a=B.call(this,g),c=u[a];if(c){var e=N[a],k=b||m[a].childOptions,c=k.containerSelector?c.find(k.containerSelector):e||c,q=(e=c.length)?P[a]=c.data("layout")||null:null;!q&&e&&k&&(q=P[a]=
c.eq(0).layout(k)||null);q&&(q.hasParentLayout=!0)}A[a].child=P[a]},ob=function(){var g=Number(m.resizeWithWindowDelay);10>g&&(g=100);H.clear("winResize");H.set("winResize",function(){H.clear("winResize");H.clear("winResizeRepeater");var g=L(w);(g.innerWidth!==r.innerWidth||g.innerHeight!==r.innerHeight)&&ga()},g);H.data.winResizeRepeater||ab()},ab=function(){var g=Number(m.resizeWithWindowMaxDelay);0<g&&H.set("winResizeRepeater",function(){ab();ga()},g)},bb=function(){z("onunload_start");la(A,b.layout.onUnload);
z("onunload_end")},cb=function(g){g=g?g.split(","):j.borderPanes;b.each(g,function(g,a){var x=m[a];if(x.enableCursorHotkey||x.customHotkey)return b(document).bind("keydown."+I,c),!1})},Za=function(g){g=m[g].paneSelector;if("#"===g.substr(0,1))return w.find(g).eq(0);var b=w.children(g).eq(0);return b.length?b:w.children("form:first").children(g).eq(0)},$a=function(g,b){if(b||E()){var a=m[g],c=o[g],e=j[g],k=e.dir,q="center"===g,M={},i=u[g],D,h;i?Ia(g,!1,!0,!1):N[g]=!1;i=u[g]=Za(g);if(i.length){i.data("layoutCSS")||
i.data("layoutCSS",O(i,"position,top,left,bottom,right,width,height,overflow,zIndex,display,backgroundColor,padding,margin,border"));A[g]={name:g,pane:u[g],content:N[g],options:m[g],state:o[g],child:P[g]};i.data({parentLayout:A,layoutPane:A[g],layoutEdge:g,layoutRole:"pane"}).css(e.cssReq).css("zIndex",m.zIndexes.pane_normal).css(a.applyDemoStyles?e.cssDemo:{}).addClass(a.paneClass+" "+a.paneClass+"-"+g).bind("mouseenter."+I,Fa).bind("mouseleave."+I,U);e={hide:"",show:"",toggle:"",close:"",open:"",
slideOpen:"",slideClose:"",slideToggle:"",size:"manualSizePane",sizePane:"manualSizePane",sizeContent:"",sizeHandles:"",enableClosable:"",disableClosable:"",enableSlideable:"",disableSlideable:"",enableResizable:"",disableResizable:"",swapPanes:"swapPanes",swap:"swapPanes",move:"swapPanes",removePane:"removePane",remove:"removePane",createChildLayout:"",resizeChildLayout:"",resizeAll:"resizeAll",resizeLayout:"resizeAll"};for(h in e)i.bind("layoutpane"+h.toLowerCase()+"."+I,A[e[h]||h]);Ja(g,!1);q||
(D=c.size=V(g,a.size),q=V(g,a.minSize)||1,h=V(g,a.maxSize)||1E5,0<D&&(D=C(Ca(D,h),q)),c.isClosed=!1,c.isSliding=!1,c.isResizing=!1,c.isHidden=!1,c.pins||(c.pins=[]));c.tagName=i[0].tagName;c.edge=g;c.noRoom=!1;c.isVisible=!0;switch(g){case "north":M.top=r.insetTop;M.left=r.insetLeft;M.right=r.insetRight;break;case "south":M.bottom=r.insetBottom;M.left=r.insetLeft;M.right=r.insetRight;break;case "west":M.left=r.insetLeft;break;case "east":M.right=r.insetRight}"horz"===k?M.height=y(i,D):"vert"===k&&
(M.width=p(i,D));i.css(M);"horz"!=k&&X(g,!0);a.initClosed&&a.closable&&!a.initHidden?Y(g,!0,!0):a.initHidden||a.initClosed?Ka(g):c.noRoom||i.css("display","block");i.css("visibility","visible");a.showOverflowOnHover&&i.hover(d,f);o.initialized&&(Ga(g),cb(g),ga(),c.isVisible&&(a.triggerEventsOnLoad?z("onresize_end",g):Da(g)),a.initChildLayout&&a.childOptions&&Ha(g))}else u[g]=!1}},Ga=function(g){g=g?g.split(","):j.borderPanes;b.each(g,function(g,a){var c=u[a];F[a]=!1;K[a]=!1;if(c){var e=m[a],c=o[a],
k=e.resizerClass,q=e.togglerClass;j[a].side.toLowerCase();var d="-"+a,i=A[a],f=i.resizer=F[a]=b("<div></div>"),i=i.toggler=e.closable?K[a]=b("<div></div>"):!1;!c.isVisible&&e.slidable&&f.attr("title",e.sliderTip).css("cursor",e.sliderCursor);f.attr("id","#"==e.paneSelector.substr(0,1)?e.paneSelector.substr(1)+"-resizer":"").data({parentLayout:A,layoutPane:A[a],layoutEdge:a,layoutRole:"resizer"}).css(j.resizers.cssReq).css("zIndex",m.zIndexes.resizer_normal).css(e.applyDemoStyles?j.resizers.cssDemo:
{}).addClass(k+" "+k+d).hover(Fa,U).hover(Xa,Ya).appendTo(w);i&&(i.attr("id","#"==e.paneSelector.substr(0,1)?e.paneSelector.substr(1)+"-toggler":"").data({parentLayout:A,layoutPane:A[a],layoutEdge:a,layoutRole:"toggler"}).css(j.togglers.cssReq).css(e.applyDemoStyles?j.togglers.cssDemo:{}).addClass(q+" "+q+d).hover(Fa,U).bind("mouseenter",Xa).appendTo(f),e.togglerContent_open&&b("<span>"+e.togglerContent_open+"</span>").data({layoutEdge:a,layoutRole:"togglerContent"}).data("layoutRole","togglerContent").data("layoutEdge",
a).addClass("content content-open").css("display","none").appendTo(i),e.togglerContent_closed&&b("<span>"+e.togglerContent_closed+"</span>").data({layoutEdge:a,layoutRole:"togglerContent"}).addClass("content content-closed").css("display","none").appendTo(i),db(a));var e=a,h=b.layout.plugins.draggable,e=e?e.split(","):j.borderPanes;b.each(e,function(g,a){var e=m[a];if(!h||!u[a]||!e.resizable){e.resizable=false;return true}var c=o[a],v=m.zIndexes,i=j[a],t=i.dir=="horz"?"top":"left",k=a+",center,"+
j.oppositeEdge[a]+(i.dir=="horz"?",west,east":""),q=F[a],d=e.resizerClass,x=0,f,D,M=d+"-drag",r=d+"-"+a+"-drag",y=d+"-dragging",A=d+"-"+a+"-dragging",B=d+"-dragging-limit",E=d+"-"+a+"-dragging-limit",C=false;c.isClosed||q.attr("title",e.resizerTip).css("cursor",e.resizerCursor);q.draggable({containment:w[0],axis:i.dir=="horz"?"y":"x",delay:0,distance:1,grid:e.resizingGrid,helper:"clone",opacity:e.resizerDragOpacity,addClasses:false,zIndex:v.resizer_drag,start:function(g,v){e=m[a];c=o[a];D=e.livePaneResizing;
if(false===z("ondrag_start",a))return false;c.isResizing=true;H.clear(a+"_closeSlider");T(a);f=c.resizerPosition;x=v.position[t];q.addClass(M+" "+r);C=false;b("body").disableSelection();ta(k)},drag:function(g,b){if(!C){b.helper.addClass(y+" "+A).css({right:"auto",bottom:"auto"}).children().css("visibility","hidden");C=true;c.isSliding&&u[a].css("zIndex",v.pane_sliding)}var i=0;if(b.position[t]<f.min){b.position[t]=f.min;i=-1}else if(b.position[t]>f.max){b.position[t]=f.max;i=1}if(i){b.helper.addClass(B+
" "+E);window.defaultStatus=i>0&&a.match(/north|west/)||i<0&&a.match(/south|east/)?l.maxSizeWarning:l.minSizeWarning}else{b.helper.removeClass(B+" "+E);window.defaultStatus=""}if(D&&Math.abs(b.position[t]-x)>=e.liveResizingTolerance){x=b.position[t];p(g,b,a)}},stop:function(g,e){b("body").enableSelection();window.defaultStatus="";q.removeClass(M+" "+r);c.isResizing=false;p(g,e,a,true,k)}})});var p=function(g,a,b,e,c){var v=a.position,i=j[b],g=m[b],a=o[b],t;switch(b){case "north":t=v.top;break;case "west":t=
v.left;break;case "south":t=r.offsetHeight-v.top-g.spacing_open;break;case "east":t=r.offsetWidth-v.left-g.spacing_open}t=t-r["inset"+i.side];if(e){false!==z("ondrag_end",b)&&ua(b,t,false,true);La();a.isSliding&&c&&ta(c,true)}else if(!(Math.abs(t-a.size)<g.liveResizingTolerance)){ua(b,t,false,true);da.each(eb)}};c.isVisible?Ma(a):(Na(a),ea(a,!0))}});ha()},Ja=function(g,a){if(E()){var b=m[g],c=b.contentSelector,e=A[g],k=u[g],d;c&&(d=e.content=N[g]=b.findNestedContent?k.find(c).eq(0):k.children(c).eq(0));
d&&d.length?(d.data("layoutRole","content"),d.data("layoutCSS")||d.data("layoutCSS",O(d,"height")),d.css(j.content.cssReq),b.applyDemoStyles&&(d.css(j.content.cssDemo),k.css(j.content.cssDemoPane)),o[g].content={},!1!==a&&fa(g)):e.content=N[g]=!1}},eb=function(){var g=b(this),a=g.data("layoutMask"),a=o[a];"IFRAME"==a.tagName&&a.isVisible&&g.css({top:a.offsetTop,left:a.offsetLeft,width:a.outerWidth,height:a.outerHeight})},ta=function(a,c){var t=a?a.split(","):b.layout.config.allPanes,d=m.zIndexes,
e,k;b.each(t,function(a,g){k=o[g];e=m[g];if(k.isVisible&&(!c&&e.maskContents||e.maskObjects)){for(var i=b([]),t,f=0,j=da.length;f<j;f++)t=da.eq(f),t.data("layoutMask")===g&&(i=i.add(t));if(!i.length){i=u[g];t=o[g];var f=m[g],j=m.zIndexes,h=b([]),p,l,r,y,z;if(f.maskContents||f.maskObjects)for(z=0;z<(f.maskObjects?2:1);z++)p=f.maskObjects&&0==z,l=document.createElement(p?"iframe":"div"),r=b(l).data("layoutMask",g),l.className="ui-layout-mask ui-layout-mask-"+g,y=l.style,y.display="block",y.position=
"absolute",p&&(l.frameborder=0,l.src="about:blank",y.opacity=0,y.filter="Alpha(Opacity='0')",y.border=0),"IFRAME"==t.tagName?(y.zIndex=j.pane_normal+1,w.append(l)):(r.addClass("ui-layout-mask-inside-pane"),y.zIndex=f.maskZindex||j.content_mask,y.top=0,y.left=0,y.width="100%",y.height="100%",i.append(l)),h=h.add(l),da=da.add(l);i=h}i.each(function(){eb.call(this);this.style.zIndex=k.isSliding?d.pane_sliding+1:d.pane_normal+1;this.style.display="block"})}})},La=function(){var a;b.each(b.layout.config.borderPanes,
function(b,c){if(o[c].isResizing)return a=!0,!1});a||da.hide()},Ia=function(a,c,t,d){if(E()){var a=B.call(this,a),e=u[a],k=N[a],q=F[a],f=K[a];e&&b.isEmptyObject(e.data())&&(e=!1);k&&b.isEmptyObject(k.data())&&(k=!1);q&&b.isEmptyObject(q.data())&&(q=!1);f&&b.isEmptyObject(f.data())&&(f=!1);e&&e.stop(!0,!0);var i=m[a],j=P[a]||(e?e.data("layout"):0)||(k?k.data("layout"):0)||null;if((void 0!==d?d:i.destroyChildLayout)&&j&&!j.destroyed)j.destroy(!0),j.destroyed&&(j=null);e&&c&&!j?e.remove():e&&e[0]&&(c=
i.paneClass,d=c+"-"+a,c=[c,c+"-open",c+"-closed",c+"-sliding",d,d+"-open",d+"-closed",d+"-sliding"],b.merge(c,Ea(e,!0)),e.removeClass(c.join(" ")).removeData("parentLayout").removeData("layoutPane").removeData("layoutRole").removeData("layoutEdge").removeData("autoHidden").unbind("."+I),k&&k.data("layout")?(k.width(k.width()),j.resizeAll()):k&&k.css(k.data("layoutCSS")).removeData("layoutCSS").removeData("layoutRole"),e.data("layout")||e.css(e.data("layoutCSS")).removeData("layoutCSS"));f&&f.remove();
q&&q.remove();A[a]=u[a]=N[a]=F[a]=K[a]=P[a]=!1;t||ga()}},va=function(a){var b=u[a],c=b[0].style;m[a].useOffscreenClose?(b.data(j.offscreenReset)||b.data(j.offscreenReset,{left:c.left,right:c.right}),b.css(j.offscreenCSS)):b.hide().removeData(j.offscreenReset)},fb=function(a){var b=u[a],a=m[a],c=j.offscreenCSS,d=b.data(j.offscreenReset),e=b[0].style;b.show().removeData(j.offscreenReset);if(a.useOffscreenClose&&d&&(e.left==c.left&&(e.left=d.left),e.right==c.right))e.right=d.right},Ka=function(a,b){if(E()){var c=
B.call(this,a),d=m[c],e=o[c],k=F[c];u[c]&&!e.isHidden&&!(o.initialized&&!1===z("onhide_start",c))&&(e.isSliding=!1,k&&k.hide(),!o.initialized||e.isClosed?(e.isClosed=!0,e.isHidden=!0,e.isVisible=!1,o.initialized||va(c),X("horz"===j[c].dir?"":"center"),(o.initialized||d.triggerEventsOnLoad)&&z("onhide_end",c)):(e.isHiding=!0,Y(c,!1,b)))}},wa=function(a,b,c,d){if(E()){var a=B.call(this,a),e=o[a];u[a]&&e.isHidden&&!1!==z("onshow_start",a)&&(e.isSliding=!1,e.isShowing=!0,!1===b?Y(a,!0):ia(a,!1,c,d))}},
ma=function(a,b){if(E()){var c=G(a),d=B.call(this,a),e=o[d];c&&c.stopImmediatePropagation();e.isHidden?wa(d):e.isClosed?ia(d,!!b):Y(d)}},Y=function(a,b,c,d){function e(){i.isMoving=!1;ea(k,!0);var a=j.oppositeEdge[k];o[a].noRoom&&(T(a),W(a));La();if(!d&&(o.initialized||h.triggerEventsOnLoad))p||z("onclose_end",k),p&&z("onshow_end",k),r&&z("onhide_end",k)}var k=B.call(this,a);if(!o.initialized&&u[k])a=o[k],va(k),a.isClosed=!0,a.isVisible=!1;else if(E()){var f=u[k],h=m[k],i=o[k],D=j[k],l,p,r;w.queue(function(a){if(!f||
!h.closable&&!i.isShowing&&!i.isHiding||!b&&i.isClosed&&!i.isShowing)return a();var g=!i.isShowing&&!1===z("onclose_start",k);p=i.isShowing;r=i.isHiding;delete i.isShowing;delete i.isHiding;if(g)return a();l=!c&&!i.isClosed&&"none"!=h.fxName_close;i.isMoving=!0;i.isClosed=!0;i.isVisible=!1;r?i.isHidden=!0:p&&(i.isHidden=!1);i.isSliding?na(k,!1):X("horz"===j[k].dir?"":"center",!1);Na(k);l?(ta("center"+("horz"==D.dir?",west,east":""),!0),xa(k,!0),f.hide(h.fxName_close,h.fxSettings_close,h.fxSpeed_close,
function(){xa(k,false);i.isClosed&&e();a()})):(va(k),e(),a())})}},Na=function(a){var c=F[a],d=K[a],f=m[a],e=j[a].side.toLowerCase(),k=f.resizerClass,q=f.togglerClass,h="-"+a;c.css(e,r["inset"+j[a].side]).removeClass(k+"-open "+k+h+"-open").removeClass(k+"-sliding "+k+h+"-sliding").addClass(k+"-closed "+k+h+"-closed").unbind("dblclick."+I);f.resizable&&b.layout.plugins.draggable&&c.draggable("disable").removeClass("ui-state-disabled").css("cursor","default").attr("title","");d&&(d.removeClass(q+"-open "+
q+h+"-open").addClass(q+"-closed "+q+h+"-closed").attr("title",f.togglerTip_closed),d.children(".content-open").hide(),d.children(".content-closed").css("display","block"));Oa(a,!1);o.initialized&&ha()},ia=function(a,b,c,d){function e(){i.isMoving=!1;Wa(k);i.isSliding||(La(),X("vert"==j[k].dir?"center":"",!1));Ma(k)}if(E()){var k=B.call(this,a),f=u[k],h=m[k],i=o[k],D=j[k],l,p;w.queue(function(a){if(!f||!h.resizable&&!h.closable&&!i.isShowing||i.isVisible&&!i.isSliding)return a();if(i.isHidden&&!i.isShowing)a(),
wa(k,!0);else{h.autoResize&&i.size!=h.size?Z(k,h.size,!0,!0,!0):T(k,b);var g=z("onopen_start",k);if("abort"===g)return a();"NC"!==g&&T(k,b);if(i.minSize>i.maxSize)return Oa(k,!1),!d&&h.noRoomToOpenTip&&alert(h.noRoomToOpenTip),a();b?na(k,!0):i.isSliding?na(k,!1):h.slidable&&ea(k,!1);i.noRoom=!1;W(k);p=i.isShowing;delete i.isShowing;l=!c&&i.isClosed&&"none"!=h.fxName_open;i.isMoving=!0;i.isVisible=!0;i.isClosed=!1;p&&(i.isHidden=!1);l?(g="center"+("horz"==D.dir?",west,east":""),i.isSliding&&(g+=","+
j.oppositeEdge[k]),ta(g,!0),xa(k,!0),f.show(h.fxName_open,h.fxSettings_open,h.fxSpeed_open,function(){xa(k,false);i.isVisible&&e();a()})):(fb(k),e(),a())}})}},Ma=function(a,c){var d=u[a],f=F[a],e=K[a],k=m[a],q=o[a],h=j[a].side.toLowerCase(),i=k.resizerClass,D=k.togglerClass,l="-"+a;f.css(h,r["inset"+j[a].side]+ca(a)).removeClass(i+"-closed "+i+l+"-closed").addClass(i+"-open "+i+l+"-open");q.isSliding?f.addClass(i+"-sliding "+i+l+"-sliding"):f.removeClass(i+"-sliding "+i+l+"-sliding");k.resizerDblClickToggle&&
f.bind("dblclick",ma);U(0,f);k.resizable&&b.layout.plugins.draggable?f.draggable("enable").css("cursor",k.resizerCursor).attr("title",k.resizerTip):q.isSliding||f.css("cursor","default");e&&(e.removeClass(D+"-closed "+D+l+"-closed").addClass(D+"-open "+D+l+"-open").attr("title",k.togglerTip_open),U(0,e),e.children(".content-closed").hide(),e.children(".content-open").css("display","block"));Oa(a,!q.isSliding);b.extend(q,L(d));o.initialized&&(ha(),fa(a,!0));if(!c&&(o.initialized||k.triggerEventsOnLoad)&&
d.is(":visible"))z("onopen_end",a),q.isShowing&&z("onshow_end",a),o.initialized&&z("onresize_end",a)},gb=function(a){function b(){e.isClosed?e.isMoving||ia(d,!0):na(d,!0)}if(E()){var c=G(a),d=B.call(this,a),e=o[d],a=m[d].slideDelay_open;c&&c.stopImmediatePropagation();e.isClosed&&c&&"mouseenter"===c.type&&0<a?H.set(d+"_openSlider",b,a):b()}},Pa=function(a){function c(){e.isClosed?na(f,!1):e.isMoving||Y(f)}if(E()){var d=G(a),f=B.call(this,a),a=m[f],e=o[f],k=e.isMoving?1E3:300;!e.isClosed&&!e.isResizing&&
("click"===a.slideTrigger_close?c():a.preventQuickSlideClose&&e.isMoving||a.preventPrematureSlideClose&&d&&b.layout.isMouseOverElem(d,u[f])||(d?H.set(f+"_closeSlider",c,C(a.slideDelay_close,k)):c()))}},xa=function(a,b){var c=u[a],d=o[a],e=m[a],f=m.zIndexes;b?(c.css({zIndex:f.pane_animate}),"south"==a?c.css({top:r.insetTop+r.innerHeight-c.outerHeight()}):"east"==a&&c.css({left:r.insetLeft+r.innerWidth-c.outerWidth()})):(c.css({zIndex:d.isSliding?f.pane_sliding:f.pane_normal}),"south"==a?c.css({top:"auto"}):
"east"==a&&!c.css("left").match(/\-99999/)&&c.css({left:"auto"}),h.msie&&e.fxOpacityFix&&("slide"!=e.fxName_open&&c.css("filter")&&1==c.css("opacity"))&&c[0].style.removeAttribute("filter"))},ea=function(a,b){var c=m[a],d=F[a],e=c.slideTrigger_open.toLowerCase();if(d&&(!b||c.slidable))e.match(/mouseover/)?e=c.slideTrigger_open="mouseenter":e.match(/click|dblclick|mouseenter/)||(e=c.slideTrigger_open="click"),d[b?"bind":"unbind"](e+"."+I,gb).css("cursor",b?c.sliderCursor:"default").attr("title",b?
c.sliderTip:"")},na=function(a,b){function c(b){H.clear(a+"_closeSlider");b.stopPropagation()}var d=m[a],e=o[a],f=m.zIndexes,q=d.slideTrigger_close.toLowerCase(),h=b?"bind":"unbind",i=u[a],j=F[a];e.isSliding=b;H.clear(a+"_closeSlider");b&&ea(a,!1);i.css("zIndex",b?f.pane_sliding:f.pane_normal);j.css("zIndex",b?f.pane_sliding+2:f.resizer_normal);q.match(/click|mouseleave/)||(q=d.slideTrigger_close="mouseleave");j[h](q,Pa);"mouseleave"===q&&(i[h]("mouseleave."+I,Pa),j[h]("mouseenter."+I,c),i[h]("mouseenter."+
I,c));b?"click"===q&&!d.resizable&&(j.css("cursor",b?d.sliderCursor:"default"),j.attr("title",b?d.togglerTip_open:"")):H.clear(a+"_closeSlider")},W=function(a,c,d,f){var c=m[a],e=o[a],k=j[a],q=u[a],h=F[a],i="vert"===k.dir,D=!1;if("center"===a||i&&e.noVerticalRoom)(D=0<=e.maxHeight)&&e.noRoom?(fb(a),h&&h.show(),e.isVisible=!0,e.noRoom=!1,i&&(e.noVerticalRoom=!1),Wa(a)):!D&&!e.noRoom&&(va(a),h&&h.hide(),e.isVisible=!1,e.noRoom=!0);if("center"!==a)if(e.minSize<=e.maxSize){if(e.size>e.maxSize?Z(a,e.maxSize,
d,f,!0):e.size<e.minSize?Z(a,e.minSize,d,f,!0):h&&e.isVisible&&q.is(":visible")&&(d=k.side.toLowerCase(),f=e.size+r["inset"+k.side],b.layout.cssNum(h,d)!=f&&h.css(d,f)),e.noRoom)e.wasOpen&&c.closable?c.autoReopen?ia(a,!1,!0,!0):e.noRoom=!1:wa(a,e.wasOpen,!0,!0)}else e.noRoom||(e.noRoom=!0,e.wasOpen=!e.isClosed&&!e.isSliding,e.isClosed||(c.closable?Y(a,!0,!0):Ka(a,!0)))},ua=function(a,b,c,d){if(E()){var a=B.call(this,a),e=m[a],f=o[a],f=e.livePaneResizing&&!f.isResizing;e.autoResize=!1;Z(a,b,c,f,d)}},
Z=function(a,c,d,f,e){function k(){for(var a="width"===Q?D.outerWidth():D.outerHeight(),a=[{pane:h,count:1,target:c,actual:a,correct:c===a,attempt:c,cssSize:H}],e=a[0],g="Inaccurate size after resizing the "+h+"-pane.";!e.correct;){thisTry={pane:h,count:e.count+1,target:c};thisTry.attempt=e.actual>c?C(0,e.attempt-(e.actual-c)):C(0,e.attempt+(c-e.actual));thisTry.cssSize=("horz"==j[h].dir?y:p)(u[h],thisTry.attempt);D.css(Q,thisTry.cssSize);thisTry.actual="width"==Q?D.outerWidth():D.outerHeight();thisTry.correct=
c===thisTry.actual;m.showDebugMessages&&(1===a.length&&(ba(g,!1),ba(e,!1)),ba(thisTry,!1));if(3<a.length)break;a.push(thisTry);e=a[a.length-1]}i.size=c;b.extend(i,L(D));i.isVisible&&D.is(":visible")&&(Va&&Va.css(A,c+r[pb]),fa(h));!d&&!O&&(o.initialized&&i.isVisible)&&z("onresize_end",h);d||(i.isSliding||X("horz"==j[h].dir?"":"center",O,f),ha());e=j.oppositeEdge[h];c<G&&o[e].noRoom&&(T(e),W(e,!1,d));m.showDebugMessages&&1<a.length&&ba(g+"\nSee the Error Console for details.",!0)}if(E()){var h=B.call(this,
a),l=m[h],i=o[h],D=u[h],Va=F[h],A=j[h].side.toLowerCase(),Q=j[h].sizeType.toLowerCase(),pb="inset"+j[h].side,O=i.isResizing&&!l.triggerEventsDuringLiveResize,I=!0!==e&&l.animatePaneSizing,G,H;w.queue(function(a){T(h);G=i.size;c=V(h,c);c=C(c,V(h,l.minSize));c=Ca(c,i.maxSize);if(c<i.minSize)a(),W(h,!1,d);else{if(!f&&c===G)return a();!d&&o.initialized&&i.isVisible&&z("onresize_start",h);H=("horz"==j[h].dir?y:p)(u[h],c);if(I&&D.is(":visible")){var e=b.layout.effects.size[h]||b.layout.effects.size.all,
e=l.fxSettings_size.easing||e.easing,g=m.zIndexes,r={};r[Q]=H+"px";i.isMoving=!0;D.css({zIndex:g.pane_animate}).show().animate(r,l.fxSpeed_size,e,function(){D.css({zIndex:i.isSliding?g.pane_sliding:g.pane_normal});i.isMoving=!1;k();a()})}else D.css(Q,H),D.is(":visible")?k():(i.size=c,b.extend(i,L(D))),a();b.isFunction(b(".x").jqGrid)&&b(".jqgrid").setGridWidth(b(".ui-layout-center").width()-50)}})}},X=function(a,c,d){a=(a?a:"east,west,center").split(",");b.each(a,function(a,e){if(u[e]){var g=m[e],
f=o[e],h=u[e],i=!0,j={},i={top:ca("north",!0),bottom:ca("south",!0),left:ca("west",!0),right:ca("east",!0),width:0,height:0};i.width=r.innerWidth-i.left-i.right;i.height=r.innerHeight-i.bottom-i.top;i.top+=r.insetTop;i.bottom+=r.insetBottom;i.left+=r.insetLeft;i.right+=r.insetRight;b.extend(f,L(h));if("center"===e){if(!d&&f.isVisible&&i.width===f.outerWidth&&i.height===f.outerHeight)return!0;b.extend(f,ra(e),{maxWidth:i.width,maxHeight:i.height});j=i;j.width=p(h,j.width);j.height=y(h,j.height);i=
0<=j.width&&0<=j.height;if(!o.initialized&&g.minWidth>f.outerWidth){var g=g.minWidth-f.outerWidth,l=m.east.minSize||0,w=m.west.minSize||0,Q=o.east.size,A=o.west.size,B=Q,E=A;0<g&&o.east.isVisible&&Q>l&&(B=C(Q-l,Q-g),g-=Q-B);0<g&&o.west.isVisible&&A>w&&(E=C(A-w,A-g),g-=A-E);if(0===g){Q!=l&&Z("east",B,!0,d,!0);A!=w&&Z("west",E,!0,d,!0);X("center",c,d);return}}}else{f.isVisible&&!f.noVerticalRoom&&b.extend(f,L(h),ra(e));if(!d&&!f.noVerticalRoom&&i.height===f.outerHeight)return!0;j.top=i.top;j.bottom=
i.bottom;j.height=y(h,i.height);f.maxHeight=j.height;i=0<=f.maxHeight;i||(f.noVerticalRoom=!0)}i?(!c&&o.initialized&&z("onresize_start",e),h.css(j),ha(e),f.noRoom&&!f.isClosed&&!f.isHidden&&W(e),f.isVisible&&(b.extend(f,L(h)),o.initialized&&fa(e))):!f.noRoom&&f.isVisible&&W(e);if(!f.isVisible)return!0;"center"===e&&(f=b.layout.browser,f=f.isIE6||f.msie&&!b.support.boxModel,u.north&&(f||"IFRAME"==o.north.tagName)&&u.north.css("width",p(u.north,r.innerWidth)),u.south&&(f||"IFRAME"==o.south.tagName)&&
u.south.css("width",p(u.south,r.innerWidth)));!c&&o.initialized&&z("onresize_end",e)}});b.isFunction(b(".x").jqGrid)&&b(".jqgrid").setGridWidth(b(".ui-layout-center").width()-50)},ga=function(){if(o.initialized){if(w.is(":visible:")&&(b.extend(o.container,L(w)),r.outerHeight)){if(!1===z("onresizeall_start"))return!1;var a,c,d;b.each(["south","north","east","west"],function(a,b){u[b]&&(d=o[b],c=m[b],c.autoResize&&d.size!=c.size?Z(b,c.size,!0,!0,!0):(T(b),W(b,!1,!0,!0)))});X("",!0,!0);ha();c=m;b.each(j.allPanes,
function(b,c){(a=u[c])&&o[c].isVisible&&z("onresize_end",c)});z("onresizeall_end")}}else sa()},Da=function(a){a=B.call(this,a);if(m[a].resizeChildLayout){var b=u[a],c=N[a],d=A[a],e=P[a];d.child&&!e&&(e=d.child.container,e=P[a]=(e?e.data("layout"):0)||null);e&&e.destroyed&&(e=P[a]=null);e||(e=P[a]=b.data("layout")||(c?c.data("layout"):0)||null);d.child=P[a];e&&e.resizeAll()}},fa=function(a,c){if(E()){var d=B.call(this,a),d=d?d.split(","):j.allPanes;b.each(d,function(a,e){function g(a){return C(l.css.paddingBottom,
parseInt(a.css("marginBottom"),10)||0)}function d(){var a=m[e].contentIgnoreSelector,a=i.nextAll().not(a||":lt(0)"),b=a.filter(":visible"),c=b.filter(":last");p={top:i[0].offsetTop,height:i.outerHeight(),numFooters:a.length,hiddenFooters:a.length-b.length,spaceBelow:0};p.spaceAbove=p.top;p.bottom=p.top+p.height;p.spaceBelow=c.length?c[0].offsetTop+c.outerHeight()-p.bottom+g(c):g(i)}var f=u[e],i=N[e],t=m[e],l=o[e],p=l.content;if(!f||!i||!f.is(":visible"))return!0;if(!i.length&&(Ja(e,!1),!i))return;
if(!1!==z("onsizecontent_start",e)){if(!l.isMoving&&!l.isResizing||t.liveContentResizing||c||void 0==p.top)d(),0<p.hiddenFooters&&"hidden"===f.css("overflow")&&(f.css("overflow","visible"),d(),f.css("overflow","hidden"));f=l.innerHeight-(p.spaceAbove-l.css.paddingTop)-(p.spaceBelow-l.css.paddingBottom);if(!i.is(":visible")||p.height!=f){var r=i,t=r;aa(r)?t=u[r]:r.jquery||(t=b(r));r=y(t,f);t.css({height:r,visibility:"visible"});0<r&&0<t.innerWidth()?t.data("autoHidden")&&(t.show().data("autoHidden",
!1),h.mozilla||t.css(j.hidden).css(j.visible)):!t.data("autoHidden")&&t.hide().data("autoHidden",!0);p.height=f}o.initialized&&z("onsizecontent_end",e)}})}},ha=function(a){a=(a=B.call(this,a))?a.split(","):j.borderPanes;b.each(a,function(a,c){var g=m[c],e=o[c],d=u[c],f=F[c],h=K[c],i;if(d&&f){var l=j[c].dir,w=e.isClosed?"_closed":"_open",A=g["spacing"+w],z=g["togglerAlign"+w],w=g["togglerLength"+w],B;if(0===A)f.hide();else{!e.noRoom&&!e.isHidden&&f.show();"horz"===l?(B=r.innerWidth,e.resizerLength=
B,d=b.layout.cssNum(d,"left"),f.css({width:p(f,B),height:y(f,A),left:-9999<d?d:r.insetLeft})):(B=d.outerHeight(),e.resizerLength=B,f.css({height:y(f,B),width:p(f,A),top:r.insetTop+ca("north",!0)}));U(g,f);if(h){if(0===w||e.isSliding&&g.hideTogglerOnSlide){h.hide();return}h.show();if(!(0<w)||"100%"===w||w>B)w=B,z=0;else if(aa(z))switch(z){case "top":case "left":z=0;break;case "bottom":case "right":z=B-w;break;default:z=qa((B-w)/2)}else d=parseInt(z,10),z=0<=z?d:B-w+d;if("horz"===l){var E=p(h,w);h.css({width:E,
height:y(h,A),left:z,top:0});h.children(".content").each(function(){i=b(this);i.css("marginLeft",qa((E-i.outerWidth())/2))})}else{var C=y(h,w);h.css({height:C,width:p(h,A),top:z,left:0});h.children(".content").each(function(){i=b(this);i.css("marginTop",qa((C-i.outerHeight())/2))})}U(0,h)}if(!o.initialized&&(g.initHidden||e.noRoom))f.hide(),h&&h.hide()}}})},db=function(a){if(E()){var b=B.call(this,a),a=K[b],c=m[b];a&&(c.closable=!0,a.bind("click."+I,function(a){a.stopPropagation();ma(b)}).css("visibility",
"visible").css("cursor","pointer").attr("title",o[b].isClosed?c.togglerTip_closed:c.togglerTip_open).show())}},Oa=function(a,c){b.layout.plugins.buttons&&b.each(o[a].pins,function(d,f){b.layout.buttons.setPinState(A,b(f),a,c)})},w=b(this).eq(0);if(!w.length)return m.showErrorMessages&&ba(l.errContainerMissing,!0),null;if(w.data("layoutContainer")&&w.data("layout"))return w.data("layout");var u={},N={},F={},K={},da=b([]),r=o.container,I=o.id,A={options:m,state:o,container:w,panes:u,contents:N,resizers:F,
togglers:K,hide:Ka,show:wa,toggle:ma,open:ia,close:Y,slideOpen:gb,slideClose:Pa,slideToggle:function(a){a=B.call(this,a);ma(a,!0)},setSizeLimits:T,_sizePane:Z,sizePane:ua,sizeContent:fa,swapPanes:function(a,c){function d(a){var c=u[a],e=N[a];return!c?!1:{pane:a,P:c?c[0]:!1,C:e?e[0]:!1,state:b.extend(!0,{},o[a]),options:b.extend(!0,{},m[a])}}function f(a,c){if(a){var e=a.P,d=a.C,g=a.pane,h=j[c],k=h.side.toLowerCase(),l="inset"+h.side,t=b.extend({},o[c]),v=m[c],q={resizerCursor:v.resizerCursor};b.each(["fxName",
"fxSpeed","fxSettings"],function(a,b){q[b+"_open"]=v[b+"_open"];q[b+"_close"]=v[b+"_close"];q[b+"_size"]=v[b+"_size"]});u[c]=b(e).data({layoutPane:A[c],layoutEdge:c}).css(j.hidden).css(h.cssReq);N[c]=d?b(d):!1;m[c]=b.extend({},a.options,q);o[c]=b.extend({},a.state);e.className=e.className.replace(RegExp(v.paneClass+"-"+g,"g"),v.paneClass+"-"+c);Ga(c);h.dir!=j[g].dir?(e=p[c]||0,T(c),e=C(e,o[c].minSize),ua(c,e,!0,!0)):F[c].css(k,r[l]+(o[c].isVisible?ca(c):0));a.state.isVisible&&!t.isVisible?Ma(c,!0):
(Na(c),ea(c,!0));a=null}}if(E()){var e=B.call(this,a);o[e].edge=c;o[c].edge=e;if(!1===z("onswap_start",e)||!1===z("onswap_start",c))o[e].edge=e,o[c].edge=c;else{var h=d(e),l=d(c),p={};p[e]=h?h.state.size:0;p[c]=l?l.state.size:0;u[e]=!1;u[c]=!1;o[e]={};o[c]={};K[e]&&K[e].remove();K[c]&&K[c].remove();F[e]&&F[e].remove();F[c]&&F[c].remove();F[e]=F[c]=K[e]=K[c]=!1;f(h,c);f(l,e);h=l=p=null;u[e]&&u[e].css(j.visible);u[c]&&u[c].css(j.visible);ga();z("onswap_end",e);z("onswap_end",c)}}},initContent:Ja,addPane:$a,
removePane:Ia,createChildLayout:Ha,enableClosable:db,disableClosable:function(a,b){if(E()){var c=B.call(this,a),d=K[c];d&&(m[c].closable=!1,o[c].isClosed&&ia(c,!1,!0),d.unbind("."+I).css("visibility",b?"hidden":"visible").css("cursor","default").attr("title",""))}},enableSlidable:function(a){if(E()){var a=B.call(this,a),b=F[a];b&&b.data("draggable")&&(m[a].slidable=!0,s.isClosed&&ea(a,!0))}},disableSlidable:function(a){if(E()){var a=B.call(this,a),b=F[a];b&&(m[a].slidable=!1,o[a].isSliding?Y(a,!1,
!0):(ea(a,!1),b.css("cursor","default").attr("title",""),U(null,b[0])))}},enableResizable:function(a){if(E()){var a=B.call(this,a),b=F[a],c=m[a];b&&b.data("draggable")&&(c.resizable=!0,b.draggable("enable"),o[a].isClosed||b.css("cursor",c.resizerCursor).attr("title",c.resizerTip))}},disableResizable:function(a){if(E()){var a=B.call(this,a),b=F[a];b&&b.data("draggable")&&(m[a].resizable=!1,b.draggable("disable").css("cursor","default").attr("title",""),U(null,b[0]))}},allowOverflow:d,resetOverflow:f,
destroy:function(a){b(window).unbind("."+I);b(document).unbind("."+I);w.clearQueue().removeData("layout").removeData("layoutContainer").removeClass(m.containerClass).unbind("."+I);da.remove();b.each(j.allPanes,function(b,c){Ia(c,!1,!0,a)});w.data("layoutCSS")&&!w.data("layoutRole")&&w.css(w.data("layoutCSS")).removeData("layoutCSS");"BODY"===r.tagName&&(w=b("html")).data("layoutCSS")&&w.css(w.data("layoutCSS")).removeData("layoutCSS");la(A,b.layout.onDestroy);bb();for(n in A)n.match(/^(container|options)$/)||
delete A[n];A.destroyed=!0;return A},initPanes:E,resizeAll:ga,runCallbacks:z,hasParentLayout:!1,children:P,north:!1,south:!1,west:!1,east:!1,center:!1},Qa;var R,Ra,J,ya,$,ja,S,a=b.layout.transformData(a),a=b.layout.backwardCompatibility.renameAllOptions(a);if(!b.isEmptyObject(a.panes)){R=b.layout.optionsMap.noDefault;$=0;for(ja=R.length;$<ja;$++)J=R[$],delete a.panes[J];R=b.layout.optionsMap.layout;$=0;for(ja=R.length;$<ja;$++)J=R[$],delete a.panes[J]}R=b.layout.optionsMap.layout;var qb=b.layout.config.optionRootKeys;
for(J in a)ya=a[J],0>b.inArray(J,qb)&&0>b.inArray(J,R)&&(a.panes[J]||(a.panes[J]=b.isPlainObject(ya)?b.extend(!0,{},ya):ya),delete a[J]);b.extend(!0,m,a);b.each(j.allPanes,function(c,d){j[d]=b.extend(!0,{},j.panes,j[d]);Ra=m.panes;S=m[d];if("center"===d){R=b.layout.optionsMap.center;c=0;for(ja=R.length;c<ja;c++)if(J=R[c],!a.center[J]&&(a.panes[J]||!S[J]))S[J]=Ra[J]}else{S=m[d]=b.extend({},Ra,S);var f=m[d],h=m.panes;f.fxSettings||(f.fxSettings={});h.fxSettings||(h.fxSettings={});b.each(["_open","_close",
"_size"],function(a,c){var g="fxName"+c,j="fxSpeed"+c,i="fxSettings"+c,l=f[g]=f[g]||h[g]||f.fxName||h.fxName||"none";if(l==="none"||!b.effects||!b.effects[l]||!m.effects[l])l=f[g]="none";l=m.effects[l]||{};g=l.all||null;l=l[d]||null;f[j]=f[j]||h[j]||f.fxSpeed||h.fxSpeed||null;f[i]=b.extend({},g,l,h.fxSettings,f.fxSettings,h[i],f[i])});delete f.fxName;delete f.fxSpeed;delete f.fxSettings;S.resizerClass||(S.resizerClass="ui-layout-resizer");S.togglerClass||(S.togglerClass="ui-layout-toggler")}S.paneClass||
(S.paneClass="ui-layout-pane")});var za=a.zIndex,oa=m.zIndexes;0<za&&(oa.pane_normal=za,oa.content_mask=C(za+1,oa.content_mask),oa.resizer_normal=C(za+2,oa.resizer_normal));delete m.panes;var rb=m;o.creatingLayout=!0;la(A,b.layout.onCreate);if(!1===z("onload_start"))Qa="cancel";else{var Sa=w[0],hb=r.tagName=Sa.tagName,ib=r.id=Sa.id,jb=r.className=Sa.className,pa=m,Aa=pa.name,kb="BODY"===hb,ka={},Ta=w.data("parentLayout"),Ua=w.data("layoutEdge"),lb=Ta&&Ua;r.selector=w.selector.split(".slice")[0];r.ref=
(pa.name?pa.name+" layout / ":"")+hb+(ib?"#"+ib:jb?".["+jb+"]":"");w.data({layout:A,layoutContainer:I}).addClass(pa.containerClass);var mb={destroy:"",initPanes:"",resizeAll:"resizeAll",resize:"resizeAll"};for(Aa in mb)w.bind("layout"+Aa.toLowerCase()+"."+I,A[mb[Aa]||Aa]);lb&&(A.hasParentLayout=!0,Ta[Ua].child=Ta.children[Ua]=w.data("layout"));if(!w.data("layoutCSS")){if(kb){var ka=b.extend(O(w,"overflow,position,margin,padding,border"),{height:w.css("height"),overflow:w.css("overflow"),overflowX:w.css("overflowX"),
overflowY:w.css("overflowY")}),Ba=b("html");Ba.data("layoutCSS",{height:"auto",overflow:Ba.css("overflow"),overflowX:Ba.css("overflowX"),overflowY:Ba.css("overflowY")})}else ka=O(w,"overflow,position,margin,padding,border,top,bottom,left,right,width,height,overflow,overflowX,overflowY");w.data("layoutCSS",ka)}try{if(kb)b("html").css({height:"100%",overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}),b("body").css({position:"relative",height:"100%",overflow:"hidden",overflowX:"hidden",overflowY:"hidden",
margin:0,padding:0,border:"none"}),b.extend(r,L(w));else{var ka={overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},nb=w.css("position");w.css("height");if(!lb&&(!nb||!nb.match(/fixed|absolute|relative/)))ka.position="relative";w.css(ka);w.is(":visible")&&(b.extend(r,L(w)),pa.showErrorMessages&&1>r.innerHeight&&ba(l.errContainerHeight.replace(/CONTAINER/,r.ref),!0))}}catch(sb){}cb();b(window).bind("unload."+I,bb);la(A,b.layout.onLoad);rb.initPanes&&sa();delete o.creatingLayout;Qa=o.initialized}return"cancel"===
Qa?null:A};b.ui||(b.ui={});b.ui.cookie={acceptsCookies:!!navigator.cookieEnabled,read:function(a){for(var c=document.cookie,c=c?c.split(";"):[],d,f=0,h=c.length;f<h;f++){d=b.trim(c[f]).split("=");if(d[0]==a)return decodeURIComponent(d[1])}return null},write:function(a,b,d){var f="",h="",l=false,d=d||{},j=d.expires;if(j&&j.toUTCString)h=j;else if(j===null||typeof j==="number"){h=new Date;if(j>0)h.setDate(h.getDate()+j);else{h.setFullYear(1970);l=true}}h&&(f=f+(";expires="+h.toUTCString()));d.path&&
(f=f+(";path="+d.path));d.domain&&(f=f+(";domain="+d.domain));d.secure&&(f=f+";secure");document.cookie=a+"="+(l?"":encodeURIComponent(b))+f},clear:function(a){b.ui.cookie.write(a,"",{expires:-1})}};b.cookie||(b.cookie=function(a,c,d){var f=b.ui.cookie;if(c===null)f.clear(a);else{if(c===void 0)return f.read(a);f.write(a,c,d)}});b.layout.plugins.stateManagement=!0;b.layout.config.optionRootKeys.push("stateManagement");b.layout.defaults.stateManagement={enabled:!1,autoSave:!0,autoLoad:!0,stateKeys:"north.size,south.size,east.size,west.size,north.isClosed,south.isClosed,east.isClosed,west.isClosed,north.isHidden,south.isHidden,east.isHidden,west.isHidden",
cookie:{name:"",domain:"",path:"",expires:"",secure:!1}};b.layout.optionsMap.layout.push("stateManagement");b.layout.state={saveCookie:function(a,c,d){var f=a.options,h=f.stateManagement,d=b.extend(true,{},h.cookie,d||null),a=a.state.stateData=a.readState(c||h.stateKeys);b.ui.cookie.write(d.name||f.name||"Layout",b.layout.state.encodeJSON(a),d);return b.extend(true,{},a)},deleteCookie:function(a){a=a.options;b.ui.cookie.clear(a.stateManagement.cookie.name||a.name||"Layout")},readCookie:function(a){a=
a.options;return(a=b.ui.cookie.read(a.stateManagement.cookie.name||a.name||"Layout"))?b.layout.state.decodeJSON(a):{}},loadCookie:function(a){var c=b.layout.state.readCookie(a);if(c){a.state.stateData=b.extend(true,{},c);a.loadState(c)}return c},loadState:function(a,c,d){c=b.layout.transformData(c);if(!b.isEmptyObject(c)){b.extend(true,a.options,c);if(a.state.initialized){var f,h,l,j,p,y=d===false;b.each(b.layout.config.borderPanes,function(b,d){state=a.state[d];h=c[d];if(typeof h=="object"){l=h.size;
p=h.initClosed;j=h.initHidden;(f=state.isVisible)||a.sizePane(d,l,false,false);j===true?a.hide(d,y):p===false?a.open(d,false,y):p===true?a.close(d,false,y):j===false&&a.show(d,false,y);f&&a.sizePane(d,l,false,y)}})}}},readState:function(a,c){var d={},f={isClosed:"initClosed",isHidden:"initHidden"},h=a.state,l=b.layout.config.allPanes,j,p,y;if(!c)c=a.options.stateManagement.stateKeys;b.isArray(c)&&(c=c.join(","));for(var c=c.replace(/__/g,".").split(","),C=0,G=c.length;C<G;C++){j=c[C].split(".");p=
j[0];j=j[1];if(!(b.inArray(p,l)<0)){y=h[p][j];if(y!=void 0){j=="isClosed"&&h[p].isSliding&&(y=true);(d[p]||(d[p]={}))[f[j]?f[j]:j]=y}}}return d},encodeJSON:function(a){function b(a){var f=[],h=0,l,j,p;for(l in a){j=a[l];p=typeof j;p=="string"?j='"'+j+'"':p=="object"&&(j=b(j));f[h++]='"'+l+'":'+j}return"{"+f.join(",")+"}"}return b(a)},decodeJSON:function(a){try{return b.parseJSON?b.parseJSON(a):window.eval("("+a+")")||{}}catch(c){return{}}},_create:function(a){var c=b.layout.state;b.extend(a,{readCookie:function(){return c.readCookie(a)},
deleteCookie:function(){c.deleteCookie(a)},saveCookie:function(b,d){return c.saveCookie(a,b,d)},loadCookie:function(){return c.loadCookie(a)},loadState:function(b,d){c.loadState(a,b,d)},readState:function(b){return c.readState(a,b)},encodeJSON:c.encodeJSON,decodeJSON:c.decodeJSON});a.state.stateData={};var d=a.options.stateManagement;if(d.enabled)d.autoLoad?a.loadCookie():a.state.stateData=a.readCookie()},_unload:function(a){var b=a.options.stateManagement;if(b.enabled)b.autoSave?a.saveCookie():a.state.stateData=
a.readState()}};b.layout.onCreate.push(b.layout.state._create);b.layout.onUnload.push(b.layout.state._unload);b.layout.plugins.buttons=!0;b.layout.defaults.autoBindCustomButtons=!1;b.layout.optionsMap.layout.push("autoBindCustomButtons");G=b.layout.language;b.layout.buttons={init:function(a){var c=a.options.name||"",d;b.each(["toggle","open","close","pin","toggle-slide","open-slide"],function(f,h){b.each(b.layout.config.borderPanes,function(f,j){b(".ui-layout-button-"+h+"-"+j).each(function(){d=b(this).data("layoutName")||
b(this).attr("layoutName");(d==void 0||d===c)&&a.bindButton(this,h,j)})})})},get:function(a,c,d,f){var h=b(c),a=a.options,l=a.showErrorMessages;if(h.length)if(b.inArray(d,b.layout.config.borderPanes)<0){l&&b.layout.msg(G.errButton+G.pane+": "+d,true);h=b("")}else{c=a[d].buttonClass+"-"+f;h.addClass(c+" "+c+"-"+d).data("layoutName",a.name)}else l&&b.layout.msg(G.errButton+G.selector+": "+c,true);return h},bind:function(a,c,d,f){var h=b.layout.buttons;switch(d.toLowerCase()){case "toggle":h.addToggle(a,
c,f);break;case "open":h.addOpen(a,c,f);break;case "close":h.addClose(a,c,f);break;case "pin":h.addPin(a,c,f);break;case "toggle-slide":h.addToggle(a,c,f,true);break;case "open-slide":h.addOpen(a,c,f,true)}return a},addToggle:function(a,c,d,f){b.layout.buttons.get(a,c,d,"toggle").click(function(b){a.toggle(d,!!f);b.stopPropagation()});return a},addOpen:function(a,c,d,f){b.layout.buttons.get(a,c,d,"open").attr("title",G.Open).click(function(b){a.open(d,!!f);b.stopPropagation()});return a},addClose:function(a,
c,d){b.layout.buttons.get(a,c,d,"close").attr("title",G.Close).click(function(b){a.close(d);b.stopPropagation()});return a},addPin:function(a,c,d){var f=b.layout.buttons,h=f.get(a,c,d,"pin");if(h.length){var l=a.state[d];h.click(function(c){f.setPinState(a,b(this),d,l.isSliding||l.isClosed);l.isSliding||l.isClosed?a.open(d):a.close(d);c.stopPropagation()});f.setPinState(a,h,d,!l.isClosed&&!l.isSliding);l.pins.push(c)}return a},setPinState:function(a,b,d,f){var h=b.attr("pin");if(!(h&&f===(h=="down"))){a=
a.options[d].buttonClass+"-pin";h=a+"-"+d;d=a+"-up "+h+"-up";a=a+"-down "+h+"-down";b.attr("pin",f?"down":"up").attr("title",f?G.Unpin:G.Pin).removeClass(f?d:a).addClass(f?a:d)}},syncPinBtns:function(a,c,d){b.each(state[c].pins,function(f,h){b.layout.buttons.setPinState(a,b(h),c,d)})},_load:function(a){var c=b.layout.buttons;b.extend(a,{bindButton:function(b,d,l){return c.bind(a,b,d,l)},addToggleBtn:function(b,d,l){return c.addToggle(a,b,d,l)},addOpenBtn:function(b,d,l){return c.addOpen(a,b,d,l)},
addCloseBtn:function(b,d){return c.addClose(a,b,d)},addPinBtn:function(b,d){return c.addPin(a,b,d)}});for(var d=0;d<4;d++)a.state[b.layout.config.borderPanes[d]].pins=[];a.options.autoBindCustomButtons&&c.init(a)},_unload:function(){}};b.layout.onLoad.push(b.layout.buttons._load);b.layout.plugins.browserZoom=!0;b.layout.defaults.browserZoomCheckInterval=1E3;b.layout.optionsMap.layout.push("browserZoomCheckInterval");b.layout.browserZoom={_init:function(a){b.layout.browserZoom.ratio()!==false&&b.layout.browserZoom._setTimer(a)},
_setTimer:function(a){if(!a.destroyed){var c=a.options,d=a.state,f=a.hasParentLayout?5E3:Math.max(c.browserZoomCheckInterval,100);setTimeout(function(){if(!a.destroyed&&c.resizeWithWindow){var f=b.layout.browserZoom.ratio();if(f!==d.browserZoom){d.browserZoom=f;a.resizeAll()}b.layout.browserZoom._setTimer(a)}},f)}},ratio:function(){function a(a,b){return(parseInt(a,10)/parseInt(b,10)*100).toFixed()}var c=window,d=screen,f=document,h=f.documentElement||f.body,l=b.layout.browser,j=l.version,p,y,C;return l.msie&&
j>8||!l.msie?false:d.deviceXDPI?a(d.deviceXDPI,d.systemXDPI):l.webkit&&(p=f.body.getBoundingClientRect)?a(p.left-p.right,f.body.offsetWidth):l.webkit&&(y=c.outerWidth)?a(y,c.innerWidth):(y=d.width)&&(C=h.clientWidth)?a(y,C):false}};b.layout.onReady.push(b.layout.browserZoom._init)})(jQuery);
(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.5",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}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,
"border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c.style(this,h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c.style(this,
h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}});
c(function(){var a=document.createElement("div"),b=document.body;c.extend(a.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.appendChild(a).offsetHeight===100;b.removeChild(a).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,
d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)===
"_")return h;e?this.each(function(){var g=b.data(this,a);if(!g)throw"cannot call methods on "+a+" prior to initialization; attempted to call method '"+d+"'";if(!b.isFunction(g[d]))throw"no such method '"+d+"' for "+a+" widget instance";var i=g[d].apply(g,f);if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",
widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.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(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}b.each(d,function(f,h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",
false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.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};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.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";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,
b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&
a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+
Math.round((e-this.originalPageX)/b.grid[0])*b.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-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=
this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.5"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,"sortable");
if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;
c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=d(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var a=
d(this).data("draggable").options;d(a.iframeFix===true?"iframe":a.iframeFix).each(function(){d('<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(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;
if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!=
"HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-
b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=c.snapElements.length-1;h>=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i-e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<o&&
o<l+e){if(f.snapMode!="inner"){var p=Math.abs(j-o)<=e,q=Math.abs(l-m)<=e,r=Math.abs(i-n)<=e,s=Math.abs(k-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=
p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(j-m)<=e;q=Math.abs(l-o)<=e;r=Math.abs(i-g)<=e;s=Math.abs(k-n)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&&
(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.5"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;switch(c){case "fit":return i<=
e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=i&&e<=k||g>=i&&g<=k||e<i&&g>k);
default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!="none";if(c[f].visible){c[f].offset=
c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight};e=="mousedown"&&c[f]._activate.call(c[f],b)}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||a.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,b)}}});return c},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");
e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})}}})(jQuery);
(function(e){e.widget("ui.resizable",e.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 b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<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=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:
this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",
b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;
f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",
b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=
a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=l(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=l(b.width)&&a.minWidth&&a.minWidth>b.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,
k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),
c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=
this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+
a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,
arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,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}}});e.extend(e.ui.resizable,
{version:"1.8.5"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,
function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=
(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=
false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-
a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",
b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top",
"Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,
f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=
a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+
a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&
e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",
height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=
d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
(function(e){e.widget("ui.selectable",e.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=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.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=e("<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=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.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})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?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],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&&
!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d=
e.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}});e.extend(e.ui.selectable,{version:"1.8.5"})})(jQuery);
(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=
c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,
{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();
if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,
c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",
null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].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();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):
d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||
"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+
this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?
2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},
_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=
this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=
this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");
if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=
0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=
this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},
update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=
null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));
this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,
null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||
d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a==
"string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==
"absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
"relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),
10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=
this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+
this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?
g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==
f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",
f,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])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",
g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=
0}}this._storedCursor&&d("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(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});
d.extend(d.ui.sortable,{version:"1.8.5"})})(jQuery);
jQuery.effects||function(f,j){function l(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],16),
parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=r(b.elem,a);b.end=l(b.end);b.colorInit=
true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var m={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]},p=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=o(n.call(this)),q,u=e.attr("className");f.each(p,function(v,
i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?
f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.5",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==
null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});
c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c]||typeof c==
"boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,
a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=
e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+
b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/
2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*
a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;
return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,
a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","left"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,g);b.effects.removeWrapper(a);
c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","left"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/
3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);
b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery);
(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","left","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,c/2)}var h={};h[g.size]=
f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);
(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","left","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e=="show"?1:
0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
(function(j){j.effects.explode=function(a){return this.queue(function(){var c=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?j(this).is(":visible")?"hide":"show":a.options.mode;var b=j(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),i=b.outerHeight(true),e=0;e<c;e++)for(var f=
0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+
e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);
(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","left"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],10)/100*
f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&&
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration,
a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery);
(function(c){c.effects.puff=function(b){return this.queue(function(){var a=c(this),e=c.effects.setMode(a,b.options.mode||"hide"),g=parseInt(b.options.percent,10)||150,h=g/100,i={height:a.height(),width:a.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?g:100,from:e=="hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b.options,b.duration,b.callback);a.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var a=c(this),e=c.extend(true,{},b.options),g=c.effects.setMode(a,
b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:g=="hide"?0:100),i=b.options.direction||"both",f=b.options.origin;if(g!="effect"){e.origin=f||["middle","center"];e.restore=true}f={height:a.height(),width:a.width()};a.from=b.options.from||(g=="show"?{height:0,width:0}:f);h={y:i!="horizontal"?h/100:1,x:i!="vertical"?h/100:1};a.to={height:f.height*h.y,width:f.width*h.x};if(b.options.fade){if(g=="show"){a.from.opacity=0;a.to.opacity=1}if(g=="hide"){a.from.opacity=
1;a.to.opacity=0}}e.from=a.from;e.to=a.to;e.mode=g;a.effect("size",e,b.duration,b.callback);a.dequeue()})};c.effects.size=function(b){return this.queue(function(){var a=c(this),e=["position","top","left","width","height","overflow","opacity"],g=["position","top","left","overflow","opacity"],h=["width","height","overflow"],i=["fontSize"],f=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=c.effects.setMode(a,
b.options.mode||"effect"),n=b.options.restore||false,m=b.options.scale||"both",l=b.options.origin,j={height:a.height(),width:a.width()};a.from=b.options.from||j;a.to=b.options.to||j;if(l){l=c.effects.getBaseline(l,j);a.from.top=(j.height-a.from.height)*l.y;a.from.left=(j.width-a.from.width)*l.x;a.to.top=(j.height-a.to.height)*l.y;a.to.left=(j.width-a.to.width)*l.x}var d={from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.height/j.height,x:a.to.width/j.width}};if(m=="box"||m=="both"){if(d.from.y!=
d.to.y){e=e.concat(f);a.from=c.effects.setTransition(a,f,d.from.y,a.from);a.to=c.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=d.to.x){e=e.concat(k);a.from=c.effects.setTransition(a,k,d.from.x,a.from);a.to=c.effects.setTransition(a,k,d.to.x,a.to)}}if(m=="content"||m=="both")if(d.from.y!=d.to.y){e=e.concat(i);a.from=c.effects.setTransition(a,i,d.from.y,a.from);a.to=c.effects.setTransition(a,i,d.to.y,a.to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);a.css("overflow","hidden").css(a.from);
if(m=="content"||m=="both"){f=f.concat(["marginTop","marginBottom"]).concat(i);k=k.concat(["marginLeft","marginRight"]);h=e.concat(f).concat(k);a.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,h);var o={height:child.height(),width:child.width()};child.from={height:o.height*d.from.y,width:o.width*d.from.x};child.to={height:o.height*d.to.y,width:o.width*d.to.x};if(d.from.y!=d.to.y){child.from=c.effects.setTransition(child,f,d.from.y,child.from);child.to=c.effects.setTransition(child,
f,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=c.effects.setTransition(child,k,d.from.x,child.from);child.to=c.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.animate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a.to.opacity===0&&a.css("opacity",a.from.opacity);p=="hide"&&a.hide();c.effects.restore(a,n?e:g);c.effects.removeWrapper(a);b.callback&&
b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
(function(d){d.effects.shake=function(a){return this.queue(function(){var b=d(this),j=["position","top","left"];d.effects.setMode(b,a.options.mode||"effect");var c=a.options.direction||"left",e=a.options.distance||20,l=a.options.times||3,f=a.duration||a.options.duration||140;d.effects.save(b,j);b.show();d.effects.createWrapper(b);var g=c=="up"||c=="down"?"top":"left",h=c=="up"||c=="left"?"pos":"neg";c={};var i={},k={};c[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=(h=="pos"?"-=":"+=")+
e*2;b.animate(c,f,a.options.easing);for(e=1;e<l;e++)b.animate(i,f,a.options.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effects.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","left"],e=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(e=="show")a.css(f,b=="pos"?-g:g);var i={};i[f]=(e=="show"?b=="pos"?
"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);
b.dequeue()})})}})(jQuery);
(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");a.headers=
a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var f=d.closest(".ui-accordion-header");a.active=f.length?f:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",function(g){return a._keydown(g)}).next().attr("role",
"tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(g){a._clickHandler.call(a,g,this);g.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);
this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,f=this.headers.index(a.target),g=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:g=this.headers[(f+1)%d];break;case b.LEFT:case b.UP:g=this.headers[(f-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
a.next().addClass("ui-accordion-content-active")}h=a.next();f=this.active.next();g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):h,oldContent:f};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(h,f,g,b,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},h=this.active=c([]);this._toggle(h,f,g)}},_toggle:function(a,b,d,f,g){var h=this,e=h.options;h.toShow=a;h.toHide=b;h.data=d;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data);h.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&f?{toShow:c([]),toHide:b,complete:j,
down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;f=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!f[k]&&!c.easing[k])k="slide";f[k]||(f[k]=function(l){this.slide(l,{easing:k,duration:i||700})});
f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.5",animations:{slide:function(a,
b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),f=0,g={},h={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){h[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);g[i]={value:j[1],
unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",
paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
(function(e){e.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var a=this,b=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(c){if(!a.options.disabled){var d=e.ui.keyCode;switch(c.keyCode){case d.PAGE_UP:a._move("previousPage",
c);break;case d.PAGE_DOWN:a._move("nextPage",c);break;case d.UP:a._move("previous",c);c.preventDefault();break;case d.DOWN:a._move("next",c);c.preventDefault();break;case d.ENTER:case d.NUMPAD_ENTER:a.menu.element.is(":visible")&&c.preventDefault();case d.TAB:if(!a.menu.active)return;a.menu.select(c);break;case d.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);
break}}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=e("<ul></ul>").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",b)[0]).mousedown(function(c){var d=a.menu.element[0];
c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();
a.previous=f}if(false!==a._trigger("select",c,{item:d})){a.term=d.value;a.element.val(d.value)}a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.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();e.Widget.prototype.destroy.call(this)},_setOption:function(a,b){e.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(e(b||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var a=this,b,c;if(e.isArray(this.options.source)){b=this.options.source;this.source=function(d,f){f(e.ui.autocomplete.filter(b,d.term))}}else if(typeof this.options.source==="string"){c=this.options.source;this.source=
function(d,f){a.xhr&&a.xhr.abort();a.xhr=e.getJSON(c,d,function(g,i,h){h===a.xhr&&f(g);a.xhr=null})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(a)},_search:function(a){this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(a.length){a=
this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",a);this.menu.element.hide();this.menu.deactivate()}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return e.map(a,function(b){if(typeof b===
"string")return{label:b,value:b};return e.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1),c;this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(e.extend({of:this.element},this.options.position));a=b.width("").outerWidth();c=this.element.outerWidth();b.outerWidth(Math.max(a,c))},_renderMenu:function(a,b){var c=this;e.each(b,function(d,f){c._renderItem(a,f)})},
_renderItem:function(a,b){return e("<li></li>").data("item.autocomplete",b).append(e("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},
filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||d)})}})})(jQuery);
(function(e){e.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(b){if(e(b.target).closest(".ui-menu-item a").length){b.preventDefault();a.select(b)}});this.refresh()},refresh:function(){var a=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(b){a.activate(b,e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>=f&&this.element.attr("scrollTop",d+c-f+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:b})},
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0);
a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active||
this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(":last"));else{var b=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var d=e(this).offset().top-b+c-e(this).height();return d<10&&d>-10});result.length||(result=this.element.children(":first"));this.activate(a,result)}else this.activate(a,this.element.children(!this.active||this.first()?":last":":first"))},
hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);
(function(a){var g,i=function(b){a(":ui-button",b.target.form).each(function(){var c=a(this).data("button");setTimeout(function(){c.refresh()},1)})},h=function(b){var c=b.name,d=b.form,e=a([]);if(c)e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form});return e};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
i);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var b=this,c=this.options,d=this.type==="checkbox"||this.type==="radio",e="ui-state-hover"+(!d?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
function(){if(!c.disabled){a(this).addClass("ui-state-hover");this===g&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||a(this).removeClass(e)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});d&&this.element.bind("change.button",function(){b.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.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(c.disabled)return false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var f=b.element[0];h(f).not(f).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;a(this).addClass("ui-state-active");
g=this;a(document).one("mouseup",function(){g=null})}).bind("mouseup.button",function(){if(c.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(f){if(c.disabled)return false;if(f.keyCode==a.ui.keyCode.SPACE||f.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(f){f.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
c.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var 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-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")c?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")h(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-primary ui-button-text-icon-secondary ui-button-text-only"),
c=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary;if(d.primary||d.secondary){b.addClass("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>");d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>");if(!this.options.text){b.addClass(e?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
this.hasTitle||b.attr("title",c)}}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,c){b==="disabled"&&this.buttons.button("option",b,c);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(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().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(d,G){function L(){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};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function E(a,b){d.extend(a,
b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=
f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&
b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==
""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,
c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),
true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor==
Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=
d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;
for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&
this._hideDatepicker();var h=this._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&
!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass,b.dpDiv).add(d("td."+d.datepicker._currentClass,b.dpDiv));c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();
return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||
a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,
a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));
var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);return a.ctrlKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||
a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);
d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&
d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=d.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,
h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),
k=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);)a=a[b?"previousSibling":"nextSibling"];
a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():
"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&
!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;
b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=
this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=
d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,
"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b==
"object"?b.toString():b+"";if(b=="")return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;return p},m=function(p){o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"?4:p=="o"?
3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,w,H){p=o(p)?H:w;for(w=0;w<p.length;w++)if(b.substr(s,p[w].length).toLowerCase()==p[w].toLowerCase()){s+=p[w].length;return w+1}throw"Unknown name at position "+s;},r=function(){if(b.charAt(s)!=a.charAt(z))throw"Unexpected literal at position "+s;s++},s=0,z=0;z<a.length;z++)if(j)if(a.charAt(z)=="'"&&!o("'"))j=false;else r();else switch(a.charAt(z)){case "d":l=m("d");
break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":k=m("m");break;case "M":k=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();k=v.getMonth()+1;l=v.getDate();break;case "'":if(o("'"))r();else j=true;break;default:r()}if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>
-1){k=1;l=u;do{e=this._getDaysInMonth(c,k-1);if(l<=e)break;k++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,k-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*
60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=j+1<a.length&&a.charAt(j+1)==o)&&j++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},k=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b)for(var j=0;j<a.length;j++)if(u)if(a.charAt(j)==
"'"&&!i("'"))u=false;else l+=a.charAt(j);else switch(a.charAt(j)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=k("D",b.getDay(),e,f);break;case "o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=k("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+=
"'";else u=true;break;default:l+=a.charAt(j)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]},
_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,
this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,k=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=u.exec(h);j;){switch(j[2]||"d"){case "d":case "D":g+=
parseInt(j[1],10);break;case "w":case "W":g+=parseInt(j[1],10)*7;break;case "m":case "M":l+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break;case "y":case "Y":k+=parseInt(j[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(k,l));break}j=u.exec(h)}return new Date(k,l,g)};if(b=(b=b==null?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):b)&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},
_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?
"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k=
this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=j&&n<j?j:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,
"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+k+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+
n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+k+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+
(c?"w":"e")+'">'+r+"</span></a>";k=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
y+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;k=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),I="",C=0;C<i[0];C++){for(var N=
"",D=0;D<i[1];D++){var J=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";if(l){x+='<div class="ui-datepicker-group';if(i[1]>1)switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?
f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var A=k?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=(t+h)%7;A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}x+=A+"</tr></thead><tbody>";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
A);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O<A;O++){x+="<tr>";var P=!k?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&q<j||o&&q>o;P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==J.getTime()&&g==a.selectedMonth&&
a._keyEvent||M.getTime()==q.getTime()&&M.getTime()==J.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!w?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||w)&&F[2]?' title="'+F[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!w?"&#xa0;":K?'<span class="ui-state-default">'+q.getDate()+
"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+"</tr>"}g++;if(g>11){g=0;m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");N+=x}I+=N}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='<div class="ui-datepicker-title">',o="";if(h||!k)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+
a.id+"');\">";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(j+=o+(h||!(k&&l)?"&#xa0;":""));if(h||!l)j+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,
i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(j+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++)j+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";j+="</select>"}j+=this._get(a,"yearSuffix");if(u)j+=(h||!(k&&l)?"&#xa0;":"")+o;j+="</div>";return j},_adjustInstDate:function(a,b,c){var e=
a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,
"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);
c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,
"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=
function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));
return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new L;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.5";window["DP_jQuery_"+y]=d})(jQuery);
(function(c,j){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");
if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",f=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog",
"aria-labelledby":f}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var e=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);
return false}).appendTo(e);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id",f).html(d).prependTo(e);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;e.find("*").add(e).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&
g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");
b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==b.uiDialog[0])d=Math.max(d,c(this).css("z-index"))});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,f=d.options;if(f.modal&&!a||!f.stack&&!f.modal)return d._trigger("focus",b);if(f.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=
f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show);
a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,
f=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(f);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(e,h){h=c.isFunction(h)?{click:h,text:e}:h;e=c("<button></button>",h).unbind("click").click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&&e.button()});f.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(e){return{position:e.position,
offset:e.offset}}var b=this,d=b.options,f=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,a(h))},drag:function(e,h){b._trigger("drag",e,a(h))},stop:function(e,h){d.position=[h.position.left-f.scrollLeft(),h.position.top-f.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);
b._trigger("dragStop",e,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}a=a===j?this.options.resizable:a;var d=this,f=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(),
handles:a,start:function(e,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",e,b(h))},resize:function(e,h){d._trigger("resize",e,b(h))},stop:function(e,h){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();d._trigger("resizeStop",e,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,
a.height)},_position:function(a){var b=[],d=[0,0],f;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,e){if(+b[g]===b[g]){d[g]=b[g];b[g]=e}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a);
f||this.uiDialog.hide()},_setOption:function(a,b){var d=this,f=d.uiDialog,g=f.is(":data(resizable)"),e=false;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);e=true;break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":f.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":b?
d._makeDraggable():f.draggable("destroy");break;case "height":e=true;break;case "maxHeight":g&&f.resizable("option","maxHeight",b);e=true;break;case "maxWidth":g&&f.resizable("option","maxWidth",b);e=true;break;case "minHeight":g&&f.resizable("option","minHeight",b);e=true;break;case "minWidth":g&&f.resizable("option","minWidth",b);e=true;break;case "position":d._position(b);break;case "resizable":g&&!b&&f.resizable("destroy");g&&typeof b==="string"&&f.resizable("option","handles",b);!g&&b!==false&&
d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();this.element.css(a.height==="auto"?{minHeight:Math.max(a.minHeight-b,0),height:c.support.minHeight?"auto":Math.max(a.minHeight-
b,0)}:{minHeight:0,height:Math.max(a.height-b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=
(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a,
b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<
b?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.scrollTo&&d.document){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j=
{top:b.of.pageY,left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/
2;if(b.at[1]==="bottom")j.top+=k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+parseInt(c.curCSS(this,"marginRight",true))||0,w=m+q+parseInt(c.curCSS(this,"marginBottom",true))||0,i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]===
"center")i.top-=m/2;i.left=parseInt(i.left);i.top=parseInt(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();
b.left=d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];
b.left+=a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=
c(b),g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
(function(b,c){b.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=b("<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();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.max,Math.max(this.min,a))},_refreshValue:function(){var a=this.value();this.valueDiv.toggleClass("ui-corner-right",
a===this.max).width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.5"})})(jQuery);
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=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");b.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=d([]);if(b.range){if(b.range===true){this.range=d("<div></div>");if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}else this.range=d("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(b.range==="min"||b.range==="max")this.range.addClass("ui-slider-range-"+b.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(b.values&&b.values.length)for(;d(".ui-slider-handle",this.element).length<b.values.length;)d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".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(c){c.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();
else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!a.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e=
false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");h=a._start(c,f);if(h===false)return}break}i=a.options.step;h=a.options.values&&a.options.values.length?g=a.values(f):g=a.value();switch(c.keyCode){case d.ui.keyCode.HOME:g=a._valueMin();break;case d.ui.keyCode.END:g=a._valueMax();break;case d.ui.keyCode.PAGE_UP:g=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h===
a._valueMax())return;g=a._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===a._valueMin())return;g=a._trimAlignValue(h-i);break}a._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,e,f,h,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(b.range===true&&this.values(1)===b.min){g+=1;f=d(this.handles[g])}if(this._start(a,
g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();b=f.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-f.width()/2,top:a.pageY-b.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var e;if(this.options.values&&this.options.values.length){e=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>e||b===1&&c<e))c=e;if(c!==this.values(b)){e=this.values();e[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});
a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=
this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return this._value()},values:function(a,b){var c,e,f;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;f<c.length;f+=1){c[f]=this._trimAlignValue(e[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):this.value();
else return this._values()},_setOption:function(a,b){var c,e=0;if(d.isArray(this.options.values))e=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){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(c=0;c<e;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];
return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<this._valueMin())return this._valueMin();if(a>this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=a%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
this.options.range,b=this.options,c=this,e=!this._animateOff?b.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({width:f-
g+"%"},{queue:false,duration:b.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:b.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},
b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.5"})})(jQuery);
(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.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(a,e){if(a=="selected")this.options.collapsible&&
e==this.options.selected||this.select(e);else{this.options[a]=e;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[a].concat(d.makeArray(arguments)))},_ui:function(a,e){return{tab:a,panel:e,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a=
d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))b.panels=b.panels.add(b._sanitizeSelector(i));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=b._tabId(f);f.href="#"+i;f=d("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(b.panels[g-1]||b.list);f.data("destroy.tabs",true)}b.panels=b.panels.add(f)}else c.disabled.push(g)});if(a){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(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(b._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return b.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
if(c.selected>=0&&this.anchors.length){this.panels.eq(c.selected).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");b.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[c.selected],b.panels[c.selected]))});this.load(c.selected)}d(window).bind("unload",function(){b.lis.add(b.anchors).unbind(".tabs");b.lis=b.anchors=b.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[c.collapsible?"addClass":
"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);a=0;for(var j;j=this.lis[a];a++)d(j)[d.inArray(a,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+g)};this.lis.bind("mouseover.tabs",
function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",function(){e(f,o);b._trigger("show",
null,b._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");b._trigger("show",null,b._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);b.element.dequeue("tabs")})}:function(g,f){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");b.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs",
function(){var g=this,f=d(g).closest("li"),i=b.panels.filter(":not(.ui-tabs-hide)"),l=d(b._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||b.panels.filter(":animated").length||b._trigger("select",null,b._ui(this,l[0]))===false){this.blur();return false}c.selected=b.anchors.index(this);b.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",
function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this));this.blur();return false}c.cookie&&b._cookie(c.selected,c.cookie);if(l.length){i.length&&b.element.queue("tabs",function(){s(g,i)});b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",
function(){return false})},_getIndex:function(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var a=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 e=d.data(this,"href.tabs");if(e)this.href=
e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(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")});a.cookie&&this._cookie(null,a.cookie);return this},add:function(a,e,b){if(b===p)b=this.anchors.length;
var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,e));a=!a.indexOf("#")?a.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=d("#"+a);j.length||(j=d(h.panelTemplate).attr("id",a).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(b>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[b]);
j.insertBefore(this.panels[b])}h.disabled=d.map(h.disabled,function(k){return k>=b?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[b],this.panels[b]));return this},remove:function(a){a=this._getIndex(a);var e=this.options,b=this.lis.eq(a).remove(),c=this.panels.eq(a).remove();
if(b.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=a}),function(h){return h>=a?--h:h});this._tabify();this._trigger("remove",null,this._ui(b.find("a")[0],c[0]));return this},enable:function(a){a=this._getIndex(a);var e=this.options;if(d.inArray(a,e.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(b){return b!=a});this._trigger("enable",null,
this._ui(this.anchors[a],this.panels[a]));return this}},disable:function(a){a=this._getIndex(a);var e=this.options;if(a!=e.selected){this.lis.eq(a).addClass("ui-state-disabled");e.disabled.push(a);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},
load:function(a){a=this._getIndex(a);var e=this,b=this.options,c=this.anchors.eq(a)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(a).addClass("ui-state-processing");if(b.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(b.spinner)}this.xhr=d.ajax(d.extend({},b.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();b.cache&&d.data(c,"cache.tabs",
true);e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.error(k,n,a,c)}catch(m){}}}));e.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(a,
e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.5"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(j){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var k=c.selected;b.select(++k<b.anchors.length?k:0)},a);j&&j.stopPropagation()});e=b._unrotate||(b._unrotate=!e?function(j){j.clientX&&b.rotate(null)}:
function(){t=c.selected;h()});if(a){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
(function(a){a.fn.dashboard=function(m){var k={};var f;var j;k.layout;k.element=this;k.id=this.attr("id");k.widgets={};k.widgetsToAdd={};k.widgetCategories={};k.initialized=false;k.serialize=function(){k.log("entering serialize function",1);var o='{"layout": "'+k.layout.id+'", "data" : [';var n=0;if(a("."+b.columnClass).length==0)k.log(b.columnClass+" class not found",5);a("."+b.columnClass).each(function(){a(this).children().each(function(){if(a(this).hasClass(b.widgetClass)){if(n>0)o+=",";o+=k.getWidget(a(this).attr("id")).serialize();
n++}})});o+="]}";return o};k.log=function(o,p){if(p>=b.debuglevel&&typeof console!="undefined"){var n="";if(p==1)n="INFO";if(p==2)n="EVENT";if(p==3)n="WARNING";if(p==5)n="ERROR";console.log(n+" - "+o)}};k.setLayout=function(n){if(n!=null)k.log("entering setLayout function with layout "+n.id,1);else k.log("entering setLayout function with layout null",1);k.layout=n;f.remove();if(k.layout!=null)if(typeof b.layoutClass!="undefined")this.element.find("."+b.layoutClass).addClass(k.layout.classname);else this.element.html(k.layout.html);
a("."+b.columnClass).sortable({connectWith:a("."+b.columnClass),opacity:b.opacity,handle:"."+b.widgetHeaderClass,over:function(o,p){a(this).addClass("selectedcolumn")},out:function(o,p){a(this).removeClass("selectedcolumn")},receive:function(p,q){var o=k.getWidget(q.item.attr("id"));o.column=e(a(this).attr("class"));k.log("dashboardStateChange event thrown for widget "+o.id,2);k.element.trigger("dashboardStateChange",{stateChange:"widgetMoved",widget:o});k.log("widgetDropped event thrown for widget "+
o.id,2);o.element.trigger("widgetDropped",{widget:o})},deactivate:function(p,q){k.log("Widget is dropped: check if the column is now empty.",1);var o=a(this).children().length;if(o==0){k.log("adding the empty text to the column",1);a(this).html('<div class="emptycolumn">'+b.emptyColumnHtml+"</div>")}else if(o==2)a(this).find(".emptycolumn").remove()},start:function(o,p){p.item.find("."+b.widgetTitleClass).addClass("noclick")},stop:function(o,p){setTimeout(function(){p.item.find("."+b.widgetTitleClass).removeClass("noclick")},
300)}});g();k.log("dashboardLayoutLoaded event thrown",2);k.element.trigger("dashboardLayoutLoaded")};function g(){k.log("entering fixSortableColumns function",1);a(".nonsortablecolumn").removeClass("nonsortablecolumn").addClass(b.columnClass);a("."+b.columnClass).filter(function(){return a(this).css("display")=="none"}).addClass("nonsortablecolumn").removeClass(b.columnClass)}function e(o){k.log("entering getColumnIdentifier function",1);var q;var p=o.split(" ");for(var n=0;n<p.length;n++)if(p[n].indexOf(b.columnPrefix)===
0)q=p[n];return q.replace(b.columnPrefix,"")}k.loadLayout=function(){k.log("entering loadLayout function",1);if(typeof b.json_data.url!="undefined"&&b.json_data.url.length>0){k.log("Getting JSON feed : "+b.json_data.url,1);a.getJSON(b.json_data.url,function(p){if(p==null){alert("Unable to get json. If you are using chrome: there is an issue with loading json with local files. It works on a server :-)",5);return}var q=p.result;var o=typeof k.layout!="undefined"?k.layout:c(q.layout);k.setLayout(o);
k.loadWidgets(q.data)})}else{var n=typeof k.layout!="undefined"?k.layout:c(json.layout);k.setLayout(n);k.loadWidgets(b.json_data.data)}};k.addWidget=function(r,p){k.log("entering addWidget function",1);var q=r.id;if(typeof k.widgets[q]!="undefined"&&a("#"+q).length>0){var n=a("#"+q);p=k.widgets[q].column;n.appendTo(p)}else{k.log("Applying template : "+b.widgetTemplate,1);if(a("#"+b.widgetTemplate).length==0)k.log('Template "'+b.widgetTemplate+" not found",5);var o=tmpl(a("#"+b.widgetTemplate).html(),
r);var n=a(o);n.appendTo(p);k.widgets[q]=h({id:q,element:n,column:r.column,url:typeof r.url!="undefined"?r.url:null,editurl:r.editurl,title:r.title,open:r.open,metadata:r.metadata})}k.log("widgetAdded event thrown for widget "+q,2);k.widgets[q].element.trigger("widgetAdded",{widget:k.widgets[q]});if(k.initialized){k.log("dashboardStateChange event thrown for widget "+q,2);k.element.trigger("dashboardStateChange",{stateChange:"widgetAdded",widget:n})}};k.loadWidgets=function(n){k.log("entering loadWidgets function",
1);k.element.find("."+b.columnClass).empty();a(n).each(function(){var o=this.column;k.addWidget(this,k.element.find("."+b.columnPrefix+o))});a("#tempdashboard").find("."+b.widgetClass).each(function(){var o=k.element.find("."+b.columnClass+":first");a(this).appendTo(o);k.getWidget(a(this).attr("id")).column=o.attr("id")});a("#tempdashboard").remove();a("."+b.columnClass).each(function(){if(a(this).children().length==0)a(this).html('<div class="emptycolumn">'+b.emptyColumnHtml+"</div>")});k.initialized=
true};k.init=function(){k.log("entering init function",1);k.loadLayout()};k.getWidget=function(o){k.log("entering getWidget function",1);var n=k.widgets[o];if(typeof n!="undefined")return n;else return null};var b=a.extend({},a.fn.dashboard.defaults,m);var l=a.extend({},a.fn.dashboard.defaults.addWidgetSettings,m.addWidgetSettings);var d=a.extend({},a.fn.dashboard.defaults.editLayoutSettings,m.editLayoutSettings);var f=a(b.loadingHtml).appendTo(k.element);function h(n){k.log("entering widget constructor",
1);n=a.extend({},a.fn.dashboard.widget.defaults,n);n.openContent=function(){n.element.find(".widgetOpen").hide();n.element.find(".widgetClose").show();k.log("entering openContent function",1);n.open=true;if(!n.loaded)if(this.url!=""&&this.url!=null&&typeof this.url!="undefined"){a(b.loadingHtml).appendTo(n.element.find("."+b.widgetContentClass));k.log("widgetShow event thrown for widget "+n.id,2);n.element.trigger("widgetShow",{widget:n});n.element.find("."+b.widgetContentClass).load(this.url,function(p,
o,q){if(o=="error")n.element.find("."+b.widgetContentClass).html(b.widgetNotFoundHtml);n.loaded=true;k.log("widgetLoaded event thrown for widget "+n.id,2);n.element.trigger("widgetLoaded",{widget:n})})}else{k.log("widgetShow event thrown for widget "+n.id,2);n.element.trigger("widgetShow",{widget:n});k.log("widgetLoaded event thrown",2);n.element.trigger("widgetLoaded",{widget:n})}else{k.log("widgetShow event thrown for widget "+n.id,2);n.element.trigger("widgetShow",{widget:n})}if(k.initialized){k.log("dashboardStateChange event thrown for widget "+
n.id,2);k.element.trigger("dashboardStateChange",{stateChange:"widgetOpened",widget:n})}};n.refreshContent=function(){k.log("entering refreshContent function",1);n.loaded=false;if(n.open)n.openContent()};n.setTitle=function(o){k.log("entering setTitle function",1);n.title=o;n.element.find("."+b.widgetTitleClass).html(o);if(k.initialized){k.log("dashboardStateChange event thrown for widget "+n.id,2);k.element.trigger("dashboardStateChange",{stateChange:"titleChanged",widget:n})}};n.closeContent=function(){k.log("entering closeContent function",
1);n.open=false;k.log("widgetHide event thrown for widget "+n.id,2);n.element.trigger("widgetHide",{widget:n});n.element.find(".widgetOpen").show();n.element.find(".widgetClose").hide();k.log("dashboardStateChange event thrown for widget "+n.id,2);k.element.trigger("dashboardStateChange",{stateChange:"widgetClosed",widget:n})};n.addMetadataValue=function(o,p){k.log("entering addMetadataValue function",1);if(typeof n.metadata=="undefined")n.metadata={};n.metadata[o]=p;k.log("dashboardStateChange event thrown for widget "+
n.id,2);k.element.trigger("dashboardStateChange",{stateChange:"metadataChanged",widget:n})};n.openMenu=function(){k.log("entering openMenu function",1);n.element.find("."+b.menuClass).show()};n.closeMenu=function(){k.log("entering closeMenu function",1);n.element.find("."+b.menuClass).hide()};n.remove=function(){k.log("entering remove function",1);n.element.remove();k.log("widgetDeleted event thrown for widget "+n.id,2);n.element.trigger("widgetDeleted",{widget:n});k.log("dashboardStateChange event thrown for widget "+
n.id,2);k.element.trigger("dashboardStateChange",{stateChange:"widgetRemoved",widget:n})};n.serialize=function(){k.log("entering serialize function",1);var q='{"title" : "'+n.title+'", "id" : "'+n.id+'", "column" : "'+n.column+'","editurl" : "'+n.editurl+'","open" : '+n.open+',"url" : "'+n.url+'"';if(typeof n.metadata!="undefined"){q+=',"metadata":{';var s=n.metadata;var o=0;for(var p in s){if(o>0)q+=",";q+='"'+p+'":"'+s[p]+'"';o++}q+="}"}q+="}";return q};n.openFullscreen=function(){k.log("entering openFullscreen function",
1);n.fullscreen=true;var p=a("."+b.columnClass);p.hide();var o=a('<ul id="fullscreen_'+k.id+'"></ul>');o.appendTo(k.element);n.element.parent().attr("id","placeholder");n.element.appendTo(o)};n.closeFullscreen=function(){k.log("entering closeFullscreen function",1);n.fullscreen=false;var o=a("#placeholder");n.element.appendTo(o);a("#fullscreen_"+k.id).remove();var p=a("."+b.columnClass);p.show()};n.openSettings=function(){k.log("entering openSettings function",1);n.element.trigger("editSettings",
{widget:n})};if(n.open)n.openContent();n.initialized=true;k.log("widgetInitialized event thrown",2);n.element.trigger("widgetInitialized",{widget:n});return n}function c(p){k.log("entering getLayout function",1);var n=null;var o=null;if(typeof b.layouts!="undefined")a.each(b.layouts,function(q,r){if(q==0)o=r;if(r.id==p)n=r});if(n==null)n=o;return n}a("#"+k.id+" .menutrigger").live("click",function(){k.log("widgetOpenMenu event thrown for widget "+h.id,2);var n=k.getWidget(a(this).closest("."+b.widgetClass).attr("id"));
n.element.trigger("widgetOpenMenu",{widget:n});return false});a("#"+k.id+" ."+b.widgetFullScreenClass).live("click",function(o){k.log("widgetCloseMenu event thrown for widget "+h.id,2);var n=k.getWidget(a(this).closest("."+b.widgetClass).attr("id"));n.element.trigger("widgetCloseMenu",{widget:n});if(n.fullscreen){k.log("widgetCloseFullScreen event thrown for widget "+n.id,2);n.element.trigger("widgetCloseFullScreen",{widget:n})}else{k.log("widgetOpenFullScreen event thrown for widget "+n.id,2);n.element.trigger("widgetOpenFullScreen",
{widget:n})}return false});a("#"+k.id+" .controls li").live("click",function(o){k.log("widgetCloseMenu event thrown for widget "+h.id,2);var n=k.getWidget(a(this).closest("."+b.widgetClass).attr("id"));n.element.trigger("widgetCloseMenu",{widget:n});k.log(a(this).attr("class")+" event thrown for widget "+h.id,2);var n=k.getWidget(a(this).closest("."+b.widgetClass).attr("id"));n.element.trigger(a(this).attr("class"),{widget:n});return false});a("#"+k.id+" ."+b.widgetClass).live("widgetCloseMenu",function(n,
p){k.log("Closing menu "+a(this).attr("id"),1);p.widget.closeMenu()});a("#"+k.id+" ."+b.widgetClass).live("widgetOpenMenu",function(n,p){k.log("Opening menu "+a(this).attr("id"),1);p.widget.openMenu()});a("#"+k.id+" ."+b.widgetClass).live("widgetDelete",function(n,p){if(confirm(b.deleteConfirmMessage)){k.log("Removing widget "+a(this).attr("id"),1);p.widget.remove()}});a("#"+k.id+" ."+b.widgetClass).live("widgetRefresh",function(n,p){p.widget.refreshContent()});a("#"+k.id+" ."+b.widgetClass).live("widgetSetTitle",
function(n,p){p.widget.setTitle(p.title)});a("#"+k.id+" ."+b.widgetClass).live("widgetClose",function(n,p){k.log("Closing widget "+a(this).attr("id"),1);p.widget.closeContent()});a("#"+k.id+" ."+b.widgetClass).live("widgetOpen",function(n,p){k.log("Opening widget "+a(this).attr("id"),1);p.widget.openContent()});a("#"+k.id+" ."+b.widgetClass).live("widgetShow",function(){a(this).find("."+b.widgetContentClass).show()});a("#"+k.id+" ."+b.widgetClass).live("widgetHide",function(){a(this).find("."+b.widgetContentClass).hide()});
a("#"+k.id+" ."+b.widgetClass).live("widgetAddMetadataValue",function(n,p){k.log("Changing metadata for widget "+a(this).attr("id")+", metadata name: "+p.name+", value: "+p.value,1);p.widget.addMetadataValue(p.name,p.value)});a("#"+k.id+" ."+b.widgetTitleClass).live("click",function(o){k.log("Click on the header detected for widget "+a(this).attr("id"),1);if(!a(this).hasClass("noclick")){var n=k.getWidget(a(this).closest("."+b.widgetClass).attr("id"));if(n.open){k.log("widgetClose event thrown for widget "+
n,2);n.element.trigger("widgetClose",{widget:n})}else{k.log("widgetOpen event thrown for widget "+n,2);n.element.trigger("widgetOpen",{widget:n})}}return false});a("body").click(function(){a("."+b.menuClass).hide()});a("#"+k.id+" ."+b.widgetClass).live("widgetOpenFullScreen",function(n,p){p.widget.openFullscreen()});a("."+b.widgetClass).live("widgetCloseFullScreen",function(n,p){p.widget.closeFullscreen()});a("#"+k.id+" ."+b.widgetClass).live("widgetEdit",function(n,p){p.widget.openSettings()});if(a("#"+
l.dialogId).length==0)k.log("Unable to find "+l.dialogId,5);a("#"+l.dialogId).dialog({autoOpen:false,height:514,width:750,modal:true,buttons:{Cancel:function(){a(this).dialog("close")}},close:function(){}});if(a("#"+d.dialogId).length==0)k.log("Unable to find "+d.dialogId,5);a("#"+d.dialogId).dialog({autoOpen:false,height:300,width:600,modal:true});a("."+d.openDialogClass).live("click",function(){k.log("dashboardOpenLayoutDialog event thrown",2);k.element.trigger("dashboardOpenLayoutDialog");return false});
k.element.live("dashboardOpenLayoutDialog",function(){k.log("Opening dialog "+d.dialogId,1);a("#"+d.dialogId).dialog("open");var n=a("#"+d.dialogId).find("."+d.layoutClass);n.empty();if(n.children().length==0){k.log("Number of layouts : "+b.layouts.length,1);a.each(b.layouts,function(o,p){k.log("Applying template : "+d.layoutTemplate,1);if(a("#"+d.layoutTemplate).length==0)k.log('Template "'+d.layoutTemplate+" not found",5);n.append(tmpl(a("#"+d.layoutTemplate).html(),p))})}a("."+d.selectLayoutClass).removeClass(d.selectedLayoutClass);
a("#"+k.layout.id).addClass(d.selectedLayoutClass);i()});k.element.live("dashboardStateChange",function(){if(typeof b.stateChangeUrl!="undefined"&&b.stateChangeUrl!=null&&b.stateChangeUrl!="")a.ajax({type:"POST",url:b.stateChangeUrl,data:{dashboard:k.element.attr("id"),settings:k.serialize()},success:function(n){if(n=="NOK"||n.indexOf("<response>NOK</response>")!=-1){k.log("dashboardSaveFailed event thrown",2);k.element.trigger("dashboardSaveFailed")}else{k.log("dashboardSuccessfulSaved event thrown",
2);k.element.trigger("dashboardSuccessfulSaved")}},error:function(n,p,o){k.log("dashboardSaveFailed event thrown",2);k.element.trigger("dashboardSaveFailed")},dataType:"text"})});k.element.live("dashboardCloseLayoutDialog",function(){a("#"+d.dialogId).dialog("close")});function i(){if(a("."+d.selectLayoutClass).length==0)k.log("Unable to find "+d.selectLayoutClass,5);a("."+d.selectLayoutClass).bind("click",function(q){var o=k.layout;k.log("dashboardCloseLayoutDialog event thrown",2);k.element.trigger("dashboardCloseLayoutDialog");
var p=c(a(this).attr("id"));k.layout=p;if(typeof b.layoutClass!="undefined"){k.element.find("."+b.layoutClass).removeClass(o.classname).addClass(p.classname);g();if(a("."+b.columnClass).length==0)k.log("Unable to find "+b.columnClass,5);k.element.find(".nonsortablecolumn").each(function(){a(this).children().appendTo(k.element.find("."+b.columnClass+":first"));a(".emptycolumn").remove();a("."+b.columnClass).each(function(){if(a(this).children().length==0)a(this).html('<div class="emptycolumn">'+b.emptyColumnHtml+
"</div>")})})}else{var n=a('<div style="display:none" id="tempdashboard"></div>');n.appendTo(a("body"));k.element.children().appendTo(n);k.init()}k.log("dashboardChangeLayout event thrown",2);k.element.trigger("dashboardLayoutChanged")});return false}a("."+l.selectCategoryClass).live("click",function(){k.log("addWidgetDialogSelectCategory event thrown",2);k.element.trigger("addWidgetDialogSelectCategory",{category:a(this)});return false});k.element.live("addWidgetDialogSelectCategory",function(o,
n){a("."+l.selectCategoryClass).removeClass(l.selectedCategoryClass);a("#"+l.dialogId).find("."+l.widgetClass).empty();a(n.category).addClass(l.selectedCategoryClass);url=k.widgetCategories[a(n.category).attr("id")];k.log("Getting JSON feed : "+url,1);a.getJSON(url,{cache:true},function(q){if(q.result.data==0)k.log("Empty data returned",3);var p=q.result.data;if(typeof q.result.data.length=="undefined")p=new Array(q.result.data);a.each(p,function(s,t){k.widgetsToAdd[t.id]=t;k.log("Applying template : "+
l.widgetTemplate,1);if(a("#"+l.widgetTemplate).length==0)k.log('Template "'+l.widgetTemplate+" not found",5);var r=tmpl(a("#"+l.widgetTemplate).html(),t);a("#"+l.dialogId).find("."+l.widgetClass).append(r)})});k.log("addWidgetDialogWidgetsLoaded event thrown",2);k.element.trigger("addWidgetDialogWidgetsLoaded")});a("."+l.addWidgetClass).live("click",function(){var n=k.widgetsToAdd[a(this).attr("id").replace("addwidget","")];k.log("dashboardAddWidget event thrown",2);k.element.trigger("dashboardAddWidget",
{widget:n});k.log("dashboardCloseWidgetDialog event thrown",2);k.element.trigger("dashboardCloseWidgetDialog");return false});a("."+l.openDialogClass).live("click",function(){k.log("dashboardOpenWidgetDialog event thrown",2);k.element.trigger("dashboardOpenWidgetDialog");return false});k.element.live("dashboardCloseWidgetDialog",function(){a("#"+l.dialogId).dialog("close")});k.element.live("dashboardOpenWidgetDialog",function(){a("#"+l.dialogId).find("."+l.categoryClass).empty();a("#"+l.dialogId).find("."+
l.widgetClass).empty();k.log("Opening dialog "+l.dialogId,1);a("#"+l.dialogId).dialog("open");k.log("Getting JSON feed : "+l.widgetDirectoryUrl,1);a.getJSON(l.widgetDirectoryUrl,function(n){if(n.category==0)k.log("Empty data returned",3);a.each(n.categories.category,function(p,q){k.widgetCategories[q.id]=q.url;k.log("Applying template : "+l.categoryTemplate,1);if(a("#"+l.categoryTemplate).length==0)k.log('Template "'+l.categoryTemplate+" not found",5);var o=tmpl(a("#"+l.categoryTemplate).html(),q);
a("#"+l.dialogId).find("."+l.categoryClass).append(o)});k.log("addWidgetDialogCategoriesLoaded event thrown",2);k.element.trigger("addWidgetDialogCategoriesLoaded");k.log("addWidgetDialogSelectCategory event thrown",2);k.element.trigger("addWidgetDialogSelectCategory",{category:a("#"+l.dialogId).find("."+l.categoryClass+">li:first")})})});return k};a.fn.dashboard.defaults={debuglevel:3,json_data:{},loadingHtml:'<div class="loading"><img alt="Loading, please wait" src="../assets/dash-lib/themes/default/loading.gif" /><p>Loading...</p></div>',
emptyColumnHtml:"Drag your widgets here",widgetTemplate:"widgettemplate",columnPrefix:"column-",opacity:"0.2",deleteConfirmMessage:"Are you sure you want to delete this widget?",widgetNotFoundHtml:"The content of this widget is not available anymore. You may remove this widget.",columnClass:"column",widgetClass:"widget",menuClass:"controls",widgetContentClass:"widgetcontent",widgetTitleClass:"widgettitle",widgetHeaderClass:"widgetheader",widgetFullScreenClass:"widgetopenfullscreen",iconsClass:"icons",
stateChangeUrl:"",addWidgetSettings:{openDialogClass:"openaddwidgetdialog",addWidgetClass:"addwidget",selectCategoryClass:"selectcategory",selectedCategoryClass:"selected",categoryClass:"categories",widgetClass:"widgets",dialogId:"addwidgetdialog",categoryTemplate:"categorytemplate",widgetTemplate:"addwidgettemplate"},editLayoutSettings:{dialogId:"editLayout",layoutClass:"layoutselection",selectLayoutClass:"layoutchoice",selectedLayoutClass:"selected",openDialogClass:"editlayout",layoutTemplate:"selectlayouttemplate"}};
a.fn.dashboard.widget={defaults:{open:true,fullscreen:false,loaded:false,url:"",metadata:{}}}})(jQuery);
(function(){var b={};this.tmpl=function a(e,d){var c=!/\W/.test(e)?b[e]=b[e]||a(document.getElementById(e).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return d?c(d):c}})();
(function(b){var d={vertical:!1,menuItemSelector:"li",menuGroupSelector:"ul",rootClass:"potato-menu",menuItemClass:"potato-menu-item",menuGroupClass:"potato-menu-group",verticalClass:"potato-menu-vertical",holizontalClass:"potato-menu-holizontal",hasVerticalClass:"potato-menu-has-vertical",hasHolizontalClass:"potato-menu-has-holizontal",hoverClass:"potato-menu-hover",showDuration:10,hideDuration:100};b.fn.extend({ptMenu:function(c){var a="string"!=typeof c?b.extend(d,c):b.extend(d,{}),c=b(this).addClass(a.rootClass+
" "+a.menuGroupClass).addClass(a.vertical?a.verticalClass:a.holizontalClass),g=c.find(a.menuItemSelector).addClass(a.menuItemClass),f=c.find(a.menuGroupSelector).addClass(a.menuGroupClass);g.click(function(){b(this).addClass(a.hoverClass)},function(){b(this).removeClass(a.hoverClass)});f.parent().each(function(){var c=b(this),d=c.parent().hasClass(a.holizontalClass)?"bottom":"right";c.addClass("bottom"==d?a.hasVerticalClass:a.hasHolizontalClass);var e=c.find(a.menuGroupSelector+":first").addClass(a.verticalClass);
c.click(function(){if(b(this).find("ul")&&"none"==b(this).find("ul").css("display")){f.parent().each(function(){b(this).css("padding-bottom","32px")});b(".potato-menu-item ul").css("display","none");e.hide();e.removeClass(a.hoverClass);var c="bottom"==d?{left:"0",top:""}:{left:b(this).width()+"px",top:"0"};e.css({left:c.left,top:c.top}).show();b(this).addClass(a.hoverClass)}})});return this}})})(jQuery);
(function(f){f.fn.qtip=function(B,u){var y,t,A,s,x,w,v,z;if(typeof B=="string"){if(typeof f(this).data("qtip")!=="object")f.fn.qtip.log.error.call(self,1,f.fn.qtip.constants.NO_TOOLTIP_PRESENT,false);if(B=="api")return f(this).data("qtip").interfaces[f(this).data("qtip").current];else if(B=="interfaces")return f(this).data("qtip").interfaces}else{if(!B)B={};if(typeof B.content!=="object"||B.content.jquery&&B.content.length>0)B.content={text:B.content};if(typeof B.content.title!=="object")B.content.title=
{text:B.content.title};if(typeof B.position!=="object")B.position={corner:B.position};if(typeof B.position.corner!=="object")B.position.corner={target:B.position.corner,tooltip:B.position.corner};if(typeof B.show!=="object")B.show={when:B.show};if(typeof B.show.when!=="object")B.show.when={event:B.show.when};if(typeof B.show.effect!=="object")B.show.effect={type:B.show.effect};if(typeof B.hide!=="object")B.hide={when:B.hide};if(typeof B.hide.when!=="object")B.hide.when={event:B.hide.when};if(typeof B.hide.effect!==
"object")B.hide.effect={type:B.hide.effect};if(typeof B.style!=="object")B.style={name:B.style};B.style=c(B.style);s=f.extend(true,{},f.fn.qtip.defaults,B);s.style=a.call({options:s},s.style);s.user=f.extend(true,{},B)}return f(this).each(function(){if(typeof B=="string"){w=B.toLowerCase();A=f(this).qtip("interfaces");if(typeof A=="object")if(u===true&&w=="destroy")while(A.length>0)A[A.length-1].destroy();else{if(u!==true)A=[f(this).qtip("api")];for(y=0;y<A.length;y++)if(w=="destroy")A[y].destroy();
else if(A[y].status.rendered===true)if(w=="show")A[y].show();else if(w=="hide")A[y].hide();else if(w=="focus")A[y].focus();else if(w=="disable")A[y].disable(true);else if(w=="enable")A[y].disable(false)}}else{v=f.extend(true,{},s);v.hide.effect.length=s.hide.effect.length;v.show.effect.length=s.show.effect.length;if(v.position.container===false)v.position.container=f(document.body);if(v.position.target===false)v.position.target=f(this);if(v.show.when.target===false)v.show.when.target=f(this);if(v.hide.when.target===
false)v.hide.when.target=f(this);t=f.fn.qtip.interfaces.length;for(y=0;y<t;y++)if(typeof f.fn.qtip.interfaces[y]=="undefined"){t=y;break}x=new d(f(this),v,t);f.fn.qtip.interfaces[t]=x;if(typeof f(this).data("qtip")=="object"){if(typeof f(this).attr("qtip")==="undefined")f(this).data("qtip").current=f(this).data("qtip").interfaces.length;f(this).data("qtip").interfaces.push(x)}else f(this).data("qtip",{current:0,interfaces:[x]});if(v.content.prerender===false&&v.show.when.event!==false&&v.show.ready!==
true)v.show.when.target.bind(v.show.when.event+".qtip-"+t+"-create",{qtip:t},function(C){z=f.fn.qtip.interfaces[C.data.qtip];z.options.show.when.target.unbind(z.options.show.when.event+".qtip-"+C.data.qtip+"-create");z.cache.mouse={x:C.pageX,y:C.pageY};p.call(z);z.options.show.when.target.trigger(z.options.show.when.event)});else{x.cache.mouse={x:v.show.when.target.offset().left,y:v.show.when.target.offset().top};p.call(x)}}})};function d(u,t,v){var s=this;s.id=v;s.options=t;s.status={animated:false,
rendered:false,disabled:false,focused:false};s.elements={target:u.addClass(s.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};s.cache={mouse:{},position:{},toggle:0};s.timers={};f.extend(s,s.options.api,{show:function(y){var x,z;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show");if(s.elements.tooltip.css("display")!=="none")return s;s.elements.tooltip.stop(true,
false);x=s.beforeShow.call(s,y);if(x===false)return s;function w(){if(s.options.position.type!=="static")s.focus();s.onShow.call(s,y);if(f.browser.msie)s.elements.tooltip.get(0).style.removeAttribute("filter")}s.cache.toggle=1;if(s.options.position.type!=="static")s.updatePosition(y,s.options.show.effect.length>0);if(typeof s.options.show.solo=="object")z=f(s.options.show.solo);else if(s.options.show.solo===true)z=f("div.qtip").not(s.elements.tooltip);if(z)z.each(function(){if(f(this).qtip("api").status.rendered===
true)f(this).qtip("api").hide()});if(typeof s.options.show.effect.type=="function"){s.options.show.effect.type.call(s.elements.tooltip,s.options.show.effect.length);s.elements.tooltip.queue(function(){w();f(this).dequeue()})}else{switch(s.options.show.effect.type.toLowerCase()){case "fade":s.elements.tooltip.fadeIn(s.options.show.effect.length,w);break;case "slide":s.elements.tooltip.slideDown(s.options.show.effect.length,function(){w();if(s.options.position.type!=="static")s.updatePosition(y,true)});
break;case "grow":s.elements.tooltip.show(s.options.show.effect.length,w);break;default:s.elements.tooltip.show(null,w);break}s.elements.tooltip.addClass(s.options.style.classes.active)}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(y){var x;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide");else if(s.elements.tooltip.css("display")==="none")return s;clearTimeout(s.timers.show);s.elements.tooltip.stop(true,
false);x=s.beforeHide.call(s,y);if(x===false)return s;function w(){s.onHide.call(s,y)}s.cache.toggle=0;if(typeof s.options.hide.effect.type=="function"){s.options.hide.effect.type.call(s.elements.tooltip,s.options.hide.effect.length);s.elements.tooltip.queue(function(){w();f(this).dequeue()})}else{switch(s.options.hide.effect.type.toLowerCase()){case "fade":s.elements.tooltip.fadeOut(s.options.hide.effect.length,w);break;case "slide":s.elements.tooltip.slideUp(s.options.hide.effect.length,w);break;
case "grow":s.elements.tooltip.hide(s.options.hide.effect.length,w);break;default:s.elements.tooltip.hide(null,w);break}s.elements.tooltip.removeClass(s.options.style.classes.active)}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(w,x){var C,G,L,J,H,E,y,I,B,D,K,A,F,z;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition");else if(s.options.position.type=="static")return f.fn.qtip.log.error.call(s,
1,f.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition");G={position:{left:0,top:0},dimensions:{height:0,width:0},corner:s.options.position.corner.target};L={position:s.getPosition(),dimensions:s.getDimensions(),corner:s.options.position.corner.tooltip};if(s.options.position.target!=="mouse"){if(s.options.position.target.get(0).nodeName.toLowerCase()=="area"){J=s.options.position.target.attr("coords").split(",");for(C=0;C<J.length;C++)J[C]=parseInt(J[C]);H=s.options.position.target.parent("map").attr("name");
E=f('img[usemap="#'+H+'"]:first').offset();G.position={left:Math.floor(E.left+J[0]),top:Math.floor(E.top+J[1])};switch(s.options.position.target.attr("shape").toLowerCase()){case "rect":G.dimensions={width:Math.ceil(Math.abs(J[2]-J[0])),height:Math.ceil(Math.abs(J[3]-J[1]))};break;case "circle":G.dimensions={width:J[2]+1,height:J[2]+1};break;case "poly":G.dimensions={width:J[0],height:J[1]};for(C=0;C<J.length;C++)if(C%2==0){if(J[C]>G.dimensions.width)G.dimensions.width=J[C];if(J[C]<J[0])G.position.left=
Math.floor(E.left+J[C])}else{if(J[C]>G.dimensions.height)G.dimensions.height=J[C];if(J[C]<J[1])G.position.top=Math.floor(E.top+J[C])}G.dimensions.width=G.dimensions.width-(G.position.left-E.left);G.dimensions.height=G.dimensions.height-(G.position.top-E.top);break;default:return f.fn.qtip.log.error.call(s,4,f.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}G.dimensions.width-=2;G.dimensions.height-=2}else if(s.options.position.target.add(document.body).length===1){G.position={left:f(document).scrollLeft(),
top:f(document).scrollTop()};G.dimensions={height:f(window).height(),width:f(window).width()}}else{if(typeof s.options.position.target.attr("qtip")!=="undefined")G.position=s.options.position.target.qtip("api").cache.position;else G.position=s.options.position.target.offset();G.dimensions={height:s.options.position.target.outerHeight(),width:s.options.position.target.outerWidth()}}y=f.extend({},G.position);if(G.corner.search(/right/i)!==-1)y.left+=G.dimensions.width;if(G.corner.search(/bottom/i)!==
-1)y.top+=G.dimensions.height;if(G.corner.search(/((top|bottom)Middle)|center/)!==-1)y.left+=G.dimensions.width/2;if(G.corner.search(/((left|right)Middle)|center/)!==-1)y.top+=G.dimensions.height/2}else{G.position=y={left:s.cache.mouse.x,top:s.cache.mouse.y};G.dimensions={height:1,width:1}}if(L.corner.search(/right/i)!==-1)y.left-=L.dimensions.width;if(L.corner.search(/bottom/i)!==-1)y.top-=L.dimensions.height;if(L.corner.search(/((top|bottom)Middle)|center/)!==-1)y.left-=L.dimensions.width/2;if(L.corner.search(/((left|right)Middle)|center/)!==
-1)y.top-=L.dimensions.height/2;I=f.browser.msie?1:0;B=f.browser.msie&&parseInt(f.browser.version.charAt(0))===6?1:0;if(s.options.style.border.radius>0){if(L.corner.search(/Left/)!==-1)y.left-=s.options.style.border.radius;else if(L.corner.search(/Right/)!==-1)y.left+=s.options.style.border.radius;if(L.corner.search(/Top/)!==-1)y.top-=s.options.style.border.radius;else if(L.corner.search(/Bottom/)!==-1)y.top+=s.options.style.border.radius}if(I){if(L.corner.search(/top/)!==-1)y.top-=I;else if(L.corner.search(/bottom/)!==
-1)y.top+=I;if(L.corner.search(/left/)!==-1)y.left-=I;else if(L.corner.search(/right/)!==-1)y.left+=I;if(L.corner.search(/leftMiddle|rightMiddle/)!==-1)y.top-=1}if(s.options.position.adjust.screen===true)y=o.call(s,y,G,L);if(s.options.position.target==="mouse"&&s.options.position.adjust.mouse===true){if(s.options.position.adjust.screen===true&&s.elements.tip)K=s.elements.tip.attr("rel");else K=s.options.position.corner.tooltip;y.left+=K.search(/right/i)!==-1?-6:6;y.top+=K.search(/bottom/i)!==-1?-6:
6}if(!s.elements.bgiframe&&f.browser.msie&&parseInt(f.browser.version.charAt(0))==6)f("select, object").each(function(){A=f(this).offset();A.bottom=A.top+f(this).height();A.right=A.left+f(this).width();if(y.top+L.dimensions.height>=A.top&&y.left+L.dimensions.width>=A.left)k.call(s)});y.left+=s.options.position.adjust.x;y.top+=s.options.position.adjust.y;F=s.getPosition();if(y.left!=F.left||y.top!=F.top){z=s.beforePositionUpdate.call(s,w);if(z===false)return s;s.cache.position=y;if(x===true){s.status.animated=
true;s.elements.tooltip.animate(y,200,"swing",function(){s.status.animated=false})}else s.elements.tooltip.css(y);s.onPositionUpdate.call(s,w);if(typeof w!=="undefined"&&w.type&&w.type!=="mousemove")f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}return s},updateWidth:function(w){var x;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth");else if(w&&typeof w!=="number")return f.fn.qtip.log.error.call(s,
2,"newWidth must be of type number","updateWidth");x=s.elements.contentWrapper.siblings().add(s.elements.tip).add(s.elements.button);if(!w)if(typeof s.options.style.width.value=="number")w=s.options.style.width.value;else{s.elements.tooltip.css({width:"auto"});x.hide();if(f.browser.msie)s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"normal"});w=s.getDimensions().width+1;if(!s.options.style.width.value){if(w>s.options.style.width.max)w=s.options.style.width.max;if(w<s.options.style.width.min)w=
s.options.style.width.min}}if(w%2!==0)w-=1;s.elements.tooltip.width(w);x.show();if(s.options.style.border.radius)s.elements.tooltip.find(".qtip-betweenCorners").each(function(y){f(this).width(w-s.options.style.border.radius*2)});if(f.browser.msie){s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"1"});s.elements.wrapper.width(w);if(s.elements.bgiframe)s.elements.bgiframe.width(w).height(s.getDimensions.height)}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_WIDTH_UPDATED,
"updateWidth")},updateStyle:function(w){var z,A,x,y,B;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle");else if(typeof w!=="string"||!f.fn.qtip.styles[w])return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle");s.options.style=a.call(s,f.fn.qtip.styles[w],s.options.user.style);s.elements.content.css(q(s.options.style));if(s.options.content.title.text!==false)s.elements.title.css(q(s.options.style.title,
true));s.elements.contentWrapper.css({borderColor:s.options.style.border.color});if(s.options.style.tip.corner!==false)if(f("<canvas>").get(0).getContext){z=s.elements.tooltip.find(".qtip-tip canvas:first");x=z.get(0).getContext("2d");x.clearRect(0,0,300,300);y=z.parent("div[rel]:first").attr("rel");B=b(y,s.options.style.tip.size.width,s.options.style.tip.size.height);h.call(s,z,B,s.options.style.tip.color||s.options.style.border.color)}else if(f.browser.msie){z=s.elements.tooltip.find('.qtip-tip [nodeName="shape"]');
z.attr("fillcolor",s.options.style.tip.color||s.options.style.border.color)}if(s.options.style.border.radius>0){s.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:s.options.style.border.color});if(f("<canvas>").get(0).getContext){A=g(s.options.style.border.radius);s.elements.tooltip.find(".qtip-wrapper canvas").each(function(){x=f(this).get(0).getContext("2d");x.clearRect(0,0,300,300);y=f(this).parent("div[rel]:first").attr("rel");r.call(s,f(this),A[y],s.options.style.border.radius,
s.options.style.border.color)})}else if(f.browser.msie)s.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){f(this).attr("fillcolor",s.options.style.border.color)})}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(A,y){var z,x,w;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent");else if(!A)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,
"updateContent");z=s.beforeContentUpdate.call(s,A);if(typeof z=="string")A=z;else if(z===false)return;if(f.browser.msie)s.elements.contentWrapper.children().css({zoom:"normal"});if(A.jquery&&A.length>0)A.clone(true).appendTo(s.elements.content).show();else s.elements.content.html(A);x=s.elements.content.find("img[complete=false]");if(x.length>0){w=0;x.each(function(C){f('<img src="'+f(this).attr("src")+'" />').load(function(){if(++w==x.length)B()})})}else B();function B(){s.updateWidth();if(y!==false){if(s.options.position.type!==
"static")s.updatePosition(s.elements.tooltip.is(":visible"),true);if(s.options.style.tip.corner!==false)n.call(s)}}s.onContentUpdate.call(s);return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(w,z,A){var y;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent");y=s.beforeContentLoad.call(s);if(y===false)return s;if(A=="post")f.post(w,z,x);else f.get(w,z,x);function x(B){s.onContentLoad.call(s);
f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");s.updateContent(B)}return s},updateTitle:function(w){if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle");else if(!w)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle");returned=s.beforeTitleUpdate.call(s);if(returned===false)return s;if(s.elements.button)s.elements.button=s.elements.button.clone(true);s.elements.title.html(w);
if(s.elements.button)s.elements.title.prepend(s.elements.button);s.onTitleUpdate.call(s);return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(A){var y,x,w,z;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus");else if(s.options.position.type=="static")return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus");y=parseInt(s.elements.tooltip.css("z-index"));x=6E3+f("div.qtip[qtip]").length-
1;if(!s.status.focused&&y!==x){z=s.beforeFocus.call(s,A);if(z===false)return s;f("div.qtip[qtip]").not(s.elements.tooltip).each(function(){if(f(this).qtip("api").status.rendered===true){w=parseInt(f(this).css("z-index"));if(typeof w=="number"&&w>-1)f(this).css({zIndex:parseInt(f(this).css("z-index"))-1});f(this).qtip("api").status.focused=false}});s.elements.tooltip.css({zIndex:x});s.status.focused=true;s.onFocus.call(s,A);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_FOCUSED,"focus")}return s},
disable:function(w){if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable");if(w)if(!s.status.disabled){s.status.disabled=true;f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_DISABLED,"disable")}else f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable");else if(s.status.disabled){s.status.disabled=false;f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_ENABLED,"disable")}else f.fn.qtip.log.error.call(s,
1,f.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable");return s},destroy:function(){var w,x,y;x=s.beforeDestroy.call(s);if(x===false)return s;if(s.status.rendered){s.options.show.when.target.unbind("mousemove.qtip",s.updatePosition);s.options.show.when.target.unbind("mouseout.qtip",s.hide);s.options.show.when.target.unbind(s.options.show.when.event+".qtip");s.options.hide.when.target.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind("mouseover.qtip",
s.focus);s.elements.tooltip.remove()}else s.options.show.when.target.unbind(s.options.show.when.event+".qtip-create");if(typeof s.elements.target.data("qtip")=="object"){y=s.elements.target.data("qtip").interfaces;if(typeof y=="object"&&y.length>0)for(w=0;w<y.length-1;w++)if(y[w].id==s.id)y.splice(w,1)}delete f.fn.qtip.interfaces[s.id];if(typeof y=="object"&&y.length>0)s.elements.target.data("qtip").current=y.length-1;else s.elements.target.removeData("qtip");s.onDestroy.call(s);f.fn.qtip.log.error.call(s,
1,f.fn.qtip.constants.EVENT_DESTROYED,"destroy");return s.elements.target},getPosition:function(){var w,x;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition");w=s.elements.tooltip.css("display")!=="none"?false:true;if(w)s.elements.tooltip.css({visiblity:"hidden"}).show();x=s.elements.tooltip.offset();if(w)s.elements.tooltip.css({visiblity:"visible"}).hide();return x},getDimensions:function(){var w,x;if(!s.status.rendered)return f.fn.qtip.log.error.call(s,
2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions");w=!s.elements.tooltip.is(":visible")?true:false;if(w)s.elements.tooltip.css({visiblity:"hidden"}).show();x={height:s.elements.tooltip.outerHeight(),width:s.elements.tooltip.outerWidth()};if(w)s.elements.tooltip.css({visiblity:"visible"}).hide();return x}})}function p(){var s,w,u,t,v,y,x;s=this;s.beforeRender.call(s);s.status.rendered=true;s.elements.tooltip='<div qtip="'+s.id+'" class="qtip '+(s.options.style.classes.tooltip||s.options.style)+
'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+s.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+s.options.style.classes.content+'"></div></div></div></div>';s.elements.tooltip=f(s.elements.tooltip);s.elements.tooltip.appendTo(s.options.position.container);s.elements.tooltip.data("qtip",
{current:0,interfaces:[s]});s.elements.wrapper=s.elements.tooltip.children("div:first");s.elements.contentWrapper=s.elements.wrapper.children("div:first").css({background:s.options.style.background});s.elements.content=s.elements.contentWrapper.children("div:first").css(q(s.options.style));if(f.browser.msie)s.elements.wrapper.add(s.elements.content).css({zoom:1});if(s.options.hide.when.event=="unfocus")s.elements.tooltip.attr("unfocus",true);if(typeof s.options.style.width.value=="number")s.updateWidth();
if(f("<canvas>").get(0).getContext||f.browser.msie){if(s.options.style.border.radius>0)m.call(s);else s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color});if(s.options.style.tip.corner!==false)e.call(s)}else{s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color});s.options.style.border.radius=0;s.options.style.tip.corner=false;f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,
"render")}if(typeof s.options.content.text=="string"&&s.options.content.text.length>0||s.options.content.text.jquery&&s.options.content.text.length>0)u=s.options.content.text;else if(typeof s.elements.target.attr("title")=="string"&&s.elements.target.attr("title").length>0){u=s.elements.target.attr("title").replace("\\n","<br />");s.elements.target.attr("title","")}else if(typeof s.elements.target.attr("alt")=="string"&&s.elements.target.attr("alt").length>0){u=s.elements.target.attr("alt").replace("\\n",
"<br />");s.elements.target.attr("alt","")}else{u=" ";f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.NO_VALID_CONTENT,"render")}if(s.options.content.title.text!==false)j.call(s);s.updateContent(u);l.call(s);if(s.options.show.ready===true)s.show();if(s.options.content.url!==false){t=s.options.content.url;v=s.options.content.data;y=s.options.content.method||"get";s.loadContent(t,v,y)}s.onRender.call(s);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_RENDERED,"render")}function m(){var F,z,
t,B,x,E,u,G,D,y,w,C,A,s,v;F=this;F.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();t=F.options.style.border.width;B=F.options.style.border.radius;x=F.options.style.border.color||F.options.style.tip.color;E=g(B);u={};for(z in E){u[z]='<div rel="'+z+'" style="'+(z.search(/Left/)!==-1?"left":"right")+":0; position:absolute; height:"+B+"px; width:"+B+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(f("<canvas>").get(0).getContext)u[z]+='<canvas height="'+B+'" width="'+
B+'" style="vertical-align: top"></canvas>';else if(f.browser.msie){G=B*2+3;u[z]+='<v:arc stroked="false" fillcolor="'+x+'" startangle="'+E[z][0]+'" endangle="'+E[z][1]+'" style="width:'+G+"px; height:"+G+"px; margin-top:"+(z.search(/bottom/)!==-1?-2:-1)+"px; margin-left:"+(z.search(/Right/)!==-1?E[z][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}u[z]+="</div>"}D=F.getDimensions().width-Math.max(t,B)*2;y='<div class="qtip-betweenCorners" style="height:'+
B+"px; width:"+D+"px; overflow:hidden; background-color:"+x+'; line-height:0.1px; font-size:1px;">';w='<div class="qtip-borderTop" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.topLeft+u.topRight+y;F.elements.wrapper.prepend(w);C='<div class="qtip-borderBottom" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.bottomLeft+u.bottomRight+y;F.elements.wrapper.append(C);if(f("<canvas>").get(0).getContext)F.elements.wrapper.find("canvas").each(function(){A=
E[f(this).parent("[rel]:first").attr("rel")];r.call(F,f(this),A,B,x)});else if(f.browser.msie)F.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>');s=Math.max(B,B+(t-B));v=Math.max(t-B,0);F.elements.contentWrapper.css({border:"0px solid "+x,borderWidth:v+"px "+s+"px"})}function r(u,w,s,t){var v=u.get(0).getContext("2d");v.fillStyle=t;v.beginPath();v.arc(w[0],w[1],s,0,Math.PI*2,false);v.fill()}function e(v){var t,s,x,u,w;t=this;if(t.elements.tip!==null)t.elements.tip.remove();
s=t.options.style.tip.color||t.options.style.border.color;if(t.options.style.tip.corner===false)return;else if(!v)v=t.options.style.tip.corner;x=b(v,t.options.style.tip.size.width,t.options.style.tip.size.height);t.elements.tip='<div class="'+t.options.style.classes.tip+'" dir="ltr" rel="'+v+'" style="position:absolute; height:'+t.options.style.tip.size.height+"px; width:"+t.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(f("<canvas>").get(0).getContext)t.elements.tip+=
'<canvas height="'+t.options.style.tip.size.height+'" width="'+t.options.style.tip.size.width+'"></canvas>';else if(f.browser.msie){u=t.options.style.tip.size.width+","+t.options.style.tip.size.height;w="m"+x[0][0]+","+x[0][1];w+=" l"+x[1][0]+","+x[1][1];w+=" "+x[2][0]+","+x[2][1];w+=" xe";t.elements.tip+='<v:shape fillcolor="'+s+'" stroked="false" filled="true" path="'+w+'" coordsize="'+u+'" style="width:'+t.options.style.tip.size.width+"px; height:"+t.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+
(v.search(/top/)!==-1?"bottom":"top")+'"></v:shape>';t.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';t.elements.contentWrapper.css("position","relative")}t.elements.tooltip.prepend(t.elements.tip+"</div>");t.elements.tip=t.elements.tooltip.find("."+t.options.style.classes.tip).eq(0);if(f("<canvas>").get(0).getContext)h.call(t,t.elements.tip.find("canvas:first"),x,s);if(v.search(/top/)!==-1&&f.browser.msie&&parseInt(f.browser.version.charAt(0))===6)t.elements.tip.css({marginTop:-4});
n.call(t,v)}function h(t,v,s){var u=t.get(0).getContext("2d");u.fillStyle=s;u.beginPath();u.moveTo(v[0][0],v[0][1]);u.lineTo(v[1][0],v[1][1]);u.lineTo(v[2][0],v[2][1]);u.fill()}function n(u){var t,w,s,x,v;t=this;if(t.options.style.tip.corner===false||!t.elements.tip)return;if(!u)u=t.elements.tip.attr("rel");w=positionAdjust=f.browser.msie?1:0;t.elements.tip.css(u.match(/left|right|top|bottom/)[0],0);if(u.search(/top|bottom/)!==-1){if(f.browser.msie)if(parseInt(f.browser.version.charAt(0))===6)positionAdjust=
u.search(/top/)!==-1?-3:1;else positionAdjust=u.search(/top/)!==-1?1:2;if(u.search(/Middle/)!==-1)t.elements.tip.css({left:"50%",marginLeft:-(t.options.style.tip.size.width/2)});else if(u.search(/Left/)!==-1)t.elements.tip.css({left:t.options.style.border.radius-w});else if(u.search(/Right/)!==-1)t.elements.tip.css({right:t.options.style.border.radius+w});if(u.search(/top/)!==-1)t.elements.tip.css({top:-positionAdjust});else t.elements.tip.css({bottom:positionAdjust})}else if(u.search(/left|right/)!==
-1){if(f.browser.msie)positionAdjust=parseInt(f.browser.version.charAt(0))===6?1:u.search(/left/)!==-1?1:2;if(u.search(/Middle/)!==-1)t.elements.tip.css({top:"50%",marginTop:-(t.options.style.tip.size.height/2)});else if(u.search(/Top/)!==-1)t.elements.tip.css({top:t.options.style.border.radius-w});else if(u.search(/Bottom/)!==-1)t.elements.tip.css({bottom:t.options.style.border.radius+w});if(u.search(/left/)!==-1)t.elements.tip.css({left:-positionAdjust});else t.elements.tip.css({right:positionAdjust})}s=
"padding-"+u.match(/left|right|top|bottom/)[0];x=t.options.style.tip.size[s.search(/left|right/)!==-1?"width":"height"];t.elements.tooltip.css("padding",0);t.elements.tooltip.css(s,x);if(f.browser.msie&&parseInt(f.browser.version.charAt(0))==6){v=parseInt(t.elements.tip.css("margin-top"))||0;v+=parseInt(t.elements.content.css("margin-top"))||0;t.elements.tip.css({marginTop:v})}}function j(){var s=this;if(s.elements.title!==null)s.elements.title.remove();s.elements.title=f('<div class="'+s.options.style.classes.title+
'">').css(q(s.options.style.title,true)).css({zoom:f.browser.msie?1:0}).prependTo(s.elements.contentWrapper);if(s.options.content.title.text)s.updateTitle.call(s,s.options.content.title.text);if(s.options.content.title.button!==false&&typeof s.options.content.title.button=="string")s.elements.button=f('<a class="'+s.options.style.classes.button+'" style="float:right; position: relative"></a>').css(q(s.options.style.button,true)).html(s.options.content.title.button).prependTo(s.elements.title).click(function(t){if(!s.status.disabled)s.hide(t)})}
function l(){var t,v,u,s;t=this;v=t.options.show.when.target;u=t.options.hide.when.target;if(t.options.hide.fixed)u=u.add(t.elements.tooltip);if(t.options.hide.when.event=="inactive"){s=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function y(z){if(t.status.disabled===true)return;clearTimeout(t.timers.inactive);t.timers.inactive=setTimeout(function(){f(s).each(function(){u.unbind(this+".qtip-inactive");t.elements.content.unbind(this+".qtip-inactive")});
t.hide(z)},t.options.hide.delay)}}else if(t.options.hide.fixed===true)t.elements.tooltip.bind("mouseover.qtip",function(){if(t.status.disabled===true)return;clearTimeout(t.timers.hide)});function x(z){if(t.status.disabled===true)return;if(t.options.hide.when.event=="inactive"){f(s).each(function(){u.bind(this+".qtip-inactive",y);t.elements.content.bind(this+".qtip-inactive",y)});y()}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.timers.show=setTimeout(function(){t.show(z)},t.options.show.delay)}
function w(z){if(t.status.disabled===true)return;if(t.options.hide.fixed===true&&t.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&f(z.relatedTarget).parents("div.qtip[qtip]").length>0){z.stopPropagation();z.preventDefault();clearTimeout(t.timers.hide);return false}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.elements.tooltip.stop(true,true);t.timers.hide=setTimeout(function(){t.hide(z)},t.options.hide.delay)}if(t.options.show.when.target.add(t.options.hide.when.target).length===
1&&t.options.show.when.event==t.options.hide.when.event&&t.options.hide.when.event!=="inactive"||t.options.hide.when.event=="unfocus"){t.cache.toggle=0;v.bind(t.options.show.when.event+".qtip",function(z){if(t.cache.toggle==0)x(z);else w(z)})}else{v.bind(t.options.show.when.event+".qtip",x);if(t.options.hide.when.event!=="inactive")u.bind(t.options.hide.when.event+".qtip",w)}if(t.options.position.type.search(/(fixed|absolute)/)!==-1)t.elements.tooltip.bind("mouseover.qtip",t.focus);if(t.options.position.target===
"mouse"&&t.options.position.type!=="static")v.bind("mousemove.qtip",function(z){t.cache.mouse={x:z.pageX,y:z.pageY};if(t.status.disabled===false&&t.options.position.adjust.mouse===true&&t.options.position.type!=="static"&&t.elements.tooltip.css("display")!=="none")t.updatePosition(z)})}function o(u,v,A){var z,s,x,y,t,w;z=this;if(A.corner=="center")return v.position;s=f.extend({},u);y={x:false,y:false};t={left:s.left<f.fn.qtip.cache.screen.scroll.left,right:s.left+A.dimensions.width+2>=f.fn.qtip.cache.screen.width+
f.fn.qtip.cache.screen.scroll.left,top:s.top<f.fn.qtip.cache.screen.scroll.top,bottom:s.top+A.dimensions.height+2>=f.fn.qtip.cache.screen.height+f.fn.qtip.cache.screen.scroll.top};x={left:t.left&&(A.corner.search(/right/i)!=-1||A.corner.search(/right/i)==-1&&!t.right),right:t.right&&(A.corner.search(/left/i)!=-1||A.corner.search(/left/i)==-1&&!t.left),top:t.top&&A.corner.search(/top/i)==-1,bottom:t.bottom&&A.corner.search(/bottom/i)==-1};if(x.left){if(z.options.position.target!=="mouse")s.left=v.position.left+
v.dimensions.width;else s.left=z.cache.mouse.x;y.x="Left"}else if(x.right){if(z.options.position.target!=="mouse")s.left=v.position.left-A.dimensions.width;else s.left=z.cache.mouse.x-A.dimensions.width;y.x="Right"}if(x.top){if(z.options.position.target!=="mouse")s.top=v.position.top+v.dimensions.height;else s.top=z.cache.mouse.y;y.y="top"}else if(x.bottom){if(z.options.position.target!=="mouse")s.top=v.position.top-A.dimensions.height;else s.top=z.cache.mouse.y-A.dimensions.height;y.y="bottom"}if(s.left<
0){s.left=u.left;y.x=false}if(s.top<0){s.top=u.top;y.y=false}if(z.options.style.tip.corner!==false){s.corner=new String(A.corner);if(y.x!==false)s.corner=s.corner.replace(/Left|Right|Middle/,y.x);if(y.y!==false)s.corner=s.corner.replace(/top|bottom/,y.y);if(s.corner!==z.elements.tip.attr("rel"))e.call(z,s.corner)}return s}function q(u,t){var v,s;v=f.extend(true,{},u);for(s in v)if(t===true&&s.search(/(tip|classes)/i)!==-1)delete v[s];else if(!t&&s.search(/(width|border|tip|title|classes|user)/i)!==
-1)delete v[s];return v}function c(s){if(typeof s.tip!=="object")s.tip={corner:s.tip};if(typeof s.tip.size!=="object")s.tip.size={width:s.tip.size,height:s.tip.size};if(typeof s.border!=="object")s.border={width:s.border};if(typeof s.width!=="object")s.width={value:s.width};if(typeof s.width.max=="string")s.width.max=parseInt(s.width.max.replace(/([0-9]+)/i,"$1"));if(typeof s.width.min=="string")s.width.min=parseInt(s.width.min.replace(/([0-9]+)/i,"$1"));if(typeof s.tip.size.x=="number"){s.tip.size.width=
s.tip.size.x;delete s.tip.size.x}if(typeof s.tip.size.y=="number"){s.tip.size.height=s.tip.size.y;delete s.tip.size.y}return s}function a(){var s,t,u,x,v,w;s=this;u=[true,{}];for(t=0;t<arguments.length;t++)u.push(arguments[t]);x=[f.extend.apply(f,u)];while(typeof x[0].name=="string")x.unshift(c(f.fn.qtip.styles[x[0].name]));x.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},f.fn.qtip.styles.defaults);v=f.extend.apply(f,x);w=f.browser.msie?1:0;v.tip.size.width+=w;v.tip.size.height+=
w;if(v.tip.size.width%2>0)v.tip.size.width+=1;if(v.tip.size.height%2>0)v.tip.size.height+=1;if(v.tip.corner===true)v.tip.corner=s.options.position.corner.tooltip==="center"?false:s.options.position.corner.tooltip;return v}function b(v,u,t){var s={bottomRight:[[0,0],[u,t],[u,0]],bottomLeft:[[0,0],[u,0],[0,t]],topRight:[[0,t],[u,0],[u,t]],topLeft:[[0,0],[0,t],[u,t]],topMiddle:[[0,t],[u/2,0],[u,t]],bottomMiddle:[[0,0],[u,0],[u/2,t]],rightMiddle:[[0,0],[u,t/2],[0,t]],leftMiddle:[[u,0],[u,t],[0,t/2]]};
s.leftTop=s.bottomRight;s.rightTop=s.bottomLeft;s.leftBottom=s.topRight;s.rightBottom=s.topLeft;return s[v]}function g(s){var t;if(f("<canvas>").get(0).getContext)t={topLeft:[s,s],topRight:[0,s],bottomLeft:[s,0],bottomRight:[0,0]};else if(f.browser.msie)t={topLeft:[-90,90,0],topRight:[-90,90,-s],bottomLeft:[90,270,0],bottomRight:[90,270,-s]};return t}function k(){var s,t,u;s=this;u=s.getDimensions();t='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+
u.height+"px; width:"+u.width+'px" />';s.elements.bgiframe=s.elements.wrapper.prepend(t).children(".qtip-bgiframe:first")}f(document).ready(function(){f.fn.qtip.cache={screen:{scroll:{left:f(window).scrollLeft(),top:f(window).scrollTop()},width:f(window).width(),height:f(window).height()}};var s;f(window).bind("resize scroll",function(t){clearTimeout(s);s=setTimeout(function(){if(t.type==="scroll")f.fn.qtip.cache.screen.scroll={left:f(window).scrollLeft(),top:f(window).scrollTop()};else{f.fn.qtip.cache.screen.width=
f(window).width();f.fn.qtip.cache.screen.height=f(window).height()}for(i=0;i<f.fn.qtip.interfaces.length;i++){var u=f.fn.qtip.interfaces[i];if(u.status.rendered===true&&(u.options.position.type!=="static"||u.options.position.adjust.scroll&&t.type==="scroll"||u.options.position.adjust.resize&&t.type==="resize"))u.updatePosition(t,true)}},100)});f(document).bind("mousedown.qtip",function(t){if(f(t.target).parents("div.qtip").length===0)f(".qtip[unfocus]").each(function(){var u=f(this).qtip("api");if(f(this).is(":visible")&&
!u.status.disabled&&f(t.target).add(u.elements.target).length>1)u.hide(t)})})});f.fn.qtip.interfaces=[];f.fn.qtip.log={error:function(){return this}};f.fn.qtip.constants={};f.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",
length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},
beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};f.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",
content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},
red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);
(function(){var c=$.ui.tabs.prototype._tabify;$.extend($.ui.tabs.prototype,{_tabify:function(){var a=this;c.apply(this,arguments);!0===a.options.closable&&this.lis.filter(function(){return 0===$("span.ui-icon-circle-close",this).length}).not(":first").each(function(){$(this).append('<a href="#"><span class="ui-icon ui-icon-circle-close"></span></a>').find("a:last").hover(function(){$(this).css("cursor","pointer")},function(){$(this).css("cursor","default")}).click(function(){var b=a.lis.index($(this).parent());
if(-1<b){if(!1===a._trigger("closableClick",null,a._ui($(a.lis[b]).find("a")[0],a.panels[b])))return;a.remove(b)}return!1}).end()})}})})(jQuery);var strTable;jQuery.fn.Upper=function(){return this.each(function(){($(this).is("textarea")||$(this).is("input:text"))&&$(this).keyup(function(){$(this).val($(this).val().toUpperCase())})})};
jQuery.fn.EmailOnly=function(){return this.each(function(){$(this).keydown(function(a){var b=a.charCode||a.keyCode||0;return 110==b||190==b&&!1===a.shiftKey||50==b&&!0===a.shiftKey||65<=b&&90>=b&&!1===a.ctrlKey||48<=b&&57>=b&&!1===a.shiftKey||109==b&&!0===a.shiftKey||46==b||8==b||9==b||18==b||27==b||13==b||35<=b&&40>=b||96<=b&&105>=b});$(this).bind("cut copy paste",function(a){a.preventDefault()})})};
jQuery.fn.Mobile_Comma_Only=function(){return this.each(function(){$(this).keydown(function(a){var b=a.charCode||a.keyCode||0;return 8==b||9==b||46==b||18==b||35<=b&&40>=b||48<=b&&57>=b&&!1===a.shiftKey||188==b&&!1===a.shiftKey||96<=b&&105>=b})})};
jQuery.fn.UserName=function(){return this.each(function(){$(this).keydown(function(a){var b=a.charCode||a.keyCode||0;return 110==b||190==b&&!1===a.shiftKey||65<=b&&90>=b&&!1===a.ctrlKey||48<=b&&57>=b&&!1===a.shiftKey||109==b&&!0===a.shiftKey||46==b||8==b||9==b||18==b||27==b||13==b||35<=b&&40>=b||96<=b&&105>=b});$(this).bind("cut copy paste",function(a){a.preventDefault()})})};
jQuery.fn.Password=function(){return this.each(function(){$(this).keydown(function(a){var b=a.charCode||a.keyCode||0;return 32==b||222==b||!0===a.ctrlKey?!1:!0});$(this).bind("cut copy paste",function(a){a.preventDefault()})})};jQuery.fn.blockCopyPaste=function(){return this.each(function(){$(this).bind("cut copy paste",function(a){a.preventDefault()})})};
jQuery.fn.NumericOnly=function(){return this.each(function(){$(this).keydown(function(a){var b=a.charCode||a.keyCode||0;return 8==b||9==b||46==b||18==b||35<=b&&40>=b||48<=b&&57>=b&&!1===a.shiftKey||96<=b&&105>=b})})};
jQuery.fn.DecimalOnly=function(){return this.each(function(){$(this).keydown(function(a){a=a.charCode||a.keyCode||0;if(-1!=this.value.indexOf(".")){var b=this.value.split("."),b=b[1];return 2==b.length?8==a||9==a||46==a||18==a:8==a||9==a||46==a||18==a||35<=a&&40>=a||48<=a&&57>=a||96<=a&&105>=a}return 110==a||190==a||8==a||9==a||46==a||18==a||35<=a&&40>=a||48<=a&&57>=a||96<=a&&105>=a})})};
function checkEmailId(a){return/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i.test(a.val())?!0:!1}function checkFormValidation(a){alert(a.toSource())}function updateTips(a){tips.text(a).addClass("ui-state-highlight");setTimeout(function(){tips.removeClass("ui-state-highlight",1500)},500)}
function updateTipsErr(a,b){b.text(a).addClass("ui-state-highlight");setTimeout(function(){b.removeClass("ui-state-highlight",1500)},500)}function checkNull(a,b){return 0==a.val().length?(a.addClass("ui-state-error"),updateTips(b+" should not be blank."),!1):!0}function checkFromTo(a,b,c){return a.val()>=b.val()?(b.addClass("ui-state-error"),updateTips(c),!1):!0}function checkNullOnly(a){return 0==a.val().length?!1:!0}
function checkLength(a,b,c,d){return a.val().length>d||a.val().length<c?(a.addClass("ui-state-error"),updateTips("Length of "+b+" must be between "+c+" and "+d+"."),!1):!0}function checkMobileLength(a,b,c){return a.val().length>c||a.val().length<c?(a.addClass("ui-state-error"),updateTips("Length of "+b+" must be "+c),!1):!0}function checkMaxCredit(a,b,c){return 0<a.val()-b.val()?(a.addClass("ui-state-error"),updateTips(c),!1):!0}
function checkZero(a,b){return 0==a.val()?(a.addClass("ui-state-error"),updateTips(b),!1):!0}function checkNegative(a,b){return 0>=a.val()?(a.addClass("ui-state-error"),updateTips(b),!1):!0}function checkRegExp(a,b,c){if(b.test(a.val()))return!0;a.addClass("ui-state-error");updateTips(c);return!1}
function checkEmail(a){return checkRegExp(a,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"Wronge Email : eg info@devindia.net")}
function checkPassword(a){return checkRegExp(a,/^([0-9a-zA-Z])+$/,"Password field only allow : a-z 0-9")}function checkNumber(a,b){return checkRegExp(a,/^([0-9])+$/,b+" field only allow : 0-9")}function checkDecimalNumber(a,b){return checkRegExp(a,/^([0-9.])+$/,b+" field only allow Number")}function checkName(){return!0}function getChildCombo(a,b,c,d){$.post("php/"+d+"?cmd="+c+"&value="+a,function(a){$(b).html(a)})}
function getChildComboEdit(a,b,c,d,e){$.post("php_lib/"+d+"?cmd="+c+"&value="+a,function(a){$(b).html(a);$(b).val(e)})}
function edit(a){a="php/general.php?cmd=select&table="+a+"&key=id&value="+editID;$("#"+frmPrifix+"id").val(editID);$.post(a,function(a){$.each(a,function(a,b){try{"checkbox"==$("#"+frmPrifix+a).attr("type")&&($("#"+frmPrifix+a).click(function(){!0==$(this).attr("checked")?$(this).val(1):$(this).val(0)}),1==b?$("#"+frmPrifix+a).attr("checked","checked"):$("#"+frmPrifix+a).attr("checked","")),$("#"+frmId+" #"+frmPrifix+a).val(b)}catch(e){}});$(".date").each(function(){if(""!=$(this).val()){var a=parse_date($(this).val());
$(this).val(a.format("d.m.Y"))}})},"json")}
function addRecord(a,b,c,d,e,g,f){$.post(a,$("#"+frmId).serialize(),function(a){"true"==a.result?(jQuery("#"+d).trigger("reloadGrid"),$("#"+e).html(a.msg),$("#"+e).dialog("open"),jQuery("#"+b).css("display","inline"),jQuery("#"+c).css("display","none"),f.val("").removeClass("ui-state-error"),jQuery("#"+g).html("* Fields are mendatory")):(updateTips(a.error),f.removeClass("ui-state-error"),a.eid&&($("#"+frmPrifix+a.eid).focus(),$("#"+frmPrifix+a.eid).addClass("ui-state-error")))},"json")}
function editRecord(a,b,c,d,e,g,f){$.post(a,$("#"+frmId).serialize(),function(a){"true"==a.result?(editID="",jQuery("#"+d).trigger("reloadGrid"),jQuery("#"+b).css("display","inline"),jQuery("#"+c).css("display","none"),f.val("").removeClass("ui-state-error"),jQuery("#"+g).html("* Fields are mendatory"),$("#"+e).html(a.msg),$("#"+e).dialog("open")):(updateTips(a.error),f.removeClass("ui-state-error"),a.eid&&($("#"+frmPrifix+a.eid).focus(),$("#"+frmPrifix+a.eid).addClass("ui-state-error")))},"json")}
function generateLogin(a){$.post("php_lib/users.php?cmd=getUsername&ctrUsr="+a,function(a){jQuery("#"+frmPrifix+"Loginname").val(a)})}function gridLoadComplete(a){"false"==a.result&&alert(a.message)}function parse_date(a){var b=new Date,a=String(a).split(/[- :]/);b.setFullYear(a[0]);b.setMonth(a[1]-1);b.setDate(a[2]);b.setHours(a[3]);b.setMinutes(a[4]);b.setSeconds(a[5]);b.setMilliseconds(0);return b}
Date.prototype.format=function(a){for(var b="",c=Date.replaceChars,d=0;d<a.length;d++)var e=a.charAt(d),b=c[e]?b+c[e].call(this):b+e;return b};
Date.replaceChars={shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),longMonths:"January February March April May June July August September October November December".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),longDays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d:function(){return(10>this.getDate()?"0":"")+this.getDate()},D:function(){return Date.replaceChars.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.replaceChars.longDays[this.getDay()]},
N:function(){return this.getDay()+1},S:function(){return 1==this.getDate()%10&&11!=this.getDate()?"st":2==this.getDate()%10&&12!=this.getDate()?"nd":3==this.getDate()%10&&13!=this.getDate()?"rd":"th"},w:function(){return this.getDay()},z:function(){return"Not Yet Supported"},W:function(){return"Not Yet Supported"},F:function(){return Date.replaceChars.longMonths[this.getMonth()]},m:function(){return(9>this.getMonth()?"0":"")+(this.getMonth()+1)},M:function(){return Date.replaceChars.shortMonths[this.getMonth()]},
n:function(){return this.getMonth()+1},t:function(){return"Not Yet Supported"},L:function(){return 0==this.getFullYear()%4&&0!=this.getFullYear()%100||0==this.getFullYear()%400?"1":"0"},o:function(){return"Not Supported"},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return 12>this.getHours()?"am":"pm"},A:function(){return 12>this.getHours()?"AM":"PM"},B:function(){return"Not Yet Supported"},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},
h:function(){return(10>(this.getHours()%12||12)?"0":"")+(this.getHours()%12||12)},H:function(){return(10>this.getHours()?"0":"")+this.getHours()},i:function(){return(10>this.getMinutes()?"0":"")+this.getMinutes()},s:function(){return(10>this.getSeconds()?"0":"")+this.getSeconds()},e:function(){return"Not Yet Supported"},I:function(){return"Not Supported"},O:function(){return(0>-this.getTimezoneOffset()?"-":"+")+(10>Math.abs(this.getTimezoneOffset()/60)?"0":"")+Math.abs(this.getTimezoneOffset()/60)+
"00"},P:function(){return(0>-this.getTimezoneOffset()?"-":"+")+(10>Math.abs(this.getTimezoneOffset()/60)?"0":"")+Math.abs(this.getTimezoneOffset()/60)+":"+(10>Math.abs(this.getTimezoneOffset()%60)?"0":"")+Math.abs(this.getTimezoneOffset()%60)},T:function(){var a=this.getMonth();this.setMonth(0);var b=this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/,"$1");this.setMonth(a);return b},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d")+"T"+this.format("H:i:sP")},
r:function(){return this.toString()},U:function(){return this.getTime()/1E3}};
(function(f){function j(b){c.drop(b);e=b.dataTransfer.files;if(null===e||void 0===e)return c.error(g[0]),!1;k=e.length;n();b.preventDefault();return!1}function o(b,d,e){var a="";f.each(c.data,function(b,c){"function"===typeof c&&(c=c());a+="--";a+=e;a+="\r\n";a+='Content-Disposition: form-data; name="'+b+'"';a+="\r\n";a+="\r\n";a+=c;a+="\r\n"});a+="--";a+=e;a+="\r\n";a+='Content-Disposition: form-data; name="'+c.paramname+'"';a+='; filename="'+b+'"';a+="\r\n";a+="Content-Type: application/octet-stream";
a+="\r\n";a+="\r\n";a+=d;a+="\r\n";a+="--";a+=e;a+="--";return a+="\r\n"}function p(b){if(b.lengthComputable){var d=Math.round(100*b.loaded/b.total);if(this.currentProgress!=d){this.currentProgress=d;c.progressUpdated(this.index,this.file,this.currentProgress);var d=(new Date).getTime(),e=d-this.currentStart;e>=c.refresh&&(c.speedUpdated(this.index,this.file,(b.loaded-this.startData)/e),this.startData=b.loaded,this.currentStart=d)}}}function n(){function b(a){if(void 0==a.target.index){var b=a.target,
h;a:{for(h=0;h<k;h++)if(e[h].size==a.total)break a;h=void 0}b.index=h}var f=new XMLHttpRequest,b=f.upload,g=e[a.target.index],j=a.target.index,l=(new Date).getTime();h="------multipartformboundary"+(new Date).getTime();newName=c.rename(g.name);a="string"===typeof newName?o(newName,a.target.result,h):o(g.name,a.target.result,h);b.index=j;b.file=g;b.downloadStartTime=l;b.currentStart=l;b.currentProgress=0;b.startData=0;b.addEventListener("progress",p,!1);f.open("POST",c.url,!0);f.setRequestHeader("content-type",
"multipart/form-data; boundary="+h);f.sendAsBinary(a);c.uploadStarted(j,g,k);f.onload=function(){if(f.responseText){var a=(new Date).getTime()-l,a=c.uploadFinished(j,g,jQuery.parseJSON(f.responseText),a);d++;d==k-i&&c.afterAll();!1===a&&(m=!0)}}}m=!1;if(!e)return c.error(g[0]),!1;var d=0,i=0;if(k>c.maxfiles)return c.error(g[1]),!1;for(var a=0;a<k;a++){if(m)return!1;try{if(!1!=c.beforeEach(e[a])){if(a===k)break;var f=new FileReader,j=1048576*c.maxfilesize;f.index=a;e[a].size>j?(c.error(g[2],e[a],a),
i++):(f.onloadend=b,f.readAsBinaryString(e[a]))}else i++}catch(n){return c.error(g[0]),!1}}}function q(b){clearTimeout(i);b.preventDefault();c.dragEnter(b)}function r(b){clearTimeout(i);b.preventDefault();c.docOver(b);c.dragOver(b)}function s(b){clearTimeout(i);c.dragLeave(b);b.stopPropagation()}function t(b){b.preventDefault();c.docLeave(b);return!1}function u(b){clearTimeout(i);b.preventDefault();c.docEnter(b);return!1}function v(b){clearTimeout(i);b.preventDefault();c.docOver(b);return!1}function w(b){i=
setTimeout(function(){c.docLeave(b)},200)}function d(){}jQuery.event.props.push("dataTransfer");var c={},x={url:"",refresh:1E3,paramname:"userfile",maxfiles:25,maxfilesize:1,data:{},drop:d,dragEnter:d,dragOver:d,dragLeave:d,docEnter:d,docOver:d,docLeave:d,beforeEach:d,afterAll:d,rename:d,error:function(b){alert(b)},uploadStarted:d,uploadFinished:d,progressUpdated:d,speedUpdated:d},g=["BrowserNotSupported","TooManyFiles","FileTooLarge"],i,m=!1,k=0,e;f.fn.filedrop=function(b){c=f.extend({},x,b);this.bind("drop",
j).bind("dragenter",q).bind("dragover",r).bind("dragleave",s);f(document).bind("drop",t).bind("dragenter",u).bind("dragover",v).bind("dragleave",w)};try{XMLHttpRequest.prototype.sendAsBinary||(XMLHttpRequest.prototype.sendAsBinary=function(b){b=Array.prototype.map.call(b,function(b){return b.charCodeAt(0)&255});b=new Uint8Array(b);this.send(b.buffer)})}catch(y){}})(jQuery);
(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(a){return a.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){"accept"==a&&(this.accept=d.isFunction(b)?b:function(a){return a.is(b)});d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(b&&(b.currentItem||b.element)[0]!=this.element[0])if(this.accept.call(this.element[0],b.currentItem||b.element))this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",
a,this.ui(b))},_out:function(a){var b=d.ui.ddmanager.current;if(b&&(b.currentItem||b.element)[0]!=this.element[0])if(this.accept.call(this.element[0],b.currentItem||b.element))this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",a,this.ui(b))},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return!1;var e=!1;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var a=d.data(this,
"droppable");if(a.options.greedy&&!a.options.disabled&&a.options.scope==c.options.scope&&a.accept.call(a.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(a,{offset:a.element.offset()}),a.options.tolerance))return e=!0,!1});return e?!1:this.accept.call(this.element[0],c.currentItem||c.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",a,this.ui(c)),this.element):
!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.21"});d.ui.intersect=function(a,b,c){if(!b.offset)return!1;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;
case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return!1}};
d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible="none"!=c[f].element.css("display");c[f].visible&&("mousedown"==
e&&c[f]._activate.call(c[f],b),c[f].offset=c[f].element.offset(),c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight})}},drop:function(a,b){var c=!1;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options&&(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance)&&(c=this._drop.call(this,b)||c),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||a.element)))this.isout=1,this.isover=
0,this._deactivate.call(this,b)});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var c=d.ui.intersect(a,this,this.options.tolerance);if(c=!c&&1==this.isover?"isout":c&&0==
this.isover?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");g.length&&(e=d.data(g[0],"droppable"),e.greedyChild="isover"==c?1:0)}e&&"isover"==c&&(e.isover=0,e.isout=1,e._out.call(e,b));this[c]=1;this["isout"==c?"isover":"isout"]=0;this["isover"==c?"_over":"_out"].call(this,b);e&&"isout"==c&&(e.isout=0,e.isover=1,e._over.call(e,b))}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable");a.options.refreshPositions||
d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery);
(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"==this.options.helper&&!/^(?: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"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(a){var c=this.options;if(this.helper||c.disabled||d(a.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(a);if(!this.handle)return!1;c.iframeFix&&d(!0===c.iframeFix?"iframe":c.iframeFix).each(function(){d('<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(d(this).offset()).appendTo("body")});return!0},_mouseStart:function(a){var c=this.options;this.helper=this._createHelper(a);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();
d.ui.ddmanager&&(d.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};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);
this.originalPageX=a.pageX;this.originalPageY=a.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(!1===this._trigger("start",a))return this._clear(),!1;this._cacheHelperProportions();d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this._mouseDrag(a,!0);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return!0},_mouseDrag:function(a,c){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!c){var b=this._uiHash();if(!1===this._trigger("drag",a,b))return this._mouseUp({}),!1;this.position=b.position}if(!this.options.axis||"y"!=this.options.axis)this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||"x"!=this.options.axis)this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return!1},_mouseStop:function(a){var c=!1;d.ui.ddmanager&&!this.options.dropBehaviour&&(c=d.ui.ddmanager.drop(this,a));this.dropped&&(c=this.dropped,this.dropped=
!1);for(var b=this.element[0],f=!1;b&&(b=b.parentNode);)b==document&&(f=!0);if(!f&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!c||"valid"==this.options.revert&&c||!0===this.options.revert||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var e=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",a)!==false&&e._clear()})}else!1!==this._trigger("stop",a)&&this._clear();return!1},
_mouseUp:function(a){!0===this.options.iframeFix&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var c=!this.options.handle||!d(this.options.handle,this.element).length?!0:!1;d(this.options.handle,this.element).find("*").andSelf().each(function(){this==
a.target&&(c=!0)});return c},_createHelper:function(a){var c=this.options,a=d.isFunction(c.helper)?d(c.helper.apply(this.element[0],[a])):"clone"==c.helper?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo("parent"==c.appendTo?this.element[0].parentNode:c.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){"string"==typeof a&&(a=a.split(" "));d.isArray(a)&&(a=
{left:+a[0],top:+a[1]||0});"left"in a&&(this.offset.click.left=a.left+this.margins.left);"right"in a&&(this.offset.click.left=this.helperProportions.width-a.right+this.margins.left);"top"in a&&(this.offset.click.top=a.top+this.margins.top);"bottom"in a&&(this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&
d.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(a.left+=this.scrollParent.scrollLeft(),a.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=
this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;"parent"==a.containment&&(a.containment=this.helper[0].parentNode);if("document"==a.containment||"window"==a.containment)this.containment=["document"==a.containment?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==a.containment?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==a.containment?0:d(window).scrollLeft())+
d("document"==a.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==a.containment?0:d(window).scrollTop())+(d("document"==a.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var a=d(a.containment),c=a[0];if(c){a.offset();var b="hidden"!=d(c).css("overflow");this.containment=[(parseInt(d(c).css("borderLeftWidth"),
10)||0)+(parseInt(d(c).css("paddingLeft"),10)||0),(parseInt(d(c).css("borderTopWidth"),10)||0)+(parseInt(d(c).css("paddingTop"),10)||0),(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(d(c).css("borderLeftWidth"),10)||0)-(parseInt(d(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(d(c).css("borderTopWidth"),10)||0)-(parseInt(d(c).css("paddingBottom"),10)||0)-this.helperProportions.height-
this.margins.top-this.margins.bottom];this.relative_container=a}}else a.containment.constructor==Array&&(this.containment=a.containment)},_convertPositionTo:function(a,c){c||(c=this.position);var b="absolute"==a?1:-1,f="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(d.browser.safari&&
526>d.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():e?0:f.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():e?0:f.scrollLeft())*b)}},_generatePosition:function(a){var c=this.options,b="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(b[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;this.containment&&(this.relative_container?(g=this.relative_container.offset(),g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]):g=this.containment,a.pageX-this.offset.click.left<g[0]&&(e=g[0]+this.offset.click.left),a.pageY-this.offset.click.top<g[1]&&(h=g[1]+this.offset.click.top),a.pageX-this.offset.click.left>
g[2]&&(e=g[2]+this.offset.click.left),a.pageY-this.offset.click.top>g[3]&&(h=g[3]+this.offset.click.top));c.grid&&(h=c.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-c.grid[1]:h+c.grid[1]:h,e=c.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>
g[2])?e:!(e-this.offset.click.left<g[0])?e-c.grid[0]:e+c.grid[0]:e)}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():f?0:b.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&526>d.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():
f?0:b.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=!1},_trigger:function(a,c,b){b=b||this._uiHash();d.ui.plugin.call(this,a,[c,b]);"drag"==a&&(this.positionAbs=this._convertPositionTo("absolute"));return d.Widget.prototype._trigger.call(this,a,c,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,
offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.21"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,c){var b=d(this).data("draggable"),f=b.options,e=d.extend({},c,{item:b.element});b.sortables=[];d(f.connectToSortable).each(function(){var c=d.data(this,"sortable");c&&!c.options.disabled&&(b.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",a,e))})},stop:function(a,c){var b=d(this).data("draggable"),f=d.extend({},
c,{item:b.element});d.each(b.sortables,function(){this.instance.isOver?(this.instance.isOver=0,b.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(a),this.instance.options.helper=this.instance.options._helper,"original"==b.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",a,f))})},drag:function(a,c){var b=d(this).data("draggable"),
f=this;d.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},
a.target=this.instance.currentItem[0],this.instance._mouseCapture(a,!0),this.instance._mouseStart(a,!0,!0),this.instance.offset.click.top=b.offset.click.top,this.instance.offset.click.left=b.offset.click.left,this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top,b._trigger("toSortable",a),b.dropped=this.instance.element,b.currentItem=b.element,this.instance.fromOutside=b),this.instance.currentItem&&
this.instance._mouseDrag(a)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",a,this.instance._uiHash(this.instance)),this.instance._mouseStop(a,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),b._trigger("fromSortable",a),b.dropped=!1)})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=
d("body"),c=d(this).data("draggable").options;a.css("cursor")&&(c._cursor=a.css("cursor"));a.css("cursor",c.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,c){var b=d(c.helper),f=d(this).data("draggable").options;b.css("opacity")&&(f._opacity=b.css("opacity"));b.css("opacity",f.opacity)},stop:function(a,c){var b=d(this).data("draggable").options;b._opacity&&d(c.helper).css("opacity",
b._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");a.scrollParent[0]!=document&&"HTML"!=a.scrollParent[0].tagName&&(a.overflowOffset=a.scrollParent.offset())},drag:function(a){var c=d(this).data("draggable"),b=c.options,f=!1;if(c.scrollParent[0]!=document&&"HTML"!=c.scrollParent[0].tagName){if(!b.axis||"x"!=b.axis)c.overflowOffset.top+c.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity?c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop+
b.scrollSpeed:a.pageY-c.overflowOffset.top<b.scrollSensitivity&&(c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop-b.scrollSpeed);if(!b.axis||"y"!=b.axis)c.overflowOffset.left+c.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity?c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft+b.scrollSpeed:a.pageX-c.overflowOffset.left<b.scrollSensitivity&&(c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft-b.scrollSpeed)}else{if(!b.axis||"x"!=b.axis)a.pageY-d(document).scrollTop()<
b.scrollSensitivity?f=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed):d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity&&(f=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed));if(!b.axis||"y"!=b.axis)a.pageX-d(document).scrollLeft()<b.scrollSensitivity?f=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed):d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity&&(f=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed))}!1!==
f&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(c,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),c=a.options;a.snapElements=[];d(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var b=d(this),c=b.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(a,c){for(var b=d(this).data("draggable"),f=b.options,e=f.snapTolerance,
h=c.offset.left,g=h+b.helperProportions.width,n=c.offset.top,o=n+b.helperProportions.height,i=b.snapElements.length-1;0<=i;i--){var j=b.snapElements[i].left,l=j+b.snapElements[i].width,k=b.snapElements[i].top,m=k+b.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&&o<m+e){if("inner"!=f.snapMode){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;p&&(c.position.top=b._convertPositionTo("relative",
{top:k-b.helperProportions.height,left:0}).top-b.margins.top);q&&(c.position.top=b._convertPositionTo("relative",{top:m,left:0}).top-b.margins.top);r&&(c.position.left=b._convertPositionTo("relative",{top:0,left:j-b.helperProportions.width}).left-b.margins.left);s&&(c.position.left=b._convertPositionTo("relative",{top:0,left:l}).left-b.margins.left)}var t=p||q||r||s;if("outer"!=f.snapMode&&(p=Math.abs(k-n)<=e,q=Math.abs(m-o)<=e,r=Math.abs(j-h)<=e,s=Math.abs(l-g)<=e,p&&(c.position.top=b._convertPositionTo("relative",
{top:k,left:0}).top-b.margins.top),q&&(c.position.top=b._convertPositionTo("relative",{top:m-b.helperProportions.height,left:0}).top-b.margins.top),r&&(c.position.left=b._convertPositionTo("relative",{top:0,left:j}).left-b.margins.left),s))c.position.left=b._convertPositionTo("relative",{top:0,left:l-b.helperProportions.width}).left-b.margins.left;!b.snapElements[i].snapping&&(p||q||r||s||t)&&b.options.snap.snap&&b.options.snap.snap.call(b.element,a,d.extend(b._uiHash(),{snapItem:b.snapElements[i].item}));
b.snapElements[i].snapping=p||q||r||s||t}else b.snapElements[i].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,a,d.extend(b._uiHash(),{snapItem:b.snapElements[i].item})),b.snapElements[i].snapping=!1}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options,a=d.makeArray(d(a.stack)).sort(function(a,c){return(parseInt(d(a).css("zIndex"),10)||0)-(parseInt(d(c).css("zIndex"),10)||0)});if(a.length){var c=parseInt(a[0].style.zIndex)||0;d(a).each(function(a){this.style.zIndex=
c+a});this[0].style.zIndex=c+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,c){var b=d(c.helper),f=d(this).data("draggable").options;b.css("zIndex")&&(f._zIndex=b.css("zIndex"));b.css("zIndex",f.zIndex)},stop:function(a,c){var b=d(this).data("draggable").options;b._zIndex&&d(c.helper).css("zIndex",b._zIndex)}})})(jQuery);
(function(b){function d(){var a=window.location.hash,c=b('ul.tabs [href*="'+a+'"]'),a=b(a);c.length&&!c.hasClass("active")&&a.length&&(c.closest(".tabs").find(".active").removeClass("active"),c.addClass("active"),a.show().addClass("active").siblings().hide().removeClass("active"))}b(window).on("hashchange.skeleton",d);d();b(d)})(jQuery);
$("document").ready(function(){$("a#logout").click(function(){$("#profile").slideToggle()});$("#profile").hover(function(){$(".profile_change").show()},function(){$(".profile_change").hide()});$("#close").click(function(){$("#profile").hide()})});
jQuery.fn.printt=function(){if(1<this.length)this.eq(0).print();else if(this.length){var b="printer-"+(new Date).getTime(),c=$("<iframe name='"+b+"'>");c.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first"));var b=window.frames[b],a=b.document;$("<div>").append($("style").clone());a.open();a.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');a.write("<html>");
a.write("<head>");a.write("<title>");a.write(document.title);a.write("</title>");a.write("<style type='text/css'> .vehical{cursor : pointer;}; #bottomBigPaging span a{cursor: pointer; border-radius: 7px 7px 7px 7px ! important; padding: 2px 5px;}; #bottomBigPaging span a:hover{padding: 3px 5px;}; .paginDisabled{ cursor: default !important;\tbackground: none !important; padding: 2px 4px !important;  \ttext-decoration: none !important;}</style><link rel='stylesheet' href='"+url_main+"assets/dashboard/stylesheets/all_in_one.css'><link rel='stylesheet' href='"+
url_main+"assets/dashboard/stylesheets/layout.css'><link rel='stylesheet' href='"+url_main+"assets/style/css/style_all_min.css' />\x3c!--<link href='"+url_main+"assets/style/css/jquery-ui-timepicker.css' rel='stylesheet' type='text/css' />--\x3e\x3c!-- <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=false&v=3&libraries=geometry'>\x3c/script>--\x3e\x3c!--[if lt IE 9]><script src='http://html5shim.googlecode.com/svn/trunk/html5.js'>\x3c/script><![endif]--\x3e<link type='text/css' href='"+
url_main+"assets/jquery/ui-themes/redmond/jquery-ui-1.8.5.custom.css' rel='stylesheet' /><link rel='stylesheet' type='text/css' href='"+url_main+"assets/dash-lib/themes/default/dashboardui.css' />");a.write("</head>");a.write("<body>");a.write("<h3>");a.write($("#optdetail option:selected").html());a.write("</h3>");a.write(this.html());a.write("</body>");a.write("</html>");a.close();b.focus();b.print();setTimeout(function(){c.remove()},6E4)}};