text: /*!
   * jQuery JavaScript Library v1.7.2
   * http://jquery.com/
   *
   * Copyright 2011, John Resig
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * Includes Sizzle.js
   * http://sizzlejs.com/
   * Copyright 2011, The Dojo Foundation
   * Released under the MIT, BSD, and GPL Licenses.
   *
   * Date: Wed Mar 21 12:46:34 2012 -0700
   */
  !function(t,e){function i(t){var e,i,n=j[t]={};for(t=t.split(/\s+/),e=0,i=t.length;i>e;e++)n[t[e]]=!0;return n}function n(t,i,n){if(n===e&&1===t.nodeType){var s="data-"+i.replace(L,"-$1").toLowerCase();if(n=t.getAttribute(s),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:z.isNumeric(n)?+n:O.test(n)?z.parseJSON(n):n}catch(o){}z.data(t,i,n)}else n=e}return n}function s(t){for(var e in t)if(("data"!==e||!z.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function o(t,e,i){var n=e+"defer",s=e+"queue",o=e+"mark",a=z._data(t,n);!a||"queue"!==i&&z._data(t,s)||"mark"!==i&&z._data(t,o)||setTimeout(function(){z._data(t,s)||z._data(t,o)||(z.removeData(t,n,!0),a.fire())},0)}function a(){return!1}function r(){return!0}function l(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function c(t,e,i){if(e=e||0,z.isFunction(e))return z.grep(t,function(t,n){var s=!!e.call(t,n,t);return s===i});if(e.nodeType)return z.grep(t,function(t){return t===e===i});if("string"==typeof e){var n=z.grep(t,function(t){return 1===t.nodeType});if(he.test(e))return z.filter(e,n,!i);e=z.filter(e,n)}return z.grep(t,function(t){return z.inArray(t,e)>=0===i})}function h(t){var e=fe.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function u(t){return z.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t,e){if(1===e.nodeType&&z.hasData(t)){var i,n,s,o=z._data(t),a=z._data(e,o),r=o.events;if(r){delete a.handle,a.events={};for(i in r)for(n=0,s=r[i].length;s>n;n++)z.event.add(e,i,r[i][n])}a.data&&(a.data=z.extend({},a.data))}}function p(t,e){var i;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),i=e.nodeName.toLowerCase(),"object"===i?e.outerHTML=t.outerHTML:"input"!==i||"checkbox"!==t.type&&"radio"!==t.type?"option"===i?e.selected=t.defaultSelected:"input"===i||"textarea"===i?e.defaultValue=t.defaultValue:"script"===i&&e.text!==t.text&&(e.text=t.text):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(z.expando),e.removeAttribute("_submit_attached"),e.removeAttribute("_change_attached"))}function f(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function g(t){("checkbox"===t.type||"radio"===t.type)&&(t.defaultChecked=t.checked)}function m(t){var e=(t.nodeName||"").toLowerCase();"input"===e?g(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&z.grep(t.getElementsByTagName("input"),g)}function v(t){var e=P.createElement("div");return Se.appendChild(e),e.innerHTML=t.outerHTML,e.firstChild}function b(t,e,i){var n="width"===e?t.offsetWidth:t.offsetHeight,s="width"===e?1:0,o=4;if(n>0){if("border"!==i)for(;o>s;s+=2)i||(n-=parseFloat(z.css(t,"padding"+Fe[s]))||0),"margin"===i?n+=parseFloat(z.css(t,i+Fe[s]))||0:n-=parseFloat(z.css(t,"border"+Fe[s]+"Width"))||0;return n+"px"}if(n=Me(t,e),(0>n||null==n)&&(n=t.style[e]),je.test(n))return n;if(n=parseFloat(n)||0,i)for(;o>s;s+=2)n+=parseFloat(z.css(t,"padding"+Fe[s]))||0,"padding"!==i&&(n+=parseFloat(z.css(t,"border"+Fe[s]+"Width"))||0),"margin"===i&&(n+=parseFloat(z.css(t,i+Fe[s]))||0);return n+"px"}function _(t){return function(e,i){if("string"!=typeof e&&(i=e,e="*"),z.isFunction(i))for(var n,s,o,a=e.toLowerCase().split(ei),r=0,l=a.length;l>r;r++)n=a[r],o=/^\+/.test(n),o&&(n=n.substr(1)||"*"),s=t[n]=t[n]||[],s[o?"unshift":"push"](i)}}function y(t,i,n,s,o,a){o=o||i.dataTypes[0],a=a||{},a[o]=!0;for(var r,l=t[o],c=0,h=l?l.length:0,u=t===oi;h>c&&(u||!r);c++)r=l[c](i,n,s),"string"==typeof r&&(!u||a[r]?r=e:(i.dataTypes.unshift(r),r=y(t,i,n,s,r,a)));return!u&&r||a["*"]||(r=y(t,i,n,s,"*",a)),r}function w(t,i){var n,s,o=z.ajaxSettings.flatOptions||{};for(n in i)i[n]!==e&&((o[n]?t:s||(s={}))[n]=i[n]);s&&z.extend(!0,t,s)}function x(t,e,i,n){if(z.isArray(e))z.each(e,function(e,s){i||qe.test(t)?n(t,s):x(t+"["+("object"==typeof s?e:"")+"]",s,i,n)});else if(i||"object"!==z.type(e))n(t,e);else for(var s in e)x(t+"["+s+"]",e[s],i,n)}function k(t,i,n){var s,o,a,r,l=t.contents,c=t.dataTypes,h=t.responseFields;for(o in h)o in n&&(i[h[o]]=n[o]);for(;"*"===c[0];)c.shift(),s===e&&(s=t.mimeType||i.getResponseHeader("content-type"));if(s)for(o in l)if(l[o]&&l[o].test(s)){c.unshift(o);break}if(c[0]in n)a=c[0];else{for(o in n){if(!c[0]||t.converters[o+" "+c[0]]){a=o;break}r||(r=o)}a=a||r}return a?(a!==c[0]&&c.unshift(a),n[a]):void 0}function C(t,i){t.dataFilter&&(i=t.dataFilter(i,t.dataType));var n,s,o,a,r,l,c,h,u=t.dataTypes,d={},p=u.length,f=u[0];for(n=1;p>n;n++){if(1===n)for(s in t.converters)"string"==typeof s&&(d[s.toLowerCase()]=t.converters[s]);if(a=f,f=u[n],"*"===f)f=a;else if("*"!==a&&a!==f){if(r=a+" "+f,l=d[r]||d["* "+f],!l){h=e;for(c in d)if(o=c.split(" "),(o[0]===a||"*"===o[0])&&(h=d[o[1]+" "+f])){c=d[c],c===!0?l=h:h===!0&&(l=c);break}}l||h||z.error("No conversion from "+r.replace(" "," to ")),l!==!0&&(i=l?l(i):h(c(i)))}}return i}function D(){try{return new t.XMLHttpRequest}catch(e){}}function T(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function $(){return setTimeout(S,0),vi=z.now()}function S(){vi=e}function M(t,e){var i={};return z.each(wi.concat.apply([],wi.slice(0,e)),function(){i[this]=t}),i}function N(t){if(!bi[t]){var e=P.body,i=z("<"+t+">").appendTo(e),n=i.css("display");i.remove(),("none"===n||""===n)&&(fi||(fi=P.createElement("iframe"),fi.frameBorder=fi.width=fi.height=0),e.appendChild(fi),gi&&fi.createElement||(gi=(fi.contentWindow||fi.contentDocument).document,gi.write((z.support.boxModel?"<!doctype html>":"")+"<html><body>"),gi.close()),i=gi.createElement(t),gi.body.appendChild(i),n=z.css(i,"display"),e.removeChild(fi)),bi[t]=n}return bi[t]}function I(t){return z.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var P=t.document,E=t.navigator,A=t.location,z=function(){function i(){if(!r.isReady){try{P.documentElement.doScroll("left")}catch(t){return void setTimeout(i,1)}r.ready()}}var n,s,o,a,r=function(t,e){return new r.fn.init(t,e,n)},l=t.jQuery,c=t.$,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,u=/\S/,d=/^\s+/,p=/\s+$/,f=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,g=/^[\],:{}\s]*$/,m=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,b=/(?:^|:|,)(?:\s*\[)+/g,_=/(webkit)[ \/]([\w.]+)/,y=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,C=/^-ms-/,D=function(t,e){return(e+"").toUpperCase()},T=E.userAgent,$=Object.prototype.toString,S=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,I=String.prototype.trim,A=Array.prototype.indexOf,z={};return r.fn=r.prototype={constructor:r,init:function(t,i,n){var s,o,a,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!i&&P.body)return this.context=P,this[0]=P.body,this.selector=t,this.length=1,this;if("string"==typeof t){if(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:h.exec(t),!s||!s[1]&&i)return!i||i.jquery?(i||n).find(t):this.constructor(i).find(t);if(s[1])return i=i instanceof r?i[0]:i,l=i?i.ownerDocument||i:P,a=f.exec(t),a?r.isPlainObject(i)?(t=[P.createElement(a[1])],r.fn.attr.call(t,i,!0)):t=[l.createElement(a[1])]:(a=r.buildFragment([s[1]],[l]),t=(a.cacheable?r.clone(a.fragment):a.fragment).childNodes),r.merge(this,t);if(o=P.getElementById(s[2]),o&&o.parentNode){if(o.id!==s[2])return n.find(t);this.length=1,this[0]=o}return this.context=P,this.selector=t,this}return r.isFunction(t)?n.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),r.makeArray(t,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return N.call(this,0)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,i){var n=this.constructor();return r.isArray(t)?M.apply(n,t):r.merge(n,t),n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+i:e&&(n.selector=this.selector+"."+e+"("+i+")"),n},each:function(t,e){return r.each(this,t,e)},ready:function(t){return r.bindReady(),o.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(t){return this.pushStack(r.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:M,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var t,i,n,s,o,a,l=arguments[0]||{},c=1,h=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},c=2),"object"==typeof l||r.isFunction(l)||(l={}),h===c&&(l=this,--c);h>c;c++)if(null!=(t=arguments[c]))for(i in t)n=l[i],s=t[i],l!==s&&(u&&s&&(r.isPlainObject(s)||(o=r.isArray(s)))?(o?(o=!1,a=n&&r.isArray(n)?n:[]):a=n&&r.isPlainObject(n)?n:{},l[i]=r.extend(u,a,s)):s!==e&&(l[i]=s));return l},r.extend({noConflict:function(e){return t.$===r&&(t.$=c),e&&t.jQuery===r&&(t.jQuery=l),r},isReady:!1,readyWait:1,holdReady:function(t){t?r.readyWait++:r.ready(!0)},ready:function(t){if(t===!0&&!--r.readyWait||t!==!0&&!r.isReady){if(!P.body)return setTimeout(r.ready,1);if(r.isReady=!0,t!==!0&&--r.readyWait>0)return;o.fireWith(P,[r]),r.fn.trigger&&r(P).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=r.Callbacks("once memory"),"complete"===P.readyState)return setTimeout(r.ready,1);if(P.addEventListener)P.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",r.ready,!1);else if(P.attachEvent){P.attachEvent("onreadystatechange",a),t.attachEvent("onload",r.ready);var e=!1;try{e=null==t.frameElement}catch(n){}P.documentElement.doScroll&&e&&i()}}},isFunction:function(t){return"function"===r.type(t)},isArray:Array.isArray||function(t){return"array"===r.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):z[$.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==r.type(t)||t.nodeType||r.isWindow(t))return!1;try{if(t.constructor&&!S.call(t,"constructor")&&!S.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}var n;for(n in t);return n===e||S.call(t,n)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=r.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):g.test(e.replace(m,"@").replace(v,"]").replace(b,""))?new Function("return "+e)():void r.error("Invalid JSON: "+e)):null},parseXML:function(i){if("string"!=typeof i||!i)return null;var n,s;try{t.DOMParser?(s=new DOMParser,n=s.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(o){n=e}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(e){e&&u.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(C,"ms-").replace(k,D)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,i,n){var s,o=0,a=t.length,l=a===e||r.isFunction(t);if(n)if(l){for(s in t)if(i.apply(t[s],n)===!1)break}else for(;a>o&&i.apply(t[o++],n)!==!1;);else if(l){for(s in t)if(i.call(t[s],s,t[s])===!1)break}else for(;a>o&&i.call(t[o],o,t[o++])!==!1;);return t},trim:I?function(t){return null==t?"":I.call(t)}:function(t){return null==t?"":t.toString().replace(d,"").replace(p,"")},makeArray:function(t,e){var i=e||[];if(null!=t){var n=r.type(t);null==t.length||"string"===n||"function"===n||"regexp"===n||r.isWindow(t)?M.call(i,t):r.merge(i,t)}return i},inArray:function(t,e,i){var n;if(e){if(A)return A.call(e,t,i);for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,i){var n=t.length,s=0;if("number"==typeof i.length)for(var o=i.length;o>s;s++)t[n++]=i[s];else for(;i[s]!==e;)t[n++]=i[s++];return t.length=n,t},grep:function(t,e,i){var n,s=[];i=!!i;for(var o=0,a=t.length;a>o;o++)n=!!e(t[o],o),i!==n&&s.push(t[o]);return s},map:function(t,i,n){var s,o,a=[],l=0,c=t.length,h=t instanceof r||c!==e&&"number"==typeof c&&(c>0&&t[0]&&t[c-1]||0===c||r.isArray(t));if(h)for(;c>l;l++)s=i(t[l],l,n),null!=s&&(a[a.length]=s);else for(o in t)s=i(t[o],o,n),null!=s&&(a[a.length]=s);return a.concat.apply([],a)},guid:1,proxy:function(t,i){if("string"==typeof i){var n=t[i];i=t,t=n}if(!r.isFunction(t))return e;var s=N.call(arguments,2),o=function(){return t.apply(i,s.concat(N.call(arguments)))};return o.guid=t.guid=t.guid||o.guid||r.guid++,o},access:function(t,i,n,s,o,a,l){var c,h=null==n,u=0,d=t.length;if(n&&"object"==typeof n){for(u in n)r.access(t,i,u,n[u],1,a,s);o=1}else if(s!==e){if(c=l===e&&r.isFunction(s),h&&(c?(c=i,i=function(t,e,i){return c.call(r(t),i)}):(i.call(t,s),i=null)),i)for(;d>u;u++)i(t[u],n,c?s.call(t[u],u,i(t[u],n)):s,l);o=1}return o?t:h?i.call(t):d?i(t[0],n):a},now:function(){return(new Date).getTime()},uaMatch:function(t){t=t.toLowerCase();var e=_.exec(t)||y.exec(t)||w.exec(t)||t.indexOf("compatible")<0&&x.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function t(e,i){return new t.fn.init(e,i)}r.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(i,n){return n&&n instanceof r&&!(n instanceof t)&&(n=t(n)),r.fn.init.call(this,i,n,e)},t.fn.init.prototype=t.fn;var e=t(P);return t},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){z["[object "+e+"]"]=e.toLowerCase()}),s=r.uaMatch(T),s.browser&&(r.browser[s.browser]=!0,r.browser.version=s.version),r.browser.webkit&&(r.browser.safari=!0),u.test("\xa0")&&(d=/^[\s\xA0]+/,p=/[\s\xA0]+$/),n=r(P),P.addEventListener?a=function(){P.removeEventListener("DOMContentLoaded",a,!1),r.ready()}:P.attachEvent&&(a=function(){"complete"===P.readyState&&(P.detachEvent("onreadystatechange",a),r.ready())}),r}(),j={};z.Callbacks=function(t){t=t?j[t]||i(t):{};var n,s,o,a,r,l,c=[],h=[],u=function(e){var i,n,s,o;for(i=0,n=e.length;n>i;i++)s=e[i],o=z.type(s),"array"===o?u(s):"function"===o&&(t.unique&&p.has(s)||c.push(s))},d=function(e,i){for(i=i||[],n=!t.memory||[e,i],s=!0,o=!0,l=a||0,a=0,r=c.length;c&&r>l;l++)if(c[l].apply(e,i)===!1&&t.stopOnFalse){n=!0;break}o=!1,c&&(t.once?n===!0?p.disable():c=[]:h&&h.length&&(n=h.shift(),p.fireWith(n[0],n[1])))},p={add:function(){if(c){var t=c.length;u(arguments),o?r=c.length:n&&n!==!0&&(a=t,d(n[0],n[1]))}return this},remove:function(){if(c)for(var e=arguments,i=0,n=e.length;n>i;i++)for(var s=0;s<c.length&&(e[i]!==c[s]||(o&&r>=s&&(r--,l>=s&&l--),c.splice(s--,1),!t.unique));s++);return this},has:function(t){if(c)for(var e=0,i=c.length;i>e;e++)if(t===c[e])return!0;return!1},empty:function(){return c=[],this},disable:function(){return c=h=n=e,this},disabled:function(){return!c},lock:function(){return h=e,n&&n!==!0||p.disable(),this},locked:function(){return!h},fireWith:function(e,i){return h&&(o?t.once||h.push([e,i]):t.once&&n||d(e,i)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!s}};return p};var H=[].slice;z.extend({Deferred:function(t){var e,i=z.Callbacks("once memory"),n=z.Callbacks("once memory"),s=z.Callbacks("memory"),o="pending",a={resolve:i,reject:n,notify:s},r={done:i.add,fail:n.add,progress:s.add,state:function(){return o},isResolved:i.fired,isRejected:n.fired,then:function(t,e,i){return l.done(t).fail(e).progress(i),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,i){return z.Deferred(function(n){z.each({done:[t,"resolve"],fail:[e,"reject"],progress:[i,"notify"]},function(t,e){var i,s=e[0],o=e[1];l[t](z.isFunction(s)?function(){i=s.apply(this,arguments),i&&z.isFunction(i.promise)?i.promise().then(n.resolve,n.reject,n.notify):n[o+"With"](this===l?n:this,[i])}:n[o])})}).promise()},promise:function(t){if(null==t)t=r;else for(var e in r)t[e]=r[e];return t}},l=r.promise({});for(e in a)l[e]=a[e].fire,l[e+"With"]=a[e].fireWith;return l.done(function(){o="resolved"},n.disable,s.lock).fail(function(){o="rejected"},i.disable,s.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){n[t]=arguments.length>1?H.call(arguments,0):e,--r||l.resolveWith(l,n)}}function i(t){return function(e){a[t]=arguments.length>1?H.call(arguments,0):e,l.notifyWith(c,a)}}var n=H.call(arguments,0),s=0,o=n.length,a=new Array(o),r=o,l=1>=o&&t&&z.isFunction(t.promise)?t:z.Deferred(),c=l.promise();if(o>1){for(;o>s;s++)n[s]&&n[s].promise&&z.isFunction(n[s].promise)?n[s].promise().then(e(s),l.reject,i(s)):--r;r||l.resolveWith(l,n)}else l!==t&&l.resolveWith(l,o?[t]:[]);return c}}),z.support=function(){{var e,i,n,s,o,a,r,l,c,h,u,d=P.createElement("div");P.documentElement}if(d.setAttribute("className","t"),d.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",i=d.getElementsByTagName("*"),n=d.getElementsByTagName("a")[0],!i||!i.length||!n)return{};s=P.createElement("select"),o=s.appendChild(P.createElement("option")),a=d.getElementsByTagName("input")[0],e={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==d.className,enctype:!!P.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==P.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},z.boxModel=e.boxModel="CSS1Compat"===P.compatMode,a.checked=!0,e.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,e.optDisabled=!o.disabled;try{delete d.test}catch(p){e.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function(){e.noCloneEvent=!1}),d.cloneNode(!0).fireEvent("onclick")),a=P.createElement("input"),a.value="t",a.setAttribute("type","radio"),e.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),d.appendChild(a),r=P.createDocumentFragment(),r.appendChild(d.lastChild),e.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=a.checked,r.removeChild(a),r.appendChild(d),d.attachEvent)for(h in{submit:1,change:1,focusin:1})c="on"+h,u=c in d,u||(d.setAttribute(c,"return;"),u="function"==typeof d[c]),e[h+"Bubbles"]=u;return r.removeChild(d),r=s=o=d=a=null,z(function(){var i,n,s,o,a,r,c,h,p,f,g,m,v=P.getElementsByTagName("body")[0];v&&(c=1,m="padding:0;margin:0;border:",f="position:absolute;top:0;left:0;width:1px;height:1px;",g=m+"0;visibility:hidden;",h="style='"+f+m+"5px solid #000;",p="<div "+h+"display:block;'><div style='"+m+"0;display:block;overflow:hidden;'></div></div><table "+h+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",i=P.createElement("div"),i.style.cssText=g+"width:0;height:0;position:static;top:0;margin-top:"+c+"px",v.insertBefore(i,v.firstChild),d=P.createElement("div"),i.appendChild(d),d.innerHTML="<table><tr><td style='"+m+"0;display:none'></td><td>t</td></tr></table>",l=d.getElementsByTagName("td"),u=0===l[0].offsetHeight,l[0].style.display="",l[1].style.display="none",e.reliableHiddenOffsets=u&&0===l[0].offsetHeight,t.getComputedStyle&&(d.innerHTML="",r=P.createElement("div"),r.style.width="0",r.style.marginRight="0",d.style.width="2px",d.appendChild(r),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(r,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof d.style.zoom&&(d.innerHTML="",d.style.width=d.style.padding="1px",d.style.border=0,d.style.overflow="hidden",d.style.display="inline",d.style.zoom=1,e.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div style='width:5px;'></div>",e.shrinkWrapBlocks=3!==d.offsetWidth),d.style.cssText=f+g,d.innerHTML=p,n=d.firstChild,s=n.firstChild,o=n.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==s.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},s.style.position="fixed",s.style.top="20px",a.fixedPosition=20===s.offsetTop||15===s.offsetTop,s.style.position=s.style.top="",n.style.overflow="hidden",n.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===s.offsetTop,a.doesNotIncludeMarginInBodyOffset=v.offsetTop!==c,t.getComputedStyle&&(d.style.marginTop="1%",e.pixelMargin="1%"!==(t.getComputedStyle(d,null)||{marginTop:0}).marginTop),"undefined"!=typeof i.style.zoom&&(i.style.zoom=1),v.removeChild(i),r=d=i=null,z.extend(e,a))}),e}();var O=/^(?:\{.*\}|\[.*\])$/,L=/([A-Z])/g;z.extend({cache:{},uuid:0,expando:"jQuery"+(z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?z.cache[t[z.expando]]:t[z.expando],!!t&&!s(t)},data:function(t,i,n,s){if(z.acceptData(t)){var o,a,r,l=z.expando,c="string"==typeof i,h=t.nodeType,u=h?z.cache:t,d=h?t[l]:t[l]&&l,p="events"===i;if(d&&u[d]&&(p||s||u[d].data)||!c||n!==e)return d||(h?t[l]=d=++z.uuid:d=l),u[d]||(u[d]={},h||(u[d].toJSON=z.noop)),("object"==typeof i||"function"==typeof i)&&(s?u[d]=z.extend(u[d],i):u[d].data=z.extend(u[d].data,i)),o=a=u[d],s||(a.data||(a.data={}),a=a.data),n!==e&&(a[z.camelCase(i)]=n),p&&!a[i]?o.events:(c?(r=a[i],null==r&&(r=a[z.camelCase(i)])):r=a,r)}},removeData:function(t,e,i){if(z.acceptData(t)){var n,o,a,r=z.expando,l=t.nodeType,c=l?z.cache:t,h=l?t[r]:r;if(c[h]){if(e&&(n=i?c[h]:c[h].data)){z.isArray(e)||(e in n?e=[e]:(e=z.camelCase(e),e=e in n?[e]:e.split(" ")));for(o=0,a=e.length;a>o;o++)delete n[e[o]];if(!(i?s:z.isEmptyObject)(n))return}(i||(delete c[h].data,s(c[h])))&&(z.support.deleteExpando||!c.setInterval?delete c[h]:c[h]=null,l&&(z.support.deleteExpando?delete t[r]:t.removeAttribute?t.removeAttribute(r):t[r]=null))}}},_data:function(t,e,i){return z.data(t,e,i,!0)},acceptData:function(t){if(t.nodeName){var e=z.noData[t.nodeName.toLowerCase()];if(e)return!(e===!0||t.getAttribute("classid")!==e)}return!0}}),z.fn.extend({data:function(t,i){var s,o,a,r,l,c=this[0],h=0,u=null;if(t===e){if(this.length&&(u=z.data(c),1===c.nodeType&&!z._data(c,"parsedAttrs"))){for(a=c.attributes,l=a.length;l>h;h++)r=a[h].name,0===r.indexOf("data-")&&(r=z.camelCase(r.substring(5)),n(c,r,u[r]));z._data(c,"parsedAttrs",!0)}return u}return"object"==typeof t?this.each(function(){z.data(this,t)}):(s=t.split(".",2),s[1]=s[1]?"."+s[1]:"",o=s[1]+"!",z.access(this,function(i){return i===e?(u=this.triggerHandler("getData"+o,[s[0]]),u===e&&c&&(u=z.data(c,t),u=n(c,t,u)),u===e&&s[1]?this.data(s[0]):u):(s[1]=i,void this.each(function(){var e=z(this);e.triggerHandler("setData"+o,s),z.data(this,t,i),e.triggerHandler("changeData"+o,s)}))},null,i,arguments.length>1,null,!1))},removeData:function(t){return this.each(function(){z.removeData(this,t)})}}),z.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",z._data(t,e,(z._data(t,e)||0)+1))},_unmark:function(t,e,i){if(t!==!0&&(i=e,e=t,t=!1),e){i=i||"fx";var n=i+"mark",s=t?0:(z._data(e,n)||1)-1;s?z._data(e,n,s):(z.removeData(e,n,!0),o(e,i,"mark"))}},queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=z._data(t,e),i&&(!n||z.isArray(i)?n=z._data(t,e,z.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=z.queue(t,e),n=i.shift(),s={};"inprogress"===n&&(n=i.shift()),n&&("fx"===e&&i.unshift("inprogress"),z._data(t,e+".run",s),n.call(t,function(){z.dequeue(t,e)},s)),i.length||(z.removeData(t,e+"queue "+e+".run",!0),o(t,e,"queue"))}}),z.fn.extend({queue:function(t,i){var n=2;return"string"!=typeof t&&(i=t,t="fx",n--),arguments.length<n?z.queue(this[0],t):i===e?this:this.each(function(){var e=z.queue(this,t,i);"fx"===t&&"inprogress"!==e[0]&&z.dequeue(this,t)})},dequeue:function(t){return this.each(function(){z.dequeue(this,t)})},delay:function(t,e){return t=z.fx?z.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,i){function n(){--l||o.resolveWith(a,[a])}"string"!=typeof t&&(i=t,t=e),t=t||"fx";for(var s,o=z.Deferred(),a=this,r=a.length,l=1,c=t+"defer",h=t+"queue",u=t+"mark";r--;)(s=z.data(a[r],c,e,!0)||(z.data(a[r],h,e,!0)||z.data(a[r],u,e,!0))&&z.data(a[r],c,z.Callbacks("once memory"),!0))&&(l++,s.add(n));return n(),o.promise(i)}});var F,W,R,B=/[\n\t\r]/g,q=/\s+/,Y=/\r/g,V=/^(?:button|input)$/i,U=/^(?:button|input|object|select|textarea)$/i,X=/^a(?:rea)?$/i,K=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Q=z.support.getSetAttribute;z.fn.extend({attr:function(t,e){return z.access(this,z.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){z.removeAttr(this,t)})},prop:function(t,e){return z.access(this,z.prop,t,e,arguments.length>1)},removeProp:function(t){return t=z.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(i){}})},addClass:function(t){var e,i,n,s,o,a,r;if(z.isFunction(t))return this.each(function(e){z(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(q),i=0,n=this.length;n>i;i++)if(s=this[i],1===s.nodeType)if(s.className||1!==e.length){for(o=" "+s.className+" ",a=0,r=e.length;r>a;a++)~o.indexOf(" "+e[a]+" ")||(o+=e[a]+" ");s.className=z.trim(o)}else s.className=t;return this},removeClass:function(t){var i,n,s,o,a,r,l;if(z.isFunction(t))return this.each(function(e){z(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(i=(t||"").split(q),n=0,s=this.length;s>n;n++)if(o=this[n],1===o.nodeType&&o.className)if(t){for(a=(" "+o.className+" ").replace(B," "),r=0,l=i.length;l>r;r++)a=a.replace(" "+i[r]+" "," ");o.className=z.trim(a)}else o.className="";return this},toggleClass:function(t,e){var i=typeof t,n="boolean"==typeof e;return this.each(z.isFunction(t)?function(i){z(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var s,o=0,a=z(this),r=e,l=t.split(q);s=l[o++];)r=n?r:!a.hasClass(s),a[r?"addClass":"removeClass"](s);else("undefined"===i||"boolean"===i)&&(this.className&&z._data(this,"__className__",this.className),this.className=this.className||t===!1?"":z._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(B," ").indexOf(e)>-1)return!0;return!1},val:function(t){var i,n,s,o=this[0];{if(arguments.length)return s=z.isFunction(t),this.each(function(n){var o,a=z(this);1===this.nodeType&&(o=s?t.call(this,n,a.val()):t,null==o?o="":"number"==typeof o?o+="":z.isArray(o)&&(o=z.map(o,function(t){return null==t?"":t+""})),i=z.valHooks[this.type]||z.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,o,"value")!==e||(this.value=o))});if(o)return i=z.valHooks[o.type]||z.valHooks[o.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(o,"value"))!==e?n:(n=o.value,"string"==typeof n?n.replace(Y,""):null==n?"":n)}}}),z.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,i,n,s,o=t.selectedIndex,a=[],r=t.options,l="select-one"===t.type;if(0>o)return null;for(i=l?o:0,n=l?o+1:r.length;n>i;i++)if(s=r[i],!(!s.selected||(z.support.optDisabled?s.disabled:null!==s.getAttribute("disabled"))||s.parentNode.disabled&&z.nodeName(s.parentNode,"optgroup"))){if(e=z(s).val(),l)return e;a.push(e)}return l&&!a.length&&r.length?z(r[o]).val():a},set:function(t,e){var i=z.makeArray(e);return z(t).find("option").each(function(){this.selected=z.inArray(z(this).val(),i)>=0}),i.length||(t.selectedIndex=-1),i}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,i,n,s){var o,a,r,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return s&&i in z.attrFn?z(t)[i](n):"undefined"==typeof t.getAttribute?z.prop(t,i,n):(r=1!==l||!z.isXMLDoc(t),r&&(i=i.toLowerCase(),a=z.attrHooks[i]||(K.test(i)?W:F)),n!==e?null===n?void z.removeAttr(t,i):a&&"set"in a&&r&&(o=a.set(t,n,i))!==e?o:(t.setAttribute(i,""+n),n):a&&"get"in a&&r&&null!==(o=a.get(t,i))?o:(o=t.getAttribute(i),null===o?e:o))},removeAttr:function(t,e){var i,n,s,o,a,r=0;if(e&&1===t.nodeType)for(n=e.toLowerCase().split(q),o=n.length;o>r;r++)s=n[r],s&&(i=z.propFix[s]||s,a=K.test(s),a||z.attr(t,s,""),t.removeAttribute(Q?s:i),a&&i in t&&(t[i]=!1))},attrHooks:{type:{set:function(t,e){if(V.test(t.nodeName)&&t.parentNode)z.error("type property can't be changed");else if(!z.support.radioValue&&"radio"===e&&z.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}},value:{get:function(t,e){return F&&z.nodeName(t,"button")?F.get(t,e):e in t?t.value:null},set:function(t,e,i){return F&&z.nodeName(t,"button")?F.set(t,e,i):void(t.value=e)}}},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(t,i,n){var s,o,a,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return a=1!==r||!z.isXMLDoc(t),a&&(i=z.propFix[i]||i,o=z.propHooks[i]),n!==e?o&&"set"in o&&(s=o.set(t,n,i))!==e?s:t[i]=n:o&&"get"in o&&null!==(s=o.get(t,i))?s:t[i]},propHooks:{tabIndex:{get:function(t){var i=t.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):U.test(t.nodeName)||X.test(t.nodeName)&&t.href?0:e}}}}),z.attrHooks.tabindex=z.propHooks.tabIndex,W={get:function(t,i){var n,s=z.prop(t,i);return s===!0||"boolean"!=typeof s&&(n=t.getAttributeNode(i))&&n.nodeValue!==!1?i.toLowerCase():e},set:function(t,e,i){var n;return e===!1?z.removeAttr(t,i):(n=z.propFix[i]||i,n in t&&(t[n]=!0),t.setAttribute(i,i.toLowerCase())),i}},Q||(R={name:!0,id:!0,coords:!0},F=z.valHooks.button={get:function(t,i){var n;return n=t.getAttributeNode(i),n&&(R[i]?""!==n.nodeValue:n.specified)?n.nodeValue:e},set:function(t,e,i){var n=t.getAttributeNode(i);return n||(n=P.createAttribute(i),t.setAttributeNode(n)),n.nodeValue=e+""}},z.attrHooks.tabindex.set=F.set,z.each(["width","height"],function(t,e){z.attrHooks[e]=z.extend(z.attrHooks[e],{set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}})}),z.attrHooks.contenteditable={get:F.get,set:function(t,e,i){""===e&&(e="false"),F.set(t,e,i)}}),z.support.hrefNormalized||z.each(["href","src","width","height"],function(t,i){z.attrHooks[i]=z.extend(z.attrHooks[i],{get:function(t){var n=t.getAttribute(i,2);return null===n?e:n}})}),z.support.style||(z.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),z.support.optSelected||(z.propHooks.selected=z.extend(z.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),z.support.enctype||(z.propFix.enctype="encoding"),z.support.checkOn||z.each(["radio","checkbox"],function(){z.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),z.each(["radio","checkbox"],function(){z.valHooks[this]=z.extend(z.valHooks[this],{set:function(t,e){return z.isArray(e)?t.checked=z.inArray(z(t).val(),e)>=0:void 0}})});var G=/^(?:textarea|input|select)$/i,J=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,te=/^key/,ee=/^(?:mouse|contextmenu)|click/,ie=/^(?:focusinfocus|focusoutblur)$/,ne=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,se=function(t){var e=ne.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},oe=function(t,e){var i=t.attributes||{};return!(e[1]&&t.nodeName.toLowerCase()!==e[1]||e[2]&&(i.id||{}).value!==e[2]||e[3]&&!e[3].test((i["class"]||{}).value))},ae=function(t){return z.event.special.hover?t:t.replace(Z,"mouseenter$1 mouseleave$1")};z.event={add:function(t,i,n,s,o){var a,r,l,c,h,u,d,p,f,g,m;if(3!==t.nodeType&&8!==t.nodeType&&i&&n&&(a=z._data(t))){for(n.handler&&(f=n,n=f.handler,o=f.selector),n.guid||(n.guid=z.guid++),l=a.events,l||(a.events=l={}),r=a.handle,r||(a.handle=r=function(t){return"undefined"==typeof z||t&&z.event.triggered===t.type?e:z.event.dispatch.apply(r.elem,arguments)
  },r.elem=t),i=z.trim(ae(i)).split(" "),c=0;c<i.length;c++)h=J.exec(i[c])||[],u=h[1],d=(h[2]||"").split(".").sort(),m=z.event.special[u]||{},u=(o?m.delegateType:m.bindType)||u,m=z.event.special[u]||{},p=z.extend({type:u,origType:h[1],data:s,handler:n,guid:n.guid,selector:o,quick:o&&se(o),namespace:d.join(".")},f),g=l[u],g||(g=l[u]=[],g.delegateCount=0,m.setup&&m.setup.call(t,s,d,r)!==!1||(t.addEventListener?t.addEventListener(u,r,!1):t.attachEvent&&t.attachEvent("on"+u,r))),m.add&&(m.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),o?g.splice(g.delegateCount++,0,p):g.push(p),z.event.global[u]=!0;t=null}},global:{},remove:function(t,e,i,n,s){var o,a,r,l,c,h,u,d,p,f,g,m,v=z.hasData(t)&&z._data(t);if(v&&(d=v.events)){for(e=z.trim(ae(e||"")).split(" "),o=0;o<e.length;o++)if(a=J.exec(e[o])||[],r=l=a[1],c=a[2],r){for(p=z.event.special[r]||{},r=(n?p.delegateType:p.bindType)||r,g=d[r]||[],h=g.length,c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,u=0;u<g.length;u++)m=g[u],!s&&l!==m.origType||i&&i.guid!==m.guid||c&&!c.test(m.namespace)||n&&n!==m.selector&&("**"!==n||!m.selector)||(g.splice(u--,1),m.selector&&g.delegateCount--,p.remove&&p.remove.call(t,m));0===g.length&&h!==g.length&&(p.teardown&&p.teardown.call(t,c)!==!1||z.removeEvent(t,r,v.handle),delete d[r])}else for(r in d)z.event.remove(t,r+e[o],i,n,!0);z.isEmptyObject(d)&&(f=v.handle,f&&(f.elem=null),z.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,n,s,o){if(!s||3!==s.nodeType&&8!==s.nodeType){var a,r,l,c,h,u,d,p,f,g,m=i.type||i,v=[];if(!ie.test(m+z.event.triggered)&&(m.indexOf("!")>=0&&(m=m.slice(0,-1),r=!0),m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),s&&!z.event.customEvent[m]||z.event.global[m]))if(i="object"==typeof i?i[z.expando]?i:new z.Event(m,i):new z.Event(m),i.type=m,i.isTrigger=!0,i.exclusive=r,i.namespace=v.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,u=m.indexOf(":")<0?"on"+m:"",s){if(i.result=e,i.target||(i.target=s),n=null!=n?z.makeArray(n):[],n.unshift(i),d=z.event.special[m]||{},!d.trigger||d.trigger.apply(s,n)!==!1){if(f=[[s,d.bindType||m]],!o&&!d.noBubble&&!z.isWindow(s)){for(g=d.delegateType||m,c=ie.test(g+m)?s:s.parentNode,h=null;c;c=c.parentNode)f.push([c,g]),h=c;h&&h===s.ownerDocument&&f.push([h.defaultView||h.parentWindow||t,g])}for(l=0;l<f.length&&!i.isPropagationStopped();l++)c=f[l][0],i.type=f[l][1],p=(z._data(c,"events")||{})[i.type]&&z._data(c,"handle"),p&&p.apply(c,n),p=u&&c[u],p&&z.acceptData(c)&&p.apply(c,n)===!1&&i.preventDefault();return i.type=m,o||i.isDefaultPrevented()||d._default&&d._default.apply(s.ownerDocument,n)!==!1||"click"===m&&z.nodeName(s,"a")||!z.acceptData(s)||u&&s[m]&&("focus"!==m&&"blur"!==m||0!==i.target.offsetWidth)&&!z.isWindow(s)&&(h=s[u],h&&(s[u]=null),z.event.triggered=m,s[m](),z.event.triggered=e,h&&(s[u]=h)),i.result}}else{a=z.cache;for(l in a)a[l].events&&a[l].events[m]&&z.event.trigger(i,n,a[l].handle.elem,!0)}}},dispatch:function(i){i=z.event.fix(i||t.event);var n,s,o,a,r,l,c,h,u,d,p=(z._data(this,"events")||{})[i.type]||[],f=p.delegateCount,g=[].slice.call(arguments,0),m=!i.exclusive&&!i.namespace,v=z.event.special[i.type]||{},b=[];if(g[0]=i,i.delegateTarget=this,!v.preDispatch||v.preDispatch.call(this,i)!==!1){if(f&&(!i.button||"click"!==i.type))for(a=z(this),a.context=this.ownerDocument||this,o=i.target;o!=this;o=o.parentNode||this)if(o.disabled!==!0){for(l={},h=[],a[0]=o,n=0;f>n;n++)u=p[n],d=u.selector,l[d]===e&&(l[d]=u.quick?oe(o,u.quick):a.is(d)),l[d]&&h.push(u);h.length&&b.push({elem:o,matches:h})}for(p.length>f&&b.push({elem:this,matches:p.slice(f)}),n=0;n<b.length&&!i.isPropagationStopped();n++)for(c=b[n],i.currentTarget=c.elem,s=0;s<c.matches.length&&!i.isImmediatePropagationStopped();s++)u=c.matches[s],(m||!i.namespace&&!u.namespace||i.namespace_re&&i.namespace_re.test(u.namespace))&&(i.data=u.data,i.handleObj=u,r=((z.event.special[u.origType]||{}).handle||u.handler).apply(c.elem,g),r!==e&&(i.result=r,r===!1&&(i.preventDefault(),i.stopPropagation())));return v.postDispatch&&v.postDispatch.call(this,i),i.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(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,i){var n,s,o,a=i.button,r=i.fromElement;return null==t.pageX&&null!=i.clientX&&(n=t.target.ownerDocument||P,s=n.documentElement,o=n.body,t.pageX=i.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),t.pageY=i.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!t.relatedTarget&&r&&(t.relatedTarget=r===t.target?i.toElement:r),t.which||a===e||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[z.expando])return t;var i,n,s=t,o=z.event.fixHooks[t.type]||{},a=o.props?this.props.concat(o.props):this.props;for(t=z.Event(s),i=a.length;i;)n=a[--i],t[n]=s[n];return t.target||(t.target=s.srcElement||P),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),o.filter?o.filter(t,s):t},special:{ready:{setup:z.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,i){z.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,i,n){var s=z.extend(new z.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?z.event.trigger(s,null,e):z.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},z.event.handle=z.event.dispatch,z.removeEvent=P.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){t.detachEvent&&t.detachEvent("on"+e,i)},z.Event=function(t,e){return this instanceof z.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?r:a):this.type=t,e&&z.extend(this,e),this.timeStamp=t&&t.timeStamp||z.now(),void(this[z.expando]=!0)):new z.Event(t,e)},z.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=r;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r,this.stopPropagation()},isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a},z.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){z.event.special[t]={delegateType:e,bindType:e,handle:function(t){{var i,n=this,s=t.relatedTarget,o=t.handleObj;o.selector}return(!s||s!==n&&!z.contains(n,s))&&(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),z.support.submitBubbles||(z.event.special.submit={setup:function(){return z.nodeName(this,"form")?!1:void z.event.add(this,"click._submit keypress._submit",function(t){var i=t.target,n=z.nodeName(i,"input")||z.nodeName(i,"button")?i.form:e;n&&!n._submit_attached&&(z.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),n._submit_attached=!0)})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&z.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return z.nodeName(this,"form")?!1:void z.event.remove(this,"._submit")}}),z.support.changeBubbles||(z.event.special.change={setup:function(){return G.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(z.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),z.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,z.event.simulate("change",this,t,!0))})),!1):void z.event.add(this,"beforeactivate._change",function(t){var e=t.target;G.test(e.nodeName)&&!e._change_attached&&(z.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||z.event.simulate("change",this.parentNode,t,!0)}),e._change_attached=!0)})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return z.event.remove(this,"._change"),G.test(this.nodeName)}}),z.support.focusinBubbles||z.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,n=function(t){z.event.simulate(e,t.target,z.event.fix(t),!0)};z.event.special[e]={setup:function(){0===i++&&P.addEventListener(t,n,!0)},teardown:function(){0===--i&&P.removeEventListener(t,n,!0)}}}),z.fn.extend({on:function(t,i,n,s,o){var r,l;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=e);for(l in t)this.on(l,i,n,t[l],o);return this}if(null==n&&null==s?(s=i,n=i=e):null==s&&("string"==typeof i?(s=n,n=e):(s=n,n=i,i=e)),s===!1)s=a;else if(!s)return this;return 1===o&&(r=s,s=function(t){return z().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=z.guid++)),this.each(function(){z.event.add(this,t,s,n,i)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,i,n){if(t&&t.preventDefault&&t.handleObj){var s=t.handleObj;return z(t.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this}if("object"==typeof t){for(var o in t)this.off(o,i,t[o]);return this}return(i===!1||"function"==typeof i)&&(n=i,i=e),n===!1&&(n=a),this.each(function(){z.event.remove(this,t,n,i)})},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,i){return z(this.context).on(t,this.selector,e,i),this},die:function(t,e){return z(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1==arguments.length?this.off(t,"**"):this.off(e,t,i)},trigger:function(t,e){return this.each(function(){z.event.trigger(t,e,this)})},triggerHandler:function(t,e){return this[0]?z.event.trigger(t,e,this[0],!0):void 0},toggle:function(t){var e=arguments,i=t.guid||z.guid++,n=0,s=function(i){var s=(z._data(this,"lastToggle"+t.guid)||0)%n;return z._data(this,"lastToggle"+t.guid,s+1),i.preventDefault(),e[s].apply(this,arguments)||!1};for(s.guid=i;n<e.length;)e[n++].guid=i;return this.click(s)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),z.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(t,e){z.fn[e]=function(t,i){return null==i&&(i=t,t=null),arguments.length>0?this.on(e,null,t,i):this.trigger(e)},z.attrFn&&(z.attrFn[e]=!0),te.test(e)&&(z.event.fixHooks[e]=z.event.keyHooks),ee.test(e)&&(z.event.fixHooks[e]=z.event.mouseHooks)}),/*!
   * Sizzle CSS Selector Engine
   *  Copyright 2011, The Dojo Foundation
   *  Released under the MIT, BSD, and GPL Licenses.
   *  More information: http://sizzlejs.com/
   */
  function(){function t(t,e,i,n,o,a){for(var r=0,l=n.length;l>r;r++){var c=n[r];if(c){var h=!1;for(c=c[t];c;){if(c[s]===i){h=n[c.sizset];break}if(1!==c.nodeType||a||(c[s]=i,c.sizset=r),c.nodeName.toLowerCase()===e){h=c;break}c=c[t]}n[r]=h}}}function i(t,e,i,n,o,a){for(var r=0,l=n.length;l>r;r++){var c=n[r];if(c){var h=!1;for(c=c[t];c;){if(c[s]===i){h=n[c.sizset];break}if(1===c.nodeType)if(a||(c[s]=i,c.sizset=r),"string"!=typeof e){if(c===e){h=!0;break}}else if(d.filter(e,[c]).length>0){h=c;break}c=c[t]}n[r]=h}}}var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,s="sizcache"+(Math.random()+"").replace(".",""),o=0,a=Object.prototype.toString,r=!1,l=!0,c=/\\/g,h=/\r\n/g,u=/\W/;[0,0].sort(function(){return l=!1,0});var d=function(t,e,i,s){i=i||[],e=e||P;var o=e;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return i;var r,l,c,h,u,p,m,v,_=!0,y=d.isXML(e),w=[],k=t;do if(n.exec(""),r=n.exec(k),r&&(k=r[3],w.push(r[1]),r[2])){h=r[3];break}while(r);if(w.length>1&&g.exec(t))if(2===w.length&&f.relative[w[0]])l=x(w[0]+w[1],e,s);else for(l=f.relative[w[0]]?[e]:d(w.shift(),e);w.length;)t=w.shift(),f.relative[t]&&(t+=w.shift()),l=x(t,l,s);else if(!s&&w.length>1&&9===e.nodeType&&!y&&f.match.ID.test(w[0])&&!f.match.ID.test(w[w.length-1])&&(u=d.find(w.shift(),e,y),e=u.expr?d.filter(u.expr,u.set)[0]:u.set[0]),e)for(u=s?{expr:w.pop(),set:b(s)}:d.find(w.pop(),1!==w.length||"~"!==w[0]&&"+"!==w[0]||!e.parentNode?e:e.parentNode,y),l=u.expr?d.filter(u.expr,u.set):u.set,w.length>0?c=b(l):_=!1;w.length;)p=w.pop(),m=p,f.relative[p]?m=w.pop():p="",null==m&&(m=e),f.relative[p](c,m,y);else c=w=[];if(c||(c=l),c||d.error(p||t),"[object Array]"===a.call(c))if(_)if(e&&1===e.nodeType)for(v=0;null!=c[v];v++)c[v]&&(c[v]===!0||1===c[v].nodeType&&d.contains(e,c[v]))&&i.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&i.push(l[v]);else i.push.apply(i,c);else b(c,i);return h&&(d(h,o,i,s),d.uniqueSort(i)),i};d.uniqueSort=function(t){if(y&&(r=l,t.sort(y),r))for(var e=1;e<t.length;e++)t[e]===t[e-1]&&t.splice(e--,1);return t},d.matches=function(t,e){return d(t,null,null,e)},d.matchesSelector=function(t,e){return d(e,null,null,[t]).length>0},d.find=function(t,e,i){var n,s,o,a,r,l;if(!t)return[];for(s=0,o=f.order.length;o>s;s++)if(r=f.order[s],(a=f.leftMatch[r].exec(t))&&(l=a[1],a.splice(1,1),"\\"!==l.substr(l.length-1)&&(a[1]=(a[1]||"").replace(c,""),n=f.find[r](a,e,i),null!=n))){t=t.replace(f.match[r],"");break}return n||(n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):[]),{set:n,expr:t}},d.filter=function(t,i,n,s){for(var o,a,r,l,c,h,u,p,g,m=t,v=[],b=i,_=i&&i[0]&&d.isXML(i[0]);t&&i.length;){for(r in f.filter)if(null!=(o=f.leftMatch[r].exec(t))&&o[2]){if(h=f.filter[r],u=o[1],a=!1,o.splice(1,1),"\\"===u.substr(u.length-1))continue;if(b===v&&(v=[]),f.preFilter[r])if(o=f.preFilter[r](o,b,n,v,s,_)){if(o===!0)continue}else a=l=!0;if(o)for(p=0;null!=(c=b[p]);p++)c&&(l=h(c,o,p,b),g=s^l,n&&null!=l?g?a=!0:b[p]=!1:g&&(v.push(c),a=!0));if(l!==e){if(n||(b=v),t=t.replace(f.match[r],""),!a)return[];break}}if(t===m){if(null!=a)break;d.error(t)}m=t}return b},d.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)};var p=d.getText=function(t){var e,i,n=t.nodeType,s="";if(n){if(1===n||9===n||11===n){if("string"==typeof t.textContent)return t.textContent;if("string"==typeof t.innerText)return t.innerText.replace(h,"");for(t=t.firstChild;t;t=t.nextSibling)s+=p(t)}else if(3===n||4===n)return t.nodeValue}else for(e=0;i=t[e];e++)8!==i.nodeType&&(s+=p(i));return s},f=d.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(t){return t.getAttribute("href")},type:function(t){return t.getAttribute("type")}},relative:{"+":function(t,e){var i="string"==typeof e,n=i&&!u.test(e),s=i&&!n;n&&(e=e.toLowerCase());for(var o,a=0,r=t.length;r>a;a++)if(o=t[a]){for(;(o=o.previousSibling)&&1!==o.nodeType;);t[a]=s||o&&o.nodeName.toLowerCase()===e?o||!1:o===e}s&&d.filter(e,t,!0)},">":function(t,e){var i,n="string"==typeof e,s=0,o=t.length;if(n&&!u.test(e)){for(e=e.toLowerCase();o>s;s++)if(i=t[s]){var a=i.parentNode;t[s]=a.nodeName.toLowerCase()===e?a:!1}}else{for(;o>s;s++)i=t[s],i&&(t[s]=n?i.parentNode:i.parentNode===e);n&&d.filter(e,t,!0)}},"":function(e,n,s){var a,r=o++,l=i;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),a=n,l=t),l("parentNode",n,r,e,a,s)},"~":function(e,n,s){var a,r=o++,l=i;"string"!=typeof n||u.test(n)||(n=n.toLowerCase(),a=n,l=t),l("previousSibling",n,r,e,a,s)}},find:{ID:function(t,e,i){if("undefined"!=typeof e.getElementById&&!i){var n=e.getElementById(t[1]);return n&&n.parentNode?[n]:[]}},NAME:function(t,e){if("undefined"!=typeof e.getElementsByName){for(var i=[],n=e.getElementsByName(t[1]),s=0,o=n.length;o>s;s++)n[s].getAttribute("name")===t[1]&&i.push(n[s]);return 0===i.length?null:i}},TAG:function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t[1]):void 0}},preFilter:{CLASS:function(t,e,i,n,s,o){if(t=" "+t[1].replace(c,"")+" ",o)return t;for(var a,r=0;null!=(a=e[r]);r++)a&&(s^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(t)>=0)?i||n.push(a):i&&(e[r]=!1));return!1},ID:function(t){return t[1].replace(c,"")},TAG:function(t){return t[1].replace(c,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||d.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===t[2]&&"2n"||"odd"===t[2]&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&d.error(t[0]);return t[0]=o++,t},ATTR:function(t,e,i,n,s,o){var a=t[1]=t[1].replace(c,"");return!o&&f.attrMap[a]&&(t[1]=f.attrMap[a]),t[4]=(t[4]||t[5]||"").replace(c,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(t,e,i,s,o){if("not"===t[1]){if(!((n.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var a=d.filter(t[3],e,i,!0^o);return i||s.push.apply(s,a),!1}t[3]=d(t[3],null,null,e)}else if(f.match.POS.test(t[0])||f.match.CHILD.test(t[0]))return!0;return t},POS:function(t){return t.unshift(!0),t}},filters:{enabled:function(t){return t.disabled===!1&&"hidden"!==t.type},disabled:function(t){return t.disabled===!0},checked:function(t){return t.checked===!0},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,i){return!!d(i[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),i=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===i&&(e===i||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,i,n){return e===n.length-1},even:function(t,e){return e%2===0},odd:function(t,e){return e%2===1},lt:function(t,e,i){return e<i[3]-0},gt:function(t,e,i){return e>i[3]-0},nth:function(t,e,i){return i[3]-0===e},eq:function(t,e,i){return i[3]-0===e}},filter:{PSEUDO:function(t,e,i,n){var s=e[1],o=f.filters[s];if(o)return o(t,i,e,n);if("contains"===s)return(t.textContent||t.innerText||p([t])||"").indexOf(e[3])>=0;if("not"===s){for(var a=e[3],r=0,l=a.length;l>r;r++)if(a[r]===t)return!1;return!0}d.error(s)},CHILD:function(t,e){var i,n,o,a,r,l,c=e[1],h=t;switch(c){case"only":case"first":for(;h=h.previousSibling;)if(1===h.nodeType)return!1;if("first"===c)return!0;h=t;case"last":for(;h=h.nextSibling;)if(1===h.nodeType)return!1;return!0;case"nth":if(i=e[2],n=e[3],1===i&&0===n)return!0;if(o=e[0],a=t.parentNode,a&&(a[s]!==o||!t.nodeIndex)){for(r=0,h=a.firstChild;h;h=h.nextSibling)1===h.nodeType&&(h.nodeIndex=++r);a[s]=o}return l=t.nodeIndex-n,0===i?0===l:l%i===0&&l/i>=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var i=e[1],n=d.attr?d.attr(t,i):f.attrHandle[i]?f.attrHandle[i](t):null!=t[i]?t[i]:t.getAttribute(i),s=n+"",o=e[2],a=e[4];return null==n?"!="===o:!o&&d.attr?null!=n:"="===o?s===a:"*="===o?s.indexOf(a)>=0:"~="===o?(" "+s+" ").indexOf(a)>=0:a?"!="===o?s!==a:"^="===o?0===s.indexOf(a):"$="===o?s.substr(s.length-a.length)===a:"|="===o?s===a||s.substr(0,a.length+1)===a+"-":!1:s&&n!==!1},POS:function(t,e,i,n){var s=e[2],o=f.setFilters[s];return o?o(t,i,e,n):void 0}}},g=f.match.POS,m=function(t,e){return"\\"+(e-0+1)};for(var v in f.match)f.match[v]=new RegExp(f.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),f.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[v].source.replace(/\\(\d+)/g,m));f.match.globalPOS=g;var b=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call(P.documentElement.childNodes,0)[0].nodeType}catch(_){b=function(t,e){var i=0,n=e||[];if("[object Array]"===a.call(t))Array.prototype.push.apply(n,t);else if("number"==typeof t.length)for(var s=t.length;s>i;i++)n.push(t[i]);else for(;t[i];i++)n.push(t[i]);return n}}var y,w;P.documentElement.compareDocumentPosition?y=function(t,e){return t===e?(r=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(y=function(t,e){if(t===e)return r=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var i,n,s=[],o=[],a=t.parentNode,l=e.parentNode,c=a;if(a===l)return w(t,e);if(!a)return-1;if(!l)return 1;for(;c;)s.unshift(c),c=c.parentNode;for(c=l;c;)o.unshift(c),c=c.parentNode;i=s.length,n=o.length;for(var h=0;i>h&&n>h;h++)if(s[h]!==o[h])return w(s[h],o[h]);return h===i?w(t,o[h],-1):w(s[h],e,1)},w=function(t,e,i){if(t===e)return i;for(var n=t.nextSibling;n;){if(n===e)return-1;n=n.nextSibling}return 1}),function(){var t=P.createElement("div"),i="script"+(new Date).getTime(),n=P.documentElement;t.innerHTML="<a name='"+i+"'/>",n.insertBefore(t,n.firstChild),P.getElementById(i)&&(f.find.ID=function(t,i,n){if("undefined"!=typeof i.getElementById&&!n){var s=i.getElementById(t[1]);return s?s.id===t[1]||"undefined"!=typeof s.getAttributeNode&&s.getAttributeNode("id").nodeValue===t[1]?[s]:e:[]}},f.filter.ID=function(t,e){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&i&&i.nodeValue===e}),n.removeChild(t),n=t=null}(),function(){var t=P.createElement("div");t.appendChild(P.createComment("")),t.getElementsByTagName("*").length>0&&(f.find.TAG=function(t,e){var i=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var n=[],s=0;i[s];s++)1===i[s].nodeType&&n.push(i[s]);i=n}return i}),t.innerHTML="<a href='#'></a>",t.firstChild&&"undefined"!=typeof t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(f.attrHandle.href=function(t){return t.getAttribute("href",2)}),t=null}(),P.querySelectorAll&&!function(){var t=d,e=P.createElement("div"),i="__sizzle__";if(e.innerHTML="<p class='TEST'></p>",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){d=function(e,n,s,o){if(n=n||P,!o&&!d.isXML(n)){var a=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(a&&(1===n.nodeType||9===n.nodeType)){if(a[1])return b(n.getElementsByTagName(e),s);if(a[2]&&f.find.CLASS&&n.getElementsByClassName)return b(n.getElementsByClassName(a[2]),s)}if(9===n.nodeType){if("body"===e&&n.body)return b([n.body],s);if(a&&a[3]){var r=n.getElementById(a[3]);if(!r||!r.parentNode)return b([],s);if(r.id===a[3])return b([r],s)}try{return b(n.querySelectorAll(e),s)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var c=n,h=n.getAttribute("id"),u=h||i,p=n.parentNode,g=/^\s*[+~]/.test(e);h?u=u.replace(/'/g,"\\$&"):n.setAttribute("id",u),g&&p&&(n=n.parentNode);try{if(!g||p)return b(n.querySelectorAll("[id='"+u+"'] "+e),s)}catch(m){}finally{h||c.removeAttribute("id")}}}return t(e,n,s,o)};for(var n in t)d[n]=t[n];e=null}}(),function(){var t=P.documentElement,e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(e){var i=!e.call(P.createElement("div"),"div"),n=!1;try{e.call(P.documentElement,"[test!='']:sizzle")}catch(s){n=!0}d.matchesSelector=function(t,s){if(s=s.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(t))try{if(n||!f.match.PSEUDO.test(s)&&!/!=/.test(s)){var o=e.call(t,s);if(o||!i||t.document&&11!==t.document.nodeType)return o}}catch(a){}return d(s,null,null,[t]).length>0}}}(),function(){var t=P.createElement("div");t.innerHTML="<div class='test e'></div><div class='test'></div>",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length&&(t.lastChild.className="e",1!==t.getElementsByClassName("e").length&&(f.order.splice(1,0,"CLASS"),f.find.CLASS=function(t,e,i){return"undefined"==typeof e.getElementsByClassName||i?void 0:e.getElementsByClassName(t[1])},t=null))}(),d.contains=P.documentElement.contains?function(t,e){return t!==e&&(t.contains?t.contains(e):!0)}:P.documentElement.compareDocumentPosition?function(t,e){return!!(16&t.compareDocumentPosition(e))}:function(){return!1},d.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return e?"HTML"!==e.nodeName:!1};var x=function(t,e,i){for(var n,s=[],o="",a=e.nodeType?[e]:e;n=f.match.PSEUDO.exec(t);)o+=n[0],t=t.replace(f.match.PSEUDO,"");t=f.relative[t]?t+"*":t;for(var r=0,l=a.length;l>r;r++)d(t,a[r],s,i);return d.filter(o,s)};d.attr=z.attr,d.selectors.attrMap={},z.find=d,z.expr=d.selectors,z.expr[":"]=z.expr.filters,z.unique=d.uniqueSort,z.text=d.getText,z.isXMLDoc=d.isXML,z.contains=d.contains}();var re=/Until$/,le=/^(?:parents|prevUntil|prevAll)/,ce=/,/,he=/^.[^:#\[\.,]*$/,ue=Array.prototype.slice,de=z.expr.match.globalPOS,pe={children:!0,contents:!0,next:!0,prev:!0};z.fn.extend({find:function(t){var e,i,n=this;if("string"!=typeof t)return z(t).filter(function(){for(e=0,i=n.length;i>e;e++)if(z.contains(n[e],this))return!0});var s,o,a,r=this.pushStack("","find",t);for(e=0,i=this.length;i>e;e++)if(s=r.length,z.find(t,this[e],r),e>0)for(o=s;o<r.length;o++)for(a=0;s>a;a++)if(r[a]===r[o]){r.splice(o--,1);break}return r},has:function(t){var e=z(t);return this.filter(function(){for(var t=0,i=e.length;i>t;t++)if(z.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(c(this,t,!1),"not",t)},filter:function(t){return this.pushStack(c(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?de.test(t)?z(t,this.context).index(this[0])>=0:z.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var i,n,s=[],o=this[0];if(z.isArray(t)){for(var a=1;o&&o.ownerDocument&&o!==e;){for(i=0;i<t.length;i++)z(o).is(t[i])&&s.push({selector:t[i],elem:o,level:a});o=o.parentNode,a++}return s}var r=de.test(t)||"string"!=typeof t?z(t,e||this.context):0;for(i=0,n=this.length;n>i;i++)for(o=this[i];o;){if(r?r.index(o)>-1:z.find.matchesSelector(o,t)){s.push(o);break}if(o=o.parentNode,!o||!o.ownerDocument||o===e||11===o.nodeType)break}return s=s.length>1?z.unique(s):s,this.pushStack(s,"closest",t)},index:function(t){return t?"string"==typeof t?z.inArray(this[0],z(t)):z.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var i="string"==typeof t?z(t,e):z.makeArray(t&&t.nodeType?[t]:t),n=z.merge(this.get(),i);return this.pushStack(l(i[0])||l(n[0])?n:z.unique(n))},andSelf:function(){return this.add(this.prevObject)}}),z.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return z.dir(t,"parentNode")},parentsUntil:function(t,e,i){return z.dir(t,"parentNode",i)},next:function(t){return z.nth(t,2,"nextSibling")},prev:function(t){return z.nth(t,2,"previousSibling")},nextAll:function(t){return z.dir(t,"nextSibling")},prevAll:function(t){return z.dir(t,"previousSibling")},nextUntil:function(t,e,i){return z.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return z.dir(t,"previousSibling",i)},siblings:function(t){return z.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return z.sibling(t.firstChild)},contents:function(t){return z.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:z.makeArray(t.childNodes)}},function(t,e){z.fn[t]=function(i,n){var s=z.map(this,e,i);return re.test(t)||(n=i),n&&"string"==typeof n&&(s=z.filter(n,s)),s=this.length>1&&!pe[t]?z.unique(s):s,(this.length>1||ce.test(n))&&le.test(t)&&(s=s.reverse()),this.pushStack(s,t,ue.call(arguments).join(","))}}),z.extend({filter:function(t,e,i){return i&&(t=":not("+t+")"),1===e.length?z.find.matchesSelector(e[0],t)?[e[0]]:[]:z.find.matches(t,e)},dir:function(t,i,n){for(var s=[],o=t[i];o&&9!==o.nodeType&&(n===e||1!==o.nodeType||!z(o).is(n));)1===o.nodeType&&s.push(o),o=o[i];return s},nth:function(t,e,i){e=e||1;for(var n=0;t&&(1!==t.nodeType||++n!==e);t=t[i]);return t},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var fe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ge=/ jQuery\d+="(?:\d+|null)"/g,me=/^\s+/,ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,be=/<([\w:]+)/,_e=/<tbody/i,ye=/<|&#?\w+;/,we=/<(?:script|style)/i,xe=/<(?:script|object|embed|option|style)/i,ke=new RegExp("<(?:"+fe+")[\\s/>]","i"),Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/\/(java|ecma)script/i,Te=/^\s*<!(?:\[CDATA\[|\-\-)/,$e={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,"",""]},Se=h(P);$e.optgroup=$e.option,$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td,z.support.htmlSerialize||($e._default=[1,"div<div>","</div>"]),z.fn.extend({text:function(t){return z.access(this,function(t){return t===e?z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||P).createTextNode(t))},null,t,arguments.length)},wrapAll:function(t){if(z.isFunction(t))return this.each(function(e){z(this).wrapAll(t.call(this,e))});if(this[0]){var e=z(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(z.isFunction(t)?function(e){z(this).wrapInner(t.call(this,e))}:function(){var e=z(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=z.isFunction(t);return this.each(function(i){z(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){z.nodeName(this,"body")||z(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)});if(arguments.length){var t=z.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,z.clean(arguments)),t}},remove:function(t,e){for(var i,n=0;null!=(i=this[n]);n++)(!t||z.filter(t,[i]).length)&&(e||1!==i.nodeType||(z.cleanData(i.getElementsByTagName("*")),z.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&z.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return z.clone(this,t,e)})},html:function(t){return z.access(this,function(t){var i=this[0]||{},n=0,s=this.length;if(t===e)return 1===i.nodeType?i.innerHTML.replace(ge,""):null;if(!("string"!=typeof t||we.test(t)||!z.support.leadingWhitespace&&me.test(t)||$e[(be.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(ve,"<$1></$2>");try{for(;s>n;n++)i=this[n]||{},1===i.nodeType&&(z.cleanData(i.getElementsByTagName("*")),i.innerHTML=t);i=0}catch(o){}}i&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(t){return this[0]&&this[0].parentNode?z.isFunction(t)?this.each(function(e){var i=z(this),n=i.html();i.replaceWith(t.call(this,e,n))}):("string"!=typeof t&&(t=z(t).detach()),this.each(function(){var e=this.nextSibling,i=this.parentNode;z(this).remove(),e?z(e).before(t):z(i).append(t)})):this.length?this.pushStack(z(z.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,i,n){var s,o,a,r,l=t[0],c=[];if(!z.support.checkClone&&3===arguments.length&&"string"==typeof l&&Ce.test(l))return this.each(function(){z(this).domManip(t,i,n,!0)});if(z.isFunction(l))return this.each(function(s){var o=z(this);t[0]=l.call(this,s,i?o.html():e),o.domManip(t,i,n)});if(this[0]){if(r=l&&l.parentNode,s=z.support.parentNode&&r&&11===r.nodeType&&r.childNodes.length===this.length?{fragment:r}:z.buildFragment(t,this,c),a=s.fragment,o=1===a.childNodes.length?a=a.firstChild:a.firstChild){i=i&&z.nodeName(o,"tr");for(var h=0,d=this.length,p=d-1;d>h;h++)n.call(i?u(this[h],o):this[h],s.cacheable||d>1&&p>h?z.clone(a,!0,!0):a)}c.length&&z.each(c,function(t,e){e.src?z.ajax({type:"GET",global:!1,url:e.src,async:!1,dataType:"script"}):z.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Te,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)})}return this}}),z.buildFragment=function(t,e,i){var n,s,o,a,r=t[0];return e&&e[0]&&(a=e[0].ownerDocument||e[0]),a.createDocumentFragment||(a=P),!(1===t.length&&"string"==typeof r&&r.length<512&&a===P&&"<"===r.charAt(0))||xe.test(r)||!z.support.checkClone&&Ce.test(r)||!z.support.html5Clone&&ke.test(r)||(s=!0,o=z.fragments[r],o&&1!==o&&(n=o)),n||(n=a.createDocumentFragment(),z.clean(t,a,n,i)),s&&(z.fragments[r]=o?n:1),{fragment:n,cacheable:s}},z.fragments={},z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){z.fn[t]=function(i){var n=[],s=z(i),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===s.length)return s[e](this[0]),this;for(var a=0,r=s.length;r>a;a++){var l=(a>0?this.clone(!0):this).get();z(s[a])[e](l),n=n.concat(l)}return this.pushStack(n,t,s.selector)}}),z.extend({clone:function(t,e,i){var n,s,o,a=z.support.html5Clone||z.isXMLDoc(t)||!ke.test("<"+t.nodeName+">")?t.cloneNode(!0):v(t);if(!(z.support.noCloneEvent&&z.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||z.isXMLDoc(t)))for(p(t,a),n=f(t),s=f(a),o=0;n[o];++o)s[o]&&p(n[o],s[o]);if(e&&(d(t,a),i))for(n=f(t),s=f(a),o=0;n[o];++o)d(n[o],s[o]);return n=s=null,a},clean:function(t,e,i,n){var s,o,a,r=[];e=e||P,"undefined"==typeof e.createElement&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||P);for(var l,c=0;null!=(l=t[c]);c++)if("number"==typeof l&&(l+=""),l){if("string"==typeof l)if(ye.test(l)){l=l.replace(ve,"<$1></$2>");var u,d=(be.exec(l)||["",""])[1].toLowerCase(),p=$e[d]||$e._default,f=p[0],g=e.createElement("div"),v=Se.childNodes;for(e===P?Se.appendChild(g):h(e).appendChild(g),g.innerHTML=p[1]+l+p[2];f--;)g=g.lastChild;if(!z.support.tbody){var b=_e.test(l),_="table"!==d||b?"<table>"!==p[1]||b?[]:g.childNodes:g.firstChild&&g.firstChild.childNodes;for(a=_.length-1;a>=0;--a)z.nodeName(_[a],"tbody")&&!_[a].childNodes.length&&_[a].parentNode.removeChild(_[a])}!z.support.leadingWhitespace&&me.test(l)&&g.insertBefore(e.createTextNode(me.exec(l)[0]),g.firstChild),l=g.childNodes,g&&(g.parentNode.removeChild(g),v.length>0&&(u=v[v.length-1],u&&u.parentNode&&u.parentNode.removeChild(u)))}else l=e.createTextNode(l);var y;if(!z.support.appendChecked)if(l[0]&&"number"==typeof(y=l.length))for(a=0;y>a;a++)m(l[a]);else m(l);l.nodeType?r.push(l):r=z.merge(r,l)}if(i)for(s=function(t){return!t.type||De.test(t.type)},c=0;r[c];c++)if(o=r[c],n&&z.nodeName(o,"script")&&(!o.type||De.test(o.type)))n.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var w=z.grep(o.getElementsByTagName("script"),s);r.splice.apply(r,[c+1,0].concat(w))}i.appendChild(o)}return r},cleanData:function(t){for(var e,i,n,s=z.cache,o=z.event.special,a=z.support.deleteExpando,r=0;null!=(n=t[r]);r++)if((!n.nodeName||!z.noData[n.nodeName.toLowerCase()])&&(i=n[z.expando])){if(e=s[i],e&&e.events){for(var l in e.events)o[l]?z.event.remove(n,l):z.removeEvent(n,l,e.handle);e.handle&&(e.handle.elem=null)}a?delete n[z.expando]:n.removeAttribute&&n.removeAttribute(z.expando),delete s[i]}}});var Me,Ne,Ie,Pe=/alpha\([^)]*\)/i,Ee=/opacity=([^)]*)/,Ae=/([A-Z]|^ms)/g,ze=/^[\-+]?(?:\d*\.)?\d+$/i,je=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,He=/^([\-+])=([\-+.\de]+)/,Oe=/^margin/,Le={position:"absolute",visibility:"hidden",display:"block"},Fe=["Top","Right","Bottom","Left"];z.fn.css=function(t,i){return z.access(this,function(t,i,n){return n!==e?z.style(t,i,n):z.css(t,i)},t,i,arguments.length>1)},z.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Me(t,"opacity");return""===i?"1":i}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":z.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,i,n,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,r=z.camelCase(i),l=t.style,c=z.cssHooks[r];if(i=z.cssProps[r]||r,n===e)return c&&"get"in c&&(o=c.get(t,!1,s))!==e?o:l[i];if(a=typeof n,"string"===a&&(o=He.exec(n))&&(n=+(o[1]+1)*+o[2]+parseFloat(z.css(t,i)),a="number"),!(null==n||"number"===a&&isNaN(n)||("number"!==a||z.cssNumber[r]||(n+="px"),c&&"set"in c&&(n=c.set(t,n))===e)))try{l[i]=n}catch(h){}}},css:function(t,i,n){var s,o;return i=z.camelCase(i),o=z.cssHooks[i],i=z.cssProps[i]||i,"cssFloat"===i&&(i="float"),o&&"get"in o&&(s=o.get(t,!0,n))!==e?s:Me?Me(t,i):void 0},swap:function(t,e,i){var n,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];n=i.call(t);for(s in e)t.style[s]=o[s];return n}}),z.curCSS=z.css,P.defaultView&&P.defaultView.getComputedStyle&&(Ne=function(t,e){var i,n,s,o,a=t.style;return e=e.replace(Ae,"-$1").toLowerCase(),(n=t.ownerDocument.defaultView)&&(s=n.getComputedStyle(t,null))&&(i=s.getPropertyValue(e),""!==i||z.contains(t.ownerDocument.documentElement,t)||(i=z.style(t,e))),!z.support.pixelMargin&&s&&Oe.test(e)&&je.test(i)&&(o=a.width,a.width=i,i=s.width,a.width=o),i}),P.documentElement.currentStyle&&(Ie=function(t,e){var i,n,s,o=t.currentStyle&&t.currentStyle[e],a=t.style;return null==o&&a&&(s=a[e])&&(o=s),je.test(o)&&(i=a.left,n=t.runtimeStyle&&t.runtimeStyle.left,n&&(t.runtimeStyle.left=t.currentStyle.left),a.left="fontSize"===e?"1em":o,o=a.pixelLeft+"px",a.left=i,n&&(t.runtimeStyle.left=n)),""===o?"auto":o}),Me=Ne||Ie,z.each(["height","width"],function(t,e){z.cssHooks[e]={get:function(t,i,n){return i?0!==t.offsetWidth?b(t,e,n):z.swap(t,Le,function(){return b(t,e,n)}):void 0},set:function(t,e){return ze.test(e)?e+"px":e}}}),z.support.opacity||(z.cssHooks.opacity={get:function(t,e){return Ee.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=z.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,e>=1&&""===z.trim(o.replace(Pe,""))&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=Pe.test(o)?o.replace(Pe,s):o+" "+s)}}),z(function(){z.support.reliableMarginRight||(z.cssHooks.marginRight={get:function(t,e){return z.swap(t,{display:"inline-block"},function(){return e?Me(t,"margin-right"):t.style.marginRight})}})}),z.expr&&z.expr.filters&&(z.expr.filters.hidden=function(t){var e=t.offsetWidth,i=t.offsetHeight;return 0===e&&0===i||!z.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||z.css(t,"display"))},z.expr.filters.visible=function(t){return!z.expr.filters.hidden(t)}),z.each({margin:"",padding:"",border:"Width"},function(t,e){z.cssHooks[t+e]={expand:function(i){var n,s="string"==typeof i?i.split(" "):[i],o={};for(n=0;4>n;n++)o[t+Fe[n]+e]=s[n]||s[n-2]||s[0];return o}}});var We,Re,Be=/%20/g,qe=/\[\]$/,Ye=/\r?\n/g,Ve=/#.*$/,Ue=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Xe=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ke=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Qe=/^(?:GET|HEAD)$/,Ge=/^\/\//,Je=/\?/,Ze=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ti=/^(?:select|textarea)/i,ei=/\s+/,ii=/([?&])_=[^&]*/,ni=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,si=z.fn.load,oi={},ai={},ri=["*/"]+["*"];try{We=A.href}catch(li){We=P.createElement("a"),We.href="",We=We.href}Re=ni.exec(We.toLowerCase())||[],z.fn.extend({load:function(t,i,n){if("string"!=typeof t&&si)return si.apply(this,arguments);if(!this.length)return this;var s=t.indexOf(" ");if(s>=0){var o=t.slice(s,t.length);t=t.slice(0,s)}var a="GET";i&&(z.isFunction(i)?(n=i,i=e):"object"==typeof i&&(i=z.param(i,z.ajaxSettings.traditional),a="POST"));var r=this;return z.ajax({url:t,type:a,dataType:"html",data:i,complete:function(t,e,i){i=t.responseText,t.isResolved()&&(t.done(function(t){i=t}),r.html(o?z("<div>").append(i.replace(Ze,"")).find(o):i)),n&&r.each(n,[i,e,t])}}),this},serialize:function(){return z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?z.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ti.test(this.nodeName)||Xe.test(this.type))}).map(function(t,e){var i=z(this).val();return null==i?null:z.isArray(i)?z.map(i,function(t){return{name:e.name,value:t.replace(Ye,"\r\n")}}):{name:e.name,value:i.replace(Ye,"\r\n")}}).get()}}),z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,e){z.fn[e]=function(t){return this.on(e,t)}}),z.each(["get","post"],function(t,i){z[i]=function(t,n,s,o){return z.isFunction(n)&&(o=o||s,s=n,n=e),z.ajax({type:i,url:t,data:n,success:s,dataType:o})}}),z.extend({getScript:function(t,i){return z.get(t,e,i,"script")},getJSON:function(t,e,i){return z.get(t,e,i,"json")},ajaxSetup:function(t,e){return e?w(t,z.ajaxSettings):(e=t,t=z.ajaxSettings),w(t,e),t},ajaxSettings:{url:We,isLocal:Ke.test(Re[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":ri},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":z.parseJSON,"text xml":z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:_(oi),ajaxTransport:_(ai),ajax:function(t,i){function n(t,i,n,a){if(2!==w){w=2,l&&clearTimeout(l),r=e,o=a||"",x.readyState=t>0?4:0;var c,u,b,_,y,D=i,T=n?k(d,x,n):e;if(t>=200&&300>t||304===t)if(d.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(z.lastModified[s]=_),(y=x.getResponseHeader("Etag"))&&(z.etag[s]=y)),304===t)D="notmodified",c=!0;
  else try{u=C(d,T),D="success",c=!0}catch($){D="parsererror",b=$}else b=D,(!D||t)&&(D="error",0>t&&(t=0));x.status=t,x.statusText=""+(i||D),c?g.resolveWith(p,[u,D,x]):g.rejectWith(p,[x,D,b]),x.statusCode(v),v=e,h&&f.trigger("ajax"+(c?"Success":"Error"),[x,d,c?u:b]),m.fireWith(p,[x,D]),h&&(f.trigger("ajaxComplete",[x,d]),--z.active||z.event.trigger("ajaxStop"))}}"object"==typeof t&&(i=t,t=e),i=i||{};var s,o,a,r,l,c,h,u,d=z.ajaxSetup({},i),p=d.context||d,f=p!==d&&(p.nodeType||p instanceof z)?z(p):z.event,g=z.Deferred(),m=z.Callbacks("once memory"),v=d.statusCode||{},b={},_={},w=0,x={readyState:0,setRequestHeader:function(t,e){if(!w){var i=t.toLowerCase();t=_[i]=_[i]||t,b[t]=e}return this},getAllResponseHeaders:function(){return 2===w?o:null},getResponseHeader:function(t){var i;if(2===w){if(!a)for(a={};i=Ue.exec(o);)a[i[1].toLowerCase()]=i[2];i=a[t.toLowerCase()]}return i===e?null:i},overrideMimeType:function(t){return w||(d.mimeType=t),this},abort:function(t){return t=t||"abort",r&&r.abort(t),n(0,t),this}};if(g.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(t){if(t){var e;if(2>w)for(e in t)v[e]=[v[e],t[e]];else e=t[x.status],x.then(e,e)}return this},d.url=((t||d.url)+"").replace(Ve,"").replace(Ge,Re[1]+"//"),d.dataTypes=z.trim(d.dataType||"*").toLowerCase().split(ei),null==d.crossDomain&&(c=ni.exec(d.url.toLowerCase()),d.crossDomain=!(!c||c[1]==Re[1]&&c[2]==Re[2]&&(c[3]||("http:"===c[1]?80:443))==(Re[3]||("http:"===Re[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=z.param(d.data,d.traditional)),y(oi,d,i,x),2===w)return!1;if(h=d.global,d.type=d.type.toUpperCase(),d.hasContent=!Qe.test(d.type),h&&0===z.active++&&z.event.trigger("ajaxStart"),!d.hasContent&&(d.data&&(d.url+=(Je.test(d.url)?"&":"?")+d.data,delete d.data),s=d.url,d.cache===!1)){var D=z.now(),T=d.url.replace(ii,"$1_="+D);d.url=T+(T===d.url?(Je.test(d.url)?"&":"?")+"_="+D:"")}(d.data&&d.hasContent&&d.contentType!==!1||i.contentType)&&x.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(s=s||d.url,z.lastModified[s]&&x.setRequestHeader("If-Modified-Since",z.lastModified[s]),z.etag[s]&&x.setRequestHeader("If-None-Match",z.etag[s])),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ri+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)x.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(p,x,d)===!1||2===w))return x.abort(),!1;for(u in{success:1,error:1,complete:1})x[u](d[u]);if(r=y(ai,d,i,x)){x.readyState=1,h&&f.trigger("ajaxSend",[x,d]),d.async&&d.timeout>0&&(l=setTimeout(function(){x.abort("timeout")},d.timeout));try{w=1,r.send(b,n)}catch($){if(!(2>w))throw $;n(-1,$)}}else n(-1,"No Transport");return x},param:function(t,i){var n=[],s=function(t,e){e=z.isFunction(e)?e():e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(i===e&&(i=z.ajaxSettings.traditional),z.isArray(t)||t.jquery&&!z.isPlainObject(t))z.each(t,function(){s(this.name,this.value)});else for(var o in t)x(o,t[o],i,s);return n.join("&").replace(Be,"+")}}),z.extend({active:0,lastModified:{},etag:{}});var ci=z.now(),hi=/(\=)\?(&|$)|\?\?/i;z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return z.expando+"_"+ci++}}),z.ajaxPrefilter("json jsonp",function(e,i,n){var s="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||e.jsonp!==!1&&(hi.test(e.url)||s&&hi.test(e.data))){var o,a=e.jsonpCallback=z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r=t[a],l=e.url,c=e.data,h="$1"+a+"$2";return e.jsonp!==!1&&(l=l.replace(hi,h),e.url===l&&(s&&(c=c.replace(hi,h)),e.data===c&&(l+=(/\?/.test(l)?"&":"?")+e.jsonp+"="+a))),e.url=l,e.data=c,t[a]=function(t){o=[t]},n.always(function(){t[a]=r,o&&z.isFunction(r)&&t[a](o[0])}),e.converters["script json"]=function(){return o||z.error(a+" was not called"),o[0]},e.dataTypes[0]="json","script"}}),z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return z.globalEval(t),t}}}),z.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),z.ajaxTransport("script",function(t){if(t.crossDomain){var i,n=P.head||P.getElementsByTagName("head")[0]||P.documentElement;return{send:function(s,o){i=P.createElement("script"),i.async="async",t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(t,s){(s||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,n&&i.parentNode&&n.removeChild(i),i=e,s||o(200,"success"))},n.insertBefore(i,n.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var ui,di=t.ActiveXObject?function(){for(var t in ui)ui[t](0,1)}:!1,pi=0;z.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&D()||T()}:D,function(t){z.extend(z.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(z.ajaxSettings.xhr()),z.support.ajax&&z.ajaxTransport(function(i){if(!i.crossDomain||z.support.cors){var n;return{send:function(s,o){var a,r,l=i.xhr();if(i.username?l.open(i.type,i.url,i.async,i.username,i.password):l.open(i.type,i.url,i.async),i.xhrFields)for(r in i.xhrFields)l[r]=i.xhrFields[r];i.mimeType&&l.overrideMimeType&&l.overrideMimeType(i.mimeType),i.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");try{for(r in s)l.setRequestHeader(r,s[r])}catch(c){}l.send(i.hasContent&&i.data||null),n=function(t,s){var r,c,h,u,d;try{if(n&&(s||4===l.readyState))if(n=e,a&&(l.onreadystatechange=z.noop,di&&delete ui[a]),s)4!==l.readyState&&l.abort();else{r=l.status,h=l.getAllResponseHeaders(),u={},d=l.responseXML,d&&d.documentElement&&(u.xml=d);try{u.text=l.responseText}catch(t){}try{c=l.statusText}catch(p){c=""}r||!i.isLocal||i.crossDomain?1223===r&&(r=204):r=u.text?200:404}}catch(f){s||o(-1,f)}u&&o(r,c,u,h)},i.async&&4!==l.readyState?(a=++pi,di&&(ui||(ui={},z(t).unload(di)),ui[a]=n),l.onreadystatechange=n):n()},abort:function(){n&&n(0,1)}}}});var fi,gi,mi,vi,bi={},_i=/^(?:toggle|show|hide)$/,yi=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,wi=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];z.fn.extend({show:function(t,e,i){var n,s;if(t||0===t)return this.animate(M("show",3),t,e,i);for(var o=0,a=this.length;a>o;o++)n=this[o],n.style&&(s=n.style.display,z._data(n,"olddisplay")||"none"!==s||(s=n.style.display=""),(""===s&&"none"===z.css(n,"display")||!z.contains(n.ownerDocument.documentElement,n))&&z._data(n,"olddisplay",N(n.nodeName)));for(o=0;a>o;o++)n=this[o],n.style&&(s=n.style.display,(""===s||"none"===s)&&(n.style.display=z._data(n,"olddisplay")||""));return this},hide:function(t,e,i){if(t||0===t)return this.animate(M("hide",3),t,e,i);for(var n,s,o=0,a=this.length;a>o;o++)n=this[o],n.style&&(s=z.css(n,"display"),"none"===s||z._data(n,"olddisplay")||z._data(n,"olddisplay",s));for(o=0;a>o;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:z.fn.toggle,toggle:function(t,e,i){var n="boolean"==typeof t;return z.isFunction(t)&&z.isFunction(e)?this._toggle.apply(this,arguments):null==t||n?this.each(function(){var e=n?t:z(this).is(":hidden");z(this)[e?"show":"hide"]()}):this.animate(M("toggle",3),t,e,i),this},fadeTo:function(t,e,i,n){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){function s(){o.queue===!1&&z._mark(this);var e,i,n,s,a,r,l,c,h,u,d,p=z.extend({},o),f=1===this.nodeType,g=f&&z(this).is(":hidden");p.animatedProperties={};for(n in t)if(e=z.camelCase(n),n!==e&&(t[e]=t[n],delete t[n]),(a=z.cssHooks[e])&&"expand"in a){r=a.expand(t[e]),delete t[e];for(n in r)n in t||(t[n]=r[n])}for(e in t){if(i=t[e],z.isArray(i)?(p.animatedProperties[e]=i[1],i=t[e]=i[0]):p.animatedProperties[e]=p.specialEasing&&p.specialEasing[e]||p.easing||"swing","hide"===i&&g||"show"===i&&!g)return p.complete.call(this);!f||"height"!==e&&"width"!==e||(p.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===z.css(this,"display")&&"none"===z.css(this,"float")&&(z.support.inlineBlockNeedsLayout&&"inline"!==N(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=p.overflow&&(this.style.overflow="hidden");for(n in t)s=new z.fx(this,p,n),i=t[n],_i.test(i)?(d=z._data(this,"toggle"+n)||("toggle"===i?g?"show":"hide":0),d?(z._data(this,"toggle"+n,"show"===d?"hide":"show"),s[d]()):s[i]()):(l=yi.exec(i),c=s.cur(),l?(h=parseFloat(l[2]),u=l[3]||(z.cssNumber[n]?"":"px"),"px"!==u&&(z.style(this,n,(h||1)+u),c=(h||1)/s.cur()*c,z.style(this,n,c+u)),l[1]&&(h=("-="===l[1]?-1:1)*h+c),s.custom(c,h,u)):s.custom(c,i,""));return!0}var o=z.speed(e,i,n);return z.isEmptyObject(t)?this.each(o.complete,[!1]):(t=z.extend({},t),o.queue===!1?this.each(s):this.queue(o.queue,s))},stop:function(t,i,n){return"string"!=typeof t&&(n=i,i=t,t=e),i&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function e(t,e,i){var s=e[i];z.removeData(t,i,!0),s.stop(n)}var i,s=!1,o=z.timers,a=z._data(this);if(n||z._unmark(!0,this),null==t)for(i in a)a[i]&&a[i].stop&&i.indexOf(".run")===i.length-4&&e(this,a,i);else a[i=t+".run"]&&a[i].stop&&e(this,a,i);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(n?o[i](!0):o[i].saveState(),s=!0,o.splice(i,1));n&&s||z.dequeue(this,t)})}}),z.each({slideDown:M("show",1),slideUp:M("hide",1),slideToggle:M("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){z.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),z.extend({speed:function(t,e,i){var n=t&&"object"==typeof t?z.extend({},t):{complete:i||!i&&e||z.isFunction(t)&&t,duration:t,easing:i&&e||e&&!z.isFunction(e)&&e};return n.duration=z.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in z.fx.speeds?z.fx.speeds[n.duration]:z.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(t){z.isFunction(n.old)&&n.old.call(this),n.queue?z.dequeue(this,n.queue):t!==!1&&z._unmark(this)},n},easing:{linear:function(t){return t},swing:function(t){return-Math.cos(t*Math.PI)/2+.5}},timers:[],fx:function(t,e,i){this.options=e,this.elem=t,this.prop=i,e.orig=e.orig||{}}}),z.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(z.fx.step[this.prop]||z.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var t,e=z.css(this.elem,this.prop);return isNaN(t=parseFloat(e))?e&&"auto"!==e?e:0:t},custom:function(t,i,n){function s(t){return o.step(t)}var o=this,a=z.fx;this.startTime=vi||$(),this.end=i,this.now=this.start=t,this.pos=this.state=0,this.unit=n||this.unit||(z.cssNumber[this.prop]?"":"px"),s.queue=this.options.queue,s.elem=this.elem,s.saveState=function(){z._data(o.elem,"fxshow"+o.prop)===e&&(o.options.hide?z._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&z._data(o.elem,"fxshow"+o.prop,o.end))},s()&&z.timers.push(s)&&!mi&&(mi=setInterval(a.tick,a.interval))},show:function(){var t=z._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||z.style(this.elem,this.prop),this.options.show=!0,t!==e?this.custom(this.cur(),t):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),z(this.elem).show()},hide:function(){this.options.orig[this.prop]=z._data(this.elem,"fxshow"+this.prop)||z.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var e,i,n,s=vi||$(),o=!0,a=this.elem,r=this.options;if(t||s>=r.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),r.animatedProperties[this.prop]=!0;for(e in r.animatedProperties)r.animatedProperties[e]!==!0&&(o=!1);if(o){if(null==r.overflow||z.support.shrinkWrapBlocks||z.each(["","X","Y"],function(t,e){a.style["overflow"+e]=r.overflow[t]}),r.hide&&z(a).hide(),r.hide||r.show)for(e in r.animatedProperties)z.style(a,e,r.orig[e]),z.removeData(a,"fxshow"+e,!0),z.removeData(a,"toggle"+e,!0);n=r.complete,n&&(r.complete=!1,n.call(a))}return!1}return 1/0==r.duration?this.now=s:(i=s-this.startTime,this.state=i/r.duration,this.pos=z.easing[r.animatedProperties[this.prop]](this.state,i,0,1,r.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},z.extend(z.fx,{tick:function(){for(var t,e=z.timers,i=0;i<e.length;i++)t=e[i],t()||e[i]!==t||e.splice(i--,1);e.length||z.fx.stop()},interval:13,stop:function(){clearInterval(mi),mi=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){z.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&null!=t.elem.style[t.prop]?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),z.each(wi.concat.apply([],wi),function(t,e){e.indexOf("margin")&&(z.fx.step[e]=function(t){z.style(t.elem,e,Math.max(0,t.now)+t.unit)})}),z.expr&&z.expr.filters&&(z.expr.filters.animated=function(t){return z.grep(z.timers,function(e){return t===e.elem}).length});var xi,ki=/^t(?:able|d|h)$/i,Ci=/^(?:body|html)$/i;xi="getBoundingClientRect"in P.documentElement?function(t,e,i,n){try{n=t.getBoundingClientRect()}catch(s){}if(!n||!z.contains(i,t))return n?{top:n.top,left:n.left}:{top:0,left:0};var o=e.body,a=I(e),r=i.clientTop||o.clientTop||0,l=i.clientLeft||o.clientLeft||0,c=a.pageYOffset||z.support.boxModel&&i.scrollTop||o.scrollTop,h=a.pageXOffset||z.support.boxModel&&i.scrollLeft||o.scrollLeft,u=n.top+c-r,d=n.left+h-l;return{top:u,left:d}}:function(t,e,i){for(var n,s=t.offsetParent,o=t,a=e.body,r=e.defaultView,l=r?r.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,h=t.offsetLeft;(t=t.parentNode)&&t!==a&&t!==i&&(!z.support.fixedPosition||"fixed"!==l.position);)n=r?r.getComputedStyle(t,null):t.currentStyle,c-=t.scrollTop,h-=t.scrollLeft,t===s&&(c+=t.offsetTop,h+=t.offsetLeft,!z.support.doesNotAddBorder||z.support.doesAddBorderForTableAndCells&&ki.test(t.nodeName)||(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),o=s,s=t.offsetParent),z.support.subtractsBorderForOverflowNotVisible&&"visible"!==n.overflow&&(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),l=n;return("relative"===l.position||"static"===l.position)&&(c+=a.offsetTop,h+=a.offsetLeft),z.support.fixedPosition&&"fixed"===l.position&&(c+=Math.max(i.scrollTop,a.scrollTop),h+=Math.max(i.scrollLeft,a.scrollLeft)),{top:c,left:h}},z.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){z.offset.setOffset(this,t,e)});var i=this[0],n=i&&i.ownerDocument;return n?i===n.body?z.offset.bodyOffset(i):xi(i,n,n.documentElement):null},z.offset={bodyOffset:function(t){var e=t.offsetTop,i=t.offsetLeft;return z.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(z.css(t,"marginTop"))||0,i+=parseFloat(z.css(t,"marginLeft"))||0),{top:e,left:i}},setOffset:function(t,e,i){var n=z.css(t,"position");"static"===n&&(t.style.position="relative");var s,o,a=z(t),r=a.offset(),l=z.css(t,"top"),c=z.css(t,"left"),h=("absolute"===n||"fixed"===n)&&z.inArray("auto",[l,c])>-1,u={},d={};h?(d=a.position(),s=d.top,o=d.left):(s=parseFloat(l)||0,o=parseFloat(c)||0),z.isFunction(e)&&(e=e.call(t,i,r)),null!=e.top&&(u.top=e.top-r.top+s),null!=e.left&&(u.left=e.left-r.left+o),"using"in e?e.using.call(t,u):a.css(u)}},z.fn.extend({position:function(){if(!this[0])return null;var t=this[0],e=this.offsetParent(),i=this.offset(),n=Ci.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(z.css(t,"marginTop"))||0,i.left-=parseFloat(z.css(t,"marginLeft"))||0,n.top+=parseFloat(z.css(e[0],"borderTopWidth"))||0,n.left+=parseFloat(z.css(e[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||P.body;t&&!Ci.test(t.nodeName)&&"static"===z.css(t,"position");)t=t.offsetParent;return t})}}),z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var n=/Y/.test(i);z.fn[t]=function(s){return z.access(this,function(t,s,o){var a=I(t);return o===e?a?i in a?a[i]:z.support.boxModel&&a.document.documentElement[s]||a.document.body[s]:t[s]:void(a?a.scrollTo(n?z(a).scrollLeft():o,n?o:z(a).scrollTop()):t[s]=o)},t,s,arguments.length,null)}}),z.each({Height:"height",Width:"width"},function(t,i){var n="client"+t,s="scroll"+t,o="offset"+t;z.fn["inner"+t]=function(){var t=this[0];return t?t.style?parseFloat(z.css(t,i,"padding")):this[i]():null},z.fn["outer"+t]=function(t){var e=this[0];return e?e.style?parseFloat(z.css(e,i,t?"margin":"border")):this[i]():null},z.fn[i]=function(t){return z.access(this,function(t,i,a){var r,l,c,h;return z.isWindow(t)?(r=t.document,l=r.documentElement[n],z.support.boxModel&&l||r.body&&r.body[n]||l):9===t.nodeType?(r=t.documentElement,r[n]>=r[s]?r[n]:Math.max(t.body[s],r[s],t.body[o],r[o])):a===e?(c=z.css(t,i),h=parseFloat(c),z.isNumeric(h)?h:c):void z(t).css(i,a)},i,t,arguments.length,null)}}),t.jQuery=t.$=z,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return z})}(window),function(t,e){var i=function(){var e=t(document).data("events");return e&&e.click&&t.grep(e.click,function(t){return"rails"===t.namespace}).length};i()&&t.error("jquery-ujs has already been loaded!");var n;t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input:file",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(e){var i=t('meta[name="csrf-token"]').attr("content");i&&e.setRequestHeader("X-CSRF-Token",i)},fire:function(e,i,n){var s=t.Event(i);return e.trigger(s,n),s.result!==!1},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t.attr("href")},handleRemote:function(i){var s,o,a,r,l,c,h,u;if(n.fire(i,"ajax:before")){if(r=i.data("cross-domain"),l=r===e?null:r,c=i.data("with-credentials")||null,h=i.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,i.is("form")){s=i.attr("method"),o=i.attr("action"),a=i.serializeArray();var d=i.data("ujs:submit-button");d&&(a.push(d),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(s=i.data("method"),o=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(s=i.data("method"),o=n.href(i),a=i.data("params")||null);u={type:s||"GET",data:a,dataType:h,beforeSend:function(t,s){return s.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+s.accepts.script),n.fire(i,"ajax:beforeSend",[t,s])},success:function(t,e,n){i.trigger("ajax:success",[t,e,n])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,n){i.trigger("ajax:error",[t,e,n])},xhrFields:{withCredentials:c},crossDomain:l},o&&(u.url=o);var p=n.ajax(u);return i.trigger("ajax:send",p),p}return!1},handleMethod:function(i){var s=n.href(i),o=i.data("method"),a=i.attr("target"),r=t("meta[name=csrf-token]").attr("content"),l=t("meta[name=csrf-param]").attr("content"),c=t('<form method="post" action="'+s+'"></form>'),h='<input name="_method" value="'+o+'" type="hidden" />';l!==e&&r!==e&&(h+='<input name="'+l+'" value="'+r+'" type="hidden" />'),a&&c.attr("target",a),c.hide().append(h).appendTo("body"),c.submit()},disableFormElements:function(e){e.find(n.disableSelector).each(function(){var e=t(this),i=e.is("button")?"html":"val";e.data("ujs:enable-with",e[i]()),e[i](e.data("disable-with")),e.prop("disabled",!0)})},enableFormElements:function(e){e.find(n.enableSelector).each(function(){var e=t(this),i=e.is("button")?"html":"val";e.data("ujs:enable-with")&&e[i](e.data("ujs:enable-with")),e.prop("disabled",!1)})},allowAction:function(t){var e,i=t.data("confirm"),s=!1;return i?(n.fire(t,"confirm")&&(s=n.confirm(i),e=n.fire(t,"confirm:complete",[s])),s&&e):!0},blankInputs:function(e,i,n){var s,o,a=t(),r=i||"input,textarea";return e.find(r).each(function(){s=t(this),o=s.is(":checkbox,:radio")?s.is(":checked"):s.val(),o==!!n&&(a=a.add(s))}),a.length?a:!1},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},callFormSubmitBindings:function(i,n){var s=i.data("events"),o=!0;return s!==e&&s.submit!==e&&t.each(s.submit,function(t,e){return"function"==typeof e.handler?o=e.handler(n):void 0}),o},disableElement:function(t){t.data("ujs:enable-with",t.html()),t.html(t.data("disable-with")),t.bind("click.railsDisable",function(t){return n.stopEverything(t)})},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.data("ujs:enable-with",!1)),t.unbind("click.railsDisable")}},n.fire(t(document),"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,i){t.crossDomain||n.CSRFProtection(i)}),t(document).delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(t(this))}),t(document).delegate(n.linkClickSelector,"click.rails",function(i){var s=t(this),o=s.data("method"),a=s.data("params");return n.allowAction(s)?(s.is(n.linkDisableSelector)&&n.disableElement(s),s.data("remote")!==e?!i.metaKey&&!i.ctrlKey||o&&"GET"!==o||a?(n.handleRemote(s)===!1&&n.enableElement(s),!1):!0:s.data("method")?(n.handleMethod(s),!1):void 0):n.stopEverything(i)}),t(document).delegate(n.inputChangeSelector,"change.rails",function(e){var i=t(this);return n.allowAction(i)?(n.handleRemote(i),!1):n.stopEverything(e)}),t(document).delegate(n.formSubmitSelector,"submit.rails",function(i){var s=t(this),o=s.data("remote")!==e,a=n.blankInputs(s,n.requiredInputSelector),r=n.nonBlankInputs(s,n.fileInputSelector);return n.allowAction(s)?a&&s.attr("novalidate")==e&&n.fire(s,"ajax:aborted:required",[a])?n.stopEverything(i):o?r?(setTimeout(function(){n.disableFormElements(s)},13),n.fire(s,"ajax:aborted:file",[r])):!t.support.submitBubbles&&t().jquery<"1.7"&&n.callFormSubmitBindings(s,i)===!1?n.stopEverything(i):(n.handleRemote(s),!1):void setTimeout(function(){n.disableFormElements(s)},13):n.stopEverything(i)}),t(document).delegate(n.formInputClickSelector,"click.rails",function(e){var i=t(this);if(!n.allowAction(i))return n.stopEverything(e);var s=i.attr("name"),o=s?{name:s,value:i.val()}:null;i.closest("form").data("ujs:submit-button",o)}),t(document).delegate(n.formSubmitSelector,"ajax:beforeSend.rails",function(e){this==e.target&&n.disableFormElements(t(this))}),t(document).delegate(n.formSubmitSelector,"ajax:complete.rails",function(e){this==e.target&&n.enableFormElements(t(this))}),t(function(){csrf_token=t("meta[name=csrf-token]").attr("content"),csrf_param=t("meta[name=csrf-param]").attr("content"),t('form input[name="'+csrf_param+'"]').val(csrf_token)}))}(jQuery),/*!
   * jQuery UI 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI
   */
  function(t,e){function i(e,i){var s=e.nodeName.toLowerCase();if("area"===s){var o,a=e.parentNode,r=a.name;return e.href&&r&&"map"===a.nodeName.toLowerCase()?(o=t("img[usemap=#"+r+"]")[0],!!o&&n(o)):!1}return(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"==s?e.href||i:i)&&n(e)}function n(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.18",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}}),t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var n=this;setTimeout(function(){t(n).focus(),i&&i.call(n)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,"position",1))&&/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,s,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(s=parseInt(o.css("zIndex"),10),!isNaN(s)&&0!==s))return s;o=o.parent()}return 0},disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.each(["Width","Height"],function(i,n){function s(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,n&&(i-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),s&&(i-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),i}var o="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?r["inner"+n].call(this):this.each(function(){t(this).css(a,s(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?r["outer"+n].call(this,e):this.each(function(){t(this).css(a,s(this,e,!0,i)+"px")})}}),t.extend(t.expr[":"],{data:function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s=t.ui[e].prototype;for(var o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i){var n=t.plugins[e];if(n&&t.element[0].parentNode)for(var s=0;s<n.length;s++)t.options[n[s][0]]&&n[s][1].apply(t.element,i)}},contains:function(t,e){return document.compareDocumentPosition?16&t.compareDocumentPosition(e):t!==e&&t.contains(e)},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0?!0:(e[n]=1,s=e[n]>0,e[n]=0,s)},isOverAxis:function(t,e,i){return t>e&&e+i>t},isOver:function(e,i,n,s,o,a){return t.ui.isOverAxis(e,n,o)&&t.ui.isOverAxis(i,s,a)}}))}(jQuery),/*!
   * jQuery UI Widget 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Widget
   */
  function(t,e){if(t.cleanData){var i=t.cleanData;t.cleanData=function(e){for(var n,s=0;null!=(n=e[s]);s++)try{t(n).triggerHandler("remove")}catch(o){}i(e)}}else{var n=t.fn.remove;t.fn.remove=function(e,i){return this.each(function(){return i||(!e||t.filter(e,[this]).length)&&t("*",this).add([this]).each(function(){try{t(this).triggerHandler("remove")}catch(e){}}),n.call(t(this),e,i)})}}t.widget=function(e,i,n){var s,o=e.split(".")[0];e=e.split(".")[1],s=o+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s]=function(i){return!!t.data(i,e)},t[o]=t[o]||{},t[o][e]=function(t,e){arguments.length&&this._createWidget(t,e)};var a=new i;a.options=t.extend(!0,{},a.options),t[o][e].prototype=t.extend(!0,a,{namespace:o,widgetName:e,widgetEventPrefix:t[o][e].prototype.widgetEventPrefix||e,widgetBaseClass:s},n),t.widget.bridge(e,t[o][e])},t.widget.bridge=function(i,n){t.fn[i]=function(s){var o="string"==typeof s,a=Array.prototype.slice.call(arguments,1),r=this;return s=!o&&a.length?t.extend.apply(null,[!0,s].concat(a)):s,o&&"_"===s.charAt(0)?r:(this.each(o?function(){var n=t.data(this,i),o=n&&t.isFunction(n[s])?n[s].apply(n,a):n;return o!==n&&o!==e?(r=o,!1):void 0}:function(){var e=t.data(this,i);e?e.option(s||{})._init():t.data(this,i,new n(s,this))}),r)}},t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)},t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,i){t.data(i,this.widgetName,this),this.element=t(i),this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var n=this;this.element.bind("remove."+this.widgetName,function(){n.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(i,n){var s=i;if(0===arguments.length)return t.extend({},this.options);if("string"==typeof i){if(n===e)return this.options[i];s={},s[i]=n}return this._setOptions(s),this},_setOptions:function(e){var i=this;return t.each(e,function(t,e){i._setOption(t,e)}),this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,i,n){var s,o,a=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(a)&&a.call(this.element[0],i,n)===!1||i.isDefaultPrevented())}}}(jQuery),/*!
   * jQuery UI Mouse 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Mouse
   *
   * Depends:
   *	jquery.ui.widget.js
   */
  function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1==i.which,o="string"==typeof this.options.cancel&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1;return s&&!o&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return!t.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),/*
   * jQuery UI Draggable 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Draggables
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.mouse.js
   *	jquery.ui.widget.js
   */
  function(t){t.widget("ui.draggable",t.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(){return this.element.data("draggable")?(this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this):void 0},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(e),this.handle?(i.iframeFix&&t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t('<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(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._cacheHelperProportions(),t.ui.ddmanager&&(t.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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=!1;if(t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var n=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",e)!==!1&&n._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){return this.options.iframeFix===!0&&t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var i=this.options.handle&&t(this.options.handle,this.element).length?!1:!0;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(i=!0)}),i},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),n[0]==this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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 e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var i=t(e.containment),n=i[0];if(!n)return;var s=(i.offset(),"hidden"!=t(n).css("overflow"));this.containment=[(parseInt(t(n).css("borderLeftWidth"),10)||0)+(parseInt(t(n).css("paddingLeft"),10)||0),(parseInt(t(n).css("borderTopWidth"),10)||0)+(parseInt(t(n).css("paddingTop"),10)||0),(s?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t(n).css("borderLeftWidth"),10)||0)-(parseInt(t(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t(n).css("borderTopWidth"),10)||0)-(parseInt(t(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"==e?1:-1,s=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n),left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n)}},_generatePosition:function(e){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName),o=e.pageX,a=e.pageY;if(this.originalPosition){var r;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();r=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else r=this.containment;e.pageX-this.offset.click.left<r[0]&&(o=r[0]+this.offset.click.left),e.pageY-this.offset.click.top<r[1]&&(a=r[1]+this.offset.click.top),e.pageX-this.offset.click.left>r[2]&&(o=r[2]+this.offset.click.left),e.pageY-this.offset.click.top>r[3]&&(a=r[3]+this.offset.click.top)}if(i.grid){var c=i.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY;a=r&&(c-this.offset.click.top<r[1]||c-this.offset.click.top>r[3])?c-this.offset.click.top<r[1]?c+i.grid[1]:c-i.grid[1]:c;var h=i.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX;o=r&&(h-this.offset.click.left<r[0]||h-this.offset.click.left>r[2])?h-this.offset.click.left<r[0]?h+i.grid[0]:h-i.grid[0]:h}}return{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.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(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.extend(t.ui.draggable,{version:"1.8.18"}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("draggable"),s=n.options,o=t.extend({},i,{item:n.element});n.sortables=[],t(s.connectToSortable).each(function(){var i=t.data(this,"sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i){var n=t(this).data("draggable"),s=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,s))})},drag:function(e,i){var n=t(this).data("draggable"),s=this;t.each(n.sortables,function(){this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(s).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 i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),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._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),s=t(this).data("draggable").options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,i){var n=t(this).data("draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("draggable");e.scrollParent[0]!=document&&"HTML"!=e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("draggable"),n=i.options,s=!1;i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName?(n.axis&&"x"==n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"==n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"==n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"==n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),s!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){for(var n=t(this).data("draggable"),s=n.options,o=s.snapTolerance,a=i.offset.left,r=a+n.helperProportions.width,l=i.offset.top,c=l+n.helperProportions.height,h=n.snapElements.length-1;h>=0;h--){var u=n.snapElements[h].left,d=u+n.snapElements[h].width,p=n.snapElements[h].top,f=p+n.snapElements[h].height;if(a>u-o&&d+o>a&&l>p-o&&f+o>l||a>u-o&&d+o>a&&c>p-o&&f+o>c||r>u-o&&d+o>r&&l>p-o&&f+o>l||r>u-o&&d+o>r&&c>p-o&&f+o>c){if("inner"!=s.snapMode){var g=Math.abs(p-c)<=o,m=Math.abs(f-l)<=o,v=Math.abs(u-r)<=o,b=Math.abs(d-a)<=o;g&&(i.position.top=n._convertPositionTo("relative",{top:p-n.helperProportions.height,left:0}).top-n.margins.top),m&&(i.position.top=n._convertPositionTo("relative",{top:f,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d}).left-n.margins.left)}var _=g||m||v||b;if("outer"!=s.snapMode){var g=Math.abs(p-l)<=o,m=Math.abs(f-c)<=o,v=Math.abs(u-a)<=o,b=Math.abs(d-r)<=o;g&&(i.position.top=n._convertPositionTo("relative",{top:p,left:0}).top-n.margins.top),m&&(i.position.top=n._convertPositionTo("relative",{top:f-n.helperProportions.height,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left-n.margins.left),b&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d-n.helperProportions.width}).left-n.margins.left)}!n.snapElements[h].snapping&&(g||m||v||b||_)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=g||m||v||b||_}else n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1}}}),t.ui.plugin.add("draggable","stack",{start:function(){var e=t(this).data("draggable").options,i=t.makeArray(t(e.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});if(i.length){var n=parseInt(i[0].style.zIndex)||0;t(i).each(function(t){this.style.zIndex=n+t}),this[0].style.zIndex=n+i.length}}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),s=t(this).data("draggable").options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,i){var n=t(this).data("draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),/*
   * jQuery UI Droppable 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Droppables
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   *	jquery.ui.mouse.js
   *	jquery.ui.draggable.js
   */
  function(t){t.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,i=e.accept;this.isover=0,this.isout=1,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var e=t.ui.ddmanager.droppables[this.options.scope],i=0;i<e.length;i++)e[i]==this&&e.splice(i,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(e,i){"accept"==e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return!1;var s=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope==n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(s=!0,!1):void 0}),s?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.extend(t.ui.droppable,{version:"1.8.18"}),t.ui.intersect=function(e,i,n){if(!i.offset)return!1;var s=(e.positionAbs||e.position.absolute).left,o=s+e.helperProportions.width,a=(e.positionAbs||e.position.absolute).top,r=a+e.helperProportions.height,l=i.offset.left,c=l+i.proportions.width,h=i.offset.top,u=h+i.proportions.height;switch(n){case"fit":return s>=l&&c>=o&&a>=h&&u>=r;case"intersect":return l<s+e.helperProportions.width/2&&o-e.helperProportions.width/2<c&&h<a+e.helperProportions.height/2&&r-e.helperProportions.height/2<u;case"pointer":var d=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,p=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,f=t.ui.isOver(p,d,h,l,i.proportions.height,i.proportions.width);return f;case"touch":return(a>=h&&u>=a||r>=h&&u>=r||h>a&&r>u)&&(s>=l&&c>=s||o>=l&&c>=o||l>s&&o>c);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n=t.ui.ddmanager.droppables[e.options.scope]||[],s=i?i.type:null,o=(e.currentItem||e.element).find(":data(droppable)").andSelf();t:for(var a=0;a<n.length;a++)if(!(n[a].options.disabled||e&&!n[a].accept.call(n[a].element[0],e.currentItem||e.element))){for(var r=0;r<o.length;r++)if(o[r]==n[a].element[0]){n[a].proportions.height=0;continue t}n[a].visible="none"!=n[a].element.css("display"),n[a].visible&&("mousedown"==s&&n[a]._activate.call(n[a],i),n[a].offset=n[a].element.offset(),n[a].proportions={width:n[a].element[0].offsetWidth,height:n[a].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parents(":not(body,html)").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n=t.ui.intersect(e,this,this.options.tolerance),s=n||1!=this.isover?n&&0==this.isover?"isover":null:"isout";if(s){var o;if(this.options.greedy){var a=this.element.parents(":data(droppable):eq(0)");a.length&&(o=t.data(a[0],"droppable"),o.greedyChild="isover"==s?1:0)}o&&"isover"==s&&(o.isover=0,o.isout=1,o._out.call(o,i)),this[s]=1,this["isout"==s?"isover":"isout"]=0,this["isover"==s?"_over":"_out"].call(this,i),o&&"isout"==s&&(o.isout=0,o.isover=1,o._over.call(o,i))}}})},dragStop:function(e,i){e.element.parents(":not(body,html)").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),/*
   * jQuery UI Resizable 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Resizables
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.mouse.js
   *	jquery.ui.widget.js
   */
  function(t){t.widget("ui.resizable",t.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e=this,i=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('<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=!0,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=i.handles||(t(".ui-resizable-handle",this.element).length?{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"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var n=this.handles.split(",");this.handles={};for(var s=0;s<n.length;s++){var o=t.trim(n[s]),a="ui-resizable-"+o,r=t('<div class="ui-resizable-handle '+a+'"></div>');/sw|se|ne|nw/.test(o)&&r.css({zIndex:++i.zIndex}),"se"==o&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[o]=".ui-resizable-"+o,this.element.append(r)}}this._renderAxis=function(e){e=e||this.element;for(var i in this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=t(this.handles[i],this.element),s=0;s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth();var o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");e.css(o,s),this._proportionallyResize()}t(this.handles[i]).length}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),i.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").hover(function(){i.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())},function(){i.disabled||e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var i=this.element;i.after(this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i=!1;for(var n in this.handles)t(this.handles[n])[0]==e.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(i){var n=this.options,s=this.element.position(),o=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(o.is(".ui-draggable")||/absolute/.test(o.css("position")))&&o.css({position:"absolute",top:s.top,left:s.left}),this._renderProxy();var a=e(this.helper.css("left")),r=e(this.helper.css("top"));n.containment&&(a+=t(n.containment).scrollLeft()||0,r+=t(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:a,top:r},this.size=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalPosition={left:a,top:r},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),o.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i=this.helper,n=(this.options,this.originalMousePosition),s=this.axis,o=e.pageX-n.left||0,a=e.pageY-n.top||0,r=this._change[s];if(!r)return!1;{var l=r.apply(this,[e,o,a]);t.browser.msie&&t.browser.version<7,this.sizeDiff}return this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(l=this._updateRatio(l,e)),l=this._respectSize(l,e),this._propagate("resize",e),i.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(l),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var i=this.options,n=this;if(this._helper){var s=this._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),a=o&&t.ui.hasScroll(s[0],"left")?0:n.sizeDiff.height,r=o?0:n.sizeDiff.width,l={width:n.helper.width()-r,height:n.helper.height()-a},c=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,h=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;i.animate||this.element.css(t.extend(l,{top:h,left:c})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,s,o,a,r=this.options;a={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,s=a.minWidth/this.aspectRatio,n=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),s>a.minHeight&&(a.minHeight=s),n<a.maxWidth&&(a.maxWidth=n),o<a.maxHeight&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(t){this.options;this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=(this.options,this.position),n=this.size,s=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"==s&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"==s&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t,e){var n=(this.helper,this._vBoundaries),s=(this._aspectRatio||e.shiftKey,this.axis),o=i(t.width)&&n.maxWidth&&n.maxWidth<t.width,a=i(t.height)&&n.maxHeight&&n.maxHeight<t.height,r=i(t.width)&&n.minWidth&&n.minWidth>t.width,l=i(t.height)&&n.minHeight&&n.minHeight>t.height;r&&(t.width=n.minWidth),l&&(t.height=n.minHeight),o&&(t.width=n.maxWidth),a&&(t.height=n.maxHeight);var c=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,u=/sw|nw|w/.test(s),d=/nw|ne|n/.test(s);r&&u&&(t.left=c-n.minWidth),o&&u&&(t.left=c-n.maxWidth),l&&d&&(t.top=h-n.minHeight),a&&d&&(t.top=h-n.maxHeight);var p=!t.width&&!t.height;return p&&!t.left&&t.top?t.top=null:p&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var n=this._proportionallyResizeElements[i];if(!this.borderDif){var s=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],o=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];this.borderDif=t.map(s,function(t,e){var i=parseInt(t,10)||0,n=parseInt(o[e],10)||0;return i+n})}t.browser.msie&&(t(e).is(":hidden")||t(e).parents(":hidden").length)||n.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.element,i=this.options;if(this.elementOffset=e.offset(),this._helper){this.helper=this.helper||t('<div style="overflow:hidden;"></div>');var n=t.browser.msie&&t.browser.version<7,s=n?1:0,o=n?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+o,height:this.element.outerHeight()+o,position:"absolute",left:this.elementOffset.left-s+"px",top:this.elementOffset.top-s+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=(this.options,this.originalSize),n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=(this.options,this.originalSize),s=this.originalPosition;return{top:s.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,i,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}}}),t.extend(t.ui.resizable,{version:"1.8.18"}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("resizable"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data("resizable"),s=n.options,o=n.originalSize,a=n.originalPosition,r={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-a.top||0,left:n.position.left-a.left||0},l=function(e,n){t(e).each(function(){var e=t(this),s=t(this).data("resizable-alsoresize"),o={},a=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof s.alsoResize||s.alsoResize.nodeType?l(s.alsoResize):t.each(s.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("resizable"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),a=o&&t.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i=t(this).data("resizable"),n=i.options,s=i.element,o=n.containment,a=o instanceof t?o.get(0):/parent/.test(o)?s.parent().get(0):o;if(a)if(i.containerElement=t(a),/document/.test(o)||o==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var r=t(a),l=[];t(["Top","Right","Left","Bottom"]).each(function(t,i){l[t]=e(r.css("padding"+i))}),i.containerOffset=r.offset(),i.containerPosition=r.position(),i.containerSize={height:r.innerHeight()-l[3],width:r.innerWidth()-l[1]};var c=i.containerOffset,h=i.containerSize.height,u=i.containerSize.width,d=t.ui.hasScroll(a,"left")?a.scrollWidth:u,p=t.ui.hasScroll(a)?a.scrollHeight:h;i.parentData={element:a,left:c.left,top:c.top,width:d,height:p}}},resize:function(e){var i=t(this).data("resizable"),n=i.options,s=(i.containerSize,i.containerOffset),o=(i.size,i.position),a=i._aspectRatio||e.shiftKey,r={top:0,left:0},l=i.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(r=s),o.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-r.left),a&&(i.size.height=i.size.width/n.aspectRatio),i.position.left=n.helper?s.left:0),o.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),a&&(i.size.width=i.size.height*n.aspectRatio),i.position.top=i._helper?s.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var c=Math.abs((i._helper?i.offset.left-r.left:i.offset.left-r.left)+i.sizeDiff.width),h=Math.abs((i._helper?i.offset.top-r.top:i.offset.top-s.top)+i.sizeDiff.height),u=i.containerElement.get(0)==i.element.parent().get(0),d=/relative|absolute/.test(i.containerElement.css("position"));u&&d&&(c-=i.parentData.left),c+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-c,a&&(i.size.height=i.size.width/i.aspectRatio)),h+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-h,a&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var e=t(this).data("resizable"),i=e.options,n=(e.position,e.containerOffset),s=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,c=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-s.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-s.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){{var e=t(this).data("resizable");e.options}e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){{var e=t(this).data("resizable");e.options}e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e){{var i=t(this).data("resizable"),n=i.options,s=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis;n._aspectRatio||e.shiftKey}n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var l=Math.round((s.width-o.width)/(n.grid[0]||1))*(n.grid[0]||1),c=Math.round((s.height-o.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(r)?(i.size.width=o.width+l,i.size.height=o.height+c):/^(ne)$/.test(r)?(i.size.width=o.width+l,i.size.height=o.height+c,i.position.top=a.top-c):/^(sw)$/.test(r)?(i.size.width=o.width+l,i.size.height=o.height+c,i.position.left=a.left-l):(i.size.width=o.width+l,i.size.height=o.height+c,i.position.top=a.top-c,i.position.left=a.left-l)}});var e=function(t){return parseInt(t,10)||0},i=function(t){return!isNaN(parseInt(t,10))}}(jQuery),/*
   * jQuery UI Selectable 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Selectables
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.mouse.js
   *	jquery.ui.widget.js
   */
  function(t){t.widget("ui.selectable",t.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e=this;this.element.addClass("ui-selectable"),this.dragged=!1;var i;this.refresh=function(){i=t(e.options.filter,e.element[0]),i.addClass("ui-selectee"),i.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=i.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(e){var i=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var n=this.options;this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().andSelf().each(function(){var n=t.data(this,"selectable-item");if(n){var s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected");return n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1}})}},_mouseDrag:function(e){var i=this;if(this.dragged=!0,!this.options.disabled){var n=this.options,s=this.opos[0],o=this.opos[1],a=e.pageX,r=e.pageY;if(s>a){var l=a;a=s,s=l}if(o>r){var l=r;r=o,o=l}return this.helper.css({left:s,top:o,width:a-s,height:r-o}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var c=!1;"touch"==n.tolerance?c=!(l.left>a||l.right<s||l.top>r||l.bottom<o):"fit"==n.tolerance&&(c=l.left>s&&l.right<a&&l.top>o&&l.bottom<r),c?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,i._trigger("selecting",e,{selecting:l.element}))):(l.selecting&&((e.metaKey||e.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),i._trigger("unselecting",e,{unselecting:l.element}))),l.selected&&(e.metaKey||e.ctrlKey||l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,i._trigger("unselecting",e,{unselecting:l.element}))))}}),!1}},_mouseStop:function(e){var i=this;this.dragged=!1;this.options;return t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.extend(t.ui.selectable,{version:"1.8.18"})}(jQuery),/*
   * jQuery UI Sortable 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Sortables
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.mouse.js
   *	jquery.ui.widget.js
   */
  function(t){t.widget("ui.sortable",t.ui.mouse,{widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){t.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget()[i?"addClass":"removeClass"]("ui-sortable-disabled")):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);{var s=null,o=this;t(e.target).parents().each(function(){return t.data(this,n.widgetName+"-item")==o?(s=t(this),!1):void 0})}if(t.data(e.target,n.widgetName+"-item")==o&&(s=t(e.target)),!s)return!1;if(this.options.handle&&!i){var a=!1;if(t(this.options.handle,s).find("*").andSelf().each(function(){this==e.target&&(a=!0)}),!a)return!1}return this.currentItem=s,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,i,n){var s=this.options,o=this;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),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"),t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",s.cursor)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(var a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",e,o._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,n=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(e.pageY-t(document).scrollTop()<i.scrollSensitivity?n=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity&&(n=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed)),e.pageX-t(document).scrollLeft()<i.scrollSensitivity?n=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity&&(n=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed))),n!==!1&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(var s=this.items.length-1;s>=0;s--){var o=this.items[s],a=o.item[0],r=this._intersectsWithPointer(o);if(r&&a!=this.currentItem[0]&&this.placeholder[1==r?"next":"prev"]()[0]!=a&&!t.ui.contains(this.placeholder[0],a)&&("semi-dynamic"==this.options.type?!t.ui.contains(this.element[0],a):!0)){if(this.direction=1==r?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(e,o),this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=n.placeholder.offset();n.reverting=!0,t(this.helper).animate({left:s.left-this.offset.parent.left-n.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:s.top-this.offset.parent.top-n.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){var e=this;if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("deactivate",null,e._uiHash(this)),this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",null,e._uiHash(this)),this.containers[i].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,c=this.offset.click.top,h=this.offset.click.left,u=n+c>r&&l>n+c&&e+h>o&&a>e+h;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?u:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),n=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),s=i&&n,o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return s?this.floating?a&&"right"==a||"down"==o?2:1:o&&("down"==o?2:1):!1},_intersectsWithSides:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"==o&&n||"left"==o&&!n:s&&("down"==s&&i||"up"==s&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i=[],n=[],s=this._connectWith();if(s&&e)for(var o=s.length-1;o>=0;o--)for(var a=t(s[o]),r=a.length-1;r>=0;r--){var l=t.data(a[r],this.widgetName);l&&l!=this&&!l.options.disabled&&n.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}n.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var o=n.length-1;o>=0;o--)n[o][0].each(function(){i.push(this)});return t(i)},_removeCurrentsFromItems:function(){for(var t=this.currentItem.find(":data("+this.widgetName+"-item)"),e=0;e<this.items.length;e++)for(var i=0;i<t.length;i++)t[i]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(e){this.items=[],this.containers=[this];var i=this.items,n=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],s=this._connectWith();if(s&&this.ready)for(var o=s.length-1;o>=0;o--)for(var a=t(s[o]),r=a.length-1;r>=0;r--){var l=t.data(a[r],this.widgetName);l&&l!=this&&!l.options.disabled&&(n.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var o=n.length-1;o>=0;o--)for(var c=n[o][1],h=n[o][0],r=0,u=h.length;u>r;r++){var d=t(h[r]);d.data(this.widgetName+"-item",c),i.push({item:d,instance:c,width:0,height:0,left:0,top:0})}},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var i=this.items.length-1;i>=0;i--){var n=this.items[i];if(n.instance==this.currentContainer||!this.currentContainer||n.item[0]==this.currentItem[0]){var s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item;e||(n.width=s.outerWidth(),n.height=s.outerHeight());var o=s.offset();n.left=o.left,n.top=o.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var i=this.containers.length-1;i>=0;i--){var o=this.containers[i].element.offset();this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(e){var i=e||this,n=i.options;if(!n.placeholder||n.placeholder.constructor==String){var s=n.placeholder;n.placeholder={element:function(){var e=t(document.createElement(i.currentItem[0].nodeName)).addClass(s||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return s||(e.style.visibility="hidden"),e},update:function(t,e){(!s||n.forcePlaceholderSize)&&(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}}i.placeholder=t(n.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),n.placeholder.update(i,i.placeholder)},_contactContainers:function(e){for(var i=null,n=null,s=this.containers.length-1;s>=0;s--)if(!t.ui.contains(this.currentItem[0],this.containers[s].element[0]))if(this._intersectsWith(this.containers[s].containerCache)){if(i&&t.ui.contains(this.containers[s].element[0],i.element[0]))continue;i=this.containers[s],n=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",e,this._uiHash(this)),this.containers[s].containerCache.over=0);if(i)if(1===this.containers.length)this.containers[n]._trigger("over",e,this._uiHash(this)),this.containers[n].containerCache.over=1;else if(this.currentContainer!=this.containers[n]){for(var o=1e4,a=null,r=this.positionAbs[this.containers[n].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(t.ui.contains(this.containers[n].element[0],this.items[l].item[0])){var c=this.items[l][this.containers[n].floating?"left":"top"];Math.abs(c-r)<o&&(o=Math.abs(c-r),a=this.items[l])}if(!a&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[n],a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[n].element,!0),this._trigger("change",e,this._uiHash()),this.containers[n]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",e,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),(""==n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(""==n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}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 e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(e.containment)){var i=t(e.containment)[0],n=t(e.containment).offset(),s="hidden"!=t(i).css("overflow");this.containment=[n.left+(parseInt(t(i).css("borderLeftWidth"),10)||0)+(parseInt(t(i).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(i).css("borderTopWidth"),10)||0)+(parseInt(t(i).css("paddingTop"),10)||0)-this.margins.top,n.left+(s?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css("borderLeftWidth"),10)||0)-(parseInt(t(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(s?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css("borderTopWidth"),10)||0)-(parseInt(t(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"==e?1:-1,s=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n),left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n)}},_generatePosition:function(e){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());var o=e.pageX,a=e.pageY;if(this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),i.grid)){var r=this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1];a=this.containment&&(r-this.offset.click.top<this.containment[1]||r-this.offset.click.top>this.containment[3])?r-this.offset.click.top<this.containment[1]?r+i.grid[1]:r-i.grid[1]:r;var l=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0];o=this.containment&&(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l-this.offset.click.left<this.containment[0]?l+i.grid[0]:l-i.grid[0]:l}return{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this,o=this.counter;window.setTimeout(function(){o==s.counter&&s.refreshPositions(!n)},0)},_clear:function(e,i){this.reverting=!1;var n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var s in this._storedCSS)("auto"==this._storedCSS[s]||"static"==this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!i&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||i||n.push(function(t){this._trigger("update",t,this._uiHash())}),!t.ui.contains(this.element[0],this.currentItem[0])){i||n.push(function(t){this._trigger("remove",t,this._uiHash())});for(var s=this.containers.length-1;s>=0;s--)t.ui.contains(this.containers[s].element[0],this.currentItem[0])&&!i&&(n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.containers[s])),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.containers[s])))}for(var s=this.containers.length-1;s>=0;s--)i||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[s])),this.containers[s].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",e,this._uiHash());for(var s=0;s<n.length;s++)n[s].call(this,e);this._trigger("stop",e,this._uiHash())}return!1}if(i||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(var s=0;s<n.length;s++)n[s].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.extend(t.ui.sortable,{version:"1.8.18"})}(jQuery),jQuery.effects||function(t,e){function i(e){var i;return e&&e.constructor==Array&&3==e.length?e:(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10)]:(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))?[2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3])]:(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))?[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)]:(i=/rgba\(0, 0, 0, 0\)/.exec(e))?c.transparent:c[t.trim(e).toLowerCase()]}function n(e,n){var s;do{if(s=t.curCSS(e,n),""!=s&&"transparent"!=s||t.nodeName(e,"body"))break;n="backgroundColor"}while(e=e.parentNode);return i(s)}function s(){var t,e,i=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,n={};if(i&&i.length&&i[0]&&i[i[0]])for(var s=i.length;s--;)t=i[s],"string"==typeof i[t]&&(e=t.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),n[e]=i[t]);else for(t in i)"string"==typeof i[t]&&(n[t]=i[t]);return n}function o(e){var i,n;for(i in e)n=e[i],(null==n||t.isFunction(n)||i in u||/scrollbar/.test(i)||!/color/i.test(i)&&isNaN(parseFloat(n)))&&delete e[i];return e}function a(t,e){var i,n={_:0};for(i in e)t[i]!=e[i]&&(n[i]=e[i]);return n}function r(e,i,n,s){return"object"==typeof e&&(s=i,n=null,i=e,e=i.effect),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i=i||{},n=n||i.duration,n=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,s=s||i.complete,[e,i,n,s]}function l(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects[e]?!1:!0}t.effects={},t.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(e,s){t.fx.step[s]=function(t){t.colorInit||(t.start=n(t.elem,s),t.end=i(t.end),t.colorInit=!0),t.elem.style[s]="rgb("+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+")"}});var c={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]},h=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.effects.animateClass=function(e,i,n,r){return t.isFunction(n)&&(r=n,n=null),this.queue(function(){var l,c=t(this),u=c.attr("style")||" ",d=o(s.call(this)),p=c.attr("class");t.each(h,function(t,i){e[i]&&c[i+"Class"](e[i])}),l=o(s.call(this)),c.attr("class",p),c.animate(a(d,l),{queue:!1,duration:i,easing:n,complete:function(){t.each(h,function(t,i){e[i]&&c[i+"Class"](e[i])}),"object"==typeof c.attr("style")?(c.attr("style").cssText="",c.attr("style").cssText=u):c.attr("style",u),r&&r.apply(this,arguments),t.dequeue(this)}})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,i,n,s){return i?t.effects.animateClass.apply(this,[{add:e},i,n,s]):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,i,n,s){return i?t.effects.animateClass.apply(this,[{remove:e},i,n,s]):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(i,n,s,o,a){return"boolean"==typeof n||n===e?s?t.effects.animateClass.apply(this,[n?{add:i}:{remove:i},s,o,a]):this._toggleClass(i,n):t.effects.animateClass.apply(this,[{toggle:i},n,s,o])},switchClass:function(e,i,n,s,o){return t.effects.animateClass.apply(this,[{add:i,remove:e},n,s,o])}}),t.extend(t.effects,{version:"1.8.18",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data("ec.storage."+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.css(e[i],t.data("ec.storage."+e[i]))},setMode:function(t,e){return"toggle"==e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s=document.activeElement;return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),n=e.parent(),"static"==e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(i).show()},removeWrapper:function(e){var i,n=document.activeElement;return e.parent().is(".ui-effects-wrapper")?(i=e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).focus(),i):e},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){unit=e.cssUnit(i),unit[0]>0&&(s[i]=unit[0]*n+unit[1])}),s}}),t.fn.extend({effect:function(e){var i=r.apply(this,arguments),n={options:i[1],duration:i[2],callback:i[3]},s=n.options.mode,o=t.effects[e];return t.fx.off||!o?s?this[s](n.duration,n.callback):this.each(function(){n.callback&&n.callback.call(this)}):o.call(this,n)},_show:t.fn.show,show:function(t){if(l(t))return this._show.apply(this,arguments);var e=r.apply(this,arguments);return e[1].mode="show",this.effect.apply(this,e)},_hide:t.fn.hide,hide:function(t){if(l(t))return this._hide.apply(this,arguments);var e=r.apply(this,arguments);return e[1].mode="hide",this.effect.apply(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(l(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var i=r.apply(this,arguments);return i[1].mode="toggle",this.effect.apply(this,i)},cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}}),/*
   * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
   *
   * Uses the built in easing capabilities added In jQuery 1.1
   * to offer multiple easing options
   *
   * TERMS OF USE - jQuery Easing
   *
   * Open source under the BSD License.
   *
   * Copyright 2008 George McGinley Smith
   * All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without modification,
   * are permitted provided that the following conditions are met:
   *
   * Redistributions of source code must retain the above copyright notice, this list of
   * conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above copyright notice, this list
   * of conditions and the following disclaimer in the documentation and/or other materials
   * provided with the distribution.
   *
   * Neither the name of the author nor the names of contributors may be used to endorse
   * or promote products derived from this software without specific prior written permission.
   *
   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
   * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
   * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
   * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   * OF THE POSSIBILITY OF SUCH DAMAGE.
   *
  */
  t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,i,n,s,o){return t.easing[t.easing.def](e,i,n,s,o)},easeInQuad:function(t,e,i,n,s){return n*(e/=s)*e+i},easeOutQuad:function(t,e,i,n,s){return-n*(e/=s)*(e-2)+i},easeInOutQuad:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,s){return n*(e/=s)*e*e+i},easeOutCubic:function(t,e,i,n,s){return n*((e=e/s-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,s){return n*(e/=s)*e*e*e+i},easeOutQuart:function(t,e,i,n,s){return-n*((e=e/s-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,s){return n*(e/=s)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,s){return n*((e=e/s-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,s){return-n*Math.cos(e/s*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,s){return n*Math.sin(e/s*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,s){return-n/2*(Math.cos(Math.PI*e/s)-1)+i},easeInExpo:function(t,e,i,n,s){return 0==e?i:n*Math.pow(2,10*(e/s-1))+i},easeOutExpo:function(t,e,i,n,s){return e==s?i+n:n*(-Math.pow(2,-10*e/s)+1)+i},easeInOutExpo:function(t,e,i,n,s){return 0==e?i:e==s?i+n:(e/=s/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,n,s){return-n*(Math.sqrt(1-(e/=s)*e)-1)+i},easeOutCirc:function(t,e,i,n,s){return n*Math.sqrt(1-(e=e/s-1)*e)+i},easeInOutCirc:function(t,e,i,n,s){return(e/=s/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,s){var o=1.70158,a=0,r=n;if(0==e)return i;if(1==(e/=s))return i+n;if(a||(a=.3*s),r<Math.abs(n)){r=n;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(n/r);return-(r*Math.pow(2,10*(e-=1))*Math.sin(2*(e*s-o)*Math.PI/a))+i},easeOutElastic:function(t,e,i,n,s){var o=1.70158,a=0,r=n;if(0==e)return i;if(1==(e/=s))return i+n;if(a||(a=.3*s),r<Math.abs(n)){r=n;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(n/r);return r*Math.pow(2,-10*e)*Math.sin(2*(e*s-o)*Math.PI/a)+n+i},easeInOutElastic:function(t,e,i,n,s){var o=1.70158,a=0,r=n;if(0==e)return i;if(2==(e/=s/2))return i+n;if(a||(a=.3*s*1.5),r<Math.abs(n)){r=n;var o=a/4}else var o=a/(2*Math.PI)*Math.asin(n/r);return 1>e?-.5*r*Math.pow(2,10*(e-=1))*Math.sin(2*(e*s-o)*Math.PI/a)+i:r*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*s-o)*Math.PI/a)*.5+n+i},easeInBack:function(t,i,n,s,o,a){return a==e&&(a=1.70158),s*(i/=o)*i*((a+1)*i-a)+n},easeOutBack:function(t,i,n,s,o,a){return a==e&&(a=1.70158),s*((i=i/o-1)*i*((a+1)*i+a)+1)+n},easeInOutBack:function(t,i,n,s,o,a){return a==e&&(a=1.70158),(i/=o/2)<1?s/2*i*i*(((a*=1.525)+1)*i-a)+n:s/2*((i-=2)*i*(((a*=1.525)+1)*i+a)+2)+n},easeInBounce:function(e,i,n,s,o){return s-t.easing.easeOutBounce(e,o-i,0,s,o)+n},easeOutBounce:function(t,e,i,n,s){return(e/=s)<1/2.75?7.5625*n*e*e+i:2/2.75>e?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:2.5/2.75>e?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(e,i,n,s,o){return o/2>i?.5*t.easing.easeInBounce(e,2*i,0,s,o)+n:.5*t.easing.easeOutBounce(e,2*i-o,0,s,o)+.5*s+n}})}(jQuery),/*
   * jQuery UI Effects Blind 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Blind
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.blind=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right"],s=t.effects.setMode(i,e.options.mode||"hide"),o=e.options.direction||"vertical";t.effects.save(i,n),i.show();var a=t.effects.createWrapper(i).css({overflow:"hidden"}),r="vertical"==o?"height":"width",l="vertical"==o?a.height():a.width();"show"==s&&a.css(r,0);var c={};c[r]="show"==s?l:0,a.animate(c,e.duration,e.options.easing,function(){"hide"==s&&i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),/*
   * jQuery UI Effects Bounce 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Bounce
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.bounce=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right"],s=t.effects.setMode(i,e.options.mode||"effect"),o=e.options.direction||"up",a=e.options.distance||20,r=e.options.times||5,l=e.duration||250;/show|hide/.test(s)&&n.push("opacity"),t.effects.save(i,n),i.show(),t.effects.createWrapper(i);var c="up"==o||"down"==o?"top":"left",h="up"==o||"left"==o?"pos":"neg",a=e.options.distance||("top"==c?i.outerHeight({margin:!0})/3:i.outerWidth({margin:!0})/3);if("show"==s&&i.css("opacity",0).css(c,"pos"==h?-a:a),"hide"==s&&(a/=2*r),"hide"!=s&&r--,"show"==s){var u={opacity:1};u[c]=("pos"==h?"+=":"-=")+a,i.animate(u,l/2,e.options.easing),a/=2,r--}for(var d=0;r>d;d++){var p={},f={};p[c]=("pos"==h?"-=":"+=")+a,f[c]=("pos"==h?"+=":"-=")+a,i.animate(p,l/2,e.options.easing).animate(f,l/2,e.options.easing),a="hide"==s?2*a:a/2}if("hide"==s){var u={opacity:0};u[c]=("pos"==h?"-=":"+=")+a,i.animate(u,l/2,e.options.easing,function(){i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)})}else{var p={},f={};p[c]=("pos"==h?"-=":"+=")+a,f[c]=("pos"==h?"+=":"-=")+a,i.animate(p,l/2,e.options.easing).animate(f,l/2,e.options.easing,function(){t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)})}i.queue("fx",function(){i.dequeue()}),i.dequeue()})}}(jQuery),/*
   * jQuery UI Effects Clip 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Clip
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.clip=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(i,e.options.mode||"hide"),o=e.options.direction||"vertical";t.effects.save(i,n),i.show();var a=t.effects.createWrapper(i).css({overflow:"hidden"}),r="IMG"==i[0].tagName?a:i,l={size:"vertical"==o?"height":"width",position:"vertical"==o?"top":"left"},c="vertical"==o?r.height():r.width();"show"==s&&(r.css(l.size,0),r.css(l.position,c/2));var h={};h[l.size]="show"==s?c:0,h[l.position]="show"==s?0:c/2,r.animate(h,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==s&&i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Drop 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Drop
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.drop=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right","opacity"],s=t.effects.setMode(i,e.options.mode||"hide"),o=e.options.direction||"left";t.effects.save(i,n),i.show(),t.effects.createWrapper(i);var a="up"==o||"down"==o?"top":"left",r="up"==o||"left"==o?"pos":"neg",l=e.options.distance||("top"==a?i.outerHeight({margin:!0})/2:i.outerWidth({margin:!0})/2);"show"==s&&i.css("opacity",0).css(a,"pos"==r?-l:l);var c={opacity:"show"==s?1:0};c[a]=("show"==s?"pos"==r?"+=":"-=":"pos"==r?"-=":"+=")+l,i.animate(c,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==s&&i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Explode 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Explode
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.explode=function(e){return this.queue(function(){var i=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,n=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode="toggle"==e.options.mode?t(this).is(":visible")?"hide":"show":e.options.mode;var s=t(this).show().css("visibility","hidden"),o=s.offset();o.top-=parseInt(s.css("marginTop"),10)||0,o.left-=parseInt(s.css("marginLeft"),10)||0;for(var a=s.outerWidth(!0),r=s.outerHeight(!0),l=0;i>l;l++)for(var c=0;n>c;c++)s.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-c*(a/n),top:-l*(r/i)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:a/n,height:r/i,left:o.left+c*(a/n)+("show"==e.options.mode?(c-Math.floor(n/2))*(a/n):0),top:o.top+l*(r/i)+("show"==e.options.mode?(l-Math.floor(i/2))*(r/i):0),opacity:"show"==e.options.mode?0:1}).animate({left:o.left+c*(a/n)+("show"==e.options.mode?0:(c-Math.floor(n/2))*(a/n)),top:o.top+l*(r/i)+("show"==e.options.mode?0:(l-Math.floor(i/2))*(r/i)),opacity:"show"==e.options.mode?1:0},e.duration||500);setTimeout(function(){"show"==e.options.mode?s.css({visibility:"visible"}):s.css({visibility:"visible"}).hide(),e.callback&&e.callback.apply(s[0]),s.dequeue(),t("div.ui-effects-explode").remove()},e.duration||500)})}}(jQuery),/*
   * jQuery UI Effects Fade 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Fade
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.fade=function(e){return this.queue(function(){var i=t(this),n=t.effects.setMode(i,e.options.mode||"hide");i.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Fold 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Fold
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.fold=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right"],s=t.effects.setMode(i,e.options.mode||"hide"),o=e.options.size||15,a=!!e.options.horizFirst,r=e.duration?e.duration/2:t.fx.speeds._default/2;t.effects.save(i,n),i.show();var l=t.effects.createWrapper(i).css({overflow:"hidden"}),c="show"==s!=a,h=c?["width","height"]:["height","width"],u=c?[l.width(),l.height()]:[l.height(),l.width()],d=/([0-9]+)%/.exec(o);d&&(o=parseInt(d[1],10)/100*u["hide"==s?0:1]),"show"==s&&l.css(a?{height:0,width:o}:{height:o,width:0});var p={},f={};p[h[0]]="show"==s?u[0]:o,f[h[1]]="show"==s?u[1]:0,l.animate(p,r,e.options.easing).animate(f,r,e.options.easing,function(){"hide"==s&&i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),/*
   * jQuery UI Effects Highlight 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Highlight
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.highlight=function(e){return this.queue(function(){var i=t(this),n=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(i,e.options.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"==s&&(o.opacity=0),t.effects.save(i,n),i.show().css({backgroundImage:"none",backgroundColor:e.options.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==s&&i.hide(),t.effects.restore(i,n),"show"==s&&!t.support.opacity&&this.style.removeAttribute("filter"),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Pulsate 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Pulsate
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.pulsate=function(e){return this.queue(function(){var i=t(this),n=t.effects.setMode(i,e.options.mode||"show");times=2*(e.options.times||5)-1,duration=e.duration?e.duration/2:t.fx.speeds._default/2,isVisible=i.is(":visible"),animateTo=0,isVisible||(i.css("opacity",0).show(),animateTo=1),("hide"==n&&isVisible||"show"==n&&!isVisible)&&times--;for(var s=0;times>s;s++)i.animate({opacity:animateTo},duration,e.options.easing),animateTo=(animateTo+1)%2;i.animate({opacity:animateTo},duration,e.options.easing,function(){0==animateTo&&i.hide(),e.callback&&e.callback.apply(this,arguments)}),i.queue("fx",function(){i.dequeue()}).dequeue()})}}(jQuery),/*
   * jQuery UI Effects Scale 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Scale
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.puff=function(e){return this.queue(function(){var i=t(this),n=t.effects.setMode(i,e.options.mode||"hide"),s=parseInt(e.options.percent,10)||150,o=s/100,a={height:i.height(),width:i.width()};t.extend(e.options,{fade:!0,mode:n,percent:"hide"==n?s:100,from:"hide"==n?a:{height:a.height*o,width:a.width*o}}),i.effect("scale",e.options,e.duration,e.callback),i.dequeue()})},t.effects.scale=function(e){return this.queue(function(){var i=t(this),n=t.extend(!0,{},e.options),s=t.effects.setMode(i,e.options.mode||"effect"),o=parseInt(e.options.percent,10)||(0==parseInt(e.options.percent,10)?0:"hide"==s?0:100),a=e.options.direction||"both",r=e.options.origin;"effect"!=s&&(n.origin=r||["middle","center"],n.restore=!0);var l={height:i.height(),width:i.width()};i.from=e.options.from||("show"==s?{height:0,width:0}:l);var c={y:"horizontal"!=a?o/100:1,x:"vertical"!=a?o/100:1};i.to={height:l.height*c.y,width:l.width*c.x},e.options.fade&&("show"==s&&(i.from.opacity=0,i.to.opacity=1),"hide"==s&&(i.from.opacity=1,i.to.opacity=0)),n.from=i.from,n.to=i.to,n.mode=s,i.effect("size",n,e.duration,e.callback),i.dequeue()})},t.effects.size=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right","width","height","overflow","opacity"],s=["position","top","bottom","left","right","overflow","opacity"],o=["width","height","overflow"],a=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.effects.setMode(i,e.options.mode||"effect"),h=e.options.restore||!1,u=e.options.scale||"both",d=e.options.origin,p={height:i.height(),width:i.width()};if(i.from=e.options.from||p,i.to=e.options.to||p,d){var f=t.effects.getBaseline(d,p);i.from.top=(p.height-i.from.height)*f.y,i.from.left=(p.width-i.from.width)*f.x,i.to.top=(p.height-i.to.height)*f.y,i.to.left=(p.width-i.to.width)*f.x}var g={from:{y:i.from.height/p.height,x:i.from.width/p.width},to:{y:i.to.height/p.height,x:i.to.width/p.width}};("box"==u||"both"==u)&&(g.from.y!=g.to.y&&(n=n.concat(r),i.from=t.effects.setTransition(i,r,g.from.y,i.from),i.to=t.effects.setTransition(i,r,g.to.y,i.to)),g.from.x!=g.to.x&&(n=n.concat(l),i.from=t.effects.setTransition(i,l,g.from.x,i.from),i.to=t.effects.setTransition(i,l,g.to.x,i.to))),("content"==u||"both"==u)&&g.from.y!=g.to.y&&(n=n.concat(a),i.from=t.effects.setTransition(i,a,g.from.y,i.from),i.to=t.effects.setTransition(i,a,g.to.y,i.to)),t.effects.save(i,h?n:s),i.show(),t.effects.createWrapper(i),i.css("overflow","hidden").css(i.from),("content"==u||"both"==u)&&(r=r.concat(["marginTop","marginBottom"]).concat(a),l=l.concat(["marginLeft","marginRight"]),o=n.concat(r).concat(l),i.find("*[width]").each(function(){child=t(this),h&&t.effects.save(child,o);var i={height:child.height(),width:child.width()};child.from={height:i.height*g.from.y,width:i.width*g.from.x},child.to={height:i.height*g.to.y,width:i.width*g.to.x},g.from.y!=g.to.y&&(child.from=t.effects.setTransition(child,r,g.from.y,child.from),child.to=t.effects.setTransition(child,r,g.to.y,child.to)),g.from.x!=g.to.x&&(child.from=t.effects.setTransition(child,l,g.from.x,child.from),child.to=t.effects.setTransition(child,l,g.to.x,child.to)),child.css(child.from),child.animate(child.to,e.duration,e.options.easing,function(){h&&t.effects.restore(child,o)})})),i.animate(i.to,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){0===i.to.opacity&&i.css("opacity",i.from.opacity),"hide"==c&&i.hide(),t.effects.restore(i,h?n:s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Shake 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Shake
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.shake=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right"],s=(t.effects.setMode(i,e.options.mode||"effect"),e.options.direction||"left"),o=e.options.distance||20,a=e.options.times||3,r=e.duration||e.options.duration||140;t.effects.save(i,n),i.show(),t.effects.createWrapper(i);var l="up"==s||"down"==s?"top":"left",c="up"==s||"left"==s?"pos":"neg",h={},u={},d={};h[l]=("pos"==c?"-=":"+=")+o,u[l]=("pos"==c?"+=":"-=")+2*o,d[l]=("pos"==c?"-=":"+=")+2*o,i.animate(h,r,e.options.easing);for(var p=1;a>p;p++)i.animate(u,r,e.options.easing).animate(d,r,e.options.easing);i.animate(u,r,e.options.easing).animate(h,r/2,e.options.easing,function(){t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)}),i.queue("fx",function(){i.dequeue()}),i.dequeue()})}}(jQuery),/*
   * jQuery UI Effects Slide 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Slide
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.slide=function(e){return this.queue(function(){var i=t(this),n=["position","top","bottom","left","right"],s=t.effects.setMode(i,e.options.mode||"show"),o=e.options.direction||"left";t.effects.save(i,n),i.show(),t.effects.createWrapper(i).css({overflow:"hidden"});var a="up"==o||"down"==o?"top":"left",r="up"==o||"left"==o?"pos":"neg",l=e.options.distance||("top"==a?i.outerHeight({margin:!0}):i.outerWidth({margin:!0}));"show"==s&&i.css(a,"pos"==r?isNaN(l)?"-"+l:-l:l);var c={};c[a]=("show"==s?"pos"==r?"+=":"-=":"pos"==r?"-=":"+=")+l,i.animate(c,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==s&&i.hide(),t.effects.restore(i,n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),/*
   * jQuery UI Effects Transfer 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Effects/Transfer
   *
   * Depends:
   *	jquery.effects.core.js
   */
  function(t){t.effects.transfer=function(e){return this.queue(function(){var i=t(this),n=t(e.options.to),s=n.offset(),o={top:s.top,left:s.left,height:n.innerHeight(),width:n.innerWidth()},a=i.offset(),r=t('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:a.top,left:a.left,height:i.innerHeight(),width:i.innerWidth(),position:"absolute"}).animate(o,e.duration,e.options.easing,function(){r.remove(),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),/*
   * jQuery UI Accordion 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Accordion
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   */
  function(t){t.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var e=this,i=e.options;if(e.running=0,e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),e.headers=e.element.find(i.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){i.disabled||t(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){i.disabled||t(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){i.disabled||t(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){i.disabled||t(this).removeClass("ui-state-focus")}),e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"),i.navigation){var n=e.element.find("a").filter(i.navigationFilter).eq(0);if(n.length){var s=n.closest(".ui-accordion-header");e.active=s.length?s:n.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||i.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),e.active.next().addClass("ui-accordion-content-active"),e._createIcons(),e.resize(),e.element.attr("role","tablist"),e.headers.attr("role","tab").bind("keydown.accordion",function(t){return e._keydown(t)}).next().attr("role","tabpanel"),e.headers.not(e.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),e.active.length?e.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0),t.browser.safari||e.headers.find("a").attr("tabIndex",-1),i.event&&e.headers.bind(i.event.split(" ").join(".accordion ")+".accordion",function(t){e._clickHandler.call(e,t,this),t.preventDefault()})},_createIcons:function(){var e=this.options;e.icons&&(t("<span></span>").addClass("ui-icon "+e.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(e.icons.header).toggleClass(e.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 e=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("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var i=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");return(e.autoHeight||e.fillHeight)&&i.css("height",""),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"active"==e&&this.activate(i),"icons"==e&&(this._destroyIcons(),i&&this._createIcons()),"disabled"==e&&this.headers.add(this.headers.next())[i?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._clickHandler({target:e.target},e.target),e.preventDefault()}return o?(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),!1):!0}},resize:function(){var e,i=this.options;if(i.fillSpace){if(t.browser.msie){var n=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height(),t.browser.msie&&this.element.parent().css("overflow",n),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")}else i.autoHeight&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).height("").height())}).height(e));return this},activate:function(t){this.options.active=t;var e=this._findActive(t)[0];return this._clickHandler({target:e},e),this},_findActive:function(e){return e?"number"==typeof e?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):e===!1?t([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,i){var n=this.options;if(!n.disabled){if(!e.target){if(!n.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header),this.active.next().addClass("ui-accordion-content-active");var s=this.active.next(),o={options:n,newHeader:t([]),oldHeader:n.active,newContent:t([]),oldContent:s},a=this.active=t([]);return void this._toggle(a,s,o)}var r=t(e.currentTarget||i),l=r[0]===this.active[0];if(n.active=n.collapsible&&l?!1:this.headers.index(r),!(this.running||!n.collapsible&&l)){var c=this.active,a=r.next(),s=this.active.next(),o={options:n,newHeader:l&&n.collapsible?t([]):r,oldHeader:this.active,newContent:l&&n.collapsible?t([]):a,oldContent:s},h=this.headers.index(this.active[0])>this.headers.index(r[0]);this.active=l?t([]):r,this._toggle(a,s,o,l,h),c.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(n.icons.headerSelected).addClass(n.icons.header),l||(r.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(n.icons.header).addClass(n.icons.headerSelected),r.next().addClass("ui-accordion-content-active"))}}},_toggle:function(e,i,n,s,o){var a=this,r=a.options;a.toShow=e,a.toHide=i,a.data=n;var l=function(){return a?a._completed.apply(a,arguments):void 0};if(a._trigger("changestart",null,a.data),a.running=0===i.size()?e.size():i.size(),r.animated){var c={};c=r.collapsible&&s?{toShow:t([]),toHide:i,complete:l,down:o,autoHeight:r.autoHeight||r.fillSpace}:{toShow:e,toHide:i,complete:l,down:o,autoHeight:r.autoHeight||r.fillSpace},r.proxied||(r.proxied=r.animated),r.proxiedDuration||(r.proxiedDuration=r.duration),r.animated=t.isFunction(r.proxied)?r.proxied(c):r.proxied,r.duration=t.isFunction(r.proxiedDuration)?r.proxiedDuration(c):r.proxiedDuration;var h=t.ui.accordion.animations,u=r.duration,d=r.animated;!d||h[d]||t.easing[d]||(d="slide"),h[d]||(h[d]=function(t){this.slide(t,{easing:d,duration:u||700})}),h[d](c)}else r.collapsible&&s?e.toggle():(i.hide(),e.show()),l(!0);i.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),e.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(t){this.running=t?0:--this.running,this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),t.extend(t.ui.accordion,{version:"1.8.18",animations:{slide:function(e,i){if(e=t.extend({easing:"swing",duration:300},e,i),!e.toHide.size())return void e.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},e);if(!e.toShow.size())return void e.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},e);var n,s=e.toShow.css("overflow"),o=0,a={},r={},l=["height","paddingTop","paddingBottom"],c=e.toShow;n=c[0].style.width,c.width(c.parent().width()-parseFloat(c.css("paddingLeft"))-parseFloat(c.css("paddingRight"))-(parseFloat(c.css("borderLeftWidth"))||0)-(parseFloat(c.css("borderRightWidth"))||0)),t.each(l,function(i,n){r[n]="hide";var s=(""+t.css(e.toShow[0],n)).match(/^([\d+-.]+)(.*)$/);a[n]={value:s[1],unit:s[2]||"px"}}),e.toShow.css({height:0,overflow:"hidden"}).show(),e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(r,{step:function(t,i){"height"==i.prop&&(o=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start)),e.toShow[0].style[i.prop]=o*a[i.prop].value+a[i.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height",""),e.toShow.css({width:n,overflow:s}),e.complete()}})},bounceslide:function(t){this.slide(t,{easing:t.down?"easeOutBounce":"swing",duration:t.down?1e3:200})}}})}(jQuery),/*
   * jQuery UI Autocomplete 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Autocomplete
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   *	jquery.ui.position.js
   */
  function(t){var e=0;t.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e,i=this,n=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(n){if(!i.options.disabled&&!i.element.propAttr("readOnly")){e=!1;var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:i._move("previousPage",n);break;case s.PAGE_DOWN:i._move("nextPage",n);break;case s.UP:i._move("previous",n),n.preventDefault();break;case s.DOWN:i._move("next",n),n.preventDefault();break;case s.ENTER:case s.NUMPAD_ENTER:i.menu.active&&(e=!0,n.preventDefault());case s.TAB:if(!i.menu.active)return;i.menu.select(n);break;case s.ESCAPE:i.element.val(i.term),i.close(n);break;default:clearTimeout(i.searching),i.searching=setTimeout(function(){i.term!=i.element.val()&&(i.selectedItem=null,i.search(null,n))},i.options.delay)}}}).bind("keypress.autocomplete",function(t){e&&(e=!1,t.preventDefault())}).bind("focus.autocomplete",function(){i.options.disabled||(i.selectedItem=null,i.previous=i.element.val())}).bind("blur.autocomplete",function(t){i.options.disabled||(clearTimeout(i.searching),i.closing=setTimeout(function(){i.close(t),i._change(t)},150))}),this._initSource(),this.response=function(){return i._response.apply(i,arguments)},this.menu=t("<ul></ul>").addClass("ui-autocomplete").appendTo(t(this.options.appendTo||"body",n)[0]).mousedown(function(e){var n=i.menu.element[0];t(e.target).closest(".ui-menu-item").length||setTimeout(function(){t(document).one("mousedown",function(e){e.target===i.element[0]||e.target===n||t.ui.contains(n,e.target)||i.close()})},1),setTimeout(function(){clearTimeout(i.closing)},13)}).menu({focus:function(t,e){var n=e.item.data("item.autocomplete");!1!==i._trigger("focus",t,{item:n})&&/^key/.test(t.originalEvent.type)&&i.element.val(n.value)},selected:function(t,e){var s=e.item.data("item.autocomplete"),o=i.previous;i.element[0]!==n.activeElement&&(i.element.focus(),i.previous=o,setTimeout(function(){i.previous=o,i.selectedItem=s},1)),!1!==i._trigger("select",t,{item:s})&&i.element.val(s.value),i.term=i.element.val(),i.close(t),i.selectedItem=s},blur:function(){i.menu.element.is(":visible")&&i.element.val()!==i.term&&i.element.val(i.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),t.fn.bgiframe&&this.menu.element.bgiframe(),i.beforeunloadHandler=function(){i.element.removeAttr("autocomplete")},t(window).bind("beforeunload",i.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),t(window).unbind("beforeunload",this.beforeunloadHandler),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(t(i||"body",this.element[0].ownerDocument)[0]),"disabled"===e&&i&&this.xhr&&this.xhr.abort()},_initSource:function(){var i,n,s=this;t.isArray(this.options.source)?(i=this.options.source,this.source=function(e,n){n(t.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(i,o){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:n,data:i,dataType:"json",context:{autocompleteRequest:++e},success:function(t){this.autocompleteRequest===e&&o(t)},error:function(){this.autocompleteRequest===e&&o([])}})}):this.source=this.options.source},search:function(t,e){return t=null!=t?t:this.element.val(),this.term=this.element.val(),t.length<this.options.minLength?this.close(e):(clearTimeout(this.closing),this._trigger("search",e)!==!1?this._search(t):void 0)},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:t},this.response)},_response:function(t){!this.options.disabled&&t&&t.length?(t=this._normalize(t),this._suggest(t),this._trigger("open")):this.close(),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(t){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",t))},_change:function(t){this.previous!==this.element.val()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,e),this.menu.deactivate(),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new t.Event("mouseover"))},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItem(e,i)})},_renderItem:function(e,i){return t("<li></li>").data("item.autocomplete",i).append(t("<a></a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.first()&&/^previous/.test(t)||this.menu.last()&&/^next/.test(t)?(this.element.val(this.term),void this.menu.deactivate()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}})}(jQuery),/*
   * jQuery UI Menu (not officially released)
   * 
   * This widget isn't yet finished and the API is subject to change. We plan to finish
   * it for the next release. You're welcome to give it a try anyway and give us feedback,
   * as long as you're okay with migrating your code later on. We can help with that, too.
   *
   * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Menu
   *
   * Depends:
   *	jquery.ui.core.js
   *  jquery.ui.widget.js
   */
  function(t){t.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(i){t(i.target).closest(".ui-menu-item a").length&&(i.preventDefault(),e.select(i))}),this.refresh()},refresh:function(){var e=this,i=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");i.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(i){e.activate(i,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){if(this.deactivate(),this.hasScroll()){var i=e.offset().top-this.element.offset().top,n=this.element.scrollTop(),s=this.element.height();0>i?this.element.scrollTop(n+i):i>=s&&this.element.scrollTop(n+i-s+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",t,{item:e})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(t){this.move("next",".ui-menu-item:first",t)},previous:function(t){this.move("prev",".ui-menu-item:last",t)},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(t,e,i){if(!this.active)return void this.activate(i,this.element.children(e));var n=this.active[t+"All"](".ui-menu-item").eq(0);n.length?this.activate(i,n):this.activate(i,this.element.children(e))},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last())return void this.activate(e,this.element.children(".ui-menu-item:first"));var i=this.active.offset().top,n=this.element.height(),s=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i-n+t(this).height();return 10>e&&e>-10});s.length||(s=this.element.children(".ui-menu-item:last")),this.activate(e,s)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first())return void this.activate(e,this.element.children(".ui-menu-item:last"));var i=this.active.offset().top,n=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i+n-t(this).height();return 10>e&&e>-10}),result.length||(result=this.element.children(".ui-menu-item:first")),this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[t.fn.prop?"prop":"attr"]("scrollHeight")},select:function(t){this._trigger("selected",t,{item:this.active})}})}(jQuery),/*
   * jQuery UI Button 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Button
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   */
  function(t){var e,i,n,s,o="ui-button ui-widget ui-state-default ui-corner-all",a="ui-state-hover ui-state-active ",r="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",l=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},c=function(e){var i=e.name,n=e.form,s=t([]);return i&&(s=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),s};t.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var a=this,r=this.options,h="checkbox"===this.type||"radio"===this.type,u="ui-state-hover"+(h?"":" ui-state-active"),d="ui-state-focus";null===r.label&&(r.label=this.buttonElement.html()),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter.button",function(){r.disabled||(t(this).addClass("ui-state-hover"),this===e&&t(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){r.disabled||t(this).removeClass(u)}).bind("click.button",function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus.button",function(){a.buttonElement.addClass(d)}).bind("blur.button",function(){a.buttonElement.removeClass(d)}),h&&(this.element.bind("change.button",function(){s||a.refresh()}),this.buttonElement.bind("mousedown.button",function(t){r.disabled||(s=!1,i=t.pageX,n=t.pageY)}).bind("mouseup.button",function(t){r.disabled||(i!==t.pageX||n!==t.pageY)&&(s=!0)})),"checkbox"===this.type?this.buttonElement.bind("click.button",function(){return r.disabled||s?!1:(t(this).toggleClass("ui-state-active"),void a.buttonElement.attr("aria-pressed",a.element[0].checked))}):"radio"===this.type?this.buttonElement.bind("click.button",function(){if(r.disabled||s)return!1;t(this).addClass("ui-state-active"),a.buttonElement.attr("aria-pressed","true");var e=a.element[0];c(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),e=this,void t(document).one("mouseup",function(){e=null}))}).bind("mouseup.button",function(){return r.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown.button",function(e){return r.disabled?!1:void((e.keyCode==t.ui.keyCode.SPACE||e.keyCode==t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"))}).bind("keyup.button",function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){if(this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type){var t=this.element.parents().filter(":last"),e="label[for='"+this.element.attr("id")+"']";this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible");var i=this.element.is(":checked");i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.attr("aria-pressed",i)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" "+a+" "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title"),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){return t.Widget.prototype._setOption.apply(this,arguments),"disabled"===e?void(i?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1)):void this._resetButton()},refresh:function(){var e=this.element.is(":disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?c(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(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("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(r),i=t("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&&n.secondary,o=[];n.primary||n.secondary?(this.options.text&&o.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(o.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",i))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}}),t.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,i){"disabled"===e&&this.buttons.button("option",e,i),t.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),t.Widget.prototype.destroy.call(this)}})}(jQuery),/*
   * jQuery UI Datepicker 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Datepicker
   *
   * Depends:
   *	jquery.ui.core.js
   */
  function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,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:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,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:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.bind("mouseout",function(t){var i=$(t.target).closest(e);i.length&&i.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(i){var n=$(i.target).closest(e);!$.datepicker._isDisabledDatepicker(instActive.inline?t.parent()[0]:instActive.input[0])&&n.length&&(n.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n.addClass("ui-state-hover"),n.hasClass("ui-datepicker-prev")&&n.addClass("ui-datepicker-prev-hover"),n.hasClass("ui-datepicker-next")&&n.addClass("ui-datepicker-next-hover"))})}function extendRemove(t,e){$.extend(t,e);for(var i in e)(null==e[i]||e[i]==undefined)&&(t[i]=e[i]);return t}function isArray(t){return t&&($.browser.safari&&"object"==typeof t&&t.length||t.constructor&&t.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.18"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(t,e){var i=t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:i,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(t,i,n){e.settings[i]=n}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),this._autoSize(e),$.data(t,PROP_NAME,e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=$('<span class="'+this._appendClass+'">'+i+"</span>"),t[n?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove();var s=this._get(e,"showOn");if(("focus"==s||"both"==s)&&t.focus(this._showDatepicker),"button"==s||"both"==s){var o=this._get(e,"buttonText"),a=this._get(e,"buttonImage");e.trigger=$(this._get(e,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:a,alt:o,title:o}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==a?o:$("<img/>").attr({src:a,alt:o,title:o}))),t[n?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=t[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])):$.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e=new Date(2009,11,20),i=this._get(t,"dateFormat");if(i.match(/[DM]/)){var n=function(t){for(var e=0,i=0,n=0;n<t.length;n++)t[n].length>e&&(e=t[n].length,i=n);return i};e.setMonth(n(this._get(t,i.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(n(this._get(t,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}t.input.attr("size",this._formatDate(t,e).length)}},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,i,n){e.settings[i]=n}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),$.data(t,PROP_NAME,e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,n,s){var o=this._dialogInst;if(!o){this.uuid+=1;var a="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+a+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),o=this._dialogInst=this._newInst(this._dialogInput,!1),o.settings={},$.data(this._dialogInput[0],PROP_NAME,o)}if(extendRemove(o.settings,n||{}),e=e&&e.constructor==Date?this._formatDate(o,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,!this._pos){var r=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[r/2-100+c,l/2-150+h]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,o),this},_destroyDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();$.removeData(t,PROP_NAME),"input"==n?(i.append.remove(),i.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==n||"span"==n)&&e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();if("input"==n)t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==n||"span"==n){var s=e.children("."+this._inlineClass);s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();if("input"==n)t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==n||"span"==n){var s=e.children("."+this._inlineClass);s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==t)return!0;return!1},_getInst:function(t){try{return $.data(t,PROP_NAME)}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var n=this._getInst(t);if(2==arguments.length&&"string"==typeof e)return"defaults"==e?$.extend({},$.datepicker._defaults):n?"all"==e?$.extend({},n.settings):this._get(n,e):null;var s=e||{};if("string"==typeof e&&(s={},s[e]=i),n){this._curInst==n&&this._hideDatepicker();var o=this._getDateDatepicker(t,!0),a=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max");extendRemove(n.settings,s),null!==a&&s.dateFormat!==undefined&&s.minDate===undefined&&(n.settings.minDate=this._formatDate(n,a)),null!==r&&s.dateFormat!==undefined&&s.maxDate===undefined&&(n.settings.maxDate=this._formatDate(n,r)),this._attachments($(t),n),this._autoSize(n),this._setDate(n,o),this._updateAlternate(n),this._updateDatepicker(n)}},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(t){var e=$.datepicker._getInst(t.target),i=!0,n=e.dpDiv.is(".ui-datepicker-rtl");if(e._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),i=!1;break;case 13:var s=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",e.dpDiv);s[0]&&$.datepicker._selectDay(t.target,e.selectedMonth,e.selectedYear,s[0]);var o=$.datepicker._get(e,"onSelect");if(o){var a=$.datepicker._formatDate(e);o.apply(e.input?e.input[0]:null,[a,e])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),i=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),i=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?1:-1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),i=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?-1:1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),i=t.ctrlKey||t.metaKey;break;default:i=!1}else 36==t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):i=!1;i&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e=$.datepicker._getInst(t.target);if($.datepicker._get(e,"constrainInput")){var i=$.datepicker._possibleChars($.datepicker._get(e,"dateFormat")),n=String.fromCharCode(t.charCode==undefined?t.keyCode:t.charCode);return t.ctrlKey||t.metaKey||" ">n||!i||i.indexOf(n)>-1}},_doKeyUp:function(t){var e=$.datepicker._getInst(t.target);if(e.input.val()!=e.lastVal)try{var i=$.datepicker.parseDate($.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,$.datepicker._getFormatConfig(e));i&&($.datepicker._setDateFromField(e),$.datepicker._updateAlternate(e),$.datepicker._updateDatepicker(e))}catch(t){$.datepicker.log(t)}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!=t.nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),!$.datepicker._isDisabledDatepicker(t)&&$.datepicker._lastInput!=t){var e=$.datepicker._getInst(t);$.datepicker._curInst&&$.datepicker._curInst!=e&&($.datepicker._curInst.dpDiv.stop(!0,!0),e&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(e,"beforeShow"),n=i?i.apply(t,[t,e]):{};if(n!==!1){extendRemove(e.settings,n),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight);var s=!1;$(t).parents().each(function(){return s|="fixed"==$(this).css("position"),!s}),s&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var o={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),o=$.datepicker._checkOffset(e,o,s),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":s?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),!e.inline){var a=$.datepicker._get(e,"showAnim"),r=$.datepicker._get(e,"duration"),l=function(){var t=e.dpDiv.find("iframe.ui-datepicker-cover");if(t.length){var i=$.datepicker._getBorders(e.dpDiv);t.css({left:-i[0],top:-i[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex($(t).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[a]?e.dpDiv.show(a,$.datepicker._get(e,"showOptions"),r,l):e.dpDiv[a||"show"](a?r:null,l),a&&r||l(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e}}}},_updateDatepicker:function(t){var e=this;e.maxRows=4;var i=$.datepicker._getBorders(t.dpDiv);instActive=t,t.dpDiv.empty().append(this._generateHTML(t));var n=t.dpDiv.find("iframe.ui-datepicker-cover");n.length&&n.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var s=this._getNumberOfMonths(t),o=s[1],a=17;if(t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",a*o+"em"),t.dpDiv[(1!=s[0]||1!=s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml){var r=t.yearshtml;setTimeout(function(){r===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),r=t.yearshtml=null},0)}},_getBorders:function(t){var e=function(t){return{thin:1,medium:2,thick:3}[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(t,e,i){var n=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+$(document).scrollLeft(),l=document.documentElement.clientHeight+$(document).scrollTop();return e.left-=this._get(t,"isRTL")?n-o:0,e.left-=i&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top==t.input.offset().top+a?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>r&&r>n?Math.abs(e.left+n-r):0),e.top-=Math.min(e.top,e.top+s>l&&l>s?Math.abs(s+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];var n=$(t).offset();return[n.left,n.top]},_hideDatepicker:function(t){var e=this._curInst;if(e&&(!t||e==$.data(t,PROP_NAME))&&this._datepickerShowing){var i=this._get(e,"showAnim"),n=this._get(e,"duration"),s=this,o=function(){$.datepicker._tidyDialog(e),s._curInst=null};$.effects&&$.effects[i]?e.dpDiv.hide(i,$.datepicker._get(e,"showOptions"),n,o):e.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1;var a=this._get(e,"onClose");a&&a.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target),i=$.datepicker._getInst(e[0]);(e[0].id!=$.datepicker._mainDivId&&0==e.parents("#"+$.datepicker._mainDivId).length&&!e.hasClass($.datepicker.markerClassName)&&!e.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||e.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=i)&&$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,i){var n=$(t),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,e+("M"==i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(t){var e=$(t),i=this._getInst(e[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var n=new Date;i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()}this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var n=$(t),s=this._getInst(n[0]);s["selected"+("M"==i?"Month":"Year")]=s["draw"+("M"==i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(t,e,i,n){var s=$(t);if(!$(n).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(s[0])){var o=this._getInst(s[0]);o.selectedDay=o.currentDay=$("a",n).html(),o.selectedMonth=o.currentMonth=e,o.selectedYear=o.currentYear=i,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear))}},_clearDate:function(t){{var e=$(t);this._getInst(e[0])}this._selectDate(e,"")},_selectDate:function(t,e){var i=$(t),n=this._getInst(i[0]);e=null!=e?e:this._formatDate(n),n.input&&n.input.val(e),this._updateAlternate(n);var s=this._get(n,"onSelect");s?s.apply(n.input?n.input[0]:null,[e,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e=this._get(t,"altField");if(e){var i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t));$(e).each(function(){$(this).val(s)})}},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var i=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((i-e)/864e5)/7)+1},parseDate:function(t,e,i){if(null==t||null==e)throw"Invalid arguments";if(e="object"==typeof e?e.toString():e+"",""==e)return null;var n=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10);for(var s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,c=-1,h=-1,u=-1,d=!1,p=function(e){var i=b+1<t.length&&t.charAt(b+1)==e;return i&&b++,i},f=function(t){var i=p(t),n="@"==t?14:"!"==t?20:"y"==t&&i?4:"o"==t?3:2,s=new RegExp("^\\d{1,"+n+"}"),o=e.substring(v).match(s);if(!o)throw"Missing number at position "+v;return v+=o[0].length,parseInt(o[0],10)},g=function(t,i,n){var s=$.map(p(t)?n:i,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)}),o=-1;if($.each(s,function(t,i){var n=i[1];return e.substr(v,n.length).toLowerCase()==n.toLowerCase()?(o=i[0],v+=n.length,!1):void 0}),-1!=o)return o+1;throw"Unknown name at position "+v},m=function(){if(e.charAt(v)!=t.charAt(b))throw"Unexpected literal at position "+v;v++},v=0,b=0;b<t.length;b++)if(d)"'"!=t.charAt(b)||p("'")?m():d=!1;else switch(t.charAt(b)){case"d":h=f("d");break;case"D":g("D",s,o);break;case"o":u=f("o");break;case"m":c=f("m");break;case"M":c=g("M",a,r);break;case"y":l=f("y");break;case"@":var _=new Date(f("@"));l=_.getFullYear(),c=_.getMonth()+1,h=_.getDate();break;case"!":var _=new Date((f("!")-this._ticksTo1970)/1e4);l=_.getFullYear(),c=_.getMonth()+1,h=_.getDate();break;case"'":p("'")?m():d=!0;break;default:m()}if(v<e.length)throw"Extra/unparsed characters found in date: "+e.substring(v);if(-1==l?l=(new Date).getFullYear():100>l&&(l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(n>=l?0:-100)),u>-1)for(c=1,h=u;;){var y=this._getDaysInMonth(l,c-1);if(y>=h)break;c++,h-=y}var _=this._daylightSavingAdjust(new Date(l,c-1,h));if(_.getFullYear()!=l||_.getMonth()+1!=c||_.getDate()!=h)throw"Invalid date";return _},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,r=function(e){var i=d+1<t.length&&t.charAt(d+1)==e;return i&&d++,i},l=function(t,e,i){var n=""+e;if(r(t))for(;n.length<i;)n="0"+n;return n},c=function(t,e,i,n){return r(t)?n[e]:i[e]},h="",u=!1;if(e)for(var d=0;d<t.length;d++)if(u)"'"!=t.charAt(d)||r("'")?h+=t.charAt(d):u=!1;else switch(t.charAt(d)){case"d":h+=l("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),n,s);break;case"o":h+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=l("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),o,a);break;case"y":h+=r("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":r("'")?h+="'":u=!0;break;default:h+=t.charAt(d)}return h},_possibleChars:function(t){for(var e="",i=!1,n=function(e){var i=s+1<t.length&&t.charAt(s+1)==e;return i&&s++,i},s=0;s<t.length;s++)if(i)"'"!=t.charAt(s)||n("'")?e+=t.charAt(s):i=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":n("'")?e+="'":i=!0;break;default:e+=t.charAt(s)}return e},_get:function(t,e){return t.settings[e]!==undefined?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!=t.lastVal){var i,n,s=this._get(t,"dateFormat"),o=t.lastVal=t.input?t.input.val():null;i=n=this._getDefaultDate(t);var a=this._getFormatConfig(t);try{i=this.parseDate(s,o,a)||n}catch(r){this.log(r),o=e?"":o}t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),t.currentDay=o?i.getDate():0,t.currentMonth=o?i.getMonth():0,t.currentYear=o?i.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,i){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(e){try{return $.datepicker.parseDate($.datepicker._get(t,"dateFormat"),e,$.datepicker._getFormatConfig(t))}catch(i){}for(var n=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),o=n.getMonth(),a=n.getDate(),r=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=r.exec(e);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,$.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(l[1],10),a=Math.min(a,$.datepicker._getDaysInMonth(s,o))}l=r.exec(e)}return new Date(s,o,a)},o=null==e||""===e?i:"string"==typeof e?s(e):"number"==typeof e?isNaN(e)?i:n(e):new Date(e.getTime());return o=o&&"Invalid Date"==o.toString()?i:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),s==t.selectedMonth&&o==t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""==t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_generateHTML:function(t){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(t,"isRTL"),n=this._get(t,"showButtonPanel"),s=this._get(t,"hideIfNoPrevNext"),o=this._get(t,"navigationAsDateFormat"),a=this._getNumberOfMonths(t),r=this._get(t,"showCurrentAtPos"),l=this._get(t,"stepMonths"),c=1!=a[0]||1!=a[1],h=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),u=this._getMinMaxDate(t,"min"),d=this._getMinMaxDate(t,"max"),p=t.drawMonth-r,f=t.drawYear;if(0>p&&(p+=12,f--),d){var g=this._daylightSavingAdjust(new Date(d.getFullYear(),d.getMonth()-a[0]*a[1]+1,d.getDate()));for(g=u&&u>g?u:g;this._daylightSavingAdjust(new Date(f,p,1))>g;)p--,0>p&&(p=11,f--)}t.drawMonth=p,t.drawYear=f;var m=this._get(t,"prevText");m=o?this.formatDate(m,this._daylightSavingAdjust(new Date(f,p-l,1)),this._getFormatConfig(t)):m;var v=this._canAdjustMonth(t,-1,f,p)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+t.id+"', -"+l+", 'M');\" title=\""+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+m+"</span></a>":s?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+m+"</span></a>",b=this._get(t,"nextText");b=o?this.formatDate(b,this._daylightSavingAdjust(new Date(f,p+l,1)),this._getFormatConfig(t)):b;var _=this._canAdjustMonth(t,1,f,p)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+t.id+"', +"+l+", 'M');\" title=\""+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>":s?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>",y=this._get(t,"currentText"),w=this._get(t,"gotoCurrent")&&t.currentDay?h:e;y=o?this.formatDate(y,w,this._getFormatConfig(t)):y;var x=t.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(t,"closeText")+"</button>",k=n?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?x:"")+(this._isInRange(t,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+t.id+"');\">"+y+"</button>":"")+(i?"":x)+"</div>":"",C=parseInt(this._get(t,"firstDay"),10);C=isNaN(C)?0:C;for(var D=this._get(t,"showWeek"),T=this._get(t,"dayNames"),S=(this._get(t,"dayNamesShort"),this._get(t,"dayNamesMin")),M=this._get(t,"monthNames"),N=this._get(t,"monthNamesShort"),I=this._get(t,"beforeShowDay"),P=this._get(t,"showOtherMonths"),E=this._get(t,"selectOtherMonths"),A=(this._get(t,"calculateWeek")||this.iso8601Week,this._getDefaultDate(t)),z="",j=0;j<a[0];j++){var H="";this.maxRows=4;for(var O=0;O<a[1];O++){var L=this._daylightSavingAdjust(new Date(f,p,t.selectedDay)),F=" ui-corner-all",W="";if(c){if(W+='<div class="ui-datepicker-group',a[1]>1)switch(O){case 0:W+=" ui-datepicker-group-first",F=" ui-corner-"+(i?"right":"left");break;case a[1]-1:W+=" ui-datepicker-group-last",F=" ui-corner-"+(i?"left":"right");break;default:W+=" ui-datepicker-group-middle",F=""}W+='">'}W+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+F+'">'+(/all|left/.test(F)&&0==j?i?_:v:"")+(/all|right/.test(F)&&0==j?i?v:_:"")+this._generateMonthYearHeader(t,p,f,u,d,j>0||O>0,M,N)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var R=D?'<th class="ui-datepicker-week-col">'+this._get(t,"weekHeader")+"</th>":"",B=0;7>B;B++){var q=(B+C)%7;R+="<th"+((B+C+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+T[q]+'">'+S[q]+"</span></th>"}W+=R+"</tr></thead><tbody>";var Y=this._getDaysInMonth(f,p);f==t.selectedYear&&p==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,Y));var V=(this._getFirstDayOfMonth(f,p)-C+7)%7,U=Math.ceil((V+Y)/7),X=c&&this.maxRows>U?this.maxRows:U;this.maxRows=X;for(var K=this._daylightSavingAdjust(new Date(f,p,1-V)),Q=0;X>Q;Q++){W+="<tr>";for(var G=D?'<td class="ui-datepicker-week-col">'+this._get(t,"calculateWeek")(K)+"</td>":"",B=0;7>B;B++){var J=I?I.apply(t.input?t.input[0]:null,[K]):[!0,""],Z=K.getMonth()!=p,te=Z&&!E||!J[0]||u&&u>K||d&&K>d;G+='<td class="'+((B+C+6)%7>=5?" ui-datepicker-week-end":"")+(Z?" ui-datepicker-other-month":"")+(K.getTime()==L.getTime()&&p==t.selectedMonth&&t._keyEvent||A.getTime()==K.getTime()&&A.getTime()==L.getTime()?" "+this._dayOverClass:"")+(te?" "+this._unselectableClass+" ui-state-disabled":"")+(Z&&!P?"":" "+J[1]+(K.getTime()==h.getTime()?" "+this._currentClass:"")+(K.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+(Z&&!P||!J[2]?"":' title="'+J[2]+'"')+(te?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+t.id+"',"+K.getMonth()+","+K.getFullYear()+', this);return false;"')+">"+(Z&&!P?"&#xa0;":te?'<span class="ui-state-default">'+K.getDate()+"</span>":'<a class="ui-state-default'+(K.getTime()==e.getTime()?" ui-state-highlight":"")+(K.getTime()==h.getTime()?" ui-state-active":"")+(Z?" ui-priority-secondary":"")+'" href="#">'+K.getDate()+"</a>")+"</td>",K.setDate(K.getDate()+1),K=this._daylightSavingAdjust(K)}W+=G+"</tr>"}p++,p>11&&(p=0,f++),W+="</tbody></table>"+(c?"</div>"+(a[0]>0&&O==a[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),H+=W}z+=H}return z+=k+($.browser.msie&&parseInt($.browser.version,10)<7&&!t.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),t._keyEvent=!1,z},_generateMonthYearHeader:function(t,e,i,n,s,o,a,r){var l=this._get(t,"changeMonth"),c=this._get(t,"changeYear"),h=this._get(t,"showMonthAfterYear"),u='<div class="ui-datepicker-title">',d="";if(o||!l)d+='<span class="ui-datepicker-month">'+a[e]+"</span>";else{var p=n&&n.getFullYear()==i,f=s&&s.getFullYear()==i;d+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+t.id+"', this, 'M');\" >";
  for(var g=0;12>g;g++)(!p||g>=n.getMonth())&&(!f||g<=s.getMonth())&&(d+='<option value="'+g+'"'+(g==e?' selected="selected"':"")+">"+r[g]+"</option>");d+="</select>"}if(h||(u+=d+(!o&&l&&c?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!c)u+='<span class="ui-datepicker-year">'+i+"</span>";else{var m=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),b=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},_=b(m[0]),y=Math.max(_,b(m[1]||""));for(_=n?Math.max(_,n.getFullYear()):_,y=s?Math.min(y,s.getFullYear()):y,t.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+t.id+"', this, 'Y');\" >";y>=_;_++)t.yearshtml+='<option value="'+_+'"'+(_==i?' selected="selected"':"")+">"+_+"</option>";t.yearshtml+="</select>",u+=t.yearshtml,t.yearshtml=null}return u+=this._get(t,"yearSuffix"),h&&(u+=(!o&&l&&c?"":"&#xa0;")+d),u+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"==i?e:0),s=t.drawMonth+("M"==i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"==i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"==i||"Y"==i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&i>e?i:e;return s=n&&s>n?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(0>e?e:s[0]*s[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max");return(!i||e.getTime()>=i.getTime())&&(!n||e.getTime()<=n.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.18",window["DP_jQuery_"+dpuuid]=$}(jQuery),/*
   * jQuery UI Dialog 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Dialog
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   *  jquery.ui.button.js
   *	jquery.ui.draggable.js
   *	jquery.ui.mouse.js
   *	jquery.ui.position.js
   *	jquery.ui.resizable.js
   */
  function(t,e){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",n={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},s={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},o=t.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};t.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;{var e=this,n=e.options,s=n.title||"&#160;",o=t.ui.dialog.getTitleId(e.element),a=(e.uiDialog=t("<div></div>")).appendTo(document.body).hide().addClass(i+n.dialogClass).css({zIndex:n.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){n.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}).attr({role:"dialog","aria-labelledby":o}).mousedown(function(t){e.moveToTop(!1,t)}),r=(e.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(a),(e.uiDialogTitlebar=t("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(a)),l=t('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(t){return e.close(t),!1}).appendTo(r);(e.uiDialogTitlebarCloseText=t("<span></span>")).addClass("ui-icon ui-icon-closethick").text(n.closeText).appendTo(l),t("<span></span>").addClass("ui-dialog-title").attr("id",o).html(s).prependTo(r)}t.isFunction(n.beforeclose)&&!t.isFunction(n.beforeClose)&&(n.beforeClose=n.beforeclose),r.find("*").add(r).disableSelection(),n.draggable&&t.fn.draggable&&e._makeDraggable(),n.resizable&&t.fn.resizable&&e._makeResizable(),e._createButtons(n.buttons),e._isOpen=!1,t.fn.bgiframe&&a.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var t=this;return t.overlay&&t.overlay.destroy(),t.uiDialog.hide(),t.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),t.uiDialog.remove(),t.originalTitle&&t.element.attr("title",t.originalTitle),t},widget:function(){return this.uiDialog},close:function(e){var i,n,s=this;if(!1!==s._trigger("beforeClose",e))return s.overlay&&s.overlay.destroy(),s.uiDialog.unbind("keypress.ui-dialog"),s._isOpen=!1,s.options.hide?s.uiDialog.hide(s.options.hide,function(){s._trigger("close",e)}):(s.uiDialog.hide(),s._trigger("close",e)),t.ui.dialog.overlay.resize(),s.options.modal&&(i=0,t(".ui-dialog").each(function(){this!==s.uiDialog[0]&&(n=t(this).css("z-index"),isNaN(n)||(i=Math.max(i,n)))}),t.ui.dialog.maxZ=i),s},isOpen:function(){return this._isOpen},moveToTop:function(e,i){var n,s=this,o=s.options;return o.modal&&!e||!o.stack&&!o.modal?s._trigger("focus",i):(o.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=o.zIndex),s.overlay&&(t.ui.dialog.maxZ+=1,s.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ)),n={scrollTop:s.element.scrollTop(),scrollLeft:s.element.scrollLeft()},t.ui.dialog.maxZ+=1,s.uiDialog.css("z-index",t.ui.dialog.maxZ),s.element.attr(n),s._trigger("focus",i),s)},open:function(){if(!this._isOpen){var e=this,i=e.options,n=e.uiDialog;return e.overlay=i.modal?new t.ui.dialog.overlay(e):null,e._size(),e._position(i.position),n.show(i.show),e.moveToTop(!0),i.modal&&n.bind("keydown.ui-dialog",function(e){if(e.keyCode===t.ui.keyCode.TAB){var i=t(":tabbable",this),n=i.filter(":first"),s=i.filter(":last");return e.target!==s[0]||e.shiftKey?e.target===n[0]&&e.shiftKey?(s.focus(1),!1):void 0:(n.focus(1),!1)}}),t(e.element.find(":tabbable").get().concat(n.find(".ui-dialog-buttonpane :tabbable").get().concat(n.get()))).eq(0).focus(),e._isOpen=!0,e._trigger("open"),e}},_createButtons:function(e){var i=this,n=!1,s=t("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),a=t("<div></div>").addClass("ui-dialog-buttonset").appendTo(s);i.uiDialog.find(".ui-dialog-buttonpane").remove(),"object"==typeof e&&null!==e&&t.each(e,function(){return!(n=!0)}),n&&(t.each(e,function(e,n){n=t.isFunction(n)?{click:n,text:e}:n;var s=t('<button type="button"></button>').click(function(){n.click.apply(i.element[0],arguments)}).appendTo(a);t.each(n,function(t,e){"click"!==t&&(t in o?s[t](e):s.attr(t,e))}),t.fn.button&&s.button()}),s.appendTo(i.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i,n=this,s=n.options,o=t(document);n.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,a){i="auto"===s.height?"auto":t(this).height(),t(this).height(t(this).height()).addClass("ui-dialog-dragging"),n._trigger("dragStart",o,e(a))},drag:function(t,i){n._trigger("drag",t,e(i))},stop:function(a,r){s.position=[r.position.left-o.scrollLeft(),r.position.top-o.scrollTop()],t(this).removeClass("ui-dialog-dragging").height(i),n._trigger("dragStop",a,e(r)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function n(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}i=i===e?this.options.resizable:i;var s=this,o=s.options,a=s.uiDialog.css("position"),r="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";s.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:s.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:s._minHeight(),handles:r,start:function(e,i){t(this).addClass("ui-dialog-resizing"),s._trigger("resizeStart",e,n(i))},resize:function(t,e){s._trigger("resize",t,n(e))},stop:function(e,i){t(this).removeClass("ui-dialog-resizing"),o.height=t(this).height(),o.width=t(this).width(),s._trigger("resizeStop",e,n(i)),t.ui.dialog.overlay.resize()}}).css("position",a).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var i,n=[],s=[0,0];e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(n=e.split?e.split(" "):[e[0],e[1]],1===n.length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(s[t]=n[t],n[t]=e)}),e={my:n.join(" "),at:n.join(" "),offset:s.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(t.extend({of:window},e)),i||this.uiDialog.hide()},_setOptions:function(e){var i=this,o={},a=!1;t.each(e,function(t,e){i._setOption(t,e),t in n&&(a=!0),t in s&&(o[t]=e)}),a&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,n){var s=this,o=s.uiDialog;switch(e){case"beforeclose":e="beforeClose";break;case"buttons":s._createButtons(n);break;case"closeText":s.uiDialogTitlebarCloseText.text(""+n);break;case"dialogClass":o.removeClass(s.options.dialogClass).addClass(i+n);break;case"disabled":n?o.addClass("ui-dialog-disabled"):o.removeClass("ui-dialog-disabled");break;case"draggable":var a=o.is(":data(draggable)");a&&!n&&o.draggable("destroy"),!a&&n&&s._makeDraggable();break;case"position":s._position(n);break;case"resizable":var r=o.is(":data(resizable)");r&&!n&&o.resizable("destroy"),r&&"string"==typeof n&&o.resizable("option","handles",n),r||n===!1||s._makeResizable(n);break;case"title":t(".ui-dialog-title",s.uiDialogTitlebar).html(""+(n||"&#160;"))}t.Widget.prototype._setOption.apply(s,arguments)},_size:function(){var e,i,n=this.options,s=this.uiDialog.is(":visible");if(this.element.show().css({width:"auto",minHeight:0,height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).height(),i=Math.max(0,n.minHeight-e),"auto"===n.height)if(t.support.minHeight)this.element.css({minHeight:i,height:"auto"});else{this.uiDialog.show();var o=this.element.css("height","auto").height();s||this.uiDialog.hide(),this.element.height(Math.max(o,i))}else this.element.height(Math.max(n.height-e,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{version:"1.8.18",uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){return t(e.target).zIndex()<t.ui.dialog.overlay.maxZ?!1:void 0})},1),t(document).bind("keydown.dialog-overlay",function(i){e.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}),t(window).bind("resize.dialog-overlay",t.ui.dialog.overlay.resize));var i=(this.oldInstances.pop()||t("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return t.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(e){var i=t.inArray(e,this.instances);-1!=i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.remove();var n=0;t.each(this.instances,function(){n=Math.max(n,this.css("z-index"))}),this.maxZ=n},height:function(){var e,i;return t.browser.msie&&t.browser.version<7?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),i>e?t(window).height()+"px":e+"px"):t(document).height()+"px"},width:function(){var e,i;return t.browser.msie?(e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),i>e?t(window).width()+"px":e+"px"):t(document).width()+"px"},resize:function(){var e=t([]);t.each(t.ui.dialog.overlay.instances,function(){e=e.add(this)}),e.css({width:0,height:0}).css({width:t.ui.dialog.overlay.width(),height:t.ui.dialog.overlay.height()})}}),t.extend(t.ui.dialog.overlay.prototype,{destroy:function(){t.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),/*
   * jQuery UI Position 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Position
   */
  function(t){t.ui=t.ui||{};var e=/left|center|right/,i=/top|center|bottom/,n="center",s={},o=t.fn.position,a=t.fn.offset;t.fn.position=function(a){if(!a||!a.of)return o.apply(this,arguments);a=t.extend({},a);var r,l,c,h=t(a.of),u=h[0],d=(a.collision||"flip").split(" "),p=a.offset?a.offset.split(" "):[0,0];return 9===u.nodeType?(r=h.width(),l=h.height(),c={top:0,left:0}):u.setTimeout?(r=h.width(),l=h.height(),c={top:h.scrollTop(),left:h.scrollLeft()}):u.preventDefault?(a.at="left top",r=l=0,c={top:a.of.pageY,left:a.of.pageX}):(r=h.outerWidth(),l=h.outerHeight(),c=h.offset()),t.each(["my","at"],function(){var t=(a[this]||"").split(" ");1===t.length&&(t=e.test(t[0])?t.concat([n]):i.test(t[0])?[n].concat(t):[n,n]),t[0]=e.test(t[0])?t[0]:n,t[1]=i.test(t[1])?t[1]:n,a[this]=t}),1===d.length&&(d[1]=d[0]),p[0]=parseInt(p[0],10)||0,1===p.length&&(p[1]=p[0]),p[1]=parseInt(p[1],10)||0,"right"===a.at[0]?c.left+=r:a.at[0]===n&&(c.left+=r/2),"bottom"===a.at[1]?c.top+=l:a.at[1]===n&&(c.top+=l/2),c.left+=p[0],c.top+=p[1],this.each(function(){var e,i=t(this),o=i.outerWidth(),h=i.outerHeight(),u=parseInt(t.curCSS(this,"marginLeft",!0))||0,f=parseInt(t.curCSS(this,"marginTop",!0))||0,g=o+u+(parseInt(t.curCSS(this,"marginRight",!0))||0),m=h+f+(parseInt(t.curCSS(this,"marginBottom",!0))||0),v=t.extend({},c);"right"===a.my[0]?v.left-=o:a.my[0]===n&&(v.left-=o/2),"bottom"===a.my[1]?v.top-=h:a.my[1]===n&&(v.top-=h/2),s.fractions||(v.left=Math.round(v.left),v.top=Math.round(v.top)),e={left:v.left-u,top:v.top-f},t.each(["left","top"],function(i,n){t.ui.position[d[i]]&&t.ui.position[d[i]][n](v,{targetWidth:r,targetHeight:l,elemWidth:o,elemHeight:h,collisionPosition:e,collisionWidth:g,collisionHeight:m,offset:p,my:a.my,at:a.at})}),t.fn.bgiframe&&i.bgiframe(),i.offset(t.extend(v,{using:a.using}))})},t.ui.position={fit:{left:function(e,i){var n=t(window),s=i.collisionPosition.left+i.collisionWidth-n.width()-n.scrollLeft();e.left=s>0?e.left-s:Math.max(e.left-i.collisionPosition.left,e.left)},top:function(e,i){var n=t(window),s=i.collisionPosition.top+i.collisionHeight-n.height()-n.scrollTop();e.top=s>0?e.top-s:Math.max(e.top-i.collisionPosition.top,e.top)}},flip:{left:function(e,i){if(i.at[0]!==n){var s=t(window),o=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft(),a="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,r="left"===i.at[0]?i.targetWidth:-i.targetWidth,l=-2*i.offset[0];e.left+=i.collisionPosition.left<0?a+r+l:o>0?a+r+l:0}},top:function(e,i){if(i.at[1]!==n){var s=t(window),o=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop(),a="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,r="top"===i.at[1]?i.targetHeight:-i.targetHeight,l=-2*i.offset[1];e.top+=i.collisionPosition.top<0?a+r+l:o>0?a+r+l:0}}}},t.offset.setOffset||(t.offset.setOffset=function(e,i){/static/.test(t.curCSS(e,"position"))&&(e.style.position="relative");var n=t(e),s=n.offset(),o=parseInt(t.curCSS(e,"top",!0),10)||0,a=parseInt(t.curCSS(e,"left",!0),10)||0,r={top:i.top-s.top+o,left:i.left-s.left+a};"using"in i?i.using.call(e,r):n.css(r)},t.fn.offset=function(e){var i=this[0];return i&&i.ownerDocument?e?this.each(function(){t.offset.setOffset(this,e)}):a.call(this):null}),function(){var e,i,n,o,a,r=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(var c in n)e.style[c]=n[c];e.appendChild(l),i=r||document.documentElement,i.insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",o=t(l).offset(function(t,e){return e}).offset(),e.innerHTML="",i.removeChild(e),a=o.top+o.left+(r?2e3:0),s.fractions=a>21&&22>a}()}(jQuery),/*
   * jQuery UI Progressbar 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Progressbar
   *
   * Depends:
   *   jquery.ui.core.js
   *   jquery.ui.widget.js
   */
  function(t,e){t.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),t.Widget.prototype.destroy.apply(this,arguments)},value:function(t){return t===e?this._value():(this._setOption("value",t),this)},_setOption:function(e,i){"value"===e&&(this.options.value=i,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),t.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}}),t.extend(t.ui.progressbar,{version:"1.8.18"})}(jQuery),/*
   * jQuery UI Slider 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Slider
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.mouse.js
   *	jquery.ui.widget.js
   */
  function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var i=this,n=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",a=n.values&&n.values.length||1,r=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(n.disabled?" ui-slider-disabled ui-disabled":"")),this.range=t([]),n.range&&(n.range===!0&&(n.values||(n.values=[this._valueMin(),this._valueMin()]),n.values.length&&2!==n.values.length&&(n.values=[n.values[0],n.values[0]])),this.range=t("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===n.range||"max"===n.range?" ui-slider-range-"+n.range:"")));for(var l=s.length;a>l;l+=1)r.push(o);this.handles=s.add(t(r.join("")).appendTo(i.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(t){t.preventDefault()}).hover(function(){n.disabled||t(this).addClass("ui-state-hover")},function(){t(this).removeClass("ui-state-hover")}).focus(function(){n.disabled?t(this).blur():(t(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),t(this).addClass("ui-state-focus"))}).blur(function(){t(this).removeClass("ui-state-focus")}),this.handles.each(function(e){t(this).data("index.ui-slider-handle",e)}),this.handles.keydown(function(n){var s,o,a,r,l=t(this).data("index.ui-slider-handle");if(!i.options.disabled){switch(n.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n.preventDefault(),!i._keySliding&&(i._keySliding=!0,t(this).addClass("ui-state-active"),s=i._start(n,l),s===!1))return}switch(r=i.options.step,o=a=i.options.values&&i.options.values.length?i.values(l):i.value(),n.keyCode){case t.ui.keyCode.HOME:a=i._valueMin();break;case t.ui.keyCode.END:a=i._valueMax();break;case t.ui.keyCode.PAGE_UP:a=i._trimAlignValue(o+(i._valueMax()-i._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:a=i._trimAlignValue(o-(i._valueMax()-i._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(o===i._valueMax())return;a=i._trimAlignValue(o+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(o===i._valueMin())return;a=i._trimAlignValue(o-r)}i._slide(n,l,a)}}).keyup(function(e){var n=t(this).data("index.ui-slider-handle");i._keySliding&&(i._keySliding=!1,i._stop(e,n),i._change(e,n),t(this).removeClass("ui-state-active"))}),this._refreshValue(),this._animateOff=!1},destroy:function(){return 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(),this},_mouseCapture:function(e){var i,n,s,o,a,r,l,c,h,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,a=this,this.handles.each(function(e){var i=Math.abs(n-a.values(e));s>i&&(s=i,o=t(this),r=e)}),u.range===!0&&this.values(1)===u.min&&(r+=1,o=t(this.handles[r])),l=this._start(e,r),l===!1?!1:(this._mouseSliding=!0,a._handleIndex=r,o.addClass("ui-state-active").focus(),c=o.offset(),h=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-c.left-o.width()/2,top:e.pageY-c.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),o=this._valueMin()+n*s,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,s,o;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&(s=this.values(),s[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),n=this.values(e?0:1),o!==!1&&this.values(e,i,!0))):i!==this.value()&&(o=this._trigger("slide",t,{handle:this.handles[e],value:i}),o!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,s=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(s[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch(t.isArray(this.options.values)&&(s=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),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=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;s>n;n+=1)this._change(null,n);this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,s,o,a=this.options.range,r=this.options,l=this,c=this._animateOff?!1:r.animate,h={};this.options.values&&this.options.values.length?this.handles.each(function(n){e=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=e+"%",t(this).stop(1,1)[c?"animate":"css"](h,r.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:e+"%"},r.animate),1===n&&l.range[c?"animate":"css"]({width:e-i+"%"},{queue:!1,duration:r.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:e+"%"},r.animate),1===n&&l.range[c?"animate":"css"]({height:e-i+"%"},{queue:!1,duration:r.animate}))),i=e}):(n=this.value(),s=this._valueMin(),o=this._valueMax(),e=o!==s?(n-s)/(o-s)*100:0,h["horizontal"===l.orientation?"left":"bottom"]=e+"%",this.handle.stop(1,1)[c?"animate":"css"](h,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-e+"%"},{queue:!1,duration:r.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-e+"%"},{queue:!1,duration:r.animate}))}}),t.extend(t.ui.slider,{version:"1.8.18"})}(jQuery),/*
   * jQuery UI Tabs 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Tabs
   *
   * Depends:
   *	jquery.ui.core.js
   *	jquery.ui.widget.js
   */
  function(e,i){function n(){return++o}function s(){return++a}var o=0,a=0;e.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,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(!0)},_setOption:function(t,e){if("selected"==t){if(this.options.collapsible&&e==this.options.selected)return;this.select(e)}else this.options[t]=e,this._tabify()},_tabId:function(t){return t.title&&t.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+n()},_sanitizeSelector:function(t){return t.replace(/:/g,"\\:")},_cookie:function(){var t=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+s());return e.cookie.apply(null,[t].concat(e.makeArray(arguments)))},_ui:function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var t=e(this);t.html(t.data("label.tabs")).removeData("label.tabs")})},_tabify:function(t){function n(t,i){t.css("display",""),!e.support.opacity&&i.opacity&&t[0].style.removeAttribute("filter")}var s=this,o=this.options,a=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=e(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return e("a",this)[0]}),this.panels=e([]),this.anchors.each(function(t,i){var n,r=e(i).attr("href"),l=r.split("#")[0];if(l&&(l===location.toString().split("#")[0]||(n=e("base")[0])&&l===n.href)&&(r=i.hash,i.href=r),a.test(r))s.panels=s.panels.add(s.element.find(s._sanitizeSelector(r)));else if(r&&"#"!==r){e.data(i,"href.tabs",r),e.data(i,"load.tabs",r.replace(/#.*$/,""));var c=s._tabId(i);i.href="#"+c;var h=s.element.find("#"+c);h.length||(h=e(o.panelTemplate).attr("id",c).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(s.panels[t-1]||s.list),h.data("destroy.tabs",!0)),s.panels=s.panels.add(h)}else o.disabled.push(t)}),t?(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"),o.selected===i?(location.hash&&this.anchors.each(function(t,e){return e.hash==location.hash?(o.selected=t,!1):void 0}),"number"!=typeof o.selected&&o.cookie&&(o.selected=parseInt(s._cookie(),10)),"number"!=typeof o.selected&&this.lis.filter(".ui-tabs-selected").length&&(o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),o.selected=o.selected||(this.lis.length?0:-1)):null===o.selected&&(o.selected=-1),o.selected=o.selected>=0&&this.anchors[o.selected]||o.selected<0?o.selected:0,o.disabled=e.unique(o.disabled.concat(e.map(this.lis.filter(".ui-state-disabled"),function(t){return s.lis.index(t)}))).sort(),-1!=e.inArray(o.selected,o.disabled)&&o.disabled.splice(e.inArray(o.selected,o.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),o.selected>=0&&this.anchors.length&&(s.element.find(s._sanitizeSelector(s.anchors[o.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active"),s.element.queue("tabs",function(){s._trigger("show",null,s._ui(s.anchors[o.selected],s.element.find(s._sanitizeSelector(s.anchors[o.selected].hash))[0]))}),this.load(o.selected)),e(window).bind("unload",function(){s.lis.add(s.anchors).unbind(".tabs"),s.lis=s.anchors=s.panels=null})):o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),o.cookie&&this._cookie(o.selected,o.cookie);for(var r,l=0;r=this.lis[l];l++)e(r)[-1==e.inArray(l,o.disabled)||e(r).hasClass("ui-tabs-selected")?"removeClass":"addClass"]("ui-state-disabled");if(o.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs"),"mouseover"!==o.event){var c=function(t,e){e.is(":not(.ui-state-disabled)")&&e.addClass("ui-state-"+t)},h=function(t,e){e.removeClass("ui-state-"+t)};this.lis.bind("mouseover.tabs",function(){c("hover",e(this))}),this.lis.bind("mouseout.tabs",function(){h("hover",e(this))}),this.anchors.bind("focus.tabs",function(){c("focus",e(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){h("focus",e(this).closest("li"))})}var u,d;o.fx&&(e.isArray(o.fx)?(u=o.fx[0],d=o.fx[1]):u=d=o.fx);var p=d?function(t,i){e(t).closest("li").addClass("ui-tabs-selected ui-state-active"),i.hide().removeClass("ui-tabs-hide").animate(d,d.duration||"normal",function(){n(i,d),s._trigger("show",null,s._ui(t,i[0]))})}:function(t,i){e(t).closest("li").addClass("ui-tabs-selected ui-state-active"),i.removeClass("ui-tabs-hide"),s._trigger("show",null,s._ui(t,i[0]))},f=u?function(t,e){e.animate(u,u.duration||"normal",function(){s.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),n(e,u),s.element.dequeue("tabs")})}:function(t,e){s.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),s.element.dequeue("tabs")};this.anchors.bind(o.event+".tabs",function(){var t=this,i=e(t).closest("li"),n=s.panels.filter(":not(.ui-tabs-hide)"),a=s.element.find(s._sanitizeSelector(t.hash));if(i.hasClass("ui-tabs-selected")&&!o.collapsible||i.hasClass("ui-state-disabled")||i.hasClass("ui-state-processing")||s.panels.filter(":animated").length||s._trigger("select",null,s._ui(this,a[0]))===!1)return this.blur(),!1;if(o.selected=s.anchors.index(this),s.abort(),o.collapsible){if(i.hasClass("ui-tabs-selected"))return o.selected=-1,o.cookie&&s._cookie(o.selected,o.cookie),s.element.queue("tabs",function(){f(t,n)}).dequeue("tabs"),this.blur(),!1;if(!n.length)return o.cookie&&s._cookie(o.selected,o.cookie),s.element.queue("tabs",function(){p(t,a)}),s.load(s.anchors.index(this)),this.blur(),!1}if(o.cookie&&s._cookie(o.selected,o.cookie),!a.length)throw"jQuery UI Tabs: Mismatching fragment identifier.";n.length&&s.element.queue("tabs",function(){f(t,n)}),s.element.queue("tabs",function(){p(t,a)}),s.load(s.anchors.index(this)),e.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$="+t+"]"))),t},destroy:function(){var t=this.options;return 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 t=e.data(this,"href.tabs");t&&(this.href=t);var i=e(this).unbind(".tabs");e.each(["href","load","cache"],function(t,e){i.removeData(e+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){e.data(this,"destroy.tabs")?e(this).remove():e(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"].join(" "))}),t.cookie&&this._cookie(null,t.cookie),this},add:function(t,n,s){s===i&&(s=this.anchors.length);var o=this,a=this.options,r=e(a.tabTemplate.replace(/#\{href\}/g,t).replace(/#\{label\}/g,n)),l=t.indexOf("#")?this._tabId(e("a",r)[0]):t.replace("#","");r.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var c=o.element.find("#"+l);return c.length||(c=e(a.panelTemplate).attr("id",l).data("destroy.tabs",!0)),c.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),s>=this.lis.length?(r.appendTo(this.list),c.appendTo(this.list[0].parentNode)):(r.insertBefore(this.lis[s]),c.insertBefore(this.panels[s])),a.disabled=e.map(a.disabled,function(t){return t>=s?++t:t}),this._tabify(),1==this.anchors.length&&(a.selected=0,r.addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){o._trigger("show",null,o._ui(o.anchors[0],o.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[s],this.panels[s])),this},remove:function(t){t=this._getIndex(t);var i=this.options,n=this.lis.eq(t).remove(),s=this.panels.eq(t).remove();return n.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(t+(t+1<this.anchors.length?1:-1)),i.disabled=e.map(e.grep(i.disabled,function(e){return e!=t}),function(e){return e>=t?--e:e}),this._tabify(),this._trigger("remove",null,this._ui(n.find("a")[0],s[0])),this},enable:function(t){t=this._getIndex(t);var i=this.options;if(-1!=e.inArray(t,i.disabled))return this.lis.eq(t).removeClass("ui-state-disabled"),i.disabled=e.grep(i.disabled,function(e){return e!=t}),this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t])),this},disable:function(t){t=this._getIndex(t);var e=this.options;return t!=e.selected&&(this.lis.eq(t).addClass("ui-state-disabled"),e.disabled.push(t),e.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))),this},select:function(t){if(t=this._getIndex(t),-1==t){if(!this.options.collapsible||-1==this.options.selected)return this;t=this.options.selected}return this.anchors.eq(t).trigger(this.options.event+".tabs"),this},load:function(t){t=this._getIndex(t);var i=this,n=this.options,s=this.anchors.eq(t)[0],o=e.data(s,"load.tabs");if(this.abort(),!o||0!==this.element.queue("tabs").length&&e.data(s,"cache.tabs"))return void this.element.dequeue("tabs");if(this.lis.eq(t).addClass("ui-state-processing"),n.spinner){var a=e("span",s);a.data("label.tabs",a.html()).html(n.spinner)}return this.xhr=e.ajax(e.extend({},n.ajaxOptions,{url:o,success:function(o,a){i.element.find(i._sanitizeSelector(s.hash)).html(o),i._cleanup(),n.cache&&e.data(s,"cache.tabs",!0),i._trigger("load",null,i._ui(i.anchors[t],i.panels[t]));try{n.ajaxOptions.success(o,a)}catch(r){}},error:function(e,o){i._cleanup(),i._trigger("load",null,i._ui(i.anchors[t],i.panels[t]));try{n.ajaxOptions.error(e,o,t,s)}catch(a){}}})),i.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(t,e){return this.anchors.eq(t).removeData("cache.tabs").data("load.tabs",e),this},length:function(){return this.anchors.length}}),e.extend(e.ui.tabs,{version:"1.8.18"}),e.extend(e.ui.tabs.prototype,{rotation:null,rotate:function(e,i){var n=this,s=this.options,o=n._rotate||(n._rotate=function(t){clearTimeout(n.rotation),n.rotation=setTimeout(function(){var t=s.selected;n.select(++t<n.anchors.length?t:0)},e),t&&t.stopPropagation()}),a=n._unrotate||(n._unrotate=i?function(){t=s.selected,o()}:function(t){t.clientX&&n.rotate(null)});return e?(this.element.bind("tabsshow",o),this.anchors.bind(s.event+".tabs",a),o()):(clearTimeout(n.rotation),this.element.unbind("tabsshow",o),this.anchors.unbind(s.event+".tabs",a),delete this._rotate,delete this._unrotate),this}})}(jQuery),window.Modernizr=function(t,e,i){function n(t){_.cssText=t}function s(t,e){return n(k.join(t+";")+(e||""))}function o(t,e){return typeof t===e}function a(t,e){return!!~(""+t).indexOf(e)}function r(t,e){for(var n in t)if(_[t[n]]!==i)return"pfx"==e?t[n]:!0;return!1}function l(t,e,n){for(var s in t){var a=e[t[s]];if(a!==i)return n===!1?t[s]:o(a,"function")?a.bind(n||e):a}return!1}function c(t,e,i){var n=t.charAt(0).toUpperCase()+t.substr(1),s=(t+" "+D.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?r(s,e):(s=(t+" "+T.join(n+" ")+n).split(" "),l(s,e,i))}function h(){f.input=function(i){for(var n=0,s=i.length;s>n;n++)N[i[n]]=i[n]in y;return N.list&&(N.list=!!e.createElement("datalist")&&!!t.HTMLDataListElement),N}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(t){for(var n,s,o,a=0,r=t.length;r>a;a++)y.setAttribute("type",s=t[a]),n="text"!==y.type,n&&(y.value=w,y.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(s)&&y.style.WebkitAppearance!==i?(m.appendChild(y),o=e.defaultView,n=o.getComputedStyle&&"textfield"!==o.getComputedStyle(y,null).WebkitAppearance&&0!==y.offsetHeight,m.removeChild(y)):/^(search|tel)$/.test(s)||(/^(url|email)$/.test(s)?n=y.checkValidity&&y.checkValidity()===!1:/^color$/.test(s)?(m.appendChild(y),m.offsetWidth,n=y.value!=w,m.removeChild(y)):n=y.value!=w)),M[t[a]]=!!n;return M}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u,d,p="2.5.3",f={},g=!0,m=e.documentElement,v="modernizr",b=e.createElement(v),_=b.style,y=e.createElement("input"),w=":)",x={}.toString,k=" -webkit- -moz- -o- -ms- ".split(" "),C="Webkit Moz O ms",D=C.split(" "),T=C.toLowerCase().split(" "),$={svg:"http://www.w3.org/2000/svg"},S={},M={},N={},I=[],P=I.slice,E=function(t,i,n,s){var o,a,r,l=e.createElement("div"),c=e.body,h=c?c:e.createElement("body");if(parseInt(n,10))for(;n--;)r=e.createElement("div"),r.id=s?s[n]:v+(n+1),l.appendChild(r);return o=["&#173;","<style>",t,"</style>"].join(""),l.id=v,h.innerHTML+=o,h.appendChild(l),c||(h.style.background="",m.appendChild(h)),a=i(l,t),c?l.parentNode.removeChild(l):h.parentNode.removeChild(h),!!a},A=function(){function t(t,s){s=s||e.createElement(n[t]||"div"),t="on"+t;var a=t in s;return a||(s.setAttribute||(s=e.createElement("div")),s.setAttribute&&s.removeAttribute&&(s.setAttribute(t,""),a=o(s[t],"function"),o(s[t],"undefined")||(s[t]=i),s.removeAttribute(t))),s=null,a}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),z={}.hasOwnProperty;d=o(z,"undefined")||o(z.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return z.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=P.call(arguments,1),n=function(){if(this instanceof n){var s=function(){};s.prototype=e.prototype;var o=new s,a=e.apply(o,i.concat(P.call(arguments)));return Object(a)===a?a:o}return e.apply(t,i.concat(P.call(arguments)))};return n});!function(i,n){var s=i.join(""),o=n.length;E(s,function(i,n){for(var s=e.styleSheets[e.styleSheets.length-1],a=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"",r=i.childNodes,l={};o--;)l[r[o].id]=r[o];f.touch="ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch||9===(l.touch&&l.touch.offsetTop),f.csstransforms3d=9===(l.csstransforms3d&&l.csstransforms3d.offsetLeft)&&3===l.csstransforms3d.offsetHeight,f.generatedcontent=(l.generatedcontent&&l.generatedcontent.offsetHeight)>=1,f.fontface=/src/i.test(a)&&0===a.indexOf(n.split(" ")[0])},o,n)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",k.join("touch-enabled),("),v,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",k.join("transform-3d),("),v,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',w,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);S.flexbox=function(){return c("flexOrder")},S.canvas=function(){var t=e.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},S.canvastext=function(){return!!f.canvas&&!!o(e.createElement("canvas").getContext("2d").fillText,"function")},S.webgl=function(){try{var n,s=e.createElement("canvas");n=!(!t.WebGLRenderingContext||!s.getContext("experimental-webgl")&&!s.getContext("webgl")),s=i}catch(o){n=!1}return n},S.touch=function(){return f.touch},S.geolocation=function(){return!!navigator.geolocation},S.postmessage=function(){return!!t.postMessage},S.websqldatabase=function(){return!!t.openDatabase},S.indexedDB=function(){return!!c("indexedDB",t)},S.hashchange=function(){return A("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},S.history=function(){return!!t.history&&!!history.pushState},S.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},S.websockets=function(){for(var e=-1,i=D.length;++e<i;)if(t[D[e]+"WebSocket"])return!0;return"WebSocket"in t},S.rgba=function(){return n("background-color:rgba(150,255,150,.5)"),a(_.backgroundColor,"rgba")},S.hsla=function(){return n("background-color:hsla(120,40%,100%,.5)"),a(_.backgroundColor,"rgba")||a(_.backgroundColor,"hsla")},S.multiplebgs=function(){return n("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(_.background)},S.backgroundsize=function(){return c("backgroundSize")},S.borderimage=function(){return c("borderImage")},S.borderradius=function(){return c("borderRadius")},S.boxshadow=function(){return c("boxShadow")},S.textshadow=function(){return""===e.createElement("div").style.textShadow},S.opacity=function(){return s("opacity:.55"),/^0.55$/.test(_.opacity)},S.cssanimations=function(){return c("animationName")},S.csscolumns=function(){return c("columnCount")},S.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return n((t+"-webkit- ".split(" ").join(e+t)+k.join(i+t)).slice(0,-t.length)),a(_.backgroundImage,"gradient")},S.cssreflections=function(){return c("boxReflect")},S.csstransforms=function(){return!!c("transform")},S.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkitPerspective"in m.style&&(t=f.csstransforms3d),t},S.csstransitions=function(){return c("transition")},S.fontface=function(){return f.fontface},S.generatedcontent=function(){return f.generatedcontent},S.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(n){}return i},S.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return i},S.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(t){return!1}},S.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(t){return!1}},S.webworkers=function(){return!!t.Worker},S.applicationcache=function(){return!!t.applicationCache},S.svg=function(){return!!e.createElementNS&&!!e.createElementNS($.svg,"svg").createSVGRect},S.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==$.svg},S.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(x.call(e.createElementNS($.svg,"animate")))},S.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(x.call(e.createElementNS($.svg,"clipPath")))};for(var j in S)d(S,j)&&(u=j.toLowerCase(),f[u]=S[j](),I.push((f[u]?"":"no-")+u));return f.input||h(),n(""),b=y=null,f._version=p,f._prefixes=k,f._domPrefixes=T,f._cssomPrefixes=D,f.hasEvent=A,f.testProp=function(t){return r([t])},f.testAllProps=c,f.testStyles=E,m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+I.join(" "):""),f}(this,this.document),function(t,e){function i(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function n(){var t=g.elements;return"string"==typeof t?t.split(" "):t}function s(t){var e={},i=t.createElement,s=t.createDocumentFragment,o=s();t.createElement=function(t){var n=(e[t]||(e[t]=i(t))).cloneNode();return g.shivMethods&&n.canHaveChildren&&!f.test(t)?o.appendChild(n):n},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/\w+/g,function(t){return e[t]=i(t),o.createElement(t),'c("'+t+'")'})+");return n}")(g,o)}function o(t){var e;return t.documentShived?t:(g.shivCSS&&!u&&(e=!!i(t,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),d||(e=!s(t)),e&&(t.documentShived=e),t)}function a(t){for(var e,i=t.getElementsByTagName("*"),s=i.length,o=RegExp("^(?:"+n().join("|")+")$","i"),a=[];s--;)e=i[s],o.test(e.nodeName)&&a.push(e.applyElement(r(e)));return a}function r(t){for(var e,i=t.attributes,n=i.length,s=t.ownerDocument.createElement(v+":"+t.nodeName);n--;)e=i[n],e.specified&&s.setAttribute(e.nodeName,e.nodeValue);return s.style.cssText=t.style.cssText,s}function l(t){for(var e,i=t.split("{"),s=i.length,o=RegExp("(^|[\\s,>+~])("+n().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+v+"\\:$2";s--;)e=i[s]=i[s].split("}"),e[e.length-1]=e[e.length-1].replace(o,a),i[s]=e.join("}");return i.join("{")}function c(t){for(var e=t.length;e--;)t[e].removeNode()}function h(t){var e,n,s=t.namespaces,o=t.parentWindow;return!b||t.printShived?t:("undefined"==typeof s[v]&&s.add(v),o.attachEvent("onbeforeprint",function(){for(var s,o,r,c=t.styleSheets,h=[],u=c.length,d=Array(u);u--;)d[u]=c[u];for(;r=d.pop();)if(!r.disabled&&m.test(r.media)){for(s=r.imports,u=0,o=s.length;o>u;u++)d.push(s[u]);try{h.push(r.cssText)}catch(p){}}h=l(h.reverse().join("")),n=a(t),e=i(t,h)}),o.attachEvent("onafterprint",function(){c(n),e.removeNode(!0)}),t.printShived=!0,t)}var u,d,p=t.html5||{},f=/^<|^(?:button|form|map|select|textarea)$/i;!function(){var t=e.createElement("a");t.innerHTML="<xyz></xyz>",u="hidden"in t,d=1==t.childNodes.length||function(){try{e.createElement("a")}catch(t){return!0}var i=e.createDocumentFragment();return"undefined"==typeof i.cloneNode||"undefined"==typeof i.createDocumentFragment||"undefined"==typeof i.createElement}()}();var g={elements:p.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:p.shivCSS!==!1,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:o};t.html5=g,o(e);var m=/^$|\b(?:all|print)\b/,v="html5shiv",b=!d&&function(){var i=e.documentElement;return"undefined"!=typeof e.namespaces&&"undefined"!=typeof e.parentWindow&&"undefined"!=typeof i.applyElement&&"undefined"!=typeof i.removeNode&&"undefined"!=typeof t.attachEvent}();g.type+=" print",g.shivPrint=h,h(e)}(this,document),function(t,e,i){function n(t){return"[object Function]"==m.call(t)}function s(t){return"string"==typeof t}function o(){}function a(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function r(){var t=v.shift();b=1,t?t.t?f(function(){("c"==t.t?d.injectCss:d.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),r()):b=0}function l(t,i,n,s,o,l,c){function h(e){if(!p&&a(u.readyState)&&(_.r=p=1,!b&&r(),u.onload=u.onreadystatechange=null,e)){"img"!=t&&f(function(){w.removeChild(u)},50);for(var n in T[i])T[i].hasOwnProperty(n)&&T[i][n].onload()}}var c=c||d.errorTimeout,u={},p=0,m=0,_={t:n,s:i,e:o,a:l,x:c};1===T[i]&&(m=1,T[i]=[],u=e.createElement(t)),"object"==t?u.data=i:(u.src=i,u.type=t),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){h.call(this,m)},v.splice(s,0,_),"img"!=t&&(m||2===T[i]?(w.insertBefore(u,y?null:g),f(h,c)):T[i].push(u))}function c(t,e,i,n,o){return b=0,e=e||"j",s(t)?l("c"==e?k:x,t,e,this.i++,i,n,o):(v.splice(this.i++,0,t),1==v.length&&r()),this}function h(){var t=d;return t.loader={load:c,i:0},t}var u,d,p=e.documentElement,f=t.setTimeout,g=e.getElementsByTagName("script")[0],m={}.toString,v=[],b=0,_="MozAppearance"in p.style,y=_&&!!e.createRange().compareNode,w=y?p:g.parentNode,p=t.opera&&"[object Opera]"==m.call(t.opera),p=!!e.attachEvent&&!p,x=_?"object":p?"script":"img",k=p?"script":x,C=Array.isArray||function(t){return"[object Array]"==m.call(t)},D=[],T={},$={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};d=function(t){function e(t){var e,i,n,t=t.split("!"),s=D.length,o=t.pop(),a=t.length,o={url:o,origUrl:o,prefixes:t};for(i=0;a>i;i++)n=t[i].split("="),(e=$[n.shift()])&&(o=e(o,n));for(i=0;s>i;i++)o=D[i](o);return o}function a(t,s,o,a,l){var c=e(t),u=c.autoCallback;c.url.split(".").pop().split("?").shift(),c.bypass||(s&&(s=n(s)?s:s[t]||s[a]||s[t.split("/").pop().split("?")[0]]||r),c.instead?c.instead(t,s,o,a,l):(T[c.url]?c.noexec=!0:T[c.url]=1,o.load(c.url,c.forceCSS||!c.forceJS&&"css"==c.url.split(".").pop().split("?").shift()?"c":i,c.noexec,c.attrs,c.timeout),(n(s)||n(u))&&o.load(function(){h(),s&&s(c.origUrl,l,a),u&&u(c.origUrl,l,a),T[c.url]=2})))}function l(t,e){function i(t,i){if(t){if(s(t))i||(u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}),a(t,u,e,0,c);else if(Object(t)===t)for(l in r=function(){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(),t)t.hasOwnProperty(l)&&(!i&&!--r&&(n(u)?u=function(){var t=[].slice.call(arguments);d.apply(this,t),p()}:u[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}(d[l])),a(t[l],u,e,l,c))}else!i&&p()}var r,l,c=!!t.test,h=t.load||t.both,u=t.callback||o,d=u,p=t.complete||o;i(c?t.yep:t.nope,!!h),h&&i(h)}var c,u,p=this.yepnope.loader;if(s(t))a(t,0,p,0);else if(C(t))for(c=0;c<t.length;c++)u=t[c],s(u)?a(u,0,p,0):C(u)?d(u):Object(u)===u&&l(u,p);else Object(t)===t&&l(t,p)},d.addPrefix=function(t,e){$[t]=e},d.addFilter=function(t){D.push(t)},d.errorTimeout=1e4,null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",u=function(){e.removeEventListener("DOMContentLoaded",u,0),e.readyState="complete"},0)),t.yepnope=h(),t.yepnope.executeStack=r,t.yepnope.injectJs=function(t,i,n,s,l,c){var h,u,p=e.createElement("script"),s=s||d.errorTimeout;p.src=t;for(u in n)p.setAttribute(u,n[u]);i=c?r:i||o,p.onreadystatechange=p.onload=function(){!h&&a(p.readyState)&&(h=1,i(),p.onload=p.onreadystatechange=null)},f(function(){h||(h=1,i(1))},s),l?p.onload():g.parentNode.insertBefore(p,g)},t.yepnope.injectCss=function(t,i,n,s,a,l){var c,s=e.createElement("link"),i=l?r:i||o;s.href=t,s.rel="stylesheet",s.type="text/css";for(c in n)s.setAttribute(c,n[c]);a||(g.parentNode.insertBefore(s,g),f(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(t){function e(e,i){return parseInt(t.css(e,i))||0}function i(t){var t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function n(e){for(;e;){var n=t.css(e,"backgroundColor");if(n&&"transparent"!=n&&"rgba(0, 0, 0, 0)"!=n){if(n.indexOf("rgb")>=0){var s=n.match(/\d+/g);return"#"+i(s[0])+i(s[1])+i(s[2])}return n}if("html"==e.nodeName.toLowerCase())break;e=e.parentNode}return"#ffffff"}function s(t,e,i){switch(t){case"round":return Math.round(i*(1-Math.cos(Math.asin(e/i))));case"cool":return Math.round(i*(1+Math.cos(Math.asin(e/i))));case"sharp":return Math.round(i*(1-Math.cos(Math.acos(e/i))));case"bite":return Math.round(i*Math.cos(Math.asin((i-e-1)/i)));case"slide":return Math.round(i*Math.atan2(e,i/e));case"jut":return Math.round(i*Math.atan2(i,i-e-1));case"curl":return Math.round(i*Math.atan(e));case"tear":return Math.round(i*Math.cos(e));case"wicked":return Math.round(i*Math.tan(e));case"long":return Math.round(i*Math.sqrt(e));case"sculpt":return Math.round(i*Math.log(i-e-1,i));case"dogfold":case"dog":return 1&e?e+1:i;case"dog2":return 2&e?e+1:i;case"dog3":return 3&e?e+1:i;case"fray":return e%2*i;case"notch":return i;case"bevelfold":case"bevel":return e+1}}var o=document.createElement("div").style,a=void 0!==o.MozBorderRadius,r=void 0!==o.WebkitBorderRadius,l=void 0!==o.borderRadius||void 0!==o.BorderRadius,c=document.documentMode||0,h=t.browser.msie&&(t.browser.version<8&&!c||8>c);t.support=t.support||{},t.support.borderRadius=a||r||l;var u=t.browser.msie&&function(){var t=document.createElement("div");try{t.style.setExpression("width","0+0"),t.style.removeExpression("width")}catch(e){return!1}return!0}();t.fn.corner=function(i){var o=this;if(t.browser.msie&&t.browser.version<9&&(o=o.not("input, .button")),0==o.length){if(!t.isReady&&this.selector){var c=this.selector,d=this.context;t(function(){t(c,d).corner(i)})}return this}return o.each(function(){var o=t(this),c=[o.attr(t.fn.corner.defaults.metaAttr)||"",i||""].join(" ").toLowerCase(),d=/keep/.test(c),p=(c.match(/cc:(#[0-9a-f]+)/)||[])[1],f=(c.match(/sc:(#[0-9a-f]+)/)||[])[1],g=parseInt((c.match(/(\d+)px/)||[])[1])||10,m=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,v=(c.match(m)||["round"])[0],b=/dogfold|bevelfold/.test(c),_={T:0,B:1},y={TL:/top|tl|left/.test(c),TR:/top|tr|right/.test(c),BL:/bottom|bl|left/.test(c),BR:/bottom|br|right/.test(c)};if(y.TL||y.TR||y.BL||y.BR||(y={TL:1,TR:1,BL:1,BR:1}),t.fn.corner.defaults.useNative&&"round"==v&&(l||a||r)&&!p&&!f)return y.TL&&o.css(l?"border-top-left-radius":a?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",g+"px"),y.TR&&o.css(l?"border-top-right-radius":a?"-moz-border-radius-topright":"-webkit-border-top-right-radius",g+"px"),y.BL&&o.css(l?"border-bottom-left-radius":a?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",g+"px"),void(y.BR&&o.css(l?"border-bottom-right-radius":a?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",g+"px"));var w=document.createElement("div");t(w).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:f||"transparent",borderStyle:"solid"});var x={T:parseInt(t.css(this,"paddingTop"))||0,R:parseInt(t.css(this,"paddingRight"))||0,B:parseInt(t.css(this,"paddingBottom"))||0,L:parseInt(t.css(this,"paddingLeft"))||0};void 0!=typeof this.style.zoom&&(this.style.zoom=1),d||(this.style.border="none"),w.style.borderColor=p||n(this.parentNode);var k=t(this).outerHeight();for(var C in _){var D=_[C];if(D&&(y.BL||y.BR)||!D&&(y.TL||y.TR)){w.style.borderStyle="none "+(y[C+"R"]?"solid":"none")+" none "+(y[C+"L"]?"solid":"none");var T=document.createElement("div");t(T).addClass("jquery-corner");var $=T.style;try{D?this.appendChild(T):this.insertBefore(T,this.firstChild)}catch(S){}if(D&&"auto"!=k)"static"==t.css(this,"position")&&(this.style.position="relative"),$.position="absolute",$.bottom=$.left=$.padding=$.margin="0",u?$.setExpression("width","this.parentNode.offsetWidth"):$.width="100%";else if(!D&&t.browser.msie)if("static"==t.css(this,"position")&&(this.style.position="relative"),$.position="absolute",$.top=$.left=$.right=$.padding=$.margin="0",u){var M=e(this,"borderLeftWidth")+e(this,"borderRightWidth");$.setExpression("width","this.parentNode.offsetWidth - "+M+'+ "px"')}else $.width="100%";else $.position="relative",$.margin=D?x.B-g+"px -"+x.R+"px -"+x.B+"px -"+x.L+"px":"-"+x.T+"px -"+x.R+"px "+(x.T-g)+"px -"+x.L+"px";for(var N=0;g>N;N++){var I=Math.max(0,s(v,N,g)),P=w.cloneNode(!1);P.style.borderWidth="0 "+(y[C+"R"]?I:0)+"px 0 "+(y[C+"L"]?I:0)+"px",D?T.appendChild(P):T.insertBefore(P,T.firstChild)}if(b&&t.support.boxModel){if(D&&h)continue;for(var E in y)if(y[E]&&(!D||"TL"!=E&&"TR"!=E)&&(D||"BL"!=E&&"BR"!=E)){var A={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:w.style.borderColor},z=t("<div/>").css(A).css({width:g+"px",height:"1px"});switch(E){case"TL":z.css({bottom:0,left:0});break;case"TR":z.css({bottom:0,right:0});break;case"BL":z.css({top:0,left:0});break;case"BR":z.css({top:0,right:0})}T.appendChild(z[0]);var j=t("<div/>").css(A).css({top:0,bottom:0,width:"1px",height:g+"px"});switch(E){case"TL":j.css({left:g});break;case"TR":j.css({right:g});break;case"BL":j.css({left:g});break;case"BR":j.css({right:g})}T.appendChild(j[0])}}}}})},t.fn.uncorner=function(){return(l||a||r)&&this.css(l?"border-radius":a?"-moz-border-radius":"-webkit-border-radius",0),t("div.jquery-corner",this).remove(),this},t.fn.corner.defaults={useNative:!0,metaAttr:"data-corner"}}(jQuery),function(t){t.fn.textTruncate=function(){var e={},i=arguments,n=i.callee;if(i.length)if(i[0].constructor==Object)e=i[0];else{if("options"==i[0])return t(this).eq(0).data("options-truncate");e={width:parseInt(i[0]),tail:i[1]}}this.css("visibility","hidden");var s=t.extend({},n.defaults,e);return this.each(function(){var e=t(this);if(e.data("options-truncate",s),"..."==s.tail&&n._native)return this.style[n._native]="ellipsis",e.css("visibility","visible"),!0;
  var i=s.width||e.parent().width(),o=e.text(),a=o.length,r="padding:0; margin:0; border:none; font:inherit;",l=t('<table style="'+r+'width:auto;zoom:1;position:absolute;"><tr style="'+r+'"><td style="'+r+'white-space:nowrap;">'+s.tail+"</td></tr></table>"),c=t("td",l);e.html(l);var h=c.width(),u=i-h;if(c.text(o),c.width()>i){for(s.tooltip&&e.attr("title",o);c.width()>=u;)a--,c.html(c.html().substring(0,a));o=t.trim(c.html()),e.html(o+s.tail)}else e.html(o);return this.style.visibility="visible",!0})};var e=document.documentElement.style,i=!1;"textOverflow"in e?i="textOverflow":"OTextOverflow"in e&&(i="OTextOverflow"),t.fn.textTruncate._native=i,t.fn.textTruncate.defaults={tail:"&hellip;",tooltip:!0}}(jQuery),function(t){t.extend(t,{placeholder:{browser_supported:function(){return void 0!==this._supported?this._supported:this._supported=!!("placeholder"in t('<input type="text">')[0])},shim:function(e){var i={color:"#888",cls:"placeholder",lr_padding:4,selector:"input[placeholder], textarea[placeholder]"};t.extend(i,e),!this.browser_supported()&&t(i.selector)._placeholder_shim(i)}}}),t.extend(t.fn,{_placeholder_shim:function(e){function i(i){var n=t(i).offsetParent().offset(),s=t(i).offset();return{top:s.top-n.top+(t(i).outerHeight()-t(i).height())/2,left:s.left-n.left+e.lr_padding,width:t(i).width()-e.lr_padding}}return this.each(function(){if(t(this).data("placeholder")){var n=t(this).data("placeholder");return n.css(i(t(this))),!0}var s={};"auto"!=t(this).css("height")&&(s={lineHeight:t(this).css("height")});var o=t("<label />").text(t(this).attr("placeholder")).addClass(e.cls).css(t.extend({position:"absolute",display:"inline","float":"none",overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",color:e.color,cursor:"text",paddingTop:t(this).css("padding-top"),paddingLeft:t(this).css("padding-left"),fontSize:t(this).css("font-size"),fontFamily:t(this).css("font-family"),fontStyle:t(this).css("font-style"),fontWeight:t(this).css("font-weight"),textTransform:t(this).css("text-transform"),zIndex:99},s)).css(i(this)).attr("for",this.id).data("target",t(this)).click(function(){t(this).data("target").focus()}).insertBefore(this);t(this).data("placeholder",o).focus(function(){o.hide()}).blur(function(){o[t(this).val().length?"hide":"show"]()}).triggerHandler("blur"),t(window).resize(function(){var t=o.data("target");o.css(i(t))})})}})}(jQuery),jQuery(document).add(window).bind("ready load",function(){jQuery.placeholder&&jQuery.placeholder.shim()}),$.fn.extend({everyTime:function(t,e,i,n){return this.each(function(){$.timer.add(this,t,e,i,n)})},oneTime:function(t,e,i){return this.each(function(){$.timer.add(this,t,e,i,1)})},stopTime:function(t,e){return this.each(function(){$.timer.remove(this,t,e)})}}),$.extend({timer:{global:[],guid:1,dataKey:"$.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1e3,das:1e4,hs:1e5,ks:1e6},timeParse:function(t){if(void 0==t||null==t)return null;var e=this.regex.exec($.trim(t.toString()));if(e[2]){var i=parseFloat(e[1]),n=this.powers[e[2]]||1;return i*n}return t},add:function(t,e,i,n,s){var o=0;if($.isFunction(i)&&(s||(s=n),n=i,i=e),e=$.timer.timeParse(e),!("number"!=typeof e||isNaN(e)||0>e)){("number"!=typeof s||isNaN(s)||0>s)&&(s=0),s=s||0;var a=$.data(t,this.dataKey)||$.data(t,this.dataKey,{});a[i]||(a[i]={}),n.timerID=n.timerID||this.guid++;var r=function(){(++o>s&&0!==s||n.call(t,o)===!1)&&$.timer.remove(t,i,n)};r.timerID=n.timerID,a[i][n.timerID]||(a[i][n.timerID]=window.setInterval(r,e)),this.global.push(t)}},remove:function(t,e,i){var n,s=$.data(t,this.dataKey);if(s){if(e){if(s[e]){if(i)i.timerID&&(window.clearInterval(s[e][i.timerID]),delete s[e][i.timerID]);else for(var i in s[e])window.clearInterval(s[e][i]),delete s[e][i];for(n in s[e])break;n||(n=null,delete s[e])}}else for(e in s)this.remove(t,e,i);for(n in s)break;n||$.removeData(t,this.dataKey)}}}}),$(window).bind("unload",function(){$.each($.timer.global,function(t,e){$.timer.remove(e)})}),/*!
   * jCarousel - Riding carousels with jQuery
   *   http://sorgalla.com/jcarousel/
   *
   * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
   * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
   * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
   *
   * Built on top of the jQuery library
   *   http://jquery.com
   *
   * Inspired by the "Carousel Component" by Bill Scott
   *   http://billwscott.com/carousel/
   */
  function(t){t.fn.jcarousel=function(e){if("string"==typeof e){var n=t(this).data("jcarousel"),s=Array.prototype.slice.call(arguments,1);return n[e].apply(n,s)}return this.each(function(){t(this).data("jcarousel",new i(this,e))})};var e={vertical:!1,listTag:"ul",itemTag:"li",start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null};t.jcarousel=function(i,n){this.options=t.extend({},e,n||{}),this.locked=!1,this.container=null,this.clip=null,this.list=null,this.buttonNext=null,this.buttonPrev=null,this.wh=this.options.vertical?"height":"width",this.lt=this.options.vertical?"top":"left";for(var s="",o=i.className.split(" "),a=0;a<o.length;a++)if(-1!=o[a].indexOf("jcarousel-skin")){t(i).removeClass(o[a]),s=o[a];break}i.nodeName.toUpperCase()==this.options.listTag.toUpperCase()?(this.list=t(i),this.container=this.list.parent(),this.container.hasClass("jcarousel-clip")?(this.container.parent().hasClass("jcarousel-container")||(this.container=this.container.wrap("<div></div>")),this.container=this.container.parent()):this.container.hasClass("jcarousel-container")||(this.container=this.list.wrap("<div></div>").parent())):(this.container=t(i),this.list=this.container.find(this.options.listTag).eq(0)),""!=s&&-1==this.container.parent()[0].className.indexOf("jcarousel-skin")&&this.container.wrap('<div class=" '+s+'"></div>'),this.clip=this.list.parent(),this.clip.length&&this.clip.hasClass("jcarousel-clip")||(this.clip=this.list.wrap("<div></div>").parent()),this.buttonNext=t(".jcarousel-next",this.container),0==this.buttonNext.size()&&null!=this.options.buttonNextHTML&&(this.buttonNext=this.clip.after(this.options.buttonNextHTML).next()),this.buttonNext.addClass(this.className("jcarousel-next")),this.buttonPrev=t(".jcarousel-prev",this.container),0==this.buttonPrev.size()&&null!=this.options.buttonPrevHTML&&(this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev()),this.buttonPrev.addClass(this.className("jcarousel-prev")),this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden",position:"relative"}),this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,left:0,margin:0,padding:0}),this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});var r=null!=this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,l=this.list.children(this.options.itemTag),c=this;if(l.size()>0){var h=0,a=this.options.offset;l.each(function(){c.format(this,a++),h+=c.dimension(this,r)}),this.list.css(this.wh,h+"px"),n&&void 0!==n.size||(this.options.size=l.size())}this.container.css("display","block"),this.buttonNext.css("display","block"),this.buttonPrev.css("display","block"),this.funcNext=function(){c.next()},this.funcPrev=function(){c.prev()},this.funcResize=function(){c.reload()},null!=this.options.initCallback&&this.options.initCallback(this,"init"),t.browser.safari?(this.buttons(!1,!1),t(window).bind("load.jcarousel",function(){c.setup()})):this.setup()};var i=t.jcarousel;i.fn=i.prototype={jcarousel:"0.2.4"},i.fn.extend=i.extend=t.extend,i.fn.extend({setup:function(){if(this.first=null,this.last=null,this.prevFirst=null,this.prevLast=null,this.animating=!1,this.timer=null,this.tail=null,this.inTail=!1,!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var e=this.pos(this.options.start);this.prevFirst=this.prevLast=null,this.animate(e,!1),t(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)}},reset:function(){this.list.empty(),this.list.css(this.lt,"0px"),this.list.css(this.wh,"10px"),null!=this.options.initCallback&&this.options.initCallback(this,"reset"),this.setup()},reload:function(){if(null!=this.tail&&this.inTail&&this.list.css(this.lt,i.intval(this.list.css(this.lt))+this.tail),this.tail=null,this.inTail=!1,null!=this.options.reloadCallback&&this.options.reloadCallback(this),null!=this.options.visible){var e=this,n=Math.ceil(this.clipping()/this.options.visible),s=0,o=0;t(this.options.itemTag,this.list).each(function(t){s+=e.dimension(this,n),t+1<e.first&&(o=s)}),this.list.css(this.wh,s+"px"),this.list.css(this.lt,-o+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0,this.buttons()},unlock:function(){this.locked=!1,this.buttons()},size:function(t){return void 0!=t&&(this.options.size=t,this.locked||this.buttons()),this.options.size},has:function(t,e){void 0!=e&&e||(e=t),null!==this.options.size&&e>this.options.size&&(e=this.options.size);for(var i=t;e>=i;i++){var n=this.get(i);if(!n.length||n.hasClass("jcarousel-item-placeholder"))return!1}return!0},get:function(e){return t(".jcarousel-item-"+e,this.list)},add:function(t,e){var n=this.get(t),s=0;if(0==n.length){for(var o,n=this.create(t),a=i.intval(t);o=this.get(--a);)if(0>=a||o.length){0>=a?this.list.prepend(n):o.after(n);break}}else s=this.dimension(n);n.removeClass(this.className("jcarousel-item-placeholder")),"string"==typeof e?n.html(e):n.empty().append(e);var r=null!=this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,l=this.dimension(n,r)-s;return t>0&&t<this.first&&this.list.css(this.lt,i.intval(this.list.css(this.lt))-l+"px"),this.list.css(this.wh,i.intval(this.list.css(this.wh))+l+"px"),n},remove:function(t){var e=this.get(t);if(e.length&&!(t>=this.first&&t<=this.last)){var n=this.dimension(e);t<this.first&&this.list.css(this.lt,i.intval(this.list.css(this.lt))+n+"px"),e.remove(),this.list.css(this.wh,i.intval(this.list.css(this.wh))-n+"px")}},next:function(){this.stopAuto(),null==this.tail||this.inTail?this.scroll("both"!=this.options.wrap&&"last"!=this.options.wrap||null==this.options.size||this.last!=this.options.size?this.first+this.options.scroll:1):this.scrollTail(!1)},prev:function(){this.stopAuto(),null!=this.tail&&this.inTail?this.scrollTail(!0):this.scroll("both"!=this.options.wrap&&"first"!=this.options.wrap||null==this.options.size||1!=this.first?this.first-this.options.scroll:this.options.size)},scrollTail:function(t){if(!this.locked&&!this.animating&&this.tail){var e=i.intval(this.list.css(this.lt));t?e+=this.tail:e-=this.tail,this.inTail=!t,this.prevFirst=this.first,this.prevLast=this.last,this.animate(e)}},scroll:function(t,e){this.locked||this.animating||this.animate(this.pos(t),e)},pos:function(e){var n=i.intval(this.list.css(this.lt));if(this.locked||this.animating)return n;"circular"!=this.options.wrap&&(e=1>e?1:this.options.size&&e>this.options.size?this.options.size:e);for(var s,o=this.first>e,a="circular"!=this.options.wrap&&this.first<=1?1:this.first,r=this.get(o?a:this.last),l=o?a:a-1,c=null,h=0,u=!1,d=0;o?--l>=e:++l<e;)c=this.get(l),u=!c.length,0==c.length&&(c=this.create(l).addClass(this.className("jcarousel-item-placeholder")),r[o?"before":"after"](c),null!=this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(0>=l||l>this.options.size)&&(s=this.get(this.index(l)),s.length&&this.add(l,s.children().clone(!0)))),r=c,d=this.dimension(c),u&&(h+=d),null!=this.first&&("circular"==this.options.wrap||l>=1&&(null==this.options.size||l<=this.options.size))&&(n=o?n+d:n-d);for(var p=this.clipping(),f=[],g=0,l=e,m=0,r=this.get(e-1);++g;){c=this.get(l),u=!c.length,0==c.length&&(c=this.create(l).addClass(this.className("jcarousel-item-placeholder")),0==r.length?this.list.prepend(c):r[o?"before":"after"](c),null!=this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(0>=l||l>this.options.size)&&(s=this.get(this.index(l)),s.length&&this.add(l,s.find(">*").clone(!0)))),r=c;var d=this.dimension(c);if(0==d)return console&&t.isFunction(console.log)&&console.log("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."),0;if("circular"!=this.options.wrap&&null!==this.options.size&&l>this.options.size?f.push(c):u&&(h+=d),m+=d,m>=p)break;l++}for(var v=0;v<f.length;v++)f[v].remove();h>0&&(this.list.css(this.wh,this.dimension(this.list)+h+"px"),o&&(n-=h,this.list.css(this.lt,i.intval(this.list.css(this.lt))-h+"px")));var b=e+g-1;if("circular"!=this.options.wrap&&this.options.size&&b>this.options.size&&(b=this.options.size),l>b)for(g=0,l=b,m=0;++g;){var c=this.get(l--);if(!c.length)break;if(m+=this.dimension(c),m>=p)break}var _=b-g+1;if("circular"!=this.options.wrap&&1>_&&(_=1),this.inTail&&o&&(n+=this.tail,this.inTail=!1),this.tail=null,"circular"!=this.options.wrap&&b==this.options.size&&b-g+1>=1){var y=i.margin(this.get(b),this.options.vertical?"marginBottom":"marginRight");m-y>p&&(this.tail=m-p-y)}for(;e-->_;)n+=this.dimension(this.get(e));return this.prevFirst=this.first,this.prevLast=this.last,this.first=_,this.last=b,n},animate:function(t,e){if(!this.locked&&!this.animating){this.animating=!0;var i=this,n=function(){i.animating=!1,0==t&&i.list.css(i.lt,0),("circular"==i.options.wrap||"both"==i.options.wrap||"last"==i.options.wrap||null==i.options.size||i.last<i.options.size)&&i.startAuto(),i.buttons(),i.notify("onAfterAnimation")};if(this.notify("onBeforeAnimation"),this.options.animation&&0!=e){var s=this.options.vertical?{top:t}:{left:t};this.list.animate(s,this.options.animation,this.options.easing,n)}else this.list.css(this.lt,t+"px"),n()}},startAuto:function(t){if(void 0!=t&&(this.options.auto=t),0==this.options.auto)return this.stopAuto();if(null==this.timer){var e=this;this.timer=setTimeout(function(){e.next()},1e3*this.options.auto)}},stopAuto:function(){null!=this.timer&&(clearTimeout(this.timer),this.timer=null)},buttons:function(t,e){if(void 0==t||null==t){var t=!this.locked&&0!==this.options.size&&(this.options.wrap&&"first"!=this.options.wrap||null==this.options.size||this.last<this.options.size);this.locked||this.options.wrap&&"first"!=this.options.wrap||null==this.options.size||!(this.last>=this.options.size)||(t=null!=this.tail&&!this.inTail)}if(void 0==e||null==e){var e=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||this.first>1);this.locked||this.options.wrap&&"last"!=this.options.wrap||null==this.options.size||1!=this.first||(e=null!=this.tail&&this.inTail)}var i=this;this.buttonNext[t?"bind":"unbind"](this.options.buttonNextEvent+".jcarousel",this.funcNext)[t?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",t?!1:!0),this.buttonPrev[e?"bind":"unbind"](this.options.buttonPrevEvent+".jcarousel",this.funcPrev)[e?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",e?!1:!0),this.buttonNext.length>0&&(void 0==this.buttonNext[0].jcarouselstate||this.buttonNext[0].jcarouselstate!=t)&&null!=this.options.buttonNextCallback&&(this.buttonNext.each(function(){i.options.buttonNextCallback(i,this,t)}),this.buttonNext[0].jcarouselstate=t),this.buttonPrev.length>0&&(void 0==this.buttonPrev[0].jcarouselstate||this.buttonPrev[0].jcarouselstate!=e)&&null!=this.options.buttonPrevCallback&&(this.buttonPrev.each(function(){i.options.buttonPrevCallback(i,this,e)}),this.buttonPrev[0].jcarouselstate=e)},notify:function(t){var e=null==this.prevFirst?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",t,e),this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",t,e,this.first),this.callback("itemFirstOutCallback",t,e,this.prevFirst)),this.prevLast!==this.last&&(this.callback("itemLastInCallback",t,e,this.last),this.callback("itemLastOutCallback",t,e,this.prevLast)),this.callback("itemVisibleInCallback",t,e,this.first,this.last,this.prevFirst,this.prevLast),this.callback("itemVisibleOutCallback",t,e,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(e,i,n,s,o,a,r){if(void 0!=this.options[e]&&("object"==typeof this.options[e]||"onAfterAnimation"==i)){var l="object"==typeof this.options[e]?this.options[e][i]:this.options[e];if(t.isFunction(l)){var c=this;if(void 0===s)l(c,n,i);else if(void 0===o)this.get(s).each(function(){l(c,this,s,n,i)});else for(var h=s;o>=h;h++)null===h||h>=a&&r>=h||this.get(h).each(function(){l(c,this,h,n,i)})}}},create:function(t){return this.format("<"+this.options.itemTag+"></"+this.options.itemTag+">",t)},format:function(e,i){var n=t(e).addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+i)).css({"float":"left","list-style":"none"});return n.attr("jcarouselindex",i),n},className:function(t){return t+" "+t+(this.options.vertical?"-vertical":"-horizontal")},dimension:function(e,n){var s=void 0!=e.jquery?e[0]:e,o=this.options.vertical?s.offsetHeight+i.margin(s,"marginTop")+i.margin(s,"marginBottom"):s.offsetWidth+i.margin(s,"marginLeft")+i.margin(s,"marginRight");if(void 0==n||o==n)return o;var a=this.options.vertical?n-i.margin(s,"marginTop")-i.margin(s,"marginBottom"):n-i.margin(s,"marginLeft")-i.margin(s,"marginRight");return t(s).css(this.wh,a+"px"),this.dimension(s)},clipping:function(){return null!=this.clip[0]?this.options.vertical?this.clip[0].offsetHeight-i.intval(this.clip.css("borderTopWidth"))-i.intval(this.clip.css("borderBottomWidth")):this.clip[0].offsetWidth-i.intval(this.clip.css("borderLeftWidth"))-i.intval(this.clip.css("borderRightWidth")):void 0},index:function(t,e){return void 0==e&&(e=this.options.size),Math.round(((t-1)/e-Math.floor((t-1)/e))*e)+1}}),i.extend({defaults:function(i){return t.extend(e,i||{})},margin:function(e,n){if(!e)return 0;var s=void 0!=e.jquery?e[0]:e;if("marginRight"==n&&t.browser.safari){var o,a,r={display:"block","float":"none",width:"auto"};return t.swap(s,r,function(){o=s.offsetWidth}),r.marginRight=0,t.swap(s,r,function(){a=s.offsetWidth}),a-o}return i.intval(t.css(s,n))},intval:function(t){return t=parseInt(t),isNaN(t)?0:t}})}(jQuery),"undefined"==typeof custom_wymeditor_boot_options&&(custom_wymeditor_boot_options={}),$(document).ready(function(){$("form input[type=text]:first").focus(),init_flash_messages()}),init_flash_messages=function(){$("#flash").css({opacity:0,visibility:"visible"}).animate({opacity:"1"},550),$("#flash_close").live("click",function(t){try{$("#flash").animate({opacity:0,visibility:"hidden"},330,function(){$("#flash").hide()})}catch(e){$("#flash").hide()}t.preventDefault()}),$("#flash.flash_message").prependTo("#records")},function(t){$logo=t("#site_bar_content #site_bar_refinery_cms_logo"),$logo.css("left",t("#site_bar_content").width()/2-$logo.width()/2),$switch_anchor=t("#editor_switch a").not(".ie7 #editor_switch a, .ie6 #editor_switch a"),t.isFunction($switch_anchor.corner)&&$switch_anchor.corner("6px"),t("#editor_switch a").appendTo(span=t("<span></span>").prependTo("#editor_switch")),t.isFunction(span.corner)&&span.corner("6px")}(jQuery);var shiftHeld=!1,initialLoad=!0;init_refinery_admin=function(){init_interface(),init_sortable_menu(),init_submit_continue(),init_modal_dialogs(),init_tooltips(),init_ajaxy_pagination()},$(document).ready(init_refinery_admin),"object"==typeof window.onpopstate&&$(window).bind("popstate",function(){initialLoad||$(document).paginateTo(location.pathname+location.href.split(location.pathname)[1]),initialLoad=!1}),$.fn.paginateTo=function(t){$.ajax({url:t,cache:!1,success:function(t){$(".pagination_container").slideTo(t),$(".pagination_container .pagination a").each(function(){$(this).attr("href",$(this).attr("href").replace(/\?\_\=[^&]+&/,"?"))})},failure:function(){window.location=popstate_location}})},$.fn.slideTo=function(t){return $(this).html(t),$(this).applyMinimumHeightFromChildren(),$(this).find(".pagination_frame").removeClass("frame_right").addClass("frame_center"),init_modal_dialogs(),init_tooltips(),$(this)},$.fn.applyMinimumHeightFromChildren=function(){return child_heights=0,$(this).children().each(function(t,e){child_heights+=$(e).height(),$.each(["marginTop","marginBottom","paddingTop","paddingBottom"],function(t,i){child_heights+=parseInt($(e).css(i))||0})}),$(this).css("min-height",child_heights),$(this)},init_modal_dialogs=function(){$('a[href*="dialog=true"]').not("#dialog_container a").each(function(t,e){$(e).data({"dialog-width":parseInt($($(e).attr("href").match("width=([0-9]*)")).last().get(0),10)||928,"dialog-height":parseInt($($(e).attr("href").match("height=([0-9]*)")).last().get(0),10)||473,"dialog-title":$(e).attr("title")||$(e).attr("name")||$(e).html()||null}).attr("href",$(e).attr("href").replace(/(&(amp;)?|\?)(dialog=true|(width|height)=\d+)/g,"").replace(/(\/[^&\?]*)&(amp;)?/,"$1?")).click(function(t){$anchor=$(this),iframe_src=(iframe_src=$anchor.attr("href"))+(iframe_src.indexOf("?")>-1?"&":"?")+"app_dialog=true&dialog=true",iframe=$("<iframe id='dialog_iframe' frameborder='0' marginheight='0' marginwidth='0' border='0'></iframe>"),$.browser.msie||iframe.corner("8px"),iframe.dialog({title:$anchor.data("dialog-title"),modal:!0,resizable:!1,autoOpen:!0,width:$anchor.data("dialog-width"),height:$anchor.data("dialog-height"),open:onOpenDialog,close:onCloseDialog}),iframe.attr("src",iframe_src),t.preventDefault()})})},refinery_dialog_success=function(){close_dialog(),$.ajax({url:window.location.pathname,cache:!1,success:function(t){$(".pagination_container").html(t),$("#flash_container > #flash").remove(),$("#flash_container").append($(".pagination_container").find("#flash")),$("#flash").css({width:"auto",visibility:""}).fadeIn(550),init_refinery_admin()}})},trigger_reordering=function(t,e){$menu=$("#menu"),t.preventDefault(),$("#menu_reorder, #menu_reorder_done").toggle(),$("#site_bar, #content").fadeTo(500,e?.35:1),e?$menu.find(".tab a").click(function(t){t.preventDefault()}):$menu.find(".tab a").unbind("click"),$menu.sortable(e?"enable":"disable")},trigger_reordering_content_section=function(t,e){$menu=$("#page-tabs"),t.preventDefault(),$("#reorder_page_part, #reorder_page_part_done").toggle(),$("#site_bar, #menu, .field:not(:has(#page-tabs)), .page_part, #more_options_field, .form-actions").fadeTo(500,e?.35:1),e?$menu.addClass("reordering").find(".tab a").click(function(t){t.preventDefault()}):$menu.removeClass("reordering").find(".tab a").unbind("click"),$menu.sortable(e?"enable":"disable").sortable({items:"li",stop:function(){$("#page-tabs li[data-index]").each(function(t){$("#page_parts_attributes_"+$(this).data("index")+"_position").val(t+1)})}})},submit_and_continue=function(t,e){$(this).hasClass("wymupdate")&&$.each(WYMeditor.INSTANCES,function(t,e){e.update()}),$("#continue_editing").val(!0),$("#flash").fadeOut(250),$(".fieldWithErrors").removeClass("fieldWithErrors").addClass("field"),$("#flash_container .errorExplanation").remove(),$.post($("#continue_editing").get(0).form.action,$($("#continue_editing").get(0).form).serialize(),function(t){($flash_container=$("#flash_container")).length>0&&($flash_container.html(t),$("#flash").css({width:"auto",visibility:null}).fadeIn(550),$(".errorExplanation").not($("#flash_container .errorExplanation")).remove(),null!=(error_fields=$("#fieldsWithErrors").val())?$.each(error_fields.split(","),function(){$("#"+this).wrap("<div class='fieldWithErrors' />")}):e&&(window.location=e),$(".fieldWithErrors:first :input:first").focus(),$("#continue_editing").val(!1),init_flash_messages(),$("form").attr("action",$("#new_action").attr("value")))},"html"),t.preventDefault()},init_tooltips=function(t){$($(null!=t?t:"a[title], span[title], #image_grid img[title], *[tooltip]")).not(".no-tooltip").each(function(t,e){$(e).hover(function(t){"mouseenter"==t.type||"mouseover"==t.type?$(this).oneTime(350,"tooltip",$.proxy(function(){$(".tooltip").remove(),tooltip=$("<div class='tooltip'><div><span></span></div></div>").appendTo("#tooltip_container"),tooltip.find("span").html($(this).attr("tooltip")),$.browser.msie||tooltip.corner("6px").find("span").corner("6px"),tooltip_nib_extension=$.browser.msie?".gif":".png",nib=$("<img src='/assets/refinery/tooltip-nib"+tooltip_nib_extension+"' class='tooltip-nib'/>").appendTo("#tooltip_container"),tooltip.css({opacity:0,maxWidth:"300px"}),required_left_offset=$(this).offset().left-tooltip.outerWidth()/2+$(this).outerWidth()/2,tooltip.css("left",required_left_offset>0?required_left_offset:0);var t=tooltip.offset(),e=tooltip.outerWidth();t&&t.left+e>(window_width=$(window).width())&&tooltip.css("left",window_width-e),tooltip.css({top:$(this).offset().top-tooltip.outerHeight()-10}),nib.css({opacity:0}),(t=tooltip.offset())&&nib.css({left:$(this).offset().left+$(this).outerWidth()/2-5,top:t.top+tooltip.height()});try{tooltip.animate({top:t.top-10,opacity:1},200,"swing"),nib.animate({top:nib.offset().top-10,opacity:1},200)}catch(i){tooltip.show(),nib.show()}},$(this))):("mouseleave"==t.type||"mouseout"==t.type)&&($(this).stopTime("tooltip"),null==(tt_offset=(tooltip=$(".tooltip")).css("z-index","-1").offset())&&(tt_offset={top:0,left:0}),tooltip.animate({top:tt_offset.top-20,opacity:0},125,"swing",function(){$(this).remove()}),null==(nib_offset=(nib=$(".tooltip-nib")).offset())&&(nib_offset={top:0,left:0}),nib.animate({top:nib_offset.top-20,opacity:0},125,"swing",function(){$(this).remove()}))}).click(function(){$(this).stopTime("tooltip")}),null==$(e).attr("tooltip")&&$(e).attr("tooltip",$(e).attr("title")),$elements=$(e).add($(e).children("img")).removeAttr("title"),$.browser.msie&&$elements.removeAttr("alt")})};var link_tester={initialised:!1,init:function(t,e){this.initialised||(this.test_url=t,this.test_email=e,this.initialised=!0)},email:function(t,e){""!=t&&$.getJSON(link_tester.test_email,{email:t},function(t){e("success"==t.result)})},url:function(t,e){""!=t&&$.getJSON(link_tester.test_url,{url:t},function(t){e("success"==t.result)})},validate_textbox:function(t,e,i){var n="",s=$("<img id='"+e.replace("#","")+"_test_loader' src='/assets/refinery/ajax-loader.gif' alt='Testing...' style='display: none;'/>"),o=$("<span id='"+e.replace("#","")+"_test_result'></span>");s.insertAfter($(e)),o.insertAfter(s),$(e).bind("paste blur",function(){$(e).stop(!0),$(e+"_test_loader").hide(),$(e+"_test_result").hide(),$(e+"_test_result").removeClass("success_icon").removeClass("failure_icon"),""!=this.value&&"/"!=this.value[0]&&$(e).delay(300).queue(function(){$(e+"_test_loader").show(),$(e+"_test_result").hide(),$(e+"_test_result").removeClass("success_icon").removeClass("failure_icon"),t(this.value,function(t){n=t?"success_icon":"failure_icon",$(e+"_test_result").addClass(n).show(),$(e+"_test_loader").hide()}),i&&i($(e)),$(this).dequeue()})})},validate_url_textbox:function(t,e){link_tester.validate_textbox(link_tester.url,t,e)},validate_email_textbox:function(t,e){link_tester.validate_textbox(link_tester.email,t,e)}},link_dialog={initialised:!1,init:function(){this.initialised||(this.init_tabs(),this.init_resources_submit(),this.init_close(),this.page_tab(),this.web_tab(),this.email_tab(),this.initialised=!0)},init_tabs:function(){var t=$("#dialog_menu_left input:radio"),e=t.parent().filter(".selected_radio").find("input:radio").first()||t.first();t.click(function(){link_dialog.switch_area($(this))}),e.attr("checked","true"),link_dialog.switch_area(e)},init_resources_submit:function(){$("#existing_resource_area .form-actions-dialog #submit_button").click(function(t){t.preventDefault(),(resource_selected=$("#existing_resource_area_content ul li.linked a")).length>0&&(resourceUrl=parseURL(resource_selected.attr("href")),relevant_href=resourceUrl.pathname,resourceUrl.hostname.match(/s3.amazonaws.com/)&&(relevant_href=resourceUrl.protocol+"//"+resourceUrl.host+relevant_href),"function"==typeof resource_picker.callback&&resource_picker.callback({id:resource_selected.attr("id").replace("resource_",""),href:relevant_href,html:resource_selected.html()})),$(".form-actions-dialog #cancel_button").trigger("click")})},init_close:function(){$(".form-actions-dialog #cancel_button").not(".wym_iframe_body .form-actions-dialog #cancel_button").click(close_dialog),parent&&parent.document.location.href!=document.location.href&&null!=parent.document.getElementById("wym_dialog_submit")&&($("#dialog_container .form-actions input#submit_button").click(function(t){t.preventDefault(),$(parent.document.getElementById("wym_dialog_submit")).click()}),$("#dialog_container .form-actions a.close_dialog").click(close_dialog))},switch_area:function(t){$("#dialog_menu_left .selected_radio").removeClass("selected_radio"),$(t).parent().addClass("selected_radio"),$("#dialog_main .dialog_area").hide(),$("#"+$(t).val()+"_area").show()},page_tab:function(){$(".link_list li").click(function(t){t.preventDefault(),$(".link_list li.linked").removeClass("linked"),$(this).addClass("linked");var e=$(this).children("a.page_link").get(0),i=window.location.port.length>0?":"+window.location.port:"",n=e.href.replace(window.location.protocol+"//"+window.location.hostname+i,"");link_dialog.update_parent(n,e.rel.replace(/\ ?<em>.+?<\/em>/,""))})},web_tab:function(){link_tester.validate_url_textbox("#web_address_text",function(){}),$("#web_address_text, #web_address_target_blank").change(function(){link_dialog.update_parent($("#web_address_text").val(),$("#web_address_text").val(),$("#web_address_target_blank").get(0).checked?"_blank":"")})},email_tab:function(){link_tester.validate_email_textbox("#email_address_text",function(){}),$("#email_address_text, #email_default_subject_text, #email_default_body_text").change(function(){var t=$("#email_default_subject_text").val(),e=$("#email_default_body_text").val(),i=$("#email_address_text").val();modifier="?",additional="",t.length>0&&(additional+=modifier+"subject="+t,modifier="&"),e.length>0&&(additional+=modifier+"body="+e,modifier="&");for(var n="",s=0;s<i.length;s++)n+="%"+i.charCodeAt(s).toString(16);link_dialog.update_parent("mailto:"+n+additional,i)})},update_parent:function(t,e,i){null!=parent&&(null!=(wym_href=parent.document.getElementById("wym_href"))&&(wym_href.value=t),null!=(wym_title=parent.document.getElementById("wym_title"))&&(wym_title.value=e),null!=(wym_target=parent.document.getElementById("wym_target"))&&(wym_target.value=i||""))}},page_options={initialised:!1,init:function(t,e,i){this.initialised||(page_options.tabs=$("#page-tabs"),page_options.tabs.tabs({tabTemplate:'<li><a href="#{href}">#{label}</a></li>'}),page_options.tabs.find(" > ul li a").corner("top 5px"),part_shown=$("#page-tabs .page_part.field").not(".ui-tabs-hide"),$("#page-tabs .page_part.field").removeClass("ui-tabs-hide"),this.enable_parts=t,this.new_part_url=e,this.del_part_url=i,this.show_options(),$(document).ready($.proxy(function(){$("#page-tabs .page_part.field").not(this).addClass("ui-tabs-hide"),$("#page-tabs > ul li a").corner("top 5px")},part_shown)),this.enable_parts&&this.page_part_dialog(),this.initialised=!0)},show_options:function(){$("#toggle_advanced_options").click(function(t){t.preventDefault(),$("#more_options").animate({opacity:"toggle",height:"toggle"},250),$("html,body").animate({scrollTop:$("#toggle_advanced_options").parent().offset().top},250)})},page_part_dialog:function(){$("#new_page_part_dialog").dialog({title:"Create Content Section",modal:!0,resizable:!1,autoOpen:!1,width:600,height:200}),$("#add_page_part").click(function(t){t.preventDefault(),$("#new_page_part_dialog").dialog("open")}),$("#new_page_part_save").click(function(t){t.preventDefault();var e=$("#new_page_part_title").val();if(e.length>0){var i=e.toLowerCase().replace(" ","_");0===$("#part_"+i).size()?$.get(page_options.new_part_url,{title:e,part_index:$("#new_page_part_index").val(),body:""},function(t){$("#submit_continue_button").remove(),$("#page_part_editors").append(t),page_options.tabs.tabs("add","#page_part_new_"+$("#new_page_part_index").val(),e),page_options.tabs.tabs("select",$("#new_page_part_index").val()),WYMeditor.onload_functions.push(function(){page_options.tabs.tabs("select",$("#new_page_part_index").val())}),$("#page_part_new_"+$("#new_page_part_index").val()).appendTo("#page_part_editors"),WYMeditor.init(),$("#new_page_part_index").val(parseInt($("#new_page_part_index").val(),10)+1),$("#new_page_part_title").val(""),page_options.tabs.find("> ul li a").corner("top 5px"),$("#new_page_part_dialog").dialog("close")},"html"):alert("A content section with that title already exists, please choose another.")}else alert("You have not entered a title for the content section, please enter one.")}),$("#new_page_part_cancel").click(function(t){t.preventDefault(),$("#new_page_part_dialog").dialog("close"),$("#new_page_part_title").val("")}),$("#delete_page_part").click(function(t){if(t.preventDefault(),confirm("This will remove the content section '"+$("#page_parts .ui-tabs-selected a").text()+"' immediately even if you don't save this page, are you sure?")){var e=page_options.tabs.tabs("option","selected");$.ajax({url:page_options.del_part_url+"/"+$("#page_parts_attributes_"+e+"_id").val(),type:"DELETE"}),page_options.tabs.tabs("remove",e),$("#page_parts_attributes_"+e+"_id").remove(),$("#submit_continue_button").remove()}}),$("#reorder_page_part").click(function(t){trigger_reordering_content_section(t,!0)}),$("#reorder_page_part_done").click(function(t){trigger_reordering_content_section(t,!1)})}},image_dialog={initialised:!1,callback:null,init:function(t){return this.initialised||(this.callback=t,this.init_tabs(),this.init_select(),this.init_actions(),this.initialised=!0),this},init_tabs:function(){var t=$("#dialog_menu_left input:radio"),e=t.parent().filter(".selected_radio").find("input:radio").first()||t.first();t.click(function(){link_dialog.switch_area($(this))}),e.attr("checked","true"),link_dialog.switch_area(e)},switch_area:function(t){$("#dialog_menu_left .selected_radio").removeClass("selected_radio"),$(t).parent().addClass("selected_radio"),$("#dialog_main .dialog_area").hide(),$("#"+t.value+"_area").show()},init_select:function(){$("#existing_image_area_content ul li img").click(function(){image_dialog.set_image(this)}),(selected_img=$("#existing_image_area_content ul li.selected img")).length>0&&image_dialog.set_image(selected_img.first())},set_image:function(t){if($(t).length>0){$("#existing_image_area_content ul li.selected").removeClass("selected"),$(t).parent().addClass("selected");var e=($(t).attr("data-id"),$("#existing_image_size_area li.selected a").attr("data-geometry")),i=$("#existing_image_size_area li.selected a").attr("data-size"),n=$("#wants_to_resize_image").is(":checked");image_url=$(t).attr(n?"data-"+i:"data-original"),parent&&(null!=(wym_src=parent.document.getElementById("wym_src"))&&(wym_src.value=image_url),null!=(wym_title=parent.document.getElementById("wym_title"))&&(wym_title.value=$(t).attr("title")),null!=(wym_alt=parent.document.getElementById("wym_alt"))&&(wym_alt.value=$(t).attr("alt")),null!=(wym_size=parent.document.getElementById("wym_size"))&&"undefined"!=typeof e&&(wym_size.value=e.replace(/[<>=]/g,"")))}},submit_image_choice:function(t){t.preventDefault(),(img_selected=$("#existing_image_area_content ul li.selected img").get(0))&&$.isFunction(this.callback)&&this.callback(img_selected),close_dialog(t)},init_actions:function(){var t=this;$("#existing_image_area .form-actions-dialog #submit_button").not(".wym_iframe_body #existing_image_area .form-actions-dialog #submit_button").click($.proxy(t.submit_image_choice,t)),$(".form-actions-dialog #cancel_button").not(".wym_iframe_body .form-actions-dialog #cancel_button").click($.proxy(close_dialog,t)),$("#existing_image_size_area ul li a").click(function(t){$("#existing_image_size_area ul li").removeClass("selected"),$(this).parent().addClass("selected"),$("#existing_image_size_area #wants_to_resize_image").attr("checked","checked"),image_dialog.set_image($("#existing_image_area_content ul li.selected img")),t.preventDefault()}),$("#existing_image_size_area #wants_to_resize_image").change(function(){$(this).is(":checked")?$("#existing_image_size_area ul li:first a").click():($("#existing_image_size_area ul li").removeClass("selected"),image_dialog.set_image($("#existing_image_area_content ul li.selected img")))}),image_area=$("#existing_image_area").not("#wym_iframe_body #existing_image_area"),image_area.find(".form-actions input#submit_button").click($.proxy(function(t){t.preventDefault(),$(this.document.getElementById("wym_dialog_submit")).click()},parent)),image_area.find(".form-actions a.close_dialog").click(close_dialog)}},list_reorder={initialised:!1,init:function(){this.initialised||($("#reorder_action").click(list_reorder.enable_reordering),$("#reorder_action_done").click(list_reorder.disable_reordering),list_reorder.tree===!1&&list_reorder.sortable_list.find("li").addClass("no-nest"),list_reorder.sortable_list.nestedSortable({listType:"ul",disableNesting:"no-nest",forcePlaceholderSize:!0,handle:list_reorder.tree?"div":null,items:"li",opacity:.6,placeholder:"placeholder",tabSize:25,tolerance:"pointer",toleranceElement:list_reorder.tree?"> div":null,disabled:!0,start:function(){},change:function(){list_reorder.tree&&list_reorder.reset_branch_classes(this)
  },stop:function(){list_reorder.tree?(list_reorder.reset_branch_classes(this),list_reorder.reset_icon_classes(this)):list_reorder.reset_on_off_classes(this)}}),list_reorder.tree?list_reorder.reset_branch_classes(list_reorder.sortable_list):list_reorder.reset_on_off_classes(list_reorder.sortable_list),this.initialised=!0)},reset_on_off_classes:function(t){$("> li",t).each(function(t,e){$(e).removeClass("on off on-hover").addClass(t%2===0?"on":"off")})},reset_branch_classes:function(t){$("li.ui-sortable-helper",this).removeClass("record").removeClass("branch_start").removeClass("branch_end"),$("li",t).removeClass("branch_start").removeClass("branch_end"),$("> li:first",t).addClass("branch_start"),$("> li:last",t).addClass("branch_end");var e=$("ul",t);$("> li:last",e).addClass("branch_end")},reset_icon_classes:function(t){$("li",t).each(function(){var t=$(this),e=t.find(".icon:first");t.find("ul li").size()>0?e.addClass("toggle expanded"):e.hasClass("expanded")&&e.removeClass("toggle expanded")})},enable_reordering:function(t){t&&t.preventDefault(),$("#sortable_list, .sortable_list").addClass("reordering"),$("#sortable_list .actions, .sortable_list .actions, #site_bar, header > *:not(script)").fadeTo(500,.3),$('#actions *:not("#reorder_action_done, #reorder_action")').not($("#reorder_action_done").parents("li, ul, div")).fadeTo(500,.55),list_reorder.sortable_list.nestedSortable("enable"),$("#reorder_action").hide(),$("#reorder_action_done").show()},disable_reordering:function(t){if(t&&t.preventDefault(),$("#reorder_action_done").hasClass("loading"))return!1;if($("#reorder_action_done").addClass("loading"),list_reorder.sortable_list.nestedSortable("disable"),$("#sortable_list, .sortable_list").removeClass("reordering"),null!==list_reorder.update_url){var e=list_reorder.sortable_list.serializelist();$.post(list_reorder.update_url,e,function(){list_reorder.restore_controls(t)})}else list_reorder.restore_controls(t)},restore_controls:function(){$(list_reorder.sortable_list).removeClass("reordering"),$("#sortable_list .actions, .sortable_list .actions, #site_bar, header > *:not(script)").fadeTo(250,1),$('#actions *:not("#reorder_action_done, #reorder_action")').not($("#reorder_action_done").parents("li, ul, div")).fadeTo(250,1,function(){$("#reorder_action_done").hide().removeClass("loading"),$("#reorder_action").show()})}},image_picker={initialised:!1,options:{selected:"",thumbnail:"medium",field:"#image",image_display:".current_picked_image",no_image_message:".no_picked_image_selected",image_container:".current_image_container",remove_image_button:".remove_picked_image",picker_container:".image_picker_container",image_link:".current_image_link",image_toggler:null},init:function(t){return this.initialised||(this.options=$.extend(this.options,t),$(this.options.picker_container).find(this.options.remove_image_button).click($.proxy(this.remove_image,{container:this.options.picker_container,picker:this})),$(this.options.picker_container).find(this.options.image_toggler).click($.proxy(this.toggle_image,{container:this.options.picker_container,picker:this})),this.initialised=!0),this},remove_image:function(t){t.preventDefault(),$(this.container).find(this.picker.options.image_display).removeClass("brown_border").attr({src:"",width:"",height:""}).css({width:"auto",height:"auto"}).hide(),$(this.container).find(this.picker.options.field).val("").trigger("change"),$(this.container).find(this.picker.options.no_image_message).show(),$(this.container).find(this.picker.options.remove_image_button).hide()},toggle_image:function(t){$(this.container).find(this.options.image_toggler).html("Show"==$(this.container).find(options.image_toggler).html()?"Hide":"Show"),$(this.container).find(this.options.image_container).toggle(),t.preventDefault()},changed:function(){$(this.container).find(this.picker.options.field).val(this.image.id.replace("image_","")).trigger("change");var t=this.picker.options.thumbnail||"original";this.image.src=$(this.image).attr("data-"+t),current_image=$(this.container).find(this.picker.options.image_display),current_image.replaceWith($("<img src='"+this.image.src+"?"+Math.floor(1e5*Math.random())+"' id='"+current_image.attr("id")+"' class='"+this.picker.options.image_display.replace(/^./,"")+" brown_border' />")),$(this.container).find(this.picker.options.remove_image_button).show(),$(this.container).find(this.picker.options.no_image_message).hide()}},resource_picker={initialised:!1,callback:null,init:function(t){this.initialised||(this.callback=t,this.initialised=!0)}};close_dialog=function(t){iframed()?(the_body=$(parent.document.body),the_dialog=parent.$(".ui-dialog-content")):(the_body=$(document.body).removeClass("hide-overflow"),the_dialog=$(".ui-dialog-content"),the_dialog.filter(":data(dialog)").dialog("close"),the_dialog.remove()),$(document.body).hasClass("wym_iframe_body")||(the_body.removeClass("hide-overflow"),the_dialog.filter(":data(dialog)").dialog("close"),the_dialog.remove(),t&&t.preventDefault&&t.preventDefault())},parseURL=function(t){var e={href:t},i=t.replace("//","/").split("/");e.protocol=i[0],e.host=i[1],i[1]=i[1].split(":"),e.hostname=i[1][0],e.port=i[1].length>1?i[1][1]:"",i.splice(0,2),e.pathname="/"==e.href[0]?"/"+e.host:"",e.pathname+="/"+i.join("/"),e.pathname=e.pathname.split("#"),e.hash=e.pathname.length>1?"#"+e.pathname[1]:"",e.pathname=e.pathname[0],e.pathname=e.pathname.split("?"),e.search=e.pathname.length>1?"?"+e.pathname[1]:"",e.pathname=e.pathname[0];var n=t.split("?")[1];return e.options=n,e},iframed=function(){return parent&&parent.document&&parent.document.location.href!=document.location.href&&$.isFunction(parent.$)},$(document).ready(function(){$('nav#actions.multilist > ul:not(.search_list) li a[href$="'+window.location.pathname+'"]').not(".not_a_link a").parent().addClass("selected"),0===$("nav#actions.multilist > ul:not(.search_list) li.selected").length&&$("nav#actions.multilist > ul:not(.search_list) li a:nth(1)").parent().addClass("selected"),$("nav#actions.multilist > ul:not(.search_list) li > a").not(".not_a_link a").not("a.reorder_icon").each(function(){null==$(this).data("dialog-title")&&$(this).bind("click",function(){$(this).css("background-image","url('/assets/refinery/ajax-loader.gif') !important")})}),$("ul.collapsible_menu").each(function(){(first_li=$(this).children("li:first")).after(div=$("<div></div>")),$("<span class='arrow'>&nbsp;</span>").appendTo(first_li),0===$(this).children("li.selected").length&&(div.hide(),first_li.addClass("closed")),$(this).children("li:not(:first)").appendTo(div),first_li.find("> a, > span.arrow").click(function(t){$(this).parent().toggleClass("closed"),$(this).parent().toggleClass("open"),$(this).parent().next("div").animate({opacity:"toggle",height:"toggle"},250,$.proxy(function(){$(this).css("background-image",null)},$(this))),t.preventDefault()})}),$(".success_icon, .failure_icon").bind("click",function(t){$.get($(this).attr("href"),$.proxy(function(t){$(this).css("background-image","").removeClass("failure_icon").removeClass("success_icon").addClass(t.enabled?"success_icon":"failure_icon")},$(this))),t.preventDefault()})}),function(){this.init_interface=function(){var t;return parent&&parent.document.location.href!==document.location.href&&$("body#dialog_container.dialog").addClass("iframed"),$("input:submit:not(.button)").addClass("button"),$.browser.msie||($("#page_container, .wym_box").corner("5px bottom"),$(".wym_box").corner("5px tr"),$(".field > .wym_box").corner("5px tl"),$(".wym_iframe iframe").corner("2px"),$('.form-actions:not(".form-actions-dialog")').corner("5px")),$("#recent_activity li a, #recent_inquiries li a").each(function(){return $(this).textTruncate({width:$(this).width(),tooltip:!1})}),$("textarea.wymeditor").each(function(){var t,e,i,n;return n=$(this),null!=(t=WYMeditor.INSTANCES[$((n.next(".wym_box").find("iframe").attr("id")||"").split("_")).last().get(0)])&&(null!=(e=n.parent().next())&&e.length>0&&e.find("input, textarea").keydown($.proxy(function(t){var e;return e=t.shiftKey,e&&t.keyCode===$.ui.keyCode.TAB?(this._iframe.contentWindow.focus(),t.preventDefault()):void 0},t)).keyup(function(){var t;return t=!1}),null!=(i=n.parent().prev())&&i.length>0)?i.find("input, textarea").keydown($.proxy(function(t){return t.keyCode===$.ui.keyCode.TAB?(this._iframe.contentWindow.focus(),t.preventDefault()):void 0},t)):void 0}),(t=$("#menu")).length>0&&(t.jcarousel({vertical:!1,scroll:1,buttonNextHTML:"<img src='/assets/refinery/carousel-right.png' alt='down' height='15' width='10' />",buttonPrevHTML:"<img src='/assets/refinery/carousel-left.png' alt='up' height='15' width='10' />",listTag:t.get(0).tagName.toLowerCase(),itemTag:t.children(":first").get(0).tagName.toLowerCase()}),t.outerWidth()<$("#page_container").outerWidth()?$("#page_container:not('.login #page_container')").corner("5px tr"):$("#page_container:not('.login #page_container')").uncorner()),$("#current_locale li a").click(function(t){return $("#current_locale li a span").each(function(){return $(this).css("display","none"===$(this).css("display")?"":"none")}),$("#other_locales").animate({opacity:"toggle",height:"toggle"},250),$("html,body").animate({scrollTop:$("#other_locales").parent().offset().top},250),t.preventDefault()}),$("#existing_image img").load(function(){return $("form.edit_image .form-actions").css({"margin-top":$("#existing_image").height()-$("form.edit_image").height()+8})}),$(".form-actions .form-actions-left input:submit#submit_button").click(function(){return $("<img src='/assets/refinery/ajax-loader.gif' width='16' height='16' class='save-loader' />").appendTo($(this).parent())}),$(".form-actions.form-actions-dialog .form-actions-left a.close_dialog").click(function(t){var e;return e=$(".ui-dialog-titlebar-close"),parent&&(e=parent.$(".ui-dialog-titlebar-close")),e.trigger("click"),t.preventDefault()}),$("a.suppress").live("click",function(t){return t.preventDefault()})}}.call(this),function(){this.init_sortable_menu=function(){var t;return t=$("#menu"),0!==t.length?(t.sortable({axis:"x",cursor:"crosshair",connectWith:".nested",update:function(){return $.post("/refinery/update_menu_positions",t.sortable("serialize",{key:"menu[]",expression:/plugin_([\w]*)$/}))}}).tabs(),t.sortable("disable"),t.find("#menu_reorder").click(function(t){return trigger_reordering(t,!0)}),t.find("#menu_reorder_done").click(function(t){return trigger_reordering(t,!1)}),t.find("> a").corner("top 5px")):void 0}}.call(this),function(){this.init_submit_continue=function(){var t;return $("#submit_continue_button").click(submit_and_continue),$("form").change(function(){return $(this).attr("data-changes-made",!0)}),(t=$("#continue_editing")).length>0&&"no-prompt"!==t.attr("rel")&&$("#editor_switch a").click(function(t){return $("form[data-changes-made]").length>0&&!confirm("Any changes you've made will be lost. Are you sure you want to continue without saving?")?t.preventDefault():void 0}),$("input[id=page_custom_slug]").change(function(){return $("#submit_continue_button").remove()})}}.call(this),function(){this.init_ajaxy_pagination=function(){var t;return"function"==typeof window.history.pushState&&$(".pagination_container").length>0&&(t=$(".pagination_container .pagination a"),t.live("click",function(t){var e,i;return i=this.href.replace(/(\&(amp\;)?)?from_page\=\d+/,""),i+="&from_page="+$(".current").text(),i=i.replace("?&","?").replace(/\s+/,""),e=location.pathname+location.href.split(location.pathname)[1],window.history.pushState({path:e},"",i),$(document).paginateTo(i),t.preventDefault()})),$(".pagination_container").applyMinimumHeightFromChildren(),0===$(".pagination_container").find(".pagination").length?$(".pagination_frame").css("top","0px"):void 0}}.call(this);