(function(a,e){window.WiziCore_OnErrorEvent={_errorStack:[],_enable:!0,_domInited:!1,enable:function(a){if(a!=e)this._enable=a;return this._enable},showError:function(){this._domInited?this.callError.apply(this,arguments):this._errorStack.push(arguments)},callError:function(g,k,h){WiziCore_Helper.enableInterface();if(this.enable()){var d=g.message?g.message:g;k&&(d+=" : "+k);h!==e&&(d+="\n<br>Line : "+h);k!=""&&h!=0&&WiziCore_Helper.showError("Uncaught Error",d,404)}WiziCore_Helper.callPrint();if(typeof c==
"function")c(arguments);else if(a)a.error(g),a.dir&&a.dir(g);else throw Error(g);},initOnError:function(){this._domInited=!0;this._errorStack.length=0}};var c=window.onerror;window.onerror=function(){if(WiziCore_Helper.isAndroid()){var a=arguments[0]&&arguments[0].target?arguments[0].target:null;if(a&&a.constructor===HTMLScriptElement&&a.src&&a.src!="")return}navigator.userAgent.search("Firefox")!=-1&&arguments[0]==="Error loading script"||arguments[0]=="Error: INVALID_STATE_ERR"||arguments[0]=="Uncaught Error: INVALID_STATE_ERR"||
arguments[0]!="TypeError: 'undefined' is not a function"&&WiziCore_OnErrorEvent.showError.apply(WiziCore_OnErrorEvent,arguments)}})(window.console);
(function(a,e){function c(n){return f.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}function g(n){if(!ya[n]){var a=t.body,b=f("<"+n+">").appendTo(a),e=b.css("display");b.remove();if(e==="none"||e===""){ga||(ga=t.createElement("iframe"),ga.frameBorder=ga.width=ga.height=0);a.appendChild(ga);if(!na||!ga.createElement)na=(ga.contentWindow||ga.contentDocument).document,na.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),na.close();b=na.createElement(n);na.body.appendChild(b);
e=f.css(b,"display");a.removeChild(ga)}ya[n]=e}return ya[n]}function k(n,a){var b={};f.each(ra.concat.apply([],ra.slice(0,a)),function(){b[this]=n});return b}function h(){sa=e}function d(){setTimeout(h,0);return sa=f.now()}function b(){try{return new a.XMLHttpRequest}catch(n){}}function j(n,a,b,e){if(f.isArray(a))f.each(a,function(a,D){b||Za.test(n)?e(n,D):j(n+"["+(typeof D=="object"?a:"")+"]",D,b,e)});else if(!b&&f.type(a)==="object")for(var d in a)j(n+"["+d+"]",a[d],b,e);else e(n,a)}function l(n,
a){var b,d,c=f.ajaxSettings.flatOptions||{};for(b in a)a[b]!==e&&((c[b]?n:d||(d={}))[b]=a[b]);d&&f.extend(!0,n,d)}function m(n,a,f,b,d,c){d=d||a.dataTypes[0];c=c||{};c[d]=!0;for(var d=n[d],h=0,j=d?d.length:0,g=n===za,l;h<j&&(g||!l);h++)l=d[h](a,f,b),typeof l=="string"&&(!g||c[l]?l=e:(a.dataTypes.unshift(l),l=m(n,a,f,b,l,c)));(g||!l)&&!c["*"]&&(l=m(n,a,f,b,"*",c));return l}function p(n){return function(a,b){typeof a!="string"&&(b=a,a="*");if(f.isFunction(b))for(var e=a.toLowerCase().split(Ia),d=0,
c=e.length,h,j,g;d<c;d++)h=e[d],g=/^\+/.test(h),g&&(h=h.substr(1)||"*"),j=n[h]=n[h]||[],j[g?"unshift":"push"](b)}}function s(n,a,b){var e=a==="width"?n.offsetWidth:n.offsetHeight,d=a==="width"?1:0;if(e>0){if(b!=="border")for(;d<4;d+=2)b||(e-=parseFloat(f.css(n,"padding"+ja[d]))||0),b==="margin"?e+=parseFloat(f.css(n,b+ja[d]))||0:e-=parseFloat(f.css(n,"border"+ja[d]+"Width"))||0;return e+"px"}e=oa(n,a);if(e<0||e==null)e=n.style[a];if(Aa.test(e))return e;e=parseFloat(e)||0;if(b)for(;d<4;d+=2)e+=parseFloat(f.css(n,
"padding"+ja[d]))||0,b!=="padding"&&(e+=parseFloat(f.css(n,"border"+ja[d]+"Width"))||0),b==="margin"&&(e+=parseFloat(f.css(n,b+ja[d]))||0);return e+"px"}function u(n){var a=(n.nodeName||"").toLowerCase();a==="input"?x(n):a!=="script"&&typeof n.getElementsByTagName!="undefined"&&f.grep(n.getElementsByTagName("input"),x)}function x(n){if(n.type==="checkbox"||n.type==="radio")n.defaultChecked=n.checked}function y(n){return typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName("*"):typeof n.querySelectorAll!=
"undefined"?n.querySelectorAll("*"):[]}function r(n,a){var b;a.nodeType===1&&(a.clearAttributes&&a.clearAttributes(),a.mergeAttributes&&a.mergeAttributes(n),b=a.nodeName.toLowerCase(),b==="object"?a.outerHTML=n.outerHTML:b!=="input"||n.type!=="checkbox"&&n.type!=="radio"?b==="option"?a.selected=n.defaultSelected:b==="input"||b==="textarea"?a.defaultValue=n.defaultValue:b==="script"&&a.text!==n.text&&(a.text=n.text):(n.checked&&(a.defaultChecked=a.checked=n.checked),a.value!==n.value&&(a.value=n.value)),
a.removeAttribute(f.expando),a.removeAttribute("_submit_attached"),a.removeAttribute("_change_attached"))}function q(a,D){if(D.nodeType===1&&f.hasData(a)){var b,e,d;e=f._data(a);var c=f._data(D,e),h=e.events;if(h)for(b in delete c.handle,c.events={},h)for(e=0,d=h[b].length;e<d;e++)f.event.add(D,b,h[b][e]);c.data&&(c.data=f.extend({},c.data))}}function B(a){var D=Ja.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;D.length;)a.createElement(D.pop());return a}function U(a,D,b){D=D||0;
if(f.isFunction(D))return f.grep(a,function(a,n){return!!D.call(a,n,a)===b});if(D.nodeType)return f.grep(a,function(a){return a===D===b});if(typeof D=="string"){var e=f.grep(a,function(a){return a.nodeType===1});if(V.test(D))return f.filter(D,e,!b);D=f.filter(D,e)}return f.grep(a,function(a){return f.inArray(a,D)>=0===b})}function J(){return!0}function E(){return!1}function X(a,b,e){var d=b+"defer",c=b+"queue",h=b+"mark",j=f._data(a,d);j&&(e==="queue"||!f._data(a,c))&&(e==="mark"||!f._data(a,h))&&
setTimeout(function(){!f._data(a,c)&&!f._data(a,h)&&(f.removeData(a,d,!0),j.fire())},0)}function M(a){for(var b in a)if(!(b==="data"&&f.isEmptyObject(a[b]))&&b!=="toJSON")return!1;return!0}function Q(a,b,d){if(d===e&&a.nodeType===1)if(d="data-"+b.replace(O,"-$1").toLowerCase(),d=a.getAttribute(d),typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:W.test(d)?f.parseJSON(d):d}catch(c){}f.data(a,b,d)}else d=e;return d}function P(a){var b=R[a]={},f,e,a=a.split(/\s+/);
for(f=0,e=a.length;f<e;f++)b[a[f]]=!0;return b}var t=a.document,z=a.navigator,C=a.location,f=function(){function n(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(a){setTimeout(n,1);return}b.ready()}}var b=function(a,n){return new b.fn.init(a,n,c)},f=a.jQuery,d=a.$,c,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,g=/^\s+/,l=/\s+$/,k=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,w=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
p=/(?:^|:|,)(?:\s*\[)+/g,v=/(webkit)[ \/]([\w.]+)/,r=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,I=/(mozilla)(?:.*? rv:([\w.]+))?/,q=/-([a-z]|[0-9])/ig,x=/^-ms-/,B=function(a,n){return(n+"").toUpperCase()},L=z.userAgent,ta,ua,s,y=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,u=Array.prototype.push,V=Array.prototype.slice,J=String.prototype.trim,S=Array.prototype.indexOf,U={};b.fn=b.prototype={constructor:b,init:function(a,n,f){var d,c,j;if(!a)return this;if(a.nodeType)return this.context=
this[0]=a,this.length=1,this;if(a==="body"&&!n&&t.body)return this.context=t,this[0]=t.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?d=h.exec(a):d=[null,a,null];if(d&&(d[1]||!n)){if(d[1])return n=n instanceof b?n[0]:n,j=n?n.ownerDocument||n:t,c=k.exec(a),c?b.isPlainObject(n)?(a=[t.createElement(c[1])],b.fn.attr.call(a,n,!0)):a=[j.createElement(c[1])]:(c=b.buildFragment([d[1]],[j]),a=(c.cacheable?b.clone(c.fragment):c.fragment).childNodes),
b.merge(this,a);if((n=t.getElementById(d[2]))&&n.parentNode){if(n.id!==d[2])return f.find(a);this.length=1;this[0]=n}this.context=t;this.selector=a;return this}return!n||n.jquery?(n||f).find(a):this.constructor(n).find(a)}if(b.isFunction(a))return f.ready(a);a.selector!==e&&(this.selector=a.selector,this.context=a.context);return b.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return V.call(this,0)},get:function(a){return a==null?this.toArray():
a<0?this[this.length+a]:this[a]},pushStack:function(a,n,f){var e=this.constructor();b.isArray(a)?u.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;n==="find"?e.selector=this.selector+(this.selector?" ":"")+f:n&&(e.selector=this.selector+"."+n+"("+f+")");return e},each:function(a,n){return b.each(this,a,n)},ready:function(a){b.bindReady();ua.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},
slice:function(){return this.pushStack(V.apply(this,arguments),"slice",V.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(n,b){return a.call(n,b,n)}))},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,n,f,d,c,h,j=arguments[0]||{},g=1,da=arguments.length,l=!1;for(typeof j=="boolean"&&(l=j,j=arguments[1]||{},g=2),typeof j!="object"&&!b.isFunction(j)&&
(j={}),da===g&&(j=this,--g);g<da;g++)if((a=arguments[g])!=null)for(n in a)f=j[n],d=a[n],j!==d&&(l&&d&&(b.isPlainObject(d)||(c=b.isArray(d)))?(c?(c=!1,h=f&&b.isArray(f)?f:[]):h=f&&b.isPlainObject(f)?f:{},j[n]=b.extend(l,h,d)):d!==e&&(j[n]=d));return j};b.extend({noConflict:function(n){a.$===b&&(a.$=d);n&&a.jQuery===b&&(a.jQuery=f);return b},isReady:!1,readyWait:1,holdReady:function(a){a?b.readyWait++:b.ready(!0)},ready:function(a){if(a===!0&&!--b.readyWait||a!==!0&&!b.isReady){if(!t.body)return setTimeout(b.ready,
1);b.isReady=!0;a!==!0&&--b.readyWait>0||(ua.fireWith(t,[b]),b.fn.trigger&&b(t).trigger("ready").off("ready"))}},bindReady:function(){if(!ua){ua=b.Callbacks("once memory");if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener)t.addEventListener("DOMContentLoaded",s,!1),a.addEventListener("load",b.ready,!1);else if(t.attachEvent){t.attachEvent("onreadystatechange",s);a.attachEvent("onload",b.ready);var f=!1;try{f=a.frameElement==null}catch(e){}t.documentElement.doScroll&&
f&&n()}}},isFunction:function(a){return b.type(a)==="function"},isArray:Array.isArray||function(a){return b.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):U[y.call(a)]||"object"},isPlainObject:function(a){if(!a||b.type(a)!=="object"||a.nodeType||b.isWindow(a))return!1;try{if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(var f in a);
return f===e||aa.call(a,f)},isEmptyObject:function(a){for(var n in a)return!1;return!0},error:function(a){throw Error(a);},parseJSON:function(n){if(typeof n!="string"||!n)return null;n=b.trim(n);if(a.JSON&&a.JSON.parse)return a.JSON.parse(n);if(w.test(n.replace(o,"@").replace(m,"]").replace(p,"")))return(new Function("return "+n))();b.error("Invalid JSON: "+n)},parseXML:function(n){if(typeof n!="string"||!n)return null;var f,d;try{a.DOMParser?(d=new DOMParser,f=d.parseFromString(n,"text/xml")):(f=
new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(n))}catch(c){f=e}(!f||!f.documentElement||f.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+n);return f},noop:function(){},globalEval:function(n){n&&j.test(n)&&(a.execScript||function(n){a.eval.call(a,n)})(n)},camelCase:function(a){return a.replace(x,"ms-").replace(q,B)},nodeName:function(a,n){return a.nodeName&&a.nodeName.toUpperCase()===n.toUpperCase()},each:function(a,n,f){var d,c=0,j=a.length,h=j===e||b.isFunction(a);
if(f)if(h)for(d in a){if(n.apply(a[d],f)===!1)break}else for(;c<j;){if(n.apply(a[c++],f)===!1)break}else if(h)for(d in a){if(n.call(a[d],d,a[d])===!1)break}else for(;c<j;)if(n.call(a[c],c,a[c++])===!1)break;return a},trim:J?function(a){return a==null?"":J.call(a)}:function(a){return a==null?"":(a+"").replace(g,"").replace(l,"")},makeArray:function(a,n){var f=n||[];if(a!=null){var e=b.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||b.isWindow(a)?u.call(f,a):b.merge(f,a)}return f},
inArray:function(a,n,b){var f;if(n){if(S)return S.call(n,a,b);for(f=n.length,b=b?b<0?Math.max(0,f+b):b:0;b<f;b++)if(b in n&&n[b]===a)return b}return-1},merge:function(a,n){var b=a.length,f=0;if(typeof n.length=="number")for(var D=n.length;f<D;f++)a[b++]=n[f];else for(;n[f]!==e;)a[b++]=n[f++];a.length=b;return a},grep:function(a,n,b){for(var f=[],D,b=!!b,e=0,d=a.length;e<d;e++)D=!!n(a[e],e),b!==D&&f.push(a[e]);return f},map:function(a,n,f){var d,c,j=[],h=0,g=a.length;if(a instanceof b||g!==e&&typeof g==
"number"&&(g>0&&a[0]&&a[g-1]||g===0||b.isArray(a)))for(;h<g;h++)d=n(a[h],h,f),d!=null&&(j[j.length]=d);else for(c in a)d=n(a[c],c,f),d!=null&&(j[j.length]=d);return j.concat.apply([],j)},guid:1,proxy:function(a,n){if(typeof n=="string"){var f=a[n];n=a;a=f}if(!b.isFunction(a))return e;var d=V.call(arguments,2),f=function(){return a.apply(n,d.concat(V.call(arguments)))};f.guid=a.guid=a.guid||f.guid||b.guid++;return f},access:function(a,n,f,d,c,j,h){var g,da=f==null,l=0,T=a.length;if(f&&typeof f=="object"){for(l in f)b.access(a,
n,l,f[l],1,j,d);c=1}else if(d!==e){g=h===e&&b.isFunction(d);da&&(g?(g=n,n=function(a,n,f){return g.call(b(a),f)}):(n.call(a,d),n=null));if(n)for(;l<T;l++)n(a[l],f,g?d.call(a[l],l,n(a[l],f)):d,h);c=1}return c?a:da?n.call(a):T?n(a[0],f):j},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=v.exec(a)||r.exec(a)||A.exec(a)||a.indexOf("compatible")<0&&I.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(n,b){return new a.fn.init(n,b)}b.extend(!0,
a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(f,e){e&&e instanceof b&&!(e instanceof a)&&(e=a(e));return b.fn.init.call(this,f,e,n)};a.fn.init.prototype=a.fn;var n=a(t);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,n){U["[object "+n+"]"]=n.toLowerCase()});ta=b.uaMatch(L);ta.browser&&(b.browser[ta.browser]=!0,b.browser.version=ta.version);b.browser.webkit&&(b.browser.safari=!0);
j.test("\u00a0")&&(g=/^[\s\xA0]+/,l=/[\s\xA0]+$/);c=b(t);t.addEventListener?s=function(){t.removeEventListener("DOMContentLoaded",s,!1);b.ready()}:t.attachEvent&&(s=function(){t.readyState==="complete"&&(t.detachEvent("onreadystatechange",s),b.ready())});return b}(),R={};f.Callbacks=function(a){var a=a?R[a]||P(a):{},b=[],d=[],c,j,h,g,l,k,w=function(e){var d,c,j,h;for(d=0,c=e.length;d<c;d++)j=e[d],h=f.type(j),h==="array"?w(j):h==="function"&&(!a.unique||!m.has(j))&&b.push(j)},o=function(f,e){for(e=
e||[],c=!a.memory||[f,e],j=!0,h=!0,k=g||0,g=0,l=b.length;b&&k<l;k++)if(b[k].apply(f,e)===!1&&a.stopOnFalse){c=!0;break}h=!1;b&&(a.once?c===!0?m.disable():b=[]:d&&d.length&&(c=d.shift(),m.fireWith(c[0],c[1])))},m={add:function(){if(b){var a=b.length;w(arguments);h?l=b.length:c&&c!==!0&&(g=a,o(c[0],c[1]))}return this},remove:function(){if(b)for(var f=arguments,e=0,d=f.length;e<d;e++)for(var c=0;c<b.length;c++)if(f[e]===b[c]&&(h&&c<=l&&(l--,c<=k&&k--),b.splice(c--,1),a.unique))break;return this},has:function(a){if(b)for(var n=
0,f=b.length;n<f;n++)if(a===b[n])return!0;return!1},empty:function(){b=[];return this},disable:function(){b=d=c=e;return this},disabled:function(){return!b},lock:function(){d=e;(!c||c===!0)&&m.disable();return this},locked:function(){return!d},fireWith:function(b,f){d&&(h?a.once||d.push([b,f]):(!a.once||!c)&&o(b,f));return this},fire:function(){m.fireWith(this,arguments);return this},fired:function(){return!!j}};return m};var F=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),
e=f.Callbacks("once memory"),d=f.Callbacks("memory"),c="pending",j={resolve:b,reject:e,notify:d},h={done:b.add,fail:e.add,progress:d.add,state:function(){return c},isResolved:b.fired,isRejected:e.fired,then:function(a,n,b){g.done(a).fail(n).progress(b);return this},always:function(){g.done.apply(g,arguments).fail.apply(g,arguments);return this},pipe:function(a,n,b){return f.Deferred(function(e){f.each({done:[a,"resolve"],fail:[n,"reject"],progress:[b,"notify"]},function(a,n){var b=n[0],d=n[1],D;f.isFunction(b)?
g[a](function(){D=b.apply(this,arguments);D&&f.isFunction(D.promise)?D.promise().then(e.resolve,e.reject,e.notify):e[d+"With"](this===g?e:this,[D])}):g[a](e[d])})}).promise()},promise:function(a){if(a==null)a=h;else for(var n in h)a[n]=h[n];return a}},g=h.promise({}),l;for(l in j)g[l]=j[l].fire,g[l+"With"]=j[l].fireWith;g.done(function(){c="resolved"},e.disable,d.lock).fail(function(){c="rejected"},b.disable,d.lock);a&&a.call(g,g);return g},when:function(a){function b(a){return function(n){h[a]=arguments.length>
1?F.call(arguments,0):n;l.notifyWith(k,h)}}function e(a){return function(n){d[a]=arguments.length>1?F.call(arguments,0):n;--g||l.resolveWith(l,d)}}var d=F.call(arguments,0),c=0,j=d.length,h=Array(j),g=j,l=j<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=l.promise();if(j>1){for(;c<j;c++)d[c]&&d[c].promise&&f.isFunction(d[c].promise)?d[c].promise().then(e(c),l.reject,b(c)):--g;g||l.resolveWith(l,d)}else l!==a&&l.resolveWith(l,j?[a]:[]);return k}});f.support=function(){var n,b,e,d,c,j,h,g,l,k,w,o=t.createElement("div");
o.setAttribute("className","t");o.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=o.getElementsByTagName("*");e=o.getElementsByTagName("a")[0];if(!b||!b.length||!e)return{};d=t.createElement("select");c=d.appendChild(t.createElement("option"));j=o.getElementsByTagName("input")[0];n={leadingWhitespace:o.firstChild.nodeType===3,tbody:!o.getElementsByTagName("tbody").length,htmlSerialize:!!o.getElementsByTagName("link").length,
style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:j.value==="on",optSelected:c.selected,getSetAttribute:o.className!=="t",enctype:!!t.createElement("form").enctype,html5Clone:t.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,
pixelMargin:!0};f.boxModel=n.boxModel=t.compatMode==="CSS1Compat";j.checked=!0;n.noCloneChecked=j.cloneNode(!0).checked;d.disabled=!0;n.optDisabled=!c.disabled;try{delete o.test}catch(m){n.deleteExpando=!1}!o.addEventListener&&o.attachEvent&&o.fireEvent&&(o.attachEvent("onclick",function(){n.noCloneEvent=!1}),o.cloneNode(!0).fireEvent("onclick"));j=t.createElement("input");j.value="t";j.setAttribute("type","radio");n.radioValue=j.value==="t";j.setAttribute("checked","checked");j.setAttribute("name",
"t");o.appendChild(j);h=t.createDocumentFragment();h.appendChild(o.lastChild);n.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked;n.appendChecked=j.checked;h.removeChild(j);h.appendChild(o);if(o.attachEvent)for(k in{submit:1,change:1,focusin:1})l="on"+k,w=l in o,w||(o.setAttribute(l,"return;"),w=typeof o[l]=="function"),n[k+"Bubbles"]=w;h.removeChild(o);h=d=c=o=j=null;f(function(){var b,e,d,D,c,j,h=t.getElementsByTagName("body")[0];!h||(b=t.createElement("div"),b.style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",
h.insertBefore(b,h.firstChild),o=t.createElement("div"),b.appendChild(o),o.innerHTML="<table><tr><td style='padding:0;margin:0;border:0;display:none'></td><td>t</td></tr></table>",g=o.getElementsByTagName("td"),w=g[0].offsetHeight===0,g[0].style.display="",g[1].style.display="none",n.reliableHiddenOffsets=w&&g[0].offsetHeight===0,a.getComputedStyle&&(o.innerHTML="",j=t.createElement("div"),j.style.width="0",j.style.marginRight="0",o.style.width="2px",o.appendChild(j),n.reliableMarginRight=(parseInt((a.getComputedStyle(j,
null)||{marginRight:0}).marginRight,10)||0)===0),typeof o.style.zoom!="undefined"&&(o.innerHTML="",o.style.width=o.style.padding="1px",o.style.border=0,o.style.overflow="hidden",o.style.display="inline",o.style.zoom=1,n.inlineBlockNeedsLayout=o.offsetWidth===3,o.style.display="block",o.style.overflow="visible",o.innerHTML="<div style='width:5px;'></div>",n.shrinkWrapBlocks=o.offsetWidth!==3),o.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",
o.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:5px solid #000;display:block;'><div style='padding:0;margin:0;border:0;display:block;overflow:hidden;'></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:5px solid #000;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",e=o.firstChild,d=e.firstChild,D=e.nextSibling.firstChild.firstChild,c={doesNotAddBorder:d.offsetTop!==5,doesAddBorderForTableAndCells:D.offsetTop===
5},d.style.position="fixed",d.style.top="20px",c.fixedPosition=d.offsetTop===20||d.offsetTop===15,d.style.position=d.style.top="",e.style.overflow="hidden",e.style.position="relative",c.subtractsBorderForOverflowNotVisible=d.offsetTop===-5,c.doesNotIncludeMarginInBodyOffset=h.offsetTop!==1,a.getComputedStyle&&(o.style.marginTop="1%",n.pixelMargin=(a.getComputedStyle(o,null)||{marginTop:0}).marginTop!=="1%"),typeof b.style.zoom!="undefined"&&(b.style.zoom=1),h.removeChild(b),o=null,f.extend(n,c))});
return n}();var W=/^(?:\{.*\}|\[.*\])$/,O=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!M(a)},data:function(a,b,d,c){if(f.acceptData(a)){var j,h,g=f.expando,l=typeof b=="string",k=a.nodeType,w=k?f.cache:a,o=k?a[g]:a[g]&&g,m=b==="events";if(o&&w[o]&&(m||c||w[o].data)||!(l&&d===e)){o||(k?
a[g]=o=++f.uuid:o=g);w[o]||(w[o]={},k||(w[o].toJSON=f.noop));if(typeof b=="object"||typeof b=="function")c?w[o]=f.extend(w[o],b):w[o].data=f.extend(w[o].data,b);a=j=w[o];c||(j.data||(j.data={}),j=j.data);d!==e&&(j[f.camelCase(b)]=d);if(m&&!j[b])return a.events;l?(h=j[b],h==null&&(h=j[f.camelCase(b)])):h=j;return h}}},removeData:function(a,b,e){if(f.acceptData(a)){var d,c,j,h=f.expando,g=a.nodeType,l=g?f.cache:a,k=g?a[h]:h;if(l[k]){if(b&&(d=e?l[k]:l[k].data)){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),
b in d?b=[b]:b=b.split(" ")));for(c=0,j=b.length;c<j;c++)delete d[b[c]];if(!(e?M:f.isEmptyObject)(d))return}if(!e&&(delete l[k].data,!M(l[k])))return;f.support.deleteExpando||!l.setInterval?delete l[k]:l[k]=null;g&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}}},_data:function(a,b,e){return f.data(a,b,e,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}});f.fn.extend({data:function(a,
b){var d,c,j,h,g,l=this[0],k=0,o=null;if(a===e){if(this.length&&(o=f.data(l),l.nodeType===1&&!f._data(l,"parsedAttrs"))){j=l.attributes;for(g=j.length;k<g;k++)h=j[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),Q(l,h,o[h]));f._data(l,"parsedAttrs",!0)}return o}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2);d[1]=d[1]?"."+d[1]:"";c=d[1]+"!";return f.access(this,function(b){if(b===e)return o=this.triggerHandler("getData"+c,[d[0]]),o===e&&l&&(o=f.data(l,
a),o=Q(l,a,o)),o===e&&d[1]?this.data(d[0]):o;d[1]=b;this.each(function(){var e=f(this);e.triggerHandler("setData"+c,d);f.data(this,a,b);e.triggerHandler("changeData"+c,d)})},null,b,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}});f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,e){a!==!0&&(e=b,b=a,a=!1);if(b){var e=e||"fx",d=e+"mark";(a=a?0:(f._data(b,d)||1)-1)?f._data(b,d,a):(f.removeData(b,
d,!0),X(b,e,"mark"))}},queue:function(a,b,e){var d;if(a)return b=(b||"fx")+"queue",d=f._data(a,b),e&&(!d||f.isArray(e)?d=f._data(a,b,f.makeArray(e)):d.push(e)),d||[]},dequeue:function(a,b){var b=b||"fx",e=f.queue(a,b),d=e.shift(),c={};d==="inprogress"&&(d=e.shift());d&&(b==="fx"&&e.unshift("inprogress"),f._data(a,b+".run",c),d.call(a,function(){f.dequeue(a,b)},c));e.length||(f.removeData(a,b+"queue "+b+".run",!0),X(a,b,"queue"))}});f.fn.extend({queue:function(a,b){var d=2;typeof a!="string"&&(b=a,
a="fx",d--);return arguments.length<d?f.queue(this[0],a):b===e?this:this.each(function(){var d=f.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(b,f){var d=setTimeout(b,a);f.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){function d(){--g||c.resolveWith(j,[j])}typeof a!=
"string"&&(b=a,a=e);a=a||"fx";for(var c=f.Deferred(),j=this,h=j.length,g=1,l=a+"defer",k=a+"queue",o=a+"mark",w;h--;)if(w=f.data(j[h],l,e,!0)||(f.data(j[h],k,e,!0)||f.data(j[h],o,e,!0))&&f.data(j[h],l,f.Callbacks("once memory"),!0))g++,w.add(d);d();return c.promise(b)}});var K=/[\n\t\r]/g,G=/\s+/,N=/\r/g,H=/^(?:button|input)$/i,o=/^(?:button|input|object|select|textarea)$/i,v=/^a(?:rea)?$/i,L=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
A=f.support.getSetAttribute,w,I,aa;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=e,delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,c,j,h,g;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});
if(a&&typeof a=="string"){b=a.split(G);for(d=0,e=this.length;d<e;d++)if(c=this[d],c.nodeType===1)if(!c.className&&b.length===1)c.className=a;else{j=" "+c.className+" ";for(h=0,g=b.length;h<g;h++)~j.indexOf(" "+b[h]+" ")||(j+=b[h]+" ");c.className=f.trim(j)}}return this},removeClass:function(a){var b,d,c,j,h,g,l;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===e){b=(a||"").split(G);for(d=0,c=this.length;d<c;d++)if(j=
this[d],j.nodeType===1&&j.className)if(a){h=(" "+j.className+" ").replace(K," ");for(g=0,l=b.length;g<l;g++)h=h.replace(" "+b[g]+" "," ");j.className=f.trim(h)}else j.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b=="boolean";return f.isFunction(a)?this.each(function(d){f(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if(d==="string")for(var c,j=0,h=f(this),g=b,l=a.split(G);c=l[j++];)g=e?g:!h.hasClass(c),h[g?"addClass":"removeClass"](c);else if(d===
"undefined"||d==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,f=this.length;b<f;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(K," ").indexOf(a)>-1)return!0;return!1},val:function(a){var b,d,c,j=this[0];if(arguments.length)return c=f.isFunction(a),this.each(function(d){var j=f(this),h;if(this.nodeType===1&&(c?h=a.call(this,d,j.val()):
h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),b=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()],!b||!("set"in b)||b.set(this,h,"value")===e))this.value=h});if(j){if((b=f.valHooks[j.type]||f.valHooks[j.nodeName.toLowerCase()])&&"get"in b&&(d=b.get(j,"value"))!==e)return d;d=j.value;return typeof d=="string"?d.replace(N,""):d==null?"":d}}});f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?
a.value:a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,c=[],j=a.options,h=a.type==="select-one";if(e<0)return null;for(a=h?e:0,d=h?e+1:j.length;a<d;a++)if(b=j[a],b.selected&&(f.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!f.nodeName(b.parentNode,"optgroup"))){b=f(b).val();if(h)return b;c.push(b)}return h&&!c.length&&j.length?f(j[e]).val():c},set:function(a,b){var d=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),
d)>=0});d.length||(a.selectedIndex=-1);return d}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,d,c){var j,h,g,l=a.nodeType;if(a&&l!==3&&l!==8&&l!==2){if(c&&b in f.attrFn)return f(a)[b](d);if(typeof a.getAttribute=="undefined")return f.prop(a,b,d);g=l!==1||!f.isXMLDoc(a);g&&(b=b.toLowerCase(),h=f.attrHooks[b]||(L.test(b)?I:w));if(d!==e){if(d===null){f.removeAttr(a,b);return}if(h&&"set"in h&&g&&(j=h.set(a,d,b))!==e)return j;a.setAttribute(b,""+d);return d}if(h&&
"get"in h&&g&&(j=h.get(a,b))!==null)return j;j=a.getAttribute(b);return j===null?e:j}},removeAttr:function(a,b){var d,e,c,j,h,g=0;if(b&&a.nodeType===1)for(e=b.toLowerCase().split(G),j=e.length;g<j;g++)c=e[g],c&&(d=f.propFix[c]||c,h=L.test(c),h||f.attr(a,c,""),a.removeAttribute(A?c:d),h&&d in a&&(a[d]=!1))},attrHooks:{type:{set:function(a,b){if(H.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var d=a.value;
a.setAttribute("type",b);d&&(a.value=d);return b}}},value:{get:function(a,b){return w&&f.nodeName(a,"button")?w.get(a,b):b in a?a.value:null},set:function(a,b,d){if(w&&f.nodeName(a,"button"))return w.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,
b,d){var c,j,h,g=a.nodeType;if(a&&g!==3&&g!==8&&g!==2)return h=g!==1||!f.isXMLDoc(a),h&&(b=f.propFix[b]||b,j=f.propHooks[b]),d!==e?j&&"set"in j&&(c=j.set(a,d,b))!==e?c:a[b]=d:j&&"get"in j&&(c=j.get(a,b))!==null?c:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):o.test(a.nodeName)||v.test(a.nodeName)&&a.href?0:e}}}});f.attrHooks.tabindex=f.propHooks.tabIndex;I={get:function(a,b){var d,c=f.prop(a,b);return c===!0||typeof c!="boolean"&&
(d=a.getAttributeNode(b))&&d.nodeValue!==!1?b.toLowerCase():e},set:function(a,b,d){var e;b===!1?f.removeAttr(a,d):(e=f.propFix[d]||d,e in a&&(a[e]=!0),a.setAttribute(d,d.toLowerCase()));return d}};A||(aa={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,b){var f;return(f=a.getAttributeNode(b))&&(aa[b]?f.nodeValue!=="":f.specified)?f.nodeValue:e},set:function(a,b,f){var d=a.getAttributeNode(f);d||(d=t.createAttribute(f),a.setAttributeNode(d));return d.nodeValue=b+""}},f.attrHooks.tabindex.set=
w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,n){if(n==="")return a.setAttribute(b,"auto"),n}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,f){b===""&&(b="false");w.set(a,b,f)}});f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?e:a}})});f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||
e},set:function(a,b){return a.style.cssText=""+b}});f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(){return null}}));f.support.enctype||(f.propFix.enctype="encoding");f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),
b)>=0}})});var S=/^(?:textarea|input|select)$/i,ca=/^([^\.]*)?(?:\.(.+))?$/,ba=/(?:^|\s)hover(\.\S+)?\b/,Z=/^key/,ea=/^(?:mouse|contextmenu)|click/,ia=/^(?:focusinfocus|focusoutblur)$/,ha=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,pa=function(a){(a=ha.exec(a))&&(a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)"));return a},ka=function(a){return f.event.special.hover?a:a.replace(ba,"mouseenter$1 mouseleave$1")};f.event={add:function(a,b,d,c,j){var h,g,l,k,o,w,m,p,v,r;if(!(a.nodeType===
3||a.nodeType===8||!b||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,j=p.selector);d.guid||(d.guid=f.guid++);l=h.events;l||(h.events=l={});g=h.handle;g||(h.handle=g=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(g.elem,arguments):e},g.elem=a);b=f.trim(ka(b)).split(" ");for(h=0;h<b.length;h++){k=ca.exec(b[h])||[];o=k[1];w=(k[2]||"").split(".").sort();r=f.event.special[o]||{};o=(j?r.delegateType:r.bindType)||o;r=f.event.special[o]||{};m=f.extend({type:o,
origType:k[1],data:c,handler:d,guid:d.guid,selector:j,quick:j&&pa(j),namespace:w.join(".")},p);v=l[o];if(!v&&(v=l[o]=[],v.delegateCount=0,!r.setup||r.setup.call(a,c,w,g)===!1))a.addEventListener?a.addEventListener(o,g,!1):a.attachEvent&&a.attachEvent("on"+o,g);r.add&&(r.add.call(a,m),m.handler.guid||(m.handler.guid=d.guid));j?v.splice(v.delegateCount++,0,m):v.push(m);f.event.global[o]=!0}a=null}},global:{},remove:function(a,b,d,e,c){var j=f.hasData(a)&&f._data(a),h,g,l,k,o,w,m,p,v,r,A,I;if(j&&(p=
j.events)){b=f.trim(ka(b||"")).split(" ");for(h=0;h<b.length;h++)if(g=ca.exec(b[h])||[],l=k=g[1],o=g[2],l){v=f.event.special[l]||{};l=(e?v.delegateType:v.bindType)||l;A=p[l]||[];w=A.length;o=o?RegExp("(^|\\.)"+o.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(m=0;m<A.length;m++)I=A[m],(c||k===I.origType)&&(!d||d.guid===I.guid)&&(!o||o.test(I.namespace))&&(!e||e===I.selector||e==="**"&&I.selector)&&(A.splice(m--,1),I.selector&&A.delegateCount--,v.remove&&v.remove.call(a,I));A.length===
0&&w!==A.length&&((!v.teardown||v.teardown.call(a,o)===!1)&&f.removeEvent(a,l,j.handle),delete p[l])}else for(l in p)f.event.remove(a,l+b[h],d,e,!0);f.isEmptyObject(p)&&(r=j.handle,r&&(r.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(b,d,c,j){if(!c||c.nodeType!==3&&c.nodeType!==8){var h=b.type||b,g=[],l,k,o,w,m,p,v;if(!ia.test(h+f.event.triggered)&&(h.indexOf("!")>=0&&(h=h.slice(0,-1),l=!0),h.indexOf(".")>=0&&(g=h.split("."),
h=g.shift(),g.sort()),c&&!f.event.customEvent[h]||f.event.global[h]))if(b=typeof b=="object"?b[f.expando]?b:new f.Event(h,b):new f.Event(h),b.type=h,b.isTrigger=!0,b.exclusive=l,b.namespace=g.join("."),b.namespace_re=b.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,g=h.indexOf(":")<0?"on"+h:"",c){if(b.result=e,b.target||(b.target=c),d=d!=null?f.makeArray(d):[],d.unshift(b),l=f.event.special[h]||{},!(l.trigger&&l.trigger.apply(c,d)===!1)){p=[[c,l.bindType||h]];if(!j&&!l.noBubble&&
!f.isWindow(c)){for(v=l.delegateType||h,o=ia.test(v+h)?c:c.parentNode,w=null;o;o=o.parentNode)p.push([o,v]),w=o;w&&w===c.ownerDocument&&p.push([w.defaultView||w.parentWindow||a,v])}for(k=0;k<p.length&&!b.isPropagationStopped();k++)o=p[k][0],b.type=p[k][1],m=(f._data(o,"events")||{})[b.type]&&f._data(o,"handle"),m&&m.apply(o,d),m=g&&o[g],m&&f.acceptData(o)&&m.apply(o,d)===!1&&b.preventDefault();b.type=h;!j&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(c.ownerDocument,d)===!1)&&(h!=="click"||
!f.nodeName(c,"a"))&&f.acceptData(c)&&g&&c[h]&&(h!=="focus"&&h!=="blur"||b.target.offsetWidth!==0)&&!f.isWindow(c)&&(w=c[g],w&&(c[g]=null),f.event.triggered=h,c[h](),f.event.triggered=e,w&&(c[g]=w));return b.result}}else for(k in c=f.cache,c)c[k].events&&c[k].events[h]&&f.event.trigger(b,d,c[k].handle.elem,!0)}},dispatch:function(b){var b=f.event.fix(b||a.event),d=(f._data(this,"events")||{})[b.type]||[],c=d.delegateCount,h=[].slice.call(arguments,0),j=!b.exclusive&&!b.namespace,g=f.event.special[b.type]||
{},l=[],o,k,w,m,p,v,r,A,I;h[0]=b;b.delegateTarget=this;if(!g.preDispatch||g.preDispatch.call(this,b)!==!1){if(c&&(!b.button||b.type!=="click")){w=f(this);w.context=this.ownerDocument||this;for(k=b.target;k!=this;k=k.parentNode||this)if(k.disabled!==!0){p={};r=[];w[0]=k;for(o=0;o<c;o++){A=d[o];I=A.selector;if(p[I]===e){var q=p,x=I,B;if(A.quick){B=A.quick;var L=k.attributes||{};B=(!B[1]||k.nodeName.toLowerCase()===B[1])&&(!B[2]||(L.id||{}).value===B[2])&&(!B[3]||B[3].test((L["class"]||{}).value))}else B=
w.is(I);q[x]=B}p[I]&&r.push(A)}r.length&&l.push({elem:k,matches:r})}}d.length>c&&l.push({elem:this,matches:d.slice(c)});for(o=0;o<l.length&&!b.isPropagationStopped();o++){v=l[o];b.currentTarget=v.elem;for(d=0;d<v.matches.length&&!b.isImmediatePropagationStopped();d++)if(A=v.matches[d],j||!b.namespace&&!A.namespace||b.namespace_re&&b.namespace_re.test(A.namespace))b.data=A.data,b.handleObj=A,m=((f.event.special[A.origType]||{}).handle||A.handler).apply(v.elem,h),m!==e&&(b.result=m,m===!1&&(b.preventDefault(),
b.stopPropagation()))}g.postDispatch&&g.postDispatch.call(this,b);return b.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter:function(a,b){var f,d,c,h=b.button,j=b.fromElement;a.pageX==null&&b.clientX!=null&&(f=a.target.ownerDocument||t,d=f.documentElement,c=f.body,a.pageX=b.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0));!a.relatedTarget&&j&&(a.relatedTarget=j===a.target?b.toElement:j);!a.which&&h!==e&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var b,
d,c=a,h=f.event.fixHooks[a.type]||{},j=h.props?this.props.concat(h.props):this.props,a=f.Event(c);for(b=j.length;b;)d=j[--b],a[d]=c[d];a.target||(a.target=c.srcElement||t);a.target.nodeType===3&&(a.target=a.target.parentNode);a.metaKey===e&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,c):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,d){f.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,
b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,d,e){a=f.extend(new f.Event,d,{type:a,isSimulated:!0,originalEvent:{}});e?f.event.trigger(a,null,b):f.event.dispatch.call(b,a);a.isDefaultPrevented()&&d.preventDefault()}};f.event.handle=f.event.dispatch;f.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,!1)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,
b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?J:E):this.type=a;b&&f.extend(this,b);this.timeStamp=a&&a.timeStamp||f.now();this[f.expando]=!0};f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;!a||(a.stopPropagation&&
a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var d=a.relatedTarget,n=a.handleObj,e;if(!d||d!==this&&!f.contains(this,d))a.type=n.origType,e=n.handler.apply(this,arguments),a.type=b;return e}}});f.support.submitBubbles||
(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=f.nodeName(a,"input")||f.nodeName(a,"button")?a.form:e)&&!a._submit_attached&&(f.event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),a._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,
"form"))return!1;f.event.remove(this,"._submit")}});f.support.changeBubbles||(f.event.special.change={setup:function(){if(S.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",
function(a){a=a.target;S.test(a.nodeName)&&!a._change_attached&&(f.event.add(a,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return S.test(this.nodeName)}});f.support.focusinBubbles||
f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&t.addEventListener(a,e,!0)},teardown:function(){--d===0&&t.removeEventListener(a,e,!0)}}});f.fn.extend({on:function(a,b,d,c,h){var j,g;if(typeof a=="object"){typeof b!="string"&&(d=d||b,b=e);for(g in a)this.on(g,b,d,a[g],h);return this}d==null&&c==null?(c=b,d=b=e):c==null&&(typeof b=="string"?(c=d,d=e):(c=d,d=b,b=e));if(c===!1)c=
E;else if(!c)return this;h===1&&(j=c,c=function(a){f().off(a);return j.apply(this,arguments)},c.guid=j.guid||(j.guid=f.guid++));return this.each(function(){f.event.add(this,a,c,d,b)})},one:function(a,b,d,f){return this.on(a,b,d,f,1)},off:function(a,b,d){if(a&&a.preventDefault&&a.handleObj){var c=a.handleObj;f(a.delegateTarget).off(c.namespace?c.origType+"."+c.namespace:c.origType,c.selector,c.handler);return this}if(typeof a=="object"){for(c in a)this.off(c,b,a[c]);return this}if(b===!1||typeof b==
"function")d=b,b=e;d===!1&&(d=E);return this.each(function(){f.event.remove(this,a,d,b)})},bind:function(a,b,d){return this.on(a,null,b,d)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,d){f(this.context).on(a,this.selector,b,d);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,d,f){return this.on(b,a,d,f)},undelegate:function(a,b,d){return arguments.length==1?this.off(a,"**"):this.off(b,a,d)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,
b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,d=a.guid||f.guid++,c=0,e=function(d){var e=(f._data(this,"lastToggle"+a.guid)||0)%c;f._data(this,"lastToggle"+a.guid,e+1);d.preventDefault();return b[e].apply(this,arguments)||!1};for(e.guid=d;c<b.length;)b[c++].guid=d;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){f.fn[b]=function(a,d){d==null&&(d=a,a=null);return arguments.length>0?this.on(b,null,a,d):this.trigger(b)};f.attrFn&&(f.attrFn[b]=!0);Z.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks);ea.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)});(function(){function a(b,d,f,e,h,n){for(var h=0,j=e.length;h<j;h++){var g=e[h];if(g){for(var l=!1,g=g[b];g;){if(g[c]===f){l=e[g.sizset];break}if(g.nodeType===1)if(n||(g[c]=f,g.sizset=h),typeof d!="string"){if(g===d){l=!0;break}}else if(m.filter(d,[g]).length>
0){l=g;break}g=g[b]}e[h]=l}}}function b(a,d,f,e,h,n){for(var h=0,j=e.length;h<j;h++){var g=e[h];if(g){for(var l=!1,g=g[a];g;){if(g[c]===f){l=e[g.sizset];break}g.nodeType===1&&!n&&(g[c]=f,g.sizset=h);if(g.nodeName.toLowerCase()===d){l=g;break}g=g[a]}e[h]=l}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c="sizcache"+(Math.random()+"").replace(".",""),h=0,j=Object.prototype.toString,g=!1,l=!0,o=/\\/g,k=/\r\n/g,
w=/\W/;[0,0].sort(function(){l=!1;return 0});var m=function(a,b,f,c){f=f||[];b=b||t;var e=b;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!="string")return f;var h,n,g,l,o,k,w,D=!0,p=m.isXML(b),T=[],A=a;do if(d.exec(""),h=d.exec(A),h&&(A=h[3],T.push(h[1]),h[2])){l=h[3];break}while(h);if(T.length>1&&r.exec(a))if(T.length===2&&v.relative[T[0]])n=s(T[0]+T[1],b,c);else for(n=v.relative[T[0]]?[b]:m(T.shift(),b);T.length;)a=T.shift(),v.relative[a]&&(a+=T.shift()),n=s(a,n,c);else if(!c&&T.length>
1&&b.nodeType===9&&!p&&v.match.ID.test(T[0])&&!v.match.ID.test(T[T.length-1])&&(o=m.find(T.shift(),b,p),b=o.expr?m.filter(o.expr,o.set)[0]:o.set[0]),b)for(o=c?{expr:T.pop(),set:q(c)}:m.find(T.pop(),T.length===1&&(T[0]==="~"||T[0]==="+")&&b.parentNode?b.parentNode:b,p),n=o.expr?m.filter(o.expr,o.set):o.set,T.length>0?g=q(n):D=!1;T.length;)k=T.pop(),w=k,v.relative[k]?w=T.pop():k="",w==null&&(w=b),v.relative[k](g,w,p);else g=[];g||(g=n);g||m.error(k||a);if(j.call(g)==="[object Array]")if(D)if(b&&b.nodeType===
1)for(a=0;g[a]!=null;a++)g[a]&&(g[a]===!0||g[a].nodeType===1&&m.contains(b,g[a]))&&f.push(n[a]);else for(a=0;g[a]!=null;a++)g[a]&&g[a].nodeType===1&&f.push(n[a]);else f.push.apply(f,g);else q(g,f);l&&(m(l,e,f,c),m.uniqueSort(f));return f};m.uniqueSort=function(a){if(B&&(g=l,a.sort(B),g))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};m.matches=function(a,b){return m(a,null,null,b)};m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0};m.find=function(a,b,d){var f,
c,e,h,n,j;if(!a)return[];for(c=0,e=v.order.length;c<e;c++)if(n=v.order[c],h=v.leftMatch[n].exec(a))if(j=h[1],h.splice(1,1),j.substr(j.length-1)!=="\\"&&(h[1]=(h[1]||"").replace(o,""),f=v.find[n](h,b,d),f!=null)){a=a.replace(v.match[n],"");break}f||(f=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:f,expr:a}};m.filter=function(a,b,d,f){for(var c,h,n,j,g,l,o,k,w=a,D=[],p=b,T=b&&b[0]&&m.isXML(b[0]);a&&b.length;){for(n in v.filter)if((c=v.leftMatch[n].exec(a))!=null&&
c[2])if(l=v.filter[n],g=c[1],h=!1,c.splice(1,1),g.substr(g.length-1)!=="\\"){p===D&&(D=[]);if(v.preFilter[n])if(c=v.preFilter[n](c,p,d,D,f,T)){if(c===!0)continue}else h=j=!0;if(c)for(o=0;(g=p[o])!=null;o++)g&&(j=l(g,c,o,p),k=f^j,d&&j!=null?k?h=!0:p[o]=!1:k&&(D.push(g),h=!0));if(j!==e){d||(p=D);a=a.replace(v.match[n],"");if(!h)return[];break}}if(a===w)if(h==null)m.error(a);else break;w=a}return p};m.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};var p=m.getText=function(a){var b,
d;b=a.nodeType;var f="";if(b)if(b===1||b===9||b===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)f+=p(a)}else{if(b===3||b===4)return a.nodeValue}else for(b=0;d=a[b];b++)d.nodeType!==8&&(f+=p(d));return f},v=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},
type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var d=typeof b=="string",f=d&&!w.test(b),d=d&&!f;f&&(b=b.toLowerCase());for(var f=0,c=a.length,e;f<c;f++)if(e=a[f]){for(;(e=e.previousSibling)&&e.nodeType!==1;);a[f]=d||e&&e.nodeName.toLowerCase()===b?e||!1:e===b}d&&m.filter(b,a,!0)},">":function(a,b){var d,f=typeof b=="string",c=0,e=a.length;if(f&&!w.test(b))for(b=b.toLowerCase();c<e;c++){if(d=a[c])d=d.parentNode,a[c]=d.nodeName.toLowerCase()===b?d:!1}else{for(;c<e;c++)d=
a[c],d&&(a[c]=f?d.parentNode:d.parentNode===b);f&&m.filter(b,a,!0)}},"":function(d,f,c){var e,j=h++,g=a;typeof f=="string"&&!w.test(f)&&(f=f.toLowerCase(),e=f,g=b);g("parentNode",f,j,d,e,c)},"~":function(d,f,c){var e,j=h++,g=a;typeof f=="string"&&!w.test(f)&&(f=f.toLowerCase(),e=f,g=b);g("previousSibling",f,j,d,e,c)}},find:{ID:function(a,b,d){if(typeof b.getElementById!="undefined"&&!d)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){for(var d=
[],f=b.getElementsByName(a[1]),c=0,e=f.length;c<e;c++)f[c].getAttribute("name")===a[1]&&d.push(f[c]);return d.length===0?null:d}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,d,f,c,e){a=" "+a[1].replace(o,"")+" ";if(e)return a;for(var e=0,h;(h=b[e])!=null;e++)h&&(c^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?d||f.push(h):d&&(b[e]=!1));return!1},ID:function(a){return a[1].replace(o,
"")},TAG:function(a){return a[1].replace(o,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=h++;return a},ATTR:function(a,b,d,f,c,e){b=a[1]=a[1].replace(o,"");!e&&v.attrMap[b]&&(a[1]=v.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(o,"");a[2]==="~="&&(a[4]=" "+a[4]+
" ");return a},PSEUDO:function(a,b,f,c,e){if(a[1]==="not")if((d.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=m(a[3],null,null,b);else return a=m.filter(a[3],b,f,1^e),f||c.push.apply(c,a),!1;else if(v.match.POS.test(a[0])||v.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===
!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,d){return!!m(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),d=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===d&&(b===d||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()===
"input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},
focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,d,f){return b===f.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,d){return b<d[3]-0},gt:function(a,b,d){return b>d[3]-0},nth:function(a,b,d){return d[3]-0===b},eq:function(a,b,d){return d[3]-0===b}},filter:{PSEUDO:function(a,b,d,f){var c=b[1],e=v.filters[c];if(e)return e(a,d,b,f);if(c==="contains")return(a.textContent||a.innerText||
p([a])||"").indexOf(b[3])>=0;if(c==="not"){b=b[3];d=0;for(f=b.length;d<f;d++)if(b[d]===a)return!1;return!0}m.error(c)},CHILD:function(a,b){var d,f,e,h,n,j;d=b[1];j=a;switch(d){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType===1)return!1;if(d==="first")return!0;j=a;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return!1;return!0;case "nth":d=b[2];f=b[3];if(d===1&&f===0)return!0;e=b[0];h=a.parentNode;if(h&&(h[c]!==e||!a.nodeIndex)){n=0;for(j=h.firstChild;j;j=j.nextSibling)j.nodeType===
1&&(j.nodeIndex=++n);h[c]=e}j=a.nodeIndex-f;return d===0?j===0:j%d===0&&j/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var d=b[1],d=m.attr?m.attr(a,d):v.attrHandle[d]?v.attrHandle[d](a):a[d]!=null?a[d]:a.getAttribute(d),f=d+"",c=b[2],e=b[4];return d==null?c==="!=":!c&&m.attr?
d!=null:c==="="?f===e:c==="*="?f.indexOf(e)>=0:c==="~="?(" "+f+" ").indexOf(e)>=0:e?c==="!="?f!==e:c==="^="?f.indexOf(e)===0:c==="$="?f.substr(f.length-e.length)===e:c==="|="?f===e||f.substr(0,e.length+1)===e+"-":!1:f&&d!==!1},POS:function(a,b,d,f){var c=v.setFilters[b[2]];if(c)return c(a,d,b,f)}}},r=v.match.POS,A=function(a,b){return"\\"+(b-0+1)},I;for(I in v.match)v.match[I]=RegExp(v.match[I].source+/(?![^\[]*\])(?![^\(]*\))/.source),v.leftMatch[I]=RegExp(/(^(?:.|\r|\n)*?)/.source+v.match[I].source.replace(/\\(\d+)/g,
A));v.match.globalPOS=r;var q=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(x){q=function(a,b){var d=0,f=b||[];if(j.call(a)==="[object Array]")Array.prototype.push.apply(f,a);else if(typeof a.length=="number")for(var c=a.length;d<c;d++)f.push(a[d]);else for(;a[d];d++)f.push(a[d]);return f}}var B,L;t.documentElement.compareDocumentPosition?B=function(a,b){return a===b?(g=!0,0):!a.compareDocumentPosition||
!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(B=function(a,b){if(a===b)return g=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var d,f,c=[],e=[];d=a.parentNode;f=b.parentNode;var h=d;if(d===f)return L(a,b);if(!d)return-1;if(!f)return 1;for(;h;)c.unshift(h),h=h.parentNode;for(h=f;h;)e.unshift(h),h=h.parentNode;d=c.length;f=e.length;for(h=0;h<d&&h<f;h++)if(c[h]!==e[h])return L(c[h],e[h]);return h===d?L(a,e[h],-1):L(c[h],b,1)},
L=function(a,b,d){if(a===b)return d;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});(function(){var a=t.createElement("div"),b="script"+(new Date).getTime(),d=t.documentElement;a.innerHTML="<a name='"+b+"'/>";d.insertBefore(a,d.firstChild);t.getElementById(b)&&(v.find.ID=function(a,b,d){if(typeof b.getElementById!="undefined"&&!d)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:e:[]},v.filter.ID=
function(a,b){var d=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&d&&d.nodeValue===b});d.removeChild(a);d=a=null})();(function(){var a=t.createElement("div");a.appendChild(t.createComment(""));a.getElementsByTagName("*").length>0&&(v.find.TAG=function(a,b){var d=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var f=[],c=0;d[c];c++)d[c].nodeType===1&&f.push(d[c]);d=f}return d});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!=
"undefined"&&a.firstChild.getAttribute("href")!=="#"&&(v.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();t.querySelectorAll&&function(){var a=m,b=t.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,d,f,c){d=d||t;if(!c&&!m.isXML(d)){var e=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(e&&(d.nodeType===1||d.nodeType===9)){if(e[1])return q(d.getElementsByTagName(b),f);if(e[2]&&v.find.CLASS&&d.getElementsByClassName)return q(d.getElementsByClassName(e[2]),
f)}if(d.nodeType===9){if(b==="body"&&d.body)return q([d.body],f);if(e&&e[3]){var h=d.getElementById(e[3]);if(!h||!h.parentNode)return q([],f);if(h.id===e[3])return q([h],f)}try{return q(d.querySelectorAll(b),f)}catch(n){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var e=d,j=(h=d.getAttribute("id"))||"__sizzle__",g=d.parentNode,l=/^\s*[+~]/.test(b);h?j=j.replace(/'/g,"\\$&"):d.setAttribute("id",j);l&&g&&(d=d.parentNode);try{if(!l||g)return q(d.querySelectorAll("[id='"+j+"'] "+b),
f)}catch(o){}finally{h||e.removeAttribute("id")}}}return a(b,d,f,c)};for(var d in a)m[d]=a[d];b=null}}();(function(){var a=t.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(t.createElement("div"),"div"),f=!1;try{b.call(t.documentElement,"[test!='']:sizzle")}catch(c){f=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(f||!v.match.PSEUDO.test(c)&&!/!=/.test(c)){var e=b.call(a,
c);if(e||!d||a.document&&a.document.nodeType!==11)return e}}catch(h){}return m(c,null,null,[a]).length>0}}})();(function(){var a=t.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))v.order.splice(1,0,"CLASS"),v.find.CLASS=function(a,b,d){if(typeof b.getElementsByClassName!="undefined"&&!d)return b.getElementsByClassName(a[1])},
a=null})();t.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:t.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1};m.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var s=function(a,b,d){for(var f,c=[],e="",b=b.nodeType?[b]:b;f=v.match.PSEUDO.exec(a);)e+=f[0],a=a.replace(v.match.PSEUDO,"");a=v.relative[a]?a+"*":a;f=0;for(var h=
b.length;f<h;f++)m(a,b[f],c,d);return m.filter(e,c)};m.attr=f.attr;m.selectors.attrMap={};f.find=m;f.expr=m.selectors;f.expr[":"]=f.expr.filters;f.unique=m.uniqueSort;f.text=m.getText;f.isXMLDoc=m.isXML;f.contains=m.contains})();var Y=/Until$/,va=/^(?:parents|prevUntil|prevAll)/,Ba=/,/,V=/^.[^:#\[\.,]*$/,Ca=Array.prototype.slice,Ka=f.expr.match.globalPOS,$a={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,d,c;if(typeof a!="string")return f(a).filter(function(){for(d=
0,c=b.length;d<c;d++)if(f.contains(b[d],this))return!0});var e=this.pushStack("","find",a),h,j,g;for(d=0,c=this.length;d<c;d++)if(h=e.length,f.find(a,this[d],e),d>0)for(j=h;j<e.length;j++)for(g=0;g<h;g++)if(e[g]===e[j]){e.splice(j--,1);break}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,d=b.length;a<d;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(U(this,a,!1),"not",a)},filter:function(a){return this.pushStack(U(this,a,!0),"filter",
a)},is:function(a){return!!a&&(typeof a=="string"?Ka.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],c,e,h=this[0];if(f.isArray(a)){for(e=1;h&&h.ownerDocument&&h!==b;){for(c=0;c<a.length;c++)f(h).is(a[c])&&d.push({selector:a[c],elem:h,level:e});h=h.parentNode;e++}return d}var j=Ka.test(a)||typeof a!="string"?f(a,b||this.context):0;for(c=0,e=this.length;c<e;c++)for(h=this[c];h;){if(j?j.index(h)>-1:f.find.matchesSelector(h,
a)){d.push(h);break}h=h.parentNode;if(!h||!h.ownerDocument||h===b||h.nodeType===11)break}d=d.length>1?f.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a=="string"?f.inArray(this[0],f(a)):f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),c=f.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!c[0]||
!c[0].parentNode||c[0].parentNode.nodeType===11?c:f.unique(c))},andSelf:function(){return this.add(this.prevObject)}});f.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,d){return f.dir(a,"parentNode",d)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},
nextUntil:function(a,b,d){return f.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return f.dir(a,"previousSibling",d)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(d,c){var e=f.map(this,b,d);Y.test(a)||(c=d);c&&typeof c=="string"&&(e=f.filter(c,e));e=this.length>1&&
!$a[a]?f.unique(e):e;(this.length>1||Ba.test(c))&&va.test(a)&&(e=e.reverse());return this.pushStack(e,a,Ca.call(arguments).join(","))}});f.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,b,d){for(var c=[],a=a[b];a&&a.nodeType!==9&&(d===e||a.nodeType!==1||!f(a).is(d));)a.nodeType===1&&c.push(a),a=a[b];return c},nth:function(a,b,d){for(var b=b||1,f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},
sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ab=/ jQuery\d+="(?:\d+|null)"/g,Da=/^\s+/,La=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ma=/<([\w:]+)/,bb=/<tbody/i,cb=/<|&#?\w+;/,db=/<(?:script|style)/i,eb=/<(?:script|object|embed|option|style)/i,Na=RegExp("<(?:"+
Ja+")[\\s/>]","i"),Oa=/checked\s*(?:[^=]|=\s*.checked.)/i,Pa=/\/(java|ecma)script/i,fb=/^\s*<!(?:\[CDATA\[|\-\-)/,fa={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,"",""]},Ea=B(t);fa.optgroup=fa.option;fa.tbody=fa.tfoot=fa.colgroup=
fa.caption=fa.thead;fa.th=fa.td;f.support.htmlSerialize||(fa._default=[1,"div<div>","</div>"]);f.fn.extend({text:function(a){return f.access(this,function(a){return a===e?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=
this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return f.isFunction(a)?this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=f(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(d){f(this).wrapAll(b?a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var d=0,c;(c=this[d])!=null;d++)if(!a||f.filter(a,[c]).length)!b&&c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),f.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===
1&&f.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?!1:a;b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var b=this[0]||{},d=0,c=this.length;if(a===e)return b.nodeType===1?b.innerHTML.replace(ab,""):null;if(typeof a=="string"&&!db.test(a)&&(f.support.leadingWhitespace||!Da.test(a))&&!fa[(Ma.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(La,"<$1></$2>");
try{for(;d<c;d++)b=this[d]||{},b.nodeType===1&&(f.cleanData(b.getElementsByTagName("*")),b.innerHTML=a);b=0}catch(h){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var d=f(this),c=d.html();d.replaceWith(a.call(this,b,c))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;f(this).remove();b?f(b).before(a):f(d).append(a)})}return this.length?
this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,d){var c,h,j,g,l=a[0],o=[];if(!f.support.checkClone&&arguments.length===3&&typeof l=="string"&&Oa.test(l))return this.each(function(){f(this).domManip(a,b,d,!0)});if(f.isFunction(l))return this.each(function(c){var h=f(this);a[0]=l.call(this,c,b?h.html():e);h.domManip(a,b,d)});if(this[0]){g=l&&l.parentNode;f.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===
this.length?c={fragment:g}:c=f.buildFragment(a,this,o);j=c.fragment;j.childNodes.length===1?h=j=j.firstChild:h=j.firstChild;if(h){b=b&&f.nodeName(h,"tr");h=0;g=this.length;for(var k=g-1;h<g;h++)d.call(b?f.nodeName(this[h],"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h]:this[h],c.cacheable||g>1&&h<k?f.clone(j,!0,!0):j)}o.length&&f.each(o,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):
f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(fb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)})}return this}});f.buildFragment=function(a,b,d){var c,e,h,j,g=a[0];b&&b[0]&&(j=b[0].ownerDocument||b[0]);j.createDocumentFragment||(j=t);a.length===1&&typeof g=="string"&&g.length<512&&j===t&&g.charAt(0)==="<"&&!eb.test(g)&&(f.support.checkClone||!Oa.test(g))&&(f.support.html5Clone||!Na.test(g))&&(e=!0,h=f.fragments[g],h&&h!==1&&(c=h));c||(c=j.createDocumentFragment(),f.clean(a,j,
c,d));e&&(f.fragments[g]=h?c:1);return{fragment:c,cacheable:e}};f.fragments={};f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(d){var c=[],d=f(d),e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1)return d[b](this[0]),this;for(var e=0,h=d.length;e<h;e++){var j=(e>0?this.clone(!0):this).get();f(d[e])[b](j);c=c.concat(j)}return this.pushStack(c,a,d.selector)}});
f.extend({clone:function(a,b,d){var c,e,h;f.support.html5Clone||f.isXMLDoc(a)||!Na.test("<"+a.nodeName+">")?c=a.cloneNode(!0):(c=t.createElement("div"),Ea.appendChild(c),c.innerHTML=a.outerHTML,c=c.firstChild);var j=c;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){r(a,j);c=y(a);e=y(j);for(h=0;c[h];++h)e[h]&&r(c[h],e[h])}if(b&&(q(a,j),d)){c=y(a);e=y(j);for(h=0;c[h];++h)q(c[h],e[h])}return j},clean:function(a,b,d,c){var e,h=[];b=b||t;typeof b.createElement==
"undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||t);for(var j=0,g;(g=a[j])!=null;j++)if(typeof g=="number"&&(g+=""),g){if(typeof g=="string")if(cb.test(g)){g=g.replace(La,"<$1></$2>");e=(Ma.exec(g)||["",""])[1].toLowerCase();var l=fa[e]||fa._default,o=l[0],k=b.createElement("div"),w=Ea.childNodes,m;for(b===t?Ea.appendChild(k):B(b).appendChild(k),k.innerHTML=l[1]+g+l[2];o--;)k=k.lastChild;if(!f.support.tbody){o=bb.test(g);l=e==="table"&&!o?k.firstChild&&k.firstChild.childNodes:l[1]==="<table>"&&
!o?k.childNodes:[];for(e=l.length-1;e>=0;--e)f.nodeName(l[e],"tbody")&&!l[e].childNodes.length&&l[e].parentNode.removeChild(l[e])}!f.support.leadingWhitespace&&Da.test(g)&&k.insertBefore(b.createTextNode(Da.exec(g)[0]),k.firstChild);g=k.childNodes;k&&(k.parentNode.removeChild(k),w.length>0&&(m=w[w.length-1],m&&m.parentNode&&m.parentNode.removeChild(m)))}else g=b.createTextNode(g);var v;if(!f.support.appendChecked)if(g[0]&&typeof(v=g.length)=="number")for(e=0;e<v;e++)u(g[e]);else u(g);g.nodeType?h.push(g):
h=f.merge(h,g)}if(d){a=function(a){return!a.type||Pa.test(a.type)};for(j=0;h[j];j++)b=h[j],c&&f.nodeName(b,"script")&&(!b.type||Pa.test(b.type))?c.push(b.parentNode?b.parentNode.removeChild(b):b):(b.nodeType===1&&(g=f.grep(b.getElementsByTagName("script"),a),h.splice.apply(h,[j+1,0].concat(g))),d.appendChild(b))}return h},cleanData:function(a){for(var b,d,c=f.cache,e=f.event.special,h=f.support.deleteExpando,j=0,g;(g=a[j])!=null;j++)if(!g.nodeName||!f.noData[g.nodeName.toLowerCase()])if(d=g[f.expando]){if((b=
c[d])&&b.events){for(var l in b.events)e[l]?f.event.remove(g,l):f.removeEvent(g,l,b.handle);b.handle&&(b.handle.elem=null)}h?delete g[f.expando]:g.removeAttribute&&g.removeAttribute(f.expando);delete c[d]}}});var Fa=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/([A-Z]|^ms)/g,ib=/^[\-+]?(?:\d*\.)?\d+$/i,Aa=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,jb=/^([\-+])=([\-+.\de]+)/,kb=/^margin/,lb={position:"absolute",visibility:"hidden",display:"block"},ja=["Top","Right","Bottom","Left"],oa,Qa,Ra;f.fn.css=function(a,
b){return f.access(this,function(a,b,d){return d!==e?f.style(a,b,d):f.css(a,b)},a,b,arguments.length>1)};f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=oa(a,"opacity");return d===""?"1":d}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,c){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var h,j,g=f.camelCase(b),l=a.style,o=
f.cssHooks[g],b=f.cssProps[g]||g;if(d===e)return o&&"get"in o&&(h=o.get(a,!1,c))!==e?h:l[b];j=typeof d;j==="string"&&(h=jb.exec(d))&&(d=+(h[1]+1)*+h[2]+parseFloat(f.css(a,b)),j="number");if(!(d==null||j==="number"&&isNaN(d)))if(j==="number"&&!f.cssNumber[g]&&(d+="px"),!o||!("set"in o)||(d=o.set(a,d))!==e)try{l[b]=d}catch(k){}}},css:function(a,b,d){var c,h;b=f.camelCase(b);h=f.cssHooks[b];b=f.cssProps[b]||b;b==="cssFloat"&&(b="float");if(h&&"get"in h&&(c=h.get(a,!0,d))!==e)return c;if(oa)return oa(a,
b)},swap:function(a,b,d){var f={},c;for(c in b)f[c]=a.style[c],a.style[c]=b[c];d=d.call(a);for(c in b)a.style[c]=f[c];return d}});f.curCSS=f.css;t.defaultView&&t.defaultView.getComputedStyle&&(Qa=function(a,b){var d,c,e,h,j=a.style;b=b.replace(hb,"-$1").toLowerCase();(c=a.ownerDocument.defaultView)&&(e=c.getComputedStyle(a,null))&&(d=e.getPropertyValue(b),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,b)));!f.support.pixelMargin&&e&&kb.test(b)&&Aa.test(d)&&(h=j.width,j.width=
d,d=e.width,j.width=h);return d});t.documentElement.currentStyle&&(Ra=function(a,b){var d,f,c,e=a.currentStyle&&a.currentStyle[b],h=a.style;e==null&&h&&(c=h[b])&&(e=c);Aa.test(e)&&(d=h.left,f=a.runtimeStyle&&a.runtimeStyle.left,f&&(a.runtimeStyle.left=a.currentStyle.left),h.left=b==="fontSize"?"1em":e,e=h.pixelLeft+"px",h.left=d,f&&(a.runtimeStyle.left=f));return e===""?"auto":e});oa=Qa||Ra;f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,d,c){if(d)return a.offsetWidth!==0?s(a,
b,c):f.swap(a,lb,function(){return s(a,b,c)})},set:function(a,b){return ib.test(b)?b+"px":b}}});f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,c=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",h=c&&c.filter||d.filter||"";d.zoom=1;if(b>=1&&f.trim(h.replace(Fa,""))===""&&(d.removeAttribute("filter"),c&&!c.filter))return;d.filter=
Fa.test(h)?h.replace(Fa,e):h+" "+e}});f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?oa(a,"margin-right"):a.style.marginRight})}})});f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});
f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(d){for(var c=typeof d=="string"?d.split(" "):[d],f={},d=0;d<4;d++)f[a+ja[d]+b]=c[d]||c[d-2]||c[0];return f}}});var mb=/%20/g,Za=/\[\]$/,Sa=/\r?\n/g,nb=/#.*$/,ob=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,pb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,Ta=/\?/,sb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,tb=
/^(?:select|textarea)/i,Ia=/\s+/,ub=/([?&])_=[^&]*/,Ua=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Va=f.fn.load,za={},Wa={},la,ma,Xa=["*/"]+["*"];try{la=C.href}catch(Ab){la=t.createElement("a"),la.href="",la=la.href}ma=Ua.exec(la.toLowerCase())||[];f.fn.extend({load:function(a,b,d){if(typeof a!="string"&&Va)return Va.apply(this,arguments);if(!this.length)return this;var c=a.indexOf(" ");if(c>=0)var h=a.slice(c,a.length),a=a.slice(0,c);c="GET";b&&(f.isFunction(b)?(d=b,b=e):typeof b=="object"&&
(b=f.param(b,f.ajaxSettings.traditional),c="POST"));var j=this;f.ajax({url:a,type:c,dataType:"html",data:b,complete:function(a,b,c){c=a.responseText;a.isResolved()&&(a.done(function(a){c=a}),j.html(h?f("<div>").append(c.replace(sb,"")).find(h):c));d&&j.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&
(this.checked||tb.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=f(this).val();return d==null?null:f.isArray(d)?f.map(d,function(a){return{name:b.name,value:a.replace(Sa,"\r\n")}}):{name:b.name,value:d.replace(Sa,"\r\n")}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}});f.each(["get","post"],function(a,b){f[b]=function(a,d,c,h){f.isFunction(d)&&(h=h||c,c=d,d=e);return f.ajax({type:b,
url:a,data:d,success:c,dataType:h})}});f.extend({getScript:function(a,b){return f.get(a,e,b,"script")},getJSON:function(a,b,d){return f.get(a,b,d,"json")},ajaxSetup:function(a,b){b?l(a,f.ajaxSettings):(b=a,a=f.ajaxSettings);l(a,b);return a},ajaxSettings:{url:la,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ma[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",
text:"text/plain",json:"application/json, text/javascript","*":Xa},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:p(za),ajaxTransport:p(Wa),ajax:function(a,b){function d(a,b,w,n){if(B!==2){B=2;I&&clearTimeout(I);A=e;p=n||"";s.readyState=a>0?4:0;var m,v,r,n=b;if(w){var q=c,L=s,y=q.contents,D=q.dataTypes,aa=q.responseFields,
u,V,t,J;for(V in aa)V in w&&(L[aa[V]]=w[V]);for(;D[0]==="*";)D.shift(),u===e&&(u=q.mimeType||L.getResponseHeader("content-type"));if(u)for(V in y)if(y[V]&&y[V].test(u)){D.unshift(V);break}if(D[0]in w)t=D[0];else{for(V in w){if(!D[0]||q.converters[V+" "+D[0]]){t=V;break}J||(J=V)}t=t||J}t?(t!==D[0]&&D.unshift(t),w=w[t]):w=void 0}else w=e;if(a>=200&&a<300||a===304){if(c.ifModified){if(u=s.getResponseHeader("Last-Modified"))f.lastModified[k]=u;if(u=s.getResponseHeader("Etag"))f.etag[k]=u}if(a===304)n=
"notmodified",m=!0;else try{u=c;u.dataFilter&&(w=u.dataFilter(w,u.dataType));var S=u.dataTypes;V={};var U,E,z=S.length,N,ba=S[0],H,ca,C,da,Z;for(U=1;U<z;U++){if(U===1)for(E in u.converters)typeof E=="string"&&(V[E.toLowerCase()]=u.converters[E]);H=ba;ba=S[U];if(ba==="*")ba=H;else if(H!=="*"&&H!==ba){ca=H+" "+ba;C=V[ca]||V["* "+ba];if(!C)for(da in Z=e,V)if(N=da.split(" "),N[0]===H||N[0]==="*")if(Z=V[N[1]+" "+ba]){da=V[da];da===!0?C=Z:Z===!0&&(C=da);break}!C&&!Z&&f.error("No conversion from "+ca.replace(" ",
" to "));C!==!0&&(w=C?C(w):Z(da(w)))}}v=w;n="success";m=!0}catch(pa){n="parsererror",r=pa}}else if(r=n,!n||a)n="error",a<0&&(a=0);s.status=a;s.statusText=""+(b||n);m?g.resolveWith(h,[v,n,s]):g.rejectWith(h,[s,n,r]);s.statusCode(o);o=e;x&&j.trigger("ajax"+(m?"Success":"Error"),[s,c,m?v:r]);l.fireWith(h,[s,n]);x&&(j.trigger("ajaxComplete",[s,c]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(b=a,a=e);b=b||{};var c=f.ajaxSetup({},b),h=c.context||c,j=h!==c&&(h.nodeType||h instanceof f)?
f(h):f.event,g=f.Deferred(),l=f.Callbacks("once memory"),o=c.statusCode||{},k,w={},v={},p,r,A,I,q,B=0,x,L,s={readyState:0,setRequestHeader:function(a,b){if(!B){var d=a.toLowerCase();a=v[d]=v[d]||a;w[a]=b}return this},getAllResponseHeaders:function(){return B===2?p:null},getResponseHeader:function(a){var b;if(B===2){if(!r)for(r={};b=ob.exec(p);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return b===e?null:b},overrideMimeType:function(a){B||(c.mimeType=a);return this},abort:function(a){a=a||"abort";
A&&A.abort(a);d(0,a);return this}};g.promise(s);s.success=s.done;s.error=s.fail;s.complete=l.add;s.statusCode=function(a){if(a){var b;if(B<2)for(b in a)o[b]=[o[b],a[b]];else b=a[s.status],s.then(b,b)}return this};c.url=((a||c.url)+"").replace(nb,"").replace(rb,ma[1]+"//");c.dataTypes=f.trim(c.dataType||"*").toLowerCase().split(Ia);c.crossDomain==null&&(q=Ua.exec(c.url.toLowerCase()),c.crossDomain=!(!q||q[1]==ma[1]&&q[2]==ma[2]&&(q[3]||(q[1]==="http:"?80:443))==(ma[3]||(ma[1]==="http:"?80:443))));
c.data&&c.processData&&typeof c.data!="string"&&(c.data=f.param(c.data,c.traditional));m(za,c,b,s);if(B===2)return!1;x=c.global;c.type=c.type.toUpperCase();c.hasContent=!qb.test(c.type);x&&f.active++===0&&f.event.trigger("ajaxStart");if(!c.hasContent&&(c.data&&(c.url+=(Ta.test(c.url)?"&":"?")+c.data,delete c.data),k=c.url,c.cache===!1)){q=f.now();var y=c.url.replace(ub,"$1_="+q);c.url=y+(y===c.url?(Ta.test(c.url)?"&":"?")+"_="+q:"")}(c.data&&c.hasContent&&c.contentType!==!1||b.contentType)&&s.setRequestHeader("Content-Type",
c.contentType);c.ifModified&&(k=k||c.url,f.lastModified[k]&&s.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&s.setRequestHeader("If-None-Match",f.etag[k]));s.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Xa+"; q=0.01":""):c.accepts["*"]);for(L in c.headers)s.setRequestHeader(L,c.headers[L]);if(c.beforeSend&&(c.beforeSend.call(h,s,c)===!1||B===2))return s.abort(),!1;for(L in{success:1,error:1,complete:1})s[L](c[L]);
if(A=m(Wa,c,b,s)){s.readyState=1;x&&j.trigger("ajaxSend",[s,c]);c.async&&c.timeout>0&&(I=setTimeout(function(){s.abort("timeout")},c.timeout));try{B=1,A.send(w,d)}catch(aa){if(B<2)d(-1,aa);else throw aa;}}else d(-1,"No Transport");return s},param:function(a,b){var d=[],c=function(a,b){b=f.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===e&&(b=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){c(this.name,this.value)});
else for(var h in a)j(h,a[h],b,c);return d.join("&").replace(mb,"+")}});f.extend({active:0,lastModified:{},etag:{}});var vb=f.now(),wa=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+vb++}});f.ajaxPrefilter("json jsonp",function(b,d,c){d=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(wa.test(b.url)||d&&wa.test(b.data))){var e,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?
b.jsonpCallback():b.jsonpCallback,j=a[h],g=b.url,l=b.data,o="$1"+h+"$2";b.jsonp!==!1&&(g=g.replace(wa,o),b.url===g&&(d&&(l=l.replace(wa,o)),b.data===l&&(g+=(/\?/.test(g)?"&":"?")+b.jsonp+"="+h)));b.url=g;b.data=l;a[h]=function(a){e=[a]};c.always(function(){a[h]=j;e&&f.isFunction(j)&&a[h](e[0])});b.converters["script json"]=function(){e||f.error(h+" was not called");return e[0]};b.dataTypes[0]="json";return"script"}});f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}});f.ajaxPrefilter("script",function(a){a.cache===e&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});f.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=t.head||t.getElementsByTagName("head")[0]||t.documentElement;return{send:function(c,f){b=t.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,
c){if(c||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,d&&b.parentNode&&d.removeChild(b),b=e,c||f(200,"success")};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Ga=a.ActiveXObject?function(){for(var a in qa)qa[a](0,1)}:!1,wb=0,qa;f.ajaxSettings.xhr=a.ActiveXObject?function(){var d;if(!(d=!this.isLocal&&b()))a:{try{d=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}d=void 0}return d}:b;(function(a){f.extend(f.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(f.ajaxSettings.xhr());f.support.ajax&&f.ajaxTransport(function(b){if(!b.crossDomain||f.support.cors){var d;return{send:function(c,h){var j=b.xhr(),g,l;b.username?j.open(b.type,b.url,b.async,b.username,b.password):j.open(b.type,b.url,b.async);if(b.xhrFields)for(l in b.xhrFields)j[l]=b.xhrFields[l];b.mimeType&&j.overrideMimeType&&j.overrideMimeType(b.mimeType);!b.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");try{for(l in c)j.setRequestHeader(l,
c[l])}catch(o){}j.send(b.hasContent&&b.data||null);d=function(a,c){var l,o,k,w,m;try{if(d&&(c||j.readyState===4))if(d=e,g&&(j.onreadystatechange=f.noop,Ga&&delete qa[g]),c)j.readyState!==4&&j.abort();else{l=j.status;k=j.getAllResponseHeaders();w={};m=j.responseXML;m&&m.documentElement&&(w.xml=m);try{w.text=j.responseText}catch(v){}try{o=j.statusText}catch(p){o=""}!l&&b.isLocal&&!b.crossDomain?l=w.text?200:404:l===1223&&(l=204)}}catch(r){c||h(-1,r)}w&&h(l,o,w,k)};!b.async||j.readyState===4?d():(g=
++wb,Ga&&(qa||(qa={},f(a).unload(Ga)),qa[g]=d),j.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ya={},ga,na,xb=/^(?:toggle|show|hide)$/,yb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,xa,ra=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],sa;f.fn.extend({show:function(a,b,d){var c,e;if(a||a===0)return this.animate(k("show",3),a,b,d);a=0;for(b=this.length;a<b;a++)c=this[a],c.style&&(e=c.style.display,
!f._data(c,"olddisplay")&&e==="none"&&(e=c.style.display=""),(e===""&&f.css(c,"display")==="none"||!f.contains(c.ownerDocument.documentElement,c))&&f._data(c,"olddisplay",g(c.nodeName)));for(a=0;a<b;a++)if(c=this[a],c.style&&(e=c.style.display,e===""||e==="none"))c.style.display=f._data(c,"olddisplay")||"";return this},hide:function(a,b,d){if(a||a===0)return this.animate(k("hide",3),a,b,d);for(var c,e,a=0,b=this.length;a<b;a++)c=this[a],c.style&&(e=f.css(c,"display"),e!=="none"&&!f._data(c,"olddisplay")&&
f._data(c,"olddisplay",e));for(a=0;a<b;a++)this[a].style&&(this[a].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,d){var c=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var b=c?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(k("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,c)},animate:function(a,
b,d,c){function e(){var n;h.queue===!1&&f._mark(this);var b=f.extend({},h),d=this.nodeType===1,c=d&&f(this).is(":hidden"),j,l,o,k,w,m,v,p,r,A,I;b.animatedProperties={};for(o in a)if(j=f.camelCase(o),o!==j&&(a[j]=a[o],delete a[o]),(w=f.cssHooks[j])&&"expand"in w)for(o in m=w.expand(a[j]),delete a[j],m)o in a||(a[o]=m[o]);for(j in a){l=a[j];f.isArray(l)?(b.animatedProperties[j]=l[1],n=a[j]=l[0],l=n):b.animatedProperties[j]=b.specialEasing&&b.specialEasing[j]||b.easing||"swing";if(l==="hide"&&c||l===
"show"&&!c)return b.complete.call(this);d&&(j==="height"||j==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||g(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(o in a)k=new f.fx(this,b,o),l=a[o],xb.test(l)?(I=f._data(this,"toggle"+o)||(l==="toggle"?c?"show":"hide":0),I?(f._data(this,
"toggle"+o,I==="show"?"hide":"show"),k[I]()):k[l]()):(v=yb.exec(l),p=k.cur(),v?(r=parseFloat(v[2]),A=v[3]||(f.cssNumber[o]?"":"px"),A!=="px"&&(f.style(this,o,(r||1)+A),p*=(r||1)/k.cur(),f.style(this,o,p+A)),v[1]&&(r=(v[1]==="-="?-1:1)*r+p),k.custom(p,r,A)):k.custom(p,l,""));return!0}var h=f.speed(b,d,c);if(f.isEmptyObject(a))return this.each(h.complete,[!1]);a=f.extend({},a);return h.queue===!1?this.each(e):this.queue(h.queue,e)},stop:function(a,b,d){typeof a!="string"&&(d=b,b=a,a=e);b&&a!==!1&&this.queue(a||
"fx",[]);return this.each(function(){function b(a,c,e){c=c[e];f.removeData(a,e,!0);c.stop(d)}var c,e=!1,h=f.timers,j=f._data(this);d||f._unmark(!0,this);if(a==null)for(c in j)j[c]&&j[c].stop&&c.indexOf(".run")===c.length-4&&b(this,j,c);else j[c=a+".run"]&&j[c].stop&&b(this,j,c);for(c=h.length;c--;)h[c].elem===this&&(a==null||h[c].queue===a)&&(d?h[c](!0):h[c].saveState(),e=!0,h.splice(c,1));(!d||!e)&&f.dequeue(this,a)})}});f.each({slideDown:k("show",1),slideUp:k("hide",1),slideToggle:k("toggle",1),
fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,d,c){return this.animate(b,a,d,c)}});f.extend({speed:function(a,b,d){var c=a&&typeof a=="object"?f.extend({},a):{complete:d||!d&&b||f.isFunction(a)&&a,duration:a,easing:d&&b||b&&!f.isFunction(b)&&b};c.duration=f.fx.off?0:typeof c.duration=="number"?c.duration:c.duration in f.fx.speeds?f.fx.speeds[c.duration]:f.fx.speeds._default;if(c.queue==null||c.queue===!0)c.queue="fx";c.old=c.complete;
c.complete=function(a){f.isFunction(c.old)&&c.old.call(this);c.queue?f.dequeue(this,c.queue):a!==!1&&f._unmark(this)};return c},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+0.5}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;b.orig=b.orig||{}}});f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&
(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return j.step(a)}var j=this,g=f.fx;this.startTime=sa||d();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px");h.queue=this.options.queue;h.elem=this.elem;h.saveState=function(){f._data(j.elem,"fxshow"+j.prop)===e&&(j.options.hide?f._data(j.elem,
"fxshow"+j.prop,j.start):j.options.show&&f._data(j.elem,"fxshow"+j.prop,j.end))};h()&&f.timers.push(h)&&!xa&&(xa=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop);this.options.show=!0;a!==e?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,
this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b,c,e,h=sa||d(),j=!0,g=this.elem,l=this.options;if(a||h>=l.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();l.animatedProperties[this.prop]=!0;for(b in l.animatedProperties)l.animatedProperties[b]!==!0&&(j=!1);if(j){l.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){g.style["overflow"+b]=l.overflow[a]});l.hide&&f(g).hide();if(l.hide||l.show)for(b in l.animatedProperties)f.style(g,
b,l.orig[b]),f.removeData(g,"fxshow"+b,!0),f.removeData(g,"toggle"+b,!0);e=l.complete;e&&(l.complete=!1,e.call(g))}return!1}l.duration==Infinity?this.now=h:(c=h-this.startTime,this.state=c/l.duration,this.pos=f.easing[l.animatedProperties[this.prop]](this.state,c,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};f.extend(f.fx,{tick:function(){for(var a,b=f.timers,d=0;d<b.length;d++)a=b[d],!a()&&b[d]===a&&b.splice(d--,1);b.length||f.fx.stop()},interval:13,
stop:function(){clearInterval(xa);xa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});f.each(ra.concat.apply([],ra),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})});f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===
b.elem}).length});var Ha,zb=/^t(?:able|d|h)$/i,Ya=/^(?:body|html)$/i;"getBoundingClientRect"in t.documentElement?Ha=function(a,b,d,e){try{e=a.getBoundingClientRect()}catch(h){}if(!e||!f.contains(d,a))return e?{top:e.top,left:e.left}:{top:0,left:0};a=b.body;b=c(b);return{top:e.top+(b.pageYOffset||f.support.boxModel&&d.scrollTop||a.scrollTop)-(d.clientTop||a.clientTop||0),left:e.left+(b.pageXOffset||f.support.boxModel&&d.scrollLeft||a.scrollLeft)-(d.clientLeft||a.clientLeft||0)}}:Ha=function(a,b,d){for(var c,
e=a.offsetParent,h=b.body,j=(b=b.defaultView)?b.getComputedStyle(a,null):a.currentStyle,g=a.offsetTop,l=a.offsetLeft;(a=a.parentNode)&&a!==h&&a!==d;){if(f.support.fixedPosition&&j.position==="fixed")break;c=b?b.getComputedStyle(a,null):a.currentStyle;g-=a.scrollTop;l-=a.scrollLeft;a===e&&(g+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!zb.test(a.nodeName))&&(g+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0),e=a.offsetParent);
f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(g+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0);j=c}if(j.position==="relative"||j.position==="static")g+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(g+=Math.max(d.scrollTop,h.scrollTop),l+=Math.max(d.scrollLeft,h.scrollLeft));return{top:g,left:l}};f.fn.offset=function(a){if(arguments.length)return a===e?this:this.each(function(b){f.offset.setOffset(this,a,b)});var b=this[0],
d=b&&b.ownerDocument;return!d?null:b===d.body?f.offset.bodyOffset(b):Ha(b,d,d.documentElement)};f.offset={bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,d+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var c=f.css(a,"position");c==="static"&&(a.style.position="relative");var e=f(a),h=e.offset(),j=f.css(a,"top"),g=f.css(a,"left"),l={},o={},k,w;(c==="absolute"||c==="fixed")&&
f.inArray("auto",[j,g])>-1?(o=e.position(),k=o.top,w=o.left):(k=parseFloat(j)||0,w=parseFloat(g)||0);f.isFunction(b)&&(b=b.call(a,d,h));b.top!=null&&(l.top=b.top-h.top+k);b.left!=null&&(l.left=b.left-h.left+w);"using"in b?b.using.call(a,l):e.css(l)}};f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),c=Ya.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(f.css(a,"marginTop"))||0;d.left-=parseFloat(f.css(a,"marginLeft"))||0;c.top+=
parseFloat(f.css(b[0],"borderTopWidth"))||0;c.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ya.test(a.nodeName)&&f.css(a,"position")==="static";)a=a.offsetParent;return a})}});f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var d=/Y/.test(b);f.fn[a]=function(h){return f.access(this,function(a,h,j){var g=c(a);if(j===e)return g?b in g?g[b]:
f.support.boxModel&&g.document.documentElement[h]||g.document.body[h]:a[h];g?g.scrollTo(d?f(g).scrollLeft():j,d?j:f(g).scrollTop()):a[h]=j},a,h,arguments.length,null)}});f.each({Height:"height",Width:"width"},function(a,b){var d="client"+a,c="scroll"+a,h="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,b,"padding")):this[b]():null};f.fn["outer"+a]=function(a){var d=this[0];return d?d.style?parseFloat(f.css(d,b,a?"margin":"border")):this[b]():null};f.fn[b]=function(a){return f.access(this,
function(a,b,j){var g,l;if(f.isWindow(a))return g=a.document,l=g.documentElement[d],f.support.boxModel&&l||g.body&&g.body[d]||l;if(a.nodeType===9)return g=a.documentElement,g[d]>=g[c]?g[d]:Math.max(a.body[c],g[c],a.body[h],g[h]);if(j===e)return l=f.css(a,b),g=parseFloat(l),f.isNumeric(g)?g:l;f(a).css(b,j)},b,a,arguments.length,null)}});a.jQuery=a.$=f;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
(function(a,e){function c(d,b){var c,e,h,k=d.nodeName.toLowerCase();return"area"===k?(c=d.parentNode,e=c.name,!d.href||!e||c.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+e+"]")[0],!!h&&g(h))):(/input|select|textarea|button|object/.test(k)?!d.disabled:"a"===k?d.href||b:b)&&g(d)}function g(d){return a.expr.filters.visible(d)&&!a(d).parents().andSelf().filter(function(){return a.css(this,"visibility")==="hidden"}).length}var k=0,h=/^ui-id-\d+$/;a.ui=a.ui||{};if(!a.ui.version)a.extend(a.ui,{version:"1.9.2",
keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,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,SPACE:32,TAB:9,UP:38}}),a.fn.extend({_focus:a.fn.focus,focus:function(d,b){return typeof d=="number"?this.each(function(){var c=this;setTimeout(function(){a(c).focus();b&&b.call(c)},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;return a.ui.ie&&
/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?d=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):d=this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!d.length?a(document):d},zIndex:function(d){if(d!==
e)return this.css("zIndex",d);if(this.length)for(var d=a(this[0]),b;d.length&&d[0]!==document;){b=d.css("position");if(b==="absolute"||b==="relative"||b==="fixed")if(b=parseInt(d.css("zIndex"),10),!isNaN(b)&&b!==0)return b;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++k)})},removeUniqueId:function(){return this.each(function(){h.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(d){return function(b){return!!a.data(b,
d)}}):function(d,b,c){return!!a.data(d,c[3])},focusable:function(d){return c(d,!isNaN(a.attr(d,"tabindex")))},tabbable:function(d){var b=a.attr(d,"tabindex"),e=isNaN(b);return(e||b>=0)&&c(d,!e)}}),a(function(){var d=document.body,b=d.appendChild(b=document.createElement("div"));a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=b.offsetHeight===100;a.support.selectstart="onselectstart"in b;d.removeChild(b).style.display="none"}),a("<a>").outerWidth(1).jquery||
a.each(["Width","Height"],function(d,b){function c(b,d,e,j){return a.each(h,function(){d-=parseFloat(a.css(b,"padding"+this))||0;e&&(d-=parseFloat(a.css(b,"border"+this+"Width"))||0);j&&(d-=parseFloat(a.css(b,"margin"+this))||0)}),d}var h=b==="Width"?["Left","Right"]:["Top","Bottom"],g=b.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+b]=function(d){return d===e?k["inner"+b].call(this):this.each(function(){a(this).css(g,
c(this,d)+"px")})};a.fn["outer"+b]=function(d,e){return typeof d!="number"?k["outer"+b].call(this,d):this.each(function(){a(this).css(g,c(this,d,!0,e)+"px")})}}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(d){return function(b){return arguments.length?d.call(this,a.camelCase(b)):d.call(this)}}(a.fn.removeData)),function(){var d=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];a.ui.ie=d.length?!0:!1;a.ui.ie6=parseFloat(d[1],10)===6}(),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?
"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(d,b,c){var e,d=a.ui[d].prototype;for(e in c)d.plugins[e]=d.plugins[e]||[],d.plugins[e].push([b,c[e]])},call:function(a,b,c){var e=a.plugins[b];if(e&&a.element[0].parentNode&&a.element[0].parentNode.nodeType!==11)for(b=0;b<e.length;b++)a.options[e[b][0]]&&e[b][1].apply(a.element,c)}},contains:a.contains,hasScroll:function(d,
b){if(a(d).css("overflow")==="hidden")return!1;var c=b&&b==="left"?"scrollLeft":"scrollTop",e;return d[c]>0?!0:(d[c]=1,e=d[c]>0,d[c]=0,!1)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(d,b,c,e,h,g){return a.ui.isOverAxis(d,c,h)&&a.ui.isOverAxis(b,e,g)}})})(jQuery);
(function(a,e){var c=0,g=Array.prototype.slice,k=a.cleanData;a.cleanData=function(c){for(var d=0,b;(b=c[d])!=null;d++)try{a(b).triggerHandler("remove")}catch(e){}k(c)};a.widget=function(c,d,b){var e,g,k,p,s=c.split(".")[0];c=c.split(".")[1];e=s+"-"+c;b||(b=d,d=a.Widget);a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)};a[s]=a[s]||{};g=a[s][c];k=a[s][c]=function(a,b){if(!this._createWidget)return new k(a,b);arguments.length&&this._createWidget(a,b)};a.extend(k,g,{version:b.version,_proto:a.extend({},
b),_childConstructors:[]});p=new d;p.options=a.widget.extend({},p.options);a.each(b,function(c,e){a.isFunction(e)&&(b[c]=function(){var a=function(){return d.prototype[c].apply(this,arguments)},b=function(a){return d.prototype[c].apply(this,a)};return function(){var d=this._super,c=this._superApply,h;return this._super=a,this._superApply=b,h=e.apply(this,arguments),this._super=d,this._superApply=c,h}}())});k.prototype=a.widget.extend(p,{widgetEventPrefix:g?p.widgetEventPrefix:c},b,{constructor:k,
namespace:s,widgetName:c,widgetBaseClass:e,widgetFullName:e});g?(a.each(g._childConstructors,function(b,d){var c=d.prototype;a.widget(c.namespace+"."+c.widgetName,k,d._proto)}),delete g._childConstructors):d._childConstructors.push(k);a.widget.bridge(c,k)};a.widget.extend=function(c){for(var d=g.call(arguments,1),b=0,j=d.length,l,k;b<j;b++)for(l in d[b])k=d[b][l],d[b].hasOwnProperty(l)&&k!==e&&(a.isPlainObject(k)?c[l]=a.isPlainObject(c[l])?a.widget.extend({},c[l],k):a.widget.extend({},k):c[l]=k);
return c};a.widget.bridge=function(c,d){var b=d.prototype.widgetFullName||c;a.fn[c]=function(j){var l=typeof j=="string",k=g.call(arguments,1),p=this;return j=!l&&k.length?a.widget.extend.apply(null,[j].concat(k)):j,l?this.each(function(){var d,g=a.data(this,b);if(!g)return a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+j+"'");if(!a.isFunction(g[j])||j.charAt(0)==="_")return a.error("no such method '"+j+"' for "+c+" widget instance");d=g[j].apply(g,k);if(d!==
g&&d!==e)return p=d&&d.jquery?p.pushStack(d.get()):d,!1}):this.each(function(){var c=a.data(this,b);c?c.option(j||{})._init():a.data(this,b,new d(j,this))}),p}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,d){d=a(d||this.defaultElement||this)[0];this.element=a(d);this.uuid=c++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},
this.options,this._getCreateOptions(),e);this.bindings=a();this.hoverable=a();this.focusable=a();d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,
_create:a.noop,_init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},
option:function(c,d){var b=c,j,g,k;if(arguments.length===0)return a.widget.extend({},this.options);if(typeof c=="string")if(b={},j=c.split("."),c=j.shift(),j.length){g=b[c]=a.widget.extend({},this.options[c]);for(k=0;k<j.length-1;k++)g[j[k]]=g[j[k]]||{},g=g[j[k]];c=j.pop();if(d===e)return g[c]===e?null:g[c];g[c]=d}else{if(d===e)return this.options[c]===e?null:this.options[c];b[c]=d}return this._setOptions(b),this},_setOptions:function(a){for(var d in a)this._setOption(d,a[d]);return this},_setOption:function(a,
d){return this.options[a]=d,a==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!d).attr("aria-disabled",d),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(c,d,b){var e,g=this;typeof c!="boolean"&&(b=d,d=c,c=!1);b?(d=e=a(d),this.bindings=this.bindings.add(d)):(b=d,d=this.element,e=
this.widget());a.each(b,function(b,k){function s(){return!c&&(g.options.disabled===!0||a(this).hasClass("ui-state-disabled"))?void 0:(typeof k=="string"?g[k]:k).apply(g,arguments)}typeof k!="string"&&(s.guid=k.guid=k.guid||s.guid||a.guid++);var u=b.match(/^(\w+)\s*(.*)$/),x=u[1]+g.eventNamespace;(u=u[2])?e.delegate(u,x,s):d.bind(x,s)})},_off:function(a,d){d=(d||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(d).undelegate(d)},_delay:function(a,d){var b=this;return setTimeout(function(){return(typeof a==
"string"?b[a]:a).apply(b,arguments)},d||0)},_hoverable:function(c){this.hoverable=this.hoverable.add(c);this._on(c,{mouseenter:function(d){a(d.currentTarget).addClass("ui-state-hover")},mouseleave:function(d){a(d.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(c){this.focusable=this.focusable.add(c);this._on(c,{focusin:function(d){a(d.currentTarget).addClass("ui-state-focus")},focusout:function(d){a(d.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(c,d,b){var e,
g=this.options[c];b=b||{};d=a.Event(d);d.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();d.target=this.element[0];c=d.originalEvent;if(c)for(e in c)e in d||(d[e]=c[e]);return this.element.trigger(d,b),!(a.isFunction(g)&&g.apply(this.element[0],[d].concat(b))===!1||d.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(c,d){a.Widget.prototype["_"+c]=function(b,e,g){typeof e=="string"&&(e={effect:e});var k,p=e?e===!0||typeof e=="number"?d:e.effect||d:c;e=
e||{};typeof e=="number"&&(e={duration:e});k=!a.isEmptyObject(e);e.complete=g;e.delay&&b.delay(e.delay);k&&a.effects&&(a.effects.effect[p]||a.uiBackCompat!==!1&&a.effects[p])?b[c](e):p!==c&&b[p]?b[p](e.duration,e.easing,g):b.queue(function(d){a(this)[c]();g&&g.call(b[0]);d()})}});a.uiBackCompat!==!1&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})})(jQuery);
(function(a){var e=!1;a(document).mouseup(function(){e=!1});var c=this._supportTouch=!/hp-tablet/gi.test(navigator.appVersion)&&"ontouchstart"in window&&"ontouchend"in window&&"ontouchmove"in window,g=c?"touchstart.":"mousedown.",k=c?"touchend.":"mouseup.",h=c?"touchmove.":"mousemove.";a.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind(g+this.widgetName,function(a){return d._mouseDown(a)}).bind("click."+
this.widgetName,function(b){if(!0===a.data(b.target,d.widgetName+".preventClickEvent"))return a.removeData(b.target,d.widgetName+".preventClickEvent"),b.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&a(document).unbind(h+this.widgetName,this._mouseMoveDelegate).unbind(k+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(d){if(!e){this._mouseStarted&&this._mouseUp(d);this._mouseDownEvent=d;var b=this,
g=c?!0:d.which==1,l=typeof this.options.cancel==="string"&&d.target.nodeName?a(d.target).closest(this.options.cancel).length:!1;if(!g||l||!this._mouseCapture(d))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==!1,!this._mouseStarted))return d.preventDefault(),!0;!0===a.data(d.target,this.widgetName+
".preventClickEvent")&&a.removeData(d.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return b._mouseMove(a)};this._mouseUpDelegate=function(a){return b._mouseUp(a)};a(document).bind(h+this.widgetName,this._mouseMoveDelegate).bind(k+this.widgetName,this._mouseUpDelegate);d.preventDefault();return e=!0}},_mouseMove:function(d){if(a.ui.ie&&!(document.documentMode>=9)&&!d.button)return this._mouseUp(d);if(this._mouseStarted)return this._mouseDrag(d),d.preventDefault();
if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,d)!==!1)?this._mouseDrag(d):this._mouseUp(d);return!this._mouseStarted},_mouseUp:function(d){a(document).unbind(h+this.widgetName,this._mouseMoveDelegate).unbind(k+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=!1,d.target===this._mouseDownEvent.target&&a.data(d.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(d);return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(a){var e,c,g,k,h=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},d=function(b){var d=b.name,c=b.form,e=a([]);return d&&(c?e=a(c).find("[name='"+d+"']"):e=a("[name='"+d+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.9.2",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+
this.eventNamespace,h);typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var b=this,j=this.options,l=this.type==="checkbox"||this.type==="radio",m=l?"":"ui-state-active";j.label===null&&(j.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html());this._hoverable(this.buttonElement);this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role",
"button").bind("mouseenter"+this.eventNamespace,function(){j.disabled||this===e&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){j.disabled||a(this).removeClass(m)}).bind("click"+this.eventNamespace,function(a){j.disabled&&(a.preventDefault(),a.stopImmediatePropagation())});this.element.bind("focus"+this.eventNamespace,function(){b.buttonElement.addClass("ui-state-focus")}).bind("blur"+this.eventNamespace,function(){b.buttonElement.removeClass("ui-state-focus")});
l&&(this.element.bind("change"+this.eventNamespace,function(){k||b.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){if(!j.disabled)k=!1,c=a.pageX,g=a.pageY}).bind("mouseup"+this.eventNamespace,function(a){if(!j.disabled&&(c!==a.pageX||g!==a.pageY))k=!0}));this.type==="checkbox"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(j.disabled||k)return!1;a(this).toggleClass("ui-state-active");b.buttonElement.attr("aria-pressed",b.element[0].checked)}):this.type===
"radio"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(j.disabled||k)return!1;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed","true");var c=b.element[0];d(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(j.disabled)return!1;a(this).addClass("ui-state-active");e=this;b.document.one("mouseup",function(){e=null})}).bind("mouseup"+
this.eventNamespace,function(){if(j.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){if(j.disabled)return!1;(b.keyCode===a.ui.keyCode.SPACE||b.keyCode===a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()}));this._setOption("disabled",j.disabled);
this._resetButton()},_determineButtonType:function(){var a,d,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";this.type==="checkbox"||this.type==="radio"?(a=this.element.parents().last(),d="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(d),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(d),this.buttonElement.length||
(this.buttonElement=a.find(d))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,d){this._super(a,d);a==="disabled"?d?this.element.prop("disabled",!0):this.element.prop("disabled",!1):this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b);this.type==="radio"?d(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
"true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
d=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),c=this.options.icons,e=c.primary&&c.secondary,h=[];c.primary||c.secondary?(this.options.text&&h.push("ui-button-text-icon"+(e?"s":c.primary?"-primary":"-secondary")),c.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+c.primary+"'></span>"),c.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+c.secondary+"'></span>"),this.options.text||(h.push(e?"ui-button-icons-only":
"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(d)))):h.push("ui-button-text-only");b.addClass(h.join(" "))}}});a.widget("ui.buttonset",{version:"1.9.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,d){a==="disabled"&&this.buttons.button("option",a,d);this._super(a,d)},refresh:function(){var b=
this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);
(function(a,e){function c(a,b,d){return[parseInt(a[0],10)*(s.test(a[0])?b/100:1),parseInt(a[1],10)*(s.test(a[1])?d/100:1)]}function g(b,d){return parseInt(a.css(b,d),10)||0}a.ui=a.ui||{};var k,h=Math.max,d=Math.abs,b=Math.round,j=/left|center|right/,l=/top|center|bottom/,m=/[\+\-]\d+%?/,p=/^\w+/,s=/%$/,u=a.fn.position;a.position={scrollbarWidth:function(){if(k!==e)return k;var b,d,c=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),
h=c.children()[0];return a("body").append(c),b=h.offsetWidth,c.css("overflow","scroll"),d=h.offsetWidth,b===d&&(d=c[0].clientWidth),c.remove(),k=b-d},getScrollInfo:function(b){var d=b.isWindow?"":b.element.css("overflow-x"),c=b.isWindow?"":b.element.css("overflow-y"),c=c==="scroll"||c==="auto"&&b.height<b.element[0].scrollHeight;return{width:d==="scroll"||d==="auto"&&b.width<b.element[0].scrollWidth?a.position.scrollbarWidth():0,height:c?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var b=
a(b||window),d=a.isWindow(b[0]);return{element:b,isWindow:d,offset:b.offset()||{left:0,top:0},scrollLeft:b.scrollLeft(),scrollTop:b.scrollTop(),width:d?b.width():b.outerWidth(),height:d?b.height():b.outerHeight()}}};a.fn.position=function(e){if(!e||!e.of)return u.apply(this,arguments);var e=a.extend({},e),k,r,q,B,s,J=a(e.of),E=a.position.getWithinInfo(e.within),X=a.position.getScrollInfo(E),M=J[0],Q=(e.collision||"flip").split(" "),P={};return M.nodeType===9?(r=J.width(),q=J.height(),B={top:0,left:0}):
a.isWindow(M)?(r=J.width(),q=J.height(),B={top:J.scrollTop(),left:J.scrollLeft()}):M.preventDefault?(e.at="left top",r=q=0,B={top:M.pageY,left:M.pageX}):(r=J.outerWidth(),q=J.outerHeight(),B=J.offset()),s=a.extend({},B),a.each(["my","at"],function(){var a=(e[this]||"").split(" "),b,d;a.length===1&&(a=j.test(a[0])?a.concat(["center"]):l.test(a[0])?["center"].concat(a):["center","center"]);a[0]=j.test(a[0])?a[0]:"center";a[1]=l.test(a[1])?a[1]:"center";b=m.exec(a[0]);d=m.exec(a[1]);P[this]=[b?b[0]:
0,d?d[0]:0];e[this]=[p.exec(a[0])[0],p.exec(a[1])[0]]}),Q.length===1&&(Q[1]=Q[0]),e.at[0]==="right"?s.left+=r:e.at[0]==="center"&&(s.left+=r/2),e.at[1]==="bottom"?s.top+=q:e.at[1]==="center"&&(s.top+=q/2),k=c(P.at,r,q),s.left+=k[0],s.top+=k[1],this.each(function(){var j,l,m=a(this),f=m.outerWidth(),p=m.outerHeight(),u=g(this,"marginLeft"),M=g(this,"marginTop"),O=f+u+g(this,"marginRight")+X.width,K=p+M+g(this,"marginBottom")+X.height,G=a.extend({},s),N=c(P.my,m.outerWidth(),m.outerHeight());e.my[0]===
"right"?G.left-=f:e.my[0]==="center"&&(G.left-=f/2);e.my[1]==="bottom"?G.top-=p:e.my[1]==="center"&&(G.top-=p/2);G.left+=N[0];G.top+=N[1];a.support.offsetFractions||(G.left=b(G.left),G.top=b(G.top));j={marginLeft:u,marginTop:M};a.each(["left","top"],function(b,d){a.ui.position[Q[b]]&&a.ui.position[Q[b]][d](G,{targetWidth:r,targetHeight:q,elemWidth:f,elemHeight:p,collisionPosition:j,collisionWidth:O,collisionHeight:K,offset:[k[0]+N[0],k[1]+N[1]],my:e.my,at:e.at,within:E,elem:m})});a.fn.bgiframe&&m.bgiframe();
e.using&&(l=function(a){var b=B.left-G.left,c=b+r-f,g=B.top-G.top,j=g+q-p,l={target:{element:J,left:B.left,top:B.top,width:r,height:q},element:{element:m,left:G.left,top:G.top,width:f,height:p},horizontal:c<0?"left":b>0?"right":"center",vertical:j<0?"top":g>0?"bottom":"middle"};r<f&&d(b+c)<r&&(l.horizontal="center");q<p&&d(g+j)<q&&(l.vertical="middle");h(d(b),d(c))>h(d(g),d(j))?l.important="horizontal":l.important="vertical";e.using.call(this,a,l)});m.offset(a.extend(G,{using:l}))})};a.ui.position=
{fit:{left:function(a,b){var d=b.within,c=d.isWindow?d.scrollLeft:d.offset.left,d=d.width,e=a.left-b.collisionPosition.marginLeft,g=c-e,j=e+b.collisionWidth-d-c,l;b.collisionWidth>d?g>0&&j<=0?(l=a.left+g+b.collisionWidth-d-c,a.left+=g-l):j>0&&g<=0?a.left=c:g>j?a.left=c+d-b.collisionWidth:a.left=c:g>0?a.left+=g:j>0?a.left-=j:a.left=h(a.left-e,a.left)},top:function(a,b){var d=b.within,d=d.isWindow?d.scrollTop:d.offset.top,c=b.within.height,e=a.top-b.collisionPosition.marginTop,g=d-e,j=e+b.collisionHeight-
c-d,l;b.collisionHeight>c?g>0&&j<=0?(l=a.top+g+b.collisionHeight-c-d,a.top+=g-l):j>0&&g<=0?a.top=d:g>j?a.top=d+c-b.collisionHeight:a.top=d:g>0?a.top+=g:j>0?a.top-=j:a.top=h(a.top-e,a.top)}},flip:{left:function(a,b){var c=b.within,e=c.offset.left+c.scrollLeft,h=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,j=a.left-b.collisionPosition.marginLeft,c=j-g,l=j+b.collisionWidth-h-g,j=b.my[0]==="left"?-b.elemWidth:b.my[0]==="right"?b.elemWidth:0,k=b.at[0]==="left"?b.targetWidth:b.at[0]==="right"?-b.targetWidth:
0,m=-2*b.offset[0];if(c<0){if(e=a.left+j+k+m+b.collisionWidth-h-e,e<0||e<d(c))a.left+=j+k+m}else if(l>0&&(e=a.left-b.collisionPosition.marginLeft+j+k+m-g,e>0||d(e)<l))a.left+=j+k+m},top:function(a,b){var c=b.within,e=c.offset.top+c.scrollTop,h=c.height,c=c.isWindow?c.scrollTop:c.offset.top,g=a.top-b.collisionPosition.marginTop,j=g-c,g=g+b.collisionHeight-h-c,l=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,k=b.at[1]==="top"?b.targetHeight:b.at[1]==="bottom"?-b.targetHeight:0,m=-2*
b.offset[1],p,s;j<0?(s=a.top+l+k+m+b.collisionHeight-h-e,a.top+l+k+m>j&&(s<0||s<d(j))&&(a.top+=l+k+m)):g>0&&(p=a.top-b.collisionPosition.marginTop+l+k+m-c,a.top+l+k+m>g&&(p>0||d(p)<g)&&(a.top+=l+k+m))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments);a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments);a.ui.position.fit.top.apply(this,arguments)}}};(function(){var b,d,c,e,h,g=document.getElementsByTagName("body")[0],j=document.createElement("div");
b=document.createElement(g?"div":"body");c={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};g&&a.extend(c,{position:"absolute",left:"-1000px",top:"-1000px"});for(h in c)b.style[h]=c[h];b.appendChild(j);d=g||document.documentElement;d.insertBefore(b,d.firstChild);j.style.cssText="position: absolute; left: 10.7432222px;";e=a(j).offset().left;a.support.offsetFractions=e>10&&e<11;b.innerHTML="";d.removeChild(b)})();a.uiBackCompat!==!1&&function(a){var b=a.fn.position;a.fn.position=
function(d){if(!d||!d.offset)return b.call(this,d);var c=d.offset.split(" "),h=d.at.split(" ");return c.length===1&&(c[1]=c[0]),/^\d/.test(c[0])&&(c[0]="+"+c[0]),/^\d/.test(c[1])&&(c[1]="+"+c[1]),h.length===1&&(/left|center|right/.test(h[0])?h[1]="center":(h[1]=h[0],h[0]="center")),b.call(this,a.extend(d,{at:h[0]+c[0]+" "+h[1]+c[1],offset:e}))}}(jQuery)})(jQuery);
(function(a,e){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},g={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(c){var e=a(this).css(c).offset().top;e<0&&a(this).css("top",
c.top-e)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.options.title=this.options.title||this.originalTitle;var c=this,e=this.options,d=e.title||"&#160;",b,g,l,m;b=(this.uiDialog=a("<div>")).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
e.dialogClass).css({display:"none",outline:0,zIndex:e.zIndex}).attr("tabIndex",-1).keydown(function(b){e.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE&&(c.close(b),b.preventDefault())}).mousedown(function(a){c.moveToTop(!1,a)}).appendTo("body");this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(b);g=(this.uiDialogTitlebar=a("<div>")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").bind("mousedown",
function(){b.focus()}).prependTo(b);l=a("<a href='#'></a>").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role","button").click(function(a){a.preventDefault();c.close(a)}).appendTo(g);(this.uiDialogTitlebarCloseText=a("<span>")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(l);d=a("<span>").uniqueId().addClass("ui-dialog-title").html(d).prependTo(g);m=(this.uiDialogButtonPane=a("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");(this.uiButtonSet=
a("<div>")).addClass("ui-dialog-buttonset").appendTo(m);b.attr({role:"dialog","aria-labelledby":d.attr("id")});g.find("*").add(g).disableSelection();this._hoverable(l);this._focusable(l);e.draggable&&a.fn.draggable&&this._makeDraggable();e.resizable&&a.fn.resizable&&this._makeResizable();this._createButtons(e.buttons);this._isOpen=!1;a.fn.bgiframe&&b.bgiframe();this._on(b,{keydown:function(d){if(e.modal&&d.keyCode===a.ui.keyCode.TAB){var c=a(":tabbable",b),g=c.filter(":first"),c=c.filter(":last");
if(d.target===c[0]&&!d.shiftKey)return g.focus(1),!1;else if(d.target===g[0]&&d.shiftKey)return c.focus(1),!1}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var a,c=this.oldPosition;this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);a=c.parent.children().eq(c.index);a.length&&a[0]!==this.element[0]?
a.before(this.element):c.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(c){var e=this,d,b;if(this._isOpen&&!1!==this._trigger("beforeClose",c)){this._isOpen=!1;this.overlay&&this.overlay.destroy();this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",c)}):(this.uiDialog.hide(),this._trigger("close",c));a.ui.dialog.overlay.resize();if(this.options.modal)d=0,a(".ui-dialog").each(function(){this!==e.uiDialog[0]&&(b=a(this).css("z-index"),
isNaN(b)||(d=Math.max(d,b)))}),a.ui.dialog.maxZ=d;return this}},isOpen:function(){return this._isOpen},moveToTop:function(c,e){var d=this.options;if(d.modal&&!c||!d.stack&&!d.modal)return this._trigger("focus",e);if(d.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=d.zIndex;if(this.overlay)a.ui.dialog.maxZ+=1,a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ);d={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()};a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",
a.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e);return this},open:function(){if(!this._isOpen){var c;c=this.options;var e=this.uiDialog;this._size();this._position(c.position);e.show(c.show);this.overlay=c.modal?new a.ui.dialog.overlay(this):null;this.moveToTop(!0);c=this.element.find(":tabbable");c.length||(c=this.uiDialogButtonPane.find(":tabbable"),c.length||(c=e));c.eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(c){var e=this,d=!1;this.uiDialogButtonPane.remove();
this.uiButtonSet.empty();typeof c==="object"&&c!==null&&a.each(c,function(){return!(d=!0)});d?(a.each(c,function(b,c){var d,g,c=a.isFunction(c)?{click:c,text:b}:c,c=a.extend({type:"button"},c);g=c.click;c.click=function(){g.apply(e.element[0],arguments)};d=a("<button></button>",c).appendTo(e.uiButtonSet);a.fn.button&&d.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function c(a){return{position:a.position,
offset:a.offset}}var e=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(b,d){a(this).addClass("ui-dialog-dragging");e._trigger("dragStart",b,c(d))},drag:function(a,d){e._trigger("drag",a,c(d))},stop:function(b,g){d.position=[g.position.left-e.document.scrollLeft(),g.position.top-e.document.scrollTop()];a(this).removeClass("ui-dialog-dragging");e._trigger("dragStop",b,c(g));a.ui.dialog.overlay.resize()}})},
_makeResizable:function(c){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var c=c===e?this.options.resizable:c,d=this,b=this.options,j=this.uiDialog.css("position"),c=typeof c==="string"?c:"n,e,s,w,se,sw,ne,nw",l;this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:this._minHeight(),handles:c,start:function(b,
c){(l=d.uiDialog.resizable("option","maxHeight"))||d.uiDialog.resizable("option","maxHeight",a(window).height()-c.position.top-15);a(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",b,g(c))},resize:function(a,b){d._trigger("resize",a,g(b))},stop:function(c,j){l=!l?"":l;d.uiDialog.resizable("option","maxHeight",l);l=e;a(this).removeClass("ui-dialog-resizing");b.height=a(this).height();b.width=a(this).width();d._trigger("resizeStop",c,g(j));a.ui.dialog.overlay.resize()}}).css("position",
j).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(c){var e=[],d=[0,0],b;if(c){if(typeof c==="string"||typeof c==="object"&&"0"in c)e=c.split?c.split(" "):[c[0],c[1]],e.length===1&&(e[1]=e[0]),a.each(["left","top"],function(a,b){+e[a]===e[a]&&(d[a]=e[a],e[a]=b)}),c={my:e[0]+(d[0]<0?d[0]:"+"+d[0])+" "+e[1]+(d[1]<0?d[1]:"+"+d[1]),at:e.join(" ")};c=a.extend({},
a.ui.dialog.prototype.options.position,c)}else c=a.ui.dialog.prototype.options.position;(b=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.position(c);b||this.uiDialog.hide()},_setOptions:function(e){var h=this,d={},b=!1;a.each(e,function(a,e){h._setOption(a,e);a in c&&(b=!0);a in g&&(d[a]=e)});b&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(c,e){var d,b=this.uiDialog;switch(c){case "buttons":this._createButtons(e);break;
case "closeText":this.uiDialogTitlebarCloseText.text(""+e);break;case "dialogClass":b.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+e);break;case "disabled":e?b.addClass("ui-dialog-disabled"):b.removeClass("ui-dialog-disabled");break;case "draggable":(d=b.is(":data(draggable)"))&&!e&&b.draggable("destroy");!d&&e&&this._makeDraggable();break;case "position":this._position(e);break;case "resizable":(d=b.is(":data(resizable)"))&&!e&&b.resizable("destroy");
d&&typeof e==="string"&&b.resizable("option","handles",e);!d&&e!==!1&&this._makeResizable(e);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(e||"&#160;"))}this._super(c,e)},_size:function(){var c,e,d=this.options,b=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(d.minWidth>d.width)d.width=d.minWidth;c=this.uiDialog.css({height:"auto",width:d.width}).outerHeight();e=Math.max(0,d.minHeight-c);d.height==="auto"?a.support.minHeight?
this.element.css({minHeight:e,height:"auto"}):(this.uiDialog.show(),c=this.element.css("height","auto").height(),b||this.uiDialog.hide(),this.element.height(Math.max(c,e))):this.element.height(Math.max(d.height-c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a)this.uuid+=1,a=this.uuid;return"ui-dialog-title-"+a},overlay:function(c){this.$el=a.ui.dialog.overlay.create(c)}});
a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(c){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(c){if(a(c.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var e=this.oldInstances.pop()||
a("<div>").addClass("ui-widget-overlay");a(document).bind("keydown.dialog-overlay",function(d){var b=a.ui.dialog.overlay.instances;b.length!==0&&b[b.length-1]===e&&c.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===a.ui.keyCode.ESCAPE&&(c.close(d),d.preventDefault())});e.appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&e.bgiframe();this.instances.push(e);return e},destroy:function(c){var e=a.inArray(c,this.instances),d=0;e!==-1&&this.oldInstances.push(this.instances.splice(e,
1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");c.height(0).width(0).remove();a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var c,e;return a.ui.ie?(c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),c<e?a(window).height()+"px":c+"px"):a(document).height()+"px"},width:function(){var c,e;return a.ui.ie?(c=Math.max(document.documentElement.scrollWidth,
document.body.scrollWidth),e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),c<e?a(window).width()+"px":c+"px"):a(document).width()+"px"},resize:function(){var c=a([]);a.each(a.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
jQuery.effects||function(a,e){var c=a.uiBackCompat!==!1;a.effects={effect:{}};(function(c,e){function h(a,b,c){var d=u[b.type]||{};return a==null?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function d(a){var b=p(),d=b._rgba=[];return a=a.toLowerCase(),q(m,function(c,e){var g,h=e.re.exec(a),h=h&&e.parse(h),j=e.space||"rgba";if(h)return g=b[j](h),b[s[j].cache]=g[s[j].cache],d=b._rgba=g._rgba,!1}),d.length?(d.join()==="0,0,0,0"&&c.extend(d,
r.transparent),b):r[a]}function b(a,b,c){return c=(c+1)%1,c*6<1?a+(b-a)*c*6:c*2<1?b:c*3<2?a+(b-a)*(2/3-c)*6:a}var j="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),l=/^([\-+])=\s*(\d+\.?\d*)/,m=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,
parse:function(a){return[a[1]*2.55,a[2]*2.55,a[3]*2.55,a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],
p=c.Color=function(a,b,d,e){return new c.Color.fn.parse(a,b,d,e)},s={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},x=p.support={},y=c("<p>")[0],r,q=c.each;y.style.cssText="background-color:rgba(1,1,1,.5)";x.rgba=y.style.backgroundColor.indexOf("rgba")>-1;q(s,function(a,b){b.cache=
"_"+a;b.props.alpha={idx:3,type:"percent",def:1}});p.fn=c.extend(p.prototype,{parse:function(b,j,l,m){if(b===e)return this._rgba=[null,null,null,null],this;if(b.jquery||b.nodeType)b=c(b).css(j),j=e;var u=this,y=c.type(b),x=this._rgba=[];j!==e&&(b=[b,j,l,m],y="array");if(y==="string")return this.parse(d(b)||r._default);if(y==="array")return q(s.rgba.props,function(a,c){x[c.idx]=h(b[c.idx],c)}),this;if(y==="object")return b instanceof p?q(s,function(a,c){b[c.cache]&&(u[c.cache]=b[c.cache].slice())}):
q(s,function(c,d){var e=d.cache;q(d.props,function(a,c){if(!u[e]&&d.to){if(a==="alpha"||b[a]==null)return;u[e]=d.to(u._rgba)}u[e][c.idx]=h(b[a],c,!0)});u[e]&&a.inArray(null,u[e].slice(0,3))<0&&(u[e][3]=1,d.from&&(u._rgba=d.from(u[e])))}),this},is:function(a){var b=p(a),c=!0,d=this;return q(s,function(a,e){var g,h=b[e.cache];return h&&(g=d[e.cache]||e.to&&e.to(d._rgba)||[],q(e.props,function(a,b){if(h[b.idx]!=null)return c=h[b.idx]===g[b.idx],c})),c}),c},_space:function(){var a=[],b=this;return q(s,
function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=p(a),d=c._space(),e=s[d],g=this.alpha()===0?p("transparent"):this,j=g[e.cache]||e.to(g._rgba),l=j.slice();return c=c[e.cache],q(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],k=u[d.type]||{};g!==null&&(f===null?l[e]=g:(k.mod&&(g-f>k.mod/2?f+=k.mod:f-g>k.mod/2&&(f-=k.mod)),l[e]=h((g-f)*b+f,d)))}),this[d](l)},blend:function(a){if(this._rgba[3]===1)return this;var b=this._rgba.slice(),d=b.pop(),e=p(a)._rgba;return p(c.map(b,
function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var a="rgba(",b=c.map(this._rgba,function(a,b){return a==null?b>2?1:0:a});return b[3]===1&&(b.pop(),a="rgb("),a+b.join()+")"},toHslaString:function(){var a="hsla(",b=c.map(this.hsla(),function(a,b){return a==null&&(a=b>2?1:0),b&&b<3&&(a=Math.round(a*100)+"%"),a});return b[3]===1&&(b.pop(),a="hsl("),a+b.join()+")"},toHexString:function(a){var b=this._rgba.slice(),d=b.pop();return a&&b.push(~~(d*255)),"#"+c.map(b,function(a){return a=(a||
0).toString(16),a.length===1?"0"+a:a}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});p.fn.parse.prototype=p.fn;s.hsla.to=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var b=a[0]/255,c=a[1]/255,d=a[2]/255,a=a[3],e=Math.max(b,c,d),g=Math.min(b,c,d),h=e-g,j=e+g,l=j*0.5,k,m;return g===e?k=0:b===e?k=60*(c-d)/h+360:c===e?k=60*(d-b)/h+120:k=60*(b-c)/h+240,l===0||l===1?m=l:l<=0.5?m=h/j:m=h/(2-j),[Math.round(k)%360,m,l,a==null?1:
a]};s.hsla.from=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var c=a[0]/360,d=a[1],e=a[2],a=a[3],d=e<=0.5?e*(1+d):e+d-e*d,e=2*e-d;return[Math.round(b(e,d,c+1/3)*255),Math.round(b(e,d,c)*255),Math.round(b(e,d,c-1/3)*255),a]};q(s,function(a,b){var d=b.props,j=b.cache,m=b.to,s=b.from;p.fn[a]=function(a){m&&!this[j]&&(this[j]=m(this._rgba));if(a===e)return this[j].slice();var b,l=c.type(a),r=l==="array"||l==="object"?a:arguments,u=this[j].slice();return q(d,function(a,
b){var c=r[l==="object"?a:b.idx];c==null&&(c=u[b.idx]);u[b.idx]=h(c,b)}),s?(b=p(s(u)),b[j]=u,b):p(u)};q(d,function(b,d){p.fn[b]||(p.fn[b]=function(e){var h=c.type(e),j=b==="alpha"?this._hsla?"hsla":"rgba":a,f=this[j](),k=f[d.idx],m;return h==="undefined"?k:(h==="function"&&(e=e.call(this,k),h=c.type(e)),e==null&&d.empty?this:(h==="string"&&(m=l.exec(e),m&&(e=k+parseFloat(m[2])*(m[1]==="+"?1:-1))),f[d.idx]=e,this[j](f)))})})});q(j,function(a,b){c.cssHooks[b]={set:function(a,e){var h,j="";if(c.type(e)!==
"string"||(h=d(e))){e=p(h||e);if(!x.rgba&&e._rgba[3]!==1){for(h=b==="backgroundColor"?a.parentNode:a;(j===""||j==="transparent")&&h&&h.style;)try{j=c.css(h,"backgroundColor"),h=h.parentNode}catch(l){}e=e.blend(j&&j!=="transparent"?j:"_default")}e=e.toRgbaString()}try{a.style[b]=e}catch(k){}}};c.fx.step[b]=function(a){a.colorInit||(a.start=p(a.elem,b),a.end=p(a.end),a.colorInit=!0);c.cssHooks[b].set(a.elem,a.start.transition(a.end,a.pos))}});c.cssHooks.borderColor={expand:function(a){var b={};return q(["Top",
"Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}};r=c.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){function c(){var d=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,
null):this.currentStyle,b={},e,g;if(d&&d.length&&d[0]&&d[d[0]])for(g=d.length;g--;)e=d[g],typeof d[e]=="string"&&(b[a.camelCase(e)]=d[e]);else for(e in d)typeof d[e]=="string"&&(b[e]=d[e]);return b}var k=["add","remove","toggle"],h={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(c,b){a.fx.step[b]=function(a){if(a.end!=="none"&&!a.setAttr||a.pos===
1&&!a.setAttr)jQuery.style(a.elem,b,a.end),a.setAttr=!0}});a.effects.animateClass=function(d,b,e,l){var m=a.speed(b,e,l);return this.queue(function(){var b=a(this),e=b.attr("class")||"",j,l=m.children?b.find("*").andSelf():b;l=l.map(function(){return{el:a(this),start:c.call(this)}});j=function(){a.each(k,function(a,c){d[c]&&b[c+"Class"](d[c])})};j();l=l.map(function(){this.end=c.call(this.el[0]);var b=this.start,d=this.end,e={},j,l;for(j in d)l=d[j],b[j]!==l&&!h[j]&&(a.fx.step[j]||!isNaN(parseFloat(l)))&&
(e[j]=l);return this.diff=e,this});b.attr("class",e);l=l.map(function(){var b=this,c=a.Deferred();return this.el.animate(this.diff,jQuery.extend({},m,{queue:!1,complete:function(){c.resolve(b)}})),c.promise()});a.when.apply(a,l.get()).done(function(){j();a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})});m.complete.call(b[0])})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(c,b,e,g){return b?a.effects.animateClass.call(this,{add:c},b,e,g):this._addClass(c)},
_removeClass:a.fn.removeClass,removeClass:function(c,b,e,g){return b?a.effects.animateClass.call(this,{remove:c},b,e,g):this._removeClass(c)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,b,g,h,k){return typeof b=="boolean"||b===e?g?a.effects.animateClass.call(this,b?{add:c}:{remove:c},g,h,k):this._toggleClass(c,b):a.effects.animateClass.call(this,{toggle:c},b,g,h)},switchClass:function(c,b,e,g,h){return a.effects.animateClass.call(this,{add:b,remove:c},e,g,h)}})})();(function(){function g(c,
d,b,e){a.isPlainObject(c)&&(d=c,c=c.effect);c={effect:c};d==null&&(d={});a.isFunction(d)&&(e=d,b=null,d={});if(typeof d=="number"||a.fx.speeds[d])e=b,b=d,d={};return a.isFunction(b)&&(e=b,b=null),d&&a.extend(c,d),b=b||d.duration,c.duration=a.fx.off?0:typeof b=="number"?b:b in a.fx.speeds?a.fx.speeds[b]:a.fx.speeds._default,c.complete=e||d.complete,c}function k(e){return!e||typeof e=="number"||a.fx.speeds[e]?!0:typeof e=="string"&&!a.effects.effect[e]?c&&a.effects[e]?!1:!0:!1}a.extend(a.effects,{version:"1.9.2",
save:function(a,c){for(var b=0;b<c.length;b++)c[b]!==null&&a.data("ui-effects-"+c[b],a[0].style[c[b]])},restore:function(a,c){var b,g;for(g=0;g<c.length;g++)c[g]!==null&&(b=a.data("ui-effects-"+c[g]),b===e&&(b=""),a.css(c[g],b))},setMode:function(a,c){return c==="toggle"&&(c=a.is(":hidden")?"show":"hide"),c},getBaseline:function(a,c){var b,e;switch(a[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=a[0]/c.height}switch(a[1]){case "left":e=0;break;case "center":e=
0.5;break;case "right":e=1;break;default:e=a[1]/c.width}return{x:e,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var d={width:c.outerWidth(!0),height:c.outerHeight(!0),"float":c.css("float")},b=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:c.width(),height:c.height()},g=document.activeElement;return c.wrap(b),(c[0]===g||a.contains(c[0],g))&&a(g).focus(),b=c.parent(),
c.css("position")==="static"?(b.css({position:"relative"}),c.css({position:"relative"})):(a.extend(d,{position:c.css("position"),zIndex:c.css("z-index")}),a.each(["top","left","bottom","right"],function(a,b){d[b]=c.css(b);isNaN(parseInt(d[b],10))&&(d[b]="auto")}),c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),c.css(e),b.css(d).show()},removeWrapper:function(c){var d=document.activeElement;return c.parent().is(".ui-effects-wrapper")&&(c.parent().replaceWith(c),(c[0]===d||a.contains(c[0],
d))&&a(d).focus()),c},setTransition:function(c,d,b,e){return e=e||{},a.each(d,function(a,d){var g=c.cssUnit(d);g[0]>0&&(e[d]=g[0]*b+g[1])}),e}});a.fn.extend({effect:function(){function e(b){function c(){a.isFunction(h)&&h.call(g[0]);a.isFunction(b)&&b()}var g=a(this),h=d.complete,j=d.mode;(g.is(":hidden")?j==="hide":j==="show")?c():l.call(g[0],d,c)}var d=g.apply(this,arguments),b=d.mode,j=d.queue,l=a.effects.effect[d.effect],k=!l&&c&&a.effects[d.effect];return a.fx.off||!l&&!k?b?this[b](d.duration,
d.complete):this.each(function(){d.complete&&d.complete.call(this)}):l?j===!1?this.each(e):this.queue(j||"fx",e):k.call(this,{options:d,duration:d.duration,callback:d.complete,mode:d.mode})},_show:a.fn.show,show:function(a){if(k(a))return this._show.apply(this,arguments);var c=g.apply(this,arguments);return c.mode="show",this.effect.call(this,c)},_hide:a.fn.hide,hide:function(a){if(k(a))return this._hide.apply(this,arguments);var c=g.apply(this,arguments);return c.mode="hide",this.effect.call(this,
c)},__toggle:a.fn.toggle,toggle:function(c){if(k(c)||typeof c=="boolean"||a.isFunction(c))return this.__toggle.apply(this,arguments);var d=g.apply(this,arguments);return d.mode="toggle",this.effect.call(this,d)},cssUnit:function(c){var d=this.css(c),b=[];return a.each(["em","px","%","pt"],function(a,c){d.indexOf(c)>0&&(b=[parseFloat(d),c])}),b}})})();(function(){var c={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,e){c[e]=function(c){return Math.pow(c,a+2)}});a.extend(c,{Sine:function(a){return 1-
Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return a===0||a===1?a:-Math.pow(2,8*(a-1))*Math.sin(((a-1)*80-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var c,d=4;a<((c=Math.pow(2,--d))-1)/11;);return 1/Math.pow(4,3-d)-7.5625*Math.pow((c*3-2)/22-a,2)}});a.each(c,function(c,e){a.easing["easeIn"+c]=e;a.easing["easeOut"+c]=function(a){return 1-e(1-a)};a.easing["easeInOut"+c]=function(a){return a<0.5?e(a*2)/2:1-e(a*-2+2)/2}})})()}(jQuery);
(function(a){a.effects.effect.fade=function(e,c){var g=a(this),k=a.effects.setMode(g,e.mode||"toggle");g.animate({opacity:k},{queue:!1,duration:e.duration,easing:e.easing,complete:c})}})(jQuery);
(function(a){a.effects.effect.highlight=function(e,c){var g=a(this),k=["backgroundImage","backgroundColor","opacity"],h=a.effects.setMode(g,e.mode||"show"),d={backgroundColor:g.css("backgroundColor")};h==="hide"&&(d.opacity=0);a.effects.save(g,k);g.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){h==="hide"&&g.hide();a.effects.restore(g,k);c()}})}})(jQuery);
(function(a){a.effects.effect.slide=function(e,c){var g=a(this),k="position,top,bottom,left,right,width,height".split(","),h=a.effects.setMode(g,e.mode||"show"),d=h==="show",b=e.direction||"left",j=b==="up"||b==="down"?"top":"left",b=b==="up"||b==="left",l,m={};a.effects.save(g,k);g.show();l=e.distance||g[j==="top"?"outerHeight":"outerWidth"](!0);a.effects.createWrapper(g).css({overflow:"hidden"});d&&g.css(j,b?isNaN(l)?"-"+l:-l:l);m[j]=(d?b?"+=":"-=":b?"-=":"+=")+l;g.animate(m,{queue:!1,duration:e.duration,
easing:e.easing,complete:function(){h==="hide"&&g.hide();a.effects.restore(g,k);a.effects.removeWrapper(g);c()}})}})(jQuery);
(function(a){a.effects.effect.pulsate=function(e,c){var g=a(this),k=a.effects.setMode(g,e.mode||"show"),h=k==="show",d=k==="hide",k=(e.times||5)*2+(h||k==="hide"?1:0),b=e.duration/k,j=0,l=g.queue(),m=l.length;if(h||!g.is(":visible"))g.css("opacity",0).show(),j=1;for(h=1;h<k;h++)g.animate({opacity:j},b,e.easing),j=1-j;g.animate({opacity:j},b,e.easing);g.queue(function(){d&&g.hide();c()});m>1&&l.splice.apply(l,[1,0].concat(l.splice(m,k+1)));g.dequeue()}})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(e){var c=this.options;if(this.helper||c.disabled||a(e.target).is(".ui-resizable-handle"))return!1;this.handle=this._getHandle(e);if(!this.handle)return!1;a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+
"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(e){var c=this.options;this.helper=this._createHelper(e);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset=
{top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",e)===!1)return this._clear(),!1;this._cacheHelperProportions();
a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,e);this._mouseDrag(e,!0);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,e);return!0},_mouseDrag:function(e,c){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!c){var g=this._uiHash();if(this._trigger("drag",e,g)===!1)return this._mouseUp({}),!1;this.position=g.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,e);return!1},_mouseStop:function(e){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,e));if(this.dropped)c=this.dropped,this.dropped=!1;for(var g=this.element[0],k=!1;g&&(g=g.parentNode);)g==document&&(k=!0);if(!k&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&
this.options.revert.call(this.element,c)){var h=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){h._trigger("stop",e)!==!1&&h._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,e);return a.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){this.helper.is(".ui-draggable-dragging")?
this._mouseUp({}):this._clear();return this},_getHandle:function(e){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(c=!0)});return c},_createHelper:function(e){var c=this.options,e=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[e])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;e.parents("body").length||e.appendTo(c.appendTo=="parent"?this.element[0].parentNode:
c.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" "));a.isArray(e)&&(e={left:+e[0],top:+e[1]||0});if("left"in e)this.offset.click.left=e.left+this.margins.left;if("right"in e)this.offset.click.left=this.helperProportions.width-e.right+this.margins.left;if("top"in e)this.offset.click.top=e.top+this.margins.top;if("bottom"in e)this.offset.click.top=this.helperProportions.height-
e.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.ui.ie)e={top:0,left:0};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),
10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),
10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent")e.containment=this.helper[0].parentNode;if(e.containment=="document"||e.containment=="window")this.containment=[e.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-
this.offset.parent.left,e.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(e.containment=="document"?0:a(window).scrollLeft())+a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e.containment=="document"?0:a(window).scrollTop())+(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(e.containment)&&
e.containment.constructor!=Array){var e=a(e.containment),c=e[0];if(c){e.offset();var g=a(c).css("overflow")!="hidden";this.containment=[(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0),(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0),(g?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-
this.margins.right,(g?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=e}}else if(e.containment.constructor==Array)this.containment=e.containment},_convertPositionTo:function(e,c){if(!c)c=this.position;var g=e=="absolute"?1:-1,k=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=/(html|body)/i.test(k[0].tagName);return{top:c.top+this.offset.relative.top*g+this.offset.parent.top*g-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:k.scrollTop())*g,left:c.left+this.offset.relative.left*g+this.offset.parent.left*g-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:k.scrollLeft())*g}},_generatePosition:function(e){var c=this.options,g=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&
a.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=/(html|body)/i.test(g[0].tagName),h=e.pageX,d=e.pageY;if(this.originalPosition){var b;if(this.containment)this.relative_container?(b=this.relative_container.offset(),b=[this.containment[0]+b.left,this.containment[1]+b.top,this.containment[2]+b.left,this.containment[3]+b.top]):b=this.containment,e.pageX-this.offset.click.left<b[0]&&(h=b[0]+this.offset.click.left),e.pageY-this.offset.click.top<b[1]&&(d=b[1]+
this.offset.click.top),e.pageX-this.offset.click.left>b[2]&&(h=b[2]+this.offset.click.left),e.pageY-this.offset.click.top>b[3]&&(d=b[3]+this.offset.click.top);c.grid&&(d=c.grid[1]?this.originalPageY+Math.round((d-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY,d=b?!(d-this.offset.click.top<b[1]||d-this.offset.click.top>b[3])?d:!(d-this.offset.click.top<b[1])?d-c.grid[1]:d+c.grid[1]:d,h=c.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX,
h=b?!(h-this.offset.click.left<b[0]||h-this.offset.click.left>b[2])?h:!(h-this.offset.click.left<b[0])?h-c.grid[0]:h+c.grid[0]:h)}return{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():k?0:g.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:g.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1},_trigger:function(e,c,g){g=g||this._uiHash();a.ui.plugin.call(this,e,[c,g]);if(e=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,e,c,g)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.ui.plugin.add("draggable","connectToSortable",
{start:function(e,c){var g=a(this).data("draggable"),k=g.options,h=a.extend({},c,{item:g.element});g.sortables=[];a(k.connectToSortable).each(function(){var c=a.data(this,"sortable");c&&!c.options.disabled&&(g.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",e,h))})},stop:function(e,c){var g=a(this).data("draggable"),k=a.extend({},c,{item:g.element});a.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=
!0;this.instance.cancelHelperRemoval=!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;g.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,k)})},drag:function(e,c){var g=a(this).data("draggable"),k=this;a.each(g.sortables,function(){var h=!1,d=this;this.instance.positionAbs=g.positionAbs;this.instance.helperProportions=
g.helperProportions;this.instance.offset.click=g.offset.click;this.instance._intersectsWith(this.instance.containerCache)&&(h=!0,a.each(g.sortables,function(){this.instance.positionAbs=g.positionAbs;this.instance.helperProportions=g.helperProportions;this.instance.offset.click=g.offset.click;this!=d&&this.instance._intersectsWith(this.instance.containerCache)&&a.ui.contains(d.instance.element[0],this.instance.element[0])&&(h=!1);return h}));if(h){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=
a(k).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=g.offset.click.top,this.instance.offset.click.left=g.offset.click.left,this.instance.offset.parent.left-=g.offset.parent.left-this.instance.offset.parent.left,
this.instance.offset.parent.top-=g.offset.parent.top-this.instance.offset.parent.top,g._trigger("toSortable",e),g.dropped=this.instance.element,g.currentItem=g.element,this.instance.fromOutside=g;this.instance.currentItem&&this.instance._mouseDrag(e)}else if(this.instance.isOver)this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=
this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),g._trigger("fromSortable",e),g.dropped=!1})}});a.ui.plugin.add("draggable","cursor",{start:function(){var e=a("body"),c=a(this).data("draggable").options;if(e.css("cursor"))c._cursor=e.css("cursor");e.css("cursor",c.cursor)},stop:function(){var e=a(this).data("draggable").options;e._cursor&&a("body").css("cursor",e._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(e,
c){var g=a(c.helper),k=a(this).data("draggable").options;if(g.css("opacity"))k._opacity=g.css("opacity");g.css("opacity",k.opacity)},stop:function(e,c){var g=a(this).data("draggable").options;g._opacity&&a(c.helper).css("opacity",g._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var e=a(this).data("draggable");if(e.scrollParent&&e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML")e.overflowOffset=e.scrollParent.offset()},drag:function(e){var c=a(this).data("draggable"),
g=c.options,k=!1;if(c.scrollParent){if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-e.pageY<g.scrollSensitivity)c.scrollParent[0].scrollTop=k=c.scrollParent[0].scrollTop+g.scrollSpeed;else if(e.pageY-c.overflowOffset.top<g.scrollSensitivity)c.scrollParent[0].scrollTop=k=c.scrollParent[0].scrollTop-g.scrollSpeed;if(!g.axis||g.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-e.pageX<g.scrollSensitivity)c.scrollParent[0].scrollLeft=
k=c.scrollParent[0].scrollLeft+g.scrollSpeed;else if(e.pageX-c.overflowOffset.left<g.scrollSensitivity)c.scrollParent[0].scrollLeft=k=c.scrollParent[0].scrollLeft-g.scrollSpeed}else{if(!g.axis||g.axis!="x")e.pageY-a(document).scrollTop()<g.scrollSensitivity?k=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity&&(k=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed));if(!g.axis||g.axis!="y")e.pageX-a(document).scrollLeft()<
g.scrollSensitivity?k=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(k=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))}k!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,e)}}});a.ui.plugin.add("draggable","snap",{start:function(){var e=a(this).data("draggable"),c=e.options;e.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=
a(this),k=c.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:k.top,left:k.left})})},drag:function(e,c){for(var g=a(this).data("draggable"),k=g.options,h=k.snapTolerance,d=c.offset.left,b=d+g.helperProportions.width,j=c.offset.top,l=j+g.helperProportions.height,m=g.snapElements.length-1;m>=0;m--){var p=g.snapElements[m].left,s=p+g.snapElements[m].width,u=g.snapElements[m].top,x=u+g.snapElements[m].height;if(p-h<d&&d<s+h&&u-h<j&&j<x+h||p-h<
d&&d<s+h&&u-h<l&&l<x+h||p-h<b&&b<s+h&&u-h<j&&j<x+h||p-h<b&&b<s+h&&u-h<l&&l<x+h){if(k.snapMode!="inner"){var y=Math.abs(u-l)<=h,r=Math.abs(x-j)<=h,q=Math.abs(p-b)<=h,B=Math.abs(s-d)<=h;if(y)c.position.top=g._convertPositionTo("relative",{top:u-g.helperProportions.height,left:0}).top-g.margins.top;if(r)c.position.top=g._convertPositionTo("relative",{top:x,left:0}).top-g.margins.top;if(q)c.position.left=g._convertPositionTo("relative",{top:0,left:p-g.helperProportions.width}).left-g.margins.left;if(B)c.position.left=
g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}var U=y||r||q||B;if(k.snapMode!="outer"){y=Math.abs(u-j)<=h;r=Math.abs(x-l)<=h;q=Math.abs(p-d)<=h;B=Math.abs(s-b)<=h;if(y)c.position.top=g._convertPositionTo("relative",{top:u,left:0}).top-g.margins.top;if(r)c.position.top=g._convertPositionTo("relative",{top:x-g.helperProportions.height,left:0}).top-g.margins.top;if(q)c.position.left=g._convertPositionTo("relative",{top:0,left:p}).left-g.margins.left;if(B)c.position.left=g._convertPositionTo("relative",
{top:0,left:s-g.helperProportions.width}).left-g.margins.left}!g.snapElements[m].snapping&&(y||r||q||B||U)&&g.options.snap.snap&&g.options.snap.snap.call(g.element,e,a.extend(g._uiHash(),{snapItem:g.snapElements[m].item}));g.snapElements[m].snapping=y||r||q||B||U}else g.snapElements[m].snapping&&g.options.snap.release&&g.options.snap.release.call(g.element,e,a.extend(g._uiHash(),{snapItem:g.snapElements[m].item})),g.snapElements[m].snapping=!1}}});a.ui.plugin.add("draggable","stack",{start:function(){var e=
a(this).data("draggable").options,e=a.makeArray(a(e.stack)).sort(function(c,e){return(parseInt(a(c).css("zIndex"),10)||0)-(parseInt(a(e).css("zIndex"),10)||0)});if(e.length){var c=parseInt(e[0].style.zIndex)||0;a(e).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+e.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(e,c){var g=a(c.helper),k=a(this).data("draggable").options;if(g.css("zIndex"))k._zIndex=g.css("zIndex");g.css("zIndex",k.zIndex)},stop:function(e,c){var g=
a(this).data("draggable").options;g._zIndex&&a(c.helper).css("zIndex",g._zIndex)}})})(jQuery);
(function(a){if(window.parent!=window)return!1;a.address=function(){var e=function(b){a(a.address).trigger(a.extend(a.Event(b),function(){for(var b={},c=a.address.parameterNames(),d=0,e=c.length;d<e;d++)b[c[d]]=a.address.parameter(c[d]);return{value:a.address.value(),path:a.address.path(),pathNames:a.address.pathNames(),parameterNames:c,parameters:b,queryString:a.address.queryString()}}.call(a.address)))},c=function(){a().bind.apply(a(a.address),Array.prototype.slice.call(arguments));return a.address},
g=function(){return L.pushState&&f.state!==E},k=function(){return("/"+A.pathname.replace(RegExp(f.state),"")+A.search+(h()?"#"+h():"")).replace(aa,"/")},h=function(){var a=A.href.indexOf("#");return a!=-1?j(A.href.substr(a+1),C):""},d=function(){return g()?k():h()},b=function(a){a=a.toString();return(f.strict&&a.substr(0,1)!="/"?"/":"")+a},j=function(a,b){return f.crawlable&&b?(a!==""?"!":"")+a:a.replace(/^\!/,"")},l=function(a,b){return parseInt(a.css(b),10)},m=function(a){for(var b,c,d=0,e=a.childNodes.length;d<
e;d++){try{"src"in a.childNodes[d]&&a.childNodes[d].src&&(b=String(a.childNodes[d].src))}catch(f){}if(c=m(a.childNodes[d]))b=c}return b},p=function(){if(!ea){var a=d();Y!=a&&(O&&F<7?A.reload():(O&&F<8&&f.history&&I(x,50),Y=a,s(C)))}},s=function(a){e(Q);e(a?P:t);I(u,10)},u=function(){if(f.tracker!=="null"&&f.tracker!==null){var b=a.isFunction(f.tracker)?f.tracker:H[f.tracker],c=(A.pathname+A.search+(a.address&&!g()?a.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");a.isFunction(b)?b(c):
a.isFunction(H.urchinTracker)?H.urchinTracker(c):H.pageTracker!==E&&a.isFunction(H.pageTracker._trackPageview)?H.pageTracker._trackPageview(c):H._gaq!==E&&a.isFunction(H._gaq.push)&&H._gaq.push(["_trackPageview",decodeURI(c)])}},x=function(){var a="javascript:"+C+";document.open();document.writeln('<html><head><title>"+v.title.replace("'","\\'")+"</title><script>var "+X+' = "'+encodeURIComponent(d())+(v.domain!=A.hostname?'";document.domain="'+v.domain:"")+"\";<\/script></head></html>');document.close();";
F<7?S.src=a:S.contentWindow.location.replace(a)},y=function(){if(ca&&ba!=-1){var a,b=ca.substr(ba+1).split("&");for(i=0;i<b.length;i++)a=b[i].split("="),/^(autoUpdate|crawlable|history|strict|wrap)$/.test(a[0])&&(f[a[0]]=isNaN(a[1])?/^(true|yes)$/i.test(a[1]):parseInt(a[1],10)!==0),/^(state|tracker)$/.test(a[0])&&(f[a[0]]=a[1]);ca=null}Y=d()},r=function(){if(!ia){ia=z;y();var b=function(){q.call(this);J.call(this)},c=a("body").ajaxComplete(b);b();f.wrap&&(a("body > *").wrapAll('<div style="padding:'+
(l(c,"marginTop")+l(c,"paddingTop"))+"px "+(l(c,"marginRight")+l(c,"paddingRight"))+"px "+(l(c,"marginBottom")+l(c,"paddingBottom"))+"px "+(l(c,"marginLeft")+l(c,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+X+'" style="height:100%;overflow:auto;position:relative;'+(G&&!window.statusbar.visible?"resize:both;":"")+'" />'),a("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"}),G&&a('<style type="text/css" />').appendTo("head").text("#"+X+"::-webkit-resizer { background-color: #fff; }"));
if(O&&F<8)b=v.getElementsByTagName("frameset")[0],S=v.createElement((b?"":"i")+"frame"),b?(b.insertAdjacentElement("beforeEnd",S),b[b.cols?"cols":"rows"]+=",0",S.noResize=z,S.frameBorder=S.frameSpacing=0):(S.style.display="none",S.style.width=S.style.height=0,S.tabIndex=-1,v.body.insertAdjacentElement("afterBegin",S)),I(function(){a(S).bind("load",function(){var a=S.contentWindow;Y=a[X]!==E?a[X]:"";if(Y!=d())s(C),A.hash=j(Y,z)});S.contentWindow[X]===E&&x()},50);I(function(){e("init");s(C)},1);g()||
(O&&F>7||!O&&"on"+M in H?H.addEventListener?H.addEventListener(M,p,C):H.attachEvent&&H.attachEvent("on"+M,p):w(p,50))}},q=function(){var b,c=a("a"),d=c.size(),e=-1,f=function(){++e!=d&&(b=a(c.get(e)),b.is('[rel*="address:"]')&&b.address(),I(f,1))};I(f,1)},B=function(){Y!=d()&&(Y=d(),s(C))},U=function(){H.removeEventListener?H.removeEventListener(M,p,C):H.detachEvent&&H.detachEvent("on"+M,p)},J=function(){if(f.crawlable){var b=A.pathname.replace(/\/$/,"");a("body").html().indexOf("_escaped_fragment_")!=
-1&&a('a[href]:not([href^=http]), a[href*="'+document.domain+'"]').each(function(){var c=a(this).attr("href").replace(/^http:/,"").replace(RegExp(b+"/?$"),"");(c===""||c.indexOf("_escaped_fragment_")!=-1)&&a(this).attr("href","#"+c.replace(/\/(.*)\?_escaped_fragment_=(.*)$/,"!$2"))})}},E,X="jQueryAddress",M="hashchange",Q="change",P="internalChange",t="externalChange",z=!0,C=!1,f={autoUpdate:z,crawlable:C,history:z,strict:z,wrap:C},R=a.browser,F=parseFloat(a.browser.version),W=R.mozilla,O=R.msie,
K=R.opera,G=R.webkit||R.safari,N=C,H;try{H=top.document!==E?top:window}catch(o){H=window}var v=H.document,L=H.history,A=H.location,w=setInterval,I=setTimeout,aa=/\/{2,9}/g,R=navigator.userAgent,S,ca=m(document),ba=ca?ca.indexOf("?"):-1,Z=v.title,ea=C,ia=C,ha=z,pa=z,ka=C,Y=d();if(O){F=parseFloat(R.substr(R.indexOf("MSIE")+4));v.documentMode&&v.documentMode!=F&&(F=v.documentMode!=8?7:8);var va=v.onpropertychange;v.onpropertychange=function(){va&&va.call(v);if(v.title!=Z&&v.title.indexOf("#"+d())!=-1)v.title=
Z}}if(N=W&&F>=1||O&&F>=6||K&&F>=9.5||G&&F>=523){if(K)history.navigationMode="compatible";if(document.readyState=="complete")var Ba=setInterval(function(){a.address&&(r(),clearInterval(Ba))},50);else y(),a(r);a(window).bind("popstate",B).bind("unload",U)}else!N&&h()!==""?A.replace(A.href.substr(0,A.href.indexOf("#"))):u();return{bind:function(a,b,d){return c(a,b,d)},init:function(a){return c("init",a)},change:function(a){return c(Q,a)},internalChange:function(a){return c(P,a)},externalChange:function(a){return c(t,
a)},baseURL:function(){var a=A.href;a.indexOf("#")!=-1&&(a=a.substr(0,a.indexOf("#")));/\/$/.test(a)&&(a=a.substr(0,a.length-1));return a},autoUpdate:function(a){return a!==E?(f.autoUpdate=a,this):f.autoUpdate},crawlable:function(a){return a!==E?(f.crawlable=a,this):f.crawlable},history:function(a){return a!==E?(f.history=a,this):f.history},state:function(a){if(a!==E){f.state=a;var b=k();f.state!==E&&(L.pushState?b.substr(0,3)=="/#/"&&A.replace(f.state.replace(/^\/$/,"")+b.substr(2)):b!="/"&&b.replace(/^\/#/,
"")!=h()&&I(function(){A.replace(f.state.replace(/^\/$/,"")+"/#"+b)},1));return this}return f.state},strict:function(a){return a!==E?(f.strict=a,this):f.strict},tracker:function(a){return a!==E?(f.tracker=a,this):f.tracker},wrap:function(a){return a!==E?(f.wrap=a,this):f.wrap},update:function(){ka=z;this.value(Y);ka=C;return this},title:function(a){return a!==E?(I(function(){Z=v.title=a;if(pa&&S&&S.contentWindow&&S.contentWindow.document)S.contentWindow.document.title=a,pa=C;!ha&&W&&A.replace(A.href.indexOf("#")!=
-1?A.href:A.href+"#");ha=C},50),this):v.title},value:function(a){if(a!==E){a=b(a);a=="/"&&(a="");if(Y==a&&!ka)return;ha=z;Y=a;if(f.autoUpdate||ka)if(s(z),g())L[f.history?"pushState":"replaceState"]({},"",f.state.replace(/\/$/,"")+(Y===""?"/":Y));else{ea=z;if(G)f.history?A.hash="#"+j(Y,z):A.replace("#"+j(Y,z));else if(Y!=d())f.history?A.hash="#"+j(Y,z):A.replace("#"+j(Y,z));O&&F<8&&f.history&&I(x,50);G?I(function(){ea=C},1):ea=C}return this}return!N?null:b(Y)},path:function(a){if(a!==E){var c=this.queryString(),
d=this.hash();this.value(a+(c?"?"+c:"")+(d?"#"+d:""));return this}return b(Y).split("#")[0].split("?")[0]},pathNames:function(){var a=this.path(),b=a.replace(aa,"/").split("/");(a.substr(0,1)=="/"||a.length===0)&&b.splice(0,1);a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,1);return b},queryString:function(a){if(a!==E){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}a=Y.split("?");return a.slice(1,a.length).join("?").split("#")[0]},parameter:function(b,c,d){var e,
f;if(c!==E){var g=this.parameterNames();f=[];c=c?c.toString():"";for(e=0;e<g.length;e++){var h=g[e],j=this.parameter(h);typeof j=="string"&&(j=[j]);h==b&&(j=c===null||c===""?[]:d?j.concat([c]):[c]);for(var l=0;l<j.length;l++)f.push(h+"="+j[l])}a.inArray(b,g)==-1&&c!==null&&c!==""&&f.push(b+"="+c);this.queryString(f.join("&"));return this}if(c=this.queryString()){d=[];f=c.split("&");for(e=0;e<f.length;e++)c=f[e].split("="),c[0]==b&&d.push(c.slice(1).join("="));if(d.length!==0)return d.length!=1?d:
d[0]}},parameterNames:function(){var b=this.queryString(),c=[];if(b&&b.indexOf("=")!=-1)for(var b=b.split("&"),d=0;d<b.length;d++){var e=b[d].split("=")[0];a.inArray(e,c)==-1&&c.push(e)}return c},hash:function(a){if(a!==E)return this.value(Y.split("#")[0]+(a?"#"+a:"")),this;a=Y.split("#");return a.slice(1,a.length).join("#")}}}();a.fn.address=function(e){if(!a(this).attr("address")){var c=function(c){if(c.shiftKey||c.ctrlKey||c.metaKey)return!0;if(a(this).is("a")){var k=e?e.call(this):/address:/.test(a(this).attr("rel"))?
a(this).attr("rel").split("address:")[1].split(" ")[0]:a.address.state()!==void 0&&a.address.state()!="/"?a(this).attr("href").replace(RegExp("^(.*"+a.address.state()+"|\\.)"),""):a(this).attr("href").replace(/^(#\!?|\.)/,"");a.address.value(k);c.preventDefault()}};a(this).click(c).live("click",c).live("submit",function(c){if(a(this).is("form")){var k=a(this).attr("action"),k=e?e.call(this):(k.indexOf("?")!=-1?k.replace(/&$/,""):k+"?")+a(this).serialize();a.address.value(k);c.preventDefault()}}).attr("address",
!0)}return this}})(jQuery);
(function(a,e,c,g){function k(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function h(b){for(var c={},d,e;b;){d=a.data(b,r);for(e in d)if(d[e])c[e]=c.hasVirtualBinding=!0;b=b.parentNode}return c}function d(){E&&(clearTimeout(E),E=0);E=setTimeout(function(){F=E=0;P.length=0;t=!1;z=!0},a.vmouse.resetTimerDuration)}function b(b,c,d){var e,f;if(!(f=d&&d[b])){if(d=!d)a:{for(d=c.target;d;){if((f=a.data(d,r))&&(!b||f[b]))break a;d=d.parentNode}d=null}f=d}if(f){e=c;var d=e.type,
h,j;e=a.Event(e);e.type=b;f=e.originalEvent;h=a.event.props;d.search(/^(mouse|click)/)>-1&&(h=U);if(f)for(j=h.length;j;)b=h[--j],e[b]=f[b];if(d.search(/mouse(down|up)|click/)>-1&&!e.which)e.which=1;if(d.search(/^touch/)!==-1&&(b=k(f),d=b.touches,b=b.changedTouches,d=d&&d.length?d[0]:b&&b.length?b[0]:g))for(f=0,h=B.length;f<h;f++)b=B[f],e[b]=d[b];a(c.target).trigger(e)}return e}function j(c){if(a.vmouse.preventRealEvents)c.preventDefault(),c.stopPropagation(),c.stopImmediatePropagation();else{var d=
a.data(c.target,q);if(!t&&(!F||F!==d))if(d=b("v"+c.type,c))d.isDefaultPrevented()&&c.preventDefault(),d.isPropagationStopped()&&c.stopPropagation(),d.isImmediatePropagationStopped()&&c.stopImmediatePropagation()}}function l(c){var d=k(c).touches,e;if(d&&d.length===1&&(e=c.target,d=h(e),d.hasVirtualBinding))F=R++,a.data(e,q,F),E&&(clearTimeout(E),E=0),Q=z=!1,e=k(c).touches[0],X=e.pageX,M=e.pageY,b("vmouseover",c,d),b("vmousedown",c,d)}function m(a){z||(Q||b("vmousecancel",a,h(a.target)),Q=!0,d())}
function p(c){if(!z){var e=k(c).touches[0],f=Q,g=a.vmouse.moveDistanceThreshold,j=h(c.target);(Q=Q||Math.abs(e.pageX-X)>g||Math.abs(e.pageY-M)>g)&&!f&&b("vmousecancel",c,j);b("vmousemove",c,j);d()}}function s(c){if(!z){z=!0;var e=h(c.target),f;b("vmouseup",c,e);if(!Q){var g=b("vclick",c,e),j;if(g&&(g.isDefaultPrevented()||g.isPropagationStopped()))f=k(c).changedTouches[0],(j=a(f.target).closest(".m-ui-tabs-nav").length>0||a(f.target).is("a"))||P.push({touchID:F,x:f.clientX,y:f.clientY,prevent:g.isDefaultPrevented(),
propagation:g.isPropagationStopped()}),t=!0}b("vmouseout",c,e);Q=!1;d()}}function u(b){var b=a.data(b,r),c;if(b)for(c in b)if(b[c])return!0;return!1}function x(){}function y(b){var c=b.substr(1);return{setup:function(){u(this)||a.data(this,r,{});a.data(this,r)[b]=!0;J[b]=(J[b]||0)+1;J[b]===1&&f.bind(c,j);a(this).bind(c,x);if(C)J.touchstart=(J.touchstart||0)+1,J.touchstart===1&&f.bind("touchstart",l).bind("touchend",s).bind("touchmove",p).bind("scroll",m)},teardown:function(){--J[b];J[b]||f.unbind(c,
j);C&&(--J.touchstart,J.touchstart||f.unbind("touchstart",l).unbind("touchmove",p).unbind("touchend",s).unbind("scroll",m));var d=a(this),e=a.data(this,r);e&&(e[b]=!1);d.unbind(c,x);u(this)||d.removeData(r)}}}var r="virtualMouseBindings",q="virtualTouchID",e="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),B="clientX clientY pageX pageY screenX screenY".split(" "),U=a.event.props.concat(a.event.mouseHooks?a.event.mouseHooks.props:[]),J={},E=0,X=0,M=0,Q=!1,P=[],
t=!1,z=!1,C="addEventListener"in c,f=a(c),R=1,F=0,W,O=/android 2/gi.test(navigator.appVersion),K=/android 4/gi.test(navigator.appVersion),G=/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1;a.vmouse={moveDistanceThreshold:15,clickDistanceThreshold:15,resetTimerDuration:G?700:O?1800:K?700:700,preventRealEvents:!1};for(O=0;O<e.length;O++)a.event.special[e[O]]=y(e[O]);C&&c.addEventListener("click",function(b){var c=P.length,d=b.target,e,f,g,h,j;if(c){e=b.clientX;
f=b.clientY;W=a.vmouse.clickDistanceThreshold;for(g=d;g;){for(h=0;h<c;h++)if(j=P[h],g===d&&Math.abs(j.x-e)<W&&Math.abs(j.y-f)<W||a.data(g,q)===j.touchID){if(j.prevent){b.preventDefault();b.stopPropagation();return}j.propagation&&b.stopPropagation()}g=g.parentNode}}},!0)})(jQuery,window,document);var JSON;JSON||(JSON={});
(function(){function a(b,c){var g,k,u,x,y=h,r,q=c[b];q&&typeof q=="object"&&typeof q.toJSON=="function"&&(q=q.toJSON(b));typeof j=="function"&&(q=j.call(c,b,q));switch(typeof q){case "string":return e(q);case "number":return isFinite(q)?String(q):"null";case "boolean":case "null":return String(q);case "object":if(!q)return"null";h+=d;r=[];if(Object.prototype.toString.apply(q)==="[object Array]"){x=q.length;for(g=0;g<x;g+=1)r[g]=a(g,q)||"null";u=r.length===0?"[]":h?"[\n"+h+r.join(",\n"+h)+"\n"+y+"]":
"["+r.join(",")+"]";h=y;return u}if(j&&typeof j=="object"){x=j.length;for(g=0;g<x;g+=1)typeof j[g]=="string"&&(k=j[g],u=a(k,q),u&&r.push(e(k)+(h?": ":":")+u))}else for(k in q)Object.prototype.hasOwnProperty.call(q,k)&&(u=a(k,q),u&&r.push(e(k)+(h?": ":":")+u));u=r.length===0?"{}":h?"{\n"+h+r.join(",\n"+h)+"\n"+y+"}":"{"+r.join(",")+"}";h=y;return u}}function e(a){k.lastIndex=0;return k.test(a)?'"'+a.replace(k,function(a){var c=b[a];return typeof c=="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+
'"':'"'+a+'"'}function c(a){return a<10?"0"+a:a}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var g=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
k=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,d,b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;typeof JSON.stringify!="function"&&(JSON.stringify=function(b,c,e){var g;h="";d="";if(typeof e=="number")for(g=0;g<e;g+=1)d+=" ";else typeof e=="string"&&(d=e);j=c;if(!c||typeof c=="function"||typeof c=="object"&&typeof c.length=="number")return a("",{"":b});throw Error("JSON.stringify");
});typeof JSON.parse!="function"&&(JSON.parse=function(a,b){function c(a,d){var e,g,h=a[d];if(h&&typeof h=="object")for(e in h)Object.prototype.hasOwnProperty.call(h,e)&&(g=c(h,e),g!==void 0?h[e]=g:delete h[e]);return b.call(a,d,h)}var d;a=String(a);g.lastIndex=0;g.test(a)&&(a=a.replace(g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),typeof b=="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");})})();
SockJS=function(){var a=document,e=window,c={},g=function(){};g.prototype.addEventListener=function(a,b){this._listeners||(this._listeners={});a in this._listeners||(this._listeners[a]=[]);var d=this._listeners[a];c.arrIndexOf(d,b)===-1&&d.push(b)};g.prototype.removeEventListener=function(a,b){if(this._listeners&&a in this._listeners){var d=this._listeners[a],e=c.arrIndexOf(d,b);e!==-1&&(d.length>1?this._listeners[a]=d.slice(0,e).concat(d.slice(e+1)):delete this._listeners[a])}};g.prototype.dispatchEvent=
function(a){var b=a.type,c=Array.prototype.slice.call(arguments,0);this["on"+b]&&this["on"+b].apply(this,c);if(this._listeners&&b in this._listeners)for(var d=0;d<this._listeners[b].length;d++)this._listeners[b][d].apply(this,c)};var k=function(a,b){this.type=a;if(typeof b!="undefined")for(var c in b)b.hasOwnProperty(c)&&(this[c]=b[c])};k.prototype.toString=function(){var a=[],b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];typeof c=="function"&&(c="[function]");a.push(b+"="+c)}return"SimpleEvent("+
a.join(", ")+")"};var h=function(a){this._events=a||[];this._listeners={}};h.prototype.emit=function(a){this._verifyType(a);if(!this._nuked){var b=Array.prototype.slice.call(arguments,1);this["on"+a]&&this["on"+a].apply(this,b);if(a in this._listeners)for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].apply(this,b)}};h.prototype.on=function(a,b){this._verifyType(a);this._nuked||(a in this._listeners||(this._listeners[a]=[]),this._listeners[a].push(b))};h.prototype._verifyType=function(a){c.arrIndexOf(this._events,
a)===-1&&c.log("Event "+JSON.stringify(a)+" not listed "+JSON.stringify(this._events)+" in "+this)};h.prototype.nuke=function(){this._nuked=!0;for(var a=0;a<this._events.length;a++)delete this[this._events[a]];this._listeners={}};c.random_string=function(a,b){var b=b||37,c,d=[];for(c=0;c<a;c++)d.push("abcdefghijklmnopqrstuvwxyz0123456789_".substr(Math.floor(Math.random()*b),1));return d.join("")};c.random_number=function(a){return Math.floor(Math.random()*a)};c.random_number_string=function(a){var b=
(""+(a-1)).length;return(Array(b+1).join("0")+c.random_number(a)).slice(-b)};c.getOrigin=function(a){a+="/";return a.split("/").slice(0,3).join("/")};c.isSameOriginUrl=function(a,b){return b||(b=e.location.href),a.split("/").slice(0,3).join("/")===b.split("/").slice(0,3).join("/")};c.getParentDomain=function(a){return/^[0-9.]*$/.test(a)?a:/^\[/.test(a)?a:!/[.]/.test(a)?a:a.split(".").slice(1).join(".")};c.objectExtend=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};c.polluteGlobalNamespace=
function(){"_jp"in e||(e._jp={})};c.closeFrame=function(a,b){return"c"+JSON.stringify([a,b])};c.userSetCode=function(a){return a===1E3||a>=3E3&&a<=4999};c.countRTO=function(a){var b;return a>100?b=3*a:b=a+200,b};c.log=function(){e.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)};c.bind=function(a,b){return a.bind?a.bind(b):function(){return a.apply(b,arguments)}};c.flatUrl=function(a){return a.indexOf("?")===-1&&a.indexOf("#")===-1};c.amendUrl=function(b){var d=a.location;
if(!b)throw Error("Wrong url for SockJS");if(!c.flatUrl(b))throw Error("Only basic urls are supported in SockJS");return b.indexOf("//")===0&&(b=d.protocol+b),b.indexOf("/")===0&&(b=d.protocol+"//"+d.host+b),b=b.replace(/[/]+$/,""),b};c.arrIndexOf=function(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1};c.arrSkip=function(a,b){var d=c.arrIndexOf(a,b);return d===-1?a.slice():a.slice(0,d).concat(a.slice(d+1))};c.isArray=Array.isArray||function(a){return{}.toString.call(a).indexOf("Array")>=
0};c.delay=function(a,b){return typeof a=="function"&&(b=a,a=0),setTimeout(b,a)};var d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b={"\x00":"\\u0000","\u0001":"\\u0001","\u0002":"\\u0002","\u0003":"\\u0003","\u0004":"\\u0004","\u0005":"\\u0005","\u0006":"\\u0006","\u0007":"\\u0007","\u0008":"\\b","\t":"\\t","\n":"\\n","\u000b":"\\u000b","\u000c":"\\f","\r":"\\r","\u000e":"\\u000e","\u000f":"\\u000f","\u0010":"\\u0010",
"\u0011":"\\u0011","\u0012":"\\u0012","\u0013":"\\u0013","\u0014":"\\u0014","\u0015":"\\u0015","\u0016":"\\u0016","\u0017":"\\u0017","\u0018":"\\u0018","\u0019":"\\u0019","\u001a":"\\u001a","\u001b":"\\u001b","\u001c":"\\u001c","\u001d":"\\u001d","\u001e":"\\u001e","\u001f":"\\u001f",'"':'\\"',"\\":"\\\\","\u007f":"\\u007f","\u0080":"\\u0080","\u0081":"\\u0081","\u0082":"\\u0082","\u0083":"\\u0083","\u0084":"\\u0084","\u0085":"\\u0085","\u0086":"\\u0086","\u0087":"\\u0087","\u0088":"\\u0088","\u0089":"\\u0089",
"\u008a":"\\u008a","\u008b":"\\u008b","\u008c":"\\u008c","\u008d":"\\u008d","\u008e":"\\u008e","\u008f":"\\u008f","\u0090":"\\u0090","\u0091":"\\u0091","\u0092":"\\u0092","\u0093":"\\u0093","\u0094":"\\u0094","\u0095":"\\u0095","\u0096":"\\u0096","\u0097":"\\u0097","\u0098":"\\u0098","\u0099":"\\u0099","\u009a":"\\u009a","\u009b":"\\u009b","\u009c":"\\u009c","\u009d":"\\u009d","\u009e":"\\u009e","\u009f":"\\u009f","\u00ad":"\\u00ad","\u0600":"\\u0600","\u0601":"\\u0601","\u0602":"\\u0602","\u0603":"\\u0603",
"\u0604":"\\u0604","\u070f":"\\u070f","\u17b4":"\\u17b4","\u17b5":"\\u17b5","\u200c":"\\u200c","\u200d":"\\u200d","\u200e":"\\u200e","\u200f":"\\u200f","\u2028":"\\u2028","\u2029":"\\u2029","\u202a":"\\u202a","\u202b":"\\u202b","\u202c":"\\u202c","\u202d":"\\u202d","\u202e":"\\u202e","\u202f":"\\u202f","\u2060":"\\u2060","\u2061":"\\u2061","\u2062":"\\u2062","\u2063":"\\u2063","\u2064":"\\u2064","\u2065":"\\u2065","\u2066":"\\u2066","\u2067":"\\u2067","\u2068":"\\u2068","\u2069":"\\u2069","\u206a":"\\u206a",
"\u206b":"\\u206b","\u206c":"\\u206c","\u206d":"\\u206d","\u206e":"\\u206e","\u206f":"\\u206f","\ufeff":"\\ufeff","\ufff0":"\\ufff0","\ufff1":"\\ufff1","\ufff2":"\\ufff2","\ufff3":"\\ufff3","\ufff4":"\\ufff4","\ufff5":"\\ufff5","\ufff6":"\\ufff6","\ufff7":"\\ufff7","\ufff8":"\\ufff8","\ufff9":"\\ufff9","\ufffa":"\\ufffa","\ufffb":"\\ufffb","\ufffc":"\\ufffc","\ufffd":"\\ufffd","\ufffe":"\\ufffe","\uffff":"\\uffff"},j=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,
l,m=JSON&&JSON.stringify||function(a){return d.lastIndex=0,d.test(a)&&(a=a.replace(d,function(a){return b[a]})),'"'+a+'"'},p=function(a){var b,c={},d=[];for(b=0;b<65536;b++)d.push(String.fromCharCode(b));return a.lastIndex=0,d.join("").replace(a,function(a){return c[a]="\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4),""}),a.lastIndex=0,c};c.quote=function(a){a=m(a);return j.lastIndex=0,j.test(a)?(l||(l=p(j)),a.replace(j,function(a){return l[a]})):a};var s="websocket,xdr-streaming,xhr-streaming,iframe-eventsource,iframe-htmlfile,xdr-polling,xhr-polling,iframe-xhr-polling,jsonp-polling".split(",");
c.probeProtocols=function(){for(var a={},b=0;b<s.length;b++){var c=s[b];a[c]=q[c]&&q[c].enabled()}return a};c.detectProtocols=function(a,b,c){var d={},e=[];b||(b=s);for(var f=0;f<b.length;f++){var g=b[f];d[g]=a[g]}var h=function(a){var b=a.shift();d[b]?e.push(b):a.length>0&&h(a)};return c.websocket!==!1&&h(["websocket"]),d["xhr-streaming"]&&!c.null_origin?e.push("xhr-streaming"):d["xdr-streaming"]&&!c.cookie_needed&&!c.null_origin?e.push("xdr-streaming"):h(["iframe-eventsource","iframe-htmlfile"]),
d["xhr-polling"]&&!c.null_origin?e.push("xhr-polling"):d["xdr-polling"]&&!c.cookie_needed&&!c.null_origin?e.push("xdr-polling"):h(["iframe-xhr-polling","jsonp-polling"]),e};c.createHook=function(){var a="a"+c.random_string(8);if(!("_sockjs_global"in e)){var b={};e._sockjs_global=function(a){return a in b||(b[a]={id:a,del:function(){delete b[a]}}),b[a]}}return e._sockjs_global(a)};c.attachMessage=function(a){c.attachEvent("message",a)};c.attachEvent=function(b,c){typeof e.addEventListener!="undefined"?
e.addEventListener(b,c,!1):(a.attachEvent("on"+b,c),e.attachEvent("on"+b,c))};c.detachMessage=function(a){c.detachEvent("message",a)};c.detachEvent=function(b,c){typeof e.addEventListener!="undefined"?e.removeEventListener(b,c,!1):(a.detachEvent("on"+b,c),e.detachEvent("on"+b,c))};var u={},x=!1,y=function(){for(var a in u)u[a](),delete u[a]};c.attachEvent("unload",function(){x||(x=!0,y())});c.unload_add=function(a){var b=c.random_string(8);return u[b]=a,x&&c.delay(y),b};c.unload_del=function(a){a in
u&&delete u[a]};c.createIframe=function(b,d){var e=a.createElement("iframe"),f,g,h=function(){clearTimeout(f);try{e.onload=null}catch(a){}e.onerror=null},j=function(){e&&(h(),setTimeout(function(){e&&e.parentNode.removeChild(e);e=null},0),c.unload_del(g))};return e.src=b,e.style.display="none",e.style.position="absolute",e.onerror=function(){e&&(j(),d("onerror"))},e.onload=function(){clearTimeout(f);f=setTimeout(function(){e&&(j(),d("onload timeout"))},2E3)},a.body.appendChild(e),f=setTimeout(function(){e&&
(j(),d("timeout"))},15E3),g=c.unload_add(j),{post:function(a,b){try{e&&e.contentWindow&&e.contentWindow.postMessage(a,b)}catch(c){}},cleanup:j,loaded:h}};c.createHtmlfile=function(a,b){var d=new ActiveXObject("htmlfile"),f,g,h,j=function(){clearTimeout(f)},l=function(){d&&(j(),c.unload_del(g),h.parentNode.removeChild(h),h=d=null,CollectGarbage())};d.open();d.write('<html><script>document.domain="'+document.domain+'";<\/script></html>');d.close();d.parentWindow._jp=e._jp;var k=d.createElement("div");
return d.body.appendChild(k),h=d.createElement("iframe"),k.appendChild(h),h.src=a,f=setTimeout(function(){d&&(l(),b("timeout"))},15E3),g=c.unload_add(l),{post:function(a,b){try{h&&h.contentWindow&&h.contentWindow.postMessage(a,b)}catch(c){}},cleanup:l,loaded:j}};var r=function(){};r.prototype=new h(["chunk","finish"]);r.prototype._start=function(a,b,d,f){var g=this;try{g.xhr=new XMLHttpRequest}catch(h){}if(!g.xhr)try{g.xhr=new e.ActiveXObject("Microsoft.XMLHTTP")}catch(j){}if(e.ActiveXObject||e.XDomainRequest)b+=
(b.indexOf("?")===-1?"?":"&")+"t="+ +new Date;g.unload_ref=c.unload_add(function(){g._cleanup(!0)});try{g.xhr.open(a,b,!0)}catch(l){g.emit("finish",0,"");g._cleanup();return}if(!f||!f.no_credentials)g.xhr.withCredentials="true";if(f&&f.headers)for(var k in f.headers)g.xhr.setRequestHeader(k,f.headers[k]);g.xhr.onreadystatechange=function(){if(g.xhr){var a=g.xhr;switch(a.readyState){case 3:try{var b=a.status,c=a.responseText}catch(d){}b===1223&&(b=204);c&&c.length>0&&g.emit("chunk",b,c);break;case 4:b=
a.status,b===1223&&(b=204),g.emit("finish",b,a.responseText),g._cleanup(!1)}}};g.xhr.send(d)};r.prototype._cleanup=function(a){if(this.xhr){c.unload_del(this.unload_ref);this.xhr.onreadystatechange=function(){};if(a)try{this.xhr.abort()}catch(b){}this.unload_ref=this.xhr=null}};r.prototype.close=function(){this.nuke();this._cleanup(!0)};(c.XHRCorsObject=function(){var a=this,b=arguments;c.delay(function(){a._start.apply(a,b)})}).prototype=new r;(c.XHRLocalObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,
b,d,{no_credentials:!0})})}).prototype=new r;r=c.XDRObject=function(a,b,d){var e=this;c.delay(function(){e._start(a,b,d)})};r.prototype=new h(["chunk","finish"]);r.prototype._start=function(a,b,d){var e=this,f=new XDomainRequest;b+=(b.indexOf("?")===-1?"?":"&")+"t="+ +new Date;var g=f.ontimeout=f.onerror=function(){e.emit("finish",0,"");e._cleanup(!1)};f.onprogress=function(){e.emit("chunk",200,f.responseText)};f.onload=function(){e.emit("finish",200,f.responseText);e._cleanup(!1)};e.xdr=f;e.unload_ref=
c.unload_add(function(){e._cleanup(!0)});try{e.xdr.open(a,b),e.xdr.send(d)}catch(h){g()}};r.prototype._cleanup=function(a){if(this.xdr){c.unload_del(this.unload_ref);this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null;if(a)try{this.xdr.abort()}catch(b){}this.unload_ref=this.xdr=null}};r.prototype.close=function(){this.nuke();this._cleanup(!0)};c.isXHRCorsCapable=function(){return e.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:e.XDomainRequest&&a.domain?2:P.enabled()?
3:4};var q=function(a,b,d){if(this===e)return new q(a,b,d);var f=this,g;f._options={devel:!1,debug:!1,protocols_whitelist:[],info:void 0,rtt:void 0};d&&c.objectExtend(f._options,d);f._base_url=c.amendUrl(a);f._server=f._options.server||c.random_number_string(1E3);f._options.protocols_whitelist&&f._options.protocols_whitelist.length?g=f._options.protocols_whitelist:(typeof b=="string"&&b.length>0?g=[b]:c.isArray(b)?g=b:g=null,g&&f._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.'));
f._protocols=[];f.protocol=null;f.readyState=q.CONNECTING;f._ir=W(f._base_url);f._ir.onfinish=function(a,b){f._ir=null;a?(f._options.info&&(a=c.objectExtend(a,f._options.info)),f._options.rtt&&(b=f._options.rtt),f._applyInfo(a,b,g),f._didClose()):f._didClose(1002,"Can't connect to server",!0)}};q.prototype=new g;q.version="0.3.4";q.CONNECTING=0;q.OPEN=1;q.CLOSING=2;q.CLOSED=3;q.prototype._debug=function(){this._options.debug&&c.log.apply(c,arguments)};q.prototype._dispatchOpen=function(){this.readyState===
q.CONNECTING?(this._transport_tref&&(clearTimeout(this._transport_tref),this._transport_tref=null),this.readyState=q.OPEN,this.dispatchEvent(new k("open"))):this._didClose(1006,"Server lost session")};q.prototype._dispatchMessage=function(a){this.readyState===q.OPEN&&this.dispatchEvent(new k("message",{data:a}))};q.prototype._dispatchHeartbeat=function(){this.readyState===q.OPEN&&this.dispatchEvent(new k("heartbeat",{}))};q.prototype._didClose=function(a,b,d){var e=this;if(e.readyState!==q.CONNECTING&&
e.readyState!==q.OPEN&&e.readyState!==q.CLOSING)throw Error("INVALID_STATE_ERR");e._ir&&(e._ir.nuke(),e._ir=null);e._transport&&(e._transport.doCleanup(),e._transport=null);var f=new k("close",{code:a,reason:b,wasClean:c.userSetCode(a)});if(!c.userSetCode(a)&&e.readyState===q.CONNECTING&&!d){if(e._try_next_protocol(f))return;f=new k("close",{code:2E3,reason:"All transports failed",wasClean:!1,last_event:f})}e.readyState=q.CLOSED;c.delay(function(){e.dispatchEvent(f)})};q.prototype._didMessage=function(a){switch(a.slice(0,
1)){case "o":this._dispatchOpen();break;case "a":for(var a=JSON.parse(a.slice(1)||"[]"),b=0;b<a.length;b++)this._dispatchMessage(a[b]);break;case "m":a=JSON.parse(a.slice(1)||"null");this._dispatchMessage(a);break;case "c":a=JSON.parse(a.slice(1)||"[]");this._didClose(a[0],a[1]);break;case "h":this._dispatchHeartbeat()}};q.prototype._try_next_protocol=function(b){var d=this;for(d.protocol&&(d._debug("Closed transport:",d.protocol,""+b),d.protocol=null),d._transport_tref&&(clearTimeout(d._transport_tref),
d._transport_tref=null);;){b=d.protocol=d._protocols.shift();if(!b)return!1;if(q[b]&&q[b].need_body===!0&&(!a.body||typeof a.readyState!="undefined"&&a.readyState!=="complete"))return d._protocols.unshift(b),d.protocol="waiting-for-load",c.attachEvent("load",function(){d._try_next_protocol()}),!0;if(q[b]&&q[b].enabled(d._options)){d._transport_tref=c.delay((d._options.rto||0)*(q[b].roundTrips||1)||5E3,function(){d.readyState===q.CONNECTING&&d._didClose(2007,"Transport timeouted")});var e=c.random_string(8),
e=d._base_url+"/"+d._server+"/"+e;return d._debug("Opening transport:",b," url:"+e," RTO:"+d._options.rto),d._transport=new q[b](d,e,d._base_url),!0}d._debug("Skipping transport:",b)}};q.prototype.close=function(a,b){if(a&&!c.userSetCode(a))throw Error("INVALID_ACCESS_ERR");return this.readyState!==q.CONNECTING&&this.readyState!==q.OPEN?!1:(this.readyState=q.CLOSING,this._didClose(a||1E3,b||"Normal closure"),!0)};q.prototype.send=function(a){if(this.readyState===q.CONNECTING)throw Error("INVALID_STATE_ERR");
return this.readyState===q.OPEN&&this._transport.doSend(c.quote(""+a)),!0};q.prototype._applyInfo=function(b,d,e){this._options.info=b;this._options.rtt=d;this._options.rto=c.countRTO(d);this._options.info.null_origin=!a.domain;d=c.probeProtocols();this._protocols=c.detectProtocols(d,e,b)};r=q.websocket=function(a,b){var d=this,f=b+"/websocket";f.slice(0,5)==="https"?f="wss"+f.slice(5):f="ws"+f.slice(4);d.ri=a;d.url=f;d.ws=new (e.WebSocket||e.MozWebSocket)(d.url);d.ws.onmessage=function(a){d.ri._didMessage(a.data)};
d.unload_ref=c.unload_add(function(){d.ws.close()});d.ws.onclose=function(){d.ri._didMessage(c.closeFrame(1006,"WebSocket connection broken"))}};r.prototype.doSend=function(a){this.ws.send("["+a+"]")};r.prototype.doCleanup=function(){var a=this.ws;a&&(a.onmessage=a.onclose=null,a.close(),c.unload_del(this.unload_ref),this.unload_ref=this.ri=this.ws=null)};r.enabled=function(){return!!e.WebSocket||!!e.MozWebSocket};r.roundTrips=2;var B=function(){};B.prototype.send_constructor=function(a){this.send_buffer=
[];this.sender=a};B.prototype.doSend=function(a){this.send_buffer.push(a);this.send_stop||this.send_schedule()};B.prototype.send_schedule_wait=function(){var a=this,b;a.send_stop=function(){a.send_stop=null;clearTimeout(b)};b=c.delay(25,function(){a.send_stop=null;a.send_schedule()})};B.prototype.send_schedule=function(){var a=this;if(a.send_buffer.length>0){var b="["+a.send_buffer.join(",")+"]";a.send_stop=a.sender(a.trans_url,b,function(b,c){a.send_stop=null;b===!1?a.ri._didClose(1006,"Sending error "+
c):a.send_schedule_wait()});a.send_buffer=[]}};B.prototype.send_destructor=function(){this._send_stop&&this._send_stop();this._send_stop=null};var U=function(b,d,e){if(!("_send_form"in this)){var f=this._send_form=a.createElement("form"),g=this._send_area=a.createElement("textarea");g.name="d";f.style.display="none";f.style.position="absolute";f.method="POST";f.enctype="application/x-www-form-urlencoded";f.acceptCharset="UTF-8";f.appendChild(g);a.body.appendChild(f)}var f=this._send_form,g=this._send_area,
h="a"+c.random_string(8);f.target=h;f.action=b+"/jsonp_send?i="+h;var j;try{j=a.createElement('<iframe name="'+h+'">')}catch(l){j=a.createElement("iframe"),j.name=h}j.id=h;f.appendChild(j);j.style.display="none";try{g.value=d}catch(k){c.log("Your browser is seriously broken. Go home! "+k.message)}f.submit();var m=function(){if(j.onerror)j.onreadystatechange=j.onerror=j.onload=null,c.delay(500,function(){j.parentNode.removeChild(j);j=null}),g.value="",e(!0)};return j.onerror=j.onload=m,j.onreadystatechange=
function(){j.readyState=="complete"&&m()},m},J=function(a){return function(b,c,d){return(new a("POST",b+"/xhr_send",c)).onfinish=function(a){d(a===200||a===204,"http status "+a)},function(a){d(!1,a)}}},E=function(b,d){var e,f=a.createElement("script"),g,h=function(a){g&&(g.parentNode.removeChild(g),g=null);f&&(clearTimeout(e),f.parentNode.removeChild(f),f.onreadystatechange=f.onerror=f.onload=f.onclick=null,f=null,d(a),d=null)},j=!1,l=null;f.id="a"+c.random_string(8);f.src=b;f.type="text/javascript";
f.charset="UTF-8";f.onerror=function(){l||(l=setTimeout(function(){j||h(c.closeFrame(1006,"JSONP script loaded abnormally (onerror)"))},1E3))};f.onload=function(){h(c.closeFrame(1006,"JSONP script loaded abnormally (onload)"))};f.onreadystatechange=function(){if(/loaded|closed/.test(f.readyState)){if(f&&f.htmlFor&&f.onclick){j=!0;try{f.onclick()}catch(a){}}f&&h(c.closeFrame(1006,"JSONP script loaded abnormally (onreadystatechange)"))}};if(typeof f.async=="undefined"&&a.attachEvent)if(/opera/i.test(navigator.userAgent))g=
a.createElement("script"),g.text="try{var a = document.getElementById('"+f.id+"'); if(a)a.onerror();}catch(x){};",f.async=g.async=!1;else{try{f.htmlFor=f.id,f.event="onclick"}catch(k){}f.async=!0}typeof f.async!="undefined"&&(f.async=!0);e=setTimeout(function(){h(c.closeFrame(1006,"JSONP script loaded abnormally (timeout)"))},35E3);var m=a.getElementsByTagName("head")[0];return m.insertBefore(f,m.firstChild),g&&m.insertBefore(g,m.firstChild),h},r=q["jsonp-polling"]=function(a,b){c.polluteGlobalNamespace();
this.ri=a;this.trans_url=b;this.send_constructor(U);this._schedule_recv()};r.prototype=new B;r.prototype._schedule_recv=function(){var a=this;a._recv_stop=X(a.trans_url+"/jsonp",E,function(b){a._recv_stop=null;b&&(a._is_closing||a.ri._didMessage(b));a._is_closing||a._schedule_recv()})};r.enabled=function(){return!0};r.need_body=!0;r.prototype.doCleanup=function(){this._is_closing=!0;this._recv_stop&&this._recv_stop();this.ri=this._recv_stop=null;this.send_destructor()};var X=function(a,b,d){var f=
"a"+c.random_string(6),a=a+"?c="+escape("_jp."+f),g=0,b=b(a,function(a){switch(g){case 0:delete e._jp[f];d(a);break;case 1:d(a);g=2;break;case 2:delete e._jp[f]}});e._jp[f]=b;return function(){e._jp[f]&&(g=1,e._jp[f](c.closeFrame(1E3,"JSONP user aborted read")))}},r=function(){};r.prototype=new B;r.prototype.run=function(a,b,c,d,e){this.ri=a;this.trans_url=b;this.send_constructor(J(e));this.poll=new O(a,d,b+c,e)};r.prototype.doCleanup=function(){this.poll&&(this.poll.abort(),this.poll=null)};var M=
q["xhr-streaming"]=function(a,b){this.run(a,b,"/xhr_streaming",H,c.XHRCorsObject)};M.prototype=new r;M.enabled=function(){return e.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!/opera/i.test(navigator.userAgent)};M.roundTrips=2;M.need_body=!0;B=q["xdr-streaming"]=function(a,b){this.run(a,b,"/xhr_streaming",H,c.XDRObject)};B.prototype=new r;B.enabled=function(){return!!e.XDomainRequest};B.roundTrips=2;var Q=q["xhr-polling"]=function(a,b){this.run(a,b,"/xhr",H,c.XHRCorsObject)};Q.prototype=
new r;Q.enabled=M.enabled;Q.roundTrips=2;M=q["xdr-polling"]=function(a,b){this.run(a,b,"/xhr",H,c.XDRObject)};M.prototype=new r;M.enabled=B.enabled;M.roundTrips=2;var P=function(){};P.prototype.i_constructor=function(a,b,d){var e=this;e.ri=a;e.origin=c.getOrigin(d);e.base_url=d;e.trans_url=b;a=d+"/iframe.html";e.ri._options.devel&&(a+="?t="+ +new Date);e.window_id=c.random_string(8);a+="#"+e.window_id;e.iframeObj=c.createIframe(a,function(a){e.ri._didClose(1006,"Unable to load an iframe ("+a+")")});
e.onmessage_cb=c.bind(e.onmessage,e);c.attachMessage(e.onmessage_cb)};P.prototype.doCleanup=function(){if(this.iframeObj){c.detachMessage(this.onmessage_cb);try{this.iframeObj.iframe.contentWindow&&this.postMessage("c")}catch(a){}this.iframeObj.cleanup();this.iframeObj=null;this.onmessage_cb=this.iframeObj=null}};P.prototype.onmessage=function(a){if(a.origin===this.origin){var b=a.data.slice(0,8),c=a.data.slice(8,9),a=a.data.slice(9);if(b===this.window_id)switch(c){case "s":this.iframeObj.loaded();
this.postMessage("s",JSON.stringify([q.version,this.protocol,this.trans_url,this.base_url]));break;case "t":this.ri._didMessage(a)}}};P.prototype.postMessage=function(a,b){this.iframeObj.post(this.window_id+a+(b||""),this.origin)};P.prototype.doSend=function(a){this.postMessage("m",a)};P.enabled=function(){var a=navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Konqueror")!==-1;return(typeof e.postMessage=="function"||typeof e.postMessage=="object")&&!a};var t,z=function(a,b){parent!==
e?parent.postMessage(t+a+(b||""),"*"):c.log("Can't postMessage, no parent window.",a,b)},C=function(){};C.prototype._didClose=function(a,b){z("t",c.closeFrame(a,b))};C.prototype._didMessage=function(a){z("t",a)};C.prototype._doSend=function(a){this._transport.doSend(a)};C.prototype._doCleanup=function(){this._transport.doCleanup()};c.parent_origin=void 0;q.bootstrap_iframe=function(){var b;t=a.location.hash.slice(1);c.attachMessage(function(a){if(a.source===parent&&(typeof c.parent_origin=="undefined"&&
(c.parent_origin=a.origin),a.origin===c.parent_origin)){var d=a.data.slice(0,8),f=a.data.slice(8,9),a=a.data.slice(9);if(d===t)switch(f){case "s":var g=JSON.parse(a),d=g[0],f=g[1],a=g[2],g=g[3];d!==q.version&&c.log('Incompatibile SockJS! Main site uses: "'+d+'", the iframe: "'+q.version+'".');if(!c.flatUrl(a)||!c.flatUrl(g)){c.log("Only basic urls are supported in SockJS");break}if(!c.isSameOriginUrl(a)||!c.isSameOriginUrl(g)){c.log("Can't connect to different domain from within an iframe. ("+JSON.stringify([e.location.href,
a,g])+")");break}b=new C;b._transport=new C[f](b,a,g);break;case "m":b._doSend(a);break;case "c":b&&b._doCleanup(),b=null}}});z("s")};var f=function(a,b){var d=this;c.delay(function(){d.doXhr(a,b)})};f.prototype=new h(["finish"]);f.prototype.doXhr=function(a,b){var d=this,e=(new Date).getTime(),f=new b("GET",a+"/info"),g=c.delay(8E3,function(){f.ontimeout()});f.onfinish=function(a,b){clearTimeout(g);g=null;if(a===200){var c=(new Date).getTime()-e,f=JSON.parse(b);typeof f!="object"&&(f={});d.emit("finish",
f,c)}else d.emit("finish")};f.ontimeout=function(){f.close();d.emit("finish")}};var R=function(b){var d=this,e=function(){var a=new P;a.protocol="w-iframe-info-receiver";var c=function(b){typeof b=="string"&&b.substr(0,1)==="m"?(b=JSON.parse(b.substr(1)),d.emit("finish",b[0],b[1])):d.emit("finish");a.doCleanup();a=null};a.i_constructor({_options:{},_didClose:c,_didMessage:c},b,b)};a.body?e():c.attachEvent("load",e)};R.prototype=new h(["finish"]);var F=function(){var a=this;c.delay(function(){a.emit("finish",
{},2E3)})};F.prototype=new h(["finish"]);var W=function(a){if(c.isSameOriginUrl(a))return new f(a,c.XHRLocalObject);switch(c.isXHRCorsCapable()){case 1:return new f(a,c.XHRLocalObject);case 2:return new f(a,c.XDRObject);case 3:return new R(a);default:return new F}};(C["w-iframe-info-receiver"]=function(a,b,d){(new f(d,c.XHRLocalObject)).onfinish=function(b,c){a._didMessage("m"+JSON.stringify([b,c]));a._didClose()}}).prototype.doCleanup=function(){};h=q["iframe-eventsource"]=function(){this.protocol=
"w-iframe-eventsource";this.i_constructor.apply(this,arguments)};h.prototype=new P;h.enabled=function(){return"EventSource"in e&&P.enabled()};h.need_body=!0;h.roundTrips=3;(C["w-iframe-eventsource"]=function(a,b){this.run(a,b,"/eventsource",K,c.XHRLocalObject)}).prototype=new r;h=q["iframe-xhr-polling"]=function(){this.protocol="w-iframe-xhr-polling";this.i_constructor.apply(this,arguments)};h.prototype=new P;h.enabled=function(){return e.XMLHttpRequest&&P.enabled()};h.need_body=!0;h.roundTrips=3;
(C["w-iframe-xhr-polling"]=function(a,b){this.run(a,b,"/xhr",H,c.XHRLocalObject)}).prototype=new r;h=q["iframe-htmlfile"]=function(){this.protocol="w-iframe-htmlfile";this.i_constructor.apply(this,arguments)};h.prototype=new P;h.enabled=function(){return P.enabled()};h.need_body=!0;h.roundTrips=3;(C["w-iframe-htmlfile"]=function(a,b){this.run(a,b,"/htmlfile",N,c.XHRLocalObject)}).prototype=new r;var O=function(a,b,c,d){this.ri=a;this.Receiver=b;this.recv_url=c;this.AjaxObject=d;this._scheduleRecv()};
O.prototype._scheduleRecv=function(){var a=this,b=a.poll=new a.Receiver(a.recv_url,a.AjaxObject),c=0;b.onmessage=function(b){c+=1;a.ri._didMessage(b.data)};b.onclose=function(c){var n;a.poll=(n=b.onmessage=b.onclose=null,b=n);a.poll_is_closing||(c.reason==="permanent"?a.ri._didClose(1006,"Polling error ("+c.reason+")"):a._scheduleRecv())}};O.prototype.abort=function(){this.poll_is_closing=!0;this.poll&&this.poll.abort()};var K=function(a){var b=this,d=new EventSource(a);d.onmessage=function(a){b.dispatchEvent(new k("message",
{data:unescape(a.data)}))};b.es_close=d.onerror=function(a,e){var f=e?"user":d.readyState!==2?"network":"permanent";b.es_close=d.onmessage=d.onerror=null;d.close();d=null;c.delay(200,function(){b.dispatchEvent(new k("close",{reason:f}))})}};K.prototype=new g;K.prototype.abort=function(){this.es_close&&this.es_close({},!0)};var G,N=function(a){var b=this;c.polluteGlobalNamespace();b.id="a"+c.random_string(6,26);a+=(a.indexOf("?")===-1?"?":"&")+"c="+escape("_jp."+b.id);if(G===void 0)if("ActiveXObject"in
e)try{G=!!new ActiveXObject("htmlfile")}catch(d){}else G=!1;var f=G?c.createHtmlfile:c.createIframe,g;e._jp[b.id]={start:function(){g.loaded()},message:function(a){b.dispatchEvent(new k("message",{data:a}))},stop:function(){b.iframe_close({},"network")}};b.iframe_close=function(a,c){g.cleanup();b.iframe_close=g=null;delete e._jp[b.id];b.dispatchEvent(new k("close",{reason:c}))};g=f(a,function(){b.iframe_close({},"permanent")})};N.prototype=new g;N.prototype.abort=function(){this.iframe_close&&this.iframe_close({},
"user")};var H=function(a,b){var c=this,d=0;c.xo=new b("POST",a,null);c.xo.onchunk=function(a,b){if(a===200)for(;;){var e=b.slice(d),f=e.indexOf("\n");if(f===-1)break;d+=f+1;e=e.slice(0,f);c.dispatchEvent(new k("message",{data:e}))}};c.xo.onfinish=function(a,b){c.xo.onchunk(a,b);c.xo=null;c.dispatchEvent(new k("close",{reason:a===200?"network":"permanent"}))}};return H.prototype=new g,H.prototype.abort=function(){this.xo&&(this.xo.close(),this.dispatchEvent(new k("close",{reason:"user"})),this.xo=
null)},q.getUtils=function(){return c},q.getIframeTransport=function(){return P},q}();"_sockjs_onload"in window&&setTimeout(_sockjs_onload,1);typeof define=="function"&&define.amd&&define("sockjs",[],function(){return SockJS});
(function(a){a.fn.alphanumeric=function(e){e=a.extend({repl:""},e);return this.each(function(){var c=this,g=function(g){var h=g.data.self,d=!1,b=[8,9,27,35,36,37,38,39,40,46],j=a(h).val(),l=RegExp(e.repl);e.match!=void 0&&(l=RegExp(e.match,"g"),d=!0);var m=j.replace(l,"")+"";d&&(m=j.match(l)!=null?j.match(l)[0]:"");if(g!=void 0&&g.manual==void 0){var j=!1,p=null,p=g.charCode?String.fromCharCode(g.charCode):String.fromCharCode(g.which),s=p.replace(l,"");d&&(s=p.match(l)==null?"":p.match(l)[0],s==""&&
p.replace(l,"")=="-"&&(s="-"),s==""&&p.replace(l,"")=="."&&(s="."));var p=s,u="",p=u=p==""?a(c).val():a(c).val().substring(0,c.selectionStart)+p+a(c).val().substring(c.selectionEnd);d?(d=p.match(l)==null?j=!0:p.match(l)[0],p!=d&&(j=!0),p=="-"&&(j=!1),p=d):p=p.replace(l,"");d=p-0;if(!isNaN(d)&&(e.min!=void 0&&m!=""&&parseInt(d)<e.min||e.max!=void 0&&m!=""&&parseInt(d)>e.max))j=!0;e.maxChars!=void 0&&e.maxChars!=""&&(s="",!isNaN(e.maxChars)&&m.length<e.maxChars?(s="true",j=!1):(m=m.substring(0,e.maxChars),
a(h).val(m)));if(s==""){var h=g.keyCode,j=!0,x;for(x in b)h==b[x]&&(j=!1)}j&&g.preventDefault()}};a(this).unbind("keypress click change keyup",g);g({data:{self:c},manual:!0});a(this).bind("keypress click change keyup",{self:c},g)})};a.fn.numericParse=function(e){var c="^\\s*[+-]?\\d*";e!=void 0&&e.isFloat!=void 0&&e.isFloat==!0&&(c="^\\s*[+-]?\\d+(\\.?)\\d*");e!=void 0&&e.isPercent!=void 0&&e.isPercent==!0&&(c=void 0,e=a.extend({repl:/[\D\.,]+/g,min:0,max:100},e));e=a.extend({match:c},e);return this.each(function(){a(this).alphanumeric(e)})};
a.fn.alpha=function(e){e=a.extend({repl:/[\d]+/g},e);return this.each(function(){a(this).alphanumeric(e)})};a.fn.maxChars=function(e){var c={maxChars:e,repl:""};return this.each(function(){a(this).alphanumeric(c)})}})(jQuery);
(function(a,e,c){function g(p){(p=p===c?!1:p)?(e.clearInterval(d),d=null):d=e[b](function(){e.clearInterval(d);e.ac_force_resize_check!==!0&&k.each(function(){var b=a(this);if(b[0]&&b[0]==e||b.is(":visible")){var c=b.width(),d=b.height(),g=a.data(this,l);if(g!=null&&(c!==g.w||d!==g.h))g.w=c,g.h=d,b.trigger(j,[c,d,!1])}});g()},h[m])}var k=a([]),h=a.resize=a.extend(a.resize,{}),d,b="setTimeout",j="resize",l=j+"-special-event",m="delay";h[m]=250;h.throttleWindow=!0;a.event.special[j]={setup:function(){if(!h.throttleWindow&&
this[b])return!1;var j=a(this);k=k.add(j);a.data(this,l,{w:j.width(),h:j.height()});k.length===1&&(g(),e.PhoneGap!==c&&document.addEventListener("deviceready",function(){document.addEventListener("pause",function(){g(!0)},!1);document.addEventListener("resume",function(){d===null&&g()},!1)},!1))},teardown:function(){if(!h.throttleWindow&&this[b])return!1;var c=a(this);k=k.not(c);c.removeData(l);k.length||(clearTimeout(d),d=null)},add:function(d){function e(b,d,h,j){if(j!==!1){var k=a(this),m=a.data(this,
l);m.w=d!==c?d:k.width();m.h=h!==c?h:k.height()}g.apply(this,arguments);return!1}if(!h.throttleWindow&&this[b])return!1;var g;if(a.isFunction(d))return g=d,e;else g=d.handler,d.handler=e}}})(jQuery,this);function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE;this.data=a}QR8bitByte.prototype={getLength:function(){return this.data.length},write:function(a){for(var e=0;e<this.data.length;e++)a.put(this.data.charCodeAt(e),8)}};
function QRCode(a,e){this.typeNumber=a;this.errorCorrectLevel=e;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}
QRCode.prototype={addData:function(a){this.dataList.push(new QR8bitByte(a));this.dataCache=null},isDark:function(a,e){if(a<0||this.moduleCount<=a||e<0||this.moduleCount<=e)throw Error(a+","+e);return this.modules[a][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){for(var a=1,a=1;a<40;a++){for(var e=QRRSBlock.getRSBlocks(a,this.errorCorrectLevel),c=new QRBitBuffer,g=0,k=0;k<e.length;k++)g+=e[k].dataCount;for(k=0;k<this.dataList.length;k++)e=this.dataList[k],
c.put(e.mode,4),c.put(e.getLength(),QRUtil.getLengthInBits(e.mode,a)),e.write(c);if(c.getLengthInBits()<=g*8)break}this.typeNumber=a}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,e){this.moduleCount=this.typeNumber*4+17;this.modules=Array(this.moduleCount);for(var c=0;c<this.moduleCount;c++){this.modules[c]=Array(this.moduleCount);for(var g=0;g<this.moduleCount;g++)this.modules[c][g]=null}this.setupPositionProbePattern(0,0);this.setupPositionProbePattern(this.moduleCount-7,0);this.setupPositionProbePattern(0,
this.moduleCount-7);this.setupPositionAdjustPattern();this.setupTimingPattern();this.setupTypeInfo(a,e);this.typeNumber>=7&&this.setupTypeNumber(a);if(this.dataCache==null)this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList);this.mapData(this.dataCache,e)},setupPositionProbePattern:function(a,e){for(var c=-1;c<=7;c++)if(!(a+c<=-1||this.moduleCount<=a+c))for(var g=-1;g<=7;g++)e+g<=-1||this.moduleCount<=e+g||(this.modules[a+c][e+g]=0<=c&&c<=6&&(g==0||g==6)||0<=g&&g<=
6&&(c==0||c==6)||2<=c&&c<=4&&2<=g&&g<=4?!0:!1)},getBestMaskPattern:function(){for(var a=0,e=0,c=0;c<8;c++){this.makeImpl(!0,c);var g=QRUtil.getLostPoint(this);if(c==0||a>g)a=g,e=c}return e},createMovieClip:function(a,e,c){a=a.createEmptyMovieClip(e,c);this.make();for(e=0;e<this.modules.length;e++)for(var c=e*1,g=0;g<this.modules[e].length;g++){var k=g*1;this.modules[e][g]&&(a.beginFill(0,100),a.moveTo(k,c),a.lineTo(k+1,c),a.lineTo(k+1,c+1),a.lineTo(k,c+1),a.endFill())}return a},setupTimingPattern:function(){for(var a=
8;a<this.moduleCount-8;a++)this.modules[a][6]==null&&(this.modules[a][6]=a%2==0);for(a=8;a<this.moduleCount-8;a++)this.modules[6][a]==null&&(this.modules[6][a]=a%2==0)},setupPositionAdjustPattern:function(){for(var a=QRUtil.getPatternPosition(this.typeNumber),e=0;e<a.length;e++)for(var c=0;c<a.length;c++){var g=a[e],k=a[c];if(this.modules[g][k]==null)for(var h=-2;h<=2;h++)for(var d=-2;d<=2;d++)this.modules[g+h][k+d]=h==-2||h==2||d==-2||d==2||h==0&&d==0?!0:!1}},setupTypeNumber:function(a){for(var e=
QRUtil.getBCHTypeNumber(this.typeNumber),c=0;c<18;c++){var g=!a&&(e>>c&1)==1;this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=g}for(c=0;c<18;c++)g=!a&&(e>>c&1)==1,this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=g},setupTypeInfo:function(a,e){for(var c=QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|e),g=0;g<15;g++){var k=!a&&(c>>g&1)==1;g<6?this.modules[g][8]=k:g<8?this.modules[g+1][8]=k:this.modules[this.moduleCount-15+g][8]=k}for(g=0;g<15;g++)k=!a&&(c>>g&1)==1,g<8?this.modules[8][this.moduleCount-
g-1]=k:g<9?this.modules[8][15-g-1+1]=k:this.modules[8][15-g-1]=k;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,e){for(var c=-1,g=this.moduleCount-1,k=7,h=0,d=this.moduleCount-1;d>0;d-=2)for(d==6&&d--;;){for(var b=0;b<2;b++)if(this.modules[g][d-b]==null){var j=!1;h<a.length&&(j=(a[h]>>>k&1)==1);QRUtil.getMask(e,g,d-b)&&(j=!j);this.modules[g][d-b]=j;k--;k==-1&&(h++,k=7)}g+=c;if(g<0||this.moduleCount<=g){g-=c;c=-c;break}}}};QRCode.PAD0=236;QRCode.PAD1=17;
QRCode.createData=function(a,e,c){for(var e=QRRSBlock.getRSBlocks(a,e),g=new QRBitBuffer,k=0;k<c.length;k++){var h=c[k];g.put(h.mode,4);g.put(h.getLength(),QRUtil.getLengthInBits(h.mode,a));h.write(g)}for(k=a=0;k<e.length;k++)a+=e[k].dataCount;if(g.getLengthInBits()>a*8)throw Error("code length overflow. ("+g.getLengthInBits()+">"+a*8+")");for(g.getLengthInBits()+4<=a*8&&g.put(0,4);g.getLengthInBits()%8!=0;)g.putBit(!1);for(;;){if(g.getLengthInBits()>=a*8)break;g.put(QRCode.PAD0,8);if(g.getLengthInBits()>=
a*8)break;g.put(QRCode.PAD1,8)}return QRCode.createBytes(g,e)};
QRCode.createBytes=function(a,e){for(var c=0,g=0,k=0,h=Array(e.length),d=Array(e.length),b=0;b<e.length;b++){var j=e[b].dataCount,l=e[b].totalCount-j,g=Math.max(g,j),k=Math.max(k,l);h[b]=Array(j);for(var m=0;m<h[b].length;m++)h[b][m]=255&a.buffer[m+c];c+=j;m=QRUtil.getErrorCorrectPolynomial(l);j=(new QRPolynomial(h[b],m.getLength()-1)).mod(m);d[b]=Array(m.getLength()-1);for(m=0;m<d[b].length;m++)l=m+j.getLength()-d[b].length,d[b][m]=l>=0?j.get(l):0}for(m=b=0;m<e.length;m++)b+=e[m].totalCount;c=Array(b);
for(m=j=0;m<g;m++)for(b=0;b<e.length;b++)m<h[b].length&&(c[j++]=h[b][m]);for(m=0;m<k;m++)for(b=0;b<e.length;b++)m<d[b].length&&(c[j++]=d[b][m]);return c};
for(var QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},QRErrorCorrectLevel={L:1,M:0,Q:3,H:2},QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,
30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var e=a<<10;QRUtil.getBCHDigit(e)-QRUtil.getBCHDigit(QRUtil.G15)>=
0;)e^=QRUtil.G15<<QRUtil.getBCHDigit(e)-QRUtil.getBCHDigit(QRUtil.G15);return(a<<10|e)^QRUtil.G15_MASK},getBCHTypeNumber:function(a){for(var e=a<<12;QRUtil.getBCHDigit(e)-QRUtil.getBCHDigit(QRUtil.G18)>=0;)e^=QRUtil.G18<<QRUtil.getBCHDigit(e)-QRUtil.getBCHDigit(QRUtil.G18);return a<<12|e},getBCHDigit:function(a){for(var e=0;a!=0;)e++,a>>>=1;return e},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,e,c){switch(a){case QRMaskPattern.PATTERN000:return(e+c)%
2==0;case QRMaskPattern.PATTERN001:return e%2==0;case QRMaskPattern.PATTERN010:return c%3==0;case QRMaskPattern.PATTERN011:return(e+c)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(e/2)+Math.floor(c/3))%2==0;case QRMaskPattern.PATTERN101:return e*c%2+e*c%3==0;case QRMaskPattern.PATTERN110:return(e*c%2+e*c%3)%2==0;case QRMaskPattern.PATTERN111:return(e*c%3+(e+c)%2)%2==0;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var e=new QRPolynomial([1],0),c=0;c<
a;c++)e=e.multiply(new QRPolynomial([1,QRMath.gexp(c)],0));return e},getLengthInBits:function(a,e){if(1<=e&&e<10)switch(a){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw Error("mode:"+a);}else if(e<27)switch(a){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw Error("mode:"+a);}else if(e<41)switch(a){case QRMode.MODE_NUMBER:return 14;
case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw Error("mode:"+a);}else throw Error("type:"+e);},getLostPoint:function(a){for(var e=a.getModuleCount(),c=0,g=0;g<e;g++)for(var k=0;k<e;k++){for(var h=0,d=a.isDark(g,k),b=-1;b<=1;b++)if(!(g+b<0||e<=g+b))for(var j=-1;j<=1;j++)k+j<0||e<=k+j||b==0&&j==0||d==a.isDark(g+b,k+j)&&h++;h>5&&(c+=3+h-5)}for(g=0;g<e-1;g++)for(k=0;k<e-1;k++)if(h=0,a.isDark(g,k)&&h++,a.isDark(g+1,k)&&h++,a.isDark(g,
k+1)&&h++,a.isDark(g+1,k+1)&&h++,h==0||h==4)c+=3;for(g=0;g<e;g++)for(k=0;k<e-6;k++)a.isDark(g,k)&&!a.isDark(g,k+1)&&a.isDark(g,k+2)&&a.isDark(g,k+3)&&a.isDark(g,k+4)&&!a.isDark(g,k+5)&&a.isDark(g,k+6)&&(c+=40);for(k=0;k<e;k++)for(g=0;g<e-6;g++)a.isDark(g,k)&&!a.isDark(g+1,k)&&a.isDark(g+2,k)&&a.isDark(g+3,k)&&a.isDark(g+4,k)&&!a.isDark(g+5,k)&&a.isDark(g+6,k)&&(c+=40);for(k=h=0;k<e;k++)for(g=0;g<e;g++)a.isDark(g,k)&&h++;a=Math.abs(100*h/e/e-50)/5;c+=a*10;return c}},QRMath={glog:function(a){if(a<1)throw Error("glog("+
a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;a<0;)a+=255;for(;a>=256;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<<i;for(i=8;i<256;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;i<255;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;
function QRPolynomial(a,e){if(a.length==void 0)throw Error(a.length+"/"+e);for(var c=0;c<a.length&&a[c]==0;)c++;this.num=Array(a.length-c+e);for(var g=0;g<a.length-c;g++)this.num[g]=a[g+c]}
QRPolynomial.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var e=Array(this.getLength()+a.getLength()-1),c=0;c<this.getLength();c++)for(var g=0;g<a.getLength();g++)e[c+g]^=QRMath.gexp(QRMath.glog(this.get(c))+QRMath.glog(a.get(g)));return new QRPolynomial(e,0)},mod:function(a){if(this.getLength()-a.getLength()<0)return this;for(var e=QRMath.glog(this.get(0))-QRMath.glog(a.get(0)),c=Array(this.getLength()),g=0;g<this.getLength();g++)c[g]=
this.get(g);for(g=0;g<a.getLength();g++)c[g]^=QRMath.gexp(QRMath.glog(a.get(g))+e);return(new QRPolynomial(c,0)).mod(a)}};function QRRSBlock(a,e){this.totalCount=a;this.dataCount=e}
QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,
44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,
75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,
117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,
75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,
54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];
QRRSBlock.getRSBlocks=function(a,e){var c=QRRSBlock.getRsBlockTable(a,e);if(c==void 0)throw Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+e);for(var g=c.length/3,k=[],h=0;h<g;h++)for(var d=c[h*3+0],b=c[h*3+1],j=c[h*3+2],l=0;l<d;l++)k.push(new QRRSBlock(b,j));return k};
QRRSBlock.getRsBlockTable=function(a,e){switch(e){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[(a-1)*4+3]}};function QRBitBuffer(){this.buffer=[];this.length=0}
QRBitBuffer.prototype={get:function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1},put:function(a,e){for(var c=0;c<e;c++)this.putBit((a>>>e-c-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(a){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0);a&&(this.buffer[e]|=128>>>this.length%8);this.length++}};
(function(a){a.fn.qrcode=function(e){typeof e==="string"&&(e={text:e});e=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},e);return this.each(function(){var c;if(e.render=="canvas"){c=new QRCode(e.typeNumber,e.correctLevel);c.addData(e.text);c.make();var g=document.createElement("canvas");g.width=e.width;g.height=e.height;for(var k=g.getContext("2d"),h=e.width/c.getModuleCount(),d=e.height/c.getModuleCount(),
b=0;b<c.getModuleCount();b++)for(var j=0;j<c.getModuleCount();j++){k.fillStyle=c.isDark(b,j)?e.foreground:e.background;var l=Math.ceil((j+1)*h)-Math.floor(j*h),m=Math.ceil((b+1)*h)-Math.floor(b*h);k.fillRect(Math.round(j*h),Math.round(b*d),l,m)}}else{c=new QRCode(e.typeNumber,e.correctLevel);c.addData(e.text);c.make();g=a("<table></table>").css("width",e.width+"px").css("height",e.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",e.background);k=e.width/c.getModuleCount();
h=e.height/c.getModuleCount();for(d=0;d<c.getModuleCount();d++){b=a("<tr></tr>").css("height",h+"px").appendTo(g);for(j=0;j<c.getModuleCount();j++)a("<td></td>").css("width",k+"px").css("background-color",c.isDark(d,j)?e.foreground:e.background).appendTo(b)}}c=g;a(c).appendTo(this)})}})(jQuery);if(!this.JSON)this.JSON={};
(function(){function a(a){return a<10?"0"+a:a}function e(a){k.lastIndex=0;return k.test(a)?'"'+a.replace(k,function(a){var c=b[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,b){var g,k,u,x,y=h,r,q=b[a];q&&typeof q==="object"&&typeof q.toJSON==="function"&&(q=q.toJSON(a));typeof j==="function"&&(q=j.call(b,a,q));switch(typeof q){case "string":return e(q);case "number":return isFinite(q)?String(q):"null";case "boolean":case "null":return String(q);
case "object":if(!q)return"null";h+=d;r=[];if(Object.prototype.toString.apply(q)==="[object Array]"){x=q.length;for(g=0;g<x;g+=1)r[g]=c(g,q)||"null";u=r.length===0?"[]":h?"[\n"+h+r.join(",\n"+h)+"\n"+y+"]":"["+r.join(",")+"]";h=y;return u}if(j&&typeof j==="object"){x=j.length;for(g=0;g<x;g+=1)k=j[g],typeof k==="string"&&(u=c(k,q))&&r.push(e(k)+(h?": ":":")+u)}else for(k in q)Object.hasOwnProperty.call(q,k)&&(u=c(k,q))&&r.push(e(k)+(h?": ":":")+u);u=r.length===0?"{}":h?"{\n"+h+r.join(",\n"+h)+"\n"+
y+"}":"{"+r.join(",")+"}";h=y;return u}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var g=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
k=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h,d,b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;if(typeof JSON.stringify!=="function")JSON.stringify=function(a,b,e){var g;d=h="";if(typeof e==="number")for(g=0;g<e;g+=1)d+=" ";else typeof e==="string"&&(d=e);if((j=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return c("",
{"":a})};if(typeof JSON.parse!=="function")JSON.parse=function(a,b){function c(a,d){var e,g,h=a[d];if(h&&typeof h==="object")for(e in h)Object.hasOwnProperty.call(h,e)&&(g=c(h,e),g!==void 0?h[e]=g:delete h[e]);return b.call(a,d,h)}var d,a=String(a);g.lastIndex=0;g.test(a)&&(a=a.replace(g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),typeof b==="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");}})();
(function(){var a=!1,e=/xyz/.test(function(){})?/\b_super\b/:/.*/;jQuery.Class=function(){};jQuery.Class.create=function(c){function g(){if(!a&&g.prototype.init)return g.prototype.init.apply(this,arguments)}var k=this.prototype;a=!0;var h=new this;a=!1;for(var d in c)h[d]=typeof c[d]=="function"&&typeof k[d]=="function"&&e.test(c[d])?function(a,c){return function(){var d=this._super;this._super=k[a];var e=c.apply(this,arguments);this._super=d;return e}}(d,c[d]):c[d];g.prototype=h;g.prototype.constructor=
g;g.extend=arguments.callee;g.__ac_class_inited=!0;return g}})();!window.AC&&(AC={});
(function(a){a.extend=function(e,c){var g=function(){},c=a.initClass(c);g.prototype=c.prototype;e.prototype=new g;e.prototype.constructor=e;e._sc=c.prototype};a.copyExtension=function(a,c){for(var g in c)a[g]=c[g]};a.initClass=function(a){if(a.__ac_class_init&&!a.__ac_class_inited)a=a.__ac_class_init(),a.__ac_class_inited=!0,AC.Core.lang().registerWidgetLang(AC.Core.Widgets().getWidgetLangs(a));return a};a.classFactory=function(e){a.initClass(e);return new e([].slice.call(arguments,1))}})(AC);
window.jQuery&&function(a){a.extend({xml2json:function(e,c){function g(b,d){if(!b)return null;var e="",p=null;k(b.localName||b.nodeName);b.childNodes&&b.childNodes.length>0&&a.each(b.childNodes,function(a,b){var c=b.nodeType,d=k(b.localName||b.nodeName),j=b.text||b.nodeValue||"";c!=8&&(c==3||c==4||!d?j.match(/^\s+$/)||(e+=j.replace(/^\s+/,"").replace(/\s+$/,"")):(p=p||{},p[d]?(jQuery.isArray(p[d])||(p[d]=h(p[d])),p[d][p[d].length]=g(b,!0)):p[d]=g(b)))});b.attributes&&b.attributes.length>0&&(p=p||
{},a.each(b.attributes,function(a,b){var c=k(b.name),d=b.value;p[c]?(p[c].length||(p[c]=h(p[c])),p[c][p[c].length]=d):p[c]=d}));if(p){p=a.extend(e!=""?new String(e):{},p||{});if(e=p.text?(typeof p.text=="object"?p.text:[p.text||""]).concat([e]):e)p.text=e;e=""}var s=p||e;if(c){e&&(s={});if(e=s.text||e||"")s.text=e;d||(s=h(s))}return s}if(!e)return{};var k=function(a){return String(a||"").replace(/-/g,"_")},h=function(a){jQuery.isArray(a)||(a=[a]);return a};typeof e=="string"&&(e=a.text2xml(e));if(e.nodeType){if(e.nodeType==
3||e.nodeType==4)return e.nodeValue;var d=e.nodeType==9?e.documentElement:e,b=g(d,!0),d=e=null;return b}},text2xml:function(e){var c;try{var g=a.browser.msie?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser;g.async=!1}catch(k){throw Error("XML Parser could not be instantiated");}try{c=a.browser.msie?g.loadXML(e)?g:!1:g.parseFromString(e,"text/xml")}catch(h){throw Error("Error parsing XML string");}return c}})}(jQuery);
(function(a){function e(a,b){a=String(a).replace(/[^0-9a-f]/gi,"");a.length<6&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);var b=b||0,c="#",d,e;for(e=0;e<3;e++)d=parseInt(a.substr(e*2,2),16),d=Math.round(Math.min(Math.max(0,d+d*b),255)).toString(16),c+=("00"+d).substr(d.length);return c}function c(c,d){var g=["-webkit-","-moz-","-ms-","-o-",""],j=a(c),k=a.extend({},b,d),x=k.text!==void 0?k.text:j.text(),x=a.trim(x)==""?"&nbsp;":x,y=a((k.image?'<img src="'+k.image+'" alt="'+x+'" />':"")+'<span class="fancy-inner" style="'+
(k.padding?"padding:"+k.padding:"")+'">'+x+"</span>"),x=a('<style id="fancy_style_'+c.id+'" type="text/css"></style>').appendTo("head"),r=".fancy-"+c.id+" {",q=".fancy-"+c.id+" .fancy-inner {",B=".ac-desktop .fancy-"+c.id+":hover {",U=".fancy-"+c.id+":after {",J=".ac-desktop .fancy-"+c.id+":hover:after {",E=".fancy-pressed-"+c.id+" {",X=".ac-desktop .fancy-pressed-"+c.id+":hover {",M=".fancy-pressed-"+c.id+":after {",Q=".ac-desktop .fancy-pressed-"+c.id+":hover:after {",P=k.disabled||j.hasClass("fancy-disabled");
j.html(y).addClass("fancy fancy-"+c.id+" "+k.cssClass+(P?" fancy-disabled":"")+(k.image?" fancy-img":"")).bind(h+".fancy",function(){!P&&k.pushEffect&&a(this).addClass("fancy-active")}).bind("vclick.fancy",function(){!P&&k.sticky&&a(this).toggleClass("fancy-pressed-"+c.id)});var t=y.innerWidth()-y.width()+4;k.width&&k.width-t>y.width()&&y.width(k.width-t);var t=!0,z=k.fill,C=a.isArray(z)?z[0]:z,f=a.isArray(z)?z[1]?z[1]:e(C,-0.4):z,R=e(C,-0.5),F=e(C,-0.1);hover2=e(f,-0.1);K=y.outerWidth();height=j.outerHeight();
w2=Math.round(K/2);w1=w2*2;var W="background-color:"+C+";",O="background-color:"+F+";";if(k.image)q+="margin-top:-"+Math.round(a(".fancy-inner",j).height()/2)+"px;";else{switch(k.shape){case "circle":y.css("padding",y.css("padding-top"));var K=y.outerWidth(),G=Math.round(K/2),j=y.width()-2;r+="border-color:"+R+";";q+="height:"+j+"px;line-height:"+j+"px;";a.each(g,function(a,b){r+=b+"border-radius:"+G+"px;";q+=b+"border-radius:"+G+"px;"});break;case "rounded":r+="border-color:"+R+";";a.each(g,function(a,
b){r+=b+"border-radius:5px;";q+=b+"border-radius:5px;"});break;case "triangle-n":y.css("padding","0 0 0.5em 0");t=!1;r+="width:0;height:0;border:0;border-bottom:"+w1+"px solid "+C+";border-left:"+w2+"px solid transparent;border-right:"+w2+"px solid transparent;";q+="width:"+w1+"px;position:absolute;bottom:-"+w1+"px;left:-"+w2+"px;border:0;";B+="border-color: transparent transparent "+F+" !important;";break;case "triangle-e":y.css("padding","0 0 0 0.5em");t=!1;r+="width:0;height:0;border:0;border-left:"+
w1+"px solid "+C+";border-top:"+w2+"px solid transparent;border-bottom:"+w2+"px solid transparent;";q+="position:absolute;top:-"+w2+"px;left:-"+w1+"px;line-height:"+w1+"px;border:0;";B+="border-color: transparent transparent transparent "+F+" !important;";break;case "triangle-s":y.css("padding","0.5em 0 0 0");t=!1;r+="width:0;height:0;border:0;border-top:"+w1+"px solid "+C+";border-left:"+w2+"px solid transparent;border-right:"+w2+"px solid transparent;";q+="width:"+w1+"px;position:absolute;top:-"+
w1+"px;left:-"+w2+"px;border:0;";B+="border-color:"+F+" transparent !important;";break;case "triangle-w":y.css("padding","0 0.5em 0 0");t=!1;r+="width:0;height:0;border:0;border-right:"+w1+"px solid "+C+";border-top:"+w2+"px solid transparent;border-bottom:"+w2+"px solid transparent;";q+="position:absolute;top:-"+w2+"px;right:-"+w1+"px;line-height:"+w1+"px;border:0;";B+="border-color:transparent "+F+" transparent !important;";break;case "ios-w":j.addClass("fancy-ios fancy-ios-w");j=Math.sqrt(height*
height/2)+1;r+="border-color:"+R+";margin-left:"+height/2+"px;";U+="height:"+(j-1)+"px;width:"+j+"px;left:-"+height*0.3125+"px;top:"+((height-j)/2-1.7)+"px;border-color:"+R+";";U+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+C+"), to("+f+"));";J+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+F+"), to("+hover2+"));";M+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+f+"), to("+C+"));";Q+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+
hover2+"), to("+F+"));";a.each(g,function(a,b){U+=W+"background-image:"+b+"linear-gradient(top left,"+C+","+f+");";J+=O+"background-image:"+b+"linear-gradient(top left,"+F+","+hover2+");";M+=W+"background-image:"+b+"linear-gradient(top left,"+f+","+C+");";Q+=O+"background-image:"+b+"linear-gradient(top left,"+hover2+","+F+");"});break;case "ios-e":j.addClass("fancy-ios fancy-ios-e");j=Math.sqrt(height*height/2)+1;r+="border-color:"+R+";margin-right:"+height/2+"px;";U+="height:"+(j-1)+"px;width:"+
j+"px;right:-"+height*0.3125+"px;top:"+((height-j)/2-1.7)+"px;border-color:"+R+";";U+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+C+"), to("+f+"));";J+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+F+"), to("+hover2+"));";M+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+f+"), to("+C+"));";Q+="background-image:-webkit-gradient(linear, 0 0, 100% 100%, from("+hover2+"), to("+F+"));";a.each(g,function(a,b){U+=W+"background-image:"+b+"linear-gradient(top left,"+
C+","+f+");";J+=O+"background-image:"+b+"linear-gradient(top left,"+F+","+hover2+");";M+=W+"background-image:"+b+"linear-gradient(top left,"+f+","+C+");";Q+=O+"background-image:"+b+"linear-gradient(top left,"+hover2+","+F+");"});break;default:r+="border-color:"+R+";"}t&&(r+=W,B+=O,E+="background-color:"+f+";",X+="background-color:"+hover2+";",a.isArray(z)&&(r+="background-image:-webkit-gradient(linear, 0 0, 0 100%, from("+C+"), to("+f+"));",B+="background-image:-webkit-gradient(linear, 0 0, 0 100%, from("+
F+"), to("+hover2+"));",E+="background-image:-webkit-gradient(linear, 0 0, 0 100%, from("+f+"), to("+C+"));",X+="background-image:-webkit-gradient(linear, 0 0, 0 100%, from("+hover2+"), to("+F+"));",a.each(g,function(a,b){r+="background-image:"+b+"linear-gradient("+C+","+f+");";B+="background-image:"+b+"linear-gradient("+F+","+hover2+");";E+="background-image:"+b+"linear-gradient("+f+","+C+");";X+="background-image:"+b+"linear-gradient("+hover2+","+F+");"})))}g=r+"}"+q+"}"+B+"}"+E+"}"+X+"}"+U+"}"+
J+"}"+M+"}"+Q+"}";x[0].styleSheet?x[0].styleSheet.cssText=g:x.html(g);this.settings=k}var g=(new Date).getTime(),k="ontouchstart"in window,h=k?"touchstart":"mousedown",d={},b={shape:"rectangle",fill:["#08C"],cssClass:"",pushEffect:!0,sticky:!1,disabled:!1},j={init:function(a){a===void 0&&(a={});return this.each(function(){if(!this.id)g+=1,this.id="fancy"+g;d[this.id]=new c(this,a)})},destroy:function(){return this.each(function(){var b=d[this.id];b&&(a("#fancy_style_"+this.id).remove(),a(this).unbind(".fancy").removeClass("fancy fancy-img fancy-ios fancy-ios-w fancy-ios-e fancy-pressed-"+
this.id+" fancy-"+this.id+" "+b.settings.cssClass))})}};a(document).bind(k?"touchend":"mouseup",function(){a(".fancy").removeClass("fancy-active")});a.fn.fancy=function(b){if(j[b])return j[b].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof b==="object"||!b)return j.init.apply(this,arguments);else a.error("Unknown method")};a.fancy={darken:function(a,b){return e(a,b)}}})(jQuery);
(function(a){a.fn._oldRemove=a.fn.remove;a.fn._oldEmpty=a.fn.empty;a.fn.createUnknownTag=function(e){var c=null;a.browser.msie?document.body.getElementsByTagName(e).length==0&&(c=document.createElement(e)):c="<"+e+">";return c};a.fn.appendStyle=function(a,c){c!==void 0&&c!==null&&document.removeChild(c);if(a!="")return c=document.createElement("style"),c.type="text/css",c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(a)),document.getElementsByTagName("head")[0].appendChild(c),
c};return a})(jQuery);
if(jQuery.browser.msie)document.oldDocumentOnCreateStyleSheet=document.createStyleSheet,document.createStyleSheet=function(a,e){if(document.styleSheets.length<31)return document.oldDocumentOnCreateStyleSheet(a,e);else{var c=document.createElement(!a?"STYLE":a),g=document.documentElement.firstChild.appendChild(c);g.owningElement=c;g.addRule=document.styleSheets[0].addRule;return g}},jQuery().ready(function(){setTimeout(function(){if(!document.styleSheets.ex_canvas_){var a=document.createStyleSheet();a.owningElement.id=
"ex_canvas_";a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}},1E3)});window.cordova?window.PhoneGap=window.cordova:window.Cordova?window.PhoneGap=window.Cordova:window.phonegap?window.PhoneGap=window.phonegap:window.Phonegap?window.PhoneGap=window.Phonegap:window.phoneGap&&(window.PhoneGap=window.phoneGap);
(function(a){var e=a.event.add,c=a.event.remove;a.event.add=function(c,k,h,d){typeof c.wiziHandlerAddEvent=="function"&&c.wiziHandlerAddEvent(k);return e.apply(a.event,arguments)};a.event.remove=function(e,k,h,d){typeof e.wiziHandlerRemoveEvent=="function"&&e.wiziHandlerRemoveEvent(k);return c.apply(a.event,arguments)};return a})(jQuery);
(function(a){var e=!1===a.support.boxModel&&a.support.objectAll&&$support.leadingWhitespace;a.jGrowl=function(c,e){a("#jGrowl").size()==0&&a('<div id="jGrowl"></div>').addClass(e&&e.position?e.position:a.jGrowl.defaults.position).appendTo("body");a("#jGrowl").jGrowl(c,e)};a.fn.jGrowl=function(c,e){if(a.isFunction(this.each)){var k=arguments;return this.each(function(){a(this).data("jGrowl.instance")==void 0&&(a(this).data("jGrowl.instance",a.extend(new a.fn.jGrowl,{notifications:[],element:null,interval:null})),
a(this).data("jGrowl.instance").startup(this));a.isFunction(a(this).data("jGrowl.instance")[c])?a(this).data("jGrowl.instance")[c].apply(a(this).data("jGrowl.instance"),a.makeArray(k).slice(1)):a(this).data("jGrowl.instance").create(c,e)})}};a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3E3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"&times;",
closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(c,e){e=a.extend({},this.defaults,e);if(typeof e.speed!=="undefined")e.openDuration=e.speed,e.closeDuration=e.speed;this.notifications.push({message:c,options:e});e.log.apply(this.element,[this.element,c,e])},render:function(c){var e=
this,k=c.message,h=c.options;h.themeState=h.themeState==""?"":"ui-state-"+h.themeState;c=a('<div class="jGrowl-notification '+h.themeState+" ui-corner-all"+(h.group!=void 0&&h.group!=""?" "+h.group:"")+'"><div class="jGrowl-close">'+h.closeTemplate+'</div><div class="jGrowl-header">'+h.header+'</div><div class="jGrowl-message">'+k+"</div></div>").data("jGrowl",h).addClass(h.theme).children("div.jGrowl-close").bind("click.jGrowl",function(){a(this).parent().trigger("jGrowl.close")}).parent();a(c).bind("mouseover.jGrowl",
function(){a("div.jGrowl-notification",e.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){a("div.jGrowl-notification",e.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){h.beforeOpen.apply(c,[c,k,h,e.element])!=!1&&a(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){h.open.apply(c,[c,k,h,e.element])!=!1&&(h.glue=="after"?a("div.jGrowl-notification:last",e.element).after(c):a("div.jGrowl-notification:first",e.element).before(c),a(this).animate(h.animateOpen,
h.openDuration,h.easing,function(){a.support.opacity===!1&&this.style.removeAttribute("filter");if(a(this).data("jGrowl")!=null)a(this).data("jGrowl").created=new Date;a(this).trigger("jGrowl.afterOpen")}))}).bind("jGrowl.afterOpen",function(){h.afterOpen.apply(c,[c,k,h,e.element])}).bind("jGrowl.beforeClose",function(){h.beforeClose.apply(c,[c,k,h,e.element])!=!1&&a(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){a(this).data("jGrowl.pause",!0);a(this).animate(h.animateClose,h.closeDuration,
h.easing,function(){a.isFunction(h.close)?h.close.apply(c,[c,k,h,e.element])!==!1&&a(this).remove():a(this).remove()})}).trigger("jGrowl.beforeOpen");h.corners!=""&&a.fn.corner!=void 0&&a(c).corner(h.corners);a("div.jGrowl-notification:parent",e.element).size()>1&&a("div.jGrowl-closer",e.element).size()==0&&this.defaults.closer!=!1&&a(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this.defaults.theme).appendTo(e.element).animate(this.defaults.animateOpen,
this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().trigger("jGrowl.beforeClose");a.isFunction(e.defaults.closer)&&e.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])})},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){a(this).data("jGrowl")!=void 0&&a(this).data("jGrowl").created!=void 0&&a(this).data("jGrowl").created.getTime()+parseInt(a(this).data("jGrowl").life)<(new Date).getTime()&&a(this).data("jGrowl").sticky!=
!0&&(a(this).data("jGrowl.pause")==void 0||a(this).data("jGrowl.pause")!=!0)&&a(this).trigger("jGrowl.beforeClose")});this.notifications.length>0&&(this.defaults.pool==0||a(this.element).find("div.jGrowl-notification:parent").size()<this.defaults.pool)&&this.render(this.notifications.shift());a(this.element).find("div.jGrowl-notification:parent").size()<2&&a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})},
startup:function(c){this.element=a(c).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){a(c).data("jGrowl.instance").update()},parseInt(this.defaults.check));e&&a(this.element).addClass("ie6")},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)},close:function(){a(this.element).find("div.jGrowl-notification").each(function(){a(this).trigger("jGrowl.beforeClose")})}});
a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);
(function(a,e,c,g,k,h){function d(a,b){var c=typeof a[b];return c=="function"||!!(c=="object"&&a[b])||c=="unknown"}function b(){if(!x(navigator.plugins)&&typeof navigator.plugins["Shockwave Flash"]=="object"){var a=navigator.plugins["Shockwave Flash"].description;a&&!x(navigator.mimeTypes)&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(W=a.match(/\d+/g))}if(!W){var b;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),
W=Array.prototype.slice.call(b.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),1)}catch(c){}}if(!W)return!1;a=parseInt(W[0],10);b=parseInt(W[1],10);O=a>9&&b>0;return!0}function j(){if(!N){N=!0;for(var a=0;a<H.length;a++)H[a]();H.length=0}}function l(a,b){N?a.call(b):H.push(function(){a.call(b)})}function m(){var a=parent;if(t!=="")for(var b=0,c=t.split(".");b<c.length;b++)a=a[c[b]];return a.easyXDM}function p(a){var b=a.toLowerCase().match(M),a=b[2],c=b[3],b=b[4]||"";if(a=="http:"&&b==":80"||
a=="https:"&&b==":443")b="";return a+"//"+c+b}function s(a){a=a.replace(P,"$1/");if(!a.match(/^(http||https):\/\//)){var b=a.substring(0,1)==="/"?"":c.pathname;b.substring(b.length-1)!=="/"&&(b=b.substring(0,b.lastIndexOf("/")+1));a=c.protocol+"//"+c.host+b+a}for(;Q.test(a);)a=a.replace(Q,"");return a}function u(a,b){var c="",d=a.indexOf("#");d!==-1&&(c=a.substring(d),a=a.substring(0,d));var d=[],e;for(e in b)b.hasOwnProperty(e)&&d.push(e+"="+h(b[e]));return a+(F?"#":a.indexOf("?")==-1?"?":"&")+d.join("&")+
c}function x(a){return typeof a==="undefined"}function y(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(e in a?(d=b[e],typeof d==="object"?y(a[e],d,c):c||(a[e]=b[e])):a[e]=b[e]);return a}function r(a){if(x(R)){var b=e.body.appendChild(e.createElement("form")),c=b.appendChild(e.createElement("input"));c.name=f+"TEST"+E;R=c!==b.elements[c.name];e.body.removeChild(b)}R?b=e.createElement('<iframe name="'+a.props.name+'"/>'):(b=e.createElement("IFRAME"),b.name=a.props.name);b.id=b.name=a.props.name;delete a.props.name;
if(typeof a.container=="string")a.container=e.getElementById(a.container);if(!a.container)y(b.style,{position:"absolute",top:"-2000px",left:"0px"}),a.container=e.body;c=a.props.src;a.props.src="javascript:false";y(b,a.props);b.border=b.frameBorder=0;b.allowTransparency=!0;a.container.appendChild(b);a.onLoad&&K(b,"load",a.onLoad);if(a.usePost){var d=a.container.appendChild(e.createElement("form")),g;d.target=b.name;d.action=c;d.method="POST";if(typeof a.usePost==="object")for(var h in a.usePost)if(a.usePost.hasOwnProperty(h))R?
g=e.createElement('<input name="'+h+'"/>'):(g=e.createElement("INPUT"),g.name=h),g.value=a.usePost[h],d.appendChild(g);d.submit();d.parentNode.removeChild(d)}else b.src=c;a.props.src=c;return b}function q(f){var g=f.protocol,h;f.isHost=f.isHost||x(L.xdm_p);F=f.hash||!1;if(!f.props)f.props={};if(f.isHost)f.remote=s(f.remote),f.channel=f.channel||"default"+E++,f.secret=Math.random().toString(16).substring(2),x(g)&&(g=p(c.href)==p(f.remote)?"4":d(a,"postMessage")||d(e,"postMessage")?"1":f.swf&&d(a,"ActiveXObject")&&
b()?"6":navigator.product==="Gecko"&&"frameElement"in a&&navigator.userAgent.indexOf("WebKit")==-1?"5":f.remoteHelper?"2":"0");else{f.channel=L.xdm_c.replace(/["'<>\\]/g,"");f.secret=L.xdm_s;f.remote=L.xdm_e.replace(/["'<>\\]/g,"");var g=L.xdm_p,j;if(j=f.acl){a:{j=f.acl;var l=f.remote;typeof j=="string"&&(j=[j]);for(var k,m=j.length;m--;)if(k=j[m],k=RegExp(k.substr(0,1)=="^"?k:"^"+k.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$"),k.test(l)){j=!0;break a}j=!1}j=!j}if(j)throw Error("Access denied for "+
f.remote);}f.protocol=f.protocol||g;switch(g){case "0":y(f,{interval:100,delay:2E3,useResize:!0,useParent:!1,usePolling:!1},!0);if(f.isHost){if(!f.local){g=c.protocol+"//"+c.host;h=e.body.getElementsByTagName("img");for(l=h.length;l--;)if(j=h[l],j.src.substring(0,g.length)===g){f.local=j.src;break}if(!f.local)f.local=a}g={xdm_c:f.channel,xdm_p:0};f.local===a?(f.usePolling=!0,f.useParent=!0,f.local=c.protocol+"//"+c.host+c.pathname+c.search,g.xdm_e=f.local,g.xdm_pa=1):g.xdm_e=s(f.local);if(f.container)f.useResize=
!1,g.xdm_po=1;f.remote=u(f.remote,g)}else y(f,{channel:L.xdm_c,remote:L.xdm_e,useParent:!x(L.xdm_pa),usePolling:!x(L.xdm_po),useResize:f.useParent?!1:f.useResize});h=[new z.stack.HashTransport(f),new z.stack.ReliableBehavior({}),new z.stack.QueueBehavior({encode:!0,maxLength:4E3-f.remote.length}),new z.stack.VerifyBehavior({initiate:f.isHost})];break;case "1":h=[new z.stack.PostMessageTransport(f)];break;case "2":f.remoteHelper=s(f.remoteHelper);h=[new z.stack.NameTransport(f),new z.stack.QueueBehavior,
new z.stack.VerifyBehavior({initiate:f.isHost})];break;case "3":h=[new z.stack.NixTransport(f)];break;case "4":h=[new z.stack.SameOriginTransport(f)];break;case "5":h=[new z.stack.FrameElementTransport(f)];break;case "6":W||b(),h=[new z.stack.FlashTransport(f)]}h.push(new z.stack.QueueBehavior({lazy:f.lazy,remove:!0}));return h}function B(a){for(var b,c={incoming:function(a,b){this.up.incoming(a,b)},outgoing:function(a,b){this.down.outgoing(a,b)},callback:function(a){this.up.callback(a)},init:function(){this.down.init()},
destroy:function(){this.down.destroy()}},d=0,e=a.length;d<e;d++){b=a[d];y(b,c,!0);if(d!==0)b.down=a[d-1];if(d!==e-1)b.up=a[d+1]}return b}function U(a){a.up.down=a.down;a.down.up=a.up;a.up=a.down=null}var J=this,E=Math.floor(Math.random()*1E4),X=Function.prototype,M=/^((http.?:)\/\/([^:\/\s]+)(:\d+)*)/,Q=/[\-\w]+\/\.\.\//,P=/([^:])\/\//g,t="",z={},C=a.easyXDM,f="easyXDM_",R,F=!1,W,O,K,G;if(d(a,"addEventListener"))K=function(a,b,c){a.addEventListener(b,c,!1)},G=function(a,b,c){a.removeEventListener(b,
c,!1)};else if(d(a,"attachEvent"))K=function(a,b,c){a.attachEvent("on"+b,c)},G=function(a,b,c){a.detachEvent("on"+b,c)};else throw Error("Browser not supported");var N=!1,H=[],o;"readyState"in e?(o=e.readyState,N=o=="complete"||~navigator.userAgent.indexOf("AppleWebKit/")&&(o=="loaded"||o=="interactive")):N=!!e.body;if(!N){if(d(a,"addEventListener"))K(e,"DOMContentLoaded",j);else if(K(e,"readystatechange",function(){e.readyState=="complete"&&j()}),e.documentElement.doScroll&&a===top){var v=function(){if(!N){try{e.documentElement.doScroll("left")}catch(a){g(v,
1);return}j()}};v()}K(a,"load",j)}var L=function(a){for(var a=a.substring(1).split("&"),b={},c,d=a.length;d--;)c=a[d].split("="),b[c[0]]=k(c[1]);return b}(/xdm_e=/.test(c.search)?c.search:c.hash),A=function(){var a={},b={a:[1,2,3]};if(typeof JSON!="undefined"&&typeof JSON.stringify==="function"&&JSON.stringify(b).replace(/\s/g,"")==='{"a":[1,2,3]}')return JSON;if(Object.toJSON&&Object.toJSON(b).replace(/\s/g,"")==='{"a":[1,2,3]}')a.stringify=Object.toJSON;if(typeof String.prototype.evalJSON==="function"&&
(b='{"a":[1,2,3]}'.evalJSON(),b.a&&b.a.length===3&&b.a[2]===3))a.parse=function(a){return a.evalJSON()};return a.stringify&&a.parse?(A=function(){return a},a):null};y(z,{version:"2.4.17.0",query:L,stack:{},apply:y,getJSONObject:A,whenReady:l,noConflict:function(b){a.easyXDM=C;(t=b)&&(f="easyXDM_"+t.replace(".","_")+"_");return z}});z.DomHelper={on:K,un:G,requiresJSON:function(b){typeof a.JSON=="object"&&a.JSON||e.write('<script type="text/javascript" src="'+b+'"><\/script>')}};(function(){var a={};
z.Fn={set:function(b,c){a[b]=c},get:function(b,c){var d=a[b];c&&delete a[b];return d}}})();z.Socket=function(a){var b=B(q(a).concat([{incoming:function(b,c){a.onMessage(b,c)},callback:function(b){if(a.onReady)a.onReady(b)}}])),c=p(a.remote);this.origin=p(a.remote);this.destroy=function(){b.destroy()};this.postMessage=function(a){b.outgoing(a,c)};b.init()};z.Rpc=function(a,b){if(b.local)for(var c in b.local)if(b.local.hasOwnProperty(c)){var d=b.local[c];typeof d==="function"&&(b.local[c]={method:d})}var e=
B(q(a).concat([new z.stack.RpcBehavior(this,b),{callback:function(b){if(a.onReady)a.onReady(b)}}]));this.origin=p(a.remote);this.destroy=function(){e.destroy()};e.init()};z.stack.SameOriginTransport=function(a){var b,d,e,h;return b={outgoing:function(a,b,c){e(a);c&&c()},destroy:function(){d&&(d.parentNode.removeChild(d),d=null)},onDOMReady:function(){h=p(a.remote);a.isHost?(y(a.props,{src:u(a.remote,{xdm_e:c.protocol+"//"+c.host+c.pathname,xdm_c:a.channel,xdm_p:4}),name:f+a.channel+"_provider"}),
d=r(a),z.Fn.set(a.channel,function(a){e=a;g(function(){b.up.callback(!0)},0);return function(a){b.up.incoming(a,h)}})):(e=m().Fn.get(a.channel,!0)(function(a){b.up.incoming(a,h)}),g(function(){b.up.callback(!0)},0))},init:function(){l(b.onDOMReady,b)}}};z.stack.FlashTransport=function(a){function b(a){g(function(){h.up.incoming(a,k)},0)}function d(b){var c=a.swf+"?host="+a.isHost,f="easyXDM_swf_"+Math.floor(Math.random()*1E4);z.Fn.set("flash_loaded"+b.replace(/[\-.]/g,"_"),function(){z.stack.FlashTransport[b].swf=
m=o.firstChild;for(var a=z.stack.FlashTransport[b].queue,c=0;c<a.length;c++)a[c]();a.length=0});a.swfContainer?o=typeof a.swfContainer=="string"?e.getElementById(a.swfContainer):a.swfContainer:(o=e.createElement("div"),y(o.style,O&&a.swfNoThrottle?{height:"20px",width:"20px",position:"fixed",right:0,top:0}:{height:"1px",width:"1px",position:"absolute",overflow:"hidden",right:0,top:0}),e.body.appendChild(o));var g="callback=flash_loaded"+b.replace(/[\-.]/g,"_")+"&proto="+J.location.protocol+"&domain="+
J.location.href.match(M)[3]+"&port="+(J.location.href.match(M)[4]||"")+"&ns="+t;o.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' height='20' width='20' type='application/x-shockwave-flash' id='"+f+"' data='"+c+"'><param name='allowScriptAccess' value='always'></param><param name='wmode' value='transparent'><param name='movie' value='"+c+"'></param><param name='flashvars' value='"+g+"'></param><embed type='application/x-shockwave-flash' FlashVars='"+g+"' allowScriptAccess='always' wmode='transparent' src='"+
c+"' height='1' width='1'></embed></object>"}var h,j,k,m,o;return h={outgoing:function(b,c,d){m.postMessage(a.channel,b.toString());d&&d()},destroy:function(){try{m.destroyChannel(a.channel)}catch(b){}m=null;j&&(j.parentNode.removeChild(j),j=null)},onDOMReady:function(){k=a.remote;z.Fn.set("flash_"+a.channel+"_init",function(){g(function(){h.up.callback(!0)})});z.Fn.set("flash_"+a.channel+"_onMessage",b);a.swf=s(a.swf);var e=a.swf.match(M)[3],l=function(){z.stack.FlashTransport[e].init=!0;m=z.stack.FlashTransport[e].swf;
m.createChannel(a.channel,a.secret,p(a.remote),a.isHost);a.isHost&&(O&&a.swfNoThrottle&&y(a.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),y(a.props,{src:u(a.remote,{xdm_e:p(c.href),xdm_c:a.channel,xdm_p:6,xdm_s:a.secret}),name:f+a.channel+"_provider"}),j=r(a))};z.stack.FlashTransport[e]&&z.stack.FlashTransport[e].init?l():z.stack.FlashTransport[e]?z.stack.FlashTransport[e].queue.push(l):(z.stack.FlashTransport[e]={queue:[l]},d(e))},init:function(){l(h.onDOMReady,h)}}};z.stack.PostMessageTransport=
function(b){function d(a){var f;if(a.origin)f=p(a.origin);else if(a.uri)f=p(a.uri);else if(a.domain)f=c.protocol+"//"+a.domain;else throw"Unable to retrieve the origin of the event";f==k&&a.data.substring(0,b.channel.length+1)==b.channel+" "&&e.up.incoming(a.data.substring(b.channel.length+1),f)}var e,h,j,k;return e={outgoing:function(a,c,d){j.postMessage(b.channel+" "+a,c||k);d&&d()},destroy:function(){G(a,"message",d);h&&(j=null,h.parentNode.removeChild(h),h=null)},onDOMReady:function(){k=p(b.remote);
if(b.isHost){var l=function(c){c.data==b.channel+"-ready"&&(j="postMessage"in h.contentWindow?h.contentWindow:h.contentWindow.document,G(a,"message",l),K(a,"message",d),g(function(){e.up.callback(!0)},0))};K(a,"message",l);y(b.props,{src:u(b.remote,{xdm_e:p(c.href),xdm_c:b.channel,xdm_p:1}),name:f+b.channel+"_provider"});h=r(b)}else K(a,"message",d),j="postMessage"in a.parent?a.parent:a.parent.document,j.postMessage(b.channel+"-ready",k),g(function(){e.up.callback(!0)},0)},init:function(){l(e.onDOMReady,
e)}}};z.stack.FrameElementTransport=function(b){var d,h,j,k;return d={outgoing:function(a,b,c){j.call(this,a);c&&c()},destroy:function(){h&&(h.parentNode.removeChild(h),h=null)},onDOMReady:function(){k=p(b.remote);if(b.isHost)y(b.props,{src:u(b.remote,{xdm_e:p(c.href),xdm_c:b.channel,xdm_p:5}),name:f+b.channel+"_provider"}),h=r(b),h.fn=function(a){delete h.fn;j=a;g(function(){d.up.callback(!0)},0);return function(a){d.up.incoming(a,k)}};else{if(e.referrer&&p(e.referrer)!=L.xdm_e)a.top.location=L.xdm_e;
j=a.frameElement.fn(function(a){d.up.incoming(a,k)});d.up.callback(!0)}},init:function(){l(d.onDOMReady,d)}}};z.stack.NameTransport=function(a){function b(c){k.contentWindow.sendMessage(c,a.remoteHelper+(j?"#_3":"#_2")+a.channel)}function c(){j?(++o===2||!j)&&h.up.callback(!0):(b("ready"),h.up.callback(!0))}function d(a){h.up.incoming(a,t)}function e(){q&&g(function(){q(!0)},0)}var h,j,k,m,o,q,t,v;return h={outgoing:function(a,c,d){q=d;b(a)},destroy:function(){k.parentNode.removeChild(k);k=null;j&&
(m.parentNode.removeChild(m),m=null)},onDOMReady:function(){j=a.isHost;o=0;t=p(a.remote);a.local=s(a.local);j?(z.Fn.set(a.channel,function(b){j&&b==="ready"&&(z.Fn.set(a.channel,d),c())}),v=u(a.remote,{xdm_e:a.local,xdm_c:a.channel,xdm_p:2}),y(a.props,{src:v+"#"+a.channel,name:f+a.channel+"_provider"}),m=r(a)):(a.remoteHelper=a.remote,z.Fn.set(a.channel,d));var b=function(){var d=k||this;G(d,"load",b);z.Fn.set(a.channel+"_load",e);(function Ca(){typeof d.contentWindow.sendMessage=="function"?c():
g(Ca,50)})()};k=r({props:{src:a.local+"#_4"+a.channel},onLoad:b})},init:function(){l(h.onDOMReady,h)}}};z.stack.HashTransport=function(b){function c(){if(o){var a=o.location.href,b="",e=a.indexOf("#");e!=-1&&(b=a.substring(e));b&&b!=k&&(k=b,d.up.incoming(k.substring(k.indexOf("_")+1),u))}}var d,e,h,j,k,m,o,q,s,u;return d={outgoing:function(a){if(q)a=b.remote+"#"+m++ +"_"+a,(e||!s?q.contentWindow:q).location=a},destroy:function(){a.clearInterval(h);(e||!s)&&q.parentNode.removeChild(q);q=null},onDOMReady:function(){e=
b.isHost;j=b.interval;k="#"+b.channel;m=0;s=b.useParent;u=p(b.remote);if(e){y(b.props,{src:b.remote,name:f+b.channel+"_provider"});if(s)b.onLoad=function(){o=a;h=setInterval(c,j);d.up.callback(!0)};else{var l=0,t=b.delay/50;(function V(){if(++l>t)throw Error("Unable to reference listenerwindow");try{o=q.contentWindow.frames[f+b.channel+"_consumer"]}catch(a){}o?(h=setInterval(c,j),d.up.callback(!0)):g(V,50)})()}q=r(b)}else o=a,h=setInterval(c,j),s?(q=parent,d.up.callback(!0)):(y(b,{props:{src:b.remote+
"#"+b.channel+new Date,name:f+b.channel+"_consumer"},onLoad:function(){d.up.callback(!0)}}),q=r(b))},init:function(){l(d.onDOMReady,d)}}};z.stack.ReliableBehavior=function(){var a,b,c=0,d=0,e="";return a={incoming:function(f,g){var h=f.indexOf("_"),j=f.substring(0,h).split(","),f=f.substring(h+1);j[0]==c&&(e="",b&&(b(!0),b=null));f.length>0&&(a.down.outgoing(j[1]+","+c+"_"+e,g),d!=j[1]&&(d=j[1],a.up.incoming(f,g)))},outgoing:function(f,g,h){e=f;b=h;a.down.outgoing(d+","+ ++c+"_"+f,g)}}};z.stack.QueueBehavior=
function(a){function b(){if(a.remove&&d.length===0)U(c);else if(!e&&!(d.length===0||j)){e=!0;var f=d.shift();c.down.outgoing(f.data,f.origin,function(a){e=!1;f.callback&&g(function(){f.callback(a)},0);b()})}}var c,d=[],e=!0,f="",j,l=0,m=!1,p=!1;return c={init:function(){x(a)&&(a={});if(a.maxLength)l=a.maxLength,p=!0;a.lazy?m=!0:c.down.init()},callback:function(a){e=!1;var d=c.up;b();d.callback(a)},incoming:function(b,d){if(p){var e=b.indexOf("_"),g=parseInt(b.substring(0,e),10);f+=b.substring(e+1);
g===0&&(a.encode&&(f=k(f)),c.up.incoming(f,d),f="")}else c.up.incoming(b,d)},outgoing:function(e,f,g){a.encode&&(e=h(e));var j=[],k;if(p){for(;e.length!==0;)k=e.substring(0,l),e=e.substring(k.length),j.push(k);for(;k=j.shift();)d.push({data:j.length+"_"+k,origin:f,callback:j.length===0?g:null})}else d.push({data:e,origin:f,callback:g});m?c.down.init():b()},destroy:function(){j=!0;c.down.destroy()}}};z.stack.VerifyBehavior=function(a){function b(){d=Math.random().toString(16).substring(2);c.down.outgoing(d)}
var c,d,e;return c={incoming:function(f,g){var h=f.indexOf("_");h===-1?f===d?c.up.callback(!0):e||(e=f,a.initiate||b(),c.down.outgoing(f)):f.substring(0,h)===e&&c.up.incoming(f.substring(h+1),g)},outgoing:function(a,b,e){c.down.outgoing(d+"_"+a,b,e)},callback:function(){a.initiate&&b()}}};z.stack.RpcBehavior=function(a,b){function c(a){a.jsonrpc="2.0";f.down.outgoing(g.stringify(a))}function d(a,b){var e=Array.prototype.slice;return function(){var d=arguments.length,f,g={method:b};d>0&&typeof arguments[d-
1]==="function"?(d>1&&typeof arguments[d-2]==="function"?(f={success:arguments[d-2],error:arguments[d-1]},g.params=e.call(arguments,0,d-2)):(f={success:arguments[d-1]},g.params=e.call(arguments,0,d-1)),j[""+ ++h]=f,g.id=h):g.params=e.call(arguments,0);if(a.namedParams&&g.params.length===1)g.params=g.params[0];c(g)}}function e(a,b,d,f){if(d){var g,h;b?(g=function(a){g=X;c({id:b,result:a})},h=function(a,d){h=X;var e={id:b,error:{code:-32099,message:a}};if(d)e.error.data=d;c(e)}):g=h=X;Object.prototype.toString.call(f)===
"[object Array]"||(f=[f]);try{var j=d.method.apply(d.scope,f.concat([g,h]));x(j)||g(j)}catch(l){h(l.message)}}else b&&c({id:b,error:{code:-32601,message:"Procedure not found."}})}var f,g=b.serializer||A(),h=0,j={};return f={incoming:function(a){a=g.parse(a);if(a.method)b.handle?b.handle(a,c):e(a.method,a.id,b.local[a.method],a.params);else{var d=j[a.id];a.error?d.error&&d.error(a.error):d.success&&d.success(a.result);delete j[a.id]}},init:function(){if(b.remote)for(var c in b.remote)b.remote.hasOwnProperty(c)&&
(a[c]=d(b.remote[c],c));f.down.init()},destroy:function(){for(var c in b.remote)b.remote.hasOwnProperty(c)&&a.hasOwnProperty(c)&&delete a[c];f.down.destroy()}}};J.easyXDM=z})(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent);
(function(a,e,c,g){var k=c(e),h=c("html"),d=1.05,b=/mobile/i.test(navigator.userAgent),j=(b?"touchstart":"mousedown")+".slowScroll",l=(b?"touchmove":"mousemove")+".slowScroll",b=(b?"touchend":"mouseup")+".slowScroll",m=c("<div class='slow-scroll-lib-top' style='display: none;'></div>"),p=c("<div class='slow-scroll-lib-left' style='display: none;'></div>"),s=function(){var b="ontouchmove"in e;return"WebkitOverflowScrolling"in e.documentElement.style||!b&&a.screen.width>1200||function(){var b=a.navigator.userAgent,
c=b.match(/AppleWebKit\/([0-9]+)/),d=c&&c[1],e=c&&d>=534;return b.match(/Android ([0-9]+)/)&&RegExp.$1>=3&&e||b.match(/ Version\/([0-9]+)/)&&RegExp.$1>=0&&a.blackberry&&e||b.indexOf(/PlayBook/)>-1&&RegExp.$1>=0&&e||b.match(/Fennec\/([0-9]+)/)&&RegExp.$1>=4||b.match(/wOSBrowser\/([0-9]+)/)&&RegExp.$1>=233&&e||b.match(/NokiaBrowser\/([0-9\.]+)/)&&parseFloat(RegExp.$1)===7.3&&c&&d>=533}()}(),u=s?!0:!1,x=!1,y=!1,r;k.bind(j,function(a){x=!1;r&&r.stopAnim();(r=c(a.target).closest(".slow-scroll-lib").data("slowScroll"))&&
r.enable()&&!r.isOverflowNative()&&(x=!0)});k.bind(l,function(a){if(x&&!y)c&&c.vmouse&&(c.vmouse.preventRealEvents=!0),h.addClass("slow-scroll-lib-moving"),r&&r.onStart.call(r,a),y=!0;y&&(r&&r.onMove.call(r,a),a.preventDefault())});k.bind(b,function(a){x&&y&&(h.removeClass("slow-scroll-lib-moving"),x&&r&&r.onEnd.call(r,a),c&&c.vmouse&&setTimeout(function(){c.vmouse.preventRealEvents=!1},10));y=x=!1;r=null});k=function(b,e){var h,j,l,k,r,y,x,t,z,C;function f(){(ia=s&&e.vertical!==!1&&e.horizontal!==
!1)?(K.css("overflow","auto"),K.css("-webkit-overflow-scrolling","touch")):(K.css("overflow","hidden"),K.css("-webkit-overflow-scrolling",""))}function R(a,b){var c,d,f,g;d=a+a/v*L;d=d>o?o:d<0?0:d;c=b+b/S*ca;c=c>aa?aa:c<0?0:c;f=b+w;f=f<w?w:f>A?A:f;g=a+N;g=g<N?N:g>G?G:g;u&&(e.vertical!==!1&&m.css({left:f-10,top:d}),e.horizontal!==!1&&p.css({left:c,top:g-10}))}function F(a){return a.originalEvent.touches&&a.originalEvent.touches.length?a.originalEvent.touches[0]:a.originalEvent.changedTouches&&a.originalEvent.changedTouches.length?
a.originalEvent.changedTouches[0]:a}function W(){clearTimeout(ea);ea=null;u&&(m.hide(),p.hide())}function O(){function a(){e.vertical===!1||j<=0||j>=o-1||b<=1.7&&b>=-1.7?h=!0:(j+=b,K.scrollTop(j),b/=d);e.horizontal||m<=0||m>=aa-1||c<=1.7&&c>=-1.7?g=!0:(m+=c,K.scrollLeft(m),c/=d);R(j,m);g&&h&&W()}var b=l,c=k,f,g=!1,h=!1,j=K.scrollTop(),m=K.scrollLeft();ha?(ea=!0,f=function(){ea&&(a(),ha(f))},ha(f)):(clearInterval(ea),ea=setInterval(function(){a()},30))}var K=c(b),G=0,N=0,H=0,o=0,v=0,L=0,A=0,w=0,I=
0,aa=0,S=0,ca=0;h=void 0;j=void 0;l=void 0;k=void 0;r=void 0;y=void 0;x=void 0;t=void 0;z=void 0;C=void 0;var ba=!e||e.useWrap!==!1,Z=ba?K.children().eq(0):K,ea,ia=!1,ha=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.msRequestAnimationFrame||a.oRequestAnimationFrame;Z.addClass("slow-scroll-lib");Z.data("slowScroll",this);this.scrollTo=function(a,b){K.scrollTop(b);K.scrollLeft(a)};f();this.isOverflowNative=function(){return ia};this.stopAnim=function(){W()};this.onStart=
function(a){W();a=F(a);r=y=x=a.clientY;h=K.scrollTop();l=0;t=z=C=a.clientX;j=K.scrollLeft();k=0;K.append(m,p);ba?(G=Z.outerHeight(),A=Z.outerWidth(),m.css("height","100%"),N=m.height(),p.css("width","100%"),w=p.width()):(G=Z[0].scrollHeight,A=Z[0].scrollWidth,N=Z.height(),w=Z.width());H=N*100/G;m.css("height",H);o=G-H;v=G-N;L=N-H;I=w*100/A;p.css("width",I);aa=A-I;S=A-w;ca=w-I;R(h,j);u&&(e.vertical!==!1&&m.show(),e.horizontal!==!1&&p.show());if(e.onTouchStart)e.onTouchStart()};this.onMove=function(a){var a=
F(a),b=C-a.clientX,c=x-a.clientY,d;d=h;e.vertical!==!1&&(d+=c,K.scrollTop(d));r=y;y=a.clientY;l=r-y;c=j;e.horizontal!==!1&&(c+=b,K.scrollLeft(c));t=z;z=a.clientX;k=t-z;R(d,c)};this.onEnd=function(a){O(F(a));if(e.onTouchEnd)e.onTouchEnd()};this.options=function(a,b){if(b===g)return e[a];else e[a]=b,(a=="vertical"||a=="horizontal")&&f()};this.enable=function(a){if(a!==g)e.enable=a;return e.enable!==!1};this.destroy=function(){Z.data("slowScroll",null);Z.removeClass("slow-scroll-lib");c(this).unbind()}};
k.prototype.refresh=function(){};a.slowScroll=k})(window,document,jQuery);
(function(a,e){function c(a,k,h){var d={_data:null,_div:null,_nodesMap:null,_opt:null,_plugins:null,_treeEnv:null,_id:null,_init:function(a,c,e){$(a[0])==void 0?this._error("Error :: There are undefined HTML Container for draw tree"):(this._id="w"+this._generateUniqueId(),this._div=$("<div class='simple-tree' id='"+this._id+"'>").attr("unselectable","on"),this._setGetTree(),this._plugins={},this._treeEnv={},this._opt=typeof e=="object"?e:{},this._dropData(),this.enable(this._opt.enable),d._initPlugins(),
this.setData(c),a.append(this._div),this.indent(this._opt.indent),this._bindEvents())},_initPlugins:function(){var a=this._opt.plugins?this._opt.plugins:{},d;for(d in c.plugins){var e=c.plugins[d];if(a[e.pluginName]){var g=new e(this,a[e.pluginName]);this._plugins[e.pluginName]=g}}},destroyPlugins:function(){for(var a in this._plugins)this._plugins[a].destroy(),delete this._plugins[a]},id:function(){return this._id},setData:function(a){if(a!=void 0&&(this.clear(),this._addNewNode(void 0,$.isArray(a)?
{hideNodeTitle:!0,nodes:a}:a,this._div)))this._data=a},getData:function(){return jQuery.extend(!0,{},{val:this._data}).val},getDataLink:function(){return this._data},base:function(){return this._div},width:function(){var a=0;this._div.children().each(function(c,d){var e=$(d).is(":visible")?$(d).width():0;a=a<e?e:a});return a},height:function(){var a=0;this._div.children().each(function(c,d){a+=$(d).is(":visible")?$(d).outerHeight()-0:0});return a},getLineHeight:function(){var a=this._createLine({title:"&nbsp;"}),
c=$("<div/>"),d=0,a=a.itemDiv;c.css({position:"absolute",left:-500,top:-500});c.append(a);this._div.append(c);d=a.height();c.remove();return d},reDraw:function(){this._setGetTree();this.setData(this._data);var a=this._plugins,c;for(c in a)typeof a[c].reDraw=="function"&&a[c].reDraw();this._bindEvents()},_setGetTree:function(){var a=this;this._div.data("getTree",function(){return a})},clear:function(){this._div.empty();this._dropData()},_log:function(a){e&&e.log(a)},_error:function(a){e&&e.error(a)},
setItemIcon:function(a,c){var d=this._getNodesMap(a);if(d){d=$(d.divs[0]).find(".simple-tree-item-icon");if(d.length>0&&d[0].tagName.toLowerCase()=="span"){var e=d.attr("class"),g=d.attr("style"),e=$("<img class='"+e+"' style='"+g+"'>");d.replaceWith(e);d=e}d.attr("src",c)}},setItemIconSize:function(a){a=parseInt(a,10);this._treeEnv.iconStyle&&this._treeEnv.iconStyle.remove();if(!isNaN(a)){var c=this._div;if(a>50||a<0)a+="px",this._treeEnv.iconStyle=$("<style> #"+this._id+" .simple-tree-item-icon {width: "+
a+"; height: "+a+";} </style>"),c.parent().prepend(this._treeEnv.iconStyle);else{var d=c.data("simple-tree-item-icon-value");d&&c.removeClass("simple-tree-item-icon"+d);c.addClass("simple-tree-item-icon"+a);c.data("simple-tree-item-icon-value",a)}}},option:function(a,c,d){return d==void 0&&this._plugins[a]==void 0?c==void 0?this._opt[a]:typeof this[a]=="function"?this[a](c):this._opt[a]=c:this._plugins[a][c](d)},_dropData:function(){this._treeEnv={};this._nodesMap={};this._data={}},_createLine:function(a){var c=
a.nodes!=void 0,d=a.closed===!0&&c,e=a.cssClass?a.cssClass:"",g=a.bungClass?a.bungClass:"",h=a.subIconClass?a.subIconClass:"",k=a.alt?" title='"+a.alt+"' ":"",x=c&&a.nodes.length>0,y=(a.title||"").replace(/ /g,"&nbsp;"),r=a.iconSize!=void 0?"height:"+a.iconSize+"px; width:"+a.iconSize+"px;":"",e=$("<table class='simple-tree-item "+(c?"simple-tree-folder":"simple-tree-child")+" "+e+"'><tr><td><span class='simple-tree-expand "+(!x?"simple-tree-no-child":"")+" "+(d?"simple-tree-close":"")+"'>&nbsp;</span></td><td>"+
(a.icon!=void 0?"<img src='"+a.icon+"' class='simple-tree-item-icon' style='"+r+"'>":"<span class='simple-tree-item-icon'>&nbsp;</span>")+"<span class='simple-tree-item-sub-icon "+h+"'>&nbsp;</span></td><td><span class='simple-tree-title' "+k+">"+y+"</span></td><td class='simple-tree-last-td'><span class='simple-tree-bung "+g+"'>&nbsp;</span></td></tr></table>"),c=c?this._getNewContainerEl(a.id):void 0;d&&c&&c.hide();a.hideNodeTitle===!0&&(e.hide(),c!=void 0&&c.css("margin","0"));e.data({id:a.id});
a.userData=a.userData==void 0?{}:a.userData;return{itemDiv:e,ul:c}},_addNewNode:function(a,c,d,e){if(d){var g=$("<div>");g.data("id",a);var h=this._nodesMap,k,x=!0,y=this;this._traverseNodes(c,function(a,b){a.id=a.id==void 0?y._generateUniqueId(h):a.id;if(h[a.id]!=void 0)return y._error("Error :: Detects duplicate ID in data"),x=!1;else k=y._createLine(a),h[a.id]={node:a,divs:k.itemDiv,nodesContainer:k.ul,parentId:b.data("id")},b.append(k.itemDiv,k.ul);return k.ul},{div:g});x&&(e!=void 0&&e!=-1?(a=
this._getNodesMap(a),a.node.nodes.length>e?this._getNodesMap(a.node.nodes[e].id).divs.before(g.children()):d.append(g.children())):d.append(g.children()));return x}else this._error("Error :: append HTML element to undefined container")},_getNewContainerEl:function(a){return $("<div class='simple-tree-container'>").data("id",a)},_generateUniqueId:function(a){function c(){for(var a="",b=0;b<37;b++){var d=parseInt(37*Math.random());a+="abcdefghijklmnopqrstuvwxyz0123456789-".charAt(d)}return a}for(var d;a&&
a[d]||!d;)d=c();return d},traverseNodes:function(a,c,d){this._traverseNodes(a,c,d)},_traverseNodes:function(a,c,d){var e=a.nodes,g,h=d&&d.div,k,x=this,y=d&&d.reverse;$.isArray(a)?(e=a,g=h):g=c.call(this,a,h);if(e!=void 0&&g!==!1){var r=0,a=e.length,h=function(){k=d||{};k.div=g;x._traverseNodes(e[r],c,k)};if(y)for(r=e.length-1;r>=0;r--)h();else for(r=0,a=e.length;r<a;r++)h()}},getRootNode:function(){var a=this._data,c,a=$.isArray(a)?a[0]:a;a.id!=void 0&&(c=a,this._traverseParents(a.id,function(a){c=
a}));return c},_traverseParents:function(a,c){var d=this.getParentNode(a);d!=void 0&&c(d)!=!1&&this._traverseParents(d.id,c)},_getContainerForNodes:function(a){return this._getNodesMap(a).nodesContainer},_getNodesMap:function(a){return this._nodesMap[a]},redrawNode:function(a){for(var c=this.getParentNode(a),d=this.getNode(a),e=0,g=c.nodes.length;e<g;e++)if(c.nodes[e].id==a)break;this.removeNode(a);this.addNode(c.id,d,e)},addNode:function(a,c,d){var e=this._getNodesMap(a);if(e){var g=e.node,h=e.divs;
if(g.nodes==void 0||g.nodes.length==0)g.nodes=[],$(h[0]).addClass("simple-tree-folder").removeClass("simple-tree-child"),e.nodesContainer=e.nodesContainer?e.nodesContainer:this._getNewContainerEl(a),$(h[h.length-1]).after(e.nodesContainer);if(this._addNewNode(a,c,e.nodesContainer,d)){if($.isArray(c)){if(c.length>0)g.nodes=g.nodes.concat(c)}else d!=void 0&&d!=-1?g.nodes.splice(d,0,c):g.nodes.push(c);g.nodes.length>0&&$(h[0]).find(".simple-tree-expand").removeClass("simple-tree-no-child");return!0}return!1}else this._error("Error :: Wrong parent ID")},
moveNodeByPos:function(a,c,d,e){(e?e:this).removeNode(a.id);return this.addNode(c,a,d)},getNodePos:function(a){var c=this.getParentNode(a),d;if(c)for(var e=0,g=c.nodes.length;e<g;e++)if(c.nodes[e].id==a){d=e;break}return d},removeNode:function(a){var c=this._getNodesMap(a),d=this;if(c)if($(c.nodesContainer).remove().empty(),c.divs.remove().empty(),c.parentId!=void 0){for(var c=this._getNodesMap(c.parentId),e=c.node.nodes,g=0,h=e.length;g<h;g++)if(e[g].id==a){this._traverseNodes(e[g],function(a){delete d._nodesMap[a.id]});
e.splice(g,1);break}if(e.length==0)$(c.divs[0]).find(".simple-tree-expand").addClass("simple-tree-no-child"),c.nodesContainer.empty().remove(),c.nodesContainer=void 0}else this._dropData();else this._error("Error :: There are no ID in tree")},removeChildren:function(a){if((a=this._getNodesMap(a))&&a.node.nodes!=void 0&&a.node.nodes.length>0)for(var c=a.node.nodes.length-1;c>=0;)this.removeNode(a.node.nodes[c].id),c--},removeNodes:function(a){if($.isArray(a))for(var c=0,d=a.length;c<d;c++)this.removeNode(a[c])},
getChildren:function(a){if((a=this._getNodesMap(a))&&a.node.nodes!=void 0)return a.node.nodes},closeNode:function(a,c){var d=this._getNodesMap(a);d!=void 0&&this._expandCollapseNode(d.divs.find(".simple-tree-expand"),!1,c)},openNode:function(a,c){var d=this._getNodesMap(a);d!=void 0&&this._expandCollapseNode(d.divs.find(".simple-tree-expand"),!0,c)},expandCollapseNode:function(a,c){var d=this._getNodesMap(a);d!=void 0&&this._expandCollapseNode(d.divs.find(".simple-tree-expand"),void 0,c)},_expandCollapseNode:function(a,
e,g){var h=this._getParentItemElement(a).data("id"),k=this.getNode(h),s=this._getContainerForNodes(h),g=g!==!1&&this.enable()?!0:g;(e=e!=void 0?e:a.hasClass("simple-tree-close"))?(a.removeClass("simple-tree-close"),s&&s.show(),k.closed=!1,g&&$(d).trigger(c.onExpandNode,[h])):(a.addClass("simple-tree-close"),s&&s.hide(),k.closed=!0,g&&$(d).trigger(c.onCollapseNode,[h]))},_getEventElem:function(a){return $(a.originalEvent.target||a.originalEvent.srcElement)},_getParentItemElement:function(a){return a.closest(".simple-tree-item")},
_bindEvents:function(){var a=this;this._div.unbind("mousedown.simpleTree").bind("mousedown.simpleTree",function(e){if(a.enable()){var e=a._getEventElem(e),g=a._getParentItemElement(e);!e.hasClass("simple-tree-expand")&&g!=null&&g.length!=0&&$(d).trigger(c.onMouseDown,[g.data("id"),e])}}).unbind("click.simpleTree").bind("click.simpleTree",function(e){if(a.enable()){var g=a._getEventElem(e),h=a._getParentItemElement(g),k=g.hasClass("simple-tree-expand");k&&!g.hasClass("simple-tree-no-child")&&h.hasClass("simple-tree-folder")&&
a._expandCollapseNode(g);!k&&h!=null&&h.length!=0&&(a._onSelect(h,!0,a._isCtrlPressed(e)),$(d).trigger(c.onClick,[h.data("id"),g,h]));a.stopBubbleEvent()||e.stopPropagation()}}).unbind("dblclick.simpleTree").bind("dblclick.simpleTree",function(e){if(a.enable()){var g=a._getEventElem(e),h=a._getParentItemElement(g);!g.hasClass("simple-tree-expand")&&h!=null&&h.length!=0&&$(d).trigger(c.onDblClick,[h.data("id"),g]);a.stopBubbleEvent()||e.stopPropagation()}}).unbind("mouseover.simpleTree").bind("mouseover.simpleTree",
function(e){a.enable()&&(e=a._getEventElem(e),e.hasClass("simple-tree-title")&&(e=a._getParentItemElement(e),$(d).trigger(c.onMouseOver,[e.data("id")])))}).unbind("mouseout.simpleTree").bind("mouseout.simpleTree",function(e){a.enable()&&(e=a._getEventElem(e),e.hasClass("simple-tree-title")&&(e=a._getParentItemElement(e),$(d).trigger(c.onMouseOut,[e.data("id")])))})},_isCtrlPressed:function(a){return a?a.ctrlKey||a.metaKey:!1},_setSelectedStyleToEl:function(a){var c=this.selectedColor(),d=this.selectedBorder();
a.addClass("simple-tree-item-selected");c&&a.find(".simple-tree-title").css("background-color",c);d&&a.find(".simple-tree-title").css("border",d)},_removeSelectedStyleToEl:function(a){a.removeClass("simple-tree-item-selected").find(".simple-tree-title").css({border:"","background-color":""})},_onSelect:function(a,e,g){if(this.enable()){var h=this._treeEnv;!h.selectedNodesId&&(h.selectedNodesId=[]);var k=this,s=h.selectedNodeId,u=h.selectedNodesId,x=h.selectedNodeId=a.data("id");if(g&&this.multiSelect())if(a.hasClass("simple-tree-item-selected")){g=
0;for(h=u.length;g<h;g++)if(u[g]==x){u.splice(g,1);break}this._removeSelectedStyleToEl(a)}else u.push(x),this._setSelectedStyleToEl(a);else h.selectedNodesId=[x],this._div.find("table.simple-tree-item-selected").each(function(){k._removeSelectedStyleToEl($(this))}),this._setSelectedStyleToEl(a);e!==!1&&$(d).trigger(c.onSelect,[x,s])}},updateSelection:function(a){function c(a){var b=d._treeEnv,e=b.selectedNodesId,g;a!=void 0?g=d._getNodesMap(a):g=d._getNodesMap(b.selectedNodeId);g&&d._setSelectedStyleToEl(g.divs);
if($.isArray(e)){g=0;for(var h=e.length;g<h;g++)if(a==void 0||e[g]==a)(b=d._getNodesMap(e[g]))&&d._setSelectedStyleToEl(b.divs)}}var d=this;if($.isArray(a))for(var e=0,g=a.length;e<g;e++)c(a[e]);else c(a)},clearSelection:function(a){if($.isArray(a))for(var c=0,d=a.length;c<d;c++)this._clearSelection(a[c]);else this._clearSelection(a)},_clearSelection:function(a){var c=this._treeEnv,d=c.selectedNodesId,e;a!=void 0?e=this._getNodesMap(a):e=this._getNodesMap(c.selectedNodeId);e&&this._removeSelectedStyleToEl(e.divs);
if($.isArray(d)){e=0;for(var g=d.length;e<g;e++)if(a==void 0||d[e]==a)(c=this._getNodesMap(d[e]))&&this._removeSelectedStyleToEl(c.divs)}},getSelectedNodes:function(){var a=this._treeEnv.selectedNodesId,c,d=[];if(a)for(var e=0,g=a.length;e<g;e++)if(c=this.getNode(a[e]))d.push(c);else{d=[];break}return d},getSelectedNodesId:function(){var a=this._treeEnv.selectedNodesId;return a==void 0?[]:a},getSelectedNode:function(){return this.getNode(this._treeEnv.selectedNodeId)},getSelectedNodeId:function(){var a=
this.getSelectedNode();return a==void 0?void 0:a.id},selectNode:function(a,c){if($.isArray(a))for(var d=0,e=a.length;d<e;d++)this._selectNode(a[d],c,!0);else this._selectNode.apply(this,arguments)},_selectNode:function(a,c,d){(a=this._getNodesMap(a))&&this._onSelect($(a.divs[0]),c,d)},isFolder:function(a){return(a=this._getNodesMap(a))&&a.node.nodes?!0:!1},focusNode:function(a){if(a=this._getNodesMap(a))this._div.scrollTop(0),this._div.scrollTop(a.divs.position().top-this._div.height()/2)},getNode:function(a){return(a=
this._getNodesMap(a))?a.node:void 0},getParentNode:function(a){return(a=this._getNodesMap(a))?this.getNode(a.parentId):void 0},getParentNodeId:function(a){a=this.getParentNode(a);return a==void 0?void 0:a.id},setUserData:function(a,c,d){(a=this._getNodesMap(a))&&(a.node.userData[c]=d)},getUserData:function(a,c){var d=this._getNodesMap(a);return d?d.node.userData[c]:void 0},setNodeClass:function(a,c){var d=this._getNodesMap(a);this._setNodeCustomCss(d,d.divs,"cssClass",c)},getNodeClass:function(a){return this._getNodeCustomCss(a,
"cssClass")},setNodeBungClass:function(a,c){var d=this._getNodesMap(a);this._setNodeCustomCss(d,d.divs.find(".simple-tree-bung"),"bungClass",c)},getNodeBungClass:function(a){return this._getNodeCustomCss(a,"bungClass")},setNodeSubIconClass:function(a,c){var d=this._getNodesMap(a);this._setNodeCustomCss(d,d.divs.find(".simple-tree-item-sub-icon"),"subIconClass",c)},getNodeSubIconClass:function(a){return this._getNodeCustomCss(a,"subIconClass")},_getNodeCustomCss:function(a,c){var d=this._getNodesMap(a);
return d?d.node[c]:void 0},_setNodeCustomCss:function(a,c,d,e){a&&(e==""?a.node[d]!=void 0&&a.node[d]!=""&&c.removeClass(a.node[d]):c.addClass(e),a.node[d]=e)},getNodeTitle:function(a){return(a=this._getNodesMap(a))?a.node.title:void 0},setNodeTitle:function(a,c){var d=this._getNodesMap(a);if(d)d.divs.find(".simple-tree-title").html(c),d.node.title=c},enable:function(a){if(a!=void 0)this._opt.enable=a,a!==!1?this._div.removeClass("simple-tree-disable"):this._div.addClass("simple-tree-disable");for(var c in this._plugins){var d=
this._plugins[c];typeof d.enable=="function"&&d.enable(a)}return this._opt.enable!==!1},multiSelect:function(a){a!=void 0&&(this._opt.multiSelect=a);return this._opt.multiSelect===!0},selectedColor:function(a){if(a!=void 0)this._opt.selectedColor=a,this._treeEnv.selectedNodesId&&this.updateSelection(this._treeEnv.selectedNodesId);return this._opt.selectedColor},selectedBorder:function(a){if(a!=void 0)this._opt.selectedBorder=a,this._treeEnv.selectedNodesId&&this.updateSelection(this._treeEnv.selectedNodesId);
return this._opt.selectedBorder},stopBubbleEvent:function(a){a!=void 0&&(this._opt.stopBubbleEvent=a);return this._opt.stopBubbleEvent===!0},indent:function(a){if(a!=void 0){var c=this._treeEnv;this._opt.indent=a;a=typeof a=="string"?a:a+"px";c.indentStyle&&c.indentStyle.remove();if(a!="")c.indentStyle=$("<style> #"+this._id+" .simple-tree-container {margin-left: "+a+";} </style>"),this._div.parent().prepend(c.indentStyle)}return this._opt.indent},filterBy:function(){},plugins:function(){return this._plugins},
destroy:function(){this.destroyPlugins();if(this._data){var a=this._data.id;a!=void 0&&this.removeNode(a)}if((a=this._treeEnv)&&a.iconStyle)a.iconStyle.remove(),delete a.iconStyle;this._div&&(this._div.empty(),this._div.remove());this._div=this._plugins=this._treeEnv=this._data=this._nodesMap=void 0;$(this).unbind()}};d._init(a,k,h);return d}c.onClick="Event#jqSimpleTree#onClick";c.onDblClick="Event#jqSimpleTree#onDblClick";c.onSelect="Event#jqSimpleTree#onSelect";c.onExpandNode="Event#jqSimpleTree#onExpandNode";
c.onCollapseNode="Event#jqSimpleTree#onCollapseNode";c.onMouseDown="Event#jqSimpleTree#onMouseDown";c.onMouseOver="Event#jqSimpleTree#onMouseOver";c.onMouseOut="Event#jqSimpleTree#onMouseOut";c.plugins={};a.jqSimpleTree=c})(window,window.console);
(function(a){a.plugins.simpleDragForSimpleTree=function(a,c){var g={_tree:null,_opt:null,init:function(a,c){this._tree=a;this._opt=typeof c=="object"?c:{};this.initDrag();this.pulling(this.pulling())},reDraw:function(){this.destroy();this.initDrag()},createDragObj:function(a,c){return{dragNode:a,height:c?c:18,treeTop:this._tree._div.parent().offset().top,treeHeight:this._tree._div.parent().height(),lastId:a.id,dhHeight:this._dragHelper.height(),source:this._tree,pulling:this.pulling(),destination:this._tree,
pos:-5}},initDrag:function(){var a=this._tree,c=this.container(),d=null,b=this;this._dragHelper=$("<div class='simple-tree-drag-line'/>").hide();a._div.draggable({helper:function(c){a._div.draggable("option","cursorAt",{left:20,top:20});var e=a._getEventElem(c),g=e.hasClass("simple-tree-item")?e:a._getParentItemElement(e).data("id"),c=$("<div class='simple-tree-drag-el'/>");if(g!=void 0&&(g=a.getNode(g))&&g.canDrag!==!1)c.html(g.title),e=e.parent().height()-4,d=b.createDragObj(g,e==0?14:e);return c},
start:function(){if(d&&d.dragNode!=null)b.onDragStart(d)},drag:function(a,c){if(d)b.onDrag(a,c,d)},stop:function(a){b.container().removeClass("simple-tree-drag");d&&b._onDragStop(a,d);d=null},containment:c,appendTo:c,disabled:!b.enable()})},_onDragStop:function(a,c){clearInterval(this._scrollTimer);this._dragHelper.hide();if(typeof this._opt.dragEnd=="function"){var d=c.dragNode,b=c.lastId,e=c.pos,g,m,p=this._tree._getEventElem(a);if(d!=void 0&&d.id!=void 0){if(this.pulling()&&typeof this._opt.dragPull==
"function"&&p.closest(this._tree._div).length==0){this._opt.dragPull(d,c.source,p);return}if(d.id===b)return}var s=!1;this._tree._traverseParents(b,function(a){if(d!=void 0&&d.id!=void 0&&a.id===d.id)return s=!0,!1});if(!s){var u=this._tree.getParentNode(b);if(e==-3)m=-1,g=b;else if(u){g=u.id;for(var x=0,y=u.nodes.length;x<y;x++)if(u.nodes[x].id===b){m=x;break}switch(e){case -2:m=m<=0?0:m;break;case -1:m>=y||m++}}m!=void 0&&this._tree._div.parent().has(p).length!=0&&this._opt.dragEnd(d,g,m,c.source,
c.destination)}}},onDragStart:function(){this.container().addClass("simple-tree-drag");this._dragHelper.css({left:-100,top:-100});this.container().append(this._dragHelper.show())},onDrag:function(a,c,d){var b=this._getElemByEv(a),e=this._getOnDragTree(b),g=d.source;if(b&&e){if(clearInterval(this._scrollTimer),this._dragHelper.show(),a=g&&e._id===g._id?g:e,!a.option||a.option("drag","enable"))if(!g||e._id===g._id||d.pulling){d.destination=a;if(b.hasClass("simple-tree-drag-line"))if(a._getNodesMap(d.lastId)==
void 0)return;else b=a._getNodesMap(d.lastId).divs;else d.lastId=b.data("id");var g=b.data("id"),e=this.pulling()?b.offset():b.position(),m=this.pulling()?c.offset:c.position,c=0,m=d.height-(e.top-m.top-2);m>=d.height/2?(c=e.top+2+d.height,d.pos=-1):(c=e.top-2,d.pos=-2);clearInterval(this._expandTimer);if(a.isFolder(g)&&a.getNode(g).canDragInto!==!1&&(g=d.height*0.33,m>=g&&m<=g*2))c=e.top+2+d.height*0.5-d.dhHeight*0.5,d.pos=-3,this._openClosedFolder(a,b);this._dragHelper.css({left:e.left+18,top:c})}}else this._scrollDrag(a.pageY,
d.treeHeight,d.treeTop)},_openClosedFolder:function(a,c){var d=this;if(c.hasClass("simple-tree-folder")){var b=c.find(".simple-tree-expand.simple-tree-close");if(b.length>0)this._expandTimer=setInterval(function(){clearInterval(d._expandTimer);a._expandCollapseNode(b)},1500)}},_scrollDrag:function(a,c,d){var b,e=this;d>a?b=-(d-a):a>d+c&&(b=a-(d+c));clearInterval(e._scrollTimer);if(b){e._dragHelper.hide();b/=2;var g=function(){var a=e._tree._div.scrollTop();a+=b;e._tree._div.scrollTop(a)};g();this._scrollTimer=
setInterval(function(){g()},100)}else e._dragHelper.show()},_getOnDragTree:function(a){if(a&&(a=a.closest(".simple-tree"))&&a.length!=0)if(a=a.data("getTree"),typeof a=="function")return a()},_getElemByEv:function(a){a=this._tree._getEventElem(a);a=a.hasClass("simple-tree-item")?a:this._tree._getParentItemElement(a);if(a.hasClass("simple-tree-item"))return a},container:function(a){if(a!=void 0)this._opt.container=a=$(a),this._tree._div.draggable("option","containment",a),this._tree._div.draggable("option",
"appendTo",a);return this._opt.container},enable:function(a){if(a!=void 0)(this._opt.enable=a)?this.initDrag():this._tree._div.data("draggable")&&this._tree._div.draggable("destroy");return this._opt.enable!==!1},pulling:function(a){if(a!=void 0)this._opt.pulling=a,a==!0?this.container(document.body):this.container(this._tree._div);return this._opt.pulling!==!1},destroy:function(){this._dragHelper.remove();this._tree._div.data("draggable")&&this._tree._div.draggable("destroy")}};g.init(a,c);return g};
a.plugins.simpleDragForSimpleTree.pluginName="drag"})(jqSimpleTree);window.AC=window.AC||{};
(function(a){function e(a){var c=document.location.protocol=="https:"?"https://":"http://";a.match(/^https*:\/\//)!=null&&(a=a.replace(/^https*:\/\//,c));return a}function c(a){return function(){return e(k[a])}}var g={},k={};g.get=function(a){return k[a]};g.set=function(a){k=a;for(var d in k)g[d]=c(d);g.set=void 0};g.serverApi=function(){var a=e(k.serverUrl+k.formatApi);g.serverApi=function(){return a};return a};g.serverThemeUrl=function(){var a=e(k.serverUrl+k.serverThemes);g.serverThemeUrl=function(){return a};
return a};g.flashAdapterUrl=function(){var a=e(k.clientApi+"/"+k.flashAdapterUrl);g.flashAdapterUrl=function(){return a};return a};g.themes=function(){return{app:{"":{name:"Default",id_theme:"_default",imgPath:g.staticUrl()+"/themes/app/_default/images"}},form:{1:{name:"Default",id_theme:"_default",imgPath:g.staticUrl()+"/themes/form/_default/images"}}}};a.Config=g})(AC);
