text: /*
   * jQuery JavaScript Library v1.7.1
   * http://jquery.com/
   *
   * Copyright 2011, John Resig
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * Includes Sizzle.js
   * http://sizzlejs.com/
   * Copyright 2011, The Dojo Foundation
   * Released under the MIT, BSD, and GPL Licenses.
   *
   * Date: Mon Nov 21 21:11:03 2011 -0500
   */
  !function(t,e){function i(t){var e,i,n=F[t]={};for(t=t.split(/\s+/),e=0,i=t.length;i>e;e++)n[t[e]]=!0;return n}function n(t,i,n){if(n===e&&1===t.nodeType){var s="data-"+i.replace(W,"-$1").toLowerCase();if(n=t.getAttribute(s),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:O.isNumeric(n)?parseFloat(n):j.test(n)?O.parseJSON(n):n}catch(o){}O.data(t,i,n)}else n=e}return n}function s(t){for(var e in t)if(("data"!==e||!O.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function o(t,e,i){var n=e+"defer",s=e+"queue",o=e+"mark",r=O._data(t,n);!r||"queue"!==i&&O._data(t,s)||"mark"!==i&&O._data(t,o)||setTimeout(function(){O._data(t,s)||O._data(t,o)||(O.removeData(t,n,!0),r.fire())},0)}function r(){return!1}function a(){return!0}function l(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function u(t,e,i){if(e=e||0,O.isFunction(e))return O.grep(t,function(t,n){var s=!!e.call(t,n,t);return s===i});if(e.nodeType)return O.grep(t,function(t){return t===e===i});if("string"==typeof e){var n=O.grep(t,function(t){return 1===t.nodeType});if(ce.test(e))return O.filter(e,n,!i);e=O.filter(e,n)}return O.grep(t,function(t){return O.inArray(t,e)>=0===i})}function h(t){var e=me.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function c(t){return O.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t,e){if(1===e.nodeType&&O.hasData(t)){var i,n,s,o=O._data(t),r=O._data(e,o),a=o.events;if(a){delete r.handle,r.events={};for(i in a)for(n=0,s=a[i].length;s>n;n++)O.event.add(e,i+(a[i][n].namespace?".":"")+a[i][n].namespace,a[i][n],a[i][n].data)}r.data&&(r.data=O.extend({},r.data))}}function p(t,e){var i;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),i=e.nodeName.toLowerCase(),"object"===i?e.outerHTML=t.outerHTML:"input"!==i||"checkbox"!==t.type&&"radio"!==t.type?"option"===i?e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(O.expando))}function f(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function m(t){("checkbox"===t.type||"radio"===t.type)&&(t.defaultChecked=t.checked)}function g(t){var e=(t.nodeName||"").toLowerCase();"input"===e?m(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&O.grep(t.getElementsByTagName("input"),m)}function v(t){var e=z.createElement("div");return _e.appendChild(e),e.innerHTML=t.outerHTML,e.firstChild}function y(t,e){e.src?O.ajax({url:e.src,async:!1,dataType:"script"}):O.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Ee,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)}function b(t,e,i){var n="width"===e?t.offsetWidth:t.offsetHeight,s="width"===e?We:$e,o=0,r=s.length;if(n>0){if("border"!==i)for(;r>o;o++)i||(n-=parseFloat(O.css(t,"padding"+s[o]))||0),"margin"===i?n+=parseFloat(O.css(t,i+s[o]))||0:n-=parseFloat(O.css(t,"border"+s[o]+"Width"))||0;return n+"px"}if(n=ke(t,e,e),(0>n||null==n)&&(n=t.style[e]||0),n=parseFloat(n)||0,i)for(;r>o;o++)n+=parseFloat(O.css(t,"padding"+s[o]))||0,"padding"!==i&&(n+=parseFloat(O.css(t,"border"+s[o]+"Width"))||0),"margin"===i&&(n+=parseFloat(O.css(t,i+s[o]))||0);return n+"px"}function w(t){return function(e,i){if("string"!=typeof e&&(i=e,e="*"),O.isFunction(i))for(var n,s,o,r=e.toLowerCase().split(ii),a=0,l=r.length;l>a;a++)n=r[a],o=/^\+/.test(n),o&&(n=n.substr(1)||"*"),s=t[n]=t[n]||[],s[o?"unshift":"push"](i)}}function x(t,i,n,s,o,r){o=o||i.dataTypes[0],r=r||{},r[o]=!0;for(var a,l=t[o],u=0,h=l?l.length:0,c=t===ri;h>u&&(c||!a);u++)a=l[u](i,n,s),"string"==typeof a&&(!c||r[a]?a=e:(i.dataTypes.unshift(a),a=x(t,i,n,s,a,r)));return!c&&a||r["*"]||(a=x(t,i,n,s,"*",r)),a}function T(t,i){var n,s,o=O.ajaxSettings.flatOptions||{};for(n in i)i[n]!==e&&((o[n]?t:s||(s={}))[n]=i[n]);s&&O.extend(!0,t,s)}function S(t,e,i,n){if(O.isArray(e))O.each(e,function(e,s){i||Xe.test(t)?n(t,s):S(t+"["+("object"==typeof s||O.isArray(s)?e:"")+"]",s,i,n)});else if(i||null==e||"object"!=typeof e)n(t,e);else for(var s in e)S(t+"["+s+"]",e[s],i,n)}function C(t,i,n){var s,o,r,a,l=t.contents,u=t.dataTypes,h=t.responseFields;for(o in h)o in n&&(i[h[o]]=n[o]);for(;"*"===u[0];)u.shift(),s===e&&(s=t.mimeType||i.getResponseHeader("content-type"));if(s)for(o in l)if(l[o]&&l[o].test(s)){u.unshift(o);break}if(u[0]in n)r=u[0];else{for(o in n){if(!u[0]||t.converters[o+" "+u[0]]){r=o;break}a||(a=o)}r=r||a}return r?(r!==u[0]&&u.unshift(r),n[r]):void 0}function M(t,i){t.dataFilter&&(i=t.dataFilter(i,t.dataType));var n,s,o,r,a,l,u,h,c=t.dataTypes,d={},p=c.length,f=c[0];for(n=1;p>n;n++){if(1===n)for(s in t.converters)"string"==typeof s&&(d[s.toLowerCase()]=t.converters[s]);if(r=f,f=c[n],"*"===f)f=r;else if("*"!==r&&r!==f){if(a=r+" "+f,l=d[a]||d["* "+f],!l){h=e;for(u in d)if(o=u.split(" "),(o[0]===r||"*"===o[0])&&(h=d[o[1]+" "+f])){u=d[u],u===!0?l=h:h===!0&&(l=u);break}}l||h||O.error("No conversion from "+a.replace(" "," to ")),l!==!0&&(i=l?l(i):h(u(i)))}}return i}function N(){try{return new t.XMLHttpRequest}catch(e){}}function E(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function D(){return setTimeout(_,0),yi=O.now()}function _(){yi=e}function k(t,e){var i={};return O.each(Ti.concat.apply([],Ti.slice(0,e)),function(){i[this]=t}),i}function A(t){if(!bi[t]){var e=z.body,i=O("<"+t+">").appendTo(e),n=i.css("display");i.remove(),("none"===n||""===n)&&(mi||(mi=z.createElement("iframe"),mi.frameBorder=mi.width=mi.height=0),e.appendChild(mi),gi&&mi.createElement||(gi=(mi.contentWindow||mi.contentDocument).document,gi.write(("CSS1Compat"===z.compatMode?"<!doctype html>":"")+"<html><body>"),gi.close()),i=gi.createElement(t),gi.body.appendChild(i),n=O.css(i,"display"),e.removeChild(mi)),bi[t]=n}return bi[t]}function H(t){return O.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var z=t.document,I=t.navigator,L=t.location,O=function(){function i(){if(!a.isReady){try{z.documentElement.doScroll("left")}catch(t){return void setTimeout(i,1)}a.ready()}}var n,s,o,r,a=function(t,e){return new a.fn.init(t,e,n)},l=t.jQuery,u=t.$,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,c=/\S/,d=/^\s+/,p=/\s+$/,f=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,T=/(mozilla)(?:.*? rv:([\w.]+))?/,S=/-([a-z]|[0-9])/gi,C=/^-ms-/,M=function(t,e){return(e+"").toUpperCase()},N=I.userAgent,E=Object.prototype.toString,D=Object.prototype.hasOwnProperty,_=Array.prototype.push,k=Array.prototype.slice,A=String.prototype.trim,H=Array.prototype.indexOf,L={};return a.fn=a.prototype={constructor:a,init:function(t,i,n){var s,o,r,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!i&&z.body)return this.context=z,this[0]=z.body,this.selector=t,this.length=1,this;if("string"==typeof t){if(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:h.exec(t),!s||!s[1]&&i)return!i||i.jquery?(i||n).find(t):this.constructor(i).find(t);if(s[1])return i=i instanceof a?i[0]:i,l=i?i.ownerDocument||i:z,r=f.exec(t),r?a.isPlainObject(i)?(t=[z.createElement(r[1])],a.fn.attr.call(t,i,!0)):t=[l.createElement(r[1])]:(r=a.buildFragment([s[1]],[l]),t=(r.cacheable?a.clone(r.fragment):r.fragment).childNodes),a.merge(this,t);if(o=z.getElementById(s[2]),o&&o.parentNode){if(o.id!==s[2])return n.find(t);this.length=1,this[0]=o}return this.context=z,this.selector=t,this}return a.isFunction(t)?n.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),a.makeArray(t,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return k.call(this,0)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,i){var n=this.constructor();return a.isArray(t)?_.apply(n,t):a.merge(n,t),n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+i:e&&(n.selector=this.selector+"."+e+"("+i+")"),n},each:function(t,e){return a.each(this,t,e)},ready:function(t){return a.bindReady(),o.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(t){return this.pushStack(a.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:_,sort:[].sort,splice:[].splice},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var t,i,n,s,o,r,l=arguments[0]||{},u=1,h=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},u=2),"object"==typeof l||a.isFunction(l)||(l={}),h===u&&(l=this,--u);h>u;u++)if(null!=(t=arguments[u]))for(i in t)n=l[i],s=t[i],l!==s&&(c&&s&&(a.isPlainObject(s)||(o=a.isArray(s)))?(o?(o=!1,r=n&&a.isArray(n)?n:[]):r=n&&a.isPlainObject(n)?n:{},l[i]=a.extend(c,r,s)):s!==e&&(l[i]=s));return l},a.extend({noConflict:function(e){return t.$===a&&(t.$=u),e&&t.jQuery===a&&(t.jQuery=l),a},isReady:!1,readyWait:1,holdReady:function(t){t?a.readyWait++:a.ready(!0)},ready:function(t){if(t===!0&&!--a.readyWait||t!==!0&&!a.isReady){if(!z.body)return setTimeout(a.ready,1);if(a.isReady=!0,t!==!0&&--a.readyWait>0)return;o.fireWith(z,[a]),a.fn.trigger&&a(z).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=a.Callbacks("once memory"),"complete"===z.readyState)return setTimeout(a.ready,1);if(z.addEventListener)z.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",a.ready,!1);else if(z.attachEvent){z.attachEvent("onreadystatechange",r),t.attachEvent("onload",a.ready);var e=!1;try{e=null==t.frameElement}catch(n){}z.documentElement.doScroll&&e&&i()}}},isFunction:function(t){return"function"===a.type(t)},isArray:Array.isArray||function(t){return"array"===a.type(t)},isWindow:function(t){return t&&"object"==typeof t&&"setInterval"in t},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):L[E.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==a.type(t)||t.nodeType||a.isWindow(t))return!1;try{if(t.constructor&&!D.call(t,"constructor")&&!D.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}var n;for(n in t);return n===e||D.call(t,n)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=a.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):m.test(e.replace(g,"@").replace(v,"]").replace(y,""))?new Function("return "+e)():void a.error("Invalid JSON: "+e)):null},parseXML:function(i){var n,s;try{t.DOMParser?(s=new DOMParser,n=s.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(o){n=e}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||a.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(e){e&&c.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(C,"ms-").replace(S,M)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,i,n){var s,o=0,r=t.length,l=r===e||a.isFunction(t);if(n)if(l){for(s in t)if(i.apply(t[s],n)===!1)break}else for(;r>o&&i.apply(t[o++],n)!==!1;);else if(l){for(s in t)if(i.call(t[s],s,t[s])===!1)break}else for(;r>o&&i.call(t[o],o,t[o++])!==!1;);return t},trim:A?function(t){return null==t?"":A.call(t)}:function(t){return null==t?"":t.toString().replace(d,"").replace(p,"")},makeArray:function(t,e){var i=e||[];if(null!=t){var n=a.type(t);null==t.length||"string"===n||"function"===n||"regexp"===n||a.isWindow(t)?_.call(i,t):a.merge(i,t)}return i},inArray:function(t,e,i){var n;if(e){if(H)return H.call(e,t,i);for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,i){var n=t.length,s=0;if("number"==typeof i.length)for(var o=i.length;o>s;s++)t[n++]=i[s];else for(;i[s]!==e;)t[n++]=i[s++];return t.length=n,t},grep:function(t,e,i){var n,s=[];i=!!i;for(var o=0,r=t.length;r>o;o++)n=!!e(t[o],o),i!==n&&s.push(t[o]);return s},map:function(t,i,n){var s,o,r=[],l=0,u=t.length,h=t instanceof a||u!==e&&"number"==typeof u&&(u>0&&t[0]&&t[u-1]||0===u||a.isArray(t));if(h)for(;u>l;l++)s=i(t[l],l,n),null!=s&&(r[r.length]=s);else for(o in t)s=i(t[o],o,n),null!=s&&(r[r.length]=s);return r.concat.apply([],r)},guid:1,proxy:function(t,i){if("string"==typeof i){var n=t[i];i=t,t=n}if(!a.isFunction(t))return e;var s=k.call(arguments,2),o=function(){return t.apply(i,s.concat(k.call(arguments)))};return o.guid=t.guid=t.guid||o.guid||a.guid++,o},access:function(t,i,n,s,o,r){var l=t.length;if("object"==typeof i){for(var u in i)a.access(t,u,i[u],s,o,n);return t}if(n!==e){s=!r&&s&&a.isFunction(n);for(var h=0;l>h;h++)o(t[h],i,s?n.call(t[h],h,o(t[h],i)):n,r);return t}return l?o(t[0],i):e},now:function(){return(new Date).getTime()},uaMatch:function(t){t=t.toLowerCase();var e=b.exec(t)||w.exec(t)||x.exec(t)||t.indexOf("compatible")<0&&T.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function t(e,i){return new t.fn.init(e,i)}a.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(i,n){return n&&n instanceof a&&!(n instanceof t)&&(n=t(n)),a.fn.init.call(this,i,n,e)},t.fn.init.prototype=t.fn;var e=t(z);return t},browser:{}}),a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){L["[object "+e+"]"]=e.toLowerCase()}),s=a.uaMatch(N),s.browser&&(a.browser[s.browser]=!0,a.browser.version=s.version),a.browser.webkit&&(a.browser.safari=!0),c.test("\xa0")&&(d=/^[\s\xA0]+/,p=/[\s\xA0]+$/),n=a(z),z.addEventListener?r=function(){z.removeEventListener("DOMContentLoaded",r,!1),a.ready()}:z.attachEvent&&(r=function(){"complete"===z.readyState&&(z.detachEvent("onreadystatechange",r),a.ready())}),a}(),F={};O.Callbacks=function(t){t=t?F[t]||i(t):{};var n,s,o,r,a,l=[],u=[],h=function(e){var i,n,s,o;for(i=0,n=e.length;n>i;i++)s=e[i],o=O.type(s),"array"===o?h(s):"function"===o&&(t.unique&&d.has(s)||l.push(s))},c=function(e,i){for(i=i||[],n=!t.memory||[e,i],s=!0,a=o||0,o=0,r=l.length;l&&r>a;a++)if(l[a].apply(e,i)===!1&&t.stopOnFalse){n=!0;break}s=!1,l&&(t.once?n===!0?d.disable():l=[]:u&&u.length&&(n=u.shift(),d.fireWith(n[0],n[1])))},d={add:function(){if(l){var t=l.length;h(arguments),s?r=l.length:n&&n!==!0&&(o=t,c(n[0],n[1]))}return this},remove:function(){if(l)for(var e=arguments,i=0,n=e.length;n>i;i++)for(var o=0;o<l.length&&(e[i]!==l[o]||(s&&r>=o&&(r--,a>=o&&a--),l.splice(o--,1),!t.unique));o++);return this},has:function(t){if(l)for(var e=0,i=l.length;i>e;e++)if(t===l[e])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=u=n=e,this},disabled:function(){return!l},lock:function(){return u=e,n&&n!==!0||d.disable(),this},locked:function(){return!u},fireWith:function(e,i){return u&&(s?t.once||u.push([e,i]):t.once&&n||c(e,i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d};var P=[].slice;O.extend({Deferred:function(t){var e,i=O.Callbacks("once memory"),n=O.Callbacks("once memory"),s=O.Callbacks("memory"),o="pending",r={resolve:i,reject:n,notify:s},a={done:i.add,fail:n.add,progress:s.add,state:function(){return o},isResolved:i.fired,isRejected:n.fired,then:function(t,e,i){return l.done(t).fail(e).progress(i),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,i){return O.Deferred(function(n){O.each({done:[t,"resolve"],fail:[e,"reject"],progress:[i,"notify"]},function(t,e){var i,s=e[0],o=e[1];l[t](O.isFunction(s)?function(){i=s.apply(this,arguments),i&&O.isFunction(i.promise)?i.promise().then(n.resolve,n.reject,n.notify):n[o+"With"](this===l?n:this,[i])}:n[o])})}).promise()},promise:function(t){if(null==t)t=a;else for(var e in a)t[e]=a[e];return t}},l=a.promise({});for(e in r)l[e]=r[e].fire,l[e+"With"]=r[e].fireWith;return l.done(function(){o="resolved"},n.disable,s.lock).fail(function(){o="rejected"},i.disable,s.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){n[t]=arguments.length>1?P.call(arguments,0):e,--a||l.resolveWith(l,n)}}function i(t){return function(e){r[t]=arguments.length>1?P.call(arguments,0):e,l.notifyWith(u,r)}}var n=P.call(arguments,0),s=0,o=n.length,r=new Array(o),a=o,l=1>=o&&t&&O.isFunction(t.promise)?t:O.Deferred(),u=l.promise();if(o>1){for(;o>s;s++)n[s]&&n[s].promise&&O.isFunction(n[s].promise)?n[s].promise().then(e(s),l.reject,i(s)):--a;a||l.resolveWith(l,n)}else l!==t&&l.resolveWith(l,o?[t]:[]);return u}}),O.support=function(){{var e,i,n,s,o,r,a,l,u,h,c,d,p=z.createElement("div");z.documentElement}if(p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",i=p.getElementsByTagName("*"),n=p.getElementsByTagName("a")[0],!i||!i.length||!n)return{};s=z.createElement("select"),o=s.appendChild(z.createElement("option")),r=p.getElementsByTagName("input")[0],e={leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===r.value,optSelected:o.selected,getSetAttribute:"t"!==p.className,enctype:!!z.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},r.checked=!0,e.noCloneChecked=r.cloneNode(!0).checked,s.disabled=!0,e.optDisabled=!o.disabled;try{delete p.test}catch(f){e.deleteExpando=!1}if(!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),r=z.createElement("input"),r.value="t",r.setAttribute("type","radio"),e.radioValue="t"===r.value,r.setAttribute("checked","checked"),p.appendChild(r),l=z.createDocumentFragment(),l.appendChild(p.lastChild),e.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=r.checked,l.removeChild(r),l.appendChild(p),p.innerHTML="",t.getComputedStyle&&(a=z.createElement("div"),a.style.width="0",a.style.marginRight="0",p.style.width="2px",p.appendChild(a),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),p.attachEvent)for(c in{submit:1,change:1,focusin:1})h="on"+c,d=h in p,d||(p.setAttribute(h,"return;"),d="function"==typeof p[h]),e[c+"Bubbles"]=d;return l.removeChild(p),l=s=o=a=p=r=null,O(function(){var t,i,n,s,o,r,a,l,h,c,f=z.getElementsByTagName("body")[0];f&&(r=1,a="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",h="style='"+a+"border:5px solid #000;padding:0;'",c="<div "+h+"><div></div></div><table "+h+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",t=z.createElement("div"),t.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+r+"px",f.insertBefore(t,f.firstChild),p=z.createElement("div"),t.appendChild(p),p.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",u=p.getElementsByTagName("td"),d=0===u[0].offsetHeight,u[0].style.display="",u[1].style.display="none",e.reliableHiddenOffsets=d&&0===u[0].offsetHeight,p.innerHTML="",p.style.width=p.style.paddingLeft="1px",O.boxModel=e.boxModel=2===p.offsetWidth,"undefined"!=typeof p.style.zoom&&(p.style.display="inline",p.style.zoom=1,e.inlineBlockNeedsLayout=2===p.offsetWidth,p.style.display="",p.innerHTML="<div style='width:4px;'></div>",e.shrinkWrapBlocks=2!==p.offsetWidth),p.style.cssText=a+l,p.innerHTML=c,i=p.firstChild,n=i.firstChild,s=i.nextSibling.firstChild.firstChild,o={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===s.offsetTop},n.style.position="fixed",n.style.top="20px",o.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",i.style.overflow="hidden",i.style.position="relative",o.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,o.doesNotIncludeMarginInBodyOffset=f.offsetTop!==r,f.removeChild(t),p=t=null,O.extend(e,o))}),e}();var j=/^(?:\{.*\}|\[.*\])$/,W=/([A-Z])/g;O.extend({cache:{},uuid:0,expando:"jQuery"+(O.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?O.cache[t[O.expando]]:t[O.expando],!!t&&!s(t)},data:function(t,i,n,s){if(O.acceptData(t)){var o,r,a,l=O.expando,u="string"==typeof i,h=t.nodeType,c=h?O.cache:t,d=h?t[l]:t[l]&&l,p="events"===i;if(d&&c[d]&&(p||s||c[d].data)||!u||n!==e)return d||(h?t[l]=d=++O.uuid:d=l),c[d]||(c[d]={},h||(c[d].toJSON=O.noop)),("object"==typeof i||"function"==typeof i)&&(s?c[d]=O.extend(c[d],i):c[d].data=O.extend(c[d].data,i)),o=r=c[d],s||(r.data||(r.data={}),r=r.data),n!==e&&(r[O.camelCase(i)]=n),p&&!r[i]?o.events:(u?(a=r[i],null==a&&(a=r[O.camelCase(i)])):a=r,a)}},removeData:function(t,e,i){if(O.acceptData(t)){var n,o,r,a=O.expando,l=t.nodeType,u=l?O.cache:t,h=l?t[a]:a;if(u[h]){if(e&&(n=i?u[h]:u[h].data)){O.isArray(e)||(e in n?e=[e]:(e=O.camelCase(e),e=e in n?[e]:e.split(" ")));for(o=0,r=e.length;r>o;o++)delete n[e[o]];if(!(i?s:O.isEmptyObject)(n))return}(i||(delete u[h].data,s(u[h])))&&(O.support.deleteExpando||!u.setInterval?delete u[h]:u[h]=null,l&&(O.support.deleteExpando?delete t[a]:t.removeAttribute?t.removeAttribute(a):t[a]=null))}}},_data:function(t,e,i){return O.data(t,e,i,!0)},acceptData:function(t){if(t.nodeName){var e=O.noData[t.nodeName.toLowerCase()];if(e)return!(e===!0||t.getAttribute("classid")!==e)}return!0}}),O.fn.extend({data:function(t,i){var s,o,r,a=null;if("undefined"==typeof t){if(this.length&&(a=O.data(this[0]),1===this[0].nodeType&&!O._data(this[0],"parsedAttrs"))){o=this[0].attributes;for(var l=0,u=o.length;u>l;l++)r=o[l].name,0===r.indexOf("data-")&&(r=O.camelCase(r.substring(5)),n(this[0],r,a[r]));O._data(this[0],"parsedAttrs",!0)}return a}return"object"==typeof t?this.each(function(){O.data(this,t)}):(s=t.split("."),s[1]=s[1]?"."+s[1]:"",i===e?(a=this.triggerHandler("getData"+s[1]+"!",[s[0]]),a===e&&this.length&&(a=O.data(this[0],t),a=n(this[0],t,a)),a===e&&s[1]?this.data(s[0]):a):this.each(function(){var e=O(this),n=[s[0],i];e.triggerHandler("setData"+s[1]+"!",n),O.data(this,t,i),e.triggerHandler("changeData"+s[1]+"!",n)}))},removeData:function(t){return this.each(function(){O.removeData(this,t)})}}),O.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",O._data(t,e,(O._data(t,e)||0)+1))},_unmark:function(t,e,i){if(t!==!0&&(i=e,e=t,t=!1),e){i=i||"fx";var n=i+"mark",s=t?0:(O._data(e,n)||1)-1;s?O._data(e,n,s):(O.removeData(e,n,!0),o(e,i,"mark"))}},queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=O._data(t,e),i&&(!n||O.isArray(i)?n=O._data(t,e,O.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=O.queue(t,e),n=i.shift(),s={};"inprogress"===n&&(n=i.shift()),n&&("fx"===e&&i.unshift("inprogress"),O._data(t,e+".run",s),n.call(t,function(){O.dequeue(t,e)},s)),i.length||(O.removeData(t,e+"queue "+e+".run",!0),o(t,e,"queue"))}}),O.fn.extend({queue:function(t,i){return"string"!=typeof t&&(i=t,t="fx"),i===e?O.queue(this[0],t):this.each(function(){var e=O.queue(this,t,i);"fx"===t&&"inprogress"!==e[0]&&O.dequeue(this,t)})},dequeue:function(t){return this.each(function(){O.dequeue(this,t)})},delay:function(t,e){return t=O.fx?O.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,i){function n(){--l||o.resolveWith(r,[r])}"string"!=typeof t&&(i=t,t=e),t=t||"fx";for(var s,o=O.Deferred(),r=this,a=r.length,l=1,u=t+"defer",h=t+"queue",c=t+"mark";a--;)(s=O.data(r[a],u,e,!0)||(O.data(r[a],h,e,!0)||O.data(r[a],c,e,!0))&&O.data(r[a],u,O.Callbacks("once memory"),!0))&&(l++,s.add(n));return n(),o.promise()}});var $,R,B,q=/[\n\t\r]/g,X=/\s+/,Y=/\r/g,U=/^(?:button|input)$/i,V=/^(?:button|input|object|select|textarea)$/i,Q=/^a(?:rea)?$/i,G=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,K=O.support.getSetAttribute;O.fn.extend({attr:function(t,e){return O.access(this,t,e,!0,O.attr)},removeAttr:function(t){return this.each(function(){O.removeAttr(this,t)})},prop:function(t,e){return O.access(this,t,e,!0,O.prop)},removeProp:function(t){return t=O.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(i){}})},addClass:function(t){var e,i,n,s,o,r,a;if(O.isFunction(t))return this.each(function(e){O(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(X),i=0,n=this.length;n>i;i++)if(s=this[i],1===s.nodeType)if(s.className||1!==e.length){for(o=" "+s.className+" ",r=0,a=e.length;a>r;r++)~o.indexOf(" "+e[r]+" ")||(o+=e[r]+" ");s.className=O.trim(o)}else s.className=t;return this},removeClass:function(t){var i,n,s,o,r,a,l;if(O.isFunction(t))return this.each(function(e){O(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(i=(t||"").split(X),n=0,s=this.length;s>n;n++)if(o=this[n],1===o.nodeType&&o.className)if(t){for(r=(" "+o.className+" ").replace(q," "),a=0,l=i.length;l>a;a++)r=r.replace(" "+i[a]+" "," ");o.className=O.trim(r)}else o.className="";return this},toggleClass:function(t,e){var i=typeof t,n="boolean"==typeof e;return this.each(O.isFunction(t)?function(i){O(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var s,o=0,r=O(this),a=e,l=t.split(X);s=l[o++];)a=n?a:!r.hasClass(s),r[a?"addClass":"removeClass"](s);else("undefined"===i||"boolean"===i)&&(this.className&&O._data(this,"__className__",this.className),this.className=this.className||t===!1?"":O._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(q," ").indexOf(e)>-1)return!0;return!1},val:function(t){var i,n,s,o=this[0];{if(arguments.length)return s=O.isFunction(t),this.each(function(n){var o,r=O(this);1===this.nodeType&&(o=s?t.call(this,n,r.val()):t,null==o?o="":"number"==typeof o?o+="":O.isArray(o)&&(o=O.map(o,function(t){return null==t?"":t+""})),i=O.valHooks[this.nodeName.toLowerCase()]||O.valHooks[this.type],i&&"set"in i&&i.set(this,o,"value")!==e||(this.value=o))});if(o)return i=O.valHooks[o.nodeName.toLowerCase()]||O.valHooks[o.type],i&&"get"in i&&(n=i.get(o,"value"))!==e?n:(n=o.value,"string"==typeof n?n.replace(Y,""):null==n?"":n)}}}),O.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,i,n,s,o=t.selectedIndex,r=[],a=t.options,l="select-one"===t.type;if(0>o)return null;for(i=l?o:0,n=l?o+1:a.length;n>i;i++)if(s=a[i],!(!s.selected||(O.support.optDisabled?s.disabled:null!==s.getAttribute("disabled"))||s.parentNode.disabled&&O.nodeName(s.parentNode,"optgroup"))){if(e=O(s).val(),l)return e;r.push(e)}return l&&!r.length&&a.length?O(a[o]).val():r},set:function(t,e){var i=O.makeArray(e);return O(t).find("option").each(function(){this.selected=O.inArray(O(this).val(),i)>=0}),i.length||(t.selectedIndex=-1),i}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,i,n,s){var o,r,a,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return s&&i in O.attrFn?O(t)[i](n):"undefined"==typeof t.getAttribute?O.prop(t,i,n):(a=1!==l||!O.isXMLDoc(t),a&&(i=i.toLowerCase(),r=O.attrHooks[i]||(G.test(i)?R:$)),n!==e?null===n?void O.removeAttr(t,i):r&&"set"in r&&a&&(o=r.set(t,n,i))!==e?o:(t.setAttribute(i,""+n),n):r&&"get"in r&&a&&null!==(o=r.get(t,i))?o:(o=t.getAttribute(i),null===o?e:o))},removeAttr:function(t,e){var i,n,s,o,r=0;if(e&&1===t.nodeType)for(n=e.toLowerCase().split(X),o=n.length;o>r;r++)s=n[r],s&&(i=O.propFix[s]||s,O.attr(t,s,""),t.removeAttribute(K?s:i),G.test(s)&&i in t&&(t[i]=!1))},attrHooks:{type:{set:function(t,e){if(U.test(t.nodeName)&&t.parentNode)O.error("type property can't be changed");else if(!O.support.radioValue&&"radio"===e&&O.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}},value:{get:function(t,e){return $&&O.nodeName(t,"button")?$.get(t,e):e in t?t.value:null},set:function(t,e,i){return $&&O.nodeName(t,"button")?$.set(t,e,i):void(t.value=e)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,i,n){var s,o,r,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return r=1!==a||!O.isXMLDoc(t),r&&(i=O.propFix[i]||i,o=O.propHooks[i]),n!==e?o&&"set"in o&&(s=o.set(t,n,i))!==e?s:t[i]=n:o&&"get"in o&&null!==(s=o.get(t,i))?s:t[i]},propHooks:{tabIndex:{get:function(t){var i=t.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):V.test(t.nodeName)||Q.test(t.nodeName)&&t.href?0:e}}}}),O.attrHooks.tabindex=O.propHooks.tabIndex,R={get:function(t,i){var n,s=O.prop(t,i);return s===!0||"boolean"!=typeof s&&(n=t.getAttributeNode(i))&&n.nodeValue!==!1?i.toLowerCase():e},set:function(t,e,i){var n;return e===!1?O.removeAttr(t,i):(n=O.propFix[i]||i,n in t&&(t[n]=!0),t.setAttribute(i,i.toLowerCase())),i}},K||(B={name:!0,id:!0},$=O.valHooks.button={get:function(t,i){var n;return n=t.getAttributeNode(i),n&&(B[i]?""!==n.nodeValue:n.specified)?n.nodeValue:e},set:function(t,e,i){var n=t.getAttributeNode(i);return n||(n=z.createAttribute(i),t.setAttributeNode(n)),n.nodeValue=e+""}},O.attrHooks.tabindex.set=$.set,O.each(["width","height"],function(t,e){O.attrHooks[e]=O.extend(O.attrHooks[e],{set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}})}),O.attrHooks.contenteditable={get:$.get,set:function(t,e,i){""===e&&(e="false"),$.set(t,e,i)}}),O.support.hrefNormalized||O.each(["href","src","width","height"],function(t,i){O.attrHooks[i]=O.extend(O.attrHooks[i],{get:function(t){var n=t.getAttribute(i,2);return null===n?e:n}})}),O.support.style||(O.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),O.support.optSelected||(O.propHooks.selected=O.extend(O.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),O.support.enctype||(O.propFix.enctype="encoding"),O.support.checkOn||O.each(["radio","checkbox"],function(){O.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),O.each(["radio","checkbox"],function(){O.valHooks[this]=O.extend(O.valHooks[this],{set:function(t,e){return O.isArray(e)?t.checked=O.inArray(O(t).val(),e)>=0:void 0}})});var J=/^(?:textarea|input|select)$/i,Z=/^([^\.]*)?(?:\.(.+))?$/,te=/\bhover(\.\S+)?\b/,ee=/^key/,ie=/^(?:mouse|contextmenu)|click/,ne=/^(?:focusinfocus|focusoutblur)$/,se=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,oe=function(t){var e=se.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},re=function(t,e){var i=t.attributes||{};return!(e[1]&&t.nodeName.toLowerCase()!==e[1]||e[2]&&(i.id||{}).value!==e[2]||e[3]&&!e[3].test((i["class"]||{}).value))},ae=function(t){return O.event.special.hover?t:t.replace(te,"mouseenter$1 mouseleave$1")};O.event={add:function(t,i,n,s,o){var r,a,l,u,h,c,d,p,f,m,g;if(3!==t.nodeType&&8!==t.nodeType&&i&&n&&(r=O._data(t))){for(n.handler&&(f=n,n=f.handler),n.guid||(n.guid=O.guid++),l=r.events,l||(r.events=l={}),a=r.handle,a||(r.handle=a=function(t){return"undefined"==typeof O||t&&O.event.triggered===t.type?e:O.event.dispatch.apply(a.elem,arguments)},a.elem=t),i=O.trim(ae(i)).split(" "),u=0;u<i.length;u++)h=Z.exec(i[u])||[],c=h[1],d=(h[2]||"").split(".").sort(),g=O.event.special[c]||{},c=(o?g.delegateType:g.bindType)||c,g=O.event.special[c]||{},p=O.extend({type:c,origType:h[1],data:s,handler:n,guid:n.guid,selector:o,quick:oe(o),namespace:d.join(".")},f),m=l[c],m||(m=l[c]=[],m.delegateCount=0,g.setup&&g.setup.call(t,s,d,a)!==!1||(t.addEventListener?t.addEventListener(c,a,!1):t.attachEvent&&t.attachEvent("on"+c,a))),g.add&&(g.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),o?m.splice(m.delegateCount++,0,p):m.push(p),O.event.global[c]=!0;
  t=null}},global:{},remove:function(t,e,i,n,s){var o,r,a,l,u,h,c,d,p,f,m,g,v=O.hasData(t)&&O._data(t);if(v&&(d=v.events)){for(e=O.trim(ae(e||"")).split(" "),o=0;o<e.length;o++)if(r=Z.exec(e[o])||[],a=l=r[1],u=r[2],a){for(p=O.event.special[a]||{},a=(n?p.delegateType:p.bindType)||a,m=d[a]||[],h=m.length,u=u?new RegExp("(^|\\.)"+u.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,c=0;c<m.length;c++)g=m[c],!s&&l!==g.origType||i&&i.guid!==g.guid||u&&!u.test(g.namespace)||n&&n!==g.selector&&("**"!==n||!g.selector)||(m.splice(c--,1),g.selector&&m.delegateCount--,p.remove&&p.remove.call(t,g));0===m.length&&h!==m.length&&(p.teardown&&p.teardown.call(t,u)!==!1||O.removeEvent(t,a,v.handle),delete d[a])}else for(a in d)O.event.remove(t,a+e[o],i,n,!0);O.isEmptyObject(d)&&(f=v.handle,f&&(f.elem=null),O.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,n,s,o){if(!s||3!==s.nodeType&&8!==s.nodeType){var r,a,l,u,h,c,d,p,f,m,g=i.type||i,v=[];if(!ne.test(g+O.event.triggered)&&(g.indexOf("!")>=0&&(g=g.slice(0,-1),a=!0),g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),s&&!O.event.customEvent[g]||O.event.global[g]))if(i="object"==typeof i?i[O.expando]?i:new O.Event(g,i):new O.Event(g),i.type=g,i.isTrigger=!0,i.exclusive=a,i.namespace=v.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,c=g.indexOf(":")<0?"on"+g:"",s){if(i.result=e,i.target||(i.target=s),n=null!=n?O.makeArray(n):[],n.unshift(i),d=O.event.special[g]||{},!d.trigger||d.trigger.apply(s,n)!==!1){if(f=[[s,d.bindType||g]],!o&&!d.noBubble&&!O.isWindow(s)){for(m=d.delegateType||g,u=ne.test(m+g)?s:s.parentNode,h=null;u;u=u.parentNode)f.push([u,m]),h=u;h&&h===s.ownerDocument&&f.push([h.defaultView||h.parentWindow||t,m])}for(l=0;l<f.length&&!i.isPropagationStopped();l++)u=f[l][0],i.type=f[l][1],p=(O._data(u,"events")||{})[i.type]&&O._data(u,"handle"),p&&p.apply(u,n),p=c&&u[c],p&&O.acceptData(u)&&p.apply(u,n)===!1&&i.preventDefault();return i.type=g,o||i.isDefaultPrevented()||d._default&&d._default.apply(s.ownerDocument,n)!==!1||"click"===g&&O.nodeName(s,"a")||!O.acceptData(s)||c&&s[g]&&("focus"!==g&&"blur"!==g||0!==i.target.offsetWidth)&&!O.isWindow(s)&&(h=s[c],h&&(s[c]=null),O.event.triggered=g,s[g](),O.event.triggered=e,h&&(s[c]=h)),i.result}}else{r=O.cache;for(l in r)r[l].events&&r[l].events[g]&&O.event.trigger(i,n,r[l].handle.elem,!0)}}},dispatch:function(i){i=O.event.fix(i||t.event);var n,s,o,r,a,l,u,h,c,d,p=(O._data(this,"events")||{})[i.type]||[],f=p.delegateCount,m=[].slice.call(arguments,0),g=!i.exclusive&&!i.namespace,v=[];if(m[0]=i,i.delegateTarget=this,f&&!i.target.disabled&&(!i.button||"click"!==i.type))for(r=O(this),r.context=this.ownerDocument||this,o=i.target;o!=this;o=o.parentNode||this){for(l={},h=[],r[0]=o,n=0;f>n;n++)c=p[n],d=c.selector,l[d]===e&&(l[d]=c.quick?re(o,c.quick):r.is(d)),l[d]&&h.push(c);h.length&&v.push({elem:o,matches:h})}for(p.length>f&&v.push({elem:this,matches:p.slice(f)}),n=0;n<v.length&&!i.isPropagationStopped();n++)for(u=v[n],i.currentTarget=u.elem,s=0;s<u.matches.length&&!i.isImmediatePropagationStopped();s++)c=u.matches[s],(g||!i.namespace&&!c.namespace||i.namespace_re&&i.namespace_re.test(c.namespace))&&(i.data=c.data,i.handleObj=c,a=((O.event.special[c.origType]||{}).handle||c.handler).apply(u.elem,m),a!==e&&(i.result=a,a===!1&&(i.preventDefault(),i.stopPropagation())));return i.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,i){var n,s,o,r=i.button,a=i.fromElement;return null==t.pageX&&null!=i.clientX&&(n=t.target.ownerDocument||z,s=n.documentElement,o=n.body,t.pageX=i.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),t.pageY=i.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?i.toElement:a),t.which||r===e||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[O.expando])return t;var i,n,s=t,o=O.event.fixHooks[t.type]||{},r=o.props?this.props.concat(o.props):this.props;for(t=O.Event(s),i=r.length;i;)n=r[--i],t[n]=s[n];return t.target||(t.target=s.srcElement||z),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),o.filter?o.filter(t,s):t},special:{ready:{setup:O.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,i){O.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,i,n){var s=O.extend(new O.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?O.event.trigger(s,null,e):O.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},O.event.handle=O.event.dispatch,O.removeEvent=z.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){t.detachEvent&&t.detachEvent("on"+e,i)},O.Event=function(t,e){return this instanceof O.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?a:r):this.type=t,e&&O.extend(this,e),this.timeStamp=t&&t.timeStamp||O.now(),void(this[O.expando]=!0)):new O.Event(t,e)},O.Event.prototype={preventDefault:function(){this.isDefaultPrevented=a;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=a;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r},O.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){O.event.special[t]={delegateType:e,bindType:e,handle:function(t){{var i,n=this,s=t.relatedTarget,o=t.handleObj;o.selector}return(!s||s!==n&&!O.contains(n,s))&&(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),O.support.submitBubbles||(O.event.special.submit={setup:function(){return O.nodeName(this,"form")?!1:void O.event.add(this,"click._submit keypress._submit",function(t){var i=t.target,n=O.nodeName(i,"input")||O.nodeName(i,"button")?i.form:e;n&&!n._submit_attached&&(O.event.add(n,"submit._submit",function(t){this.parentNode&&!t.isTrigger&&O.event.simulate("submit",this.parentNode,t,!0)}),n._submit_attached=!0)})},teardown:function(){return O.nodeName(this,"form")?!1:void O.event.remove(this,"._submit")}}),O.support.changeBubbles||(O.event.special.change={setup:function(){return J.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(O.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),O.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,O.event.simulate("change",this,t,!0))})),!1):void O.event.add(this,"beforeactivate._change",function(t){var e=t.target;J.test(e.nodeName)&&!e._change_attached&&(O.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||O.event.simulate("change",this.parentNode,t,!0)}),e._change_attached=!0)})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return O.event.remove(this,"._change"),J.test(this.nodeName)}}),O.support.focusinBubbles||O.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,n=function(t){O.event.simulate(e,t.target,O.event.fix(t),!0)};O.event.special[e]={setup:function(){0===i++&&z.addEventListener(t,n,!0)},teardown:function(){0===--i&&z.removeEventListener(t,n,!0)}}}),O.fn.extend({on:function(t,i,n,s,o){var a,l;if("object"==typeof t){"string"!=typeof i&&(n=i,i=e);for(l in t)this.on(l,i,n,t[l],o);return this}if(null==n&&null==s?(s=i,n=i=e):null==s&&("string"==typeof i?(s=n,n=e):(s=n,n=i,i=e)),s===!1)s=r;else if(!s)return this;return 1===o&&(a=s,s=function(t){return O().off(t),a.apply(this,arguments)},s.guid=a.guid||(a.guid=O.guid++)),this.each(function(){O.event.add(this,t,s,n,i)})},one:function(t,e,i,n){return this.on.call(this,t,e,i,n,1)},off:function(t,i,n){if(t&&t.preventDefault&&t.handleObj){var s=t.handleObj;return O(t.delegateTarget).off(s.namespace?s.type+"."+s.namespace:s.type,s.selector,s.handler),this}if("object"==typeof t){for(var o in t)this.off(o,i,t[o]);return this}return(i===!1||"function"==typeof i)&&(n=i,i=e),n===!1&&(n=r),this.each(function(){O.event.remove(this,t,n,i)})},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,i){return O(this.context).on(t,this.selector,e,i),this},die:function(t,e){return O(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1==arguments.length?this.off(t,"**"):this.off(e,t,i)},trigger:function(t,e){return this.each(function(){O.event.trigger(t,e,this)})},triggerHandler:function(t,e){return this[0]?O.event.trigger(t,e,this[0],!0):void 0},toggle:function(t){var e=arguments,i=t.guid||O.guid++,n=0,s=function(i){var s=(O._data(this,"lastToggle"+t.guid)||0)%n;return O._data(this,"lastToggle"+t.guid,s+1),i.preventDefault(),e[s].apply(this,arguments)||!1};for(s.guid=i;n<e.length;)e[n++].guid=i;return this.click(s)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),O.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){O.fn[e]=function(t,i){return null==i&&(i=t,t=null),arguments.length>0?this.on(e,null,t,i):this.trigger(e)},O.attrFn&&(O.attrFn[e]=!0),ee.test(e)&&(O.event.fixHooks[e]=O.event.keyHooks),ie.test(e)&&(O.event.fixHooks[e]=O.event.mouseHooks)}),/*
   * Sizzle CSS Selector Engine
   *  Copyright 2011, The Dojo Foundation
   *  Released under the MIT, BSD, and GPL Licenses.
   *  More information: http://sizzlejs.com/
   */
  function(){function t(t,e,i,n,o,r){for(var a=0,l=n.length;l>a;a++){var u=n[a];if(u){var h=!1;for(u=u[t];u;){if(u[s]===i){h=n[u.sizset];break}if(1!==u.nodeType||r||(u[s]=i,u.sizset=a),u.nodeName.toLowerCase()===e){h=u;break}u=u[t]}n[a]=h}}}function i(t,e,i,n,o,r){for(var a=0,l=n.length;l>a;a++){var u=n[a];if(u){var h=!1;for(u=u[t];u;){if(u[s]===i){h=n[u.sizset];break}if(1===u.nodeType)if(r||(u[s]=i,u.sizset=a),"string"!=typeof e){if(u===e){h=!0;break}}else if(d.filter(e,[u]).length>0){h=u;break}u=u[t]}n[a]=h}}}var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,s="sizcache"+(Math.random()+"").replace(".",""),o=0,r=Object.prototype.toString,a=!1,l=!0,u=/\\/g,h=/\r\n/g,c=/\W/;[0,0].sort(function(){return l=!1,0});var d=function(t,e,i,s){i=i||[],e=e||z;var o=e;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return i;var a,l,u,h,c,p,g,v,b=!0,w=d.isXML(e),x=[],S=t;do if(n.exec(""),a=n.exec(S),a&&(S=a[3],x.push(a[1]),a[2])){h=a[3];break}while(a);if(x.length>1&&m.exec(t))if(2===x.length&&f.relative[x[0]])l=T(x[0]+x[1],e,s);else for(l=f.relative[x[0]]?[e]:d(x.shift(),e);x.length;)t=x.shift(),f.relative[t]&&(t+=x.shift()),l=T(t,l,s);else if(!s&&x.length>1&&9===e.nodeType&&!w&&f.match.ID.test(x[0])&&!f.match.ID.test(x[x.length-1])&&(c=d.find(x.shift(),e,w),e=c.expr?d.filter(c.expr,c.set)[0]:c.set[0]),e)for(c=s?{expr:x.pop(),set:y(s)}:d.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!e.parentNode?e:e.parentNode,w),l=c.expr?d.filter(c.expr,c.set):c.set,x.length>0?u=y(l):b=!1;x.length;)p=x.pop(),g=p,f.relative[p]?g=x.pop():p="",null==g&&(g=e),f.relative[p](u,g,w);else u=x=[];if(u||(u=l),u||d.error(p||t),"[object Array]"===r.call(u))if(b)if(e&&1===e.nodeType)for(v=0;null!=u[v];v++)u[v]&&(u[v]===!0||1===u[v].nodeType&&d.contains(e,u[v]))&&i.push(l[v]);else for(v=0;null!=u[v];v++)u[v]&&1===u[v].nodeType&&i.push(l[v]);else i.push.apply(i,u);else y(u,i);return h&&(d(h,o,i,s),d.uniqueSort(i)),i};d.uniqueSort=function(t){if(w&&(a=l,t.sort(w),a))for(var e=1;e<t.length;e++)t[e]===t[e-1]&&t.splice(e--,1);return t},d.matches=function(t,e){return d(t,null,null,e)},d.matchesSelector=function(t,e){return d(e,null,null,[t]).length>0},d.find=function(t,e,i){var n,s,o,r,a,l;if(!t)return[];for(s=0,o=f.order.length;o>s;s++)if(a=f.order[s],(r=f.leftMatch[a].exec(t))&&(l=r[1],r.splice(1,1),"\\"!==l.substr(l.length-1)&&(r[1]=(r[1]||"").replace(u,""),n=f.find[a](r,e,i),null!=n))){t=t.replace(f.match[a],"");break}return n||(n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):[]),{set:n,expr:t}},d.filter=function(t,i,n,s){for(var o,r,a,l,u,h,c,p,m,g=t,v=[],y=i,b=i&&i[0]&&d.isXML(i[0]);t&&i.length;){for(a in f.filter)if(null!=(o=f.leftMatch[a].exec(t))&&o[2]){if(h=f.filter[a],c=o[1],r=!1,o.splice(1,1),"\\"===c.substr(c.length-1))continue;if(y===v&&(v=[]),f.preFilter[a])if(o=f.preFilter[a](o,y,n,v,s,b)){if(o===!0)continue}else r=l=!0;if(o)for(p=0;null!=(u=y[p]);p++)u&&(l=h(u,o,p,y),m=s^l,n&&null!=l?m?r=!0:y[p]=!1:m&&(v.push(u),r=!0));if(l!==e){if(n||(y=v),t=t.replace(f.match[a],""),!r)return[];break}}if(t===g){if(null!=r)break;d.error(t)}g=t}return y},d.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)};var p=d.getText=function(t){var e,i,n=t.nodeType,s="";if(n){if(1===n||9===n){if("string"==typeof t.textContent)return t.textContent;if("string"==typeof t.innerText)return t.innerText.replace(h,"");for(t=t.firstChild;t;t=t.nextSibling)s+=p(t)}else if(3===n||4===n)return t.nodeValue}else for(e=0;i=t[e];e++)8!==i.nodeType&&(s+=p(i));return s},f=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(t){return t.getAttribute("href")},type:function(t){return t.getAttribute("type")}},relative:{"+":function(t,e){var i="string"==typeof e,n=i&&!c.test(e),s=i&&!n;n&&(e=e.toLowerCase());for(var o,r=0,a=t.length;a>r;r++)if(o=t[r]){for(;(o=o.previousSibling)&&1!==o.nodeType;);t[r]=s||o&&o.nodeName.toLowerCase()===e?o||!1:o===e}s&&d.filter(e,t,!0)},">":function(t,e){var i,n="string"==typeof e,s=0,o=t.length;if(n&&!c.test(e)){for(e=e.toLowerCase();o>s;s++)if(i=t[s]){var r=i.parentNode;t[s]=r.nodeName.toLowerCase()===e?r:!1}}else{for(;o>s;s++)i=t[s],i&&(t[s]=n?i.parentNode:i.parentNode===e);n&&d.filter(e,t,!0)}},"":function(e,n,s){var r,a=o++,l=i;"string"!=typeof n||c.test(n)||(n=n.toLowerCase(),r=n,l=t),l("parentNode",n,a,e,r,s)},"~":function(e,n,s){var r,a=o++,l=i;"string"!=typeof n||c.test(n)||(n=n.toLowerCase(),r=n,l=t),l("previousSibling",n,a,e,r,s)}},find:{ID:function(t,e,i){if("undefined"!=typeof e.getElementById&&!i){var n=e.getElementById(t[1]);return n&&n.parentNode?[n]:[]}},NAME:function(t,e){if("undefined"!=typeof e.getElementsByName){for(var i=[],n=e.getElementsByName(t[1]),s=0,o=n.length;o>s;s++)n[s].getAttribute("name")===t[1]&&i.push(n[s]);return 0===i.length?null:i}},TAG:function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t[1]):void 0}},preFilter:{CLASS:function(t,e,i,n,s,o){if(t=" "+t[1].replace(u,"")+" ",o)return t;for(var r,a=0;null!=(r=e[a]);a++)r&&(s^(r.className&&(" "+r.className+" ").replace(/[\t\n\r]/g," ").indexOf(t)>=0)?i||n.push(r):i&&(e[a]=!1));return!1},ID:function(t){return t[1].replace(u,"")},TAG:function(t){return t[1].replace(u,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||d.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===t[2]&&"2n"||"odd"===t[2]&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&d.error(t[0]);return t[0]=o++,t},ATTR:function(t,e,i,n,s,o){var r=t[1]=t[1].replace(u,"");return!o&&f.attrMap[r]&&(t[1]=f.attrMap[r]),t[4]=(t[4]||t[5]||"").replace(u,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(t,e,i,s,o){if("not"===t[1]){if(!((n.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var r=d.filter(t[3],e,i,!0^o);return i||s.push.apply(s,r),!1}t[3]=d(t[3],null,null,e)}else if(f.match.POS.test(t[0])||f.match.CHILD.test(t[0]))return!0;return t},POS:function(t){return t.unshift(!0),t}},filters:{enabled:function(t){return t.disabled===!1&&"hidden"!==t.type},disabled:function(t){return t.disabled===!0},checked:function(t){return t.checked===!0},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,i){return!!d(i[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),i=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===i&&(e===i||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,i,n){return e===n.length-1},even:function(t,e){return e%2===0},odd:function(t,e){return e%2===1},lt:function(t,e,i){return e<i[3]-0},gt:function(t,e,i){return e>i[3]-0},nth:function(t,e,i){return i[3]-0===e},eq:function(t,e,i){return i[3]-0===e}},filter:{PSEUDO:function(t,e,i,n){var s=e[1],o=f.filters[s];if(o)return o(t,i,e,n);if("contains"===s)return(t.textContent||t.innerText||p([t])||"").indexOf(e[3])>=0;if("not"===s){for(var r=e[3],a=0,l=r.length;l>a;a++)if(r[a]===t)return!1;return!0}d.error(s)},CHILD:function(t,e){var i,n,o,r,a,l,u=e[1],h=t;switch(u){case"only":case"first":for(;h=h.previousSibling;)if(1===h.nodeType)return!1;if("first"===u)return!0;h=t;case"last":for(;h=h.nextSibling;)if(1===h.nodeType)return!1;return!0;case"nth":if(i=e[2],n=e[3],1===i&&0===n)return!0;if(o=e[0],r=t.parentNode,r&&(r[s]!==o||!t.nodeIndex)){for(a=0,h=r.firstChild;h;h=h.nextSibling)1===h.nodeType&&(h.nodeIndex=++a);r[s]=o}return l=t.nodeIndex-n,0===i?0===l:l%i===0&&l/i>=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var i=e[1],n=d.attr?d.attr(t,i):f.attrHandle[i]?f.attrHandle[i](t):null!=t[i]?t[i]:t.getAttribute(i),s=n+"",o=e[2],r=e[4];return null==n?"!="===o:!o&&d.attr?null!=n:"="===o?s===r:"*="===o?s.indexOf(r)>=0:"~="===o?(" "+s+" ").indexOf(r)>=0:r?"!="===o?s!==r:"^="===o?0===s.indexOf(r):"$="===o?s.substr(s.length-r.length)===r:"|="===o?s===r||s.substr(0,r.length+1)===r+"-":!1:s&&n!==!1},POS:function(t,e,i,n){var s=e[2],o=f.setFilters[s];return o?o(t,i,e,n):void 0}}},m=f.match.POS,g=function(t,e){return"\\"+(e-0+1)};for(var v in f.match)f.match[v]=new RegExp(f.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),f.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[v].source.replace(/\\(\d+)/g,g));var y=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call(z.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(t,e){var i=0,n=e||[];if("[object Array]"===r.call(t))Array.prototype.push.apply(n,t);else if("number"==typeof t.length)for(var s=t.length;s>i;i++)n.push(t[i]);else for(;t[i];i++)n.push(t[i]);return n}}var w,x;z.documentElement.compareDocumentPosition?w=function(t,e){return t===e?(a=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(w=function(t,e){if(t===e)return a=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var i,n,s=[],o=[],r=t.parentNode,l=e.parentNode,u=r;if(r===l)return x(t,e);if(!r)return-1;if(!l)return 1;for(;u;)s.unshift(u),u=u.parentNode;for(u=l;u;)o.unshift(u),u=u.parentNode;i=s.length,n=o.length;for(var h=0;i>h&&n>h;h++)if(s[h]!==o[h])return x(s[h],o[h]);return h===i?x(t,o[h],-1):x(s[h],e,1)},x=function(t,e,i){if(t===e)return i;for(var n=t.nextSibling;n;){if(n===e)return-1;n=n.nextSibling}return 1}),function(){var t=z.createElement("div"),i="script"+(new Date).getTime(),n=z.documentElement;t.innerHTML="<a name='"+i+"'/>",n.insertBefore(t,n.firstChild),z.getElementById(i)&&(f.find.ID=function(t,i,n){if("undefined"!=typeof i.getElementById&&!n){var s=i.getElementById(t[1]);return s?s.id===t[1]||"undefined"!=typeof s.getAttributeNode&&s.getAttributeNode("id").nodeValue===t[1]?[s]:e:[]}},f.filter.ID=function(t,e){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&i&&i.nodeValue===e}),n.removeChild(t),n=t=null}(),function(){var t=z.createElement("div");t.appendChild(z.createComment("")),t.getElementsByTagName("*").length>0&&(f.find.TAG=function(t,e){var i=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var n=[],s=0;i[s];s++)1===i[s].nodeType&&n.push(i[s]);i=n}return i}),t.innerHTML="<a href='#'></a>",t.firstChild&&"undefined"!=typeof t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(f.attrHandle.href=function(t){return t.getAttribute("href",2)}),t=null}(),z.querySelectorAll&&!function(){var t=d,e=z.createElement("div"),i="__sizzle__";if(e.innerHTML="<p class='TEST'></p>",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){d=function(e,n,s,o){if(n=n||z,!o&&!d.isXML(n)){var r=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(r&&(1===n.nodeType||9===n.nodeType)){if(r[1])return y(n.getElementsByTagName(e),s);if(r[2]&&f.find.CLASS&&n.getElementsByClassName)return y(n.getElementsByClassName(r[2]),s)}if(9===n.nodeType){if("body"===e&&n.body)return y([n.body],s);if(r&&r[3]){var a=n.getElementById(r[3]);if(!a||!a.parentNode)return y([],s);if(a.id===r[3])return y([a],s)}try{return y(n.querySelectorAll(e),s)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var u=n,h=n.getAttribute("id"),c=h||i,p=n.parentNode,m=/^\s*[+~]/.test(e);h?c=c.replace(/'/g,"\\$&"):n.setAttribute("id",c),m&&p&&(n=n.parentNode);try{if(!m||p)return y(n.querySelectorAll("[id='"+c+"'] "+e),s)}catch(g){}finally{h||u.removeAttribute("id")}}}return t(e,n,s,o)};for(var n in t)d[n]=t[n];e=null}}(),function(){var t=z.documentElement,e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(e){var i=!e.call(z.createElement("div"),"div"),n=!1;try{e.call(z.documentElement,"[test!='']:sizzle")}catch(s){n=!0}d.matchesSelector=function(t,s){if(s=s.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(t))try{if(n||!f.match.PSEUDO.test(s)&&!/!=/.test(s)){var o=e.call(t,s);if(o||!i||t.document&&11!==t.document.nodeType)return o}}catch(r){}return d(s,null,null,[t]).length>0}}}(),function(){var t=z.createElement("div");t.innerHTML="<div class='test e'></div><div class='test'></div>",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length&&(t.lastChild.className="e",1!==t.getElementsByClassName("e").length&&(f.order.splice(1,0,"CLASS"),f.find.CLASS=function(t,e,i){return"undefined"==typeof e.getElementsByClassName||i?void 0:e.getElementsByClassName(t[1])},t=null))}(),d.contains=z.documentElement.contains?function(t,e){return t!==e&&(t.contains?t.contains(e):!0)}:z.documentElement.compareDocumentPosition?function(t,e){return!!(16&t.compareDocumentPosition(e))}:function(){return!1},d.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return e?"HTML"!==e.nodeName:!1};var T=function(t,e,i){for(var n,s=[],o="",r=e.nodeType?[e]:e;n=f.match.PSEUDO.exec(t);)o+=n[0],t=t.replace(f.match.PSEUDO,"");t=f.relative[t]?t+"*":t;for(var a=0,l=r.length;l>a;a++)d(t,r[a],s,i);return d.filter(o,s)};d.attr=O.attr,d.selectors.attrMap={},O.find=d,O.expr=d.selectors,O.expr[":"]=O.expr.filters,O.unique=d.uniqueSort,O.text=d.getText,O.isXMLDoc=d.isXML,O.contains=d.contains}();var le=/Until$/,ue=/^(?:parents|prevUntil|prevAll)/,he=/,/,ce=/^.[^:#\[\.,]*$/,de=Array.prototype.slice,pe=O.expr.match.POS,fe={children:!0,contents:!0,next:!0,prev:!0};O.fn.extend({find:function(t){var e,i,n=this;if("string"!=typeof t)return O(t).filter(function(){for(e=0,i=n.length;i>e;e++)if(O.contains(n[e],this))return!0});var s,o,r,a=this.pushStack("","find",t);for(e=0,i=this.length;i>e;e++)if(s=a.length,O.find(t,this[e],a),e>0)for(o=s;o<a.length;o++)for(r=0;s>r;r++)if(a[r]===a[o]){a.splice(o--,1);break}return a},has:function(t){var e=O(t);return this.filter(function(){for(var t=0,i=e.length;i>t;t++)if(O.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(u(this,t,!1),"not",t)},filter:function(t){return this.pushStack(u(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?pe.test(t)?O(t,this.context).index(this[0])>=0:O.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var i,n,s=[],o=this[0];if(O.isArray(t)){for(var r=1;o&&o.ownerDocument&&o!==e;){for(i=0;i<t.length;i++)O(o).is(t[i])&&s.push({selector:t[i],elem:o,level:r});o=o.parentNode,r++}return s}var a=pe.test(t)||"string"!=typeof t?O(t,e||this.context):0;for(i=0,n=this.length;n>i;i++)for(o=this[i];o;){if(a?a.index(o)>-1:O.find.matchesSelector(o,t)){s.push(o);break}if(o=o.parentNode,!o||!o.ownerDocument||o===e||11===o.nodeType)break}return s=s.length>1?O.unique(s):s,this.pushStack(s,"closest",t)},index:function(t){return t?"string"==typeof t?O.inArray(this[0],O(t)):O.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var i="string"==typeof t?O(t,e):O.makeArray(t&&t.nodeType?[t]:t),n=O.merge(this.get(),i);return this.pushStack(l(i[0])||l(n[0])?n:O.unique(n))},andSelf:function(){return this.add(this.prevObject)}}),O.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O.dir(t,"parentNode")},parentsUntil:function(t,e,i){return O.dir(t,"parentNode",i)},next:function(t){return O.nth(t,2,"nextSibling")},prev:function(t){return O.nth(t,2,"previousSibling")},nextAll:function(t){return O.dir(t,"nextSibling")},prevAll:function(t){return O.dir(t,"previousSibling")},nextUntil:function(t,e,i){return O.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return O.dir(t,"previousSibling",i)},siblings:function(t){return O.sibling(t.parentNode.firstChild,t)},children:function(t){return O.sibling(t.firstChild)},contents:function(t){return O.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:O.makeArray(t.childNodes)}},function(t,e){O.fn[t]=function(i,n){var s=O.map(this,e,i);return le.test(t)||(n=i),n&&"string"==typeof n&&(s=O.filter(n,s)),s=this.length>1&&!fe[t]?O.unique(s):s,(this.length>1||he.test(n))&&ue.test(t)&&(s=s.reverse()),this.pushStack(s,t,de.call(arguments).join(","))}}),O.extend({filter:function(t,e,i){return i&&(t=":not("+t+")"),1===e.length?O.find.matchesSelector(e[0],t)?[e[0]]:[]:O.find.matches(t,e)},dir:function(t,i,n){for(var s=[],o=t[i];o&&9!==o.nodeType&&(n===e||1!==o.nodeType||!O(o).is(n));)1===o.nodeType&&s.push(o),o=o[i];return s},nth:function(t,e,i){e=e||1;for(var n=0;t&&(1!==t.nodeType||++n!==e);t=t[i]);return t},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var me="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ge=/ jQuery\d+="(?:\d+|null)"/g,ve=/^\s+/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,be=/<([\w:]+)/,we=/<tbody/i,xe=/<|&#?\w+;/,Te=/<(?:script|style)/i,Se=/<(?:script|object|embed|option|style)/i,Ce=new RegExp("<(?:"+me+")","i"),Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/\/(java|ecma)script/i,Ee=/^\s*<!(?:\[CDATA\[|\-\-)/,De={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,"",""]},_e=h(z);De.optgroup=De.option,De.tbody=De.tfoot=De.colgroup=De.caption=De.thead,De.th=De.td,O.support.htmlSerialize||(De._default=[1,"div<div>","</div>"]),O.fn.extend({text:function(t){return O.isFunction(t)?this.each(function(e){var i=O(this);i.text(t.call(this,e,i.text()))}):"object"!=typeof t&&t!==e?this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(t)):O.text(this)},wrapAll:function(t){if(O.isFunction(t))return this.each(function(e){O(this).wrapAll(t.call(this,e))});if(this[0]){var e=O(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(O.isFunction(t)?function(e){O(this).wrapInner(t.call(this,e))}:function(){var e=O(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=O.isFunction(t);return this.each(function(i){O(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){O.nodeName(this,"body")||O(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)});if(arguments.length){var t=O.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,O.clean(arguments)),t}},remove:function(t,e){for(var i,n=0;null!=(i=this[n]);n++)(!t||O.filter(t,[i]).length)&&(e||1!==i.nodeType||(O.cleanData(i.getElementsByTagName("*")),O.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&O.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return O.clone(this,t,e)})},html:function(t){if(t===e)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ge,""):null;if("string"!=typeof t||Te.test(t)||!O.support.leadingWhitespace&&ve.test(t)||De[(be.exec(t)||["",""])[1].toLowerCase()])O.isFunction(t)?this.each(function(e){var i=O(this);i.html(t.call(this,e,i.html()))}):this.empty().append(t);else{t=t.replace(ye,"<$1></$2>");try{for(var i=0,n=this.length;n>i;i++)1===this[i].nodeType&&(O.cleanData(this[i].getElementsByTagName("*")),this[i].innerHTML=t)}catch(s){this.empty().append(t)}}return this},replaceWith:function(t){return this[0]&&this[0].parentNode?O.isFunction(t)?this.each(function(e){var i=O(this),n=i.html();i.replaceWith(t.call(this,e,n))}):("string"!=typeof t&&(t=O(t).detach()),this.each(function(){var e=this.nextSibling,i=this.parentNode;O(this).remove(),e?O(e).before(t):O(i).append(t)})):this.length?this.pushStack(O(O.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,i,n){var s,o,r,a,l=t[0],u=[];if(!O.support.checkClone&&3===arguments.length&&"string"==typeof l&&Me.test(l))return this.each(function(){O(this).domManip(t,i,n,!0)});if(O.isFunction(l))return this.each(function(s){var o=O(this);t[0]=l.call(this,s,i?o.html():e),o.domManip(t,i,n)});if(this[0]){if(a=l&&l.parentNode,s=O.support.parentNode&&a&&11===a.nodeType&&a.childNodes.length===this.length?{fragment:a}:O.buildFragment(t,this,u),r=s.fragment,o=1===r.childNodes.length?r=r.firstChild:r.firstChild){i=i&&O.nodeName(o,"tr");for(var h=0,d=this.length,p=d-1;d>h;h++)n.call(i?c(this[h],o):this[h],s.cacheable||d>1&&p>h?O.clone(r,!0,!0):r)}u.length&&O.each(u,y)}return this}}),O.buildFragment=function(t,e,i){var n,s,o,r,a=t[0];return e&&e[0]&&(r=e[0].ownerDocument||e[0]),r.createDocumentFragment||(r=z),!(1===t.length&&"string"==typeof a&&a.length<512&&r===z&&"<"===a.charAt(0))||Se.test(a)||!O.support.checkClone&&Me.test(a)||!O.support.html5Clone&&Ce.test(a)||(s=!0,o=O.fragments[a],o&&1!==o&&(n=o)),n||(n=r.createDocumentFragment(),O.clean(t,r,n,i)),s&&(O.fragments[a]=o?n:1),{fragment:n,cacheable:s}},O.fragments={},O.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){O.fn[t]=function(i){var n=[],s=O(i),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===s.length)return s[e](this[0]),this;for(var r=0,a=s.length;a>r;r++){var l=(r>0?this.clone(!0):this).get();O(s[r])[e](l),n=n.concat(l)}return this.pushStack(n,t,s.selector)}}),O.extend({clone:function(t,e,i){var n,s,o,r=O.support.html5Clone||!Ce.test("<"+t.nodeName)?t.cloneNode(!0):v(t);if(!(O.support.noCloneEvent&&O.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||O.isXMLDoc(t)))for(p(t,r),n=f(t),s=f(r),o=0;n[o];++o)s[o]&&p(n[o],s[o]);if(e&&(d(t,r),i))for(n=f(t),s=f(r),o=0;n[o];++o)d(n[o],s[o]);return n=s=null,r},clean:function(t,e,i,n){var s;e=e||z,"undefined"==typeof e.createElement&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||z);for(var o,r,a=[],l=0;null!=(r=t[l]);l++)if("number"==typeof r&&(r+=""),r){if("string"==typeof r)if(xe.test(r)){r=r.replace(ye,"<$1></$2>");var u=(be.exec(r)||["",""])[1].toLowerCase(),c=De[u]||De._default,d=c[0],p=e.createElement("div");for(e===z?_e.appendChild(p):h(e).appendChild(p),p.innerHTML=c[1]+r+c[2];d--;)p=p.lastChild;if(!O.support.tbody){var f=we.test(r),m="table"!==u||f?"<table>"!==c[1]||f?[]:p.childNodes:p.firstChild&&p.firstChild.childNodes;for(o=m.length-1;o>=0;--o)O.nodeName(m[o],"tbody")&&!m[o].childNodes.length&&m[o].parentNode.removeChild(m[o])}!O.support.leadingWhitespace&&ve.test(r)&&p.insertBefore(e.createTextNode(ve.exec(r)[0]),p.firstChild),r=p.childNodes}else r=e.createTextNode(r);var v;if(!O.support.appendChecked)if(r[0]&&"number"==typeof(v=r.length))for(o=0;v>o;o++)g(r[o]);else g(r);r.nodeType?a.push(r):a=O.merge(a,r)}if(i)for(s=function(t){return!t.type||Ne.test(t.type)},l=0;a[l];l++)if(!n||!O.nodeName(a[l],"script")||a[l].type&&"text/javascript"!==a[l].type.toLowerCase()){if(1===a[l].nodeType){var y=O.grep(a[l].getElementsByTagName("script"),s);a.splice.apply(a,[l+1,0].concat(y))}i.appendChild(a[l])}else n.push(a[l].parentNode?a[l].parentNode.removeChild(a[l]):a[l]);return a},cleanData:function(t){for(var e,i,n,s=O.cache,o=O.event.special,r=O.support.deleteExpando,a=0;null!=(n=t[a]);a++)if((!n.nodeName||!O.noData[n.nodeName.toLowerCase()])&&(i=n[O.expando])){if(e=s[i],e&&e.events){for(var l in e.events)o[l]?O.event.remove(n,l):O.removeEvent(n,l,e.handle);e.handle&&(e.handle.elem=null)}r?delete n[O.expando]:n.removeAttribute&&n.removeAttribute(O.expando),delete s[i]}}});var ke,Ae,He,ze=/alpha\([^)]*\)/i,Ie=/opacity=([^)]*)/,Le=/([A-Z]|^ms)/g,Oe=/^-?\d+(?:px)?$/i,Fe=/^-?\d/,Pe=/^([\-+])=([\-+.\de]+)/,je={position:"absolute",visibility:"hidden",display:"block"},We=["Left","Right"],$e=["Top","Bottom"];O.fn.css=function(t,i){return 2===arguments.length&&i===e?this:O.access(this,t,i,!0,function(t,i,n){return n!==e?O.style(t,i,n):O.css(t,i)})},O.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=ke(t,"opacity","opacity");return""===i?"1":i}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":O.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,i,n,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a=O.camelCase(i),l=t.style,u=O.cssHooks[a];if(i=O.cssProps[a]||a,n===e)return u&&"get"in u&&(o=u.get(t,!1,s))!==e?o:l[i];if(r=typeof n,"string"===r&&(o=Pe.exec(n))&&(n=+(o[1]+1)*+o[2]+parseFloat(O.css(t,i)),r="number"),!(null==n||"number"===r&&isNaN(n)||("number"!==r||O.cssNumber[a]||(n+="px"),u&&"set"in u&&(n=u.set(t,n))===e)))try{l[i]=n}catch(h){}}},css:function(t,i,n){var s,o;return i=O.camelCase(i),o=O.cssHooks[i],i=O.cssProps[i]||i,"cssFloat"===i&&(i="float"),o&&"get"in o&&(s=o.get(t,!0,n))!==e?s:ke?ke(t,i):void 0},swap:function(t,e,i){var n={};for(var s in e)n[s]=t.style[s],t.style[s]=e[s];i.call(t);for(s in e)t.style[s]=n[s]}}),O.curCSS=O.css,O.each(["height","width"],function(t,e){O.cssHooks[e]={get:function(t,i,n){var s;return i?0!==t.offsetWidth?b(t,e,n):(O.swap(t,je,function(){s=b(t,e,n)}),s):void 0},set:function(t,e){return Oe.test(e)?(e=parseFloat(e),e>=0?e+"px":void 0):e}}}),O.support.opacity||(O.cssHooks.opacity={get:function(t,e){return Ie.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=O.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,e>=1&&""===O.trim(o.replace(ze,""))&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=ze.test(o)?o.replace(ze,s):o+" "+s)}}),O(function(){O.support.reliableMarginRight||(O.cssHooks.marginRight={get:function(t,e){var i;return O.swap(t,{display:"inline-block"},function(){i=e?ke(t,"margin-right","marginRight"):t.style.marginRight}),i}})}),z.defaultView&&z.defaultView.getComputedStyle&&(Ae=function(t,e){var i,n,s;return e=e.replace(Le,"-$1").toLowerCase(),(n=t.ownerDocument.defaultView)&&(s=n.getComputedStyle(t,null))&&(i=s.getPropertyValue(e),""!==i||O.contains(t.ownerDocument.documentElement,t)||(i=O.style(t,e))),i}),z.documentElement.currentStyle&&(He=function(t,e){var i,n,s,o=t.currentStyle&&t.currentStyle[e],r=t.style;return null===o&&r&&(s=r[e])&&(o=s),!Oe.test(o)&&Fe.test(o)&&(i=r.left,n=t.runtimeStyle&&t.runtimeStyle.left,n&&(t.runtimeStyle.left=t.currentStyle.left),r.left="fontSize"===e?"1em":o||0,o=r.pixelLeft+"px",r.left=i,n&&(t.runtimeStyle.left=n)),""===o?"auto":o}),ke=Ae||He,O.expr&&O.expr.filters&&(O.expr.filters.hidden=function(t){var e=t.offsetWidth,i=t.offsetHeight;return 0===e&&0===i||!O.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||O.css(t,"display"))},O.expr.filters.visible=function(t){return!O.expr.filters.hidden(t)});var Re,Be,qe=/%20/g,Xe=/\[\]$/,Ye=/\r?\n/g,Ue=/#.*$/,Ve=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Qe=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ge=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ke=/^(?:GET|HEAD)$/,Je=/^\/\//,Ze=/\?/,ti=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ei=/^(?:select|textarea)/i,ii=/\s+/,ni=/([?&])_=[^&]*/,si=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,oi=O.fn.load,ri={},ai={},li=["*/"]+["*"];try{Re=L.href}catch(ui){Re=z.createElement("a"),Re.href="",Re=Re.href}Be=si.exec(Re.toLowerCase())||[],O.fn.extend({load:function(t,i,n){if("string"!=typeof t&&oi)return oi.apply(this,arguments);if(!this.length)return this;var s=t.indexOf(" ");if(s>=0){var o=t.slice(s,t.length);t=t.slice(0,s)}var r="GET";i&&(O.isFunction(i)?(n=i,i=e):"object"==typeof i&&(i=O.param(i,O.ajaxSettings.traditional),r="POST"));var a=this;return O.ajax({url:t,type:r,dataType:"html",data:i,complete:function(t,e,i){i=t.responseText,t.isResolved()&&(t.done(function(t){i=t}),a.html(o?O("<div>").append(i.replace(ti,"")).find(o):i)),n&&a.each(n,[i,e,t])}}),this},serialize:function(){return O.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?O.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ei.test(this.nodeName)||Qe.test(this.type))}).map(function(t,e){var i=O(this).val();return null==i?null:O.isArray(i)?O.map(i,function(t){return{name:e.name,value:t.replace(Ye,"\r\n")}}):{name:e.name,value:i.replace(Ye,"\r\n")}}).get()}}),O.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,e){O.fn[e]=function(t){return this.on(e,t)}}),O.each(["get","post"],function(t,i){O[i]=function(t,n,s,o){return O.isFunction(n)&&(o=o||s,s=n,n=e),O.ajax({type:i,url:t,data:n,success:s,dataType:o})}}),O.extend({getScript:function(t,i){return O.get(t,e,i,"script")},getJSON:function(t,e,i){return O.get(t,e,i,"json")},ajaxSetup:function(t,e){return e?T(t,O.ajaxSettings):(e=t,t=O.ajaxSettings),T(t,e),t},ajaxSettings:{url:Re,isLocal:Ge.test(Be[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","*":li},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":O.parseJSON,"text xml":O.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:w(ri),ajaxTransport:w(ai),ajax:function(t,i){function n(t,i,n,r){if(2!==w){w=2,l&&clearTimeout(l),a=e,o=r||"",T.readyState=t>0?4:0;var u,c,y,b,x,S=i,N=n?C(d,T,n):e;if(t>=200&&300>t||304===t)if(d.ifModified&&((b=T.getResponseHeader("Last-Modified"))&&(O.lastModified[s]=b),(x=T.getResponseHeader("Etag"))&&(O.etag[s]=x)),304===t)S="notmodified",u=!0;else try{c=M(d,N),S="success",u=!0}catch(E){S="parsererror",y=E}else y=S,(!S||t)&&(S="error",0>t&&(t=0));T.status=t,T.statusText=""+(i||S),u?m.resolveWith(p,[c,S,T]):m.rejectWith(p,[T,S,y]),T.statusCode(v),v=e,h&&f.trigger("ajax"+(u?"Success":"Error"),[T,d,u?c:y]),g.fireWith(p,[T,S]),h&&(f.trigger("ajaxComplete",[T,d]),--O.active||O.event.trigger("ajaxStop"))}}"object"==typeof t&&(i=t,t=e),i=i||{};var s,o,r,a,l,u,h,c,d=O.ajaxSetup({},i),p=d.context||d,f=p!==d&&(p.nodeType||p instanceof O)?O(p):O.event,m=O.Deferred(),g=O.Callbacks("once memory"),v=d.statusCode||{},y={},b={},w=0,T={readyState:0,setRequestHeader:function(t,e){if(!w){var i=t.toLowerCase();
  t=b[i]=b[i]||t,y[t]=e}return this},getAllResponseHeaders:function(){return 2===w?o:null},getResponseHeader:function(t){var i;if(2===w){if(!r)for(r={};i=Ve.exec(o);)r[i[1].toLowerCase()]=i[2];i=r[t.toLowerCase()]}return i===e?null:i},overrideMimeType:function(t){return w||(d.mimeType=t),this},abort:function(t){return t=t||"abort",a&&a.abort(t),n(0,t),this}};if(m.promise(T),T.success=T.done,T.error=T.fail,T.complete=g.add,T.statusCode=function(t){if(t){var e;if(2>w)for(e in t)v[e]=[v[e],t[e]];else e=t[T.status],T.then(e,e)}return this},d.url=((t||d.url)+"").replace(Ue,"").replace(Je,Be[1]+"//"),d.dataTypes=O.trim(d.dataType||"*").toLowerCase().split(ii),null==d.crossDomain&&(u=si.exec(d.url.toLowerCase()),d.crossDomain=!(!u||u[1]==Be[1]&&u[2]==Be[2]&&(u[3]||("http:"===u[1]?80:443))==(Be[3]||("http:"===Be[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=O.param(d.data,d.traditional)),x(ri,d,i,T),2===w)return!1;if(h=d.global,d.type=d.type.toUpperCase(),d.hasContent=!Ke.test(d.type),h&&0===O.active++&&O.event.trigger("ajaxStart"),!d.hasContent&&(d.data&&(d.url+=(Ze.test(d.url)?"&":"?")+d.data,delete d.data),s=d.url,d.cache===!1)){var S=O.now(),N=d.url.replace(ni,"$1_="+S);d.url=N+(N===d.url?(Ze.test(d.url)?"&":"?")+"_="+S:"")}(d.data&&d.hasContent&&d.contentType!==!1||i.contentType)&&T.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(s=s||d.url,O.lastModified[s]&&T.setRequestHeader("If-Modified-Since",O.lastModified[s]),O.etag[s]&&T.setRequestHeader("If-None-Match",O.etag[s])),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+li+"; q=0.01":""):d.accepts["*"]);for(c in d.headers)T.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(d.beforeSend.call(p,T,d)===!1||2===w))return T.abort(),!1;for(c in{success:1,error:1,complete:1})T[c](d[c]);if(a=x(ai,d,i,T)){T.readyState=1,h&&f.trigger("ajaxSend",[T,d]),d.async&&d.timeout>0&&(l=setTimeout(function(){T.abort("timeout")},d.timeout));try{w=1,a.send(y,n)}catch(E){if(!(2>w))throw E;n(-1,E)}}else n(-1,"No Transport");return T},param:function(t,i){var n=[],s=function(t,e){e=O.isFunction(e)?e():e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(i===e&&(i=O.ajaxSettings.traditional),O.isArray(t)||t.jquery&&!O.isPlainObject(t))O.each(t,function(){s(this.name,this.value)});else for(var o in t)S(o,t[o],i,s);return n.join("&").replace(qe,"+")}}),O.extend({active:0,lastModified:{},etag:{}});var hi=O.now(),ci=/(\=)\?(&|$)|\?\?/i;O.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return O.expando+"_"+hi++}}),O.ajaxPrefilter("json jsonp",function(e,i,n){var s="application/x-www-form-urlencoded"===e.contentType&&"string"==typeof e.data;if("jsonp"===e.dataTypes[0]||e.jsonp!==!1&&(ci.test(e.url)||s&&ci.test(e.data))){var o,r=e.jsonpCallback=O.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a=t[r],l=e.url,u=e.data,h="$1"+r+"$2";return e.jsonp!==!1&&(l=l.replace(ci,h),e.url===l&&(s&&(u=u.replace(ci,h)),e.data===u&&(l+=(/\?/.test(l)?"&":"?")+e.jsonp+"="+r))),e.url=l,e.data=u,t[r]=function(t){o=[t]},n.always(function(){t[r]=a,o&&O.isFunction(a)&&t[r](o[0])}),e.converters["script json"]=function(){return o||O.error(r+" was not called"),o[0]},e.dataTypes[0]="json","script"}}),O.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return O.globalEval(t),t}}}),O.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),O.ajaxTransport("script",function(t){if(t.crossDomain){var i,n=z.head||z.getElementsByTagName("head")[0]||z.documentElement;return{send:function(s,o){i=z.createElement("script"),i.async="async",t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(t,s){(s||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,n&&i.parentNode&&n.removeChild(i),i=e,s||o(200,"success"))},n.insertBefore(i,n.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var di,pi=t.ActiveXObject?function(){for(var t in di)di[t](0,1)}:!1,fi=0;O.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&N()||E()}:N,function(t){O.extend(O.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(O.ajaxSettings.xhr()),O.support.ajax&&O.ajaxTransport(function(i){if(!i.crossDomain||O.support.cors){var n;return{send:function(s,o){var r,a,l=i.xhr();if(i.username?l.open(i.type,i.url,i.async,i.username,i.password):l.open(i.type,i.url,i.async),i.xhrFields)for(a in i.xhrFields)l[a]=i.xhrFields[a];i.mimeType&&l.overrideMimeType&&l.overrideMimeType(i.mimeType),i.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");try{for(a in s)l.setRequestHeader(a,s[a])}catch(u){}l.send(i.hasContent&&i.data||null),n=function(t,s){var a,u,h,c,d;try{if(n&&(s||4===l.readyState))if(n=e,r&&(l.onreadystatechange=O.noop,pi&&delete di[r]),s)4!==l.readyState&&l.abort();else{a=l.status,h=l.getAllResponseHeaders(),c={},d=l.responseXML,d&&d.documentElement&&(c.xml=d),c.text=l.responseText;try{u=l.statusText}catch(p){u=""}a||!i.isLocal||i.crossDomain?1223===a&&(a=204):a=c.text?200:404}}catch(f){s||o(-1,f)}c&&o(a,u,c,h)},i.async&&4!==l.readyState?(r=++fi,pi&&(di||(di={},O(t).unload(pi)),di[r]=n),l.onreadystatechange=n):n()},abort:function(){n&&n(0,1)}}}});var mi,gi,vi,yi,bi={},wi=/^(?:toggle|show|hide)$/,xi=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ti=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];O.fn.extend({show:function(t,e,i){var n,s;if(t||0===t)return this.animate(k("show",3),t,e,i);for(var o=0,r=this.length;r>o;o++)n=this[o],n.style&&(s=n.style.display,O._data(n,"olddisplay")||"none"!==s||(s=n.style.display=""),""===s&&"none"===O.css(n,"display")&&O._data(n,"olddisplay",A(n.nodeName)));for(o=0;r>o;o++)n=this[o],n.style&&(s=n.style.display,(""===s||"none"===s)&&(n.style.display=O._data(n,"olddisplay")||""));return this},hide:function(t,e,i){if(t||0===t)return this.animate(k("hide",3),t,e,i);for(var n,s,o=0,r=this.length;r>o;o++)n=this[o],n.style&&(s=O.css(n,"display"),"none"===s||O._data(n,"olddisplay")||O._data(n,"olddisplay",s));for(o=0;r>o;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:O.fn.toggle,toggle:function(t,e,i){var n="boolean"==typeof t;return O.isFunction(t)&&O.isFunction(e)?this._toggle.apply(this,arguments):null==t||n?this.each(function(){var e=n?t:O(this).is(":hidden");O(this)[e?"show":"hide"]()}):this.animate(k("toggle",3),t,e,i),this},fadeTo:function(t,e,i,n){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){function s(){o.queue===!1&&O._mark(this);var e,i,n,s,r,a,l,u,h,c=O.extend({},o),d=1===this.nodeType,p=d&&O(this).is(":hidden");c.animatedProperties={};for(n in t){if(e=O.camelCase(n),n!==e&&(t[e]=t[n],delete t[n]),i=t[e],O.isArray(i)?(c.animatedProperties[e]=i[1],i=t[e]=i[0]):c.animatedProperties[e]=c.specialEasing&&c.specialEasing[e]||c.easing||"swing","hide"===i&&p||"show"===i&&!p)return c.complete.call(this);!d||"height"!==e&&"width"!==e||(c.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===O.css(this,"display")&&"none"===O.css(this,"float")&&(O.support.inlineBlockNeedsLayout&&"inline"!==A(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}null!=c.overflow&&(this.style.overflow="hidden");for(n in t)s=new O.fx(this,c,n),i=t[n],wi.test(i)?(h=O._data(this,"toggle"+n)||("toggle"===i?p?"show":"hide":0),h?(O._data(this,"toggle"+n,"show"===h?"hide":"show"),s[h]()):s[i]()):(r=xi.exec(i),a=s.cur(),r?(l=parseFloat(r[2]),u=r[3]||(O.cssNumber[n]?"":"px"),"px"!==u&&(O.style(this,n,(l||1)+u),a=(l||1)/s.cur()*a,O.style(this,n,a+u)),r[1]&&(l=("-="===r[1]?-1:1)*l+a),s.custom(a,l,u)):s.custom(a,i,""));return!0}var o=O.speed(e,i,n);return O.isEmptyObject(t)?this.each(o.complete,[!1]):(t=O.extend({},t),o.queue===!1?this.each(s):this.queue(o.queue,s))},stop:function(t,i,n){return"string"!=typeof t&&(n=i,i=t,t=e),i&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function e(t,e,i){var s=e[i];O.removeData(t,i,!0),s.stop(n)}var i,s=!1,o=O.timers,r=O._data(this);if(n||O._unmark(!0,this),null==t)for(i in r)r[i]&&r[i].stop&&i.indexOf(".run")===i.length-4&&e(this,r,i);else r[i=t+".run"]&&r[i].stop&&e(this,r,i);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(n?o[i](!0):o[i].saveState(),s=!0,o.splice(i,1));n&&s||O.dequeue(this,t)})}}),O.each({slideDown:k("show",1),slideUp:k("hide",1),slideToggle:k("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){O.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),O.extend({speed:function(t,e,i){var n=t&&"object"==typeof t?O.extend({},t):{complete:i||!i&&e||O.isFunction(t)&&t,duration:t,easing:i&&e||e&&!O.isFunction(e)&&e};return n.duration=O.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in O.fx.speeds?O.fx.speeds[n.duration]:O.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(t){O.isFunction(n.old)&&n.old.call(this),n.queue?O.dequeue(this,n.queue):t!==!1&&O._unmark(this)},n},easing:{linear:function(t,e,i,n){return i+n*t},swing:function(t,e,i,n){return(-Math.cos(t*Math.PI)/2+.5)*n+i}},timers:[],fx:function(t,e,i){this.options=e,this.elem=t,this.prop=i,e.orig=e.orig||{}}}),O.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(O.fx.step[this.prop]||O.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var t,e=O.css(this.elem,this.prop);return isNaN(t=parseFloat(e))?e&&"auto"!==e?e:0:t},custom:function(t,i,n){function s(t){return o.step(t)}var o=this,r=O.fx;this.startTime=yi||D(),this.end=i,this.now=this.start=t,this.pos=this.state=0,this.unit=n||this.unit||(O.cssNumber[this.prop]?"":"px"),s.queue=this.options.queue,s.elem=this.elem,s.saveState=function(){o.options.hide&&O._data(o.elem,"fxshow"+o.prop)===e&&O._data(o.elem,"fxshow"+o.prop,o.start)},s()&&O.timers.push(s)&&!vi&&(vi=setInterval(r.tick,r.interval))},show:function(){var t=O._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||O.style(this.elem,this.prop),this.options.show=!0,t!==e?this.custom(this.cur(),t):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),O(this.elem).show()},hide:function(){this.options.orig[this.prop]=O._data(this.elem,"fxshow"+this.prop)||O.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var e,i,n,s=yi||D(),o=!0,r=this.elem,a=this.options;if(t||s>=a.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),a.animatedProperties[this.prop]=!0;for(e in a.animatedProperties)a.animatedProperties[e]!==!0&&(o=!1);if(o){if(null==a.overflow||O.support.shrinkWrapBlocks||O.each(["","X","Y"],function(t,e){r.style["overflow"+e]=a.overflow[t]}),a.hide&&O(r).hide(),a.hide||a.show)for(e in a.animatedProperties)O.style(r,e,a.orig[e]),O.removeData(r,"fxshow"+e,!0),O.removeData(r,"toggle"+e,!0);n=a.complete,n&&(a.complete=!1,n.call(r))}return!1}return 1/0==a.duration?this.now=s:(i=s-this.startTime,this.state=i/a.duration,this.pos=O.easing[a.animatedProperties[this.prop]](this.state,i,0,1,a.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},O.extend(O.fx,{tick:function(){for(var t,e=O.timers,i=0;i<e.length;i++)t=e[i],t()||e[i]!==t||e.splice(i--,1);e.length||O.fx.stop()},interval:13,stop:function(){clearInterval(vi),vi=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){O.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&null!=t.elem.style[t.prop]?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),O.each(["width","height"],function(t,e){O.fx.step[e]=function(t){O.style(t.elem,e,Math.max(0,t.now)+t.unit)}}),O.expr&&O.expr.filters&&(O.expr.filters.animated=function(t){return O.grep(O.timers,function(e){return t===e.elem}).length});var Si=/^t(?:able|d|h)$/i,Ci=/^(?:body|html)$/i;O.fn.offset="getBoundingClientRect"in z.documentElement?function(t){var e,i=this[0];if(t)return this.each(function(e){O.offset.setOffset(this,t,e)});if(!i||!i.ownerDocument)return null;if(i===i.ownerDocument.body)return O.offset.bodyOffset(i);try{e=i.getBoundingClientRect()}catch(n){}var s=i.ownerDocument,o=s.documentElement;if(!e||!O.contains(o,i))return e?{top:e.top,left:e.left}:{top:0,left:0};var r=s.body,a=H(s),l=o.clientTop||r.clientTop||0,u=o.clientLeft||r.clientLeft||0,h=a.pageYOffset||O.support.boxModel&&o.scrollTop||r.scrollTop,c=a.pageXOffset||O.support.boxModel&&o.scrollLeft||r.scrollLeft,d=e.top+h-l,p=e.left+c-u;return{top:d,left:p}}:function(t){var e=this[0];if(t)return this.each(function(e){O.offset.setOffset(this,t,e)});if(!e||!e.ownerDocument)return null;if(e===e.ownerDocument.body)return O.offset.bodyOffset(e);for(var i,n=e.offsetParent,s=e,o=e.ownerDocument,r=o.documentElement,a=o.body,l=o.defaultView,u=l?l.getComputedStyle(e,null):e.currentStyle,h=e.offsetTop,c=e.offsetLeft;(e=e.parentNode)&&e!==a&&e!==r&&(!O.support.fixedPosition||"fixed"!==u.position);)i=l?l.getComputedStyle(e,null):e.currentStyle,h-=e.scrollTop,c-=e.scrollLeft,e===n&&(h+=e.offsetTop,c+=e.offsetLeft,!O.support.doesNotAddBorder||O.support.doesAddBorderForTableAndCells&&Si.test(e.nodeName)||(h+=parseFloat(i.borderTopWidth)||0,c+=parseFloat(i.borderLeftWidth)||0),s=n,n=e.offsetParent),O.support.subtractsBorderForOverflowNotVisible&&"visible"!==i.overflow&&(h+=parseFloat(i.borderTopWidth)||0,c+=parseFloat(i.borderLeftWidth)||0),u=i;return("relative"===u.position||"static"===u.position)&&(h+=a.offsetTop,c+=a.offsetLeft),O.support.fixedPosition&&"fixed"===u.position&&(h+=Math.max(r.scrollTop,a.scrollTop),c+=Math.max(r.scrollLeft,a.scrollLeft)),{top:h,left:c}},O.offset={bodyOffset:function(t){var e=t.offsetTop,i=t.offsetLeft;return O.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(O.css(t,"marginTop"))||0,i+=parseFloat(O.css(t,"marginLeft"))||0),{top:e,left:i}},setOffset:function(t,e,i){var n=O.css(t,"position");"static"===n&&(t.style.position="relative");var s,o,r=O(t),a=r.offset(),l=O.css(t,"top"),u=O.css(t,"left"),h=("absolute"===n||"fixed"===n)&&O.inArray("auto",[l,u])>-1,c={},d={};h?(d=r.position(),s=d.top,o=d.left):(s=parseFloat(l)||0,o=parseFloat(u)||0),O.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(c.top=e.top-a.top+s),null!=e.left&&(c.left=e.left-a.left+o),"using"in e?e.using.call(t,c):r.css(c)}},O.fn.extend({position:function(){if(!this[0])return null;var t=this[0],e=this.offsetParent(),i=this.offset(),n=Ci.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(O.css(t,"marginTop"))||0,i.left-=parseFloat(O.css(t,"marginLeft"))||0,n.top+=parseFloat(O.css(e[0],"borderTopWidth"))||0,n.left+=parseFloat(O.css(e[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||z.body;t&&!Ci.test(t.nodeName)&&"static"===O.css(t,"position");)t=t.offsetParent;return t})}}),O.each(["Left","Top"],function(t,i){var n="scroll"+i;O.fn[n]=function(i){var s,o;return i===e?(s=this[0])?(o=H(s),o?"pageXOffset"in o?o[t?"pageYOffset":"pageXOffset"]:O.support.boxModel&&o.document.documentElement[n]||o.document.body[n]:s[n]):null:this.each(function(){o=H(this),o?o.scrollTo(t?O(o).scrollLeft():i,t?i:O(o).scrollTop()):this[n]=i})}}),O.each(["Height","Width"],function(t,i){var n=i.toLowerCase();O.fn["inner"+i]=function(){var t=this[0];return t?t.style?parseFloat(O.css(t,n,"padding")):this[n]():null},O.fn["outer"+i]=function(t){var e=this[0];return e?e.style?parseFloat(O.css(e,n,t?"margin":"border")):this[n]():null},O.fn[n]=function(t){var s=this[0];if(!s)return null==t?null:this;if(O.isFunction(t))return this.each(function(e){var i=O(this);i[n](t.call(this,e,i[n]()))});if(O.isWindow(s)){var o=s.document.documentElement["client"+i],r=s.document.body;return"CSS1Compat"===s.document.compatMode&&o||r&&r["client"+i]||o}if(9===s.nodeType)return Math.max(s.documentElement["client"+i],s.body["scroll"+i],s.documentElement["scroll"+i],s.body["offset"+i],s.documentElement["offset"+i]);if(t===e){var a=O.css(s,n),l=parseFloat(a);return O.isNumeric(l)?l:a}return this.css(n,"string"==typeof t?t:t+"px")}}),t.jQuery=t.$=O,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return O})}(window),/*
   * jQuery UI 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI
   */
  function(t,e){function i(e,i){var s=e.nodeName.toLowerCase();if("area"===s){var o,r=e.parentNode,a=r.name;return e.href&&a&&"map"===r.nodeName.toLowerCase()?(o=t("img[usemap=#"+a+"]")[0],!!o&&n(o)):!1}return(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"==s?e.href||i:i)&&n(e)}function n(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var n=this;setTimeout(function(){t(n).focus(),i&&i.call(n)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,"position",1))&&/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,s,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(s=parseInt(o.css("zIndex"),10),!isNaN(s)&&0!==s))return s;o=o.parent()}return 0},disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.each(["Width","Height"],function(i,n){function s(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,n&&(i-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),s&&(i-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),i}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(r,s(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(r,s(this,e,!0,i)+"px")})}}),t.extend(t.expr[":"],{data:function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s=t.ui[e].prototype;for(var o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i){var n=t.plugins[e];if(n&&t.element[0].parentNode)for(var s=0;s<n.length;s++)t.options[n[s][0]]&&n[s][1].apply(t.element,i)}},contains:function(t,e){return document.compareDocumentPosition?16&t.compareDocumentPosition(e):t!==e&&t.contains(e)},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0?!0:(e[n]=1,s=e[n]>0,e[n]=0,s)},isOverAxis:function(t,e,i){return t>e&&e+i>t},isOver:function(e,i,n,s,o,r){return t.ui.isOverAxis(e,n,o)&&t.ui.isOverAxis(i,s,r)}}))}(jQuery),/*
   * jQuery UI Widget 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Widget
   */
  function(t,e){if(t.cleanData){var i=t.cleanData;t.cleanData=function(e){for(var n,s=0;null!=(n=e[s]);s++)try{t(n).triggerHandler("remove")}catch(o){}i(e)}}else{var n=t.fn.remove;t.fn.remove=function(e,i){return this.each(function(){return i||(!e||t.filter(e,[this]).length)&&t("*",this).add([this]).each(function(){try{t(this).triggerHandler("remove")}catch(e){}}),n.call(t(this),e,i)})}}t.widget=function(e,i,n){var s,o=e.split(".")[0];e=e.split(".")[1],s=o+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s]=function(i){return!!t.data(i,e)},t[o]=t[o]||{},t[o][e]=function(t,e){arguments.length&&this._createWidget(t,e)};var r=new i;r.options=t.extend(!0,{},r.options),t[o][e].prototype=t.extend(!0,r,{namespace:o,widgetName:e,widgetEventPrefix:t[o][e].prototype.widgetEventPrefix||e,widgetBaseClass:s},n),t.widget.bridge(e,t[o][e])},t.widget.bridge=function(i,n){t.fn[i]=function(s){var o="string"==typeof s,r=Array.prototype.slice.call(arguments,1),a=this;return s=!o&&r.length?t.extend.apply(null,[!0,s].concat(r)):s,o&&"_"===s.charAt(0)?a:(this.each(o?function(){var n=t.data(this,i),o=n&&t.isFunction(n[s])?n[s].apply(n,r):n;return o!==n&&o!==e?(a=o,!1):void 0}:function(){var e=t.data(this,i);e?e.option(s||{})._init():t.data(this,i,new n(s,this))}),a)}},t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)},t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,i){t.data(i,this.widgetName,this),this.element=t(i),this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var n=this;this.element.bind("remove."+this.widgetName,function(){n.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(i,n){var s=i;if(0===arguments.length)return t.extend({},this.options);if("string"==typeof i){if(n===e)return this.options[i];s={},s[i]=n}return this._setOptions(s),this},_setOptions:function(e){var i=this;return t.each(e,function(t,e){i._setOption(t,e)}),this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(r)&&r.call(this.element[0],i,n)===!1||i.isDefaultPrevented())}}}(jQuery),/*
   * jQuery UI Mouse 1.8.18
   *
   * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
   * Dual licensed under the MIT or GPL Version 2 licenses.
   * http://jquery.org/license
   *
   * http://docs.jquery.com/UI/Mouse
   *
   * Depends:
   *	jquery.ui.widget.js
   */
  function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1==i.which,o="string"==typeof this.options.cancel&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1;return s&&!o&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return!t.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t){t.widget("ui.resizable",t.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e=this,i=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=i.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var n=this.handles.split(",");this.handles={};for(var s=0;s<n.length;s++){var o=t.trim(n[s]),r="ui-resizable-"+o,a=t('<div class="ui-resizable-handle '+r+'"></div>');/sw|se|ne|nw/.test(o)&&a.css({zIndex:++i.zIndex}),"se"==o&&a.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[o]=".ui-resizable-"+o,this.element.append(a)}}this._renderAxis=function(e){e=e||this.element;for(var i in this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=t(this.handles[i],this.element),s=0;s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth();var o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");e.css(o,s),this._proportionallyResize()}t(this.handles[i]).length}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),i.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").hover(function(){i.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())},function(){i.disabled||e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var i=this.element;i.after(this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i=!1;for(var n in this.handles)t(this.handles[n])[0]==e.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(i){var n=this.options,s=this.element.position(),o=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(o.is(".ui-draggable")||/absolute/.test(o.css("position")))&&o.css({position:"absolute",top:s.top,left:s.left}),this._renderProxy();var r=e(this.helper.css("left")),a=e(this.helper.css("top"));n.containment&&(r+=t(n.containment).scrollLeft()||0,a+=t(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:a},this.size=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.originalPosition={left:r,top:a},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),o.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i=this.helper,n=(this.options,this.originalMousePosition),s=this.axis,o=e.pageX-n.left||0,r=e.pageY-n.top||0,a=this._change[s];if(!a)return!1;{var l=a.apply(this,[e,o,r]);t.browser.msie&&t.browser.version<7,this.sizeDiff}return this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(l=this._updateRatio(l,e)),l=this._respectSize(l,e),this._propagate("resize",e),i.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var i=this.options,n=this;if(this._helper){var s=this._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&t.ui.hasScroll(s[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,l={width:n.helper.width()-a,height:n.helper.height()-r},u=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,h=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;i.animate||this.element.css(t.extend(l,{top:h,left:u})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,s,o,r,a=this.options;r={minWidth:i(a.minWidth)?a.minWidth:0,maxWidth:i(a.maxWidth)?a.maxWidth:1/0,minHeight:i(a.minHeight)?a.minHeight:0,maxHeight:i(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,s=r.minWidth/this.aspectRatio,n=r.maxHeight*this.aspectRatio,o=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),s>r.minHeight&&(r.minHeight=s),n<r.maxWidth&&(r.maxWidth=n),o<r.maxHeight&&(r.maxHeight=o)),this._vBoundaries=r},_updateCache:function(t){this.options;this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=(this.options,this.position),n=this.size,s=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"==s&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"==s&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t,e){var n=(this.helper,this._vBoundaries),s=(this._aspectRatio||e.shiftKey,this.axis),o=i(t.width)&&n.maxWidth&&n.maxWidth<t.width,r=i(t.height)&&n.maxHeight&&n.maxHeight<t.height,a=i(t.width)&&n.minWidth&&n.minWidth>t.width,l=i(t.height)&&n.minHeight&&n.minHeight>t.height;a&&(t.width=n.minWidth),l&&(t.height=n.minHeight),o&&(t.width=n.maxWidth),r&&(t.height=n.maxHeight);var u=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,c=/sw|nw|w/.test(s),d=/nw|ne|n/.test(s);a&&c&&(t.left=u-n.minWidth),o&&c&&(t.left=u-n.maxWidth),l&&d&&(t.top=h-n.minHeight),r&&d&&(t.top=h-n.maxHeight);var p=!t.width&&!t.height;return p&&!t.left&&t.top?t.top=null:p&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var n=this._proportionallyResizeElements[i];if(!this.borderDif){var s=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],o=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];this.borderDif=t.map(s,function(t,e){var i=parseInt(t,10)||0,n=parseInt(o[e],10)||0;return i+n})}t.browser.msie&&(t(e).is(":hidden")||t(e).parents(":hidden").length)||n.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.element,i=this.options;if(this.elementOffset=e.offset(),this._helper){this.helper=this.helper||t('<div style="overflow:hidden;"></div>');var n=t.browser.msie&&t.browser.version<7,s=n?1:0,o=n?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+o,height:this.element.outerHeight()+o,position:"absolute",left:this.elementOffset.left-s+"px",top:this.elementOffset.top-s+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=(this.options,this.originalSize),n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=(this.options,this.originalSize),s=this.originalPosition;return{top:s.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.extend(t.ui.resizable,{version:"1.8.18"}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("resizable"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).data("resizable"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(e,n){t(e).each(function(){var e=t(this),s=t(this).data("resizable-alsoresize"),o={},r=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof s.alsoResize||s.alsoResize.nodeType?l(s.alsoResize):t.each(s.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("resizable"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&t.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&u?{top:h,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i=t(this).data("resizable"),n=i.options,s=i.element,o=n.containment,r=o instanceof t?o.get(0):/parent/.test(o)?s.parent().get(0):o;if(r)if(i.containerElement=t(r),/document/.test(o)||o==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var a=t(r),l=[];t(["Top","Right","Left","Bottom"]).each(function(t,i){l[t]=e(a.css("padding"+i))}),i.containerOffset=a.offset(),i.containerPosition=a.position(),i.containerSize={height:a.innerHeight()-l[3],width:a.innerWidth()-l[1]};var u=i.containerOffset,h=i.containerSize.height,c=i.containerSize.width,d=t.ui.hasScroll(r,"left")?r.scrollWidth:c,p=t.ui.hasScroll(r)?r.scrollHeight:h;i.parentData={element:r,left:u.left,top:u.top,width:d,height:p}}},resize:function(e){var i=t(this).data("resizable"),n=i.options,s=(i.containerSize,i.containerOffset),o=(i.size,i.position),r=i._aspectRatio||e.shiftKey,a={top:0,left:0},l=i.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(a=s),o.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-a.left),r&&(i.size.height=i.size.width/n.aspectRatio),i.position.left=n.helper?s.left:0),o.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),r&&(i.size.width=i.size.height*n.aspectRatio),i.position.top=i._helper?s.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var u=Math.abs((i._helper?i.offset.left-a.left:i.offset.left-a.left)+i.sizeDiff.width),h=Math.abs((i._helper?i.offset.top-a.top:i.offset.top-s.top)+i.sizeDiff.height),c=i.containerElement.get(0)==i.element.parent().get(0),d=/relative|absolute/.test(i.containerElement.css("position"));c&&d&&(u-=i.parentData.left),u+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-u,r&&(i.size.height=i.size.width/i.aspectRatio)),h+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-h,r&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var e=t(this).data("resizable"),i=e.options,n=(e.position,e.containerOffset),s=e.containerPosition,o=e.containerElement,r=t(e.helper),a=r.offset(),l=r.outerWidth()-e.sizeDiff.width,u=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){{var e=t(this).data("resizable");e.options}e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){{var e=t(this).data("resizable");e.options}e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e){{var i=t(this).data("resizable"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis;n._aspectRatio||e.shiftKey}n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var l=Math.round((s.width-o.width)/(n.grid[0]||1))*(n.grid[0]||1),u=Math.round((s.height-o.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(a)?(i.size.width=o.width+l,i.size.height=o.height+u):/^(ne)$/.test(a)?(i.size.width=o.width+l,i.size.height=o.height+u,i.position.top=r.top-u):/^(sw)$/.test(a)?(i.size.width=o.width+l,i.size.height=o.height+u,i.position.left=r.left-l):(i.size.width=o.width+l,i.size.height=o.height+u,i.position.top=r.top-u,i.position.left=r.left-l)}});var e=function(t){return parseInt(t,10)||0},i=function(t){return!isNaN(parseInt(t,10))}}(jQuery),/*
   * jQuery hashchange event - v1.3 - 7/21/2010
   * http://benalman.com/projects/jquery-hashchange-plugin/
   * 
   * Copyright (c) 2010 "Cowboy" Ben Alman
   * Dual licensed under the MIT and GPL licenses.
   * http://benalman.com/about/license/
   */
  function(t,e,i){function n(t){return t=t||location.href,"#"+t.replace(/^[^#]*#?(.*)$/,"$1")}var s,o="hashchange",r=document,a=t.event.special,l=r.documentMode,u="on"+o in e&&(l===i||l>7);t.fn[o]=function(t){return t?this.bind(o,t):this.trigger(o)},t.fn[o].delay=50,a[o]=t.extend(a[o],{setup:function(){return u?!1:void t(s.start)},teardown:function(){return u?!1:void t(s.stop)}}),s=function(){function s(){var i=n(),r=p(h);i!==h?(d(h=i,r),t(e).trigger(o)):r!==h&&(location.href=location.href.replace(/#.*/,"")+r),a=setTimeout(s,t.fn[o].delay)}var a,l={},h=n(),c=function(t){return t},d=c,p=c;return l.start=function(){a||s()},l.stop=function(){a&&clearTimeout(a),a=i},t.browser.msie&&!u&&function(){var e,i;l.start=function(){e||(i=t.fn[o].src,i=i&&i+n(),e=t('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||d(n()),s()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,r.onpropertychange=function(){try{"title"===event.propertyName&&(e.document.title=r.title)}catch(t){}})},l.stop=c,p=function(){return n(e.location.href)},d=function(i,n){var s=e.document,a=t.fn[o].domain;i!==n&&(s.title=r.title,s.open(),a&&s.write('<script>document.domain="'+a+'"</script>'),s.close(),e.location.hash=i)}}(),l}()}(jQuery,this),function(t){function e(t){return"object"==typeof t?t:{top:t,left:t}}var i=t.scrollTo=function(e,i,n){t(window).scrollTo(e,i,n)};i.defaults={axis:"xy",duration:parseFloat(t.fn.jquery)>=1.3?0:1},i.window=function(){return t(window)._scrollable()},t.fn._scrollable=function(){return this.map(function(){var e=this,i=!e.nodeName||-1!=t.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!i)return e;var n=(e.contentWindow||e).document||e.ownerDocument||e;return t.browser.safari||"BackCompat"==n.compatMode?n.body:n.documentElement})},t.fn.scrollTo=function(n,s,o){return"object"==typeof s&&(o=s,s=0),"function"==typeof o&&(o={onAfter:o}),"max"==n&&(n=9e9),o=t.extend({},i.defaults,o),s=s||o.speed||o.duration,o.queue=o.queue&&o.axis.length>1,o.queue&&(s/=2),o.offset=e(o.offset),o.over=e(o.over),this._scrollable().each(function(){function r(t){u.animate(c,s,o.easing,t&&function(){t.call(this,n,o)})}var a,l=this,u=t(l),h=n,c={},d=u.is("html,body");switch(typeof h){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(h)){h=e(h);break}h=t(h,this);case"object":(h.is||h.style)&&(a=(h=t(h)).offset())}t.each(o.axis.split(""),function(t,e){var n="x"==e?"Left":"Top",s=n.toLowerCase(),p="scroll"+n,f=l[p],m=i.max(l,e);if(a)c[p]=a[s]+(d?0:f-u.offset()[s]),o.margin&&(c[p]-=parseInt(h.css("margin"+n))||0,c[p]-=parseInt(h.css("border"+n+"Width"))||0),c[p]+=o.offset[s]||0,o.over[s]&&(c[p]+=h["x"==e?"width":"height"]()*o.over[s]);else{var g=h[s];c[p]=g.slice&&"%"==g.slice(-1)?parseFloat(g)/100*m:g}/^\d+$/.test(c[p])&&(c[p]=c[p]<=0?0:Math.min(c[p],m)),!t&&o.queue&&(f!=c[p]&&r(o.onAfterFirst),delete c[p])}),r(o.onAfter)}).end()},i.max=function(e,i){var n="x"==i?"Width":"Height",s="scroll"+n;if(!t(e).is("html,body"))return e[s]-t(e)[n.toLowerCase()]();var o="client"+n,r=e.ownerDocument.documentElement,a=e.ownerDocument.body;return Math.max(r[s],a[s])-Math.min(r[o],a[o])}}(jQuery),/*
   PowerTip - v1.2.0 - 2013-04-03
   http://stevenbenner.github.com/jquery-powertip/
   Copyright (c) 2013 Steven Benner (http://stevenbenner.com/).
   Released under MIT license.
   https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt
  */
  function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(){var e=this;e.top="auto",e.left="auto",e.right="auto",e.bottom="auto",e.set=function(i,n){t.isNumeric(n)&&(e[i]=Math.round(n))}}function i(t,e,i){function n(n,s){r(),t.data(g)||(n?(s&&t.data(v,!0),i.showTip(t)):(M.tipOpenImminent=!0,l=setTimeout(function(){l=null,o()},e.intentPollInterval)))}function s(n){r(),M.tipOpenImminent=!1,t.data(g)&&(t.data(v,!1),n?i.hideTip(t):(M.delayInProgress=!0,l=setTimeout(function(){l=null,i.hideTip(t),M.delayInProgress=!1},e.closeDelay)))}function o(){var s=Math.abs(M.previousX-M.currentX),o=Math.abs(M.previousY-M.currentY),r=s+o;r<e.intentSensitivity?i.showTip(t):(M.previousX=M.currentX,M.previousY=M.currentY,n())}function r(){l=clearTimeout(l),M.delayInProgress=!1}function a(){i.resetPosition(t)}var l=null;this.show=n,this.hide=s,this.cancel=r,this.resetPosition=a}function n(){function t(t,s,r,a,l){var u,h=s.split("-")[0],c=new e;switch(u=o(t)?n(t,h):i(t,h),s){case"n":c.set("left",u.left-r/2),c.set("bottom",M.windowHeight-u.top+l);break;case"e":c.set("left",u.left+l),c.set("top",u.top-a/2);break;case"s":c.set("left",u.left-r/2),c.set("top",u.top+l);break;case"w":c.set("top",u.top-a/2),c.set("right",M.windowWidth-u.left+l);break;case"nw":c.set("bottom",M.windowHeight-u.top+l),c.set("right",M.windowWidth-u.left-20);break;case"nw-alt":c.set("left",u.left),c.set("bottom",M.windowHeight-u.top+l);break;case"ne":c.set("left",u.left-20),c.set("bottom",M.windowHeight-u.top+l);break;case"ne-alt":c.set("bottom",M.windowHeight-u.top+l),c.set("right",M.windowWidth-u.left);break;case"sw":c.set("top",u.top+l),c.set("right",M.windowWidth-u.left-20);break;case"sw-alt":c.set("left",u.left),c.set("top",u.top+l);break;case"se":c.set("left",u.left-20),c.set("top",u.top+l);break;case"se-alt":c.set("top",u.top+l),c.set("right",M.windowWidth-u.left)}return c}function i(t,e){var i,n,s=t.offset(),o=t.outerWidth(),r=t.outerHeight();switch(e){case"n":i=s.left+o/2,n=s.top;break;case"e":i=s.left+o,n=s.top+r/2;break;case"s":i=s.left+o/2,n=s.top+r;break;case"w":i=s.left,n=s.top+r/2;break;case"nw":i=s.left,n=s.top;break;case"ne":i=s.left+o,n=s.top;break;case"sw":i=s.left,n=s.top+r;break;case"se":i=s.left+o,n=s.top+r}return{top:n,left:i}}function n(t,e){function i(){f.push(u.matrixTransform(c))}var n,s,o,r,a=t.closest("svg")[0],l=t[0],u=a.createSVGPoint(),h=l.getBBox(),c=l.getScreenCTM(),d=h.width/2,p=h.height/2,f=[],m=["nw","n","ne","e","se","s","sw","w"];if(u.x=h.x,u.y=h.y,i(),u.x+=d,i(),u.x+=d,i(),u.y+=p,i(),u.y+=p,i(),u.x-=d,i(),u.x-=d,i(),u.y-=p,i(),f[0].y!==f[1].y||f[0].x!==f[7].x)for(s=Math.atan2(c.b,c.a)*C,o=Math.ceil((s%360-22.5)/45),1>o&&(o+=8);o--;)m.push(m.shift());for(r=0;r<f.length;r++)if(m[r]===e){n=f[r];break}return{top:n.y+M.scrollTop,left:n.x+M.scrollLeft}}this.compute=t}function s(i){function s(t){t.data(g,!0),C.queue(function(e){o(t),e()})}function o(t){var e;if(t.data(g)){if(M.isTipOpen)return M.isClosing||r(M.activeHover),void C.delay(100).queue(function(e){o(t),e()});t.trigger("powerTipPreRender"),e=u(t),e&&(C.empty().append(e),t.trigger("powerTipRender"),M.activeHover=t,M.isTipOpen=!0,C.data(b,i.mouseOnToPopup),i.followMouse?a():(w(t),M.isFixedTipOpen=!0),C.fadeIn(i.fadeInTime,function(){M.desyncTimeout||(M.desyncTimeout=setInterval(T,500)),t.trigger("powerTipOpen")}))}}function r(t){M.isClosing=!0,M.activeHover=null,M.isTipOpen=!1,M.desyncTimeout=clearInterval(M.desyncTimeout),t.data(g,!1),t.data(v,!1),C.fadeOut(i.fadeOutTime,function(){var n=new e;M.isClosing=!1,M.isFixedTipOpen=!1,C.removeClass(),n.set("top",M.currentY+i.offset),n.set("left",M.currentX+i.offset),C.css(n),t.trigger("powerTipClose")})}function a(){if(!M.isFixedTipOpen&&(M.isTipOpen||M.tipOpenImminent&&C.data(y))){var t,n,s=C.outerWidth(),o=C.outerHeight(),r=new e;r.set("top",M.currentY+i.offset),r.set("left",M.currentX+i.offset),t=h(r,s,o),t!==N.none&&(n=c(t),1===n?t===N.right?r.set("left",M.windowWidth-s):t===N.bottom&&r.set("top",M.scrollTop+M.windowHeight-o):(r.set("left",M.currentX-s-i.offset),r.set("top",M.currentY-o-i.offset))),C.css(r)}}function w(e){var n,s;i.smartPlacement?(n=t.fn.powerTip.smartPlacementLists[i.placement],t.each(n,function(t,i){var n=h(x(e,i),C.outerWidth(),C.outerHeight());return s=i,n===N.none?!1:void 0})):(x(e,i.placement),s=i.placement),C.addClass(s)}function x(t,n){var s,o,r=0,a=new e;a.set("top",0),a.set("left",0),C.css(a);do s=C.outerWidth(),o=C.outerHeight(),a=S.compute(t,n,s,o,i.offset),C.css(a);while(++r<=5&&(s!==C.outerWidth()||o!==C.outerHeight()));return a}function T(){var t=!1;!M.isTipOpen||M.isClosing||M.delayInProgress||(M.activeHover.data(g)===!1||M.activeHover.is(":disabled")?t=!0:l(M.activeHover)||M.activeHover.is(":focus")||M.activeHover.data(v)||(C.data(b)?l(C)||(t=!0):t=!0),t&&r(M.activeHover))}var S=new n,C=t("#"+i.popupId);0===C.length&&(C=t("<div/>",{id:i.popupId}),0===f.length&&(f=t("body")),f.append(C)),i.followMouse&&(C.data(y)||(d.on("mousemove",a),p.on("scroll",a),C.data(y,!0))),i.mouseOnToPopup&&C.on({mouseenter:function(){C.data(b)&&M.activeHover&&M.activeHover.data(m).cancel()},mouseleave:function(){M.activeHover&&M.activeHover.data(m).hide()}}),this.showTip=s,this.hideTip=r,this.resetPosition=w}function o(t){return window.SVGElement&&t[0]instanceof SVGElement}function r(){M.mouseTrackingActive||(M.mouseTrackingActive=!0,t(function(){M.scrollLeft=p.scrollLeft(),M.scrollTop=p.scrollTop(),M.windowWidth=p.width(),M.windowHeight=p.height()}),d.on("mousemove",a),p.on({resize:function(){M.windowWidth=p.width(),M.windowHeight=p.height()},scroll:function(){var t=p.scrollLeft(),e=p.scrollTop();t!==M.scrollLeft&&(M.currentX+=t-M.scrollLeft,M.scrollLeft=t),e!==M.scrollTop&&(M.currentY+=e-M.scrollTop,M.scrollTop=e)}}))}function a(t){M.currentX=t.pageX,M.currentY=t.pageY}function l(t){var e=t.offset(),i=t[0].getBoundingClientRect(),n=i.right-i.left,s=i.bottom-i.top;return M.currentX>=e.left&&M.currentX<=e.left+n&&M.currentY>=e.top&&M.currentY<=e.top+s}function u(e){var i,n,s=e.data(x),o=e.data(T),r=e.data(S);return s?(t.isFunction(s)&&(s=s.call(e[0])),n=s):o?(t.isFunction(o)&&(o=o.call(e[0])),o.length>0&&(n=o.clone(!0,!0))):r&&(i=t("#"+r),i.length>0&&(n=i.html())),n}function h(t,e,i){var n=M.scrollTop,s=M.scrollLeft,o=n+M.windowHeight,r=s+M.windowWidth,a=N.none;return(t.top<n||Math.abs(t.bottom-M.windowHeight)-i<n)&&(a|=N.top),(t.top+i>o||Math.abs(t.bottom-M.windowHeight)>o)&&(a|=N.bottom),(t.left<s||t.right+e>r)&&(a|=N.left),(t.left+e>r||t.right<s)&&(a|=N.right),a}function c(t){for(var e=0;t;)t&=t-1,e++;return e}var d=t(document),p=t(window),f=t("body"),m="displayController",g="hasActiveHover",v="forcedOpen",y="hasMouseMove",b="mouseOnToPopup",w="originalTitle",x="powertip",T="powertipjq",S="powertiptarget",C=180/Math.PI,M={isTipOpen:!1,isFixedTipOpen:!1,isClosing:!1,tipOpenImminent:!1,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,mouseTrackingActive:!1,delayInProgress:!1,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0},N={none:0,top:1,bottom:2,left:4,right:8};t.fn.powerTip=function(e,n){if(!this.length)return this;if("string"===t.type(e)&&t.powerTip[e])return t.powerTip[e].call(this,this,n);var o=t.extend({},t.fn.powerTip.defaults,e),a=new s(o);return r(),this.each(function(){var e,n=t(this),s=n.data(x),r=n.data(T),l=n.data(S);n.data(m)&&t.powerTip.destroy(n),e=n.attr("title"),s||l||r||!e||(n.data(x,e),n.data(w,e),n.removeAttr("title")),n.data(m,new i(n,o,a))}),o.manual||this.on({"mouseenter.powertip":function(e){t.powerTip.show(this,e)},"mouseleave.powertip":function(){t.powerTip.hide(this)},"focus.powertip":function(){t.powerTip.show(this)},"blur.powertip":function(){t.powerTip.hide(this,!0)},"keydown.powertip":function(e){27===e.keyCode&&t.powerTip.hide(this,!0)}}),this},t.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1},t.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},t.powerTip={show:function(e,i){return i?(a(i),M.previousX=i.pageX,M.previousY=i.pageY,t(e).data(m).show()):t(e).first().data(m).show(!0,!0),e},reposition:function(e){return t(e).first().data(m).resetPosition(),e},hide:function(e,i){return e?t(e).first().data(m).hide(i):M.activeHover&&M.activeHover.data(m).hide(!0),e},destroy:function(e){return t(e).off(".powertip").each(function(){var e=t(this),i=[w,m,g,v];e.data(w)&&(e.attr("title",e.data(w)),i.push(x)),e.removeData(i)}),e}},t.powerTip.showTip=t.powerTip.show,t.powerTip.closeTip=t.powerTip.hide}),/*
   * jQuery UI Touch Punch 0.2.3
   *
   * Copyright 2011–2014, Dave Furfero
   * Dual licensed under the MIT or GPL Version 2 licenses.
   *
   * Depends:
   *  jquery.ui.widget.js
   *  jquery.ui.mouse.js
   */
  function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,s=n._mouseInit,o=n._mouseDestroy;n._touchStart=function(t){var n=this;!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),s.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)}}}(jQuery),/*
   * SmartMenus jQuery Plugin - v1.0.0 - January 27, 2016
   * http://www.smartmenus.org/
   *
   * Copyright Vasil Dinkov, Vadikom Web Ltd.
   * http://vadikom.com
   *
   * Licensed MIT
   */
  function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){function e(e){var o=".smartmenus_mouse";if(l||e)l&&e&&(t(document).unbind(o),l=!1);else{var u=!0,h=null;t(document).bind(n([["mousemove",function(e){var i={x:e.pageX,y:e.pageY,timeStamp:(new Date).getTime()};if(h){var n=Math.abs(h.x-i.x),o=Math.abs(h.y-i.y);if((n>0||o>0)&&2>=n&&2>=o&&i.timeStamp-h.timeStamp<=300&&(r=!0,u)){var a=t(e.target).closest("a");a.is("a")&&t.each(s,function(){return t.contains(this.$root[0],a[0])?(this.itemEnter({currentTarget:a[0]}),!1):void 0}),u=!1}}h=i}],[a?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut",function(t){i(t.originalEvent)&&(r=!1)}]],o)),l=!0}}function i(t){return!/^(4|mouse)$/.test(t.pointerType)}function n(e,i){i||(i="");var n={};return t.each(e,function(t,e){n[e[0].split(" ").join(i+" ")+i]=e[1]}),n}var s=[],o=!!window.createPopup,r=!1,a="ontouchstart"in window,l=!1,u=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},h=window.cancelAnimationFrame||function(t){clearTimeout(t)};return t.SmartMenus=function(e,i){this.$root=t(e),this.opts=i,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in e.style||"webkitPerspective"in e.style,this.wasCollapsible=!1,this.init()},t.extend(t.SmartMenus,{hideAll:function(){t.each(s,function(){this.menuHideAll()})},destroy:function(){for(;s.length;)s[0].destroy();e(!0)},prototype:{init:function(i){var o=this;if(!i){s.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var r=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).bind(n([["mouseover focusin",t.proxy(this.rootOver,this)],["mouseout focusout",t.proxy(this.rootOut,this)],["keydown",t.proxy(this.rootKeyDown,this)]],r)).delegate("a",n([["mouseenter",t.proxy(this.itemEnter,this)],["mouseleave",t.proxy(this.itemLeave,this)],["mousedown",t.proxy(this.itemDown,this)],["focus",t.proxy(this.itemFocus,this)],["blur",t.proxy(this.itemBlur,this)],["click",t.proxy(this.itemClick,this)]],r)),r+=this.rootId,this.opts.hideOnClick&&t(document).bind(n([["touchstart",t.proxy(this.docTouchStart,this)],["touchmove",t.proxy(this.docTouchMove,this)],["touchend",t.proxy(this.docTouchEnd,this)],["click",t.proxy(this.docClick,this)]],r)),t(window).bind(n([["resize orientationchange",t.proxy(this.winResize,this)]],r)),this.opts.subIndicators&&(this.$subArrow=t("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),e()}if(this.$firstSub=this.$root.find("ul").each(function(){o.menuInit(t(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var a=/(index|default)\.[^#\?\/]*/i,l=/#.*/,u=window.location.href.replace(a,""),h=u.replace(l,"");this.$root.find("a").each(function(){var e=this.href.replace(a,""),i=t(this);(e==u||e==h)&&(i.addClass("current"),o.opts.markCurrentTree&&i.parentsUntil("[data-smartmenus-id]","ul").each(function(){t(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(e){if(!e){var i=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").unbind(i).undelegate(i),i+=this.rootId,t(document).unbind(i),t(window).unbind(i),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var n=this;this.$root.find("ul").each(function(){var e=t(this);e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.dataSM("shown-before")&&((n.opts.subMenusMinWidth||n.opts.subMenusMaxWidth)&&e.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(e.attr("id")||"").indexOf(n.accessIdPrefix)&&e.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("ie-shim").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var e=t(this);0==e.attr("id").indexOf(n.accessIdPrefix)&&e.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),e||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),s.splice(t.inArray(this,s),1))},disable:function(e){if(!this.disabled){if(this.menuHideAll(),!e&&!this.opts.isPopup&&this.$root.is(":visible")){var i=this.$root.offset();this.$disableOverlay=t('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(e){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!t.contains(this.$root[0],e.target)||t(e.target).is("a"))&&this.menuHideAll())},docTouchEnd:function(){if(this.lastTouch){if(!(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&t.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var e=t.originalEvent.touches[0];this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY}},docTouchStart:function(t){var e=t.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(e){for(var i=t(e).closest("ul");i.dataSM("in-mega");)i=i.parent().closest("ul");return i[0]||null},getHeight:function(t){return this.getOffset(t,!0)},getOffset:function(t,e){var i;"none"==t.css("display")&&(i={position:t[0].style.position,visibility:t[0].style.visibility},t.css({position:"absolute",visibility:"hidden"}).show());var n=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),s=n&&(e?n.height||n.bottom-n.top:n.width||n.right-n.left);return s||0===s||(s=e?t[0].offsetHeight:t[0].offsetWidth),i&&t.hide().css(i),s},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$root.css("z-index"))),isNaN(e)?1:e},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},getViewport:function(t){var e=t?"Height":"Width",i=document.documentElement["client"+e],n=window["inner"+e];return n&&(i=Math.min(i,n)),i},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(t){return this.getOffset(t)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(t){return this.handleEvents()&&!this.isLinkInMegaMenu(t)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"block"==this.$firstLink.css("display")},isFixed:function(){var e="fixed"==this.$root.css("position");return e||this.$root.parentsUntil("body").each(function(){return"fixed"==t(this).css("position")?(e=!0,!1):void 0}),e},isLinkInMegaMenu:function(e){return t(this.getClosestMenu(e[0])).hasClass("mega-menu")},isTouchMode:function(){return!r||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(e,i){var n=e.closest("ul"),s=n.dataSM("level");if(s>1&&(!this.activatedItems[s-2]||this.activatedItems[s-2][0]!=n.dataSM("parent-a")[0])){var o=this;t(n.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(n).each(function(){o.itemActivate(t(this).dataSM("parent-a"))})}if((!this.isCollapsible()||i)&&this.menuHideSubMenus(this.activatedItems[s-1]&&this.activatedItems[s-1][0]==e[0]?s:s-1),this.activatedItems[s-1]=e,this.$root.triggerHandler("activate.smapi",e[0])!==!1){var r=e.dataSM("sub");r&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(r)}},itemBlur:function(e){var i=t(e.currentTarget);this.handleItemEvents(i)&&this.$root.triggerHandler("blur.smapi",i[0])},itemClick:function(e){var i=t(e.currentTarget);if(this.handleItemEvents(i)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==i.closest("ul")[0])return this.$touchScrollingSub=null,e.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",i[0])===!1)return!1;var n=t(e.target).is("span.sub-arrow"),s=i.dataSM("sub"),o=s?2==s.dataSM("level"):!1;if(s&&!s.is(":visible")){if(this.opts.showOnClick&&o&&(this.clickActivated=!0),this.itemActivate(i),s.is(":visible"))return this.focusActivated=!0,!1}else if(this.isCollapsible()&&n)return this.itemActivate(i),this.menuHide(s),!1;return this.opts.showOnClick&&o||i.hasClass("disabled")||this.$root.triggerHandler("select.smapi",i[0])===!1?!1:void 0}},itemDown:function(e){var i=t(e.currentTarget);this.handleItemEvents(i)&&i.dataSM("mousedown",!0)},itemEnter:function(e){var i=t(e.currentTarget);if(this.handleItemEvents(i)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var n=this;this.showTimeout=setTimeout(function(){n.itemActivate(i)},this.opts.showOnClick&&1==i.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",i[0])}},itemFocus:function(e){var i=t(e.currentTarget);this.handleItemEvents(i)&&(!this.focusActivated||this.isTouchMode()&&i.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==i[0]||this.itemActivate(i,!0),this.$root.triggerHandler("focus.smapi",i[0]))},itemLeave:function(e){var i=t(e.currentTarget);this.handleItemEvents(i)&&(this.isTouchMode()||(i[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),i.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",i[0]))},menuHide:function(e){if(this.$root.triggerHandler("beforehide.smapi",e[0])!==!1&&(e.stop(!0,!0),"none"!=e.css("display"))){var i=function(){e.css("z-index","")};this.isCollapsible()?this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,e,i):e.hide(this.opts.collapsibleHideDuration,i):this.opts.hideFunction?this.opts.hideFunction.call(this,e,i):e.hide(this.opts.hideDuration,i),e.dataSM("ie-shim")&&e.dataSM("ie-shim").remove().css({"-webkit-transform":"",transform:""}),e.dataSM("scroll")&&(this.menuScrollStop(e),e.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).unbind(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),e.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),e.attr({"aria-expanded":"false","aria-hidden":"true"});var n=e.dataSM("level");this.activatedItems.splice(n-1,1),this.visibleSubMenus.splice(t.inArray(e,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",e[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var t=this.opts.isPopup?1:0,e=this.visibleSubMenus.length-1;e>=t;e--)this.menuHide(this.visibleSubMenus[e]);this.opts.isPopup&&(this.$root.stop(!0,!0),this.$root.is(":visible")&&(this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration),this.$root.dataSM("ie-shim")&&this.$root.dataSM("ie-shim").remove())),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(t){for(var e=this.activatedItems.length-1;e>=t;e--){var i=this.activatedItems[e].dataSM("sub");i&&this.menuHide(i)}},menuIframeShim:function(e){o&&this.opts.overlapControlsInIE&&!e.dataSM("ie-shim")&&e.dataSM("ie-shim",t("<iframe/>").attr({src:"javascript:0",tabindex:-9}).css({position:"absolute",top:"auto",left:"0",opacity:0,border:"0"}))},menuInit:function(t){if(!t.dataSM("in-mega")){t.hasClass("mega-menu")&&t.find("ul").dataSM("in-mega",!0);for(var e=2,i=t[0];(i=i.parentNode.parentNode)!=this.$root[0];)e++;var n=t.prevAll("a").eq(-1);n.length||(n=t.prevAll().find("a").eq(-1)),n.addClass("has-submenu").dataSM("sub",t),t.dataSM("parent-a",n).dataSM("level",e).parent().dataSM("sub",t);var s=n.attr("id")||this.accessIdPrefix+ ++this.idInc,o=t.attr("id")||this.accessIdPrefix+ ++this.idInc;n.attr({id:s,"aria-haspopup":"true","aria-controls":o,"aria-expanded":"false"}),t.attr({id:o,role:"group","aria-hidden":"true","aria-labelledby":s,"aria-expanded":"false"}),this.opts.subIndicators&&n[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(e){var i,s,o=e.dataSM("parent-a"),r=o.closest("li"),l=r.parent(),u=e.dataSM("level"),h=this.getWidth(e),c=this.getHeight(e),d=o.offset(),p=d.left,f=d.top,m=this.getWidth(o),g=this.getHeight(o),v=t(window),y=v.scrollLeft(),b=v.scrollTop(),w=this.getViewportWidth(),x=this.getViewportHeight(),T=l.parent().is("[data-sm-horizontal-sub]")||2==u&&!l.hasClass("sm-vertical"),S=this.opts.rightToLeftSubMenus&&!r.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&r.is("[data-sm-reverse]"),C=2==u?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,M=2==u?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(T?(i=S?m-h-C:C,s=this.opts.bottomToTopSubMenus?-c-M:g+M):(i=S?C-h:m-C,s=this.opts.bottomToTopSubMenus?g-M-c:M),this.opts.keepInViewport){var N=p+i,E=f+s;if(S&&y>N?i=T?y-N+i:m-C:!S&&N+h>y+w&&(i=T?y+w-h-N+i:C-h),T||(x>c&&E+c>b+x?s+=b+x-c-E:(c>=x||b>E)&&(s+=b-E)),T&&(E+c>b+x+.49||b>E)||!T&&c>x+.49){var D=this;e.dataSM("scroll-arrows")||e.dataSM("scroll-arrows",t([t('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],t('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).bind({mouseenter:function(){e.dataSM("scroll").up=t(this).hasClass("scroll-up"),D.menuScroll(e)},mouseleave:function(t){D.menuScrollStop(e),D.menuScrollOut(e,t)},"mousewheel DOMMouseScroll":function(t){t.preventDefault()}}).insertAfter(e));var _=".smartmenus_scroll";e.dataSM("scroll",{y:this.cssTransforms3d?0:s-g,step:1,itemH:g,subH:c,arrowDownH:this.getHeight(e.dataSM("scroll-arrows").eq(1))}).bind(n([["mouseover",function(t){D.menuScrollOver(e,t)}],["mouseout",function(t){D.menuScrollOut(e,t)}],["mousewheel DOMMouseScroll",function(t){D.menuScrollMousewheel(e,t)}]],_)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:i+(parseInt(e.css("border-left-width"))||0),width:h-(parseInt(e.css("border-left-width"))||0)-(parseInt(e.css("border-right-width"))||0),zIndex:e.css("z-index")}).eq(T&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()&&e.css({"touch-action":"none","-ms-touch-action":"none"}).bind(n([[a?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp",function(t){D.menuScrollTouch(e,t)}]],_))}}e.css({top:"auto",left:"0",marginLeft:i,marginTop:s-g}),this.menuIframeShim(e),e.dataSM("ie-shim")&&e.dataSM("ie-shim").css({zIndex:e.css("z-index"),width:h,height:c,marginLeft:i,marginTop:s-g})},menuScroll:function(t,e,i){var n,s=t.dataSM("scroll"),o=t.dataSM("scroll-arrows"),a=s.up?s.upEnd:s.downEnd;if(!e&&s.momentum){if(s.momentum*=.92,n=s.momentum,.5>n)return void this.menuScrollStop(t)}else n=i||(e||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(s.step));var l=t.dataSM("level");if(this.activatedItems[l-1]&&this.activatedItems[l-1].dataSM("sub")&&this.activatedItems[l-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(l-1),s.y=s.up&&a<=s.y||!s.up&&a>=s.y?s.y:Math.abs(a-s.y)>n?s.y+(s.up?n:-n):a,t.add(t.dataSM("ie-shim")).css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+s.y+"px, 0)",transform:"translate3d(0, "+s.y+"px, 0)"}:{marginTop:s.y}),r&&(s.up&&s.y>s.downEnd||!s.up&&s.y<s.upEnd)&&o.eq(s.up?1:0).show(),s.y==a)r&&o.eq(s.up?0:1).hide(),this.menuScrollStop(t);else if(!e){this.opts.scrollAccelerate&&s.step<this.opts.scrollStep&&(s.step+=.2);var h=this;this.scrollTimeout=u(function(){h.menuScroll(t)})}},menuScrollMousewheel:function(t,e){if(this.getClosestMenu(e.target)==t[0]){e=e.originalEvent;var i=(e.wheelDelta||-e.detail)>0;t.dataSM("scroll-arrows").eq(i?0:1).is(":visible")&&(t.dataSM("scroll").up=i,this.menuScroll(t,!0))}e.preventDefault()},menuScrollOut:function(e,i){r&&(/^scroll-(up|down)/.test((i.relatedTarget||"").className)||(e[0]==i.relatedTarget||t.contains(e[0],i.relatedTarget))&&this.getClosestMenu(i.relatedTarget)==e[0]||e.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(e,i){if(r&&!/^scroll-(up|down)/.test(i.target.className)&&this.getClosestMenu(i.target)==e[0]){this.menuScrollRefreshData(e);var n=e.dataSM("scroll"),s=t(window).scrollTop()-e.dataSM("parent-a").offset().top-n.itemH;e.dataSM("scroll-arrows").eq(0).css("margin-top",s).end().eq(1).css("margin-top",s+this.getViewportHeight()-n.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(e){var i=e.dataSM("scroll"),n=t(window).scrollTop()-e.dataSM("parent-a").offset().top-i.itemH;this.cssTransforms3d&&(n=-(parseFloat(e.css("margin-top"))-n)),t.extend(i,{upEnd:n,downEnd:n+this.getViewportHeight()-i.subH})},menuScrollStop:function(t){return this.scrollTimeout?(h(this.scrollTimeout),this.scrollTimeout=0,t.dataSM("scroll").step=1,!0):void 0},menuScrollTouch:function(e,n){if(n=n.originalEvent,i(n)){var s=this.getTouchPoint(n);if(this.getClosestMenu(s.target)==e[0]){var o=e.dataSM("scroll");if(/(start|down)$/i.test(n.type))this.menuScrollStop(e)?(n.preventDefault(),this.$touchScrollingSub=e):this.$touchScrollingSub=null,this.menuScrollRefreshData(e),t.extend(o,{touchStartY:s.pageY,touchStartTime:n.timeStamp});else if(/move$/i.test(n.type)){var r=void 0!==o.touchY?o.touchY:o.touchStartY;if(void 0!==r&&r!=s.pageY){this.$touchScrollingSub=e;var a=r<s.pageY;void 0!==o.up&&o.up!=a&&t.extend(o,{touchStartY:s.pageY,touchStartTime:n.timeStamp}),t.extend(o,{up:a,touchY:s.pageY}),this.menuScroll(e,!0,Math.abs(s.pageY-r))}n.preventDefault()}else void 0!==o.touchY&&((o.momentum=15*Math.pow(Math.abs(s.pageY-o.touchStartY)/(n.timeStamp-o.touchStartTime),2))&&(this.menuScrollStop(e),this.menuScroll(e),n.preventDefault()),delete o.touchY)}}},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",t[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",t[0])!==!1&&(t.dataSM("shown-before",!0).stop(!0,!0),!t.is(":visible"))){var e=t.dataSM("parent-a");if((this.opts.keepHighlighted||this.isCollapsible())&&e.addClass("highlighted"),this.isCollapsible())t.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(t.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(t.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&t.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var i=this.getWidth(t);t.css("max-width",this.opts.subMenusMaxWidth),i>this.getWidth(t)&&t.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(t),t.dataSM("ie-shim")&&t.dataSM("ie-shim").insertBefore(t)}var n=function(){t.css("overflow","")};this.isCollapsible()?this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,t,n):t.show(this.opts.collapsibleShowDuration,n):this.opts.showFunction?this.opts.showFunction.call(this,t,n):t.show(this.opts.showDuration,n),e.attr("aria-expanded","true"),t.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}},popupHide:function(t){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},t?1:this.opts.hideTimeout)},popupShow:function(t,e){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0).stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:t,top:e}),this.menuIframeShim(this.$root),this.$root.dataSM("ie-shim")&&this.$root.dataSM("ie-shim").css({zIndex:this.$root.css("z-index"),width:this.getWidth(this.$root),height:this.getHeight(this.$root),left:t,top:e}).insertBefore(this.$root);var i=this,n=function(){i.$root.css("overflow","")};this.opts.showFunction?this.opts.showFunction.call(this,this.$root,n):this.$root.show(this.opts.showDuration,n),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(e){if(this.handleEvents())switch(e.keyCode){case 27:var i=this.activatedItems[0];if(i){this.menuHideAll(),i[0].focus();var n=i.dataSM("sub");n&&this.menuHide(n)}break;case 32:var s=t(e.target);if(s.is("a")&&this.handleItemEvents(s)){var n=s.dataSM("sub");n&&!n.is(":visible")&&(this.itemClick({currentTarget:e.target}),e.preventDefault())}}},rootOut:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(t){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==t.type){var e=this.isCollapsible();this.wasCollapsible&&e||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=e}}else if(this.$disableOverlay){var i=this.$root.offset();this.$disableOverlay.css({top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),t.fn.dataSM=function(t,e){return e?this.data(t+"_smartmenus",e):this.data(t+"_smartmenus")},t.fn.removeDataSM=function(t){return this.removeData(t+"_smartmenus")},t.fn.smartmenus=function(e){if("string"==typeof e){var i=arguments,n=e;return Array.prototype.shift.call(i),this.each(function(){var e=t(this).data("smartmenus");e&&e[n]&&e[n].apply(e,i)})}var s=t.extend({},t.fn.smartmenus.defaults,e);return this.each(function(){new t.SmartMenus(this,s)})},t.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"prepend",subIndicatorsText:"+",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,e){t.fadeOut(200,e)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,e){t.slideDown(200,e)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,e){t.slideUp(200,e)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,overlapControlsInIE:!0},t});