/*
 Public Domain
 @author Benjamin Arthur Lupton <contact@balupton.com>
 @author James Padolsey <https://gist.github.com/527683>
 Public Domain
 @author Benjamin Arthur Lupton <contact@balupton.com>
 New BSD License <http://creativecommons.org/licenses/BSD/>
 New BSD License <http://creativecommons.org/licenses/BSD/>
*/
window.Modernizr=function(b,h,f){function a(){for(var b=l,a="search tel url email datetime date month week time datetime-local number range color".split(" "),c=0,d,k,q,r=a.length;c<r;c++)o.setAttribute("type",k=a[c]),d="text"!==o.type,d&&(o.value=e,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(k)&&o.style.WebkitAppearance!==f?(n.appendChild(o),q=h.defaultView,d=q.getComputedStyle&&"textfield"!==q.getComputedStyle(o,null).WebkitAppearance&&0!==o.offsetHeight,n.removeChild(o)):
/^(search|tel)$/.test(k)||(/^(url|email)$/.test(k)?d=o.checkValidity&&!1===o.checkValidity():/^color$/.test(k)?(n.appendChild(o),d=o.value!=e,n.removeChild(o)):d=o.value!=e)),s[a[c]]=!!d;b.inputtypes=s}function c(b,a){var c=b.charAt(0).toUpperCase()+b.substr(1),c=(b+" "+v.join(c+" ")+c).split(" ");return d(c,a)}function d(b,a){for(var c in b)if(m[b[c]]!==f)return"pfx"==a?b[c]:!0;return!1}function k(b,a){return typeof b===a}var l={},n=h.documentElement;h.head||h.getElementsByTagName("head");var p=
h.createElement("modernizr"),m=p.style,o=h.createElement("input"),e=":)",w=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),v="Webkit Moz O ms Khtml".split(" "),p={},s={},q=[],r=function(b,a,c,d){var e,k,f=h.createElement("div");if(parseInt(c,10))for(;c--;)k=h.createElement("div"),k.id=d?d[c]:"modernizr"+(c+1),f.appendChild(k);e=["&shy;<style>",b,"</style>"].join("");f.id="modernizr";f.innerHTML+=e;n.appendChild(f);b=a(f,b);f.parentNode.removeChild(f);return!!b},u=function(){var b={select:"input",change:"input",
submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(a,c){c=c||h.createElement(b[a]||"div");a="on"+a;var d=a in c;d||(c.setAttribute||(c=h.createElement("div")),c.setAttribute&&c.removeAttribute&&(c.setAttribute(a,""),d=k(c[a],"function"),k(c[a],f)||(c[a]=f),c.removeAttribute(a)));return d}}(),x,y={}.hasOwnProperty,E;!k(y,f)&&!k(y.call,f)?E=function(b,a){return y.call(b,a)}:E=function(b,a){return a in b&&k(b.constructor.prototype[a],f)};(function(a,c){var d=a.join(""),e=
c.length;r(d,function(a){for(var a=a.childNodes,c={};e--;)c[a[e].id]=a[e];l.touch="ontouchstart"in b||9===c.touch.offsetTop},e,c)})([,["@media (",w.join("touch-enabled),("),"modernizr){#touch{top:9px;position:absolute}}"].join("")],[,"touch"]);p.canvas=function(){var a=h.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")};p.canvastext=function(){return!!l.canvas&&!!k(h.createElement("canvas").getContext("2d").fillText,"function")};p.touch=function(){return l.touch};p.hashchange=function(){return u("hashchange",
b)&&(h.documentMode===f||7<h.documentMode)};p.history=function(){return!!b.history&&!!history.pushState};p.draganddrop=function(){return u("dragstart")&&u("drop")};p.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+m.backgroundColor).indexOf("rgba")};p.multiplebgs=function(){m.cssText="background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(m.background)};p.borderimage=function(){return c("borderImage")};p.boxshadow=function(){return c("boxShadow")};
p.textshadow=function(){return""===h.createElement("div").style.textShadow};p.cssgradients=function(){var a=("background-image:"+w.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+w.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return!!~(""+m.backgroundImage).indexOf("gradient")};p.csstransitions=function(){return c("transitionProperty")};p.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}};
for(var z in p)E(p,z)&&(x=z.toLowerCase(),l[x]=p[z](),q.push((l[x]?"":"no-")+x));l.input||a();m.cssText="";p=o=null;b.attachEvent&&function(){var a=h.createElement("div");a.innerHTML="<elem></elem>";return 1!==a.childNodes.length}()&&function(a,b){function c(a){for(var b=-1;++b<k;)a.createElement(h[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
h=e.split("|"),k=h.length,g=RegExp("(^|\\s)("+e+")","gi"),l=RegExp("<(/*)("+e+")","gi"),q=/^\s*[\{\}]\s*$/,n=RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),r=b.createDocumentFragment(),p=b.documentElement,e=p.firstChild,m=b.createElement("body"),o=b.createElement("style"),s=/print|all/,u;d.getCSS=function(a,b){if(a+""===f)return"";for(var c=-1,g=a.length,e,h=[];++c<g;)e=a[c],e.disabled||(b=e.media||b,s.test(b)&&h.push(d.getCSS(e.imports,b),e.cssText),b="all");return h.join("")};d.parseCSS=
function(a){for(var b=[],c;null!=(c=n.exec(a));)b.push(((q.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(g,"$1.iepp_$2")+c[4]);return b.join("\n")};d.writeHTML=function(){var a=-1;for(u=u||b.body;++a<k;)for(var c=b.getElementsByTagName(h[a]),g=c.length,d=-1;++d<g;)0>c[d].className.indexOf("iepp_")&&(c[d].className+=" iepp_"+h[a]);r.appendChild(u);p.appendChild(m);m.className=u.className;m.id=u.id;m.innerHTML=u.innerHTML.replace(l,"<$1font")};d._beforePrint=function(){o.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,
"all"));d.writeHTML()};d.restoreHTML=function(){m.innerHTML="";p.removeChild(m);p.appendChild(u)};d._afterPrint=function(){d.restoreHTML();o.styleSheet.cssText=""};c(b);c(r);d.disablePP||(e.insertBefore(o,e.firstChild),o.media="print",o.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}(b,h);l._version="2.0.6";l._prefixes=w;l._domPrefixes=v;l.hasEvent=u;l.testProp=function(a){return d([a])};l.testAllProps=c;l.testStyles=r;n.className=
n.className.replace(/\bno-js\b/,"")+(" js "+q.join(" "));return l}(this,this.document);
(function(b){"function"==typeof define?define(b):b()})(function(){function b(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}if(!Function.prototype.bind)Function.prototype.bind=function(b){var c=this;if("function"!=typeof c)throw new TypeError;var d=a.call(arguments,1),e=function(){if(this instanceof e){var h=function(){};h.prototype=c.prototype;var h=new h,k=c.apply(h,d.concat(a.call(arguments)));return null!==k&&Object(k)===k?k:h}return c.apply(b,d.concat(a.call(arguments)))};
return e};var h=Function.prototype.call,f=Object.prototype,a=Array.prototype.slice,c=h.bind(f.toString),d=h.bind(f.hasOwnProperty),k,l,n,p,m;if(m=d(f,"__defineGetter__"))k=h.bind(f.__defineGetter__),l=h.bind(f.__defineSetter__),n=h.bind(f.__lookupGetter__),p=h.bind(f.__lookupSetter__);if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==c(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){var d=z(this),e=0,h=d.length>>>0;if("[object Function]"!=c(a))throw new TypeError;
for(;e<h;)e in d&&a.call(b,d[e],e,d),e++};if(!Array.prototype.map)Array.prototype.map=function(a,b){var d=z(this),e=d.length>>>0,h=Array(e);if("[object Function]"!=c(a))throw new TypeError;for(var k=0;k<e;k++)k in d&&(h[k]=a.call(b,d[k],k,d));return h};if(!Array.prototype.filter)Array.prototype.filter=function(a,b){var d=z(this),e=d.length>>>0,h=[];if("[object Function]"!=c(a))throw new TypeError;for(var k=0;k<e;k++)k in d&&a.call(b,d[k],k,d)&&h.push(d[k]);return h};if(!Array.prototype.every)Array.prototype.every=
function(a,b){var d=z(this),e=d.length>>>0;if("[object Function]"!=c(a))throw new TypeError;for(var h=0;h<e;h++)if(h in d&&!a.call(b,d[h],h,d))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var d=z(this),e=d.length>>>0;if("[object Function]"!=c(a))throw new TypeError;for(var h=0;h<e;h++)if(h in d&&a.call(b,d[h],h,d))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=z(this),d=b.length>>>0;if("[object Function]"!=c(a))throw new TypeError;
if(!d&&1==arguments.length)throw new TypeError;var e=0,h;if(2<=arguments.length)h=arguments[1];else{do{if(e in b){h=b[e++];break}if(++e>=d)throw new TypeError;}while(1)}for(;e<d;e++)e in b&&(h=a.call(void 0,h,b[e],e,b));return h};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var b=z(this),d=b.length>>>0;if("[object Function]"!=c(a))throw new TypeError;if(!d&&1==arguments.length)throw new TypeError;var e,d=d-1;if(2<=arguments.length)e=arguments[1];else{do{if(d in b){e=b[d--];
break}if(0>--d)throw new TypeError;}while(1)}do d in this&&(e=a.call(void 0,e,b[d],d,b));while(d--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=z(this),c=b.length>>>0;if(!c)return-1;var d=0;1<arguments.length&&(d=y(arguments[1]));for(d=0<=d?d:Math.max(0,c+d);d<c;d++)if(d in b&&b[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=z(this),c=b.length>>>0;if(!c)return-1;var d=c-1;1<arguments.length&&(d=Math.min(d,
y(arguments[1])));for(d=0<=d?d:c-Math.abs(d);0<=d;d--)if(d in b&&a===b[d])return d;return-1};if(!Object.getPrototypeOf)Object.getPrototypeOf=function(a){return a.__proto__||(a.constructor?a.constructor.prototype:f)};if(!Object.getOwnPropertyDescriptor)Object.getOwnPropertyDescriptor=function(a,b){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+a);if(d(a,b)){var c,e,h;c={enumerable:!0,configurable:!0};if(m){var k=
a.__proto__;a.__proto__=f;e=n(a,b);h=p(a,b);a.__proto__=k;if(e||h){if(e)c.get=e;if(h)c.set=h;return c}}c.value=a[b];return c}};if(!Object.getOwnPropertyNames)Object.getOwnPropertyNames=function(a){return Object.keys(a)};if(!Object.create)Object.create=function(a,b){var c;if(null===a)c={__proto__:null};else{if("object"!=typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");c=function(){};c.prototype=a;c=new c;c.__proto__=a}void 0!==b&&Object.defineProperties(c,b);return c};if(Object.defineProperty){var h=
b({}),o="undefined"==typeof document||b(document.createElement("div"));if(!h||!o)var e=Object.defineProperty}if(!Object.defineProperty||e)Object.defineProperty=function(a,b,c){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.defineProperty called on non-object: "+a);if("object"!=typeof c&&"function"!=typeof c||null===c)throw new TypeError("Property description must be an object: "+c);if(e)try{return e.call(Object,a,b,c)}catch(h){}if(d(c,"value"))if(m&&(n(a,b)||p(a,
b))){var q=a.__proto__;a.__proto__=f;delete a[b];a[b]=c.value;a.__proto__=q}else a[b]=c.value;else{if(!m)throw new TypeError("getters & setters can not be defined on this javascript engine");d(c,"get")&&k(a,b,c.get);d(c,"set")&&l(a,b,c.set)}return a};if(!Object.defineProperties)Object.defineProperties=function(a,b){for(var c in b)d(b,c)&&Object.defineProperty(a,c,b[c]);return a};if(!Object.seal)Object.seal=function(a){return a};if(!Object.freeze)Object.freeze=function(a){return a};try{Object.freeze(function(){})}catch(w){Object.freeze=
function(a){return function(b){return"function"==typeof b?b:a(b)}}(Object.freeze)}if(!Object.preventExtensions)Object.preventExtensions=function(a){return a};if(!Object.isSealed)Object.isSealed=function(){return!1};if(!Object.isFrozen)Object.isFrozen=function(){return!1};if(!Object.isExtensible)Object.isExtensible=function(a){if(Object(a)===a)throw new TypeError;for(var b="";d(a,b);)b+="?";a[b]=!0;var c=d(a,b);delete a[b];return c};if(!Object.keys){var v=!0,s="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),
q=s.length,r;for(r in{toString:null})v=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],c;for(c in a)d(a,c)&&b.push(c);if(v)for(c=0;c<q;c++){var e=s[c];d(a,e)&&b.push(e)}return b}}if(!Date.prototype.toISOString||-1===(new Date(-621987552E5)).toISOString().indexOf("-000001"))Date.prototype.toISOString=function(){var a,b,c,d;if(!isFinite(this))throw new RangeError;a=[this.getUTCMonth()+1,this.getUTCDate(),
this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];d=this.getUTCFullYear();d=(0>d?"-":9999<d?"+":"")+("00000"+Math.abs(d)).slice(0<=d&&9999>=d?-4:-6);for(b=a.length;b--;)c=a[b],10>c&&(a[b]="0"+c);return d+"-"+a.slice(0,2).join("-")+"T"+a.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};
864E13!==Date.parse("+275760-09-13T00:00:00.000Z")&&(Date=function(a){var b=function L(b,c,d,e,h,k,f){var l=arguments.length;return this instanceof a?(l=1==l&&""+b===b?new a(L.parse(b)):7<=l?new a(b,c,d,e,h,k,f):6<=l?new a(b,c,d,e,h,k):5<=l?new a(b,c,d,e,h):4<=l?new a(b,c,d,e):3<=l?new a(b,c,d):2<=l?new a(b,c):1<=l?new a(b):new a,l.constructor=L,l):a.apply(this,arguments)},c=RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d{3}))?)?(?:Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),
d;for(d in a)b[d]=a[d];b.now=a.now;b.UTC=a.UTC;b.prototype=a.prototype;b.prototype.constructor=b;b.parse=function(b){var d=c.exec(b);if(d){d.shift();for(var g=1;7>g;g++)d[g]=+(d[g]||(3>g?1:0)),1==g&&d[g]--;var e=+d.pop(),h=+d.pop(),k=d.pop(),g=0;if(k){if(23<h||59<e)return NaN;g=6E4*(60*h+e)*("+"==k?-1:1)}e=+d[0];return 0<=e&&99>=e?(d[0]=e+400,a.UTC.apply(this,d)+g-126227808E5):a.UTC.apply(this,d)+g}return a.parse.apply(this,arguments)};return b}(Date));r="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";
if(!String.prototype.trim||r.trim()){r="["+r+"]";var u=RegExp("^"+r+r+"*"),x=RegExp(r+r+"*$");String.prototype.trim=function(){return(""+this).replace(u,"").replace(x,"")}}var y=function(a){a=+a;a!==a?a=0:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},E="a"!="a"[0],z=function(a){if(null==a)throw new TypeError;return E&&"string"==typeof a&&a?a.split(""):Object(a)}});
(function(b,h){function f(j){return g.isWindow(j)?j:9===j.nodeType?j.defaultView||j.parentWindow:!1}function a(j){if(!sa[j]){var a=t.body,b=g("<"+j+">").appendTo(a),c=b.css("display");b.remove();if("none"===c||""===c){P||(P=t.createElement("iframe"),P.frameBorder=P.width=P.height=0);a.appendChild(P);if(!Z||!P.createElement)Z=(P.contentWindow||P.contentDocument).document,Z.write(("CSS1Compat"===t.compatMode?"<!doctype html>":"")+"<html><body>"),Z.close();b=Z.createElement(j);Z.body.appendChild(b);
c=g.css(b,"display");a.removeChild(P)}sa[j]=c}return sa[j]}function c(j,a){var b={};g.each(Ba.concat.apply([],Ba.slice(0,a)),function(){b[this]=j});return b}function d(){ja=h}function k(){setTimeout(d,0);return ja=g.now()}function l(){try{return new b.XMLHttpRequest}catch(j){}}function n(j,a,b,c){if(g.isArray(a))g.each(a,function(a,A){b||Xa.test(j)?c(j,A):n(j+"["+("object"==typeof A||g.isArray(A)?a:"")+"]",A,b,c)});else if(!b&&null!=a&&"object"==typeof a)for(var d in a)n(j+"["+d+"]",a[d],b,c);else c(j,
a)}function p(j,a){var b,c,d=g.ajaxSettings.flatOptions||{};for(b in a)a[b]!==h&&((d[b]?j:c||(c={}))[b]=a[b]);c&&g.extend(!0,j,c)}function m(j,a,b,c,d,g){d=d||a.dataTypes[0];g=g||{};g[d]=!0;for(var d=j[d],e=0,k=d?d.length:0,f=j===ta,l;e<k&&(f||!l);e++)l=d[e](a,b,c),"string"==typeof l&&(!f||g[l]?l=h:(a.dataTypes.unshift(l),l=m(j,a,b,c,l,g)));(f||!l)&&!g["*"]&&(l=m(j,a,b,c,"*",g));return l}function o(j){return function(a,b){"string"!=typeof a&&(b=a,a="*");if(g.isFunction(b))for(var c=a.toLowerCase().split(Ca),
d=0,e=c.length,h,k,f;d<e;d++)h=c[d],f=/^\+/.test(h),f&&(h=h.substr(1)||"*"),k=j[h]=j[h]||[],k[f?"unshift":"push"](b)}}function e(j,a,b){var c="width"===a?j.offsetWidth:j.offsetHeight,d="width"===a?Ya:Za,e=0,h=d.length;if(0<c){if("border"!==b)for(;e<h;e++)b||(c-=parseFloat(g.css(j,"padding"+d[e]))||0),"margin"===b?c+=parseFloat(g.css(j,b+d[e]))||0:c-=parseFloat(g.css(j,"border"+d[e]+"Width"))||0;return c+"px"}c=aa(j,a,a);if(0>c||null==c)c=j.style[a]||0;c=parseFloat(c)||0;if(b)for(;e<h;e++)c+=parseFloat(g.css(j,
"padding"+d[e]))||0,"padding"!==b&&(c+=parseFloat(g.css(j,"border"+d[e]+"Width"))||0),"margin"===b&&(c+=parseFloat(g.css(j,b+d[e]))||0);return c+"px"}function w(j,a){a.src?g.ajax({url:a.src,async:!1,dataType:"script"}):g.globalEval((a.text||a.textContent||a.innerHTML||"").replace($a,"/*$0*/"));a.parentNode&&a.parentNode.removeChild(a)}function v(j){var a=(j.nodeName||"").toLowerCase();"input"===a?s(j):"script"!==a&&"undefined"!=typeof j.getElementsByTagName&&g.grep(j.getElementsByTagName("input"),
s)}function s(j){if("checkbox"===j.type||"radio"===j.type)j.defaultChecked=j.checked}function q(j){return"undefined"!=typeof j.getElementsByTagName?j.getElementsByTagName("*"):"undefined"!=typeof j.querySelectorAll?j.querySelectorAll("*"):[]}function r(j,a){var b;if(1===a.nodeType){a.clearAttributes&&a.clearAttributes();a.mergeAttributes&&a.mergeAttributes(j);b=a.nodeName.toLowerCase();if("object"===b)a.outerHTML=j.outerHTML;else if("input"!==b||"checkbox"!==j.type&&"radio"!==j.type)if("option"===
b)a.selected=j.defaultSelected;else{if("input"===b||"textarea"===b)a.defaultValue=j.defaultValue}else j.checked&&(a.defaultChecked=a.checked=j.checked),a.value!==j.value&&(a.value=j.value);a.removeAttribute(g.expando)}}function u(j,a){if(1===a.nodeType&&g.hasData(j)){var b,c,d;c=g._data(j);var e=g._data(a,c),h=c.events;if(h)for(b in delete e.handle,e.events={},h)for(c=0,d=h[b].length;c<d;c++)g.event.add(a,b+(h[b][c].namespace?".":"")+h[b][c].namespace,h[b][c],h[b][c].data);e.data&&(e.data=g.extend({},
e.data))}}function x(j){var a=Da.split("|"),j=j.createDocumentFragment();if(j.createElement)for(;a.length;)j.createElement(a.pop());return j}function y(j,a,b){a=a||0;if(g.isFunction(a))return g.grep(j,function(j,c){return!!a.call(j,c,j)===b});if(a.nodeType)return g.grep(j,function(j){return j===a===b});if("string"==typeof a){var c=g.grep(j,function(j){return 1===j.nodeType});if(ab.test(a))return g.filter(a,c,!b);a=g.filter(a,c)}return g.grep(j,function(j){return 0<=g.inArray(j,a)===b})}function E(){return!0}
function z(){return!1}function M(j,a,b){var c=a+"defer",d=a+"queue",e=a+"mark",h=g._data(j,c);h&&("queue"===b||!g._data(j,d))&&("mark"===b||!g._data(j,e))&&setTimeout(function(){!g._data(j,d)&&!g._data(j,e)&&(g.removeData(j,c,!0),h.fire())},0)}function H(j){for(var a in j)if(!("data"===a&&g.isEmptyObject(j[a]))&&"toJSON"!==a)return!1;return!0}function K(j,a,b){if(b===h&&1===j.nodeType)if(b="data-"+a.replace(qa,"-$1").toLowerCase(),b=j.getAttribute(b),"string"==typeof b){try{b="true"===b?!0:"false"===
b?!1:"null"===b?null:g.isNumeric(b)?parseFloat(b):ea.test(b)?g.parseJSON(b):b}catch(c){}g.data(j,a,b)}else b=h;return b}function D(j){var a=V[j]={},b,c,j=j.split(/\s+/);for(b=0,c=j.length;b<c;b++)a[j[b]]=!0;return a}var t=b.document,L=b.navigator,da=b.location,g=function(){function j(){if(!a.isReady){try{t.documentElement.doScroll("left")}catch(b){setTimeout(j,1);return}a.ready()}}var a=function(j,b){return new a.fn.init(j,b,g)},c=b.jQuery,d=b.$,g,e=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=/\S/,
f=/^\s+/,l=/\s+$/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,p=/(?:^|:|,)(?:\s*\[)+/g,o=/(webkit)[ \/]([\w.]+)/,u=/(opera)(?:.*version)?[ \/]([\w.]+)/,s=/(msie) ([\w.]+)/,F=/(mozilla)(?:.*? rv:([\w.]+))?/,J=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,j){return(j+"").toUpperCase()},v=L.userAgent,la,ma,ba,bb=Object.prototype.toString,va=Object.prototype.hasOwnProperty,wa=Array.prototype.push,
ga=Array.prototype.slice,Ea=String.prototype.trim,y=Array.prototype.indexOf,C={};a.fn=a.prototype={constructor:a,init:function(j,b,c){var d,g,k;if(!j)return this;if(j.nodeType)return this.context=this[0]=j,this.length=1,this;if("body"===j&&!b&&t.body)return this.context=t,this[0]=t.body,this.selector=j,this.length=1,this;if("string"==typeof j){"<"!==j.charAt(0)||">"!==j.charAt(j.length-1)||3>j.length?d=e.exec(j):d=[null,j,null];if(d&&(d[1]||!b)){if(d[1])return b=b instanceof a?b[0]:b,k=b?b.ownerDocument||
b:t,g=q.exec(j),g?a.isPlainObject(b)?(j=[t.createElement(g[1])],a.fn.attr.call(j,b,!0)):j=[k.createElement(g[1])]:(g=a.buildFragment([d[1]],[k]),j=(g.cacheable?a.clone(g.fragment):g.fragment).childNodes),a.merge(this,j);if((b=t.getElementById(d[2]))&&b.parentNode){if(b.id!==d[2])return c.find(j);this.length=1;this[0]=b}this.context=t;this.selector=j;return this}return!b||b.jquery?(b||c).find(j):this.constructor(b).find(j)}if(a.isFunction(j))return c.ready(j);j.selector!==h&&(this.selector=j.selector,
this.context=j.context);return a.makeArray(j,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return ga.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(j,b,c){var d=this.constructor();a.isArray(j)?wa.apply(d,j):a.merge(d,j);d.prevObject=this;d.context=this.context;"find"===b?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(j,
b){return a.each(this,j,b)},ready:function(j){a.bindReady();ma.add(j);return this},eq:function(j){j=+j;return-1===j?this.slice(j):this.slice(j,j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ga.apply(this,arguments),"slice",ga.call(arguments).join(","))},map:function(j){return this.pushStack(a.map(this,function(a,b){return j.call(a,b,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:wa,sort:[].sort,splice:[].splice};
a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var j,b,c,d,g,e,k=arguments[0]||{},B=1,N=arguments.length,f=!1;for("boolean"==typeof k&&(f=k,k=arguments[1]||{},B=2),"object"!=typeof k&&!a.isFunction(k)&&(k={}),N===B&&(k=this,--B);B<N;B++)if(null!=(j=arguments[B]))for(b in j)c=k[b],d=j[b],k!==d&&(f&&d&&(a.isPlainObject(d)||(g=a.isArray(d)))?(g?(g=!1,e=c&&a.isArray(c)?c:[]):e=c&&a.isPlainObject(c)?c:{},k[b]=a.extend(f,e,d)):d!==h&&(k[b]=d));return k};a.extend({noConflict:function(j){b.$===
a&&(b.$=d);j&&b.jQuery===a&&(b.jQuery=c);return a},isReady:!1,readyWait:1,holdReady:function(j){j?a.readyWait++:a.ready(!0)},ready:function(j){if(!0===j&&!--a.readyWait||!0!==j&&!a.isReady){if(!t.body)return setTimeout(a.ready,1);a.isReady=!0;!0!==j&&0<--a.readyWait||(ma.fireWith(t,[a]),a.fn.trigger&&a(t).trigger("ready").off("ready"))}},bindReady:function(){if(!ma){ma=a.Callbacks("once memory");if("complete"===t.readyState)return setTimeout(a.ready,1);if(t.addEventListener)t.addEventListener("DOMContentLoaded",
ba,!1),b.addEventListener("load",a.ready,!1);else if(t.attachEvent){t.attachEvent("onreadystatechange",ba);b.attachEvent("onload",a.ready);var c=!1;try{c=null==b.frameElement}catch(d){}t.documentElement.doScroll&&c&&j()}}},isFunction:function(j){return"function"===a.type(j)},isArray:Array.isArray||function(j){return"array"===a.type(j)},isWindow:function(j){return j&&"object"==typeof j&&"setInterval"in j},isNumeric:function(j){return!isNaN(parseFloat(j))&&isFinite(j)},type:function(j){return null==
j?""+j:C[bb.call(j)]||"object"},isPlainObject:function(j){if(!j||"object"!==a.type(j)||j.nodeType||a.isWindow(j))return!1;try{if(j.constructor&&!va.call(j,"constructor")&&!va.call(j.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var c in j);return c===h||va.call(j,c)},isEmptyObject:function(j){for(var a in j)return!1;return!0},error:function(j){throw Error(j);},parseJSON:function(j){if("string"!=typeof j||!j)return null;j=a.trim(j);if(b.JSON&&b.JSON.parse)return b.JSON.parse(j);
if(n.test(j.replace(r,"@").replace(m,"]").replace(p,"")))return(new Function("return "+j))();a.error("Invalid JSON: "+j)},parseXML:function(j){var c,d;try{b.DOMParser?(d=new DOMParser,c=d.parseFromString(j,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(j))}catch(g){c=h}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&a.error("Invalid XML: "+j);return c},noop:function(){},globalEval:function(j){j&&k.test(j)&&(b.execScript||function(j){b.eval.call(b,
j)})(j)},camelCase:function(j){return j.replace(w,"ms-").replace(J,x)},nodeName:function(j,a){return j.nodeName&&j.nodeName.toUpperCase()===a.toUpperCase()},each:function(j,b,c){var d,g=0,e=j.length,k=e===h||a.isFunction(j);if(c)if(k)for(d in j){if(!1===b.apply(j[d],c))break}else for(;g<e&&!(!1===b.apply(j[g++],c)););else if(k)for(d in j){if(!1===b.call(j[d],d,j[d]))break}else for(;g<e&&!(!1===b.call(j[g],g,j[g++])););return j},trim:Ea?function(j){return null==j?"":Ea.call(j)}:function(j){return null==
j?"":(j+"").replace(f,"").replace(l,"")},makeArray:function(j,b){var c=b||[];if(null!=j){var d=a.type(j);null==j.length||"string"===d||"function"===d||"regexp"===d||a.isWindow(j)?wa.call(c,j):a.merge(c,j)}return c},inArray:function(j,a,b){var c;if(a){if(y)return y.call(a,j,b);for(c=a.length,b=b?0>b?Math.max(0,c+b):b:0;b<c;b++)if(b in a&&a[b]===j)return b}return-1},merge:function(j,a){var b=j.length,c=0;if("number"==typeof a.length)for(var d=a.length;c<d;c++)j[b++]=a[c];else for(;a[c]!==h;)j[b++]=
a[c++];j.length=b;return j},grep:function(j,a,b){for(var c=[],d,b=!!b,g=0,A=j.length;g<A;g++)d=!!a(j[g],g),b!==d&&c.push(j[g]);return c},map:function(j,b,c){var d,g,e=[],k=0,B=j.length;if(j instanceof a||B!==h&&"number"==typeof B&&(0<B&&j[0]&&j[B-1]||0===B||a.isArray(j)))for(;k<B;k++)d=b(j[k],k,c),null!=d&&(e[e.length]=d);else for(g in j)d=b(j[g],g,c),null!=d&&(e[e.length]=d);return e.concat.apply([],e)},guid:1,proxy:function(j,b){if("string"==typeof b){var c=j[b];b=j;j=c}if(!a.isFunction(j))return h;
var d=ga.call(arguments,2),c=function(){return j.apply(b,d.concat(ga.call(arguments)))};c.guid=j.guid=j.guid||c.guid||a.guid++;return c},access:function(j,b,c,d,g,e){var k=j.length;if("object"==typeof b){for(var B in b)a.access(j,B,b[B],d,g,c);return j}if(c!==h){d=!e&&d&&a.isFunction(c);for(B=0;B<k;B++)g(j[B],b,d?c.call(j[B],B,g(j[B],b)):c,e);return j}return k?g(j[0],b):h},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=o.exec(j)||u.exec(j)||s.exec(j)||0>j.indexOf("compatible")&&
F.exec(j)||[];return{browser:j[1]||"",version:j[2]||"0"}},sub:function(){function j(a,b){return new j.fn.init(a,b)}a.extend(!0,j,this);j.superclass=this;j.fn=j.prototype=this();j.fn.constructor=j;j.sub=this.sub;j.fn.init=function(c,d){d&&d instanceof a&&!(d instanceof j)&&(d=j(d));return a.fn.init.call(this,c,d,b)};j.fn.init.prototype=j.fn;var b=j(t);return j},browser:{}});a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,a){C["[object "+a+"]"]=a.toLowerCase()});
la=a.uaMatch(v);la.browser&&(a.browser[la.browser]=!0,a.browser.version=la.version);a.browser.webkit&&(a.browser.safari=!0);k.test("\u00a0")&&(f=/^[\s\xA0]+/,l=/[\s\xA0]+$/);g=a(t);t.addEventListener?ba=function(){t.removeEventListener("DOMContentLoaded",ba,!1);a.ready()}:t.attachEvent&&(ba=function(){"complete"===t.readyState&&(t.detachEvent("onreadystatechange",ba),a.ready())});return a}(),V={};g.Callbacks=function(j){var j=j?V[j]||D(j):{},a=[],b=[],c,d,e,k,f,l=function(b){var c,d,e,h;for(c=0,d=
b.length;c<d;c++)e=b[c],h=g.type(e),"array"===h?l(e):"function"===h&&(!j.unique||!n.has(e))&&a.push(e)},q=function(g,h){for(h=h||[],c=!j.memory||[g,h],d=!0,f=e||0,e=0,k=a.length;a&&f<k;f++)if(!1===a[f].apply(g,h)&&j.stopOnFalse){c=!0;break}d=!1;a&&(j.once?!0===c?n.disable():a=[]:b&&b.length&&(c=b.shift(),n.fireWith(c[0],c[1])))},n={add:function(){if(a){var j=a.length;l(arguments);d?k=a.length:c&&!0!==c&&(e=j,q(c[0],c[1]))}return this},remove:function(){if(a)for(var b=arguments,c=0,g=b.length;c<g;c++)for(var e=
0;e<a.length&&!(b[c]===a[e]&&(d&&e<=k&&(k--,e<=f&&f--),a.splice(e--,1),j.unique));e++);return this},has:function(j){if(a)for(var b=0,c=a.length;b<c;b++)if(j===a[b])return!0;return!1},empty:function(){a=[];return this},disable:function(){a=b=c=h;return this},disabled:function(){return!a},lock:function(){b=h;(!c||!0===c)&&n.disable();return this},locked:function(){return!b},fireWith:function(a,g){b&&(d?j.once||b.push([a,g]):(!j.once||!c)&&q(a,g));return this},fire:function(){n.fireWith(this,arguments);
return this},fired:function(){return!!c}};return n};var Q=[].slice;g.extend({Deferred:function(j){var a=g.Callbacks("once memory"),b=g.Callbacks("once memory"),c=g.Callbacks("memory"),d="pending",e={resolve:a,reject:b,notify:c},h={done:a.add,fail:b.add,progress:c.add,state:function(){return d},isResolved:a.fired,isRejected:b.fired,then:function(j,a,b){k.done(j).fail(a).progress(b);return this},always:function(){k.done.apply(k,arguments).fail.apply(k,arguments);return this},pipe:function(j,a,b){return g.Deferred(function(c){g.each({done:[j,
"resolve"],fail:[a,"reject"],progress:[b,"notify"]},function(j,a){var b=a[0],d=a[1],e;g.isFunction(b)?k[j](function(){e=b.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().then(c.resolve,c.reject,c.notify):c[d+"With"](this===k?c:this,[e])}):k[j](c[d])})}).promise()},promise:function(j){if(null==j)j=h;else for(var a in h)j[a]=h[a];return j}},k=h.promise({}),f;for(f in e)k[f]=e[f].fire,k[f+"With"]=e[f].fireWith;k.done(function(){d="resolved"},b.disable,c.lock).fail(function(){d="rejected"},
a.disable,c.lock);j&&j.call(k,k);return k},when:function(j){function a(j){return function(a){h[j]=1<arguments.length?Q.call(arguments,0):a;f.notifyWith(l,h)}}function b(j){return function(a){c[j]=1<arguments.length?Q.call(arguments,0):a;--k||f.resolveWith(f,c)}}var c=Q.call(arguments,0),d=0,e=c.length,h=Array(e),k=e,f=1>=e&&j&&g.isFunction(j.promise)?j:g.Deferred(),l=f.promise();if(1<e){for(;d<e;d++)c[d]&&c[d].promise&&g.isFunction(c[d].promise)?c[d].promise().then(b(d),f.reject,a(d)):--k;k||f.resolveWith(f,
c)}else f!==j&&f.resolveWith(f,e?[j]:[]);return l}});g.support=function(){var j,a,c,d,e,h,k,f,l,q,n,r,m=t.createElement("div");m.setAttribute("className","t");m.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";a=m.getElementsByTagName("*");c=m.getElementsByTagName("a")[0];if(!a||!a.length||!c)return{};d=t.createElement("select");e=d.appendChild(t.createElement("option"));h=m.getElementsByTagName("input")[0];j={leadingWhitespace:3===
m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(c.getAttribute("style")),hrefNormalized:"/a"===c.getAttribute("href"),opacity:/^0.55/.test(c.style.opacity),cssFloat:!!c.style.cssFloat,checkOn:"on"===h.value,optSelected:e.selected,getSetAttribute:"t"!==m.className,enctype:!!t.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==t.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,
focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};h.checked=!0;j.noCloneChecked=h.cloneNode(!0).checked;d.disabled=!0;j.optDisabled=!e.disabled;try{delete m.test}catch(p){j.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",function(){j.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick"));h=t.createElement("input");h.value="t";h.setAttribute("type","radio");j.radioValue="t"===h.value;
h.setAttribute("checked","checked");m.appendChild(h);f=t.createDocumentFragment();f.appendChild(m.lastChild);j.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked;j.appendChecked=h.checked;f.removeChild(h);f.appendChild(m);m.innerHTML="";b.getComputedStyle&&(k=t.createElement("div"),k.style.width="0",k.style.marginRight="0",m.style.width="2px",m.appendChild(k),j.reliableMarginRight=0===(parseInt((b.getComputedStyle(k,null)||{marginRight:0}).marginRight,10)||0));if(m.attachEvent)for(n in{submit:1,
change:1,focusin:1})q="on"+n,r=q in m,r||(m.setAttribute(q,"return;"),r="function"==typeof m[q]),j[n+"Bubbles"]=r;f.removeChild(m);f=d=e=k=m=h=null;g(function(){var a,b,c,d,e,A=t.getElementsByTagName("body")[0];!A||(a=t.createElement("div"),a.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",A.insertBefore(a,A.firstChild),m=t.createElement("div"),a.appendChild(m),m.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",
l=m.getElementsByTagName("td"),r=0===l[0].offsetHeight,l[0].style.display="",l[1].style.display="none",j.reliableHiddenOffsets=r&&0===l[0].offsetHeight,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",g.boxModel=j.boxModel=2===m.offsetWidth,"undefined"!=typeof m.style.zoom&&(m.style.display="inline",m.style.zoom=1,j.inlineBlockNeedsLayout=2===m.offsetWidth,m.style.display="",m.innerHTML="<div style='width:4px;'></div>",j.shrinkWrapBlocks=2!==m.offsetWidth),m.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;",
m.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",b=m.firstChild,c=b.firstChild,d=b.nextSibling.firstChild.firstChild,e={doesNotAddBorder:5!==c.offsetTop,doesAddBorderForTableAndCells:5===d.offsetTop},c.style.position="fixed",c.style.top="20px",
e.fixedPosition=20===c.offsetTop||15===c.offsetTop,c.style.position=c.style.top="",b.style.overflow="hidden",b.style.position="relative",e.subtractsBorderForOverflowNotVisible=-5===c.offsetTop,e.doesNotIncludeMarginInBodyOffset=1!==A.offsetTop,A.removeChild(a),m=null,g.extend(j,e))});return j}();var ea=/^(?:\{.*\}|\[.*\])$/,qa=/([A-Z])/g;g.extend({cache:{},uuid:0,expando:"jQuery"+(g.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},
hasData:function(j){j=j.nodeType?g.cache[j[g.expando]]:j[g.expando];return!!j&&!H(j)},data:function(j,a,b,c){if(g.acceptData(j)){var d,e,k=g.expando,f="string"==typeof a,l=j.nodeType,q=l?g.cache:j,m=l?j[k]:j[k]&&k,n="events"===a;if(m&&q[m]&&(n||c||q[m].data)||!(f&&b===h)){m||(l?j[k]=m=++g.uuid:m=k);q[m]||(q[m]={},l||(q[m].toJSON=g.noop));if("object"==typeof a||"function"==typeof a)c?q[m]=g.extend(q[m],a):q[m].data=g.extend(q[m].data,a);j=d=q[m];c||(d.data||(d.data={}),d=d.data);b!==h&&(d[g.camelCase(a)]=
b);if(n&&!d[a])return j.events;f?(e=d[a],null==e&&(e=d[g.camelCase(a)])):e=d;return e}}},removeData:function(j,a,b){if(g.acceptData(j)){var c,d,e,h=g.expando,k=j.nodeType,f=k?g.cache:j,l=k?j[h]:h;if(f[l]){if(a&&(c=b?f[l]:f[l].data)){g.isArray(a)||(a in c?a=[a]:(a=g.camelCase(a),a in c?a=[a]:a=a.split(" ")));for(d=0,e=a.length;d<e;d++)delete c[a[d]];if(!(b?H:g.isEmptyObject)(c))return}if(!b&&(delete f[l].data,!H(f[l])))return;g.support.deleteExpando||!f.setInterval?delete f[l]:f[l]=null;k&&(g.support.deleteExpando?
delete j[h]:j.removeAttribute?j.removeAttribute(h):j[h]=null)}}},_data:function(j,a,b){return g.data(j,a,b,!0)},acceptData:function(j){if(j.nodeName){var a=g.noData[j.nodeName.toLowerCase()];if(a)return!0!==a&&j.getAttribute("classid")===a}return!0}});g.fn.extend({data:function(j,a){var b,c,d,e=null;if("undefined"==typeof j){if(this.length&&(e=g.data(this[0]),1===this[0].nodeType&&!g._data(this[0],"parsedAttrs"))){c=this[0].attributes;for(var k=0,f=c.length;k<f;k++)d=c[k].name,0===d.indexOf("data-")&&
(d=g.camelCase(d.substring(5)),K(this[0],d,e[d]));g._data(this[0],"parsedAttrs",!0)}return e}if("object"==typeof j)return this.each(function(){g.data(this,j)});b=j.split(".");b[1]=b[1]?"."+b[1]:"";return a===h?(e=this.triggerHandler("getData"+b[1]+"!",[b[0]]),e===h&&this.length&&(e=g.data(this[0],j),e=K(this[0],j,e)),e===h&&b[1]?this.data(b[0]):e):this.each(function(){var c=g(this),d=[b[0],a];c.triggerHandler("setData"+b[1]+"!",d);g.data(this,j,a);c.triggerHandler("changeData"+b[1]+"!",d)})},removeData:function(j){return this.each(function(){g.removeData(this,
j)})}});g.extend({_mark:function(j,a){j&&(a=(a||"fx")+"mark",g._data(j,a,(g._data(j,a)||0)+1))},_unmark:function(j,a,b){!0!==j&&(b=a,a=j,j=!1);if(a){var b=b||"fx",c=b+"mark";(j=j?0:(g._data(a,c)||1)-1)?g._data(a,c,j):(g.removeData(a,c,!0),M(a,b,"mark"))}},queue:function(j,a,b){var c;if(j)return a=(a||"fx")+"queue",c=g._data(j,a),b&&(!c||g.isArray(b)?c=g._data(j,a,g.makeArray(b)):c.push(b)),c||[]},dequeue:function(j,a){var a=a||"fx",b=g.queue(j,a),c=b.shift(),d={};"inprogress"===c&&(c=b.shift());c&&
("fx"===a&&b.unshift("inprogress"),g._data(j,a+".run",d),c.call(j,function(){g.dequeue(j,a)},d));b.length||(g.removeData(j,a+"queue "+a+".run",!0),M(j,a,"queue"))}});g.fn.extend({queue:function(j,a){"string"!=typeof j&&(a=j,j="fx");return a===h?g.queue(this[0],j):this.each(function(){var b=g.queue(this,j,a);"fx"===j&&"inprogress"!==b[0]&&g.dequeue(this,j)})},dequeue:function(j){return this.each(function(){g.dequeue(this,j)})},delay:function(j,a){j=g.fx?g.fx.speeds[j]||j:j;a=a||"fx";return this.queue(a,
function(a,b){var c=setTimeout(a,j);b.stop=function(){clearTimeout(c)}})},clearQueue:function(j){return this.queue(j||"fx",[])},promise:function(j){function a(){--e||b.resolveWith(c,[c])}"string"!=typeof j&&(j=h);j=j||"fx";for(var b=g.Deferred(),c=this,d=c.length,e=1,k=j+"defer",f=j+"queue",j=j+"mark",l;d--;)if(l=g.data(c[d],k,h,!0)||(g.data(c[d],f,h,!0)||g.data(c[d],j,h,!0))&&g.data(c[d],k,g.Callbacks("once memory"),!0))e++,l.add(a);a();return b.promise()}});var Y=/[\n\t\r]/g,S=/\s+/,fa=/\r/g,ra=
/^(?:button|input)$/i,ha=/^(?:button|input|object|select|textarea)$/i,pa=/^a(?:rea)?$/i,F=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=g.support.getSetAttribute,C,T,ia;g.fn.extend({attr:function(j,a){return g.access(this,j,a,!0,g.attr)},removeAttr:function(j){return this.each(function(){g.removeAttr(this,j)})},prop:function(j,a){return g.access(this,j,a,!0,g.prop)},removeProp:function(j){j=g.propFix[j]||j;return this.each(function(){try{this[j]=
h,delete this[j]}catch(a){}})},addClass:function(j){var a,b,c,d,e,h,k;if(g.isFunction(j))return this.each(function(a){g(this).addClass(j.call(this,a,this.className))});if(j&&"string"==typeof j){a=j.split(S);for(b=0,c=this.length;b<c;b++)if(d=this[b],1===d.nodeType)if(!d.className&&1===a.length)d.className=j;else{e=" "+d.className+" ";for(h=0,k=a.length;h<k;h++)~e.indexOf(" "+a[h]+" ")||(e+=a[h]+" ");d.className=g.trim(e)}}return this},removeClass:function(j){var a,b,c,d,e,k,f;if(g.isFunction(j))return this.each(function(a){g(this).removeClass(j.call(this,
a,this.className))});if(j&&"string"==typeof j||j===h){a=(j||"").split(S);for(b=0,c=this.length;b<c;b++)if(d=this[b],1===d.nodeType&&d.className)if(j){e=(" "+d.className+" ").replace(Y," ");for(k=0,f=a.length;k<f;k++)e=e.replace(" "+a[k]+" "," ");d.className=g.trim(e)}else d.className=""}return this},toggleClass:function(j,a){var b=typeof j,c="boolean"==typeof a;return g.isFunction(j)?this.each(function(b){g(this).toggleClass(j.call(this,b,this.className,a),a)}):this.each(function(){if("string"===
b)for(var d,e=0,h=g(this),k=a,f=j.split(S);d=f[e++];)k=c?k:!h.hasClass(d),h[k?"addClass":"removeClass"](d);else if("undefined"===b||"boolean"===b)this.className&&g._data(this,"__className__",this.className),this.className=this.className||!1===j?"":g._data(this,"__className__")||""})},hasClass:function(j){for(var j=" "+j+" ",a=0,b=this.length;a<b;a++)if(1===this[a].nodeType&&-1<(" "+this[a].className+" ").replace(Y," ").indexOf(j))return!0;return!1},val:function(j){var a,b,c,d=this[0];if(arguments.length)return c=
g.isFunction(j),this.each(function(b){var d=g(this),e;if(1===this.nodeType&&(c?e=j.call(this,b,d.val()):e=j,null==e?e="":"number"==typeof e?e+="":g.isArray(e)&&(e=g.map(e,function(a){return null==a?"":a+""})),a=g.valHooks[this.nodeName.toLowerCase()]||g.valHooks[this.type],!a||!("set"in a)||a.set(this,e,"value")===h))this.value=e});if(d){if((a=g.valHooks[d.nodeName.toLowerCase()]||g.valHooks[d.type])&&"get"in a&&(b=a.get(d,"value"))!==h)return b;b=d.value;return"string"==typeof b?b.replace(fa,""):
null==b?"":b}}});g.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d=a.selectedIndex,e=[],h=a.options,k="select-one"===a.type;if(0>d)return null;for(a=k?d:0,c=k?d+1:h.length;a<c;a++)if(b=h[a],b.selected&&(g.support.optDisabled?!b.disabled:null===b.getAttribute("disabled"))&&(!b.parentNode.disabled||!g.nodeName(b.parentNode,"optgroup"))){b=g(b).val();if(k)return b;e.push(b)}return k&&!e.length&&h.length?g(h[d]).val():
e},set:function(a,b){var c=g.makeArray(b);g(a).find("option").each(function(){this.selected=0<=g.inArray(g(this).val(),c)});c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,c,d){var e,k,f,l=a.nodeType;if(a&&3!==l&&8!==l&&2!==l){if(d&&b in g.attrFn)return g(a)[b](c);if("undefined"==typeof a.getAttribute)return g.prop(a,b,c);f=1!==l||!g.isXMLDoc(a);f&&(b=b.toLowerCase(),k=g.attrHooks[b]||(F.test(b)?T:C));if(c!==
h){if(null===c){g.removeAttr(a,b);return}if(k&&"set"in k&&f&&(e=k.set(a,c,b))!==h)return e;a.setAttribute(b,""+c);return c}if(k&&"get"in k&&f&&null!==(e=k.get(a,b)))return e;e=a.getAttribute(b);return null===e?h:e}},removeAttr:function(a,b){var c,d,e,h,k=0;if(b&&1===a.nodeType)for(d=b.toLowerCase().split(S),h=d.length;k<h;k++)e=d[k],e&&(c=g.propFix[e]||e,g.attr(a,e,""),a.removeAttribute(J?e:c),F.test(e)&&c in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(ra.test(a.nodeName)&&a.parentNode)g.error("type property can't be changed");
else if(!g.support.radioValue&&"radio"===b&&g.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);c&&(a.value=c);return b}}},value:{get:function(a,b){return C&&g.nodeName(a,"button")?C.get(a,b):b in a?a.value:null},set:function(a,b,c){if(C&&g.nodeName(a,"button"))return C.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",
frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var d,e,k,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return k=1!==f||!g.isXMLDoc(a),k&&(b=g.propFix[b]||b,e=g.propHooks[b]),c!==h?e&&"set"in e&&(d=e.set(a,c,b))!==h?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):ha.test(a.nodeName)||pa.test(a.nodeName)&&a.href?0:h}}}});g.attrHooks.tabindex=g.propHooks.tabIndex;
T={get:function(a,b){var c,d=g.prop(a,b);return!0===d||"boolean"!=typeof d&&(c=a.getAttributeNode(b))&&!1!==c.nodeValue?b.toLowerCase():h},set:function(a,b,c){var d;!1===b?g.removeAttr(a,c):(d=g.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}};J||(ia={name:!0,id:!0},C=g.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(ia[b]?""!==c.nodeValue:c.specified)?c.nodeValue:h},set:function(a,b,c){var d=a.getAttributeNode(c);d||(d=t.createAttribute(c),
a.setAttributeNode(d));return d.nodeValue=b+""}},g.attrHooks.tabindex.set=C.set,g.each(["width","height"],function(a,b){g.attrHooks[b]=g.extend(g.attrHooks[b],{set:function(a,j){if(""===j)return a.setAttribute(b,"auto"),j}})}),g.attrHooks.contenteditable={get:C.get,set:function(a,b,c){""===b&&(b="false");C.set(a,b,c)}});g.support.hrefNormalized||g.each(["href","src","width","height"],function(a,b){g.attrHooks[b]=g.extend(g.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return null===a?h:a}})});
g.support.style||(g.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||h},set:function(a,b){return a.style.cssText=""+b}});g.support.optSelected||(g.propHooks.selected=g.extend(g.propHooks.selected,{get:function(){return null}}));g.support.enctype||(g.propFix.enctype="encoding");g.support.checkOn||g.each(["radio","checkbox"],function(){g.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});g.each(["radio","checkbox"],function(){g.valHooks[this]=
g.extend(g.valHooks[this],{set:function(a,b){if(g.isArray(b))return a.checked=0<=g.inArray(g(a).val(),b)}})});var xa=/^(?:textarea|input|select)$/i,O=/^([^\.]*)?(?:\.(.+))?$/,cb=/\bhover(\.\S+)?\b/,db=/^key/,R=/^(?:mouse|contextmenu)|click/,Fa=/^(?:focusinfocus|focusoutblur)$/,eb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,fb=function(a){(a=eb.exec(a))&&(a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)"));return a},Ga=function(a){return g.event.special.hover?a:a.replace(cb,
"mouseenter$1 mouseleave$1")};g.event={add:function(a,b,c,d,e){var k,f,l,q,m,n,r,p,o,u;if(!(3===a.nodeType||8===a.nodeType||!b||!c||!(k=g._data(a)))){c.handler&&(p=c,c=p.handler);c.guid||(c.guid=g.guid++);l=k.events;l||(k.events=l={});f=k.handle;f||(k.handle=f=function(a){return"undefined"!=typeof g&&(!a||g.event.triggered!==a.type)?g.event.dispatch.apply(f.elem,arguments):h},f.elem=a);b=g.trim(Ga(b)).split(" ");for(k=0;k<b.length;k++){q=O.exec(b[k])||[];m=q[1];n=(q[2]||"").split(".").sort();u=g.event.special[m]||
{};m=(e?u.delegateType:u.bindType)||m;u=g.event.special[m]||{};r=g.extend({type:m,origType:q[1],data:d,handler:c,guid:c.guid,selector:e,quick:fb(e),namespace:n.join(".")},p);o=l[m];if(!o&&(o=l[m]=[],o.delegateCount=0,!u.setup||!1===u.setup.call(a,d,n,f)))a.addEventListener?a.addEventListener(m,f,!1):a.attachEvent&&a.attachEvent("on"+m,f);u.add&&(u.add.call(a,r),r.handler.guid||(r.handler.guid=c.guid));e?o.splice(o.delegateCount++,0,r):o.push(r);g.event.global[m]=!0}a=null}},global:{},remove:function(a,
b,c,d,e){var h=g.hasData(a)&&g._data(a),k,f,l,q,m,n,r,p,o,u,s,F;if(h&&(p=h.events)){b=g.trim(Ga(b||"")).split(" ");for(k=0;k<b.length;k++)if(f=O.exec(b[k])||[],l=q=f[1],m=f[2],l){o=g.event.special[l]||{};l=(d?o.delegateType:o.bindType)||l;s=p[l]||[];n=s.length;m=m?RegExp("(^|\\.)"+m.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(r=0;r<s.length;r++)F=s[r],(e||q===F.origType)&&(!c||c.guid===F.guid)&&(!m||m.test(F.namespace))&&(!d||d===F.selector||"**"===d&&F.selector)&&(s.splice(r--,1),
F.selector&&s.delegateCount--,o.remove&&o.remove.call(a,F));0===s.length&&n!==s.length&&((!o.teardown||!1===o.teardown.call(a,m))&&g.removeEvent(a,l,h.handle),delete p[l])}else for(l in p)g.event.remove(a,l+b[k],c,d,!0);g.isEmptyObject(p)&&(u=h.handle,u&&(u.elem=null),g.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,c,d,e){if(!d||3!==d.nodeType&&8!==d.nodeType){var k=a.type||a,f=[],l,q,m,n,r,p,o;if(!Fa.test(k+g.event.triggered)&&(0<=k.indexOf("!")&&
(k=k.slice(0,-1),l=!0),0<=k.indexOf(".")&&(f=k.split("."),k=f.shift(),f.sort()),d&&!g.event.customEvent[k]||g.event.global[k]))if(a="object"==typeof a?a[g.expando]?a:new g.Event(k,a):new g.Event(k),a.type=k,a.isTrigger=!0,a.exclusive=l,a.namespace=f.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,f=0>k.indexOf(":")?"on"+k:"",d){if(a.result=h,a.target||(a.target=d),c=null!=c?g.makeArray(c):[],c.unshift(a),l=g.event.special[k]||{},!(l.trigger&&!1===l.trigger.apply(d,
c))){p=[[d,l.bindType||k]];if(!e&&!l.noBubble&&!g.isWindow(d)){for(o=l.delegateType||k,m=Fa.test(o+k)?d:d.parentNode,n=null;m;m=m.parentNode)p.push([m,o]),n=m;n&&n===d.ownerDocument&&p.push([n.defaultView||n.parentWindow||b,o])}for(q=0;q<p.length&&!a.isPropagationStopped();q++)m=p[q][0],a.type=p[q][1],r=(g._data(m,"events")||{})[a.type]&&g._data(m,"handle"),r&&r.apply(m,c),r=f&&m[f],r&&g.acceptData(m)&&!1===r.apply(m,c)&&a.preventDefault();a.type=k;!e&&!a.isDefaultPrevented()&&(!l._default||!1===
l._default.apply(d.ownerDocument,c))&&("click"!==k||!g.nodeName(d,"a"))&&g.acceptData(d)&&f&&d[k]&&("focus"!==k&&"blur"!==k||0!==a.target.offsetWidth)&&!g.isWindow(d)&&(n=d[f],n&&(d[f]=null),g.event.triggered=k,d[k](),g.event.triggered=h,n&&(d[f]=n));return a.result}}else for(q in d=g.cache,d)d[q].events&&d[q].events[k]&&g.event.trigger(a,c,d[q].handle.elem,!0)}},dispatch:function(a){var a=g.event.fix(a||b.event),c=(g._data(this,"events")||{})[a.type]||[],d=c.delegateCount,e=[].slice.call(arguments,
0),k=!a.exclusive&&!a.namespace,f=[],l,q,m,n,r,p,o,u,s;e[0]=a;a.delegateTarget=this;if(d&&!a.target.disabled&&(!a.button||"click"!==a.type)){m=g(this);m.context=this.ownerDocument||this;for(q=a.target;q!=this;q=q.parentNode||this){r={};o=[];m[0]=q;for(l=0;l<d;l++){u=c[l];s=u.selector;if(r[s]===h){var F=r,J=s,w;if(u.quick){w=u.quick;var t=q.attributes||{};w=(!w[1]||q.nodeName.toLowerCase()===w[1])&&(!w[2]||(t.id||{}).value===w[2])&&(!w[3]||w[3].test((t["class"]||{}).value))}else w=m.is(s);F[J]=w}r[s]&&
o.push(u)}o.length&&f.push({elem:q,matches:o})}}c.length>d&&f.push({elem:this,matches:c.slice(d)});for(l=0;l<f.length&&!a.isPropagationStopped();l++){p=f[l];a.currentTarget=p.elem;for(c=0;c<p.matches.length&&!a.isImmediatePropagationStopped();c++)if(u=p.matches[c],k||!a.namespace&&!u.namespace||a.namespace_re&&a.namespace_re.test(u.namespace))a.data=u.data,a.handleObj=u,n=((g.event.special[u.origType]||{}).handle||u.handler).apply(p.elem,e),n!==h&&(a.result=n,!1===n&&(a.preventDefault(),a.stopPropagation()))}return a.result},
props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,
g=b.button,k=b.fromElement;null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||t,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0));!a.relatedTarget&&k&&(a.relatedTarget=k===a.target?b.toElement:k);!a.which&&g!==h&&(a.which=g&1?1:g&2?3:g&4?2:0);return a}},fix:function(a){if(a[g.expando])return a;var b,c,d=a,e=g.event.fixHooks[a.type]||
{},k=e.props?this.props.concat(e.props):this.props,a=g.Event(d);for(b=k.length;b;)c=k[--b],a[c]=d[c];a.target||(a.target=d.srcElement||t);3===a.target.nodeType&&(a.target=a.target.parentNode);a.metaKey===h&&(a.metaKey=a.ctrlKey);return e.filter?e.filter(a,d):a},special:{ready:{setup:g.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){g.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===
b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){a=g.extend(new g.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?g.event.trigger(a,null,b):g.event.dispatch.call(b,a);a.isDefaultPrevented()&&c.preventDefault()}};g.event.handle=g.event.dispatch;g.removeEvent=t.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};g.Event=function(a,b){if(!(this instanceof g.Event))return new g.Event(a,b);a&&a.type?
(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?E:z):this.type=a;b&&g.extend(this,b);this.timeStamp=a&&a.timeStamp||g.now();this[g.expando]=!0};g.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E;this.stopPropagation()},isDefaultPrevented:z,isPropagationStopped:z,isImmediatePropagationStopped:z};g.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){g.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=a.relatedTarget,j=a.handleObj,d;if(!c||c!==this&&!g.contains(this,c))a.type=j.origType,d=j.handler.apply(this,arguments),a.type=b;return d}}});g.support.submitBubbles||
(g.event.special.submit={setup:function(){if(g.nodeName(this,"form"))return!1;g.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=g.nodeName(a,"input")||g.nodeName(a,"button")?a.form:h)&&!a._submit_attached&&(g.event.add(a,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&g.event.simulate("submit",this.parentNode,a,!0)}),a._submit_attached=!0)})},teardown:function(){if(g.nodeName(this,"form"))return!1;g.event.remove(this,"._submit")}});g.support.changeBubbles||(g.event.special.change=
{setup:function(){if(xa.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)g.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),g.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,g.event.simulate("change",this,a,!0))});return!1}g.event.add(this,"beforeactivate._change",function(a){a=a.target;xa.test(a.nodeName)&&!a._change_attached&&(g.event.add(a,"change._change",
function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&g.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){g.event.remove(this,"._change");return xa.test(this.nodeName)}});g.support.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){g.event.simulate(b,
a.target,g.event.fix(a),!0)};g.event.special[b]={setup:function(){0===c++&&t.addEventListener(a,d,!0)},teardown:function(){0===--c&&t.removeEventListener(a,d,!0)}}});g.fn.extend({on:function(a,b,c,d,e){var k,f;if("object"==typeof a){"string"!=typeof b&&(c=b,b=h);for(f in a)this.on(f,b,c,a[f],e);return this}null==c&&null==d?(d=b,c=b=h):null==d&&("string"==typeof b?(d=c,c=h):(d=c,c=b,b=h));if(!1===d)d=z;else if(!d)return this;1===e&&(k=d,d=function(a){g().off(a);return k.apply(this,arguments)},d.guid=
k.guid||(k.guid=g.guid++));return this.each(function(){g.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,b,c){if(a&&a.preventDefault&&a.handleObj){var d=a.handleObj;g(a.delegateTarget).off(d.namespace?d.type+"."+d.namespace:d.type,d.selector,d.handler);return this}if("object"==typeof a){for(d in a)this.off(d,b,a[d]);return this}if(!1===b||"function"==typeof b)c=b,b=h;!1===c&&(c=z);return this.each(function(){g.event.remove(this,a,c,b)})},bind:function(a,
b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){g(this.context).on(a,this.selector,b,c);return this},die:function(a,b){g(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1==arguments.length?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){g.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return g.event.trigger(a,
b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||g.guid++,d=0,e=function(c){var e=(g._data(this,"lastToggle"+a.guid)||0)%d;g._data(this,"lastToggle"+a.guid,e+1);c.preventDefault();return b[e].apply(this,arguments)||!1};for(e.guid=c;d<b.length;)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){g.fn[b]=function(a,c){null==c&&(c=a,a=null);return 0<arguments.length?this.on(b,null,a,c):this.trigger(b)};g.attrFn&&(g.attrFn[b]=!0);db.test(b)&&(g.event.fixHooks[b]=g.event.keyHooks);R.test(b)&&(g.event.fixHooks[b]=g.event.mouseHooks)});(function(){function a(b,c,j,e,g,k){for(var g=0,h=e.length;g<h;g++){var f=e[g];if(f){for(var l=!1,f=f[b];f;){if(f[d]===j){l=e[f.sizset];break}if(1===f.nodeType)if(k||(f[d]=j,f.sizset=g),"string"!=typeof c){if(f===c){l=!0;break}}else if(0<r.filter(c,
[f]).length){l=f;break}f=f[b]}e[g]=l}}}function b(a,c,j,e,g,k){for(var g=0,h=e.length;g<h;g++){var f=e[g];if(f){for(var l=!1,f=f[a];f;){if(f[d]===j){l=e[f.sizset];break}1===f.nodeType&&!k&&(f[d]=j,f.sizset=g);if(f.nodeName.toLowerCase()===c){l=f;break}f=f[a]}e[g]=l}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,k=Object.prototype.toString,f=!1,l=!0,q=/\\/g,
m=/\r\n/g,n=/\W/;[0,0].sort(function(){l=!1;return 0});var r=function(a,b,d,j){d=d||[];b=b||t;var e=b;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!=typeof a)return d;var g,h,f,l,A,q,N,m=!0,n=r.isXML(b),G=[],p=a;do if(c.exec(""),g=c.exec(p),g&&(p=g[3],G.push(g[1]),g[2])){l=g[3];break}while(g);if(1<G.length&&u.exec(a))if(2===G.length&&o.relative[G[0]])h=y(G[0]+G[1],b,j);else for(h=o.relative[G[0]]?[b]:r(G.shift(),b);G.length;)a=G.shift(),o.relative[a]&&(a+=G.shift()),h=y(a,h,j);else if(!j&&
1<G.length&&9===b.nodeType&&!n&&o.match.ID.test(G[0])&&!o.match.ID.test(G[G.length-1])&&(A=r.find(G.shift(),b,n),b=A.expr?r.filter(A.expr,A.set)[0]:A.set[0]),b)for(A=j?{expr:G.pop(),set:w(j)}:r.find(G.pop(),1===G.length&&("~"===G[0]||"+"===G[0])&&b.parentNode?b.parentNode:b,n),h=A.expr?r.filter(A.expr,A.set):A.set,0<G.length?f=w(h):m=!1;G.length;)q=G.pop(),N=q,o.relative[q]?N=G.pop():q="",null==N&&(N=b),o.relative[q](f,N,n);else f=[];f||(f=h);f||r.error(q||a);if("[object Array]"===k.call(f))if(m)if(b&&
1===b.nodeType)for(a=0;null!=f[a];a++)f[a]&&(!0===f[a]||1===f[a].nodeType&&r.contains(b,f[a]))&&d.push(h[a]);else for(a=0;null!=f[a];a++)f[a]&&1===f[a].nodeType&&d.push(h[a]);else d.push.apply(d,f);else w(f,d);l&&(r(l,e,d,j),r.uniqueSort(d));return d};r.uniqueSort=function(a){if(x&&(f=l,a.sort(x),f))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};r.matches=function(a,b){return r(a,null,null,b)};r.matchesSelector=function(a,b){return 0<r(b,null,null,[a]).length};r.find=function(a,
b,c){var d,j,e,g,k,h;if(!a)return[];for(j=0,e=o.order.length;j<e;j++)if(k=o.order[j],g=o.leftMatch[k].exec(a))if(h=g[1],g.splice(1,1),"\\"!==h.substr(h.length-1)&&(g[1]=(g[1]||"").replace(q,""),d=o.find[k](g,b,c),null!=d)){a=a.replace(o.match[k],"");break}d||(d="undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};r.filter=function(a,b,c,d){for(var j,e,g,k,f,l,A,q,N=a,m=[],B=b,n=b&&b[0]&&r.isXML(b[0]);a&&b.length;){for(g in o.filter)if(null!=(j=o.leftMatch[g].exec(a))&&
j[2])if(l=o.filter[g],f=j[1],e=!1,j.splice(1,1),"\\"!==f.substr(f.length-1)){B===m&&(m=[]);if(o.preFilter[g])if(j=o.preFilter[g](j,B,c,m,d,n)){if(!0===j)continue}else e=k=!0;if(j)for(A=0;null!=(f=B[A]);A++)f&&(k=l(f,j,A,B),q=d^k,c&&null!=k?q?e=!0:B[A]=!1:q&&(m.push(f),e=!0));if(k!==h){c||(B=m);a=a.replace(o.match[g],"");if(!e)return[];break}}if(a===N)if(null==e)r.error(a);else break;N=a}return B};r.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var p=r.getText=function(a){var b,
c;b=a.nodeType;var d="";if(b)if(1===b||9===b){if("string"==typeof a.textContent)return a.textContent;if("string"==typeof a.innerText)return a.innerText.replace(m,"");for(a=a.firstChild;a;a=a.nextSibling)d+=p(a)}else{if(3===b||4===b)return a.nodeValue}else for(b=0;c=a[b];b++)8!==c.nodeType&&(d+=p(c));return d},o=r.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=
"string"==typeof b,d=c&&!n.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,j=a.length,e;d<j;d++)if(e=a[d]){for(;(e=e.previousSibling)&&1!==e.nodeType;);a[d]=c||e&&e.nodeName.toLowerCase()===b?e||!1:e===b}c&&r.filter(b,a,!0)},">":function(a,b){var c,d="string"==typeof b,j=0,e=a.length;if(d&&!n.test(b))for(b=b.toLowerCase();j<e;j++){if(c=a[j])c=c.parentNode,a[j]=c.nodeName.toLowerCase()===b?c:!1}else{for(;j<e;j++)c=a[j],c&&(a[j]=d?c.parentNode:c.parentNode===b);d&&r.filter(b,a,!0)}},"":function(c,
d,g){var k,h=e++,f=a;"string"==typeof d&&!n.test(d)&&(d=d.toLowerCase(),k=d,f=b);f("parentNode",d,h,c,k,g)},"~":function(c,d,g){var k,h=e++,f=a;"string"==typeof d&&!n.test(d)&&(d=d.toLowerCase(),k=d,f=b);f("previousSibling",d,h,c,k,g)}},find:{ID:function(a,b,c){if("undefined"!=typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if("undefined"!=typeof b.getElementsByName){for(var c=[],d=b.getElementsByName(a[1]),j=0,e=d.length;j<e;j++)d[j].getAttribute("name")===
a[1]&&c.push(d[j]);return 0===c.length?null:c}},TAG:function(a,b){if("undefined"!=typeof b.getElementsByTagName)return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,j,e){a=" "+a[1].replace(q,"")+" ";if(e)return a;for(var e=0,g;null!=(g=b[e]);e++)g&&(j^(g.className&&0<=(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a))?c||d.push(g):c&&(b[e]=!1));return!1},ID:function(a){return a[1].replace(q,"")},TAG:function(a){return a[1].replace(q,"").toLowerCase()},CHILD:function(a){if("nth"===
a[1]){a[2]||r.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&r.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,j,e){b=a[1]=a[1].replace(q,"");!e&&o.attrMap[b]&&(a[1]=o.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(q,"");"~="===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,d,j,e){if("not"===a[1])if(1<(c.exec(a[3])||"").length||
/^\w/.test(a[3]))a[3]=r(a[3],null,null,b);else return a=r.filter(a[3],b,d,1^e),d||j.push.apply(j,a),!1;else if(o.match.POS.test(a[0])||o.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){return!0===a.selected},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},
has:function(a,b,c){return!!r(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"input"===a.nodeName.toLowerCase()&&"text"===c&&(b===c||null===b)},radio:function(a){return"input"===a.nodeName.toLowerCase()&&"radio"===a.type},checkbox:function(a){return"input"===a.nodeName.toLowerCase()&&"checkbox"===a.type},file:function(a){return"input"===a.nodeName.toLowerCase()&&"file"===a.type},password:function(a){return"input"===a.nodeName.toLowerCase()&&
"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"submit"===a.type},image:function(a){return"input"===a.nodeName.toLowerCase()&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===
a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var j=b[1],e=o.filters[j];if(e)return e(a,c,b,d);if("contains"===j)return 0<=(a.textContent||a.innerText||p([a])||"").indexOf(b[3]);
if("not"===j){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}r.error(j)},CHILD:function(a,b){var c,j,e,g,k,h;c=b[1];h=a;switch(c){case "only":case "first":for(;h=h.previousSibling;)if(1===h.nodeType)return!1;if("first"===c)return!0;h=a;case "last":for(;h=h.nextSibling;)if(1===h.nodeType)return!1;return!0;case "nth":c=b[2];j=b[3];if(1===c&&0===j)return!0;e=b[0];g=a.parentNode;if(g&&(g[d]!==e||!a.nodeIndex)){k=0;for(h=g.firstChild;h;h=h.nextSibling)1===h.nodeType&&(h.nodeIndex=++k);
g[d]=e}h=a.nodeIndex-j;return 0===c?0===h:0===h%c&&0<=h/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)},ATTR:function(a,b){var c=b[1],c=r.attr?r.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",j=b[2],e=b[4];return null==c?"!="===j:!j&&r.attr?null!=c:"="===j?
d===e:"*="===j?0<=d.indexOf(e):"~="===j?0<=(" "+d+" ").indexOf(e):e?"!="===j?d!==e:"^="===j?0===d.indexOf(e):"$="===j?d.substr(d.length-e.length)===e:"|="===j?d===e||d.substr(0,e.length+1)===e+"-":!1:d&&!1!==c},POS:function(a,b,c,d){var j=o.setFilters[b[2]];if(j)return j(a,c,b,d)}}},u=o.match.POS,s=function(a,b){return"\\"+(b-0+1)},F;for(F in o.match)o.match[F]=RegExp(o.match[F].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[F]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[F].source.replace(/\\(\d+)/g,
s));var w=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){w=function(a,b){var c=0,d=b||[];if("[object Array]"===k.call(a))Array.prototype.push.apply(d,a);else if("number"==typeof a.length)for(var j=a.length;c<j;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var x,v;t.documentElement.compareDocumentPosition?x=function(a,b){return a===b?(f=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?
a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(x=function(a,b){if(a===b)return f=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,j=[],e=[];c=a.parentNode;d=b.parentNode;var g=c;if(c===d)return v(a,b);if(!c)return-1;if(!d)return 1;for(;g;)j.unshift(g),g=g.parentNode;for(g=d;g;)e.unshift(g),g=g.parentNode;c=j.length;d=e.length;for(g=0;g<c&&g<d;g++)if(j[g]!==e[g])return v(j[g],e[g]);return g===c?v(a,e[g],-1):v(j[g],b,1)},v=function(a,b,c){if(a===
b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});(function(){var a=t.createElement("div"),b="script"+(new Date).getTime(),c=t.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);t.getElementById(b)&&(o.find.ID=function(a,b,c){if("undefined"!=typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:h:[]},o.filter.ID=function(a,b){var c="undefined"!=
typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=t.createElement("div");a.appendChild(t.createComment(""));0<a.getElementsByTagName("*").length&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if("*"===a[1]){for(var d=[],j=0;c[j];j++)1===c[j].nodeType&&d.push(c[j]);c=d}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&"undefined"!=typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&
(o.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();t.querySelectorAll&&function(){var a=r,b=t.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){r=function(b,c,d,j){c=c||t;if(!j&&!r.isXML(c)){var e=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(e&&(1===c.nodeType||9===c.nodeType)){if(e[1])return w(c.getElementsByTagName(b),d);if(e[2]&&o.find.CLASS&&c.getElementsByClassName)return w(c.getElementsByClassName(e[2]),
d)}if(9===c.nodeType){if("body"===b&&c.body)return w([c.body],d);if(e&&e[3]){var g=c.getElementById(e[3]);if(!g||!g.parentNode)return w([],d);if(g.id===e[3])return w([g],d)}try{return w(c.querySelectorAll(b),d)}catch(k){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var e=c,h=(g=c.getAttribute("id"))||"__sizzle__",f=c.parentNode,l=/^\s*[+~]/.test(b);g?h=h.replace(/'/g,"\\$&"):c.setAttribute("id",h);l&&f&&(c=c.parentNode);try{if(!l||f)return w(c.querySelectorAll("[id='"+h+"'] "+b),
d)}catch(A){}finally{g||e.removeAttribute("id")}}}return a(b,c,d,j)};for(var c in a)r[c]=a[c];b=null}}();(function(){var a=t.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(t.createElement("div"),"div"),d=!1;try{b.call(t.documentElement,"[test!='']:sizzle")}catch(j){d=!0}r.matchesSelector=function(a,j){j=j.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!r.isXML(a))try{if(d||!o.match.PSEUDO.test(j)&&!/!=/.test(j)){var e=b.call(a,
j);if(e||!c||a.document&&11!==a.document.nodeType)return e}}catch(g){}return 0<r(j,null,null,[a]).length}}})();(function(){var a=t.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if("undefined"!=typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},
a=null})();t.documentElement.contains?r.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:t.documentElement.compareDocumentPosition?r.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:r.contains=function(){return!1};r.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var y=function(a,b,c){for(var d,j=[],e="",b=b.nodeType?[b]:b;d=o.match.PSEUDO.exec(a);)e+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;d=0;for(var g=
b.length;d<g;d++)r(a,b[d],j,c);return r.filter(e,j)};r.attr=g.attr;r.selectors.attrMap={};g.find=r;g.expr=r.selectors;g.expr[":"]=g.expr.filters;g.unique=r.uniqueSort;g.text=r.getText;g.isXMLDoc=r.isXML;g.contains=r.contains})();var gb=/Until$/,hb=/^(?:parents|prevUntil|prevAll)/,ib=/,/,ab=/^.[^:#\[\.,]*$/,jb=Array.prototype.slice,Ha=g.expr.match.POS,kb={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({find:function(a){var b=this,c,d;if("string"!=typeof a)return g(a).filter(function(){for(c=
0,d=b.length;c<d;c++)if(g.contains(b[c],this))return!0});var e=this.pushStack("","find",a),k,h,f;for(c=0,d=this.length;c<d;c++)if(k=e.length,g.find(a,this[c],e),0<c)for(h=k;h<e.length;h++)for(f=0;f<k;f++)if(e[f]===e[h]){e.splice(h--,1);break}return e},has:function(a){var b=g(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(g.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(y(this,a,!1),"not",a)},filter:function(a){return this.pushStack(y(this,a,!0),"filter",
a)},is:function(a){return!!a&&("string"==typeof a?Ha.test(a)?0<=g(a,this.context).index(this[0]):0<g.filter(a,this).length:0<this.filter(a).length)},closest:function(a,b){var c=[],d,e,k=this[0];if(g.isArray(a)){for(e=1;k&&k.ownerDocument&&k!==b;){for(d=0;d<a.length;d++)g(k).is(a[d])&&c.push({selector:a[d],elem:k,level:e});k=k.parentNode;e++}return c}var h=Ha.test(a)||"string"!=typeof a?g(a,b||this.context):0;for(d=0,e=this.length;d<e;d++)for(k=this[d];k;){if(h?-1<h.index(k):g.find.matchesSelector(k,
a)){c.push(k);break}k=k.parentNode;if(!k||!k.ownerDocument||k===b||11===k.nodeType)break}c=1<c.length?g.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:"string"==typeof a?g.inArray(this[0],g(a)):g.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c="string"==typeof a?g(a,b):g.makeArray(a&&a.nodeType?[a]:a),d=g.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||11===c[0].parentNode.nodeType||!d[0]||
!d[0].parentNode||11===d[0].parentNode.nodeType?d:g.unique(d))},andSelf:function(){return this.add(this.prevObject)}});g.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return g.dir(a,"parentNode")},parentsUntil:function(a,b,c){return g.dir(a,"parentNode",c)},next:function(a){return g.nth(a,2,"nextSibling")},prev:function(a){return g.nth(a,2,"previousSibling")},nextAll:function(a){return g.dir(a,"nextSibling")},prevAll:function(a){return g.dir(a,"previousSibling")},
nextUntil:function(a,b,c){return g.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return g.dir(a,"previousSibling",c)},siblings:function(a){return g.sibling(a.parentNode.firstChild,a)},children:function(a){return g.sibling(a.firstChild)},contents:function(a){return g.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:g.makeArray(a.childNodes)}},function(a,b){g.fn[a]=function(c,d){var e=g.map(this,b,c);gb.test(a)||(d=c);d&&"string"==typeof d&&(e=g.filter(d,e));e=1<this.length&&!kb[a]?
g.unique(e):e;(1<this.length||ib.test(d))&&hb.test(a)&&(e=e.reverse());return this.pushStack(e,a,jb.call(arguments).join(","))}});g.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return 1===b.length?g.find.matchesSelector(b[0],a)?[b[0]]:[]:g.find.matches(a,b)},dir:function(a,b,c){for(var d=[],a=a[b];a&&9!==a.nodeType&&(c===h||1!==a.nodeType||!g(a).is(c));)1===a.nodeType&&d.push(a),a=a[b];return d},nth:function(a,b,c){for(var b=b||1,d=0;a&&!(1===a.nodeType&&++d===b);a=a[c]);return a},sibling:function(a,
b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var Da="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",lb=/ jQuery\d+="(?:\d+|null)"/g,ya=/^\s+/,Ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ja=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&#?\w+;/,ob=/<(?:script|style)/i,pb=/<(?:script|object|embed|option|style)/i,Ka=RegExp("<(?:"+Da+")","i"),La=/checked\s*(?:[^=]|=\s*.checked.)/i,
qb=/\/(java|ecma)script/i,$a=/^\s*<!(?:\[CDATA\[|\-\-)/,I={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,"",""]},Ma=x(t);I.optgroup=I.option;I.tbody=I.tfoot=I.colgroup=I.caption=I.thead;I.th=I.td;g.support.htmlSerialize||(I._default=
[1,"div<div>","</div>"]);g.fn.extend({text:function(a){return g.isFunction(a)?this.each(function(b){var c=g(this);c.text(a.call(this,b,c.text()))}):"object"!=typeof a&&a!==h?this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a)):g.text(this)},wrapAll:function(a){if(g.isFunction(a))return this.each(function(b){g(this).wrapAll(a.call(this,b))});if(this[0]){var b=g(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&
1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return g.isFunction(a)?this.each(function(b){g(this).wrapInner(a.call(this,b))}):this.each(function(){var b=g(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=g.isFunction(a);return this.each(function(c){g(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=g.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,g.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;null!=(d=this[c]);c++)if(!a||g.filter(a,[d]).length)!b&&1===d.nodeType&&(g.cleanData(d.getElementsByTagName("*")),g.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===
b.nodeType&&g.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return g.clone(this,a,b)})},html:function(a){if(a===h)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(lb,""):null;if("string"==typeof a&&!ob.test(a)&&(g.support.leadingWhitespace||!ya.test(a))&&!I[(Ja.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ia,"<$1></$2>");try{for(var b=0,c=this.length;b<c;b++)1===
this[b].nodeType&&(g.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(d){this.empty().append(a)}}else g.isFunction(a)?this.each(function(b){var c=g(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(g.isFunction(a))return this.each(function(b){var c=g(this),d=c.html();c.replaceWith(a.call(this,b,d))});"string"!=typeof a&&(a=g(a).detach());return this.each(function(){var b=this.nextSibling,c=
this.parentNode;g(this).remove();b?g(b).before(a):g(c).append(a)})}return this.length?this.pushStack(g(g.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,c){var d,e,k,f,l=a[0],q=[];if(!g.support.checkClone&&3===arguments.length&&"string"==typeof l&&La.test(l))return this.each(function(){g(this).domManip(a,b,c,!0)});if(g.isFunction(l))return this.each(function(d){var e=g(this);a[0]=l.call(this,d,b?e.html():h);e.domManip(a,b,c)});if(this[0]){f=
l&&l.parentNode;g.support.parentNode&&f&&11===f.nodeType&&f.childNodes.length===this.length?d={fragment:f}:d=g.buildFragment(a,this,q);k=d.fragment;1===k.childNodes.length?e=k=k.firstChild:e=k.firstChild;if(e){b=b&&g.nodeName(e,"tr");e=0;f=this.length;for(var m=f-1;e<f;e++)c.call(b?g.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],d.cacheable||1<f&&e<m?g.clone(k,!0,!0):k)}q.length&&g.each(q,w)}return this}});
g.buildFragment=function(a,b,c){var d,e,k,h,f=a[0];b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=t);1===a.length&&"string"==typeof f&&512>f.length&&h===t&&"<"===f.charAt(0)&&!pb.test(f)&&(g.support.checkClone||!La.test(f))&&(g.support.html5Clone||!Ka.test(f))&&(e=!0,k=g.fragments[f],k&&1!==k&&(d=k));d||(d=h.createDocumentFragment(),g.clean(a,h,d,c));e&&(g.fragments[f]=k?d:1);return{fragment:d,cacheable:e}};g.fragments={};g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",
insertAfter:"after",replaceAll:"replaceWith"},function(a,b){g.fn[a]=function(c){var d=[],c=g(c),e=1===this.length&&this[0].parentNode;if(e&&11===e.nodeType&&1===e.childNodes.length&&1===c.length)return c[b](this[0]),this;for(var e=0,k=c.length;e<k;e++){var h=(0<e?this.clone(!0):this).get();g(c[e])[b](h);d=d.concat(h)}return this.pushStack(d,a,c.selector)}});g.extend({clone:function(a,b,c){var d,e,k;g.support.html5Clone||!Ka.test("<"+a.nodeName)?d=a.cloneNode(!0):(d=t.createElement("div"),Ma.appendChild(d),
d.innerHTML=a.outerHTML,d=d.firstChild);var h=d;if((!g.support.noCloneEvent||!g.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!g.isXMLDoc(a)){r(a,h);d=q(a);e=q(h);for(k=0;d[k];++k)e[k]&&r(d[k],e[k])}if(b&&(u(a,h),c)){d=q(a);e=q(h);for(k=0;d[k];++k)u(d[k],e[k])}return h},clean:function(a,b,c,d){b=b||t;"undefined"==typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||t);for(var e=[],k,h=0,f;null!=(f=a[h]);h++)if("number"==typeof f&&(f+=""),f){if("string"==typeof f)if(nb.test(f)){f=
f.replace(Ia,"<$1></$2>");k=(Ja.exec(f)||["",""])[1].toLowerCase();var l=I[k]||I._default,q=l[0],m=b.createElement("div");for(b===t?Ma.appendChild(m):x(b).appendChild(m),m.innerHTML=l[1]+f+l[2];q--;)m=m.lastChild;if(!g.support.tbody){q=mb.test(f);l="table"===k&&!q?m.firstChild&&m.firstChild.childNodes:"<table>"===l[1]&&!q?m.childNodes:[];for(k=l.length-1;0<=k;--k)g.nodeName(l[k],"tbody")&&!l[k].childNodes.length&&l[k].parentNode.removeChild(l[k])}!g.support.leadingWhitespace&&ya.test(f)&&m.insertBefore(b.createTextNode(ya.exec(f)[0]),
m.firstChild);f=m.childNodes}else f=b.createTextNode(f);var r;if(!g.support.appendChecked)if(f[0]&&"number"==typeof(r=f.length))for(k=0;k<r;k++)v(f[k]);else v(f);f.nodeType?e.push(f):e=g.merge(e,f)}if(c){a=function(a){return!a.type||qb.test(a.type)};for(h=0;e[h];h++)d&&g.nodeName(e[h],"script")&&(!e[h].type||"text/javascript"===e[h].type.toLowerCase())?d.push(e[h].parentNode?e[h].parentNode.removeChild(e[h]):e[h]):(1===e[h].nodeType&&(b=g.grep(e[h].getElementsByTagName("script"),a),e.splice.apply(e,
[h+1,0].concat(b))),c.appendChild(e[h]))}return e},cleanData:function(a){for(var b,c,d=g.cache,e=g.event.special,k=g.support.deleteExpando,h=0,f;null!=(f=a[h]);h++)if(!f.nodeName||!g.noData[f.nodeName.toLowerCase()])if(c=f[g.expando]){if((b=d[c])&&b.events){for(var l in b.events)e[l]?g.event.remove(f,l):g.removeEvent(f,l,b.handle);b.handle&&(b.handle.elem=null)}k?delete f[g.expando]:f.removeAttribute&&f.removeAttribute(g.expando);delete d[c]}}});var za=/alpha\([^)]*\)/i,rb=/opacity=([^)]*)/,sb=/([A-Z]|^ms)/g,
Na=/^-?\d+(?:px)?$/i,tb=/^-?\d/,ub=/^([\-+])=([\-+.\de]+)/,vb={position:"absolute",visibility:"hidden",display:"block"},Ya=["Left","Right"],Za=["Top","Bottom"],aa,Oa,Pa;g.fn.css=function(a,b){return 2===arguments.length&&b===h?this:g.access(this,a,b,!0,function(a,b,c){return c!==h?g.style(a,b,c):g.css(a,b)})};g.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=aa(a,"opacity","opacity");return""===c?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,
orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":g.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,k,f=g.camelCase(b),l=a.style,q=g.cssHooks[f],b=g.cssProps[f]||f;if(c===h)return q&&"get"in q&&(e=q.get(a,!1,d))!==h?e:l[b];k=typeof c;"string"===k&&(e=ub.exec(c))&&(c=+(e[1]+1)*+e[2]+parseFloat(g.css(a,b)),k="number");if(!(null==c||"number"===k&&isNaN(c)))if("number"===k&&!g.cssNumber[f]&&(c+="px"),!q||!("set"in q)||(c=q.set(a,
c))!==h)try{l[b]=c}catch(m){}}},css:function(a,b,c){var d,e;b=g.camelCase(b);e=g.cssHooks[b];b=g.cssProps[b]||b;"cssFloat"===b&&(b="float");if(e&&"get"in e&&(d=e.get(a,!0,c))!==h)return d;if(aa)return aa(a,b)},swap:function(a,b,c){var d={},e;for(e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}});g.curCSS=g.css;g.each(["height","width"],function(a,b){g.cssHooks[b]={get:function(a,c,d){var j;if(c){if(0!==a.offsetWidth)return e(a,b,d);g.swap(a,vb,function(){j=e(a,b,d)});return j}},
set:function(a,b){if(!Na.test(b))return b;b=parseFloat(b);if(0<=b)return b+"px"}}});g.support.opacity||(g.cssHooks.opacity={get:function(a,b){return rb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=g.isNumeric(b)?"alpha(opacity="+100*b+")":"",k=d&&d.filter||c.filter||"";c.zoom=1;if(1<=b&&""===g.trim(k.replace(za,""))&&(c.removeAttribute("filter"),d&&!d.filter))return;c.filter=za.test(k)?
k.replace(za,e):k+" "+e}});g(function(){g.support.reliableMarginRight||(g.cssHooks.marginRight={get:function(a,b){var c;g.swap(a,{display:"inline-block"},function(){b?c=aa(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})});t.defaultView&&t.defaultView.getComputedStyle&&(Oa=function(a,b){var c,d,e;b=b.replace(sb,"-$1").toLowerCase();(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),""===c&&!g.contains(a.ownerDocument.documentElement,a)&&(c=
g.style(a,b)));return c});t.documentElement.currentStyle&&(Pa=function(a,b){var c,d,e,g=a.currentStyle&&a.currentStyle[b],k=a.style;null===g&&k&&(e=k[b])&&(g=e);!Na.test(g)&&tb.test(g)&&(c=k.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),k.left="fontSize"===b?"1em":g||0,g=k.pixelLeft+"px",k.left=c,d&&(a.runtimeStyle.left=d));return""===g?"auto":g});aa=Oa||Pa;g.expr&&g.expr.filters&&(g.expr.filters.hidden=function(a){var b=a.offsetHeight;return 0===a.offsetWidth&&
0===b||!g.support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||g.css(a,"display"))},g.expr.filters.visible=function(a){return!g.expr.filters.hidden(a)});var wb=/%20/g,Xa=/\[\]$/,Qa=/\r?\n/g,xb=/#.*$/,yb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,zb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ab=/^(?:GET|HEAD)$/,Bb=/^\/\//,Ra=/\?/,Cb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Db=/^(?:select|textarea)/i,Ca=/\s+/,Eb=
/([?&])_=[^&]*/,Sa=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Ta=g.fn.load,ta={},Ua={},W,X,Va=["*/"]+["*"];try{W=da.href}catch(Kb){W=t.createElement("a"),W.href="",W=W.href}X=Sa.exec(W.toLowerCase())||[];g.fn.extend({load:function(a,b,c){if("string"!=typeof a&&Ta)return Ta.apply(this,arguments);if(!this.length)return this;var d=a.indexOf(" ");if(0<=d)var e=a.slice(d,a.length),a=a.slice(0,d);d="GET";b&&(g.isFunction(b)?(c=b,b=h):"object"==typeof b&&(b=g.param(b,g.ajaxSettings.traditional),d=
"POST"));var k=this;g.ajax({url:a,type:d,dataType:"html",data:b,complete:function(a,b,d){d=a.responseText;a.isResolved()&&(a.done(function(a){d=a}),k.html(e?g("<div>").append(d.replace(Cb,"")).find(e):d));c&&k.each(c,[d,b,a])}});return this},serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?g.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Db.test(this.nodeName)||
zb.test(this.type))}).map(function(a,b){var c=g(this).val();return null==c?null:g.isArray(c)?g.map(c,function(a){return{name:b.name,value:a.replace(Qa,"\r\n")}}):{name:b.name,value:c.replace(Qa,"\r\n")}}).get()}});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){g.fn[b]=function(a){return this.on(b,a)}});g.each(["get","post"],function(a,b){g[b]=function(a,c,d,e){g.isFunction(c)&&(e=e||d,d=c,c=h);return g.ajax({type:b,url:a,data:c,success:d,dataType:e})}});
g.extend({getScript:function(a,b){return g.get(a,h,b,"script")},getJSON:function(a,b,c){return g.get(a,b,c,"json")},ajaxSetup:function(a,b){b?p(a,g.ajaxSettings):(b=a,a=g.ajaxSettings);p(a,b);return a},ajaxSettings:{url:W,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(X[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",
"*":Va},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:o(ta),ajaxTransport:o(Ua),ajax:function(a,b){function c(a,b,j,m){if(2!==J){J=2;F&&clearTimeout(F);s=h;p=m||"";v.readyState=0<a?4:0;var n,o,A,m=b;if(j){var u=d,w=v,B=u.contents,x=u.dataTypes,y=u.responseFields,C,z,E,ua;for(z in y)z in j&&(w[y[z]]=j[z]);for(;"*"===
x[0];)x.shift(),C===h&&(C=u.mimeType||w.getResponseHeader("content-type"));if(C)for(z in B)if(B[z]&&B[z].test(C)){x.unshift(z);break}if(x[0]in j)E=x[0];else{for(z in j){if(!x[0]||u.converters[z+" "+x[0]]){E=z;break}ua||(ua=z)}E=E||ua}E?(E!==x[0]&&x.unshift(E),j=j[E]):j=void 0}else j=h;if(200<=a&&300>a||304===a){if(d.ifModified){if(C=v.getResponseHeader("Last-Modified"))g.lastModified[r]=C;if(C=v.getResponseHeader("Etag"))g.etag[r]=C}if(304===a)m="notmodified",n=!0;else try{C=d;C.dataFilter&&(j=C.dataFilter(j,
C.dataType));var D=C.dataTypes;z={};var T,ka,K=D.length,H,U=D[0],I,M,O,R,L;for(T=1;T<K;T++){if(1===T)for(ka in C.converters)"string"==typeof ka&&(z[ka.toLowerCase()]=C.converters[ka]);I=U;U=D[T];if("*"===U)U=I;else if("*"!==I&&I!==U){M=I+" "+U;O=z[M]||z["* "+U];if(!O)for(R in L=h,z)if(H=R.split(" "),H[0]===I||"*"===H[0])if(L=z[H[1]+" "+U]){R=z[R];!0===R?O=L:!0===L&&(O=R);break}!O&&!L&&g.error("No conversion from "+M.replace(" "," to "));!0!==O&&(j=O?O(j):L(R(j)))}}o=j;m="success";n=!0}catch(ia){m=
"parsererror",A=ia}}else if(A=m,!m||a)m="error",0>a&&(a=0);v.status=a;v.statusText=""+(b||m);n?f.resolveWith(e,[o,m,v]):f.rejectWith(e,[v,m,A]);v.statusCode(q);q=h;t&&k.trigger("ajax"+(n?"Success":"Error"),[v,d,n?o:A]);l.fireWith(e,[v,m]);t&&(k.trigger("ajaxComplete",[v,d]),--g.active||g.event.trigger("ajaxStop"))}}"object"==typeof a&&(b=a,a=h);b=b||{};var d=g.ajaxSetup({},b),e=d.context||d,k=e!==d&&(e.nodeType||e instanceof g)?g(e):g.event,f=g.Deferred(),l=g.Callbacks("once memory"),q=d.statusCode||
{},r,n={},o={},p,u,s,F,w,J=0,t,x,v={readyState:0,setRequestHeader:function(a,b){if(!J){var c=a.toLowerCase();a=o[c]=o[c]||a;n[a]=b}return this},getAllResponseHeaders:function(){return 2===J?p:null},getResponseHeader:function(a){var b;if(2===J){if(!u)for(u={};b=yb.exec(p);)u[b[1].toLowerCase()]=b[2];b=u[a.toLowerCase()]}return b===h?null:b},overrideMimeType:function(a){J||(d.mimeType=a);return this},abort:function(a){a=a||"abort";s&&s.abort(a);c(0,a);return this}};f.promise(v);v.success=v.done;v.error=
v.fail;v.complete=l.add;v.statusCode=function(a){if(a){var b;if(2>J)for(b in a)q[b]=[q[b],a[b]];else b=a[v.status],v.then(b,b)}return this};d.url=((a||d.url)+"").replace(xb,"").replace(Bb,X[1]+"//");d.dataTypes=g.trim(d.dataType||"*").toLowerCase().split(Ca);null==d.crossDomain&&(w=Sa.exec(d.url.toLowerCase()),d.crossDomain=!(!w||w[1]==X[1]&&w[2]==X[2]&&(w[3]||("http:"===w[1]?80:443))==(X[3]||("http:"===X[1]?80:443))));d.data&&d.processData&&"string"!=typeof d.data&&(d.data=g.param(d.data,d.traditional));
m(ta,d,b,v);if(2===J)return!1;t=d.global;d.type=d.type.toUpperCase();d.hasContent=!Ab.test(d.type);t&&0===g.active++&&g.event.trigger("ajaxStart");if(!d.hasContent&&(d.data&&(d.url+=(Ra.test(d.url)?"&":"?")+d.data,delete d.data),r=d.url,!1===d.cache)){w=g.now();var y=d.url.replace(Eb,"$1_="+w);d.url=y+(y===d.url?(Ra.test(d.url)?"&":"?")+"_="+w:"")}(d.data&&d.hasContent&&!1!==d.contentType||b.contentType)&&v.setRequestHeader("Content-Type",d.contentType);d.ifModified&&(r=r||d.url,g.lastModified[r]&&
v.setRequestHeader("If-Modified-Since",g.lastModified[r]),g.etag[r]&&v.setRequestHeader("If-None-Match",g.etag[r]));v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Va+"; q=0.01":""):d.accepts["*"]);for(x in d.headers)v.setRequestHeader(x,d.headers[x]);if(d.beforeSend&&(!1===d.beforeSend.call(e,v,d)||2===J))return v.abort(),!1;for(x in{success:1,error:1,complete:1})v[x](d[x]);if(s=m(Ua,d,b,v)){v.readyState=1;t&&k.trigger("ajaxSend",
[v,d]);d.async&&0<d.timeout&&(F=setTimeout(function(){v.abort("timeout")},d.timeout));try{J=1,s.send(n,c)}catch(C){if(2>J)c(-1,C);else throw C;}}else c(-1,"No Transport");return v},param:function(a,b){var c=[],d=function(a,b){b=g.isFunction(b)?b():b;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===h&&(b=g.ajaxSettings.traditional);if(g.isArray(a)||a.jquery&&!g.isPlainObject(a))g.each(a,function(){d(this.name,this.value)});else for(var e in a)n(e,a[e],b,d);return c.join("&").replace(wb,
"+")}});g.extend({active:0,lastModified:{},etag:{}});var Fb=g.now(),na=/(\=)\?(&|$)|\?\?/i;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return g.expando+"_"+Fb++}});g.ajaxPrefilter("json jsonp",function(a,c,d){c="application/x-www-form-urlencoded"===a.contentType&&"string"==typeof a.data;if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(na.test(a.url)||c&&na.test(a.data))){var e,k=a.jsonpCallback=g.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,h=b[k],f=a.url,l=a.data,q="$1"+k+
"$2";!1!==a.jsonp&&(f=f.replace(na,q),a.url===f&&(c&&(l=l.replace(na,q)),a.data===l&&(f+=(/\?/.test(f)?"&":"?")+a.jsonp+"="+k)));a.url=f;a.data=l;b[k]=function(a){e=[a]};d.always(function(){b[k]=h;e&&g.isFunction(h)&&b[k](e[0])});a.converters["script json"]=function(){e||g.error(k+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},
converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){a.cache===h&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});g.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=t.head||t.getElementsByTagName("head")[0]||t.documentElement;return{send:function(d,e){b=t.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,d){if(d||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=
b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=h,d||e(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Aa=b.ActiveXObject?function(){for(var a in ca)ca[a](0,1)}:!1,Gb=0,ca;g.ajaxSettings.xhr=b.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&l()))a:{try{a=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}a=void 0}return a}:l;(function(a){g.extend(g.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(g.ajaxSettings.xhr());g.support.ajax&&
g.ajaxTransport(function(a){if(!a.crossDomain||g.support.cors){var c;return{send:function(d,e){var k=a.xhr(),f,l;a.username?k.open(a.type,a.url,a.async,a.username,a.password):k.open(a.type,a.url,a.async);if(a.xhrFields)for(l in a.xhrFields)k[l]=a.xhrFields[l];a.mimeType&&k.overrideMimeType&&k.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(l in d)k.setRequestHeader(l,d[l])}catch(q){}k.send(a.hasContent&&a.data||null);c=function(b,
d){var l,q,m,r,n;try{if(c&&(d||4===k.readyState))if(c=h,f&&(k.onreadystatechange=g.noop,Aa&&delete ca[f]),d)4!==k.readyState&&k.abort();else{l=k.status;m=k.getAllResponseHeaders();r={};n=k.responseXML;n&&n.documentElement&&(r.xml=n);r.text=k.responseText;try{q=k.statusText}catch(o){q=""}!l&&a.isLocal&&!a.crossDomain?l=r.text?200:404:1223===l&&(l=204)}}catch(p){d||e(-1,p)}r&&e(l,q,r,m)};!a.async||4===k.readyState?c():(f=++Gb,Aa&&(ca||(ca={},g(b).unload(Aa)),ca[f]=c),k.onreadystatechange=c)},abort:function(){c&&
c(0,1)}}}});var sa={},P,Z,Hb=/^(?:toggle|show|hide)$/,Ib=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,oa,Ba=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ja;g.fn.extend({show:function(b,d,e){var k,f;if(b||0===b)return this.animate(c("show",3),b,d,e);b=0;for(d=this.length;b<d;b++)k=this[b],k.style&&(f=k.style.display,!g._data(k,"olddisplay")&&"none"===f&&(f=k.style.display=""),""===f&&"none"===g.css(k,"display")&&
g._data(k,"olddisplay",a(k.nodeName)));for(b=0;b<d;b++)if(k=this[b],k.style&&(f=k.style.display,""===f||"none"===f))k.style.display=g._data(k,"olddisplay")||"";return this},hide:function(a,b,d){if(a||0===a)return this.animate(c("hide",3),a,b,d);for(var e,k,a=0,b=this.length;a<b;a++)e=this[a],e.style&&(k=g.css(e,"display"),"none"!==k&&!g._data(e,"olddisplay")&&g._data(e,"olddisplay",k));for(a=0;a<b;a++)this[a].style&&(this[a].style.display="none");return this},_toggle:g.fn.toggle,toggle:function(a,
b,d){var e="boolean"==typeof a;g.isFunction(a)&&g.isFunction(b)?this._toggle.apply(this,arguments):null==a||e?this.each(function(){var b=e?a:g(this).is(":hidden");g(this)[b?"show":"hide"]()}):this.animate(c("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(b,c,d,e){function k(){var j;!1===f.queue&&g._mark(this);var c=g.extend({},f),d=1===this.nodeType,e=d&&g(this).is(":hidden"),h,l,q,m,
r,n,o,p,u;c.animatedProperties={};for(q in b){h=g.camelCase(q);q!==h&&(b[h]=b[q],delete b[q]);l=b[h];g.isArray(l)?(c.animatedProperties[h]=l[1],j=b[h]=l[0],l=j):c.animatedProperties[h]=c.specialEasing&&c.specialEasing[h]||c.easing||"swing";if("hide"===l&&e||"show"===l&&!e)return c.complete.call(this);d&&("height"===h||"width"===h)&&(c.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===g.css(this,"display")&&"none"===g.css(this,"float")&&(!g.support.inlineBlockNeedsLayout||
"inline"===a(this.nodeName)?this.style.display="inline-block":this.style.zoom=1))}null!=c.overflow&&(this.style.overflow="hidden");for(q in b)m=new g.fx(this,c,q),l=b[q],Hb.test(l)?(u=g._data(this,"toggle"+q)||("toggle"===l?e?"show":"hide":0),u?(g._data(this,"toggle"+q,"show"===u?"hide":"show"),m[u]()):m[l]()):(r=Ib.exec(l),n=m.cur(),r?(o=parseFloat(r[2]),p=r[3]||(g.cssNumber[q]?"":"px"),"px"!==p&&(g.style(this,q,(o||1)+p),n*=(o||1)/m.cur(),g.style(this,q,n+p)),r[1]&&(o=("-="===r[1]?-1:1)*o+n),m.custom(n,
o,p)):m.custom(n,l,""));return!0}var f=g.speed(c,d,e);if(g.isEmptyObject(b))return this.each(f.complete,[!1]);b=g.extend({},b);return!1===f.queue?this.each(k):this.queue(f.queue,k)},stop:function(a,b,c){"string"!=typeof a&&(c=b,b=a,a=h);b&&!1!==a&&this.queue(a||"fx",[]);return this.each(function(){var b,d=!1,e=g.timers,k=g._data(this);c||g._unmark(!0,this);if(null==a)for(b in k){if(k[b]&&k[b].stop&&b.indexOf(".run")===b.length-4){var f=k[b];g.removeData(this,b,!0);f.stop(c)}}else if(k[b=a+".run"]&&
k[b].stop)k=k[b],g.removeData(this,b,!0),k.stop(c);for(b=e.length;b--;)e[b].elem===this&&(null==a||e[b].queue===a)&&(c?e[b](!0):e[b].saveState(),d=!0,e.splice(b,1));(!c||!d)&&g.dequeue(this,a)})}});g.each({slideDown:c("show",1),slideUp:c("hide",1),slideToggle:c("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){g.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});g.extend({speed:function(a,b,c){var d=a&&"object"==typeof a?g.extend({},a):{complete:c||
!c&&b||g.isFunction(a)&&a,duration:a,easing:c&&b||b&&!g.isFunction(b)&&b};d.duration=g.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in g.fx.speeds?g.fx.speeds[d.duration]:g.fx.speeds._default;if(null==d.queue||!0===d.queue)d.queue="fx";d.old=d.complete;d.complete=function(a){g.isFunction(d.old)&&d.old.call(this);d.queue?g.dequeue(this,d.queue):!1!==a&&g._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*
d+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});g.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(g.fx.step[this.prop]||g.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 a,b=g.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||"auto"===b?0:b:a},custom:function(a,b,c){function d(a){return e.step(a)}
var e=this,f=g.fx;this.startTime=ja||k();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=c||this.unit||(g.cssNumber[this.prop]?"":"px");d.queue=this.options.queue;d.elem=this.elem;d.saveState=function(){e.options.hide&&g._data(e.elem,"fxshow"+e.prop)===h&&g._data(e.elem,"fxshow"+e.prop,e.start)};d()&&g.timers.push(d)&&!oa&&(oa=setInterval(f.tick,f.interval))},show:function(){var a=g._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||g.style(this.elem,this.prop);this.options.show=
!0;a!==h?this.custom(this.cur(),a):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur());g(this.elem).show()},hide:function(){this.options.orig[this.prop]=g._data(this.elem,"fxshow"+this.prop)||g.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b,c,d,e=ja||k(),f=!0,h=this.elem,l=this.options;if(a||e>=l.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();l.animatedProperties[this.prop]=!0;for(b in l.animatedProperties)!0!==
l.animatedProperties[b]&&(f=!1);if(f){null!=l.overflow&&!g.support.shrinkWrapBlocks&&g.each(["","X","Y"],function(a,b){h.style["overflow"+b]=l.overflow[a]});l.hide&&g(h).hide();if(l.hide||l.show)for(b in l.animatedProperties)g.style(h,b,l.orig[b]),g.removeData(h,"fxshow"+b,!0),g.removeData(h,"toggle"+b,!0);d=l.complete;d&&(l.complete=!1,d.call(h))}return!1}Infinity==l.duration?this.now=e:(c=e-this.startTime,this.state=c/l.duration,this.pos=g.easing[l.animatedProperties[this.prop]](this.state,c,0,
1,l.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};g.extend(g.fx,{tick:function(){for(var a,b=g.timers,c=0;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||g.fx.stop()},interval:13,stop:function(){clearInterval(oa);oa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){g.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});g.each(["width",
"height"],function(a,b){g.fx.step[b]=function(a){g.style(a.elem,b,Math.max(0,a.now)+a.unit)}});g.expr&&g.expr.filters&&(g.expr.filters.animated=function(a){return g.grep(g.timers,function(b){return a===b.elem}).length});var Jb=/^t(?:able|d|h)$/i,Wa=/^(?:body|html)$/i;"getBoundingClientRect"in t.documentElement?g.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){g.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return g.offset.bodyOffset(b);
try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,k=e.documentElement;if(!c||!g.contains(k,b))return c?{top:c.top,left:c.left}:{top:0,left:0};b=e.body;e=f(e);return{top:c.top+(e.pageYOffset||g.support.boxModel&&k.scrollTop||b.scrollTop)-(k.clientTop||b.clientTop||0),left:c.left+(e.pageXOffset||g.support.boxModel&&k.scrollLeft||b.scrollLeft)-(k.clientLeft||b.clientLeft||0)}}:g.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){g.offset.setOffset(this,a,b)});if(!b||
!b.ownerDocument)return null;if(b===b.ownerDocument.body)return g.offset.bodyOffset(b);for(var c,d=b.offsetParent,e=b.ownerDocument,k=e.documentElement,f=e.body,h=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,q=b.offsetLeft;(b=b.parentNode)&&b!==f&&b!==k&&!(g.support.fixedPosition&&"fixed"===h.position);){c=e?e.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;q-=b.scrollLeft;b===d&&(l+=b.offsetTop,q+=b.offsetLeft,g.support.doesNotAddBorder&&(!g.support.doesAddBorderForTableAndCells||
!Jb.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,q+=parseFloat(c.borderLeftWidth)||0),d=b.offsetParent);g.support.subtractsBorderForOverflowNotVisible&&"visible"!==c.overflow&&(l+=parseFloat(c.borderTopWidth)||0,q+=parseFloat(c.borderLeftWidth)||0);h=c}if("relative"===h.position||"static"===h.position)l+=f.offsetTop,q+=f.offsetLeft;g.support.fixedPosition&&"fixed"===h.position&&(l+=Math.max(k.scrollTop,f.scrollTop),q+=Math.max(k.scrollLeft,f.scrollLeft));return{top:l,left:q}};g.offset={bodyOffset:function(a){var b=
a.offsetTop,c=a.offsetLeft;g.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(g.css(a,"marginTop"))||0,c+=parseFloat(g.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=g.css(a,"position");"static"===d&&(a.style.position="relative");var e=g(a),k=e.offset(),f=g.css(a,"top"),h=g.css(a,"left"),l={},q={},m,r;("absolute"===d||"fixed"===d)&&-1<g.inArray("auto",[f,h])?(q=e.position(),m=q.top,r=q.left):(m=parseFloat(f)||0,r=parseFloat(h)||0);g.isFunction(b)&&(b=b.call(a,
c,k));null!=b.top&&(l.top=b.top-k.top+m);null!=b.left&&(l.left=b.left-k.left+r);"using"in b?b.using.call(a,l):e.css(l)}};g.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=Wa.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(g.css(a,"marginTop"))||0;c.left-=parseFloat(g.css(a,"marginLeft"))||0;d.top+=parseFloat(g.css(b[0],"borderTopWidth"))||0;d.left+=parseFloat(g.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-
d.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Wa.test(a.nodeName)&&"static"===g.css(a,"position");)a=a.offsetParent;return a})}});g.each(["Left","Top"],function(a,b){var c="scroll"+b;g.fn[c]=function(b){var d,e;if(b===h){d=this[0];return!d?null:(e=f(d))?"pageXOffset"in e?e[a?"pageYOffset":"pageXOffset"]:g.support.boxModel&&e.document.documentElement[c]||e.document.body[c]:d[c]}return this.each(function(){e=f(this);e?e.scrollTo(a?g(e).scrollLeft():
b,a?b:g(e).scrollTop()):this[c]=b})}});g.each(["Height","Width"],function(a,b){var c=b.toLowerCase();g.fn["inner"+b]=function(){var a=this[0];return a?a.style?parseFloat(g.css(a,c,"padding")):this[c]():null};g.fn["outer"+b]=function(a){var b=this[0];return b?b.style?parseFloat(g.css(b,c,a?"margin":"border")):this[c]():null};g.fn[c]=function(a){var d=this[0];if(!d)return null==a?null:this;if(g.isFunction(a))return this.each(function(b){var d=g(this);d[c](a.call(this,b,d[c]()))});if(g.isWindow(d)){var e=
d.document.documentElement["client"+b],k=d.document.body;return"CSS1Compat"===d.document.compatMode&&e||k&&k["client"+b]||e}if(9===d.nodeType)return Math.max(d.documentElement["client"+b],d.body["scroll"+b],d.documentElement["scroll"+b],d.body["offset"+b],d.documentElement["offset"+b]);return a===h?(d=g.css(d,c),e=parseFloat(d),g.isNumeric(e)?e:d):this.css(c,"string"==typeof a?a:a+"px")}});b.jQuery=b.$=g;"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return g})})(window);
(function(b,h){function f(c,d){var k=c.nodeName.toLowerCase();if("area"===k){var k=c.parentNode,f=k.name;if(!c.href||!f||"map"!==k.nodeName.toLowerCase())return!1;k=b("img[usemap=#"+f+"]")[0];return!!k&&a(k)}return(/input|select|textarea|button|object/.test(k)?!c.disabled:"a"==k?c.href||d:d)&&a(c)}function a(a){return!b(a).parents().andSelf().filter(function(){return"hidden"===b.curCSS(this,"visibility")||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};b.ui.version||(b.extend(b.ui,{version:"1.8.16",
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}}),b.fn.extend({propAttr:b.fn.prop||b.fn.attr,_focus:b.fn.focus,focus:function(a,d){return"number"===typeof a?this.each(function(){var k=
this;setTimeout(function(){b(k).focus();d&&d.call(k)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,
"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?b(document):a},zIndex:function(a){if(a!==h)return this.css("zIndex",a);if(this.length)for(var a=b(this[0]),d;a.length&&a[0]!==document;){d=a.css("position");if("absolute"===d||"relative"===d||"fixed"===d)if(d=parseInt(a.css("zIndex"),10),!isNaN(d)&&0!==d)return d;a=a.parent()}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),b.each(["Width","Height"],function(a,d){function k(a,c,d,k){b.each(f,function(){c-=parseFloat(b.curCSS(a,"padding"+this,!0))||0;d&&(c-=parseFloat(b.curCSS(a,"border"+this+"Width",!0))||0);k&&(c-=parseFloat(b.curCSS(a,"margin"+this,!0))||0)});return c}var f="Width"===d?["Left","Right"]:["Top","Bottom"],n=d.toLowerCase(),p={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,
outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+d]=function(a){return a===h?p["inner"+d].call(this):this.each(function(){b(this).css(n,k(this,a)+"px")})};b.fn["outer"+d]=function(a,c){return"number"!==typeof a?p["outer"+d].call(this,a):this.each(function(){b(this).css(n,k(this,a,!0,c)+"px")})}}),b.extend(b.expr[":"],{data:function(a,d,k){return!!b.data(a,k[3])},focusable:function(a){return f(a,!isNaN(b.attr(a,"tabindex")))},tabbable:function(a){var d=b.attr(a,"tabindex"),k=isNaN(d);
return(k||0<=d)&&f(a,!k)}}),b(function(){var a=document.body,d=a.appendChild(d=document.createElement("div"));b.extend(d.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=100===d.offsetHeight;b.support.selectstart="onselectstart"in d;a.removeChild(d).style.display="none"}),b.extend(b.ui,{plugin:{add:function(a,d,k){var a=b.ui[a].prototype,f;for(f in k)a.plugins[f]=a.plugins[f]||[],a.plugins[f].push([d,k[f]])},call:function(a,b,k){if((b=a.plugins[b])&&a.element[0].parentNode)for(var f=
0;f<b.length;f++)a.options[b[f][0]]&&b[f][1].apply(a.element,k)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,d){if("hidden"===b(a).css("overflow"))return!1;var k=d&&"left"===d?"scrollLeft":"scrollTop",f=!1;if(0<a[k])return!0;a[k]=1;f=0<a[k];a[k]=0;return f},isOverAxis:function(a,b,k){return a>b&&a<b+k},isOver:function(a,d,k,f,h,p){return b.ui.isOverAxis(a,k,h)&&b.ui.isOverAxis(d,f,p)}}))})(jQuery);
(function(b,h){if(b.cleanData){var f=b.cleanData;b.cleanData=function(a){for(var d=0,k;null!=(k=a[d]);d++)try{b(k).triggerHandler("remove")}catch(h){}f(a)}}else{var a=b.fn.remove;b.fn.remove=function(c,d){return this.each(function(){d||(!c||b.filter(c,[this]).length)&&b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(a){}});return a.call(b(this),c,d)})}}b.widget=function(a,d,k){var f=a.split(".")[0],h,a=a.split(".")[1];h=f+"-"+a;if(!k)k=d,d=b.Widget;b.expr[":"][h]=
function(d){return!!b.data(d,a)};b[f]=b[f]||{};b[f][a]=function(a,b){arguments.length&&this._createWidget(a,b)};d=new d;d.options=b.extend(!0,{},d.options);b[f][a].prototype=b.extend(!0,d,{namespace:f,widgetName:a,widgetEventPrefix:b[f][a].prototype.widgetEventPrefix||a,widgetBaseClass:h},k);b.widget.bridge(a,b[f][a])};b.widget.bridge=function(a,d){b.fn[a]=function(k){var f="string"===typeof k,n=Array.prototype.slice.call(arguments,1),p=this,k=!f&&n.length?b.extend.apply(null,[!0,k].concat(n)):k;
if(f&&"_"===k.charAt(0))return p;f?this.each(function(){var d=b.data(this,a),f=d&&b.isFunction(d[k])?d[k].apply(d,n):d;if(f!==d&&f!==h)return p=f,!1}):this.each(function(){var f=b.data(this,a);f?f.option(k||{})._init():b.data(this,a,new d(k,this))});return p}};b.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(a,d){b.data(d,this.widgetName,this);this.element=b(d);this.options=b.extend(!0,
{},this.options,this._getCreateOptions(),a);var k=this;this.element.bind("remove."+this.widgetName,function(){k.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.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(a,d){var k=a;if(0===arguments.length)return b.extend({},this.options);if("string"===typeof a){if(d===h)return this.options[a];k={};k[a]=d}this._setOptions(k);return this},_setOptions:function(a){var d=this;b.each(a,function(a,b){d._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;"disabled"===a&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(a,d,k){var f=this.options[a],d=b.Event(d);d.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();k=k||{};if(d.originalEvent)for(var a=b.event.props.length,h;a;)h=b.event.props[--a],d[h]=d.originalEvent[h];this.element.trigger(d,k);return!(b.isFunction(f)&&!1===f.call(this.element[0],d,k)||d.isDefaultPrevented())}}})(jQuery);
(function(b){var h=!1;b(document).mouseup(function(){h=!1});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var f=this;this.element.bind("mousedown."+this.widgetName,function(a){return f._mouseDown(a)}).bind("click."+this.widgetName,function(a){if(!0===b.data(a.target,f.widgetName+".preventClickEvent"))return b.removeData(a.target,f.widgetName+".preventClickEvent"),a.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+
this.widgetName)},_mouseDown:function(f){if(!h){this._mouseStarted&&this._mouseUp(f);this._mouseDownEvent=f;var a=this,c=1==f.which,d="string"==typeof this.options.cancel&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:!1;if(!c||d||!this._mouseCapture(f))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){a.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)&&(this._mouseStarted=
!1!==this._mouseStart(f),!this._mouseStarted))return f.preventDefault(),!0;!0===b.data(f.target,this.widgetName+".preventClickEvent")&&b.removeData(f.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(b){return a._mouseMove(b)};this._mouseUpDelegate=function(b){return a._mouseUp(b)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();return h=!0}},_mouseMove:function(f){if(b.browser.msie&&
!(9<=document.documentMode)&&!f.button)return this._mouseUp(f);if(this._mouseStarted)return this._mouseDrag(f),f.preventDefault();if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f))(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,f))?this._mouseDrag(f):this._mouseUp(f);return!this._mouseStarted},_mouseUp:function(f){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
!1,f.target==this._mouseDownEvent.target&&b.data(f.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(f);return!1},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(b){b.ui=b.ui||{};var h=/left|center|right/,f=/top|center|bottom/,a=b.fn.position,c=b.fn.offset;b.fn.position=function(c){if(!c||!c.of)return a.apply(this,arguments);var c=b.extend({},c),k=b(c.of),l=k[0],n=(c.collision||"flip").split(" "),p=c.offset?c.offset.split(" "):[0,0],m,o,e;9===l.nodeType?(m=k.width(),o=k.height(),e={top:0,left:0}):l.setTimeout?(m=k.width(),o=k.height(),e={top:k.scrollTop(),left:k.scrollLeft()}):l.preventDefault?(c.at="left top",m=o=0,e={top:c.of.pageY,left:c.of.pageX}):
(m=k.outerWidth(),o=k.outerHeight(),e=k.offset());b.each(["my","at"],function(){var a=(c[this]||"").split(" ");1===a.length&&(a=h.test(a[0])?a.concat(["center"]):f.test(a[0])?["center"].concat(a):["center","center"]);a[0]=h.test(a[0])?a[0]:"center";a[1]=f.test(a[1])?a[1]:"center";c[this]=a});1===n.length&&(n[1]=n[0]);p[0]=parseInt(p[0],10)||0;1===p.length&&(p[1]=p[0]);p[1]=parseInt(p[1],10)||0;"right"===c.at[0]?e.left+=m:"center"===c.at[0]&&(e.left+=m/2);"bottom"===c.at[1]?e.top+=o:"center"===c.at[1]&&
(e.top+=o/2);e.left+=p[0];e.top+=p[1];return this.each(function(){var a=b(this),k=a.outerWidth(),f=a.outerHeight(),h=parseInt(b.curCSS(this,"marginLeft",!0))||0,l=parseInt(b.curCSS(this,"marginTop",!0))||0,u=k+h+(parseInt(b.curCSS(this,"marginRight",!0))||0),x=f+l+(parseInt(b.curCSS(this,"marginBottom",!0))||0),y=b.extend({},e),E;"right"===c.my[0]?y.left-=k:"center"===c.my[0]&&(y.left-=k/2);"bottom"===c.my[1]?y.top-=f:"center"===c.my[1]&&(y.top-=f/2);y.left=Math.round(y.left);y.top=Math.round(y.top);
E={left:y.left-h,top:y.top-l};b.each(["left","top"],function(a,e){if(b.ui.position[n[a]])b.ui.position[n[a]][e](y,{targetWidth:m,targetHeight:o,elemWidth:k,elemHeight:f,collisionPosition:E,collisionWidth:u,collisionHeight:x,offset:p,my:c.my,at:c.at})});b.fn.bgiframe&&a.bgiframe();a.offset(b.extend(y,{using:c.using}))})};b.ui.position={fit:{left:function(a,c){var f=b(window),f=c.collisionPosition.left+c.collisionWidth-f.width()-f.scrollLeft();a.left=0<f?a.left-f:Math.max(a.left-c.collisionPosition.left,
a.left)},top:function(a,c){var f=b(window),f=c.collisionPosition.top+c.collisionHeight-f.height()-f.scrollTop();a.top=0<f?a.top-f:Math.max(a.top-c.collisionPosition.top,a.top)}},flip:{left:function(a,c){if("center"!==c.at[0]){var f=b(window),f=c.collisionPosition.left+c.collisionWidth-f.width()-f.scrollLeft(),h="left"===c.my[0]?-c.elemWidth:"right"===c.my[0]?c.elemWidth:0,p="left"===c.at[0]?c.targetWidth:-c.targetWidth,m=-2*c.offset[0];a.left+=0>c.collisionPosition.left?h+p+m:0<f?h+p+m:0}},top:function(a,
c){if("center"!==c.at[1]){var f=b(window),f=c.collisionPosition.top+c.collisionHeight-f.height()-f.scrollTop(),h="top"===c.my[1]?-c.elemHeight:"bottom"===c.my[1]?c.elemHeight:0,p="top"===c.at[1]?c.targetHeight:-c.targetHeight,m=-2*c.offset[1];a.top+=0>c.collisionPosition.top?h+p+m:0<f?h+p+m:0}}}};if(!b.offset.setOffset)b.offset.setOffset=function(a,c){if(/static/.test(b.curCSS(a,"position")))a.style.position="relative";var f=b(a),h=f.offset(),p=parseInt(b.curCSS(a,"top",!0),10)||0,m=parseInt(b.curCSS(a,
"left",!0),10)||0,h={top:c.top-h.top+p,left:c.left-h.left+m};"using"in c?c.using.call(a,h):f.css(h)},b.fn.offset=function(a){var f=this[0];return!f||!f.ownerDocument?null:a?this.each(function(){b.offset.setOffset(this,a)}):c.call(this)}})(jQuery);
(function(b){b.widget("ui.draggable",b.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(){if("original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(h){var f=this.options;if(this.helper||f.disabled||b(h.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(h);if(!this.handle)return!1;f.iframeFix&&b(!0===f.iframeFix?"iframe":f.iframeFix).each(function(){b('<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(b(this).offset()).appendTo("body")});return!0},_mouseStart:function(h){var f=this.options;this.helper=this._createHelper(h);this._cacheHelperProportions();if(b.ui.ddmanager)b.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};b.extend(this.offset,{click:{left:h.pageX-this.offset.left,top:h.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(h);this.originalPageX=h.pageX;
this.originalPageY=h.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();if(!1===this._trigger("start",h))return this._clear(),!1;this._cacheHelperProportions();b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,h);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(h,!0);b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,h);return!0},_mouseDrag:function(h,f){this.position=this._generatePosition(h);this.positionAbs=this._convertPositionTo("absolute");
if(!f){var a=this._uiHash();if(!1===this._trigger("drag",h,a))return this._mouseUp({}),!1;this.position=a.position}if(!this.options.axis||"y"!=this.options.axis)this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||"x"!=this.options.axis)this.helper[0].style.top=this.position.top+"px";b.ui.ddmanager&&b.ui.ddmanager.drag(this,h);return!1},_mouseStop:function(h){var f=!1;b.ui.ddmanager&&!this.options.dropBehaviour&&(f=b.ui.ddmanager.drop(this,h));if(this.dropped)f=this.dropped,this.dropped=
!1;if((!this.element[0]||!this.element[0].parentNode)&&"original"==this.options.helper)return!1;if("invalid"==this.options.revert&&!f||"valid"==this.options.revert&&f||!0===this.options.revert||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==a._trigger("stop",h)&&a._clear()})}else!1!==this._trigger("stop",h)&&this._clear();return!1},_mouseUp:function(h){!0===
this.options.iframeFix&&b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,h);return b.ui.mouse.prototype._mouseUp.call(this,h)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(h){var f=!this.options.handle||!b(this.options.handle,this.element).length?!0:!1;b(this.options.handle,this.element).find("*").andSelf().each(function(){this==h.target&&(f=
!0)});return f},_createHelper:function(h){var f=this.options,h=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[h])):"clone"==f.helper?this.element.clone().removeAttr("id"):this.element;h.parents("body").length||h.appendTo("parent"==f.appendTo?this.element[0].parentNode:f.appendTo);h[0]!=this.element[0]&&!/(fixed|absolute)/.test(h.css("position"))&&h.css("position","absolute");return h},_adjustOffsetFromHelper:function(h){"string"==typeof h&&(h=h.split(" "));b.isArray(h)&&(h={left:+h[0],top:+h[1]||
0});if("left"in h)this.offset.click.left=h.left+this.margins.left;if("right"in h)this.offset.click.left=this.helperProportions.width-h.right+this.margins.left;if("top"in h)this.offset.click.top=h.top+this.margins.top;if("bottom"in h)this.offset.click.top=this.helperProportions.height-h.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var h=this.offsetParent.offset();"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],
this.offsetParent[0])&&(h.left+=this.scrollParent.scrollLeft(),h.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&b.browser.msie)h={top:0,left:0};return{top:h.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:h.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var b=this.element.position();return{top:b.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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 h=this.options;if("parent"==h.containment)h.containment=this.helper[0].parentNode;if("document"==h.containment||"window"==h.containment)this.containment=["document"==h.containment?0:b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==h.containment?0:b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==h.containment?0:b(window).scrollLeft())+b("document"==h.containment?document:
window).width()-this.helperProportions.width-this.margins.left,("document"==h.containment?0:b(window).scrollTop())+(b("document"==h.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(h.containment)&&h.containment.constructor!=Array){var h=b(h.containment),f=h[0];if(f){h.offset();var a="hidden"!=b(f).css("overflow");this.containment=[(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),
10)||0),(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0),(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];
this.relative_container=h}}else if(h.containment.constructor==Array)this.containment=h.containment},_convertPositionTo:function(h,f){if(!f)f=this.position;var a="absolute"==h?1:-1,c="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(c[0].tagName);return{top:f.top+this.offset.relative.top*a+this.offset.parent.top*a-(b.browser.safari&&526>b.browser.version&&"fixed"==this.cssPosition?
0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():d?0:c.scrollTop())*a),left:f.left+this.offset.relative.left*a+this.offset.parent.left*a-(b.browser.safari&&526>b.browser.version&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():d?0:c.scrollLeft())*a)}},_generatePosition:function(h){var f=this.options,a="absolute"==this.cssPosition&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,
c=/(html|body)/i.test(a[0].tagName),d=h.pageX,k=h.pageY;if(this.originalPosition){var l;if(this.containment)this.relative_container?(l=this.relative_container.offset(),l=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]):l=this.containment,h.pageX-this.offset.click.left<l[0]&&(d=l[0]+this.offset.click.left),h.pageY-this.offset.click.top<l[1]&&(k=l[1]+this.offset.click.top),h.pageX-this.offset.click.left>l[2]&&(d=l[2]+this.offset.click.left),
h.pageY-this.offset.click.top>l[3]&&(k=l[3]+this.offset.click.top);f.grid&&(k=f.grid[1]?this.originalPageY+Math.round((k-this.originalPageY)/f.grid[1])*f.grid[1]:this.originalPageY,k=l?!(k-this.offset.click.top<l[1]||k-this.offset.click.top>l[3])?k:!(k-this.offset.click.top<l[1])?k-f.grid[1]:k+f.grid[1]:k,d=f.grid[0]?this.originalPageX+Math.round((d-this.originalPageX)/f.grid[0])*f.grid[0]:this.originalPageX,d=l?!(d-this.offset.click.left<l[0]||d-this.offset.click.left>l[2])?d:!(d-this.offset.click.left<
l[0])?d-f.grid[0]:d+f.grid[0]:d)}return{top:k-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&526>b.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():c?0:a.scrollTop()),left:d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&526>b.browser.version&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():c?0:a.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(h,f,a){a=a||this._uiHash();b.ui.plugin.call(this,h,[f,a]);if("drag"==h)this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,h,f,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.16"});
b.ui.plugin.add("draggable","connectToSortable",{start:function(h,f){var a=b(this).data("draggable"),c=a.options,d=b.extend({},f,{item:a.element});a.sortables=[];b(c.connectToSortable).each(function(){var c=b.data(this,"sortable");c&&!c.options.disabled&&(a.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",h,d))})},stop:function(h,f){var a=b(this).data("draggable"),c=b.extend({},f,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;a.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;"original"==a.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",h,c)})},drag:function(h,f){var a=b(this).data("draggable"),c=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;
this.instance.helperProportions=a.helperProportions;this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=b(c).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 f.helper[0]},h.target=this.instance.currentItem[0],this.instance._mouseCapture(h,
!0),this.instance._mouseStart(h,!0,!0),this.instance.offset.click.top=a.offset.click.top,this.instance.offset.click.left=a.offset.click.left,this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top,a._trigger("toSortable",h),a.dropped=this.instance.element,a.currentItem=a.element,this.instance.fromOutside=a;this.instance.currentItem&&this.instance._mouseDrag(h)}else if(this.instance.isOver)this.instance.isOver=
0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",h,this.instance._uiHash(this.instance)),this.instance._mouseStop(h,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),a._trigger("fromSortable",h),a.dropped=!1})}});b.ui.plugin.add("draggable","cursor",{start:function(){var h=b("body"),f=b(this).data("draggable").options;if(h.css("cursor"))f._cursor=
h.css("cursor");h.css("cursor",f.cursor)},stop:function(){var h=b(this).data("draggable").options;h._cursor&&b("body").css("cursor",h._cursor)}});b.ui.plugin.add("draggable","opacity",{start:function(h,f){var a=b(f.helper),c=b(this).data("draggable").options;if(a.css("opacity"))c._opacity=a.css("opacity");a.css("opacity",c.opacity)},stop:function(h,f){var a=b(this).data("draggable").options;a._opacity&&b(f.helper).css("opacity",a._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var h=
b(this).data("draggable");if(h.scrollParent[0]!=document&&"HTML"!=h.scrollParent[0].tagName)h.overflowOffset=h.scrollParent.offset()},drag:function(h){var f=b(this).data("draggable"),a=f.options,c=!1;if(f.scrollParent[0]!=document&&"HTML"!=f.scrollParent[0].tagName){if(!a.axis||"x"!=a.axis)if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-h.pageY<a.scrollSensitivity)f.scrollParent[0].scrollTop=c=f.scrollParent[0].scrollTop+a.scrollSpeed;else if(h.pageY-f.overflowOffset.top<a.scrollSensitivity)f.scrollParent[0].scrollTop=
c=f.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||"y"!=a.axis)if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-h.pageX<a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft+a.scrollSpeed;else if(h.pageX-f.overflowOffset.left<a.scrollSensitivity)f.scrollParent[0].scrollLeft=c=f.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||"x"!=a.axis)h.pageY-b(document).scrollTop()<a.scrollSensitivity?c=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed):
b(window).height()-(h.pageY-b(document).scrollTop())<a.scrollSensitivity&&(c=b(document).scrollTop(b(document).scrollTop()+a.scrollSpeed));if(!a.axis||"y"!=a.axis)h.pageX-b(document).scrollLeft()<a.scrollSensitivity?c=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed):b(window).width()-(h.pageX-b(document).scrollLeft())<a.scrollSensitivity&&(c=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed))}!1!==c&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(f,h)}});
b.ui.plugin.add("draggable","snap",{start:function(){var h=b(this).data("draggable"),f=h.options;h.snapElements=[];b(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var a=b(this),c=a.offset();this!=h.element[0]&&h.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:c.top,left:c.left})})},drag:function(h,f){for(var a=b(this).data("draggable"),c=a.options,d=c.snapTolerance,k=f.offset.left,l=k+a.helperProportions.width,n=f.offset.top,p=n+a.helperProportions.height,
m=a.snapElements.length-1;0<=m;m--){var o=a.snapElements[m].left,e=o+a.snapElements[m].width,w=a.snapElements[m].top,v=w+a.snapElements[m].height;if(o-d<k&&k<e+d&&w-d<n&&n<v+d||o-d<k&&k<e+d&&w-d<p&&p<v+d||o-d<l&&l<e+d&&w-d<n&&n<v+d||o-d<l&&l<e+d&&w-d<p&&p<v+d){if("inner"!=c.snapMode){var s=Math.abs(w-p)<=d,q=Math.abs(v-n)<=d,r=Math.abs(o-l)<=d,u=Math.abs(e-k)<=d;if(s)f.position.top=a._convertPositionTo("relative",{top:w-a.helperProportions.height,left:0}).top-a.margins.top;if(q)f.position.top=a._convertPositionTo("relative",
{top:v,left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",{top:0,left:o-a.helperProportions.width}).left-a.margins.left;if(u)f.position.left=a._convertPositionTo("relative",{top:0,left:e}).left-a.margins.left}var x=s||q||r||u;if("outer"!=c.snapMode){s=Math.abs(w-n)<=d;q=Math.abs(v-p)<=d;r=Math.abs(o-k)<=d;u=Math.abs(e-l)<=d;if(s)f.position.top=a._convertPositionTo("relative",{top:w,left:0}).top-a.margins.top;if(q)f.position.top=a._convertPositionTo("relative",{top:v-a.helperProportions.height,
left:0}).top-a.margins.top;if(r)f.position.left=a._convertPositionTo("relative",{top:0,left:o}).left-a.margins.left;if(u)f.position.left=a._convertPositionTo("relative",{top:0,left:e-a.helperProportions.width}).left-a.margins.left}!a.snapElements[m].snapping&&(s||q||r||u||x)&&a.options.snap.snap&&a.options.snap.snap.call(a.element,h,b.extend(a._uiHash(),{snapItem:a.snapElements[m].item}));a.snapElements[m].snapping=s||q||r||u||x}else a.snapElements[m].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,
h,b.extend(a._uiHash(),{snapItem:a.snapElements[m].item})),a.snapElements[m].snapping=!1}}});b.ui.plugin.add("draggable","stack",{start:function(){var h=b(this).data("draggable").options,h=b.makeArray(b(h.stack)).sort(function(a,c){return(parseInt(b(a).css("zIndex"),10)||0)-(parseInt(b(c).css("zIndex"),10)||0)});if(h.length){var f=parseInt(h[0].style.zIndex)||0;b(h).each(function(a){this.style.zIndex=f+a});this[0].style.zIndex=f+h.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(h,
f){var a=b(f.helper),c=b(this).data("draggable").options;if(a.css("zIndex"))c._zIndex=a.css("zIndex");a.css("zIndex",c.zIndex)},stop:function(h,f){var a=b(this).data("draggable").options;a._zIndex&&b(f.helper).css("zIndex",a._zIndex)}})})(jQuery);
(function(b){b.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var h=this.options,f=h.accept;this.isover=0;this.isout=1;this.accept=b.isFunction(f)?f:function(a){return a.is(f)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[h.scope]=b.ui.ddmanager.droppables[h.scope]||[];b.ui.ddmanager.droppables[h.scope].push(this);
h.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var h=b.ui.ddmanager.droppables[this.options.scope],f=0;f<h.length;f++)h[f]==this&&h.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(h,f){if("accept"==h)this.accept=b.isFunction(f)?f:function(a){return a.is(f)};b.Widget.prototype._setOption.apply(this,arguments)},_activate:function(h){var f=b.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);f&&this._trigger("activate",h,this.ui(f))},_deactivate:function(h){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",h,this.ui(f))},_over:function(h){var f=b.ui.ddmanager.current;if(f&&(f.currentItem||f.element)[0]!=this.element[0])if(this.accept.call(this.element[0],f.currentItem||f.element))this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",
h,this.ui(f))},_out:function(h){var f=b.ui.ddmanager.current;if(f&&(f.currentItem||f.element)[0]!=this.element[0])if(this.accept.call(this.element[0],f.currentItem||f.element))this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",h,this.ui(f))},_drop:function(h,f){var a=f||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return!1;var c=!1;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=b.data(this,
"droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope==a.options.scope&&d.accept.call(d.element[0],a.currentItem||a.element)&&b.ui.intersect(a,b.extend(d,{offset:d.element.offset()}),d.options.tolerance))return c=!0,!1});if(c)return!1;return this.accept.call(this.element[0],a.currentItem||a.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",h,this.ui(a)),
this.element):!1},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});b.extend(b.ui.droppable,{version:"1.8.16"});b.ui.intersect=function(h,f,a){if(!f.offset)return!1;var c=(h.positionAbs||h.position.absolute).left,d=c+h.helperProportions.width,k=(h.positionAbs||h.position.absolute).top,l=k+h.helperProportions.height,n=f.offset.left,p=n+f.proportions.width,m=f.offset.top,o=m+f.proportions.height;switch(a){case "fit":return n<=c&&d<=
p&&m<=k&&l<=o;case "intersect":return n<c+h.helperProportions.width/2&&d-h.helperProportions.width/2<p&&m<k+h.helperProportions.height/2&&l-h.helperProportions.height/2<o;case "pointer":return b.ui.isOver((h.positionAbs||h.position.absolute).top+(h.clickOffset||h.offset.click).top,(h.positionAbs||h.position.absolute).left+(h.clickOffset||h.offset.click).left,m,n,f.proportions.height,f.proportions.width);case "touch":return(k>=m&&k<=o||l>=m&&l<=o||k<m&&l>o)&&(c>=n&&c<=p||d>=n&&d<=p||c<n&&d>p);default:return!1}};
b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(h,f){var a=b.ui.ddmanager.droppables[h.options.scope]||[],c=f?f.type:null,d=(h.currentItem||h.element).find(":data(droppable)").andSelf(),k=0;a:for(;k<a.length;k++)if(!(a[k].options.disabled||h&&!a[k].accept.call(a[k].element[0],h.currentItem||h.element))){for(var l=0;l<d.length;l++)if(d[l]==a[k].element[0]){a[k].proportions.height=0;continue a}a[k].visible="none"!=a[k].element.css("display");if(a[k].visible)"mousedown"==
c&&a[k]._activate.call(a[k],f),a[k].offset=a[k].element.offset(),a[k].proportions={width:a[k].element[0].offsetWidth,height:a[k].element[0].offsetHeight}}},drop:function(h,f){var a=!1;b.each(b.ui.ddmanager.droppables[h.options.scope]||[],function(){if(this.options&&(!this.options.disabled&&this.visible&&b.ui.intersect(h,this,this.options.tolerance)&&(a=a||this._drop.call(this,f)),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],h.currentItem||h.element)))this.isout=1,this.isover=
0,this._deactivate.call(this,f)});return a},dragStart:function(h,f){h.element.parents(":not(body,html)").bind("scroll.droppable",function(){h.options.refreshPositions||b.ui.ddmanager.prepareOffsets(h,f)})},drag:function(h,f){h.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(h,f);b.each(b.ui.ddmanager.droppables[h.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var a=b.ui.intersect(h,this,this.options.tolerance);if(a=!a&&1==this.isover?"isout":a&&0==
this.isover?"isover":null){var c;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length)c=b.data(d[0],"droppable"),c.greedyChild="isover"==a?1:0}if(c&&"isover"==a)c.isover=0,c.isout=1,c._out.call(c,f);this[a]=1;this["isout"==a?"isover":"isout"]=0;this["isover"==a?"_over":"_out"].call(this,f);if(c&&"isout"==a)c.isout=0,c.isover=1,c._over.call(c,f)}}})},dragStop:function(h,f){h.element.parents(":not(body,html)").unbind("scroll.droppable");h.options.refreshPositions||
b.ui.ddmanager.prepareOffsets(h,f)}}})(jQuery);
(function(b){b.widget("ui.resizable",b.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 a=this,c=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],
_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i))/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"}),this.element.wrap(b('<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=c.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if("all"==
this.handles)this.handles="n,e,s,w,se,sw,ne,nw";var d=this.handles.split(",");this.handles={};for(var f=0;f<d.length;f++){var h=b.trim(d[f]),n=b('<div class="ui-resizable-handle ui-resizable-'+h+'"></div>');/sw|se|ne|nw/.test(h)&&n.css({zIndex:++c.zIndex});"se"==h&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[h]=".ui-resizable-"+h;this.element.append(n)}}this._renderAxis=function(a){var a=a||this.element,c;for(c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=
b(this.handles[c],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=b(this.handles[c],this.element),e=0,e=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),d=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");a.css(d,e);this._proportionallyResize()}b(this.handles[c])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!a.resizing){if(this.className)var b=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);a.axis=b&&b[1]?b[1]:"se"}});c.autoHide&&(this._handles.hide(),b(this.element).addClass("ui-resizable-autohide").hover(function(){c.disabled||(b(this).removeClass("ui-resizable-autohide"),a._handles.show())},function(){!c.disabled&&!a.resizing&&(b(this).addClass("ui-resizable-autohide"),a._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy();
var a=function(a){b(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){a(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);a(this.originalElement);return this},_mouseCapture:function(a){var c=
!1,d;for(d in this.handles)b(this.handles[d])[0]==a.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(a){var c=this.options,d=this.element.position(),f=this.element;this.resizing=!0;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};(f.is(".ui-draggable")||/absolute/.test(f.css("position")))&&f.css({position:"absolute",top:d.top,left:d.left});b.browser.opera&&/relative/.test(f.css("position"))&&f.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();
var d=h(this.helper.css("left")),l=h(this.helper.css("top"));c.containment&&(d+=b(c.containment).scrollLeft()||0,l+=b(c.containment).scrollTop()||0);this.offset=this.helper.offset();this.position={left:d,top:l};this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()};this.originalPosition={left:d,top:l};this.sizeDiff={width:f.outerWidth()-
f.width(),height:f.outerHeight()-f.height()};this.originalMousePosition={left:a.pageX,top:a.pageY};this.aspectRatio="number"==typeof c.aspectRatio?c.aspectRatio:this.originalSize.width/this.originalSize.height||1;c=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor","auto"==c?this.axis+"-resize":c);f.addClass("ui-resizable-resizing");this._propagate("start",a);return!0},_mouseDrag:function(a){var b=this.helper,d=this.originalMousePosition,f=this._change[this.axis];if(!f)return!1;d=
f.apply(this,[a,a.pageX-d.left||0,a.pageY-d.top||0]);this._updateVirtualBoundaries(a.shiftKey);if(this._aspectRatio||a.shiftKey)d=this._updateRatio(d,a);d=this._respectSize(d,a);this._propagate("resize",a);b.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(d);this._trigger("resize",a,this.ui());return!1},_mouseStop:function(a){this.resizing=
!1;var c=this.options;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),d=f&&b.ui.hasScroll(d[0],"left")?0:this.sizeDiff.height,f=f?0:this.sizeDiff.width,f={width:this.helper.width()-f,height:this.helper.height()-d},d=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null,h=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;c.animate||this.element.css(b.extend(f,{top:h,left:d}));
this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!c.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",a);this._helper&&this.helper.remove();return!1},_updateVirtualBoundaries:function(a){var b=this.options,d,k,h,b={minWidth:f(b.minWidth)?b.minWidth:0,maxWidth:f(b.maxWidth)?b.maxWidth:Infinity,minHeight:f(b.minHeight)?b.minHeight:0,maxHeight:f(b.maxHeight)?b.maxHeight:Infinity};
if(this._aspectRatio||a){a=b.minHeight*this.aspectRatio;k=b.minWidth/this.aspectRatio;d=b.maxHeight*this.aspectRatio;h=b.maxWidth/this.aspectRatio;if(a>b.minWidth)b.minWidth=a;if(k>b.minHeight)b.minHeight=k;if(d<b.maxWidth)b.maxWidth=d;if(h<b.maxHeight)b.maxHeight=h}this._vBoundaries=b},_updateCache:function(a){this.offset=this.helper.offset();if(f(a.left))this.position.left=a.left;if(f(a.top))this.position.top=a.top;if(f(a.height))this.size.height=a.height;if(f(a.width))this.size.width=a.width},
_updateRatio:function(a){var b=this.position,d=this.size,k=this.axis;if(f(a.height))a.width=a.height*this.aspectRatio;else if(f(a.width))a.height=a.width/this.aspectRatio;if("sw"==k)a.left=b.left+(d.width-a.width),a.top=null;if("nw"==k)a.top=b.top+(d.height-a.height),a.left=b.left+(d.width-a.width);return a},_respectSize:function(a){var b=this._vBoundaries,d=this.axis,k=f(a.width)&&b.maxWidth&&b.maxWidth<a.width,h=f(a.height)&&b.maxHeight&&b.maxHeight<a.height,n=f(a.width)&&b.minWidth&&b.minWidth>
a.width,p=f(a.height)&&b.minHeight&&b.minHeight>a.height;if(n)a.width=b.minWidth;if(p)a.height=b.minHeight;if(k)a.width=b.maxWidth;if(h)a.height=b.maxHeight;var m=this.originalPosition.left+this.originalSize.width,o=this.position.top+this.size.height,e=/sw|nw|w/.test(d),d=/nw|ne|n/.test(d);if(n&&e)a.left=m-b.minWidth;if(k&&e)a.left=m-b.maxWidth;if(p&&d)a.top=o-b.minHeight;if(h&&d)a.top=o-b.maxHeight;if((b=!a.width&&!a.height)&&!a.left&&a.top)a.top=null;else if(b&&!a.top&&a.left)a.left=null;return a},
_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var a=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var d=this._proportionallyResizeElements[c];if(!this.borderDif){var f=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],h=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=b.map(f,function(a,b){var c=parseInt(a,10)||0,d=parseInt(h[b],
10)||0;return c+d})}if(!b.browser.msie||!b(a).is(":hidden")&&!b(a).parents(":hidden").length)d.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var a=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var c=b.browser.msie&&7>b.browser.version,d=c?1:0,c=c?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++a.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,d){return{top:this.originalPosition.top+d,height:this.originalSize.height-d}},s:function(a,b,d){return{height:this.originalSize.height+
d}},se:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},sw:function(a,c,d){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[a,c,d]))},ne:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[a,c,d]))},nw:function(a,c,d){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[a,c,d]))}},_propagate:function(a,c){b.ui.plugin.call(this,a,[c,this.ui()]);
"resize"!=a&&this._trigger(a,c,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}}});b.extend(b.ui.resizable,{version:"1.8.16"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var a=b(this).data("resizable").options,c=function(a){b(a).each(function(){var a=b(this);a.data("resizable-alsoresize",{width:parseInt(a.width(),
10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),10),position:a.css("position")})})};"object"==typeof a.alsoResize&&!a.alsoResize.parentNode?a.alsoResize.length?(a.alsoResize=a.alsoResize[0],c(a.alsoResize)):b.each(a.alsoResize,function(a){c(a)}):c(a.alsoResize)},resize:function(a,c){var d=b(this).data("resizable"),f=d.options,h=d.originalSize,n=d.originalPosition,p={height:d.size.height-h.height||0,width:d.size.width-h.width||0,top:d.position.top-n.top||
0,left:d.position.left-n.left||0},m=function(a,e){b(a).each(function(){var a=b(this),f=b(this).data("resizable-alsoresize"),h={},k=e&&e.length?e:a.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];b.each(k,function(a,b){var c=(f[b]||0)+(p[b]||0);c&&0<=c&&(h[b]=c||null)});if(b.browser.opera&&/relative/.test(a.css("position")))d._revertToRelativePosition=!0,a.css({position:"absolute",top:"auto",left:"auto"});a.css(h)})};"object"==typeof f.alsoResize&&!f.alsoResize.nodeType?
b.each(f.alsoResize,function(a,b){m(a,b)}):m(f.alsoResize)},stop:function(){var a=b(this).data("resizable"),c=a.options,d=function(a){b(a).each(function(){var a=b(this);a.css({position:a.data("resizable-alsoresize").position})})};if(a._revertToRelativePosition)a._revertToRelativePosition=!1,"object"==typeof c.alsoResize&&!c.alsoResize.nodeType?b.each(c.alsoResize,function(a){d(a)}):d(c.alsoResize);b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(a){var c=
b(this).data("resizable"),d=c.options,f=c._proportionallyResizeElements,h=f.length&&/textarea/i.test(f[0].nodeName),n=h&&b.ui.hasScroll(f[0],"left")?0:c.sizeDiff.height,h={width:c.size.width-(h?0:c.sizeDiff.width),height:c.size.height-n},n=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,p=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(b.extend(h,p&&n?{top:p,left:n}:{}),{duration:d.animateDuration,easing:d.animateEasing,
step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};f&&f.length&&b(f[0]).css({width:d.width,height:d.height});c._updateCache(d);c._propagate("resize",a)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var a=b(this).data("resizable"),c=a.element,d=a.options.containment;if(c=d instanceof b?d.get(0):/parent/.test(d)?c.parent().get(0):d)if(a.containerElement=
b(c),/document/.test(d)||d==document)a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight};else{var f=b(c),l=[];b(["Top","Right","Left","Bottom"]).each(function(a,b){l[a]=h(f.css("padding"+b))});a.containerOffset=f.offset();a.containerPosition=f.position();a.containerSize={height:f.innerHeight()-l[3],width:f.innerWidth()-l[1]};var d=a.containerOffset,
n=a.containerSize.height,p=a.containerSize.width,p=b.ui.hasScroll(c,"left")?c.scrollWidth:p,n=b.ui.hasScroll(c)?c.scrollHeight:n;a.parentData={element:c,left:d.left,top:d.top,width:p,height:n}}},resize:function(a){var c=b(this).data("resizable"),d=c.options,f=c.containerOffset,h=c.position,a=c._aspectRatio||a.shiftKey,n={top:0,left:0},p=c.containerElement;p[0]!=document&&/static/.test(p.css("position"))&&(n=f);if(h.left<(c._helper?f.left:0)){c.size.width+=c._helper?c.position.left-f.left:c.position.left-
n.left;if(a)c.size.height=c.size.width/d.aspectRatio;c.position.left=d.helper?f.left:0}if(h.top<(c._helper?f.top:0)){c.size.height+=c._helper?c.position.top-f.top:c.position.top;if(a)c.size.width=c.size.height*d.aspectRatio;c.position.top=c._helper?f.top:0}c.offset.left=c.parentData.left+c.position.left;c.offset.top=c.parentData.top+c.position.top;d=Math.abs((c._helper?c.offset.left-n.left:c.offset.left-n.left)+c.sizeDiff.width);f=Math.abs((c._helper?c.offset.top-n.top:c.offset.top-f.top)+c.sizeDiff.height);
h=c.containerElement.get(0)==c.element.parent().get(0);n=/relative|absolute/.test(c.containerElement.css("position"));h&&n&&(d-=c.parentData.left);if(d+c.size.width>=c.parentData.width&&(c.size.width=c.parentData.width-d,a))c.size.height=c.size.width/c.aspectRatio;if(f+c.size.height>=c.parentData.height&&(c.size.height=c.parentData.height-f,a))c.size.width=c.size.height*c.aspectRatio},stop:function(){var a=b(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.containerPosition,h=a.containerElement,
n=b(a.helper),p=n.offset(),m=n.outerWidth()-a.sizeDiff.width,n=n.outerHeight()-a.sizeDiff.height;a._helper&&!c.animate&&/relative/.test(h.css("position"))&&b(this).css({left:p.left-f.left-d.left,width:m,height:n});a._helper&&!c.animate&&/static/.test(h.css("position"))&&b(this).css({left:p.left-f.left-d.left,width:m,height:n})}});b.ui.plugin.add("resizable","ghost",{start:function(){var a=b(this).data("resizable"),c=a.options,d=a.size;a.ghost=a.originalElement.clone();a.ghost.css({opacity:0.25,display:"block",
position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:"");a.ghost.appendTo(a.helper)},resize:function(){var a=b(this).data("resizable");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=b(this).data("resizable");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var a=b(this).data("resizable"),
c=a.options,d=a.size,f=a.originalSize,h=a.originalPosition,n=a.axis;c.grid="number"==typeof c.grid?[c.grid,c.grid]:c.grid;var p=Math.round((d.width-f.width)/(c.grid[0]||1))*(c.grid[0]||1),c=Math.round((d.height-f.height)/(c.grid[1]||1))*(c.grid[1]||1);/^(se|s|e)$/.test(n)?(a.size.width=f.width+p,a.size.height=f.height+c):/^(ne)$/.test(n)?(a.size.width=f.width+p,a.size.height=f.height+c,a.position.top=h.top-c):(/^(sw)$/.test(n)?(a.size.width=f.width+p,a.size.height=f.height+c):(a.size.width=f.width+
p,a.size.height=f.height+c,a.position.top=h.top-c),a.position.left=h.left-p)}});var h=function(a){return parseInt(a,10)||0},f=function(a){return!isNaN(parseInt(a,10))}})(jQuery);
(function(b){var h=0;b.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 f=this,a=this.element[0].ownerDocument,c;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!f.options.disabled&&!f.element.propAttr("readOnly")){c=
!1;var h=b.ui.keyCode;switch(a.keyCode){case h.PAGE_UP:f._move("previousPage",a);break;case h.PAGE_DOWN:f._move("nextPage",a);break;case h.UP:f._move("previous",a);a.preventDefault();break;case h.DOWN:f._move("next",a);a.preventDefault();break;case h.ENTER:case h.NUMPAD_ENTER:f.menu.active&&(c=!0,a.preventDefault());case h.TAB:if(!f.menu.active)break;f.menu.select(a);break;case h.ESCAPE:f.element.val(f.term);f.close(a);break;default:clearTimeout(f.searching),f.searching=setTimeout(function(){if(f.term!=
f.element.val())f.selectedItem=null,f.search(null,a)},f.options.delay)}}}).bind("keypress.autocomplete",function(a){c&&(c=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(!f.options.disabled)f.selectedItem=null,f.previous=f.element.val()}).bind("blur.autocomplete",function(a){if(!f.options.disabled)clearTimeout(f.searching),f.closing=setTimeout(function(){f.close(a);f._change(a)},150)});this._initSource();this.response=function(){return f._response.apply(f,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||
"body",a)[0]).mousedown(function(a){var c=f.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(a){a.target!==f.element[0]&&a.target!==c&&!b.ui.contains(c,a.target)&&f.close()})},1);setTimeout(function(){clearTimeout(f.closing)},13)}).menu({focus:function(a,b){var c=b.item.data("item.autocomplete");!1!==f._trigger("focus",a,{item:c})&&/^key/.test(a.originalEvent.type)&&f.element.val(c.value)},selected:function(b,c){var h=c.item.data("item.autocomplete"),
n=f.previous;if(f.element[0]!==a.activeElement)f.element.focus(),f.previous=n,setTimeout(function(){f.previous=n;f.selectedItem=h},1);!1!==f._trigger("select",b,{item:h})&&f.element.val(h.value);f.term=f.element.val();f.close(b);f.selectedItem=h},blur:function(){f.menu.element.is(":visible")&&f.element.val()!==f.term&&f.element.val(f.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(f,a){b.Widget.prototype._setOption.apply(this,arguments);"source"===f&&this._initSource();"appendTo"===f&&this.menu.element.appendTo(b(a||"body",this.element[0].ownerDocument)[0]);"disabled"===f&&a&&this.xhr&&this.xhr.abort()},_initSource:function(){var f=this,a,c;b.isArray(this.options.source)?(a=this.options.source,this.source=function(c,f){f(b.ui.autocomplete.filter(a,c.term))}):"string"===typeof this.options.source?
(c=this.options.source,this.source=function(a,k){f.xhr&&f.xhr.abort();f.xhr=b.ajax({url:c,data:a,dataType:"json",autocompleteRequest:++h,success:function(a){this.autocompleteRequest===h&&k(a)},error:function(){this.autocompleteRequest===h&&k([])}})}):this.source=this.options.source},search:function(b,a){b=null!=b?b:this.element.val();this.term=this.element.val();if(b.length<this.options.minLength)return this.close(a);clearTimeout(this.closing);return!1===this._trigger("search",a)?void 0:this._search(b)},
_search:function(b){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:b},this.response)},_response:function(b){!this.options.disabled&&b&&b.length?(b=this._normalize(b),this._suggest(b),this._trigger("open")):this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",b))},_change:function(b){this.previous!==
this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(f){return f.length&&f[0].label&&f[0].value?f:b.map(f,function(a){return"string"===typeof a?{label:a,value:a}:b.extend({label:a.label||a.value,value:a.value||a.label},a)})},_suggest:function(f){var a=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(a,f);this.menu.deactivate();this.menu.refresh();a.show();this._resizeMenu();a.position(b.extend({of:this.element},this.options.position));
this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var b=this.menu.element;b.outerWidth(Math.max(b.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(f,a){var c=this;b.each(a,function(a,b){c._renderItem(f,b)})},_renderItem:function(f,a){return b("<li></li>").data("item.autocomplete",a).append(b("<a></a>").text(a.label)).appendTo(f)},_move:function(b,a){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(b)||this.menu.last()&&
/^next/.test(b))this.element.val(this.term),this.menu.deactivate();else this.menu[b](a);else this.search(null,a)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(f,a){var c=RegExp(b.ui.autocomplete.escapeRegex(a),"i");return b.grep(f,function(a){return c.test(a.label||a.value||a)})}})})(jQuery);
(function(b){b.widget("ui.menu",{_create:function(){var h=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(f){b(f.target).closest(".ui-menu-item a").length&&(f.preventDefault(),h.select(f))});this.refresh()},refresh:function(){var h=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(f){h.activate(f,b(this).parent())}).mouseleave(function(){h.deactivate()})},activate:function(b,f){this.deactivate();if(this.hasScroll()){var a=f.offset().top-this.element.offset().top,c=this.element.scrollTop(),d=this.element.height();0>a?this.element.scrollTop(c+a):a>=d&&this.element.scrollTop(c+a-d+f.height())}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:f})},deactivate:function(){if(this.active)this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"),this.active=null},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},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(b,f,a){this.active?(b=this.active[b+"All"](".ui-menu-item").eq(0),b.length?this.activate(a,b):this.activate(a,this.element.children(f))):this.activate(a,this.element.children(f))},
nextPage:function(h){if(this.hasScroll())if(!this.active||this.last())this.activate(h,this.element.children(".ui-menu-item:first"));else{var f=this.active.offset().top,a=this.element.height(),c=this.element.children(".ui-menu-item").filter(function(){var c=b(this).offset().top-f-a+b(this).height();return 10>c&&-10<c});c.length||(c=this.element.children(".ui-menu-item:last"));this.activate(h,c)}else this.activate(h,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},
previousPage:function(h){if(this.hasScroll())if(!this.active||this.first())this.activate(h,this.element.children(".ui-menu-item:last"));else{var f=this.active.offset().top,a=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var c=b(this).offset().top-f+a-b(this).height();return 10>c&&-10<c});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(h,result)}else this.activate(h,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[b.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
(function(b){var h,f,a,c,d=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},k=function(a){var c=a.name,d=a.form,f=b([]);c&&(f=d?b(d).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form}));return f};b.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",d);if("boolean"!==typeof this.options.disabled)this.options.disabled=
this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var l=this,n=this.options,p="checkbox"===this.type||"radio"===this.type,m="ui-state-hover"+(!p?" ui-state-active":"");if(null===n.label)n.label=this.buttonElement.html();if(this.element.is(":disabled"))n.disabled=!0;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){n.disabled||(b(this).addClass("ui-state-hover"),
this===h&&b(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){n.disabled||b(this).removeClass(m)}).bind("click.button",function(a){n.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus.button",function(){l.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){l.buttonElement.removeClass("ui-state-focus")});p&&(this.element.bind("change.button",function(){c||l.refresh()}),this.buttonElement.bind("mousedown.button",function(b){if(!n.disabled)c=
!1,f=b.pageX,a=b.pageY}).bind("mouseup.button",function(b){if(!n.disabled&&(f!==b.pageX||a!==b.pageY))c=!0}));"checkbox"===this.type?this.buttonElement.bind("click.button",function(){if(n.disabled||c)return!1;b(this).toggleClass("ui-state-active");l.buttonElement.attr("aria-pressed",l.element[0].checked)}):"radio"===this.type?this.buttonElement.bind("click.button",function(){if(n.disabled||c)return!1;b(this).addClass("ui-state-active");l.buttonElement.attr("aria-pressed","true");var a=l.element[0];
k(a).not(a).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(n.disabled)return!1;b(this).addClass("ui-state-active");h=this;b(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(n.disabled)return!1;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(a){if(n.disabled)return!1;(a.keyCode==b.ui.keyCode.SPACE||a.keyCode==b.ui.keyCode.ENTER)&&
b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(a){a.keyCode===b.ui.keyCode.SPACE&&b(this).click()}));this._setOption("disabled",n.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if("checkbox"===this.type||"radio"===this.type){var a=this.element.parents().filter(":last"),
b="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(b);if(!this.buttonElement.length&&(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),!this.buttonElement.length))this.buttonElement=a.find(b);this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");
this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,
arguments);"disabled"===a?c?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1):this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);"radio"===this.type?k(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):b(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)this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),
d=this.options.icons,f=d.primary&&d.secondary,h=[];d.primary||d.secondary?(this.options.text&&h.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary")),d.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(h.push(f?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||a.attr("title",c))):h.push("ui-button-text-only");a.addClass(h.join(" "))}}});
b.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(a,c){"disabled"===a&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a="ltr"===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 b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?
"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(b,h){if(!($.browser.mozilla&&-1<b.location.pathname.indexOf("/MyUploads/AppStatistics"))){var f=b.console||h,a=b.document,c=b.navigator,d=b.sessionStorage||!1,k=b.setTimeout,l=b.clearTimeout,n=b.setInterval,p=b.clearInterval,m=b.JSON,o=b.alert,e=b.History=b.History||{},w=b.history;m.stringify=m.stringify||m.encode;m.parse=m.parse||m.decode;if("undefined"!==typeof e.init)throw Error("History.js Core has already been loaded...");e.init=function(){if("undefined"===typeof e.Adapter)return!1;
"undefined"!==typeof e.initCore&&e.initCore();"undefined"!==typeof e.initHtml4&&e.initHtml4();return!0};e.initCore=function(){if("undefined"!==typeof e.initCore.initialized)return!1;e.initCore.initialized=!0;e.options=e.options||{};e.options.hashChangeInterval=e.options.hashChangeInterval||100;e.options.safariPollInterval=e.options.safariPollInterval||500;e.options.doubleCheckInterval=e.options.doubleCheckInterval||500;e.options.storeInterval=e.options.storeInterval||1E3;e.options.busyDelay=e.options.busyDelay||
250;e.options.debug=e.options.debug||!1;e.options.initialTitle=e.options.initialTitle||a.title;e.intervalList=[];e.clearAllIntervals=function(){var a,b=e.intervalList;if("undefined"!==typeof b&&null!==b){for(a=0;a<b.length;a++)p(b[a]);e.intervalList=null}};e.debug=function(){e.options.debug&&e.log.apply(e,arguments)};e.log=function(){var b=!("undefined"===typeof f||"undefined"===typeof f.log||"undefined"===typeof f.log.apply),c=a.getElementById("log"),d,e,h,k;b?(e=Array.prototype.slice.call(arguments),
d=e.shift(),"undefined"!==typeof f.debug?f.debug.apply(f,[d,e]):f.log.apply(f,[d,e])):d="\n"+arguments[0]+"\n";for(e=1,h=arguments.length;e<h;++e){k=arguments[e];if("object"===typeof k&&"undefined"!==typeof m)try{k=m.stringify(k)}catch(l){}d+="\n"+k+"\n"}c?(c.value+=d+"\n-----\n",c.scrollTop=c.scrollHeight-c.clientHeight):b||o(d);return!0};e.getInternetExplorerMajorVersion=function(){var b=e.getInternetExplorerMajorVersion,c;if("undefined"!==typeof e.getInternetExplorerMajorVersion.cached)c=e.getInternetExplorerMajorVersion.cached;
else{c=3;for(var d=a.createElement("div"),f=d.getElementsByTagName("i");(d.innerHTML="<\!--[if gt IE "+ ++c+"]><i></i><![endif]--\>")&&f[0];);c=4<c?c:!1}return b.cached=c};e.isInternetExplorer=function(){return e.isInternetExplorer.cached="undefined"!==typeof e.isInternetExplorer.cached?e.isInternetExplorer.cached:Boolean(e.getInternetExplorerMajorVersion())};e.emulated={pushState:!Boolean(b.history&&b.history.pushState&&b.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(c.userAgent)||
/AppleWebKit\/5([0-2]|3[0-2])/i.test(c.userAgent))),hashChange:Boolean(!("onhashchange"in b||"onhashchange"in a)||e.isInternetExplorer()&&8>e.getInternetExplorerMajorVersion())};e.enabled=!e.emulated.pushState;e.bugs={setHash:Boolean(!e.emulated.pushState&&"Apple Computer, Inc."===c.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(c.userAgent)),safariPoll:Boolean(!e.emulated.pushState&&"Apple Computer, Inc."===c.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(c.userAgent)),ieDoubleCheck:Boolean(e.isInternetExplorer()&&
8>e.getInternetExplorerMajorVersion()),hashEscape:Boolean(e.isInternetExplorer()&&7>e.getInternetExplorerMajorVersion())};e.isEmptyObject=function(a){for(var b in a)return!1;return!0};e.cloneObject=function(a){a?(a=m.stringify(a),a=m.parse(a)):a={};return a};e.getRootUrl=function(){var b=a.location.protocol+"//"+(a.location.hostname||a.location.host);a.location.port&&(b+=":"+a.location.port);return b+"/"};e.getBaseHref=function(){var b=a.getElementsByTagName("base"),c=null,c="";1===b.length&&(c=b[0],
c=c.href.replace(/[^\/]+$/,""));(c=c.replace(/\/+$/,""))&&(c+="/");return c};e.getBaseUrl=function(){return e.getBaseHref()||e.getBasePageUrl()||e.getRootUrl()};e.getPageUrl=function(){return((e.getState(!1,!1)||{}).url||a.location.href).replace(/\/+$/,"").replace(/[^\/]+$/,function(a){return/\./.test(a)?a:a+"/"})};e.getBasePageUrl=function(){return a.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(a){return/[^\/]$/.test(a)?"":a}).replace(/\/+$/,"")+"/"};e.getFullUrl=function(a,b){var c=
a,d=a.substring(0,1),b="undefined"===typeof b?!0:b;/[a-z]+\:\/\//.test(a)||(c="/"===d?e.getRootUrl()+a.replace(/^\/+/,""):"#"===d?e.getPageUrl().replace(/#.*/,"")+a:"?"===d?e.getPageUrl().replace(/[\?#].*/,"")+a:b?e.getBaseUrl()+a.replace(/^(\.\/)+/,""):e.getBasePageUrl()+a.replace(/^(\.\/)+/,""));return c.replace(/\#$/,"")};e.getShortUrl=function(a){var b=e.getBaseUrl(),c=e.getRootUrl();e.emulated.pushState&&(a=a.replace(b,""));a=a.replace(c,"/");e.isTraditionalAnchor(a)&&(a="./"+a);return a=a.replace(/^(\.\/)+/g,
"./").replace(/\#$/,"")};e.store={};e.idToState=e.idToState||{};e.stateToId=e.stateToId||{};e.urlToId=e.urlToId||{};e.storedStates=e.storedStates||[];e.savedStates=e.savedStates||[];e.normalizeStore=function(){e.store.idToState=e.store.idToState||{};e.store.urlToId=e.store.urlToId||{};e.store.stateToId=e.store.stateToId||{}};e.getState=function(a,b){"undefined"===typeof a&&(a=!0);"undefined"===typeof b&&(b=!0);var c=e.getLastSavedState();!c&&b&&(c=e.createStateObject());if(a)c=e.cloneObject(c),c.url=
c.cleanUrl||c.url;return c};e.getIdByState=function(a){var b=e.extractId(a.url),c;if(!b)if(c=e.getStateString(a),"undefined"!==typeof e.stateToId[c])b=e.stateToId[c];else if("undefined"!==typeof e.store.stateToId[c])b=e.store.stateToId[c];else{for(;!(b=(new Date).getTime()+(""+Math.random()).replace(/\D/g,""),"undefined"===typeof e.idToState[b]&&"undefined"===typeof e.store.idToState[b]););e.stateToId[c]=b;e.idToState[b]=a}return b};e.normalizeState=function(b){var c;if(!b||"object"!==typeof b)b=
{};if("undefined"!==typeof b.normalized)return b;if(!b.data||"object"!==typeof b.data)b.data={};c={normalized:!0};c.title=b.title||"";c.url=e.getFullUrl(e.unescapeString(b.url||a.location.href));c.hash=e.getShortUrl(c.url);c.data=e.cloneObject(b.data);c.id=e.getIdByState(c);c.cleanUrl=c.url.replace(/\??\&_suid.*/,"");c.url=c.cleanUrl;b=!e.isEmptyObject(c.data);if(c.title||b)c.hash=e.getShortUrl(c.url).replace(/\??\&_suid.*/,""),/\?/.test(c.hash)||(c.hash+="?"),c.hash+="&_suid="+c.id;c.hashedUrl=e.getFullUrl(c.hash);
if((e.emulated.pushState||e.bugs.safariPoll)&&e.hasUrlDuplicate(c))c.url=c.hashedUrl;return c};e.createStateObject=function(a,b,c){a={data:a,title:b,url:c};return a=e.normalizeState(a)};e.getStateById=function(a){a=""+a;return e.idToState[a]||e.store.idToState[a]||h};e.getStateString=function(a){a={data:e.normalizeState(a).data,title:a.title,url:a.url};return m.stringify(a)};e.getStateId=function(a){return e.normalizeState(a).id};e.getHashByState=function(a){return e.normalizeState(a).hash};e.extractId=
function(a){return((a=/(.*)\&_suid=([0-9]+)$/.exec(a))?""+(a[2]||""):"")||!1};e.isTraditionalAnchor=function(a){return!/[\/\?\.]/.test(a)};e.extractState=function(a,b){var c=null,d,f,b=b||!1;(d=e.extractId(a))&&(c=e.getStateById(d));c||(f=e.getFullUrl(a),(d=e.getIdByUrl(f)||!1)&&(c=e.getStateById(d)),!c&&b&&!e.isTraditionalAnchor(a)&&(c=e.createStateObject(null,null,f)));return c};e.getIdByUrl=function(a){return e.urlToId[a]||e.store.urlToId[a]||h};e.getLastSavedState=function(){return e.savedStates[e.savedStates.length-
1]||h};e.getLastStoredState=function(){return e.storedStates[e.storedStates.length-1]||h};e.hasUrlDuplicate=function(a){var b=!1;return b=(b=e.extractState(a.url))&&b.id!==a.id};e.storeState=function(a){e.urlToId[a.url]=a.id;e.storedStates.push(e.cloneObject(a));return a};e.isLastSavedState=function(a){var b=!1;if(e.savedStates.length)a=a.id,b=e.getLastSavedState(),b=b.id,b=a===b;return b};e.saveState=function(a){if(e.isLastSavedState(a))return!1;e.savedStates.push(e.cloneObject(a));return!0};e.getStateByIndex=
function(a){var b=null;return b="undefined"===typeof a?e.savedStates[e.savedStates.length-1]:0>a?e.savedStates[e.savedStates.length+a]:e.savedStates[a]};e.getHash=function(){return e.unescapeHash(a.location.hash)};e.unescapeString=function(a){var c;if(w.pushState&&a)return a.toString();for(;;){c=b.unescape(a);if(c===a)break;a=c}return a};e.unescapeHash=function(a){a=e.normalizeHash(a);return a=e.unescapeString(a)};e.normalizeHash=function(a){return a.replace(/[^#]*#/,"").replace(/#.*/,"")};e.setHash=
function(b,c){var d,f;if(!1!==c&&e.busy())return e.pushQueue({scope:e,callback:e.setHash,args:arguments,queue:c}),!1;d=e.escapeHash(b);e.busy(!0);if((f=e.extractState(b,!0))&&!e.emulated.pushState)e.pushState(f.data,f.title,f.url,!1);else if(a.location.hash!==d)e.bugs.setHash?(f=e.getPageUrl(),e.pushState(null,null,f+"#"+d,!1)):a.location.hash=d;return e};e.escapeHash=function(a){a=e.normalizeHash(a);a=b.escape(a);e.bugs.hashEscape||(a=a.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,
"?"));return a};e.getHashByUrl=function(a){a=(""+a).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return a=e.unescapeHash(a)};e.setTitle=function(b){var c=b.title,d;c||(d=e.getStateByIndex(0))&&d.url===b.url&&(c=d.title||e.options.initialTitle);try{a.getElementsByTagName("title")[0].innerHTML=c.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}a.title=c;return e};e.queues=[];e.busy=function(a){if("undefined"!==typeof a)e.busy.flag=a;else if("undefined"===typeof e.busy.flag)e.busy.flag=
!1;if(!e.busy.flag){l(e.busy.timeout);var b=function(){var a,c;if(!e.busy.flag)for(a=e.queues.length-1;0<=a;--a)if(c=e.queues[a],0!==c.length)c=c.shift(),e.fireQueueItem(c),e.busy.timeout=k(b,e.options.busyDelay)};e.busy.timeout=k(b,e.options.busyDelay)}return e.busy.flag};e.busy.flag=!1;e.fireQueueItem=function(a){return a.callback.apply(a.scope||e,a.args||[])};e.pushQueue=function(a){e.queues[a.queue||0]=e.queues[a.queue||0]||[];e.queues[a.queue||0].push(a);return e};e.queue=function(a,b){"function"===
typeof a&&(a={callback:a});if("undefined"!==typeof b)a.queue=b;e.busy()?e.pushQueue(a):e.fireQueueItem(a);return e};e.clearQueue=function(){e.busy.flag=!1;e.queues=[];return e};e.stateChanged=!1;e.doubleChecker=!1;e.doubleCheckComplete=function(){e.stateChanged=!0;e.doubleCheckClear();return e};e.doubleCheckClear=function(){if(e.doubleChecker)l(e.doubleChecker),e.doubleChecker=!1;return e};e.doubleCheck=function(a){e.stateChanged=!1;e.doubleCheckClear();if(e.bugs.ieDoubleCheck)e.doubleChecker=k(function(){e.doubleCheckClear();
e.stateChanged||a();return!0},e.options.doubleCheckInterval);return e};e.safariStatePoll=function(){var c=e.extractState(a.location.href);if(!e.isLastSavedState(c))return c||e.createStateObject(),e.Adapter.trigger(b,"popstate"),e};e.back=function(a){if(!1!==a&&e.busy())return e.pushQueue({scope:e,callback:e.back,args:arguments,queue:a}),!1;e.busy(!0);e.doubleCheck(function(){e.back(!1)});w.go(-1);return!0};e.forward=function(a){if(!1!==a&&e.busy())return e.pushQueue({scope:e,callback:e.forward,args:arguments,
queue:a}),!1;e.busy(!0);e.doubleCheck(function(){e.forward(!1)});w.go(1);return!0};e.go=function(a,b){var c;if(0<a)for(c=1;c<=a;++c)e.forward(b);else if(0>a)for(c=-1;c>=a;--c)e.back(b);else throw Error("History.go: History.go requires a positive or negative integer passed.");return e};if(e.emulated.pushState){var v=function(){};e.pushState=e.pushState||v;e.replaceState=e.replaceState||v}else e.onPopState=function(c,d){var f=!1,f=!1;e.doubleCheckComplete();if(f=e.getHash())return(f=e.extractState(f||
a.location.href,!0))?e.replaceState(f.data,f.title,f.url,!1):(e.Adapter.trigger(b,"anchorchange"),e.busy(!1)),e.expectedStateId=!1;(f=(f=e.Adapter.extractEventData("state",c,d)||!1)?e.getStateById(f):e.expectedStateId?e.getStateById(e.expectedStateId):e.extractState(a.location.href))||(f=e.createStateObject(null,null,a.location.href));e.expectedStateId=!1;if(e.isLastSavedState(f))return e.busy(!1),!1;e.storeState(f);e.saveState(f);e.setTitle(f);e.Adapter.trigger(b,"statechange");e.busy(!1);return!0},
e.Adapter.bind(b,"popstate",e.onPopState),e.pushState=function(a,c,d,f){if(e.getHashByUrl(d)&&e.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==f&&e.busy())return e.pushQueue({scope:e,callback:e.pushState,args:arguments,queue:f}),!1;e.busy(!0);var h=e.createStateObject(a,c,d);e.isLastSavedState(h)?e.busy(!1):(e.storeState(h),e.expectedStateId=h.id,w.pushState(h.id,h.title,h.url),e.Adapter.trigger(b,"popstate"));return!0},e.replaceState=
function(a,c,d,f){if(e.getHashByUrl(d)&&e.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==f&&e.busy())return e.pushQueue({scope:e,callback:e.replaceState,args:arguments,queue:f}),!1;e.busy(!0);var h=e.createStateObject(a,c,d);e.isLastSavedState(h)?e.busy(!1):(e.storeState(h),e.expectedStateId=h.id,w.replaceState(h.id,h.title,h.url),e.Adapter.trigger(b,"popstate"));return!0};if(d)try{e.store=m.parse(d.getItem("History.store"))||
{}}catch(s){e.store={}}else e.store={};e.normalizeStore();e.Adapter.bind(b,"beforeunload",e.clearAllIntervals);e.Adapter.bind(b,"unload",e.clearAllIntervals);e.saveState(e.storeState(e.extractState(a.location.href,!0)));if(d)e.onUnload=function(){var a,b;try{a=m.parse(d.getItem("History.store"))||{}}catch(c){a={}}a.idToState=a.idToState||{};a.urlToId=a.urlToId||{};a.stateToId=a.stateToId||{};for(b in e.idToState)e.idToState.hasOwnProperty(b)&&(a.idToState[b]=e.idToState[b]);for(b in e.urlToId)e.urlToId.hasOwnProperty(b)&&
(a.urlToId[b]=e.urlToId[b]);for(b in e.stateToId)e.stateToId.hasOwnProperty(b)&&(a.stateToId[b]=e.stateToId[b]);e.store=a;e.normalizeStore();d.setItem("History.store",m.stringify(a))},e.isInternetExplorer()&&e.intervalList.push(n(e.onUnload,e.options.storeInterval)),e.Adapter.bind(b,"beforeunload",e.onUnload),e.Adapter.bind(b,"unload",e.onUnload);if(!e.emulated.pushState&&(e.bugs.safariPoll&&e.intervalList.push(n(e.safariStatePoll,e.options.safariPollInterval)),"Apple Computer, Inc."===c.vendor||
"Mozilla"===(c.appCodeName||"")))if(e.Adapter.bind(b,"hashchange",function(){e.Adapter.trigger(b,"popstate")}),e.getHash())e.Adapter.onDomLoad(function(){e.Adapter.trigger(b,"hashchange")})};e.init()}})(window);
(function(b,h){var f=b.History=b.History||{},a=b.jQuery;if("undefined"!==typeof f.Adapter)throw Error("History.js Adapter has already been loaded...");f.Adapter={bind:function(b,d,f){a(b).bind(d,f)},trigger:function(b,d,f){a(b).trigger(d,f)},extractEventData:function(a,b,f){return b&&b.originalEvent&&b.originalEvent[a]||f&&f[a]||h},onDomLoad:function(b){a(b)}};"undefined"!==typeof f.init&&f.init()})(window);
(function(b){function h(a,b){return b.measureText(a).width}function f(a,b){b.text(a);return b.width()}var a=!1,c,d,k;b.fn.shorten=function(){var a={},l=arguments,m=b.fn.shorten;if(l.length)if(l[0].constructor==Object)a=l[0];else{if("options"==l[0])return b(this).eq(0).data("shorten-options");a={width:parseInt(l[0],10),tail:l[1]}}this.css("visibility","hidden");var o=b.extend({},m.defaults,a);return this.each(function(){var e=b(this),l=e.text(),p=l.length,s,q=b("<span/>").html(o.tail).text(),r={shortened:!1,
textOverflow:!1};s="none"!=e.css("float")?o.width||e.width():o.width||e.parent().width();if(0>s)return!0;e.data("shorten-options",o);this.style.display="block";this.style.whiteSpace="nowrap";if(c){var u=b(this),x=document.createElement("canvas"),y=x.getContext("2d");u.html(x);y.font=u.css("font-style")+" "+u.css("font-variant")+" "+u.css("font-weight")+" "+Math.ceil(parseFloat(u.css("font-size")))+"px "+u.css("font-family");d=y;k=h}else u=b('<table style="padding:0; margin:0; border:none; font:inherit;width:auto;zoom:1;position:absolute;"><tr style="padding:0; margin:0; border:none; font:inherit;"><td style="padding:0; margin:0; border:none; font:inherit;white-space:nowrap;"></td></tr></table>'),
x=b("td",u),b(this).html(u),d=x,k=f;u=k.call(this,l,d);if(u<s)return e.text(l),this.style.visibility="visible",e.data("shorten-info",r),!0;o.tooltip&&this.setAttribute("title",l);if(m._native&&!a.width&&(x=b("<span>"+o.tail+"</span>").text(),1==x.length&&8230==x.charCodeAt(0)))return e.text(l),this.style.overflow="hidden",this.style[m._native]="ellipsis",this.style.visibility="visible",r.shortened=!0,r.textOverflow="ellipsis",e.data("shorten-info",r),!0;q=k.call(this,q,d);s-=q;q=1.15*s;if(0<u-q&&
(q=Math.ceil(p*(q/u)),q=l.substring(0,q),k.call(this,q,d)>s))l=q,p=l.length;do p--,l=l.substring(0,p);while(k.call(this,l,d)>=s);e.html(b.trim(b("<span/>").text(l).html())+o.tail);this.style.visibility="visible";r.shortened=!0;e.data("shorten-info",r);return!0})};var l=document.documentElement.style;"textOverflow"in l?a="textOverflow":"OTextOverflow"in l&&(a="OTextOverflow");"undefined"!=typeof Modernizr&&Modernizr.canvastext?c=Modernizr.canvastext:(l=document.createElement("canvas"),c=!(!l.getContext||
!(l.getContext("2d")&&"function"===typeof l.getContext("2d").fillText)));b.fn.shorten._is_canvasTextSupported=c;b.fn.shorten._native=a;b.fn.shorten.defaults={tail:"&hellip;",tooltip:!0}})(jQuery);
(function(b){var h={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",
buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},f=!1;b(window).bind("load.jcarousel",function(){f=!0});b.jcarousel=function(a,d){this.options=b.extend({},h,d||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!d||void 0===d.rtl)this.options.rtl="rtl"==(b(a).attr("dir")||b("html").attr("dir")||"").toLowerCase();this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?
this.options.rtl?"right":"left":"top";for(var k="",l=a.className.split(" "),n=0;n<l.length;n++)if(-1!=l[n].indexOf("jcarousel-skin")){b(a).removeClass(l[n]);k=l[n];break}"UL"==a.nodeName.toUpperCase()||"OL"==a.nodeName.toUpperCase()?(this.list=b(a),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=b(a),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(0===this.clip.size())this.clip=
this.list.wrap("<div></div>").parent();if(0===this.container.size())this.container=this.clip.wrap("<div></div>").parent();""!==k&&-1==this.container.parent()[0].className.indexOf("jcarousel-skin")&&this.container.wrap('<div class=" '+k+'"></div>');this.buttonPrev=b(".jcarousel-prev",this.container);if(0===this.buttonPrev.size()&&null!==this.options.buttonPrevHTML)this.buttonPrev=b(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=
b(".jcarousel-next",this.container);if(0===this.buttonNext.size()&&null!==this.options.buttonNextHTML)this.buttonNext=b(this.options.buttonNextHTML).appendTo(this.container);this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});
!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var p=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,k=this.list.children("li"),m=this;if(0<k.size()){var o=0,e=this.options.offset;k.each(function(){m.format(this,e++);o+=m.dimension(this,p)});this.list.css(this.wh,o+100+"px");if(!d||void 0===d.size)this.options.size=k.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display",
"block");this.funcNext=function(){m.next()};this.funcPrev=function(){m.prev()};this.funcResize=function(){m.resizeTimer&&clearTimeout(m.resizeTimer);m.resizeTimer=setTimeout(function(){m.reload()},100)};null!==this.options.initCallback&&this.options.initCallback(this,"init");!f&&b.browser.safari?(this.buttons(!1,!1),b(window).bind("load.jcarousel",function(){m.setup()})):this.setup()};var a=b.jcarousel;a.fn=a.prototype={jcarousel:"0.2.8"};a.fn.extend=a.extend=b.extend;a.fn.extend({setup:function(){this.prevLast=
this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);b(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);null!==this.options.setupCallback&&this.options.setupCallback(this)}},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(){null!==this.tail&&this.inTail&&this.list.css(this.lt,a.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;null!==this.options.reloadCallback&&this.options.reloadCallback(this);if(null!==this.options.visible){var b=this,d=Math.ceil(this.clipping()/this.options.visible),f=0,h=0;this.list.children("li").each(function(a){f+=b.dimension(this,
d);a+1<b.first&&(h=f)});this.list.css(this.wh,f+"px");this.list.css(this.lt,-h+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(a){if(void 0!==a)this.options.size=a,this.locked||this.buttons();return this.options.size},has:function(a,b){if(void 0===b||!b)b=a;if(null!==this.options.size&&b>this.options.size)b=this.options.size;for(var f=a;f<=b;f++){var h=this.get(f);if(!h.length||h.hasClass("jcarousel-item-placeholder"))return!1}return!0},
get:function(a){return b(">.jcarousel-item-"+a,this.list)},add:function(c,d){var f=this.get(c),h=0,n=b(d);if(0===f.length)for(var p,m=a.intval(c),f=this.create(c);;){if(p=this.get(--m),0>=m||p.length){0>=m?this.list.prepend(f):p.after(f);break}}else h=this.dimension(f);"LI"==n.get(0).nodeName.toUpperCase()?(f.replaceWith(n),f=n):f.empty().append(d);this.format(f.removeClass(this.className("jcarousel-item-placeholder")),c);n=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):
null;h=this.dimension(f,n)-h;0<c&&c<this.first&&this.list.css(this.lt,a.intval(this.list.css(this.lt))-h+"px");this.list.css(this.wh,a.intval(this.list.css(this.wh))+h+"px");return f},remove:function(b){var d=this.get(b);if(d.length&&!(b>=this.first&&b<=this.last)){var f=this.dimension(d);b<this.first&&this.list.css(this.lt,a.intval(this.list.css(this.lt))+f+"px");d.remove();this.list.css(this.wh,a.intval(this.list.css(this.wh))-f+"px")}},next:function(){null!==this.tail&&!this.inTail?this.scrollTail(!1):
this.scroll(("both"==this.options.wrap||"last"==this.options.wrap)&&null!==this.options.size&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){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.options.size:this.first-this.options.scroll)},scrollTail:function(b){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var d=a.intval(this.list.css(this.lt)),
d=!b?d-this.tail:d+this.tail;this.inTail=!b;this.prevFirst=this.first;this.prevLast=this.last;this.animate(d)}},scroll:function(a,b){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),b))},pos:function(b,d){var f=a.intval(this.list.css(this.lt));if(this.locked||this.animating)return f;"circular"!=this.options.wrap&&(b=1>b?1:this.options.size&&b>this.options.size?this.options.size:b);for(var h=this.first>b,n="circular"!=this.options.wrap&&1>=this.first?1:this.first,p=h?this.get(n):
this.get(this.last),m=h?n:n-1,o=null,e=0,w=!1,v=0;h?--m>=b:++m<b;){o=this.get(m);w=!o.length;if(0===o.length&&(o=this.create(m).addClass(this.className("jcarousel-item-placeholder")),p[h?"before":"after"](o),null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(0>=m||m>this.options.size)))p=this.get(this.index(m)),p.length&&(o=this.add(m,p.clone(!0)));p=o;v=this.dimension(o);w&&(e+=v);if(null!==this.first&&("circular"==this.options.wrap||1<=m&&(null===this.options.size||m<=
this.options.size)))f=h?f+v:f-v}for(var n=this.clipping(),s=[],q=0,r=0,p=this.get(b-1),m=b;++q;){o=this.get(m);w=!o.length;if(0===o.length){o=this.create(m).addClass(this.className("jcarousel-item-placeholder"));if(0===p.length)this.list.prepend(o);else p[h?"before":"after"](o);if(null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(0>=m||m>this.options.size))p=this.get(this.index(m)),p.length&&(o=this.add(m,p.clone(!0)))}p=o;v=this.dimension(o);if(0===v)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");
"circular"!=this.options.wrap&&null!==this.options.size&&m>this.options.size?s.push(o):w&&(e+=v);r+=v;if(r>=n)break;m++}for(o=0;o<s.length;o++)s[o].remove();0<e&&(this.list.css(this.wh,this.dimension(this.list)+e+"px"),h&&(f-=e,this.list.css(this.lt,a.intval(this.list.css(this.lt))-e+"px")));e=b+q-1;if("circular"!=this.options.wrap&&this.options.size&&e>this.options.size)e=this.options.size;if(m>e){q=0;m=e;for(r=0;++q;){o=this.get(m--);if(!o.length)break;r+=this.dimension(o);if(r>=n)break}}m=e-q+
1;"circular"!=this.options.wrap&&1>m&&(m=1);if(this.inTail&&h)f+=this.tail,this.inTail=!1;this.tail=null;if("circular"!=this.options.wrap&&e==this.options.size&&1<=e-q+1&&(h=a.intval(this.get(e).css(!this.options.vertical?"marginRight":"marginBottom")),r-h>n))this.tail=r-n-h;if(d&&b===this.options.size&&this.tail)f-=this.tail,this.inTail=!0;for(;b-- >m;)f+=this.dimension(this.get(b));this.prevFirst=this.first;this.prevLast=this.last;this.first=m;this.last=e;return f},animate:function(a,d){if(!this.locked&&
!this.animating){this.animating=!0;var f=this,h=function(){f.animating=!1;0===a&&f.list.css(f.lt,0);!f.autoStopped&&("circular"==f.options.wrap||"both"==f.options.wrap||"last"==f.options.wrap||null===f.options.size||f.last<f.options.size||f.last==f.options.size&&null!==f.tail&&!f.inTail)&&f.startAuto();f.buttons();f.notify("onAfterAnimation");if("circular"==f.options.wrap&&null!==f.options.size)for(var b=f.prevFirst;b<=f.prevLast;b++)null!==b&&!(b>=f.first&&b<=f.last)&&(1>b||b>f.options.size)&&f.remove(b)};
this.notify("onBeforeAnimation");if(!this.options.animation||!1===d)this.list.css(this.lt,a+"px"),h();else{var n=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},h={duration:this.options.animation,easing:this.options.easing,complete:h};if(b.isFunction(this.options.animationStepCallback))h.step=this.options.animationStepCallback;this.list.animate(n,h)}}},startAuto:function(a){if(void 0!==a)this.options.auto=a;if(0===this.options.auto)return this.stopAuto();if(null===this.timer){this.autoStopped=
!1;var b=this;this.timer=window.setTimeout(function(){b.next()},1E3*this.options.auto)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(null!==this.timer)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,b){if(null==a&&(a=!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))a=null!==this.tail&&!this.inTail;if(null==b&&(b=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||1<this.first),!this.locked&&(!this.options.wrap||"last"==this.options.wrap)&&null!==this.options.size&&1==this.first))b=null!==this.tail&&this.inTail;var f=this;0<this.buttonNext.size()?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),
this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),null!==this.options.buttonNextCallback&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){f.options.buttonNextCallback(f,this,a)}).data("jcarouselstate",a)):null!==this.options.buttonNextCallback&&this.buttonNextState!=a&&this.options.buttonNextCallback(f,null,a);0<this.buttonPrev.size()?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),
b&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[b?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",b?!1:!0),null!==this.options.buttonPrevCallback&&this.buttonPrev.data("jcarouselstate")!=b&&this.buttonPrev.each(function(){f.options.buttonPrevCallback(f,this,b)}).data("jcarouselstate",b)):null!==this.options.buttonPrevCallback&&this.buttonPrevState!=b&&this.options.buttonPrevCallback(f,null,b);this.buttonNextState=
a;this.buttonPrevState=b},notify:function(a){var b=null===this.prevFirst?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,b);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,b,this.first),this.callback("itemFirstOutCallback",a,b,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,b,this.last),this.callback("itemLastOutCallback",a,b,this.prevLast));this.callback("itemVisibleInCallback",a,b,this.first,this.last,this.prevFirst,
this.prevLast);this.callback("itemVisibleOutCallback",a,b,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,d,f,h,n,p,m){if(!(null==this.options[a]||"object"!=typeof this.options[a]&&"onAfterAnimation"!=d)){var o="object"==typeof this.options[a]?this.options[a][d]:this.options[a];if(b.isFunction(o)){var e=this;if(void 0===h)o(e,f,d);else if(void 0===n)this.get(h).each(function(){o(e,this,h,f,d)});else for(var a=function(a){e.get(a).each(function(){o(e,this,a,f,d)})},w=h;w<=n;w++)null!==
w&&!(w>=p&&w<=m)&&a(w)}}},create:function(a){return this.format("<li></li>",a)},format:function(a,d){for(var a=b(a),f=a.get(0).className.split(" "),h=0;h<f.length;h++)-1!=f[h].indexOf("jcarousel-")&&a.removeClass(f[h]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+d)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",d);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},
dimension:function(c,d){var f=b(c);if(null==d)return!this.options.vertical?f.outerWidth(!0)||a.intval(this.options.itemFallbackDimension):f.outerHeight(!0)||a.intval(this.options.itemFallbackDimension);var h=!this.options.vertical?d-a.intval(f.css("marginLeft"))-a.intval(f.css("marginRight")):d-a.intval(f.css("marginTop"))-a.intval(f.css("marginBottom"));b(f).css(this.wh,h+"px");return this.dimension(f)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-a.intval(this.clip.css("borderLeftWidth"))-
a.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-a.intval(this.clip.css("borderTopWidth"))-a.intval(this.clip.css("borderBottomWidth"))},index:function(a,b){if(null==b)b=this.options.size;return Math.round(((a-1)/b-Math.floor((a-1)/b))*b)+1}});a.extend({defaults:function(a){return b.extend(h,a||{})},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a},windowLoaded:function(){f=!0}});b.fn.jcarousel=function(c){if("string"==typeof c){var d=b(this).data("jcarousel"),f=Array.prototype.slice.call(arguments,
1);return d[c].apply(d,f)}return this.each(function(){var d=b(this).data("jcarousel");d?(c&&b.extend(d.options,c),d.reload()):b(this).data("jcarousel",new a(this,c))})}})(jQuery);
(function(b){var h,f,a,c,d,k,l,n,p,m,o=0,e={},w=[],v=0,s={},q=[],r=null,u=new Image,x=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,y=/[^\.]\.(swf)\s*$/i,E,z=1,M=0,H="",K,D,t=!1,L=b.extend(b("<div/>")[0],{prop:0}),da=function(){b.fancybox.hideActivity();u.onerror=u.onload=null;r&&r.abort();h.empty()},g=function(){!1===e.onError(w,o,e)?(b.fancybox.hideActivity(),t=!1):(e.titleShow=!1,e.width="auto",e.height="auto",h.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),
Q())},V=function(){var a=w[o],c,d,f,l,m,n;da();e=b.extend({},b.fn.fancybox.defaults,"undefined"==typeof b(a).data("fancybox")?e:b(a).data("fancybox"));n=e.onStart(w,o,e);if(!1===n)t=!1;else{"object"==typeof n&&(e=b.extend(e,n));f=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);""===f&&e.orig&&e.titleFromAlt&&(f=e.orig.attr("alt"));c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
"#"==c)c=null;if(e.type){if(d=e.type,!c)c=e.content}else e.content?d="html":c&&(d=c.match(x)?"image":c.match(y)?"swf":b(a).hasClass("iframe")?"iframe":0===c.indexOf("#")?"inline":"ajax");if(d){"inline"==d&&(a=c.substr(c.indexOf("#")),d=0<b(a).length?"inline":"ajax");e.type=d;e.href=c;e.title=f;if(e.autoDimensions)"html"==e.type||"inline"==e.type||"ajax"==e.type?(e.width="auto",e.height="auto"):e.autoDimensions=!1;if(e.modal)e.overlayShow=!0,e.hideOnOverlayClick=!1,e.hideOnContentClick=!1,e.enableEscapeButton=
!1,e.showCloseButton=!1;e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);h.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(k.children())});switch(d){case "html":h.html(e.content);Q();break;case "inline":if(!0===b(a).parent().is("#fancybox-content")){t=!1;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(k.children())}).bind("fancybox-cancel",
function(){b(this).replaceWith(h.children())});b(a).appendTo(h);Q();break;case "image":t=!1;b.fancybox.showActivity();u=new Image;u.onerror=function(){g()};u.onload=function(){t=!0;u.onerror=u.onload=null;e.width=u.width;e.height=u.height;b("<img />").attr({id:"fancybox-img",src:u.src,alt:e.title}).appendTo(h);ea()};u.src=c;break;case "swf":e.scrolling="no";l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+'"></param>';
m="";b.each(e.swf,function(a,b){l+='<param name="'+a+'" value="'+b+'"></param>';m+=" "+a+'="'+b+'"'});l+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+m+"></embed></object>";h.html(l);Q();break;case "ajax":t=!1;b.fancybox.showActivity();e.ajax.win=e.ajax.success;var p=0,q={};r=b.ajax(b.extend(q,e.ajax,e.ajax&&e.ajax.error?{}:{error:function(a){403===a.status&&1>p?(p++,r=b.ajax(q)):0<a.status&&g()}},{url:c,data:e.ajax.data||{},success:function(a,
d,f){if(200==("object"==typeof f?f:r).status){if("function"==typeof e.ajax.win){n=e.ajax.win(c,a,d,f);if(!1===n){b.fancybox.hideActivity();return}if("string"==typeof n||"object"==typeof n)a=n}h.html(window.innerShiv?innerShiv(a):a);Q()}}}));break;case "iframe":ea()}}else g()}},Q=function(){var a=e.width,c=e.height;h.width(a);h.height(c);a=-1<a.toString().indexOf("%")?parseInt((b(window).width()-2*e.margin)*parseFloat(a)/100,10)+"px":"auto"==a?"auto":a+"px";c=-1<c.toString().indexOf("%")?parseInt((b(window).height()-
2*e.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px";h.wrapInner('<div style="width:'+a+";height:"+c+";overflow: "+("auto"==e.scrolling?"auto":"yes"==e.scrolling?"scroll":"hidden")+';position:relative;"></div>');e.width=h.width();e.height=h.height();ea()},ea=function(){var f,g;b.fancybox.hideActivity();if(c.is(":visible")&&!1===s.onCleanup(q,v,s))b.event.trigger("fancybox-cancel"),t=!1;else{t=!0;b(k.add(a)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");
a.bind("click.fb",function(a){a.stopPropagation()});c.is(":visible")&&"outside"!==s.titlePosition&&c.css("height",c.height());q=w;v=o;s=e;s.overlayShow?(a.css({"background-color":s.overlayColor,opacity:s.overlayOpacity,cursor:s.hideOnOverlayClick?"pointer":"auto",position:"fixed",top:0,right:0,bottom:0,left:0}),a.is(":visible")||a.show()):a.hide();D=ra();H=s.title||"";M=0;n.empty().removeAttr("style").removeClass();if(!1!==s.titleShow&&(H=b.isFunction(s.titleFormat)?s.titleFormat(H,q,v,s):H&&H.length?
"float"==s.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+H+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+s.titlePosition+'">'+H+"</div>":!1)&&""!==H)switch(n.addClass("fancybox-title-"+s.titlePosition).html(H).appendTo("body").show(),s.titlePosition){case "inside":n.css({width:D.width-2*s.padding,marginLeft:s.padding,marginRight:s.padding});
M=n.outerHeight(!0);n.appendTo(d);D.height+=M;break;case "over":n.css({marginLeft:s.padding,width:D.width-2*s.padding,bottom:s.padding}).appendTo(d);break;case "float":n.css("left",-1*parseInt((n.width()-D.width-40)/2,10)).appendTo(c);break;default:n.css({width:D.width-2*s.padding,paddingLeft:s.padding,paddingRight:s.padding}).appendTo(c)}n.hide();if(c.is(":visible"))b(l.add(p).add(m)).hide(),f=c.position(),K={top:f.top,left:f.left,width:c.width(),height:c.height()},g=K.width==D.width&&K.height==
D.height,k.fadeTo(s.changeFade,0.3,function(){s.onContentLoaded(h.contents());var a=function(){k.html(h.contents()).fadeTo(s.changeFade,1,Y)};b.event.trigger("fancybox-change");k.empty().removeAttr("filter").css({"border-width":s.padding,width:D.width-2*s.padding,height:"image"==s.type||"swf"==s.type||"iframe"==s.type?D.height-M-2*s.padding:"auto"});g?a():(L.prop=0,b(L).animate({prop:1},{duration:s.changeSpeed,easing:s.easingChange,step:S,complete:a}))});else if(c.removeAttr("style"),k.css("border-width",
s.padding),"elastic"==s.transitionIn){K=ha();k.html(h.contents());c.show();if(s.opacity)D.opacity=0;L.prop=0;b(L).animate({prop:1},{duration:s.speedIn,easing:s.easingIn,step:S,complete:Y})}else"inside"==s.titlePosition&&0<M&&n.show(),k.css({width:D.width-2*s.padding,height:"image"==s.type||"swf"==s.type||"iframe"==s.type?D.height-M-2*s.padding:"auto"}).html(h.contents()),c.css(D).fadeIn("none"==s.transitionIn?0:s.speedIn,Y).focus(),s.onContentLoaded(k)}},qa=function(){(s.enableEscapeButton||s.enableKeyboardNav)&&
b(document).bind("keydown.fb",function(a){if(27==a.keyCode&&s.enableEscapeButton)a.preventDefault(),b.fancybox.close();else if((37==a.keyCode||39==a.keyCode)&&s.enableKeyboardNav&&"INPUT"!==a.target.tagName&&"TEXTAREA"!==a.target.tagName&&"SELECT"!==a.target.tagName)a.preventDefault(),b.fancybox[37==a.keyCode?"prev":"next"]()});s.showNavArrows?((s.cyclic&&1<q.length||0!==v)&&p.show(),(s.cyclic&&1<q.length||v!=q.length-1)&&m.show()):(p.hide(),m.hide())},Y=function(){b.support.opacity||(k.get(0).style.removeAttribute("filter"),
c.get(0).style.removeAttribute("filter"));e.autoDimensions&&k.css("height","auto");c.css("height","auto");H&&H.length&&n.show();s.showCloseButton&&l.show();qa();s.hideOnContentClick&&k.bind("click",b.fancybox.close);s.hideOnOverlayClick&&a.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);s.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);"iframe"==s.type&&b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+
(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+s.href+'"></iframe>').appendTo(k);c.show();t=!1;b.fancybox.center();s.onComplete(q,v,s);var d,f;if(q.length-1>v&&(d=q[v+1].href,"undefined"!==typeof d&&d.match(x)))f=new Image,f.src=d;if(0<v&&(d=q[v-1].href,"undefined"!==typeof d&&d.match(x)))f=new Image,f.src=d},S=function(a){var b={width:parseInt(K.width+(D.width-K.width)*a,10),height:parseInt(K.height+(D.height-K.height)*a,10),top:parseInt(K.top+(D.top-K.top)*
a,10),left:parseInt(K.left+(D.left-K.left)*a,10)};if("undefined"!==typeof D.opacity)b.opacity=0.5>a?0.5:a;c.css(b);k.css({width:b.width-2*s.padding,height:b.height-M*a-2*s.padding})},fa=function(){return[b(window).width()-2*s.margin,b(window).height()-2*s.margin,b(document).scrollLeft()+s.margin,b(document).scrollTop()+s.margin]},ra=function(){var a=fa(),b={},c=s.autoScale,d=2*s.padding;b.width=-1<s.width.toString().indexOf("%")?parseInt(a[0]*parseFloat(s.width)/100,10):s.width+d;b.height=-1<s.height.toString().indexOf("%")?
parseInt(a[1]*parseFloat(s.height)/100,10):s.height+d;if(c&&(b.width>a[0]||b.height>a[1]))if("image"==e.type||"swf"==e.type){c=s.width/s.height;if(b.width>a[0])b.width=a[0],b.height=parseInt((b.width-d)/c+d,10);if(b.height>a[1])b.height=a[1],b.width=parseInt((b.height-d)*c+d,10)}else b.width=Math.min(b.width,a[0]),b.height=Math.min(b.height,a[1]);b.top=parseInt(Math.max(a[3]-15,a[3]+0.5*(a[1]-b.height-30)),10);b.left=parseInt(Math.max(a[2]-20,a[2]+0.5*(a[0]-b.width-40)),10);return b},ha=function(){var a=
e.orig?b(e.orig):!1,c={};a&&a.length?(c=a.offset(),c.top+=parseInt(a.css("paddingTop"),10)||0,c.left+=parseInt(a.css("paddingLeft"),10)||0,c.top+=parseInt(a.css("border-top-width"),10)||0,c.left+=parseInt(a.css("border-left-width"),10)||0,c.width=a.width(),c.height=a.height(),c={width:c.width+2*s.padding,height:c.height+2*s.padding,top:c.top-s.padding-20,left:c.left-s.padding-20}):(a=fa(),c={width:2*s.padding,height:2*s.padding,top:parseInt(a[3]+0.5*a[1],10),left:parseInt(a[2]+0.5*a[0],10)});return c},
pa=function(){f.is(":visible")?(b("div",f).css("top",-40*z+"px"),z=(z+1)%12):clearInterval(E)};b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(a){a.preventDefault();t||(t=!0,b(this).blur(),w=[],o=0,a=b(this).attr("rel")||"",!a||""==a||"nofollow"===a?w.push(this):(w=b("a[rel="+a+"], area[rel="+a+"]"),o=w.index(this)),V())});return this};b.fancybox=function(a,c){var d;if(!t){t=
!0;d="undefined"!==typeof c?c:{};w=[];o=parseInt(d.index,10)||0;if(b.isArray(a)){for(var e=0,f=a.length;e<f;e++)"object"==typeof a[e]?b(a[e]).data("fancybox",b.extend({},d,a[e])):a[e]=b({}).data("fancybox",b.extend({content:a[e]},d));w=jQuery.merge(w,a)}else"object"==typeof a?b(a).data("fancybox",b.extend({},d,a)):a=b({}).data("fancybox",b.extend({content:a},d)),w.push(a);if(o>w.length||0>o)o=0;V()}};b.fancybox.showActivity=function(){clearInterval(E);f.show();E=setInterval(pa,66)};b.fancybox.hideActivity=
function(){f.hide()};b.fancybox.next=function(){return b.fancybox.pos(v+1)};b.fancybox.prev=function(){return b.fancybox.pos(v-1)};b.fancybox.pos=function(a){t||(a=parseInt(a),w=q,-1<a&&a<q.length?(o=a,V()):s.cyclic&&1<q.length&&(o=a>=q.length?0:q.length-1,V()))};b.fancybox.cancel=function(){t||(t=!0,b.event.trigger("fancybox-cancel"),da(),e.onCancel(w,o,e),t=!1)};b.fancybox.close=function(){function d(){a.fadeOut("fast");n.empty().hide();c.hide();b.event.trigger("fancybox-cleanup");k.empty();s.onClosed(q,
v,s);q=e=[];v=o=0;s=e={};t=!1}if(!t&&!c.is(":hidden"))if(t=!0,s&&!1===s.onCleanup(q,v,s))t=!1;else if(c.trigger("fancybox-close"),da(),b(l.add(p).add(m)).hide(),b(k.add(a)).unbind(),b(window).unbind("resize.fb scroll.fb"),b(document).unbind("keydown.fb"),k.find("iframe").attr("src","about:blank"),"inside"!==s.titlePosition&&n.empty(),c.stop(),"elastic"==s.transitionOut){K=ha();var f=c.position();D={top:f.top,left:f.left,width:c.width(),height:c.height()};if(s.opacity)D.opacity=1;n.empty().hide();
L.prop=1;b(L).animate({prop:0},{duration:s.speedOut,easing:s.easingOut,step:S,complete:d})}else c.fadeOut("none"==s.transitionOut?0:s.speedOut,d)};b.fancybox.resize=function(){b.fancybox.center(!0)};b.fancybox.center=function(a){var b,d;if(!t&&(d=!0===a?1:0,b=fa(),d||!(c.width()>b[0]||c.height()>b[1])))c.stop().animate({top:parseInt(Math.max(b[3]-20,b[3]+0.5*(b[1]-k.height()-40)-s.padding)),left:parseInt(Math.max(b[2]-20,b[2]+0.5*(b[0]-k.width()-40)-s.padding))},"number"==typeof a?a:200)};b.fancybox.init=
function(){b("#fancybox-wrap").length||(b("body").append(h=b('<div id="fancybox-tmp"></div>'),f=b('<div id="fancybox-loading"><div></div></div>'),a=b('<div id="fancybox-overlay"></div>'),c=b('<div id="fancybox-wrap" tabindex="-1" role="dialog"></div>')),d=b('<div id="fancybox-outer"></div>').appendTo(c),d.append(k=b('<div id="fancybox-content"></div>'),l=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),p=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
m=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),l.click(b.fancybox.close),f.click(b.fancybox.cancel),c.bind("click.fb",function(a){a.stopPropagation()}),p.click(function(a){a.preventDefault();b.fancybox.prev()}),m.click(function(a){a.preventDefault();b.fancybox.next()}),b.fn.mousewheel&&c.bind("mousewheel.fb",function(a,c){if(t)a.preventDefault();else if(0==b(a.target).get(0).clientHeight||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight)a.preventDefault(),
b.fancybox[0<c?"prev":"next"]()}),b.support.opacity||c.addClass("fancybox-ie"))};b.fn.fancybox.defaults={padding:0,margin:24,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:0.4,overlayColor:"#000",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,
changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onContentLoaded:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
function easydropdown(){(function(b){function h(){this.isField=!0;this.keyboardMode=this.hasLabel=this.cutOff=this.disabled=this.inFocus=this.down=!1;this.nativeTouch=!0;this.wrapperClass="dropdown";this.onChange=null}h.prototype={constructor:h,instances:{},init:function(a,c){var d=this;b.extend(d,c);d.$select=b(a);d.id=a.id;d.options=[];d.$options=d.$select.find("option");d.isTouch="ontouchend"in document;d.$select.removeClass(d.wrapperClass+" dropdown");d.$select.is(":disabled")&&(d.disabled=!0);
d.$options.length&&(d.$options.each(function(a){var c=b(this);c.is(":selected")&&(d.selected={index:a,title:c.text()},d.focusIndex=a);c.hasClass("label")&&0==a?(d.hasLabel=!0,d.label=c.text(),c.attr("value","")):d.options.push({domNode:c[0],title:c.text(),value:c.val(),selected:c.is(":selected")})}),d.selected||(d.selected={index:0,title:d.$options.eq(0).text()},d.focusIndex=0),d.render())},render:function(){var a=this;a.$container=a.$select.wrap('<div class="'+a.wrapperClass+(a.isTouch&&a.nativeTouch?
" touch":"")+(a.disabled?" disabled":"")+'"><span class="old"/></div>').parent().parent();a.$active=b('<span class="selected">'+a.selected.title+"</span>").appendTo(a.$container);a.$carat=b('<span class="carat"/>').appendTo(a.$container);a.$scrollWrapper=b("<div><ul/></div>").appendTo(a.$container);a.$dropDown=a.$scrollWrapper.find("ul");a.$form=a.$container.closest("form");b.each(a.options,function(){a.$dropDown.append("<li"+(this.selected?' class="active"':"")+">"+this.title+"</li>")});a.$items=
a.$dropDown.find("li");a.cutOff&&a.$items.length>a.cutOff&&a.$container.addClass("scrollable");a.getMaxHeight();a.isTouch&&a.nativeTouch?a.bindTouchHandlers():a.bindHandlers()},getMaxHeight:function(){for(i=this.maxHeight=0;i<this.$items.length&&!(this.maxHeight+=this.$items.eq(i).outerHeight(),this.cutOff==i+1);i++);},bindTouchHandlers:function(){var a=this;a.$container.on("click.easyDropDown",function(){a.$select.focus()});a.$select.on({change:function(){var c=b(this).find("option:selected"),d=
c.text(),c=c.val();a.$active.text(d);"function"===typeof a.onChange&&a.onChange.call(a.$select[0],{title:d,value:c})},focus:function(){a.$container.addClass("focus")},blur:function(){a.$container.removeClass("focus")}})},bindHandlers:function(){var a=this;a.query="";a.$container.on({"click.easyDropDown":function(){a.down||a.disabled?a.close():a.open()},"mousemove.easyDropDown":function(){a.keyboardMode&&(a.keyboardMode=!1)}});b("body").on("click.easyDropDown."+a.id,function(c){var c=b(c.target),d=
a.wrapperClass.split(" ").join(".");!c.closest("."+d).length&&a.down&&a.close()});a.$items.on({"click.easyDropDown":function(){var c=b(this).index();a.select(c);a.$select.focus()},"mouseover.easyDropDown":function(){if(!a.keyboardMode){var c=b(this);c.addClass("focus").siblings().removeClass("focus");a.focusIndex=c.index()}},"mouseout.easyDropDown":function(){a.keyboardMode||b(this).removeClass("focus")}});a.$select.on({"focus.easyDropDown":function(){a.$container.addClass("focus");a.inFocus=!0},
"blur.easyDropDown":function(){a.$container.removeClass("focus");a.inFocus=!1},"keydown.easyDropDown":function(b){if(a.inFocus){a.keyboardMode=!0;var d=b.keyCode;if(38==d||40==d||32==d)b.preventDefault(),38==d?(a.focusIndex--,a.focusIndex=0>a.focusIndex?a.$items.length-1:a.focusIndex):40==d&&(a.focusIndex++,a.focusIndex=a.focusIndex>a.$items.length-1?0:a.focusIndex),a.down||a.open(),a.$items.removeClass("focus").eq(a.focusIndex).addClass("focus"),a.cutOff&&a.scrollToView(),a.query="";if(a.down)if(9==
d||27==d)a.close();else{if(13==d)return b.preventDefault(),a.select(a.focusIndex),a.close(),!1;if(8==d)return b.preventDefault(),a.query=a.query.slice(0,-1),a.search(),clearTimeout(a.resetQuery),!1;38!=d&&40!=d&&(b=String.fromCharCode(d),a.query+=b,a.search(),clearTimeout(a.resetQuery))}}},"keyup.easyDropDown":function(){a.resetQuery=setTimeout(function(){a.query=""},1200)}});a.$dropDown.on("scroll.easyDropDown",function(){a.$dropDown[0].scrollTop>=a.$dropDown[0].scrollHeight-a.maxHeight?a.$container.addClass("bottom"):
a.$container.removeClass("bottom")});if(a.$form.length)a.$form.on("reset.easyDropDown",function(){a.$active.text(a.hasLabel?a.label:a.options[0].title)})},unbindHandlers:function(){this.$container.add(this.$select).add(this.$items).add(this.$form).add(this.$dropDown).off(".easyDropDown");b("body").off("."+this.id)},open:function(){var a=window.scrollY||document.documentElement.scrollTop,b=window.scrollX||document.documentElement.scrollLeft,d=this.notInViewport(a);this.closeAll();this.getMaxHeight();
this.$select.focus();window.scrollTo(b,a+d);this.$container.addClass("open");this.$scrollWrapper.css("height",this.maxHeight+"px");this.down=!0},close:function(){this.$container.removeClass("open");this.$scrollWrapper.css("height","0px");this.focusIndex=this.selected.index;this.query="";this.down=!1},closeAll:function(){var a=Object.getPrototypeOf(this).instances,b;for(b in a)a[b].close()},select:function(a){"string"===typeof a&&(a=this.$select.find("option[value="+a+"]").index()-1);var b=this.options[a],
d=this.hasLabel?a+1:a;this.$items.removeClass("active").eq(a).addClass("active");this.$active.text(b.title);this.$select.find("option").removeAttr("selected").eq(d).prop("selected",!0).parent().trigger("change");this.selected={index:a,title:b.title};this.focusIndex=i;"function"===typeof this.onChange&&this.onChange.call(this.$select[0],{title:b.title,value:b.value})},search:function(){var a=this,b=function(b){a.focusIndex=b;a.$items.removeClass("focus").eq(a.focusIndex).addClass("focus");a.scrollToView()};
for(i=0;i<a.options.length;i++){var d=a.options[i].title.toUpperCase();if(0==d.indexOf(a.query)){b(i);return}}for(i=0;i<a.options.length;i++)if(d=a.options[i].title.toUpperCase(),-1<d.indexOf(a.query)){b(i);break}},scrollToView:function(){this.focusIndex>=this.cutOff&&this.$dropDown.scrollTop(this.$items.eq(this.focusIndex).outerHeight()*(this.focusIndex+1)-this.maxHeight)},notInViewport:function(a){var b=a+(window.innerHeight||document.documentElement.clientHeight),d=this.$dropDown.offset().top+
this.maxHeight;return d>=a&&d<=b?0:d-b+5},destroy:function(){this.unbindHandlers();this.$select.unwrap().siblings().remove();this.$select.unwrap();delete Object.getPrototypeOf(this).instances[this.$select[0].id]},disable:function(){this.disabled=!0;this.$container.addClass("disabled");this.$select.attr("disabled",!0);this.down||this.close()},enable:function(){this.disabled=!1;this.$container.removeClass("disabled");this.$select.attr("disabled",!1)}};var f=function(a,b){a.id=a.id?a.id:"EasyDropDown"+
("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase();var d=new h;d.instances[a.id]||(d.instances[a.id]=d,d.init(a,b))};b.fn.easyDropDown=function(){var a=arguments,b=[],d;d=this.each(function(){if(a&&"string"===typeof a[0]){var d=h.prototype.instances[this.id][a[0]](a[1],a[2]);d&&b.push(d)}else f(this,a[0])});return b.length?1<b.length?b:b[0]:d};b(function(){"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(a){return a.__proto__}:
function(a){return a.constructor.prototype});b("select.dropdown").each(function(){var a=b(this).attr("data-settings");settings=a?b.parseJSON(a):{};f(this,settings)})})})(jQuery)}easydropdown();
(function(b){function h(f){var a=b(this),c=null,d=[],h=null,l=null,n=b.extend({rowSelector:"> li",submenuSelector:"*",submenuDirection:"right",tolerance:75,enter:b.noop,exit:b.noop,activate:b.noop,deactivate:b.noop,exitMenu:b.noop},f),p=function(a){a!=c&&(c&&n.deactivate(c),n.activate(a),c=a)},m=function(a){var b=o();b?l=setTimeout(function(){m(a)},b):p(a)},o=function(){function e(a,b){return(b.y-a.y)/(b.x-a.x)}if(!c||!b(c).is(n.submenuSelector))return 0;var f=a.offset(),l={x:f.left,y:f.top-n.tolerance},
m={x:f.left+a.outerWidth(),y:l.y},o={x:f.left,y:f.top+a.outerHeight()+n.tolerance},p={x:f.left+a.outerWidth(),y:o.y},u=d[d.length-1],x=d[0];if(!u)return 0;x||(x=u);if(x.x<f.left||x.x>p.x||x.y<f.top||x.y>p.y||h&&u.x==h.x&&u.y==h.y)return 0;var y=m,f=p;"left"==n.submenuDirection?(y=o,f=l):"below"==n.submenuDirection?(y=p,f=o):"above"==n.submenuDirection&&(y=l,f=m);l=e(u,y);m=e(u,f);y=e(x,y);x=e(x,f);if(l<y&&m>x)return h=u,300;h=null;return 0};a.mouseleave(function(){l&&clearTimeout(l);n.exitMenu(this)&&
(c&&n.deactivate(c),c=null)}).find(n.rowSelector).mouseenter(function(){l&&clearTimeout(l);n.enter(this);m(this)}).mouseleave(function(){n.exit(this)}).click(function(){p(this)});b(document).mousemove(function(a){d.push({x:a.pageX,y:a.pageY});3<d.length&&d.shift()})}b.fn.menuAim=function(b){this.each(function(){h.call(this,b)});return this}})(jQuery);
(function(b){var h=b.fn.hover,f=function(a,c,d,f){return this.each(function(){var h,n=function(a,b,c){h=h?window.clearTimeout(h):window.setTimeout(function(){h=void 0;b.call(a,c)},"mouseenter"==c.type?d:f)};b(this).on("mouseenter mouseleave",function(b){n(this,"mouseenter"===b.type?a:c,b)})})};b.fn.hover=function(){var a=Array.prototype.slice.call(arguments);return 4===a.length&&"number"===typeof a[2]&&"number"===typeof a[3]?f.call(this,a[0],a[1],a[2],a[3]):3===a.length&&"number"===typeof a[2]?f.call(this,
a[0],a[1],a[2],a[2]):2===a.length&&"number"===typeof a[1]?f.call(this,a[0],a[0],a[1],a[1]):h.apply(this,a)}})(window.jQuery);var _ga=_ga||{},_gaq=_gaq||[];_ga.getSocialActionTrackers_=function(b,h,f,a){return function(){for(var c=_gat._getTrackers(),d=0,k;k=c[d];d++)k._trackSocial(b,h,f,a)}};
_ga.trackFacebook=function(b){try{FB&&FB.Event&&FB.Event.subscribe&&(FB.Event.subscribe("edge.create",function(f){_gaq.push(_ga.getSocialActionTrackers_("facebook","like",f,b))}),FB.Event.subscribe("edge.remove",function(f){_gaq.push(_ga.getSocialActionTrackers_("facebook","unlike",f,b))}),FB.Event.subscribe("message.send",function(f){_gaq.push(_ga.getSocialActionTrackers_("facebook","send",f,b))}))}catch(h){}};
_ga.trackTwitterHandler_=function(b,h){var f;if(b&&"tweet"==b.type||"click"==b.type)"IFRAME"==b.target.nodeName&&(f=_ga.extractParamFromUri_(b.target.src,"url")),_gaq.push(_ga.getSocialActionTrackers_("twitter",b.type+("click"==b.type?"-"+b.region:""),f,h))};_ga.trackTwitter=function(b){intent_handler=function(h){_ga.trackTwitterHandler_(h,b)};twttr.events.bind("click",intent_handler);twttr.events.bind("tweet",intent_handler)};
_ga.extractParamFromUri_=function(b,h){if(b){var f=RegExp("[\\?&#]"+h+"=([^&#]*)").exec(b);if(null!=f)return unescape(f[1])}};
var Mustache=function(){var b=function(){};b.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented:{"IMPLICIT-ITERATOR":!0},context:{},render:function(b,f,a,c){if(!c)this.context=f,this.buffer=[];if(this.includes("",b)){b=this.render_pragmas(b);b=this.render_section(b,f,a);if(c)return this.render_tags(b,f,a,c);this.render_tags(b,f,a,c)}else{if(c)return b;this.send(b)}},send:function(b){""!=b&&this.buffer.push(b)},render_pragmas:function(b){if(!this.includes("%",b))return b;var f=
this;return b.replace(RegExp(this.otag+"%([\\w-]+) ?([\\w]+=[\\w]+)?"+this.ctag),function(a,b,d){if(!f.pragmas_implemented[b])throw{message:"This implementation of mustache doesn't understand the '"+b+"' pragma"};f.pragmas[b]={};d&&(a=d.split("="),f.pragmas[b][a[0]]=a[1]);return""})},render_partial:function(b,f,a){b=this.trim(b);if(!a||void 0===a[b])throw{message:"unknown_partial '"+b+"'"};return"object"!=typeof f[b]?this.render(a[b],f,a,!0):this.render(a[b],f[b],a,!0)},render_section:function(b,
f,a){if(!this.includes("#",b)&&!this.includes("^",b))return b;var c=this;return b.replace(RegExp(this.otag+"(\\^|\\#)\\s*(.+)\\s*"+this.ctag+"\n*([\\s\\S]+?)"+this.otag+"\\/\\s*\\2\\s*"+this.ctag+"\\s*","mg"),function(b,h,l,n){b=c.find(l,f);if("^"==h)return!b||c.is_array(b)&&0===b.length?c.render(n,f,a,!0):"";if("#"==h)return c.is_array(b)?c.map(b,function(b){return c.render(n,c.create_context(b),a,!0)}).join(""):c.is_object(b)?c.render(n,c.create_context(b),a,!0):"function"===typeof b?b.call(f,n,
function(b){return c.render(b,f,a,!0)}):b?c.render(n,f,a,!0):""})},render_tags:function(b,f,a,c){for(var d=this,k=function(){return RegExp(d.otag+"(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?"+d.ctag+"+","g")},l=k(),n=function(b,c,e){switch(c){case "!":return"";case "=":return d.set_delimiters(e),l=k(),"";case ">":return d.render_partial(e,f,a);case "{":return d.find(e,f);default:return d.escape(d.find(e,f))}},b=b.split("\n"),p=0;p<b.length;p++)b[p]=b[p].replace(l,n,this),c||this.send(b[p]);if(c)return b.join("\n")},
set_delimiters:function(b){b=b.split(" ");this.otag=this.escape_regex(b[0]);this.ctag=this.escape_regex(b[1])},escape_regex:function(b){if(!arguments.callee.sRE)arguments.callee.sRE=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");return b.replace(arguments.callee.sRE,"\\$1")},find:function(b,f){var b=this.trim(b),a;!1===f[b]||0===f[b]||f[b]?a=f[b]:(!1===this.context[b]||0===this.context[b]||this.context[b])&&(a=this.context[b]);return"function"===typeof a?a.apply(f):void 0!==
a?a:""},includes:function(b,f){return-1!=f.indexOf(this.otag+b)},escape:function(b){return(""+(null===b?"":b)).replace(/&(?!\w+;)|["'<>\\]/g,function(b){switch(b){case "&":return"&amp;";case "\\":return"\\\\";case '"':return"&quot;";case "'":return"&#39;";case "<":return"&lt;";case ">":return"&gt;";default:return b}})},create_context:function(b){if(this.is_object(b))return b;var f=".";if(this.pragmas["IMPLICIT-ITERATOR"])f=this.pragmas["IMPLICIT-ITERATOR"].iterator;var a={};a[f]=b;return a},is_object:function(b){return b&&
"object"==typeof b},is_array:function(b){return"[object Array]"===Object.prototype.toString.call(b)},trim:function(b){return b.replace(/^\s*|\s*$/g,"")},map:function(b,f){if("function"==typeof b.map)return b.map(f);for(var a=[],c=b.length,d=0;d<c;d++)a.push(f(b[d]));return a}};return{name:"mustache.js",version:"0.3.1-dev",to_html:function(h,f,a,c){var d=new b;if(c)d.send=c;d.render(h,f,a);if(!c)return d.buffer.join("\n")}}}();
