window.Modernizr=function(b,g,j){function e(){k.input=function(a){for(var b=0,c=a.length;b<c;b++)v[a[b]]=a[b]in m;return v}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));k.inputtypes=function(a){for(var b=0,c,e,f,k=a.length;b<k;b++)m.setAttribute("type",e=a[b]),(c=m.type!=="text")&&(m.value=l,m.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&m.style.WebkitAppearance!==j?(o.appendChild(m),f=g.defaultView,c=f.getComputedStyle&&f.getComputedStyle(m,
null).WebkitAppearance!=="textfield"&&m.offsetHeight!==0,o.removeChild(m)):/^(search|tel)$/.test(e)||(/^(url|email)$/.test(e)?c=m.checkValidity&&m.checkValidity()===!1:/^color$/.test(e)?(o.appendChild(m),c=m.value!=l,o.removeChild(m)):c=m.value!=l)),y[a[b]]=!!c;return y}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function f(b,c){var e=b.charAt(0).toUpperCase()+b.substr(1),e=(b+" "+t.join(e+" ")+e).split(" ");return a(e,c)}function a(a,b){for(var c in a)if(q[a[c]]!==
j)return b=="pfx"?a[c]:!0;return!1}function c(a,b){return typeof a===b}var k={},o=g.documentElement;g.head||g.getElementsByTagName("head");var p=g.createElement("modernizr"),q=p.style,m=g.createElement("input"),l=":)",n=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),t="Webkit Moz O ms Khtml".split(" "),p={},y={},v={},w=[],x=function(a,b,c,e){var f,k=g.createElement("div");if(parseInt(c,10))for(;c--;)f=g.createElement("div"),f.id=e?e[c]:"modernizr"+(c+1),k.appendChild(f);c=["&shy;<style>",a,"</style>"].join("");
k.id="modernizr";k.innerHTML+=c;o.appendChild(k);a=b(k,a);k.parentNode.removeChild(k);return!!a},A=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(b,e){var e=e||g.createElement(a[b]||"div"),b="on"+b,f=b in e;f||(e.setAttribute||(e=g.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(b,""),f=c(e[b],"function"),c(e[b],j)||(e[b]=j),e.removeAttribute(b)));return f}}(),B,z={}.hasOwnProperty,H;!c(z,j)&&
!c(z.call,j)?H=function(a,b){return z.call(a,b)}:H=function(a,b){return b in a&&c(a.constructor.prototype[b],j)};(function(a,b){var c=a.join(""),e=b.length;x(c,function(a,b){for(var c=g.styleSheets[g.styleSheets.length-1],c=c.cssRules&&c.cssRules[0]?c.cssRules[0].cssText:c.cssText||"",f=a.childNodes,j={};e--;)j[f[e].id]=f[e];k.csstransforms3d=j.csstransforms3d.offsetLeft===9;k.generatedcontent=j.generatedcontent.offsetHeight>=1;k.fontface=/src/i.test(c)&&c.indexOf(b.split(" ")[0])===0},e,b)})(['@font-face {font-family:"font";src:url("https://")}',
["@media (",n.join("transform-3d),("),"modernizr){#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',l,'";visibility:hidden}'].join("")],["fontface","csstransforms3d","generatedcontent"]);p.flexbox=function(){var a=g.createElement("div"),b=g.createElement("div");(function(a,b,c,h){b+=":";a.style.cssText=(b+n.join(c+";"+b)).slice(0,-b.length)+(h||"")})(a,"display","box","width:42px;padding:0;");b.style.cssText=n.join("box-flex:1;")+"width:10px;";a.appendChild(b);
o.appendChild(a);var c=b.offsetWidth===42;a.removeChild(b);o.removeChild(a);return c};p.canvas=function(){var a=g.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")};p.canvastext=function(){return!!k.canvas&&!!c(g.createElement("canvas").getContext("2d").fillText,"function")};p.postmessage=function(){return!!b.postMessage};p.websqldatabase=function(){return!!b.openDatabase};p.indexedDB=function(){for(var a=-1,c=t.length;++a<c;)if(b[t[a].toLowerCase()+"IndexedDB"])return!0;return!!b.indexedDB};
p.hashchange=function(){return A("hashchange",b)&&(g.documentMode===j||g.documentMode>7)};p.history=function(){return!!b.history&&!!history.pushState};p.draganddrop=function(){return A("dragstart")&&A("drop")};p.websockets=function(){for(var a=-1,c=t.length;++a<c;)if(b[t[a]+"WebSocket"])return!0;return"WebSocket"in b};p.rgba=function(){q.cssText="background-color:rgba(150,255,150,.5)";return!!~(""+q.backgroundColor).indexOf("rgba")};p.hsla=function(){q.cssText="background-color:hsla(120,40%,100%,.5)";
return!!~(""+q.backgroundColor).indexOf("rgba")||!!~(""+q.backgroundColor).indexOf("hsla")};p.multiplebgs=function(){q.cssText="background:url(https://),url(https://),red url(https://)";return/(url\s*\(.*?){3}/.test(q.background)};p.backgroundsize=function(){return f("backgroundSize")};p.borderimage=function(){return f("borderImage")};p.borderradius=function(){return f("borderRadius")};p.boxshadow=function(){return f("boxShadow")};p.textshadow=function(){return g.createElement("div").style.textShadow===
""};p.opacity=function(){var a=n.join("opacity:.55;")+"";q.cssText=a;return/^0.55$/.test(q.opacity)};p.cssanimations=function(){return f("animationName")};p.csscolumns=function(){return f("columnCount")};p.cssgradients=function(){var a=("background-image:"+n.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+n.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);q.cssText=a;return!!~(""+q.backgroundImage).indexOf("gradient")};p.cssreflections=
function(){return f("boxReflect")};p.csstransforms=function(){return!!a(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};p.csstransforms3d=function(){var b=!!a(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);b&&"webkitPerspective"in o.style&&(b=k.csstransforms3d);return b};p.csstransitions=function(){return f("transitionProperty")};p.fontface=function(){return k.fontface};p.generatedcontent=function(){return k.generatedcontent};
p.video=function(){var a=g.createElement("video"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"'),b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}catch(c){}return b};p.audio=function(){var a=g.createElement("audio"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),b.mp3=a.canPlayType("audio/mpeg;"),
b.wav=a.canPlayType('audio/wav; codecs="1"'),b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(c){}return b};p.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}};p.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}};p.webworkers=function(){return!!b.Worker};p.applicationcache=function(){return!!b.applicationCache};for(var C in p)H(p,C)&&(B=C.toLowerCase(),k[B]=p[C](),w.push((k[B]?"":"no-")+B));k.input||e();q.cssText="";p=
m=null;b.attachEvent&&function(){var a=g.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function c(a){for(var b=-1;++b<h;)a.createElement(f[b])}a.iepp=a.iepp||{};var e=a.iepp,g=e.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=g.split("|"),h=f.length,k=RegExp("(^|\\s)("+g+")","gi"),l=RegExp("<(/*)("+g+")","gi"),m=/^\s*[\{\}]\s*$/,o=
RegExp("(^|[^\\n]*?\\s)("+g+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),p=b.createDocumentFragment(),n=b.documentElement,g=n.firstChild,t=b.createElement("body"),q=b.createElement("style"),y=/print|all/,v;e.getCSS=function(a,b){if(a+""===j)return"";for(var c=-1,h=a.length,g,f=[];++c<h;)g=a[c],g.disabled||(b=g.media||b,y.test(b)&&f.push(e.getCSS(g.imports,b),g.cssText),b="all");return f.join("")};e.parseCSS=function(a){for(var b=[],c;(c=o.exec(a))!=null;)b.push(((m.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(k,
"$1.iepp_$2")+c[4]);return b.join("\n")};e.writeHTML=function(){var a=-1;for(v=v||b.body;++a<h;)for(var c=b.getElementsByTagName(f[a]),e=c.length,g=-1;++g<e;)c[g].className.indexOf("iepp_")<0&&(c[g].className+=" iepp_"+f[a]);p.appendChild(v);n.appendChild(t);t.className=v.className;t.id=v.id;t.innerHTML=v.innerHTML.replace(l,"<$1font")};e._beforePrint=function(){q.styleSheet.cssText=e.parseCSS(e.getCSS(b.styleSheets,"all"));e.writeHTML()};e.restoreHTML=function(){t.innerHTML="";n.removeChild(t);n.appendChild(v)};
e._afterPrint=function(){e.restoreHTML();q.styleSheet.cssText=""};c(b);c(p);e.disablePP||(g.insertBefore(q,g.firstChild),q.media="print",q.className="iepp-printshim",a.attachEvent("onbeforeprint",e._beforePrint),a.attachEvent("onafterprint",e._afterPrint))}(b,g);k._version="2.0.6";k._prefixes=n;k._domPrefixes=t;k.hasEvent=A;k.testProp=function(b){return a([b])};k.testAllProps=f;k.testStyles=x;o.className=o.className.replace(/\bno-js\b/,"")+(" js "+w.join(" "));return k}(this,this.document);
(function(b,g,j){function e(){for(var a=1,b=-1;t.length-++b;)if(t[b].s&&!(a=t[b].r))break;a&&c()}function f(a){var b=g.createElement("script"),c;b.src=a.s;b.onreadystatechange=b.onload=function(){!c&&(!b.readyState||b.readyState=="loaded"||b.readyState=="complete")&&(c=1,e(),b.onload=b.onreadystatechange=null)};m(function(){c||(c=1,e())},h.errorTimeout);a.e?b.onload():l.parentNode.insertBefore(b,l)}function a(a){var b=g.createElement("link"),c;b.href=a.s;b.rel="stylesheet";b.type="text/css";if(!a.e&&
(B||v)){var f=function(a){m(function(){if(!c)try{a.sheet.cssRules.length?(c=1,e()):f(a)}catch(b){b.code==1E3||b.message=="security"||b.message=="denied"?(c=1,m(function(){e()},0)):f(a)}},0)};f(b)}else b.onload=function(){c||(c=1,m(function(){e()},0))},a.e&&b.onload();m(function(){c||(c=1,e())},h.errorTimeout);!a.e&&l.parentNode.insertBefore(b,l)}function c(){var b=t.shift();y=1;b?b.t?m(function(){b.t=="c"?a(b):f(b)},0):(b(),e()):y=0}function k(a,b,f,k,j,o){function p(){!q&&(!n.readyState||n.readyState==
"loaded"||n.readyState=="complete")&&(v.r=q=1,!y&&e(),n.onload=n.onreadystatechange=null,m(function(){x.removeChild(n)},0))}var n=g.createElement(a),q=0,v={t:f,s:b,e:o};n.src=n.data=b;!w&&(n.style.display="none");n.width=n.height="0";a!="object"&&(n.type=f);n.onload=n.onreadystatechange=p;a=="img"?n.onerror=p:a=="script"&&(n.onerror=function(){v.e=v.r=1;c()});t.splice(k,0,v);x.insertBefore(n,w?null:l);m(function(){q||(x.removeChild(n),v.r=v.e=q=1,e())},h.errorTimeout)}function o(a,b,h){var e=b=="c"?
C:H;y=0;b=b||"j";N(a)?k(e,a,b,this.i++,q,h):(t.splice(this.i++,0,a),t.length==1&&c());return this}function p(){var a=h;a.loader={load:o,i:0};return a}var q=g.documentElement,m=b.setTimeout,l=g.getElementsByTagName("script")[0],n={}.toString,t=[],y=0,v="MozAppearance"in q.style,w=v&&!!g.createRange().compareNode,x=w?q:l.parentNode,A=b.opera&&n.call(b.opera)=="[object Opera]",B="webkitAppearance"in q.style,z=B&&"async"in g.createElement("script"),H=v?"object":A||z?"img":"script",C=B?"img":H,F=Array.isArray||
function(a){return n.call(a)=="[object Array]"},N=function(a){return typeof a=="string"},P=function(a){return n.call(a)=="[object Function]"},u=[],R={},K,h;h=function(a){function b(a){var a=a.split("!"),c=u.length,h=a.pop(),e=a.length,h={url:h,origUrl:h,prefixes:a},g,f;for(f=0;f<e;f++)(g=R[a[f]])&&(h=g(h));for(f=0;f<c;f++)h=u[f](h);return h}function c(a,h,e,g,f){var k=b(a),l=k.autoCallback;if(!k.bypass){h&&(h=P(h)?h:h[a]||h[g]||h[a.split("/").pop().split("?")[0]]);if(k.instead)return k.instead(a,
h,e,g,f);e.load(k.url,k.forceCSS||!k.forceJS&&/css$/.test(k.url)?"c":j,k.noexec);(P(h)||P(l))&&e.load(function(){p();h&&h(k.origUrl,f,g);l&&l(k.origUrl,f,g)})}}function e(a,b){function h(a){if(N(a))c(a,k,b,0,g);else if(Object(a)===a)for(j in a)a.hasOwnProperty(j)&&c(a[j],k,b,j,g)}var g=!!a.test,f=a.load||a.both,k=a.callback,j;h(g?a.yep:a.nope);h(f);a.complete&&b.load(a.complete)}var g,f,k=this.yepnope.loader;if(N(a))c(a,0,k,0);else if(F(a))for(g=0;g<a.length;g++)f=a[g],N(f)?c(f,0,k,0):F(f)?h(f):Object(f)===
f&&e(f,k);else Object(a)===a&&e(a,k)};h.addPrefix=function(a,b){R[a]=b};h.addFilter=function(a){u.push(a)};h.errorTimeout=1E4;g.readyState==null&&g.addEventListener&&(g.readyState="loading",g.addEventListener("DOMContentLoaded",K=function(){g.removeEventListener("DOMContentLoaded",K,0);g.readyState="complete"},0));b.yepnope=p()})(this,this.document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};(function(b,g){function j(a){return h.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function e(a){if(!ua[a]){var b=h("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c===""){M||(M=u.createElement("iframe"),M.frameBorder=M.width=M.height=0);u.body.appendChild(M);if(!fa||!M.createElement)fa=(M.contentWindow||M.contentDocument).document,fa.write("<!doctype><html><body></body></html>");b=fa.createElement(a);fa.body.appendChild(b);c=h.css(b,"display");u.body.removeChild(M)}ua[a]=
c}return ua[a]}function f(a,b){var c={};h.each(Da.concat.apply([],Da.slice(0,b)),function(){c[this]=a});return c}function a(){ma=g}function c(){setTimeout(a,0);return ma=h.now()}function k(){try{return new b.XMLHttpRequest}catch(a){}}function o(a,b,c,e){if(h.isArray(b))h.each(b,function(b,G){c||Za.test(a)?e(a,G):o(a+"["+(typeof G=="object"||h.isArray(G)?b:"")+"]",G,c,e)});else if(!c&&b!=null&&typeof b=="object")for(var g in b)o(a+"["+g+"]",b[g],c,e);else e(a,b)}function p(a,b,c,h,e,f){e=e||b.dataTypes[0];
f=f||{};f[e]=!0;for(var e=a[e],k=0,j=e?e.length:0,l=a===va,m;k<j&&(l||!m);k++)m=e[k](b,c,h),typeof m=="string"&&(!l||f[m]?m=g:(b.dataTypes.unshift(m),m=p(a,b,c,h,m,f)));(l||!m)&&!f["*"]&&(m=p(a,b,c,h,"*",f));return m}function q(a){return function(b,c){var s;typeof b!="string"&&(c=b,b="*");if(h.isFunction(c))for(var e=b.toLowerCase().split(Fa),g=0,f=e.length,k,j;g<f;g++)k=e[g],(j=/^\+/.test(k))&&(k=k.substr(1)||"*"),s=a[k]=a[k]||[],k=s,k[j?"unshift":"push"](c)}}function m(a,b,c){var e=b==="width"?
a.offsetWidth:a.offsetHeight;if(c==="border")return e;h.each(b==="width"?$a:ab,function(){c||(e-=parseFloat(h.css(a,"padding"+this))||0);c==="margin"?e+=parseFloat(h.css(a,"margin"+this))||0:e-=parseFloat(h.css(a,"border"+this+"Width"))||0});return e}function l(a,b){b.src?h.ajax({url:b.src,async:!1,dataType:"script"}):h.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function n(a){h.nodeName(a,"input")?t(a):a.getElementsByTagName&&
h.grep(a.getElementsByTagName("input"),t)}function t(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function y(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function v(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio")if(c===
"option")b.selected=a.defaultSelected;else{if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(h.expando)}}function w(a,b){if(b.nodeType===1&&h.hasData(a)){var c=h.expando,e=h.data(a),g=h.data(b,e);if(e=e[c]){var f=e.events,g=g[c]=h.extend({},e);if(f){delete g.handle;g.events={};for(var k in f){c=0;for(e=f[k].length;c<e;c++)h.event.add(b,k+(f[k][c].namespace?".":"")+f[k][c].namespace,
f[k][c],f[k][c].data)}}}}}function x(a,b,c){b=b||0;if(h.isFunction(b))return h.grep(a,function(a,s){return!!b.call(a,s,a)===c});if(b.nodeType)return h.grep(a,function(a){return a===b===c});if(typeof b=="string"){var e=h.grep(a,function(a){return a.nodeType===1});if(cb.test(b))return h.filter(b,e,!c);b=h.filter(b,e)}return h.grep(a,function(a){return h.inArray(a,b)>=0===c})}function A(a,b){return(a&&a!=="*"?a+".":"")+b.replace(db,"`").replace(eb,"&")}function B(a){var b,c,e,g,f,k,j,l,m,n,o,p=[];g=
[];f=h._data(this,"events");if(!(a.liveFired===this||!f||!f.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(o=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var t=f.live.slice(0);for(j=0;j<t.length;j++)f=t[j],f.origType.replace(sa,"")===a.type?g.push(f.selector):t.splice(j--,1);g=h(a.target).closest(g,a.currentTarget);l=0;for(m=g.length;l<m;l++){n=g[l];for(j=0;j<t.length;j++)if(f=t[j],n.selector===f.selector&&(!o||o.test(f.namespace))&&
!n.elem.disabled){k=n.elem;e=null;if(f.preType==="mouseenter"||f.preType==="mouseleave")a.type=f.preType,(e=h(a.relatedTarget).closest(f.selector)[0])&&h.contains(k,e)&&(e=k);(!e||e!==k)&&p.push({elem:k,handleObj:f,level:n.level})}}l=0;for(m=p.length;l<m;l++){g=p[l];if(c&&g.level>c)break;a.currentTarget=g.elem;a.data=g.handleObj.data;a.handleObj=g.handleObj;o=g.handleObj.origHandler.apply(g.elem,arguments);if(o===!1||a.isPropagationStopped())if(c=g.level,o===!1&&(b=!1),a.isImmediatePropagationStopped())break}return b}}
function z(a,b,c){var e=h.extend({},c[0]);e.type=a;e.originalEvent={};e.liveFired=g;h.event.handle.call(b,e);e.isDefaultPrevented()&&c[0].preventDefault()}function H(){return!0}function C(){return!1}function F(a,b,c){var e=b+"defer",f=b+"queue",k=b+"mark",j=h.data(a,e,g,!0);j&&(c==="queue"||!h.data(a,f,g,!0))&&(c==="mark"||!h.data(a,k,g,!0))&&setTimeout(function(){!h.data(a,f,g,!0)&&!h.data(a,k,g,!0)&&(h.removeData(a,e,!0),j.resolve())},0)}function N(a){for(var b in a)if(b!=="toJSON")return!1;return!0}
function P(a,b,c){if(c===g&&a.nodeType===1)if(c="data-"+b.replace(O,"$1-$2").toLowerCase(),c=a.getAttribute(c),typeof c=="string"){try{c=c==="true"?!0:c==="false"?!1:c==="null"?null:h.isNaN(c)?I.test(c)?h.parseJSON(c):c:parseFloat(c)}catch(e){}h.data(a,b,c)}else c=g;return c}var u=b.document,R=b.navigator,K=b.location,h=function(){function a(){if(!c.isReady){try{u.documentElement.doScroll("left")}catch(b){setTimeout(a,1);return}c.ready()}}var c=function(a,b){return new c.fn.init(a,b,f)},h=b.jQuery,
e=b.$,f,k=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,l=/^\s+/,m=/\s+$/,o=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,p=/^[\],:{}\s]*$/,t=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,v=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,ha=R.userAgent,oa,aa,fb=Object.prototype.toString,wa=Object.prototype.hasOwnProperty,xa=Array.prototype.push,ia=Array.prototype.slice,
Ga=String.prototype.trim,B=Array.prototype.indexOf,z={};c.fn=c.prototype={constructor:c,init:function(a,b,s){var h,e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!b&&u.body)return this.context=u,this[0]=u.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?h=k.exec(a):h=[null,a,null];if(h&&(h[1]||!b)){if(h[1])return e=(b=b instanceof c?b[0]:b)?b.ownerDocument||b:u,(s=n.exec(a))?
c.isPlainObject(b)?(a=[u.createElement(s[1])],c.fn.attr.call(a,b,!0)):a=[e.createElement(s[1])]:(s=c.buildFragment([h[1]],[e]),a=(s.cacheable?c.clone(s.fragment):s.fragment).childNodes),c.merge(this,a);if((b=u.getElementById(h[2]))&&b.parentNode){if(b.id!==h[2])return s.find(a);this.length=1;this[0]=b}this.context=u;this.selector=a;return this}return!b||b.jquery?(b||s).find(a):this.constructor(b).find(a)}if(c.isFunction(a))return s.ready(a);a.selector!==g&&(this.selector=a.selector,this.context=a.context);
return c.makeArray(a,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return ia.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,s){var h=this.constructor();c.isArray(a)?xa.apply(h,a):c.merge(h,a);h.prevObject=this;h.context=this.context;b==="find"?h.selector=this.selector+(this.selector?" ":"")+s:b&&(h.selector=this.selector+"."+b+"("+s+")");return h},each:function(a,b){return c.each(this,
a,b)},ready:function(a){c.bindReady();oa.done(a);return this},eq:function(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(ia.apply(this,arguments),"slice",ia.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,s){return a.call(b,s,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:xa,sort:[].sort,splice:[].splice};c.fn.init.prototype=
c.fn;c.extend=c.fn.extend=function(){var a,b,s,h,e,D,f=arguments[0]||{},k=1,V=arguments.length,j=!1;typeof f=="boolean"&&(j=f,f=arguments[1]||{},k=2);typeof f!="object"&&!c.isFunction(f)&&(f={});for(V===k&&(f=this,--k);k<V;k++)if((a=arguments[k])!=null)for(b in a)s=f[b],h=a[b],f!==h&&(j&&h&&(c.isPlainObject(h)||(e=c.isArray(h)))?(e?(e=!1,D=s&&c.isArray(s)?s:[]):D=s&&c.isPlainObject(s)?s:{},f[b]=c.extend(j,D,h)):h!==g&&(f[b]=h));return f};c.extend({noConflict:function(a){b.$===c&&(b.$=e);a&&b.jQuery===
c&&(b.jQuery=h);return c},isReady:!1,readyWait:1,holdReady:function(a){a?c.readyWait++:c.ready(!0)},ready:function(a){if(a===!0&&!--c.readyWait||a!==!0&&!c.isReady){if(!u.body)return setTimeout(c.ready,1);c.isReady=!0;a!==!0&&--c.readyWait>0||(oa.resolveWith(u,[c]),c.fn.trigger&&c(u).trigger("ready").unbind("ready"))}},bindReady:function(){if(!oa){oa=c._Deferred();if(u.readyState==="complete")return setTimeout(c.ready,1);if(u.addEventListener)u.addEventListener("DOMContentLoaded",aa,!1),b.addEventListener("load",
c.ready,!1);else if(u.attachEvent){u.attachEvent("onreadystatechange",aa);b.attachEvent("onload",c.ready);var h=!1;try{h=b.frameElement==null}catch(e){}u.documentElement.doScroll&&h&&a()}}},isFunction:function(a){return c.type(a)==="function"},isArray:Array.isArray||function(a){return c.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!o.test(a)||isNaN(a)},type:function(a){return a==null?String(a):z[fb.call(a)]||"object"},isPlainObject:function(a){if(!a||
c.type(a)!=="object"||a.nodeType||c.isWindow(a))return!1;if(a.constructor&&!wa.call(a,"constructor")&&!wa.call(a.constructor.prototype,"isPrototypeOf"))return!1;for(var b in a);return b===g||wa.call(a,b)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if(typeof a!="string"||!a)return null;a=c.trim(a);if(b.JSON&&b.JSON.parse)return b.JSON.parse(a);if(p.test(a.replace(t,"@").replace(q,"]").replace(y,"")))return(new Function("return "+a))();
c.error("Invalid JSON: "+a)},parseXML:function(a,s,h){b.DOMParser?(h=new DOMParser,s=h.parseFromString(a,"text/xml")):(s=new ActiveXObject("Microsoft.XMLDOM"),s.async="false",s.loadXML(a));h=s.documentElement;(!h||!h.nodeName||h.nodeName==="parsererror")&&c.error("Invalid XML: "+a);return s},noop:function(){},globalEval:function(a){a&&j.test(a)&&(b.execScript||function(a){b.eval.call(b,a)})(a)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,
s){var h,e=0,D=a.length,f=D===g||c.isFunction(a);if(s)if(f)for(h in a){if(b.apply(a[h],s)===!1)break}else for(;e<D;){if(b.apply(a[e++],s)===!1)break}else if(f)for(h in a){if(b.call(a[h],h,a[h])===!1)break}else for(;e<D;)if(b.call(a[e],e,a[e++])===!1)break;return a},trim:Ga?function(a){return a==null?"":Ga.call(a)}:function(a){return a==null?"":(a+"").replace(l,"").replace(m,"")},makeArray:function(a,b){var s=b||[];if(a!=null){var h=c.type(a);a.length==null||h==="string"||h==="function"||h==="regexp"||
c.isWindow(a)?xa.call(s,a):c.merge(s,a)}return s},inArray:function(a,b){if(B)return B.call(b,a);for(var s=0,c=b.length;s<c;s++)if(b[s]===a)return s;return-1},merge:function(a,b){var s=a.length,c=0;if(typeof b.length=="number")for(var h=b.length;c<h;c++)a[s++]=b[c];else for(;b[c]!==g;)a[s++]=b[c++];a.length=s;return a},grep:function(a,b,s){for(var c=[],h,s=!!s,G=0,e=a.length;G<e;G++)h=!!b(a[G],G),s!==h&&c.push(a[G]);return c},map:function(a,b,s){var h,e,D=[],f=0,k=a.length;if(a instanceof c||k!==g&&
typeof k=="number"&&(k>0&&a[0]&&a[k-1]||k===0||c.isArray(a)))for(;f<k;f++)h=b(a[f],f,s),h!=null&&(D[D.length]=h);else for(e in a)h=b(a[e],e,s),h!=null&&(D[D.length]=h);return D.concat.apply([],D)},guid:1,proxy:function(a,b){if(typeof b=="string")var s=a[b],b=a,a=s;if(!c.isFunction(a))return g;var h=ia.call(arguments,2),s=function(){return a.apply(b,h.concat(ia.call(arguments)))};s.guid=a.guid=a.guid||s.guid||c.guid++;return s},access:function(a,b,s,h,e,D){var f=a.length;if(typeof b=="object"){for(var k in b)c.access(a,
k,b[k],h,e,s);return a}if(s!==g){h=!D&&h&&c.isFunction(s);for(k=0;k<f;k++)e(a[k],b,h?s.call(a[k],k,e(a[k],b)):s,D);return a}return f?e(a[0],b):g},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=v.exec(a)||w.exec(a)||x.exec(a)||a.indexOf("compatible")<0&&A.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,s){return new a.fn.init(b,s)}c.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=
function(s,h){h&&h instanceof c&&!(h instanceof a)&&(h=a(h));return c.fn.init.call(this,s,h,b)};a.fn.init.prototype=a.fn;var b=a(u);return a},browser:{}});c.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){z["[object "+b+"]"]=b.toLowerCase()});ha=c.uaMatch(ha);ha.browser&&(c.browser[ha.browser]=!0,c.browser.version=ha.version);c.browser.webkit&&(c.browser.safari=!0);j.test("\u00a0")&&(l=/^[\s\xA0]+/,m=/[\s\xA0]+$/);f=c(u);u.addEventListener?aa=function(){u.removeEventListener("DOMContentLoaded",
aa,!1);c.ready()}:u.attachEvent&&(aa=function(){u.readyState==="complete"&&(u.detachEvent("onreadystatechange",aa),c.ready())});return c}(),Q="done fail isResolved isRejected promise then always pipe".split(" "),ea=[].slice;h.extend({_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,D,g,k,j,l;b&&(l=b,b=0);D=0;for(g=c.length;D<g;D++)k=c[D],j=h.type(k),j==="array"?f.done.apply(f,k):j==="function"&&a.push(k);l&&f.resolveWith(l[0],l[1])}return this},resolveWith:function(h,
f){if(!e&&!b&&!c){f=f||[];c=1;try{for(;a[0];)a.shift().apply(h,f)}finally{b=[h,f],c=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){e=1;a=[];return this}};return f},Deferred:function(a){var b=h._Deferred(),c=h._Deferred(),e;h.extend(b,{then:function(a,s){b.done(a).fail(s);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,
isRejected:c.isResolved,pipe:function(a,s){return h.Deferred(function(c){h.each({done:[a,"resolve"],fail:[s,"reject"]},function(a,s){var e=s[0],f=s[1],D;h.isFunction(e)?b[a](function(){(D=e.apply(this,arguments))&&h.isFunction(D.promise)?D.promise().then(c.resolve,c.reject):c[f](D)}):b[a](c[f])})}).promise()},promise:function(a){if(a==null){if(e)return e;e=a={}}for(var s=Q.length;s--;)a[Q[s]]=b[Q[s]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(b){c[a]=
arguments.length>1?ea.call(arguments,0):b;--g||k.resolveWith(k,ea.call(c,0))}}var c=arguments,e=0,f=c.length,g=f,k=f<=1&&a&&h.isFunction(a.promise)?a:h.Deferred();if(f>1){for(;e<f;e++)c[e]&&h.isFunction(c[e].promise)?c[e].promise().then(b(e),k.reject):--g;g||k.resolveWith(k,c)}else k!==a&&k.resolveWith(k,f?[a]:[]);return k.promise()}});h.support=function(){var a=u.createElement("div"),b=u.documentElement,c,h,e,f,g,k,j;a.setAttribute("className","t");a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
c=a.getElementsByTagName("*");h=a.getElementsByTagName("a")[0];if(!c||!c.length||!h)return{};e=u.createElement("select");f=e.appendChild(u.createElement("option"));c=a.getElementsByTagName("input")[0];k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,
checkOn:c.value==="on",optSelected:f.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};c.checked=!0;k.noCloneChecked=c.cloneNode(!0).checked;e.disabled=!0;k.optDisabled=!f.disabled;try{delete a.test}catch(l){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function T(){k.noCloneEvent=!1;a.detachEvent("onclick",
T)}),a.cloneNode(!0).fireEvent("onclick"));c=u.createElement("input");c.value="t";c.setAttribute("type","radio");k.radioValue=c.value==="t";c.setAttribute("checked","checked");a.appendChild(c);h=u.createDocumentFragment();h.appendChild(a.firstChild);k.checkClone=h.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft="1px";h=u.createElement("body");e={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(j in e)h.style[j]=e[j];h.appendChild(a);
b.insertBefore(h,b.firstChild);k.appendChecked=c.checked;k.boxModel=a.offsetWidth===2;"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2);a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";e=a.getElementsByTagName("td");c=e[0].offsetHeight===0;e[0].style.display="";e[1].style.display="none";k.reliableHiddenOffsets=
c&&e[0].offsetHeight===0;a.innerHTML="";u.defaultView&&u.defaultView.getComputedStyle&&(g=u.createElement("div"),g.style.width="0",g.style.marginRight="0",a.appendChild(g),k.reliableMarginRight=(parseInt((u.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0);h.innerHTML="";b.removeChild(h);if(a.attachEvent)for(j in{submit:1,change:1,focusin:1})b="on"+j,(c=b in a)||(a.setAttribute(b,"return;"),c=typeof a[b]=="function"),k[j+"Bubbles"]=c;return k}();h.boxModel=h.support.boxModel;
var I=/^(?:\{.*\}|\[.*\])$/,O=/([a-z])([A-Z])/g;h.extend({cache:{},uuid:0,expando:"jQuery"+(h.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?h.cache[a[h.expando]]:a[h.expando];return!!a&&!N(a)},data:function(a,b,c,e){if(h.acceptData(a)){var f=h.expando,k=typeof b=="string",j=a.nodeType,l=j?h.cache:a,m=j?a[h.expando]:a[h.expando]&&h.expando;if(m&&(!e||!m||l[m][f])||!(k&&c===g)){m||(j?a[h.expando]=
m=++h.uuid:m=h.expando);l[m]||(l[m]={},j||(l[m].toJSON=h.noop));if(typeof b=="object"||typeof b=="function")e?l[m][f]=h.extend(l[m][f],b):l[m]=h.extend(l[m],b);a=l[m];e&&(a[f]||(a[f]={}),a=a[f]);c!==g&&(a[h.camelCase(b)]=c);return b==="events"&&!a[b]?a[f]&&a[f].events:k?a[h.camelCase(b)]:a}}},removeData:function(a,c,e){if(h.acceptData(a)){var f=h.expando,g=a.nodeType,k=g?h.cache:a,j=g?a[h.expando]:h.expando;if(k[j]){if(c){var l=e?k[j][f]:k[j];if(l&&(delete l[c],!N(l)))return}if(e&&(delete k[j][f],
!N(k[j])))return;c=k[j][f];h.support.deleteExpando||k!=b?delete k[j]:k[j]=null;c?(k[j]={},g||(k[j].toJSON=h.noop),k[j][f]=c):g&&(h.support.deleteExpando?delete a[h.expando]:a.removeAttribute?a.removeAttribute(h.expando):a[h.expando]=null)}}},_data:function(a,b,c){return h.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=h.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}});h.fn.extend({data:function(a,b){var c=null;if(typeof a=="undefined"){if(this.length&&
(c=h.data(this[0]),this[0].nodeType===1))for(var e=this[0].attributes,f,k=0,j=e.length;k<j;k++)f=e[k].name,f.indexOf("data-")===0&&(f=h.camelCase(f.substring(5)),P(this[0],f,c[f]));return c}if(typeof a=="object")return this.each(function(){h.data(this,a)});var l=a.split(".");l[1]=l[1]?"."+l[1]:"";return b===g?(c=this.triggerHandler("getData"+l[1]+"!",[l[0]]),c===g&&this.length&&(c=h.data(this[0],a),c=P(this[0],a,c)),c===g&&l[1]?this.data(l[0]):c):this.each(function(){var c=h(this),e=[l[0],b];c.triggerHandler("setData"+
l[1]+"!",e);h.data(this,a,b);c.triggerHandler("changeData"+l[1]+"!",e)})},removeData:function(a){return this.each(function(){h.removeData(this,a)})}});h.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",h.data(a,b,(h.data(a,b,g,!0)||0)+1,!0))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){var c=c||"fx",e=c+"mark";(a=a?0:(h.data(b,e,g,!0)||1)-1)?h.data(b,e,a,!0):(h.removeData(b,e,!0),F(b,c,"mark"))}},queue:function(a,b,c){if(a){var b=(b||"fx")+"queue",e=h.data(a,b,g,!0);c&&(!e||h.isArray(c)?
e=h.data(a,b,h.makeArray(c),!0):e.push(c));return e||[]}},dequeue:function(a,b){var b=b||"fx",c=h.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift());e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){h.dequeue(a,b)}));c.length||(h.removeData(a,b+"queue",!0),F(a,b,"queue"))}});h.fn.extend({queue:function(a,b){typeof a!="string"&&(b=a,a="fx");return b===g?h.queue(this[0],a):this.each(function(){var c=h.queue(this,a,b);a==="fx"&&c[0]!=="inprogress"&&h.dequeue(this,a)})},dequeue:function(a){return this.each(function(){h.dequeue(this,
a)})},delay:function(a,b){a=h.fx?h.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){h.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--k||c.resolveWith(e,[e])}typeof a!="string"&&(a=g);var a=a||"fx",c=h.Deferred(),e=this,f=e.length,k=1,j=a+"defer",l=a+"queue";a+="mark";for(var m;f--;)if(m=h.data(e[f],j,g,!0)||(h.data(e[f],l,g,!0)||h.data(e[f],a,g,!0))&&h.data(e[f],j,h._Deferred(),!0))k++,m.done(b);
b();return c.promise()}});var L=/[\n\t\r]/g,E=/\s+/,ka=/\r/g,la=/^(?:button|input)$/i,Z=/^(?:button|input|object|select|textarea)$/i,S=/^a(?:rea)?$/i,Y=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ya=/\:/,U,Ca;h.fn.extend({attr:function(a,b){return h.access(this,a,b,!0,h.attr)},removeAttr:function(a){return this.each(function(){h.removeAttr(this,a)})},prop:function(a,b){return h.access(this,a,b,!0,h.prop)},removeProp:function(a){a=
h.propFix[a]||a;return this.each(function(){try{this[a]=g,delete this[a]}catch(b){}})},addClass:function(a){if(h.isFunction(a))return this.each(function(b){var c=h(this);c.addClass(a.call(this,b,c.attr("class")||""))});if(a&&typeof a=="string")for(var b=(a||"").split(E),c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){for(var g=" "+f.className+" ",k=f.className,j=0,l=b.length;j<l;j++)g.indexOf(" "+b[j]+" ")<0&&(k+=" "+b[j]);f.className=h.trim(k)}else f.className=a}return this},
removeClass:function(a){if(h.isFunction(a))return this.each(function(b){var c=h(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a=="string"||a===g)for(var b=(a||"").split(E),c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1&&f.className)if(a){for(var k=(" "+f.className+" ").replace(L," "),j=0,l=b.length;j<l;j++)k=k.replace(" "+b[j]+" "," ");f.className=h.trim(k)}else f.className=""}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b=="boolean";return h.isFunction(a)?
this.each(function(c){var e=h(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)}):this.each(function(){if(c==="string")for(var f,k=0,g=h(this),j=b,l=a.split(E);f=l[k++];)j=e?j:!g.hasClass(f),g[j?"addClass":"removeClass"](f);else if(c==="undefined"||c==="boolean")this.className&&h._data(this,"__className__",this.className),this.className=this.className||a===!1?"":h._data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<c;b++)if((" "+this[b].className+
" ").replace(L," ").indexOf(a)>-1)return!0;return!1},val:function(a){var b,c,e=this[0];if(!arguments.length)return e?(b=h.valHooks[e.nodeName.toLowerCase()]||h.valHooks[e.type])&&"get"in b&&(c=b.get(e,"value"))!==g?c:(e.value||"").replace(ka,""):g;var f=h.isFunction(a);return this.each(function(c){var e=h(this),k;if(this.nodeType===1&&(f?k=a.call(this,c,e.val()):k=a,k==null?k="":typeof k=="number"?k+="":h.isArray(k)&&(k=h.map(k,function(a){return a==null?"":a+""})),b=h.valHooks[this.nodeName.toLowerCase()]||
h.valHooks[this.type],!b||!("set"in b)||b.set(this,k,"value")===g))this.value=k})}});h.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,e=[],f=a.options,a=a.type==="select-one";if(c<0)return null;for(var k=a?c:0,g=a?c+1:f.length;k<g;k++)if(b=f[k],b.selected&&(h.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!h.nodeName(b.parentNode,"optgroup"))){b=
h(b).val();if(a)return b;e.push(b)}return a&&!e.length&&f.length?h(f[c]).val():e},set:function(a,b){var c=h.makeArray(b);h(a).find("option").each(function(){this.selected=h.inArray(h(this).val(),c)>=0});c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,c,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return g;if(e&&b in h.attrFn)return h(a)[b](c);if(!("getAttribute"in a))return h.prop(a,
b,c);var k,b=(f=f!==1||!h.isXMLDoc(a))&&h.attrFix[b]||b;(e=h.attrHooks[b])||(!Y.test(b)||typeof c!="boolean"&&c!==g&&c.toLowerCase()!==b.toLowerCase()?U&&(h.nodeName(a,"form")||Ya.test(b))&&(e=U):e=Ca);if(c!==g){if(c===null)return h.removeAttr(a,b),g;if(e&&"set"in e&&f&&(k=e.set(a,c,b))!==g)return k;a.setAttribute(b,""+c);return c}if(e&&"get"in e&&f)return e.get(a,b);k=a.getAttribute(b);return k===null?g:k},removeAttr:function(a,b){var c;a.nodeType===1&&(b=h.attrFix[b]||b,h.support.getSetAttribute?
a.removeAttribute(b):(h.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),Y.test(b)&&(c=h.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(la.test(a.nodeName)&&a.parentNode)h.error("type property can't be changed");else if(!h.support.radioValue&&b==="radio"&&h.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);c&&(a.value=c);return b}}},tabIndex:{get:function(a){var b=a.getAttributeNode("tabIndex");return b&&b.specified?parseInt(b.value,10):Z.test(a.nodeName)||
S.test(a.nodeName)&&a.href?0:g}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var e=a.nodeType;if(!a||e===3||e===8||e===2)return g;var f,b=(e!==1||!h.isXMLDoc(a))&&h.propFix[b]||b,e=h.propHooks[b];return c!==g?e&&"set"in e&&(f=e.set(a,c,b))!==g?f:a[b]=
c:e&&"get"in e&&(f=e.get(a,b))!==g?f:a[b]},propHooks:{}});Ca={get:function(a,b){return a[h.propFix[b]||b]?b.toLowerCase():g},set:function(a,b,c){var e;b===!1?h.removeAttr(a,c):(e=h.propFix[c]||c,e in a&&(a[e]=b),a.setAttribute(c,c.toLowerCase()));return c}};h.attrHooks.value={get:function(a,b){return U&&h.nodeName(a,"button")?U.get(a,b):a.value},set:function(a,b,c){if(U&&h.nodeName(a,"button"))return U.set(a,b,c);a.value=b}};h.support.getSetAttribute||(h.attrFix=h.propFix,U=h.attrHooks.name=h.valHooks.button=
{get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:g},set:function(a,b,c){if(a=a.getAttributeNode(c))return a.nodeValue=b}},h.each(["width","height"],function(a,b){h.attrHooks[b]=h.extend(h.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}));h.support.hrefNormalized||h.each(["href","src","width","height"],function(a,b){h.attrHooks[b]=h.extend(h.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?g:a}})});h.support.style||
(h.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||g},set:function(a,b){return a.style.cssText=""+b}});h.support.optSelected||(h.propHooks.selected=h.extend(h.propHooks.selected,{get:function(){}}));h.support.checkOn||h.each(["radio","checkbox"],function(){h.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});h.each(["radio","checkbox"],function(){h.valHooks[this]=h.extend(h.valHooks[this],{set:function(a,b){if(h.isArray(b))return a.checked=
h.inArray(h(a).val(),b)>=0}})});var sa=/\.(.*)$/,ta=/^(?:textarea|input|select)$/i,db=/\./g,eb=/ /g,gb=/[^\w\s.|`]/g,hb=function(a){return a.replace(gb,"\\$&")};h.event={add:function(a,b,c,e){if(a.nodeType!==3&&a.nodeType!==8){if(c===!1)c=C;else if(!c)return;var f,k;c.handler&&(f=c,c=f.handler);c.guid||(c.guid=h.guid++);if(k=h._data(a)){var j=k.events,l=k.handle;j||(k.events=j={});l||(k.handle=l=function(a){return typeof h!="undefined"&&(!a||h.event.triggered!==a.type)?h.event.handle.apply(l.elem,
arguments):g});l.elem=a;for(var b=b.split(" "),m,o=0,n;m=b[o++];){k=f?h.extend({},f):{handler:c,data:e};m.indexOf(".")>-1?(n=m.split("."),m=n.shift(),k.namespace=n.slice(0).sort().join(".")):(n=[],k.namespace="");k.type=m;k.guid||(k.guid=c.guid);var p=j[m],t=h.event.special[m]||{};if(!p&&(p=j[m]=[],!t.setup||t.setup.call(a,e,n,l)===!1))a.addEventListener?a.addEventListener(m,l,!1):a.attachEvent&&a.attachEvent("on"+m,l);t.add&&(t.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid));p.push(k);h.event.global[m]=
!0}a=null}}},global:{},remove:function(a,b,c,e){if(a.nodeType!==3&&a.nodeType!==8){c===!1&&(c=C);var f,k,j=0,l,m,n,o,p,t,q=h.hasData(a)&&h._data(a),y=q&&q.events;if(q&&y)if(b&&b.type&&(c=b.handler,b=b.type),!b||typeof b=="string"&&b.charAt(0)===".")for(f in b=b||"",y)h.event.remove(a,f+b);else{for(b=b.split(" ");f=b[j++];)if(o=f,l=f.indexOf(".")<0,m=[],l||(m=f.split("."),f=m.shift(),n=RegExp("(^|\\.)"+h.map(m.slice(0).sort(),hb).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=y[f])if(c){o=h.event.special[f]||
{};for(k=e||0;k<p.length;k++)if(t=p[k],c.guid===t.guid){if(l||n.test(t.namespace))e==null&&p.splice(k--,1),o.remove&&o.remove.call(a,t);if(e!=null)break}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&h.removeEvent(a,f,q.handle),delete y[f]}else for(k=0;k<p.length;k++)if(t=p[k],l||n.test(t.namespace))h.event.remove(a,o,t.handler,k),p.splice(k--,1);if(h.isEmptyObject(y))(b=q.handle)&&(b.elem=null),delete q.events,delete q.handle,h.isEmptyObject(q)&&h.removeData(a,g,
!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,c,e,f){var k=a.type||a,j=[],l;k.indexOf("!")>=0&&(k=k.slice(0,-1),l=!0);k.indexOf(".")>=0&&(j=k.split("."),k=j.shift(),j.sort());if(e&&!h.event.customEvent[k]||h.event.global[k]){a=typeof a=="object"?a[h.expando]?a:new h.Event(k,a):new h.Event(k);a.type=k;a.exclusive=l;a.namespace=j.join(".");a.namespace_re=RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");if(f||!e)a.preventDefault(),a.stopPropagation();if(e){if(!(e.nodeType===
3||e.nodeType===8)){a.result=g;a.target=e;c=c?h.makeArray(c):[];c.unshift(a);j=e;f=k.indexOf(":")<0?"on"+k:"";do l=h._data(j,"handle"),a.currentTarget=j,l&&l.apply(j,c),f&&h.acceptData(j)&&j[f]&&j[f].apply(j,c)===!1&&(a.result=!1,a.preventDefault()),j=j.parentNode||j.ownerDocument||j===a.target.ownerDocument&&b;while(j&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var m,j=h.event.special[k]||{};if((!j._default||j._default.call(e.ownerDocument,a)===!1)&&(k!=="click"||!h.nodeName(e,"a"))&&
h.acceptData(e)){try{f&&e[k]&&(m=e[f],m&&(e[f]=null),h.event.triggered=k,e[k]())}catch(o){}m&&(e[f]=m);h.event.triggered=g}}return a.result}}else h.each(h.cache,function(){var b=this[h.expando];b&&b.events&&b.events[k]&&h.event.trigger(a,c,b.handle.elem)})}},handle:function(a){var a=h.event.fix(a||b.event),c=((h._data(this,"events")||{})[a.type]||[]).slice(0),e=!a.exclusive&&!a.namespace,f=Array.prototype.slice.call(arguments,0);f[0]=a;a.currentTarget=this;for(var k=0,j=c.length;k<j;k++){var l=c[k];
if(e||a.namespace_re.test(l.namespace))if(a.handler=l.handler,a.data=l.data,a.handleObj=l,l=l.handler.apply(this,f),l!==g&&(a.result=l,l===!1&&(a.preventDefault(),a.stopPropagation())),a.isImmediatePropagationStopped())break}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[h.expando])return a;for(var b=a,a=h.Event(b),c=this.props.length,e;c;)e=this.props[--c],a[e]=b[e];a.target||(a.target=a.srcElement||u);a.target.nodeType===3&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null)c=a.target.ownerDocument||u,b=c.documentElement,c=c.body,a.pageX=a.clientX+(b&&b.scrollLeft||c&&c.scrollLeft||0)-(b&&b.clientLeft||c&&c.clientLeft||0),a.pageY=
a.clientY+(b&&b.scrollTop||c&&c.scrollTop||0)-(b&&b.clientTop||c&&c.clientTop||0);a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode);!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);!a.which&&a.button!==g&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1E8,proxy:h.proxy,special:{ready:{setup:h.bindReady,teardown:h.noop},live:{add:function(a){h.event.add(this,A(a.origType,a.selector),h.extend({},a,{handler:B,guid:a.handler.guid}))},remove:function(a){h.event.remove(this,
A(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){h.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}};h.removeEvent=u.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};h.Event=function(a,b){if(!this.preventDefault)return new h.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||
a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?H:C):this.type=a;b&&h.extend(this,b);this.timeStamp=h.now();this[h.expando]=!0};h.Event.prototype={preventDefault:function(){this.isDefaultPrevented=H;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=H;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
H;this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var Ha=function(a){var b=a.relatedTarget;a.type=a.data;try{if(!b||b===u||b.parentNode){for(;b&&b!==this;)b=b.parentNode;b!==this&&h.event.handle.apply(this,arguments)}}catch(c){}},Ia=function(a){a.type=a.data;h.event.handle.apply(this,arguments)};h.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){h.event.special[a]={setup:function(c){h.event.add(this,b,c&&c.selector?Ia:Ha,a)},teardown:function(a){h.event.remove(this,
b,a&&a.selector?Ia:Ha)}}});h.support.submitBubbles||(h.event.special.submit={setup:function(){if(h.nodeName(this,"form"))return!1;else h.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&h(b).closest("form").length&&z("submit",this,arguments)}),h.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&h(b).closest("form").length&&a.keyCode===13&&z("submit",this,arguments)})},teardown:function(){h.event.remove(this,
".specialSubmit")}});if(!h.support.changeBubbles){var ja,Ja=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?h.map(a.options,function(a){return a.selected}).join("-"):"":h.nodeName(a,"select")&&(c=a.selectedIndex);return c},pa=function(a,b){var c=a.target,e,f;if(ta.test(c.nodeName)&&!c.readOnly&&(e=h._data(c,"_change_data"),f=Ja(c),(a.type!=="focusout"||c.type!=="radio")&&h._data(c,"_change_data",f),!(e===g||f===e)))if(e!=null||
f)a.type="change",a.liveFired=g,h.event.trigger(a,b,c)};h.event.special.change={filters:{focusout:pa,beforedeactivate:pa,click:function(a){var b=a.target,c=h.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||h.nodeName(b,"select"))&&pa.call(this,a)},keydown:function(a){var b=a.target,c=h.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!h.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&pa.call(this,a)},beforeactivate:function(a){a=a.target;h._data(a,
"_change_data",Ja(a))}},setup:function(){if(this.type==="file")return!1;for(var a in ja)h.event.add(this,a+".specialChange",ja[a]);return ta.test(this.nodeName)},teardown:function(){h.event.remove(this,".specialChange");return ta.test(this.nodeName)}};ja=h.event.special.change.filters;ja.focus=ja.beforeactivate}h.support.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){var e=h.event.fix(a);e.type=b;e.originalEvent={};h.event.trigger(e,null,e.target);e.isDefaultPrevented()&&
a.preventDefault()}var e=0;h.event.special[b]={setup:function(){e++===0&&u.addEventListener(a,c,!0)},teardown:function(){--e===0&&u.removeEventListener(a,c,!0)}}});h.each(["bind","one"],function(a,b){h.fn[b]=function(a,c,e){var f;if(typeof a=="object"){for(var k in a)this[b](k,c,a[k],e);return this}if(arguments.length===2||c===!1)e=c,c=g;b==="one"?(f=function(a){h(this).unbind(a,f);return e.apply(this,arguments)},f.guid=e.guid||h.guid++):f=e;if(a==="unload"&&b!=="one")this.one(a,c,e);else{k=0;for(var s=
this.length;k<s;k++)h.event.add(this[k],a,f,c)}return this}});h.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else{c=0;for(var e=this.length;c<e;c++)h.event.remove(this[c],a,b)}return this},delegate:function(a,b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){h.event.trigger(a,b,this)})},triggerHandler:function(a,
b){if(this[0])return h.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||h.guid++,e=0,f=function(c){var f=(h.data(this,"lastToggle"+a.guid)||0)%e;h.data(this,"lastToggle"+a.guid,f+1);c.preventDefault();return b[f].apply(this,arguments)||!1};for(f.guid=c;e<b.length;)b[e++].guid=c;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};h.each(["live","die"],
function(a,b){h.fn[b]=function(a,c,e,f){var k=0,s,j,l=f||this.selector,m=f?this:h(this.context);if(typeof a=="object"&&!a.preventDefault){for(s in a)m[b](s,c,a[s],l);return this}if(b==="die"&&!a&&f&&f.charAt(0)===".")return m.unbind(f),this;if(c===!1||h.isFunction(c))e=c||C,c=g;for(a=(a||"").split(" ");(f=a[k++])!=null;)if(s=sa.exec(f),j="",s&&(j=s[0],f=f.replace(sa,"")),f==="hover")a.push("mouseenter"+j,"mouseleave"+j);else if(s=f,ya[f]?(a.push(ya[f]+j),f+=j):f=(ya[f]||f)+j,b==="live"){j=0;for(var o=
m.length;j<o;j++)h.event.add(m[j],"live."+A(f,l),{data:c,selector:l,handler:e,origType:f,origHandler:e,preType:s})}else m.unbind("live."+A(f,l),e);return this}});h.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".split(" "),function(a,b){h.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)};h.attrFn&&(h.attrFn[b]=
!0)});(function(){function a(b,c,e,h,f,k){for(var f=0,s=h.length;f<s;f++){var g=h[f];if(g){for(var j=!1,g=g[b];g;){if(g.sizcache===e){j=h[g.sizset];break}if(g.nodeType===1)if(k||(g.sizcache=e,g.sizset=f),typeof c!="string"){if(g===c){j=!0;break}}else if(o.filter(c,[g]).length>0){j=g;break}g=g[b]}h[f]=j}}}function b(a,c,e,h,f,k){for(var f=0,s=h.length;f<s;f++){var g=h[f];if(g){for(var j=!1,g=g[a];g;){if(g.sizcache===e){j=h[g.sizset];break}g.nodeType===1&&!k&&(g.sizcache=e,g.sizset=f);if(g.nodeName.toLowerCase()===
c){j=g;break}g=g[a]}h[f]=j}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,k=!1,j=!0,l=/\\/g,m=/\W/;[0,0].sort(function(){j=!1;return 0});var o=function(a,b,e,h){var e=e||[],k=b=b||u;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!="string")return e;var g,s,j,l,m,G,V=!0,t=o.isXML(b),q=[],Ea=a;do if(c.exec(""),g=c.exec(Ea))if(Ea=g[3],q.push(g[1]),g[2]){l=g[3];break}while(g);
if(q.length>1&&p.exec(a))if(q.length===2&&n.relative[q[0]])s=A(q[0]+q[1],b);else for(s=n.relative[q[0]]?[b]:o(q.shift(),b);q.length;)a=q.shift(),n.relative[a]&&(a+=q.shift()),s=A(a,s);else if(!h&&q.length>1&&b.nodeType===9&&!t&&n.match.ID.test(q[0])&&!n.match.ID.test(q[q.length-1])&&(m=o.find(q.shift(),b,t),b=m.expr?o.filter(m.expr,m.set)[0]:m.set[0]),b){m=h?{expr:q.pop(),set:y(h)}:o.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,t);s=m.expr?o.filter(m.expr,m.set):
m.set;for(q.length>0?j=y(s):V=!1;q.length;)g=G=q.pop(),n.relative[G]?g=q.pop():G="",g==null&&(g=b),n.relative[G](j,g,t)}else j=[];j||(j=s);j||o.error(G||a);if(f.call(j)==="[object Array]")if(V)if(b&&b.nodeType===1)for(a=0;j[a]!=null;a++)j[a]&&(j[a]===!0||j[a].nodeType===1&&o.contains(b,j[a]))&&e.push(s[a]);else for(a=0;j[a]!=null;a++)j[a]&&j[a].nodeType===1&&e.push(s[a]);else e.push.apply(e,j);else y(j,e);l&&(o(l,k,e,h),o.uniqueSort(e));return e};o.uniqueSort=function(a){if(w&&(k=j,a.sort(w),k))for(var b=
1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};o.matches=function(a,b){return o(a,null,null,b)};o.matchesSelector=function(a,b){return o(b,null,null,[a]).length>0};o.find=function(a,b,c){var e;if(!a)return[];for(var h=0,f=n.order.length;h<f;h++){var k,g=n.order[h];if(k=n.leftMatch[g].exec(a)){var s=k[1];k.splice(1,1);if(s.substr(s.length-1)!=="\\"&&(k[1]=(k[1]||"").replace(l,""),e=n.find[g](k,b,c),e!=null)){a=a.replace(n.match[g],"");break}}}e||(e=typeof b.getElementsByTagName!="undefined"?
b.getElementsByTagName("*"):[]);return{set:e,expr:a}};o.filter=function(a,b,c,e){for(var h,f,k=a,s=[],j=b,l=b&&b[0]&&o.isXML(b[0]);a&&b.length;){for(var m in n.filter)if((h=n.leftMatch[m].exec(a))!=null&&h[2]){var G,p,V=n.filter[m];p=h[1];f=!1;h.splice(1,1);if(p.substr(p.length-1)!=="\\"){j===s&&(s=[]);if(n.preFilter[m])if(h=n.preFilter[m](h,j,c,s,e,l)){if(h===!0)continue}else f=G=!0;if(h)for(var D=0;(p=j[D])!=null;D++)if(p){G=V(p,h,D,j);var t=e^!!G;c&&G!=null?t?f=!0:j[D]=!1:t&&(s.push(p),f=!0)}if(G!==
g){c||(j=s);a=a.replace(n.match[m],"");if(!f)return[];break}}}if(a===k)if(f==null)o.error(a);else break;k=a}return j};o.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var n=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",e=c&&!m.test(b),
c=c&&!e;e&&(b=b.toLowerCase());for(var e=0,h=a.length,f;e<h;e++)if(f=a[e]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[e]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&o.filter(b,a,!0)},">":function(a,b){var c,e=typeof b=="string",h=0,f=a.length;if(e&&!m.test(b))for(b=b.toLowerCase();h<f;h++){if(c=a[h])c=c.parentNode,a[h]=c.nodeName.toLowerCase()===b?c:!1}else{for(;h<f;h++)(c=a[h])&&(a[h]=e?c.parentNode:c.parentNode===b);e&&o.filter(b,a,!0)}},"":function(c,h,f){var k,g=e++,j=a;typeof h=="string"&&
!m.test(h)&&(h=h.toLowerCase(),k=h,j=b);j("parentNode",h,g,c,k,f)},"~":function(c,h,f){var k,g=e++,j=a;typeof h=="string"&&!m.test(h)&&(h=h.toLowerCase(),k=h,j=b);j("previousSibling",h,g,c,k,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){for(var c=[],e=b.getElementsByName(a[1]),h=0,f=e.length;h<f;h++)e[h].getAttribute("name")===a[1]&&c.push(e[h]);return c.length===
0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,e,h,f){a=" "+a[1].replace(l,"")+" ";if(f)return a;for(var f=0,k;(k=b[f])!=null;f++)k&&(h^(k.className&&(" "+k.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||e.push(k):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(l,"")},TAG:function(a){return a[1].replace(l,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||o.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]&&o.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,e,h,f){b=a[1]=a[1].replace(l,"");!f&&n.attrMap[b]&&(a[1]=n.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(l,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,e,h,f){if(a[1]==="not")if((c.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=o(a[3],
null,null,b);else return a=o.filter(a[3],b,e,1^f),e||h.push.apply(h,a),!1;else if(n.match.POS.test(a[0])||n.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,c){return!!o(c[3],
a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===
a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},
setFilters:{first:function(a,b){return b===0},last:function(a,b,c,e){return b===e.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,e){var h=b[1],f=n.filters[h];if(f)return f(a,c,b,e);if(h==="contains")return(a.textContent||a.innerText||o.getText([a])||"").indexOf(b[3])>=0;if(h==="not"){b=b[3];
c=0;for(e=b.length;c<e;c++)if(b[c]===a)return!1;return!0}o.error(h)},CHILD:function(a,b){var c=b[1],e=a;switch(c){case "only":case "first":for(;e=e.previousSibling;)if(e.nodeType===1)return!1;if(c==="first")return!0;e=a;case "last":for(;e=e.nextSibling;)if(e.nodeType===1)return!1;return!0;case "nth":var c=b[2],h=b[3];if(c===1&&h===0)return!0;var f=b[0],k=a.parentNode;if(k&&(k.sizcache!==f||!a.nodeIndex)){for(var g=0,e=k.firstChild;e;e=e.nextSibling)e.nodeType===1&&(e.nodeIndex=++g);k.sizcache=f}e=
a.nodeIndex-h;return c===0?e===0:e%c===0&&e/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=n.attrHandle[c]?n.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=c+"",h=b[2],f=b[4];return c==null?h==="!=":h==="="?e===f:h==="*="?e.indexOf(f)>=0:h==="~="?(" "+e+" ").indexOf(f)>=
0:f?h==="!="?e!==f:h==="^="?e.indexOf(f)===0:h==="$="?e.substr(e.length-f.length)===f:h==="|="?e===f||e.substr(0,f.length+1)===f+"-":!1:e&&c!==!1},POS:function(a,b,c,e){var h=n.setFilters[b[2]];if(h)return h(a,c,b,e)}}},p=n.match.POS,t=function(a,b){return"\\"+(b-0+1)},q;for(q in n.match)n.match[q]=RegExp(n.match[q].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[q]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[q].source.replace(/\\(\d+)/g,t));var y=function(a,b){a=Array.prototype.slice.call(a,0);
return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(u.documentElement.childNodes,0)}catch(v){y=function(a,b){var c=0,e=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(e,a);else if(typeof a.length=="number")for(var h=a.length;c<h;c++)e.push(a[c]);else for(;a[c];c++)e.push(a[c]);return e}}var w,x;u.documentElement.compareDocumentPosition?w=function(a,b){return a===b?(k=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&
4?-1:1}:(w=function(a,b){if(a===b)return k=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,e,h=[],f=[];c=a.parentNode;e=b.parentNode;var g=c;if(c===e)return x(a,b);if(!c)return-1;if(!e)return 1;for(;g;)h.unshift(g),g=g.parentNode;for(g=e;g;)f.unshift(g),g=g.parentNode;c=h.length;e=f.length;for(g=0;g<c&&g<e;g++)if(h[g]!==f[g])return x(h[g],f[g]);return g===c?x(a,f[g],-1):x(h[g],b,1)},x=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});
o.getText=function(a){for(var b="",c,e=0;a[e];e++)c=a[e],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=o.getText(c.childNodes));return b};(function(){var a=u.createElement("div"),b="script"+(new Date).getTime(),c=u.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);u.getElementById(b)&&(n.find.ID=function(a,b,c){if(typeof b.getElementById!="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!="undefined"&&b.getAttributeNode("id").nodeValue===
a[1]?[b]:g:[]},n.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=u.createElement("div");a.appendChild(u.createComment(""));a.getElementsByTagName("*").length>0&&(n.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var e=[],h=0;c[h];h++)c[h].nodeType===1&&e.push(c[h]);c=e}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&typeof a.firstChild.getAttribute!=
"undefined"&&a.firstChild.getAttribute("href")!=="#"&&(n.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();u.querySelectorAll&&function(){var a=o,b=u.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){o=function(b,c,e,h){c=c||u;if(!h&&!o.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(c.nodeType===1||c.nodeType===9)){if(f[1])return y(c.getElementsByTagName(b),e);if(f[2]&&n.find.CLASS&&c.getElementsByClassName)return y(c.getElementsByClassName(f[2]),
e)}if(c.nodeType===9){if(b==="body"&&c.body)return y([c.body],e);if(f&&f[3]){var k=c.getElementById(f[3]);if(!k||!k.parentNode)return y([],e);if(k.id===f[3])return y([k],e)}try{return y(c.querySelectorAll(b),e)}catch(g){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var f=c,s=(k=c.getAttribute("id"))||"__sizzle__",j=c.parentNode,l=/^\s*[+~]/.test(b);k?s=s.replace(/'/g,"\\$&"):c.setAttribute("id",s);l&&j&&(c=c.parentNode);try{if(!l||j)return y(c.querySelectorAll("[id='"+s+"'] "+b),
e)}catch(m){}finally{k||f.removeAttribute("id")}}}return a(b,c,e,h)};for(var c in a)o[c]=a[c];b=null}}();(function(){var a=u.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(u.createElement("div"),"div"),e=!1;try{b.call(u.documentElement,"[test!='']:sizzle")}catch(h){e=!0}o.matchesSelector=function(a,h){h=h.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!o.isXML(a))try{if(e||!n.match.PSEUDO.test(h)&&!/!=/.test(h)){var f=b.call(a,
h);if(f||!c||a.document&&a.document.nodeType!==11)return f}}catch(k){}return o(h,null,null,[a]).length>0}}})();(function(){var a=u.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))n.order.splice(1,0,"CLASS"),n.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},
a=null})();u.documentElement.contains?o.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:u.documentElement.compareDocumentPosition?o.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:o.contains=function(){return!1};o.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1};var A=function(a,b){for(var c,e=[],h="",f=b.nodeType?[b]:b;c=n.match.PSEUDO.exec(a);)h+=c[0],a=a.replace(n.match.PSEUDO,"");a=n.relative[a]?a+"*":a;c=0;for(var k=
f.length;c<k;c++)o(a,f[c],e);return o.filter(h,e)};h.find=o;h.expr=o.selectors;h.expr[":"]=h.expr.filters;h.unique=o.uniqueSort;h.text=o.getText;h.isXMLDoc=o.isXML;h.contains=o.contains})();var ib=/Until$/,jb=/^(?:parents|prevUntil|prevAll)/,kb=/,/,cb=/^.[^:#\[\.,]*$/,lb=Array.prototype.slice,Ka=h.expr.match.POS,mb={children:!0,contents:!0,next:!0,prev:!0};h.fn.extend({find:function(a){var b=this,c,e;if(typeof a!="string")return h(a).filter(function(){c=0;for(e=b.length;c<e;c++)if(h.contains(b[c],
this))return!0});var f=this.pushStack("","find",a),k,g,j;c=0;for(e=this.length;c<e;c++)if(k=f.length,h.find(a,this[c],f),c>0)for(g=k;g<f.length;g++)for(j=0;j<k;j++)if(f[j]===f[g]){f.splice(g--,1);break}return f},has:function(a){var b=h(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(h.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(x(this,a,!1),"not",a)},filter:function(a){return this.pushStack(x(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a==
"string"?h.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],e,f,k=this[0];if(h.isArray(a)){var g,j={},l=1;if(k&&a.length){e=0;for(f=a.length;e<f;e++)g=a[e],j[g]||(j[g]=Ka.test(g)?h(g,b||this.context):g);for(;k&&k.ownerDocument&&k!==b;){for(g in j)e=j[g],(e.jquery?e.index(k)>-1:h(k).is(e))&&c.push({selector:g,elem:k,level:l});k=k.parentNode;l++}}return c}g=Ka.test(a)||typeof a!="string"?h(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(k=this[e];k;){if(g?g.index(k)>
-1:h.find.matchesSelector(k,a)){c.push(k);break}k=k.parentNode;if(!k||!k.ownerDocument||k===b||k.nodeType===11)break}c=c.length>1?h.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a||typeof a=="string"?h.inArray(this[0],a?h(a):this.parent().children()):h.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?h(a,b):h.makeArray(a&&a.nodeType?[a]:a),e=h.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!e[0]||
!e[0].parentNode||e[0].parentNode.nodeType===11?e:h.unique(e))},andSelf:function(){return this.add(this.prevObject)}});h.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return h.dir(a,"parentNode")},parentsUntil:function(a,b,c){return h.dir(a,"parentNode",c)},next:function(a){return h.nth(a,2,"nextSibling")},prev:function(a){return h.nth(a,2,"previousSibling")},nextAll:function(a){return h.dir(a,"nextSibling")},prevAll:function(a){return h.dir(a,"previousSibling")},
nextUntil:function(a,b,c){return h.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return h.dir(a,"previousSibling",c)},siblings:function(a){return h.sibling(a.parentNode.firstChild,a)},children:function(a){return h.sibling(a.firstChild)},contents:function(a){return h.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:h.makeArray(a.childNodes)}},function(a,b){h.fn[a]=function(c,e){var f=h.map(this,b,c),k=lb.call(arguments);ib.test(a)||(e=c);e&&typeof e=="string"&&(f=h.filter(e,f));
f=this.length>1&&!mb[a]?h.unique(f):f;(this.length>1||kb.test(e))&&jb.test(a)&&(f=f.reverse());return this.pushStack(f,a,k.join(","))}});h.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?h.find.matchesSelector(b[0],a)?[b[0]]:[]:h.find.matches(a,b)},dir:function(a,b,c){for(var e=[],a=a[b];a&&a.nodeType!==9&&(c===g||a.nodeType!==1||!h(a).is(c));)a.nodeType===1&&e.push(a),a=a[b];return e},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},
sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var nb=/ jQuery\d+="(?:\d+|null)"/g,za=/^\s+/,La=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ma=/<([\w:]+)/,ob=/<tbody/i,pb=/<|&#?\w+;/,Na=/<(?:script|object|embed|option|style)/i,Oa=/checked\s*(?:[^=]|=\s*.checked.)/i,qb=/\/(java|ecma)script/i,bb=/^\s*<!(?:\[CDATA\[|\-\-)/,J={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,"",""]};J.optgroup=J.option;J.tbody=J.tfoot=J.colgroup=J.caption=J.thead;J.th=J.td;h.support.htmlSerialize||(J._default=[1,"div<div>","</div>"]);h.fn.extend({text:function(a){return h.isFunction(a)?this.each(function(b){var c=h(this);c.text(a.call(this,b,c.text()))}):typeof a!="object"&&
a!==g?this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(a)):h.text(this)},wrapAll:function(a){if(h.isFunction(a))return this.each(function(b){h(this).wrapAll(a.call(this,b))});if(this[0]){var b=h(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 h.isFunction(a)?this.each(function(b){h(this).wrapInner(a.call(this,
b))}):this.each(function(){var b=h(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){h(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(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=h(arguments[0]);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,h(arguments[0]).toArray());
return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||h.filter(a,[e]).length)!b&&e.nodeType===1&&(h.cleanData(e.getElementsByTagName("*")),h.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&h.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 h.clone(this,a,b)})},
html:function(a){if(a===g)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(nb,""):null;if(typeof a=="string"&&!Na.test(a)&&(h.support.leadingWhitespace||!za.test(a))&&!J[(Ma.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(La,"<$1></$2>");try{for(var b=0,c=this.length;b<c;b++)this[b].nodeType===1&&(h.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(e){this.empty().append(a)}}else h.isFunction(a)?this.each(function(b){var c=h(this);c.html(a.call(this,b,c.html()))}):
this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(h.isFunction(a))return this.each(function(b){var c=h(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!="string"&&(a=h(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;h(this).remove();b?h(b).before(a):h(c).append(a)})}return this.length?this.pushStack(h(h.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,
b,c){var e,f,k,j=a[0],m=[];if(!h.support.checkClone&&arguments.length===3&&typeof j=="string"&&Oa.test(j))return this.each(function(){h(this).domManip(a,b,c,!0)});if(h.isFunction(j))return this.each(function(e){var f=h(this);a[0]=j.call(this,e,b?f.html():g);f.domManip(a,b,c)});if(this[0]){k=j&&j.parentNode;h.support.parentNode&&k&&k.nodeType===11&&k.childNodes.length===this.length?e={fragment:k}:e=h.buildFragment(a,this,m);k=e.fragment;k.childNodes.length===1?f=k=k.firstChild:f=k.firstChild;if(f){b=
b&&h.nodeName(f,"tr");f=0;for(var o=this.length,n=o-1;f<o;f++)c.call(b?h.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],e.cacheable||o>1&&f<n?h.clone(k,!0,!0):k)}m.length&&h.each(m,l)}return this}});h.buildFragment=function(a,b,c){var e,f,k,b=b&&b[0]?b[0].ownerDocument||b[0]:u;a.length===1&&typeof a[0]=="string"&&a[0].length<512&&b===u&&a[0].charAt(0)==="<"&&!Na.test(a[0])&&(h.support.checkClone||
!Oa.test(a[0]))&&(f=!0,k=h.fragments[a[0]],k&&k!==1&&(e=k));e||(e=b.createDocumentFragment(),h.clean(a,b,e,c));f&&(h.fragments[a[0]]=k?e:1);return{fragment:e,cacheable:f}};h.fragments={};h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){h.fn[a]=function(c){var e=[],c=h(c),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&c.length===1)return c[b](this[0]),this;for(var f=0,k=c.length;f<
k;f++){var g=(f>0?this.clone(!0):this).get();h(c[f])[b](g);e=e.concat(g)}return this.pushStack(e,a,c.selector)}});h.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,k,g;if((!h.support.noCloneEvent||!h.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!h.isXMLDoc(a)){v(a,e);f=y(a);k=y(e);for(g=0;f[g];++g)v(f[g],k[g])}if(b&&(w(a,e),c)){f=y(a);k=y(e);for(g=0;f[g];++g)w(f[g],k[g])}return e},clean:function(a,b,c,e){b=b||u;typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||
u);for(var f=[],k,g=0,j;(j=a[g])!=null;g++)if(typeof j=="number"&&(j+=""),j){if(typeof j=="string")if(pb.test(j)){j=j.replace(La,"<$1></$2>");k=(Ma.exec(j)||["",""])[1].toLowerCase();var l=J[k]||J._default,m=l[0],o=b.createElement("div");for(o.innerHTML=l[1]+j+l[2];m--;)o=o.lastChild;if(!h.support.tbody){m=ob.test(j);l=k==="table"&&!m?o.firstChild&&o.firstChild.childNodes:l[1]==="<table>"&&!m?o.childNodes:[];for(k=l.length-1;k>=0;--k)h.nodeName(l[k],"tbody")&&!l[k].childNodes.length&&l[k].parentNode.removeChild(l[k])}!h.support.leadingWhitespace&&
za.test(j)&&o.insertBefore(b.createTextNode(za.exec(j)[0]),o.firstChild);j=o.childNodes}else j=b.createTextNode(j);var p;if(!h.support.appendChecked)if(j[0]&&typeof(p=j.length)=="number")for(k=0;k<p;k++)n(j[k]);else n(j);j.nodeType?f.push(j):f=h.merge(f,j)}if(c){a=function(a){return!a.type||qb.test(a.type)};for(g=0;f[g];g++)e&&h.nodeName(f[g],"script")&&(!f[g].type||f[g].type.toLowerCase()==="text/javascript")?e.push(f[g].parentNode?f[g].parentNode.removeChild(f[g]):f[g]):(f[g].nodeType===1&&(b=h.grep(f[g].getElementsByTagName("script"),
a),f.splice.apply(f,[g+1,0].concat(b))),c.appendChild(f[g]))}return f},cleanData:function(a){for(var b,c,e=h.cache,f=h.expando,k=h.event.special,g=h.support.deleteExpando,j=0,l;(l=a[j])!=null;j++)if(!l.nodeName||!h.noData[l.nodeName.toLowerCase()])if(c=l[h.expando]){if((b=e[c]&&e[c][f])&&b.events){for(var m in b.events)k[m]?h.event.remove(l,m):h.removeEvent(l,m,b.handle);b.handle&&(b.handle.elem=null)}g?delete l[h.expando]:l.removeAttribute&&l.removeAttribute(h.expando);delete e[c]}}});var Pa=/alpha\([^)]*\)/i,
rb=/opacity=([^)]*)/,sb=/-([a-z])/ig,tb=/([A-Z]|^ms)/g,Qa=/^-?\d+(?:px)?$/i,ub=/^-?\d/,vb=/^[+\-]=/,wb=/[^+\-\.\de]+/g,xb={position:"absolute",visibility:"hidden",display:"block"},$a=["Left","Right"],ab=["Top","Bottom"],ba,Ra,qa,yb=function(a,b){return b.toUpperCase()};h.fn.css=function(a,b){return arguments.length===2&&b===g?this:h.access(this,a,b,!0,function(a,b,c){return c!==g?h.style(a,b,c):h.css(a,b)})};h.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ba(a,"opacity","opacity");return c===
""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0,widows:!0,orphans:!0},cssProps:{"float":h.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,e){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var f,k=h.camelCase(b),j=a.style,l=h.cssHooks[k],b=h.cssProps[k]||k;if(c===g)return l&&"get"in l&&(f=l.get(a,!1,e))!==g?f:j[b];e=typeof c;if(!(e==="number"&&isNaN(c)||c==null))if(e==="string"&&vb.test(c)&&(c=+c.replace(wb,"")+parseFloat(h.css(a,
b))),e==="number"&&!h.cssNumber[k]&&(c+="px"),!l||!("set"in l)||(c=l.set(a,c))!==g)try{j[b]=c}catch(m){}}},css:function(a,b,c){var e,f,b=h.camelCase(b);f=h.cssHooks[b];b=h.cssProps[b]||b;b==="cssFloat"&&(b="float");if(f&&"get"in f&&(e=f.get(a,!0,c))!==g)return e;if(ba)return ba(a,b)},swap:function(a,b,c){var e={},h;for(h in b)e[h]=a.style[h],a.style[h]=b[h];c.call(a);for(h in b)a.style[h]=e[h]},camelCase:function(a){return a.replace(sb,yb)}});h.curCSS=h.css;h.each(["height","width"],function(a,b){h.cssHooks[b]=
{get:function(a,c,e){var f;if(c)return a.offsetWidth!==0?f=m(a,b,e):h.swap(a,xb,function(){f=m(a,b,e)}),f<=0&&(f=ba(a,b,b),f==="0px"&&qa&&(f=qa(a,b,b)),f!=null)?f===""||f==="auto"?"0px":f:f<0||f==null?(f=a.style[b],f===""||f==="auto"?"0px":f):typeof f=="string"?f:f+"px"},set:function(a,b){if(!Qa.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}});h.support.opacity||(h.cssHooks.opacity={get:function(a,b){return rb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/
100+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle;c.zoom=1;var f=h.isNaN(b)?"":"alpha(opacity="+b*100+")",e=e&&e.filter||c.filter||"";c.filter=Pa.test(e)?e.replace(Pa,f):e+" "+f}});h(function(){h.support.reliableMarginRight||(h.cssHooks.marginRight={get:function(a,b){var c;h.swap(a,{display:"inline-block"},function(){b?c=ba(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})});u.defaultView&&u.defaultView.getComputedStyle&&(Ra=function(a,b){var c,e,b=b.replace(tb,"-$1").toLowerCase();
if(!(e=a.ownerDocument.defaultView))return g;if(e=e.getComputedStyle(a,null))c=e.getPropertyValue(b),c===""&&!h.contains(a.ownerDocument.documentElement,a)&&(c=h.style(a,b));return c});u.documentElement.currentStyle&&(qa=function(a,b){var c,e=a.currentStyle&&a.currentStyle[b],h=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!Qa.test(e)&&ub.test(e)&&(c=f.left,h&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e||0,e=f.pixelLeft+"px",f.left=c,h&&(a.runtimeStyle.left=h));return e===
""?"auto":e});ba=Ra||qa;h.expr&&h.expr.filters&&(h.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!h.support.reliableHiddenOffsets&&(a.style.display||h.css(a,"display"))==="none"},h.expr.filters.visible=function(a){return!h.expr.filters.hidden(a)});var zb=/%20/g,Za=/\[\]$/,Sa=/\r?\n/g,Ab=/#.*$/,Bb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Cb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,
Ta=/\?/,Fb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Gb=/^(?:select|textarea)/i,Fa=/\s+/,Hb=/([?&])_=[^&]*/,Ua=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Va=h.fn.load,va={},Wa={},W,X;try{W=K.href}catch(Nb){W=u.createElement("a"),W.href="",W=W.href}X=Ua.exec(W.toLowerCase())||[];h.fn.extend({load:function(a,b,c){if(typeof a!="string"&&Va)return Va.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET";b&&(h.isFunction(b)?
(c=b,b=g):typeof b=="object"&&(b=h.param(b,h.ajaxSettings.traditional),e="POST"));var k=this;h.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),k.html(f?h("<div>").append(e.replace(Fb,"")).find(f):e));c&&k.each(c,[e,b,a])}});return this},serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&
!this.disabled&&(this.checked||Gb.test(this.nodeName)||Cb.test(this.type))}).map(function(a,b){var c=h(this).val();return c==null?null:h.isArray(c)?h.map(c,function(a){return{name:b.name,value:a.replace(Sa,"\r\n")}}):{name:b.name,value:c.replace(Sa,"\r\n")}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){h.fn[b]=function(a){return this.bind(b,a)}});h.each(["get","post"],function(a,b){h[b]=function(a,c,e,f){h.isFunction(c)&&(f=f||e,e=c,c=
g);return h.ajax({type:b,url:a,data:c,success:e,dataType:f})}});h.extend({getScript:function(a,b){return h.get(a,g,b,"script")},getJSON:function(a,b,c){return h.get(a,b,c,"json")},ajaxSetup:function(a,b){b?h.extend(!0,a,h.ajaxSettings,b):(b=a,a=h.extend(!0,h.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in h.ajaxSettings&&(a[c]=h.ajaxSettings[c]);return a},ajaxSettings:{url:W,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(X[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":b.String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML}},ajaxPrefilter:q(va),ajaxTransport:q(Wa),ajax:function(a,b){function c(a,b,n,s){if(x!==2){x=2;u&&clearTimeout(u);v=g;q=s||"";z.readyState=a?4:0;var p,t,G;if(n){var s=
e,y=z,D=s.contents,w=s.dataTypes,B=s.responseFields,C,F,E,H;for(F in B)F in n&&(y[B[F]]=n[F]);for(;w[0]==="*";)w.shift(),C===g&&(C=s.mimeType||y.getResponseHeader("content-type"));if(C)for(F in D)if(D[F]&&D[F].test(C)){w.unshift(F);break}if(w[0]in n)E=w[0];else{for(F in n){if(!w[0]||s.converters[F+" "+w[0]]){E=F;break}H||(H=F)}E=E||H}E?(E!==w[0]&&w.unshift(E),n=n[E]):n=void 0}else n=g;if(a>=200&&a<300||a===304){if(e.ifModified){if(C=z.getResponseHeader("Last-Modified"))h.lastModified[o]=C;if(C=z.getResponseHeader("Etag"))h.etag[o]=
C}if(a===304)b="notmodified",p=!0;else try{C=e;C.dataFilter&&(n=C.dataFilter(n,C.dataType));var N=C.dataTypes;F={};var ga,I,O=N.length,na,J=N[0],T,P,K,L,M;for(ga=1;ga<O;ga++){if(ga===1)for(I in C.converters)typeof I=="string"&&(F[I.toLowerCase()]=C.converters[I]);T=J;J=N[ga];if(J==="*")J=T;else if(T!=="*"&&T!==J){P=T+" "+J;K=F[P]||F["* "+J];if(!K)for(L in M=g,F)if(na=L.split(" "),na[0]===T||na[0]==="*")if(M=F[na[1]+" "+J]){L=F[L];L===!0?K=M:M===!0&&(K=L);break}!K&&!M&&h.error("No conversion from "+
P.replace(" "," to "));K!==!0&&(n=K?K(n):M(L(n)))}}t=n;b="success";p=!0}catch(Q){b="parsererror",G=Q}}else if(G=b,!b||a)b="error",a<0&&(a=0);z.status=a;z.statusText=b;p?j.resolveWith(f,[t,b,z]):j.rejectWith(f,[z,b,G]);z.statusCode(m);m=g;A&&k.trigger("ajax"+(p?"Success":"Error"),[z,e,p?t:G]);l.resolveWith(f,[z,b]);A&&(k.trigger("ajaxComplete",[z,e]),--h.active||h.event.trigger("ajaxStop"))}}typeof a=="object"&&(b=a,a=g);var b=b||{},e=h.ajaxSetup({},b),f=e.context||e,k=f!==e&&(f.nodeType||f instanceof
h)?h(f):h.event,j=h.Deferred(),l=h._Deferred(),m=e.statusCode||{},o,n={},t={},q,y,v,u,w,x=0,A,B,z={readyState:0,setRequestHeader:function(a,b){if(!x){var c=a.toLowerCase(),a=t[c]=t[c]||a;n[a]=b}return this},getAllResponseHeaders:function(){return x===2?q:null},getResponseHeader:function(a){var b;if(x===2){if(!y)for(y={};b=Bb.exec(q);)y[b[1].toLowerCase()]=b[2];b=y[a.toLowerCase()]}return b===g?null:b},overrideMimeType:function(a){x||(e.mimeType=a);return this},abort:function(a){a=a||"abort";v&&v.abort(a);
c(0,a);return this}};j.promise(z);z.success=z.done;z.error=z.fail;z.complete=l.done;z.statusCode=function(a){if(a){var b;if(x<2)for(b in a)m[b]=[m[b],a[b]];else b=a[z.status],z.then(b,b)}return this};e.url=((a||e.url)+"").replace(Ab,"").replace(Eb,X[1]+"//");e.dataTypes=h.trim(e.dataType||"*").toLowerCase().split(Fa);e.crossDomain==null&&(w=Ua.exec(e.url.toLowerCase()),e.crossDomain=!(!w||w[1]==X[1]&&w[2]==X[2]&&(w[3]||(w[1]==="http:"?80:443))==(X[3]||(X[1]==="http:"?80:443))));e.data&&e.processData&&
typeof e.data!="string"&&(e.data=h.param(e.data,e.traditional));p(va,e,b,z);if(x===2)return!1;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!Db.test(e.type);A&&h.active++===0&&h.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Ta.test(e.url)?"&":"?")+e.data),o=e.url,e.cache===!1)){w=h.now();var C=e.url.replace(Hb,"$1_="+w);e.url=C+(C===e.url?(Ta.test(e.url)?"&":"?")+"_="+w:"")}(e.data&&e.hasContent&&e.contentType!==!1||b.contentType)&&z.setRequestHeader("Content-Type",e.contentType);
e.ifModified&&(o=o||e.url,h.lastModified[o]&&z.setRequestHeader("If-Modified-Since",h.lastModified[o]),h.etag[o]&&z.setRequestHeader("If-None-Match",h.etag[o]));z.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"]);for(B in e.headers)z.setRequestHeader(B,e.headers[B]);if(e.beforeSend&&(e.beforeSend.call(f,z,e)===!1||x===2))return z.abort(),!1;for(B in{success:1,error:1,complete:1})z[B](e[B]);if(v=p(Wa,
e,b,z)){z.readyState=1;A&&k.trigger("ajaxSend",[z,e]);e.async&&e.timeout>0&&(u=setTimeout(function(){z.abort("timeout")},e.timeout));try{x=1,v.send(n,c)}catch(F){status<2?c(-1,F):h.error(F)}}else c(-1,"No Transport");return z},param:function(a,b){var c=[],e=function(a,b){b=h.isFunction(b)?b():b;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===g&&(b=h.ajaxSettings.traditional);if(h.isArray(a)||a.jquery&&!h.isPlainObject(a))h.each(a,function(){e(this.name,this.value)});else for(var f in a)o(f,
a[f],b,e);return c.join("&").replace(zb,"+")}});h.extend({active:0,lastModified:{},etag:{}});var Ib=h.now(),ra=/(\=)\?(&|$)|\?\?/i;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return h.expando+"_"+Ib++}});h.ajaxPrefilter("json jsonp",function(a,c,e){c=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data=="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==!1&&(ra.test(a.url)||c&&ra.test(a.data))){var f,k=a.jsonpCallback=h.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,
g=b[k],j=a.url,l=a.data,m="$1"+k+"$2";a.jsonp!==!1&&(j=j.replace(ra,m),a.url===j&&(c&&(l=l.replace(ra,m)),a.data===l&&(j+=(/\?/.test(j)?"&":"?")+a.jsonp+"="+k)));a.url=j;a.data=l;b[k]=function(a){f=[a]};e.always(function(){b[k]=g;f&&h.isFunction(g)&&b[k](f[0])});a.converters["script json"]=function(){f||h.error(k+" was not called");return f[0]};a.dataTypes[0]="json";return"script"}});h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){h.globalEval(a);return a}}});h.ajaxPrefilter("script",function(a){a.cache===g&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});h.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=u.head||u.getElementsByTagName("head")[0]||u.documentElement;return{send:function(e,f){b=u.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,
e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=g,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Aa=b.ActiveXObject?function(){for(var a in ca)ca[a](0,1)}:!1,Jb=0,ca;h.ajaxSettings.xhr=b.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&k()))a:{try{a=new b.ActiveXObject("Microsoft.XMLHTTP");break a}catch(c){}a=void 0}return a}:k;(function(a){h.extend(h.support,{ajax:!!a,
cors:!!a&&"withCredentials"in a})})(h.ajaxSettings.xhr());h.support.ajax&&h.ajaxTransport(function(a){if(!a.crossDomain||h.support.cors){var c;return{send:function(e,f){var k=a.xhr(),j,l;a.username?k.open(a.type,a.url,a.async,a.username,a.password):k.open(a.type,a.url,a.async);if(a.xhrFields)for(l in a.xhrFields)k[l]=a.xhrFields[l];a.mimeType&&k.overrideMimeType&&k.overrideMimeType(a.mimeType);!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(l in e)k.setRequestHeader(l,
e[l])}catch(m){}k.send(a.hasContent&&a.data||null);c=function(b,e){var l,m,o,n,p;try{if(c&&(e||k.readyState===4))if(c=g,j&&(k.onreadystatechange=h.noop,Aa&&delete ca[j]),e)k.readyState!==4&&k.abort();else{l=k.status;o=k.getAllResponseHeaders();n={};(p=k.responseXML)&&p.documentElement&&(n.xml=p);n.text=k.responseText;try{m=k.statusText}catch(t){m=""}!l&&a.isLocal&&!a.crossDomain?l=n.text?200:404:l===1223&&(l=204)}}catch(q){e||f(-1,q)}n&&f(l,m,n,o)};!a.async||k.readyState===4?c():(j=++Jb,Aa&&(ca||
(ca={},h(b).unload(Aa)),ca[j]=c),k.onreadystatechange=c)},abort:function(){c&&c(0,1)}}}});var ua={},M,fa,Kb=/^(?:toggle|show|hide)$/,Lb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,da,Da=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ma,Ba=b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame;h.fn.extend({show:function(a,b,c){var k;if(a||a===0)return this.animate(f("show",3),a,b,
c);b=0;for(c=this.length;b<c;b++)a=this[b],a.style&&(k=a.style.display,!h._data(a,"olddisplay")&&k==="none"&&(k=a.style.display=""),k===""&&h.css(a,"display")==="none"&&h._data(a,"olddisplay",e(a.nodeName)));for(b=0;b<c;b++)if(a=this[b],a.style&&(k=a.style.display,k===""||k==="none"))a.style.display=h._data(a,"olddisplay")||"";return this},hide:function(a,b,c){if(a||a===0)return this.animate(f("hide",3),a,b,c);a=0;for(b=this.length;a<b;a++)this[a].style&&(c=h.css(this[a],"display"),c!=="none"&&!h._data(this[a],
"olddisplay")&&h._data(this[a],"olddisplay",c));for(a=0;a<b;a++)this[a].style&&(this[a].style.display="none");return this},_toggle:h.fn.toggle,toggle:function(a,b,c){var e=typeof a=="boolean";h.isFunction(a)&&h.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:h(this).is(":hidden");h(this)[b?"show":"hide"]()}):this.animate(f("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},
a,c,e)},animate:function(a,b,c,f){var k=h.speed(b,c,f);if(h.isEmptyObject(a))return this.each(k.complete,[!1]);a=h.extend({},a);return this[k.queue===!1?"each":"queue"](function(){var s;k.queue===!1&&h._mark(this);var b=h.extend({},k),c=this.nodeType===1,f=c&&h(this).is(":hidden"),g,j,l,m,o,n,p,t;b.animatedProperties={};for(l in a){g=h.camelCase(l);l!==g&&(a[g]=a[l],delete a[l]);j=a[g];h.isArray(j)?(b.animatedProperties[g]=j[1],s=a[g]=j[0],j=s):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||
b.easing||"swing";if(j==="hide"&&f||j==="show"&&!f)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],h.css(this,"display")==="inline"&&h.css(this,"float")==="none"&&(h.support.inlineBlockNeedsLayout?(m=e(this.nodeName),m==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(l in a)c=new h.fx(this,
b,l),j=a[l],Kb.test(j)?c[j==="toggle"?f?"show":"hide":j]():(o=Lb.exec(j),n=c.cur(),o?(p=parseFloat(o[2]),t=o[3]||(h.cssNumber[l]?"":"px"),t!=="px"&&(h.style(this,l,(p||1)+t),n*=(p||1)/c.cur(),h.style(this,l,n+t)),o[1]&&(p=(o[1]==="-="?-1:1)*p+n),c.custom(n,p,t)):c.custom(n,j,""));return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=h.timers,c=a.length;for(b||h._unmark(!0,this);c--;)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))});b||this.dequeue();return this}});h.each({slideDown:f("show",
1),slideUp:f("hide",1),slideToggle:f("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){h.fn[a]=function(a,c,e){return this.animate(b,a,c,e)}});h.extend({speed:function(a,b,c){var e=a&&typeof a=="object"?h.extend({},a):{complete:c||!c&&b||h.isFunction(a)&&a,duration:a,easing:c&&b||b&&!h.isFunction(b)&&b};e.duration=h.fx.off?0:typeof e.duration=="number"?e.duration:e.duration in h.fx.speeds?h.fx.speeds[e.duration]:h.fx.speeds._default;e.old=e.complete;
e.complete=function(a){e.queue!==!1?h.dequeue(this):a!==!1&&h._unmark(this);h.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});h.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(h.fx.step[this.prop]||h.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=h.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,e){function f(a){return k.step(a)}var k=this,g=h.fx,j;this.startTime=ma||c();this.start=a;this.end=b;this.unit=e||this.unit||(h.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;f.elem=this.elem;f()&&h.timers.push(f)&&!da&&(Ba?(da=1,j=function(){da&&(Ba(j),g.tick())},Ba(j)):da=setInterval(g.tick,
g.interval))},show:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());h(this.elem).show()},hide:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=ma||c(),e=!0,f=this.elem,k=this.options,g,j;if(a||b>=k.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();k.animatedProperties[this.prop]=
!0;for(g in k.animatedProperties)k.animatedProperties[g]!==!0&&(e=!1);if(e){k.overflow!=null&&!h.support.shrinkWrapBlocks&&h.each(["","X","Y"],function(a,b){f.style["overflow"+b]=k.overflow[a]});k.hide&&h(f).hide();if(k.hide||k.show)for(var l in k.animatedProperties)h.style(f,l,k.orig[l]);k.complete.call(f)}return!1}k.duration==Infinity?this.now=b:(j=b-this.startTime,this.state=j/k.duration,this.pos=h.easing[k.animatedProperties[this.prop]](this.state,j,0,1,k.duration),this.now=this.start+(this.end-
this.start)*this.pos);this.update();return!0}};h.extend(h.fx,{tick:function(){for(var a=h.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||h.fx.stop()},interval:13,stop:function(){clearInterval(da);da=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){h.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});h.expr&&
h.expr.filters&&(h.expr.filters.animated=function(a){return h.grep(h.timers,function(b){return a===b.elem}).length});var Mb=/^t(?:able|d|h)$/i,Xa=/^(?:body|html)$/i;"getBoundingClientRect"in u.documentElement?h.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){h.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return h.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,k=f.documentElement;if(!c||!h.contains(k,
b))return c?{top:c.top,left:c.left}:{top:0,left:0};b=f.body;f=j(f);return{top:c.top+(f.pageYOffset||h.support.boxModel&&k.scrollTop||b.scrollTop)-(k.clientTop||b.clientTop||0),left:c.left+(f.pageXOffset||h.support.boxModel&&k.scrollLeft||b.scrollLeft)-(k.clientLeft||b.clientLeft||0)}}:h.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){h.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return h.offset.bodyOffset(b);h.offset.initialize();
var c,e=b.offsetParent,f=b.ownerDocument,k=f.documentElement,g=f.body;c=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var j=b.offsetTop,l=b.offsetLeft;(b=b.parentNode)&&b!==g&&b!==k;){if(h.offset.supportsFixedPosition&&c.position==="fixed")break;c=f?f.getComputedStyle(b,null):b.currentStyle;j-=b.scrollTop;l-=b.scrollLeft;b===e&&(j+=b.offsetTop,l+=b.offsetLeft,h.offset.doesNotAddBorder&&(!h.offset.doesAddBorderForTableAndCells||!Mb.test(b.nodeName))&&(j+=parseFloat(c.borderTopWidth)||
0,l+=parseFloat(c.borderLeftWidth)||0),e=b.offsetParent);h.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(j+=parseFloat(c.borderTopWidth)||0,l+=parseFloat(c.borderLeftWidth)||0)}if(c.position==="relative"||c.position==="static")j+=g.offsetTop,l+=g.offsetLeft;h.offset.supportsFixedPosition&&c.position==="fixed"&&(j+=Math.max(k.scrollTop,g.scrollTop),l+=Math.max(k.scrollLeft,g.scrollLeft));return{top:j,left:l}};h.offset={initialize:function(){var a=u.body,b=u.createElement("div"),
c,e,f,k=parseFloat(h.css(a,"marginTop"))||0;h.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);c=b.firstChild;
e=c.firstChild;f=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";c.style.overflow="hidden";c.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);h.offset.initialize=h.noop},bodyOffset:function(a){var b=
a.offsetTop,c=a.offsetLeft;h.offset.initialize();h.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(h.css(a,"marginTop"))||0,c+=parseFloat(h.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=h.css(a,"position");e==="static"&&(a.style.position="relative");var f=h(a),k=f.offset(),g=h.css(a,"top"),j=h.css(a,"left"),l={},m={},o,n;(e==="absolute"||e==="fixed")&&h.inArray("auto",[g,j])>-1?(m=f.position(),o=m.top,n=m.left):(o=parseFloat(g)||0,n=parseFloat(j)||0);h.isFunction(b)&&
(b=b.call(a,c,k));b.top!=null&&(l.top=b.top-k.top+o);b.left!=null&&(l.left=b.left-k.left+n);"using"in b?b.using.call(a,l):f.css(l)}};h.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=Xa.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(h.css(a,"marginTop"))||0;c.left-=parseFloat(h.css(a,"marginLeft"))||0;e.top+=parseFloat(h.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(h.css(b[0],"borderLeftWidth"))||0;return{top:c.top-
e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||u.body;a&&!Xa.test(a.nodeName)&&h.css(a,"position")==="static";)a=a.offsetParent;return a})}});h.each(["Left","Top"],function(a,b){var c="scroll"+b;h.fn[c]=function(b){var e,f;return b===g?(e=this[0],!e?null:(f=j(e))?"pageXOffset"in f?f[a?"pageYOffset":"pageXOffset"]:h.support.boxModel&&f.document.documentElement[c]||f.document.body[c]:e[c]):this.each(function(){(f=j(this))?f.scrollTo(a?h(f).scrollLeft():
b,a?b:h(f).scrollTop()):this[c]=b})}});h.each(["Height","Width"],function(a,b){var c=b.toLowerCase();h.fn["inner"+b]=function(){return this[0]?parseFloat(h.css(this[0],c,"padding")):null};h.fn["outer"+b]=function(a){return this[0]?parseFloat(h.css(this[0],c,a?"margin":"border")):null};h.fn[c]=function(a){var e=this[0];if(!e)return a==null?null:this;if(h.isFunction(a))return this.each(function(b){var e=h(this);e[c](a.call(this,b,e[c]()))});if(h.isWindow(e)){var f=e.document.documentElement["client"+
b];return e.document.compatMode==="CSS1Compat"&&f||e.document.body["client"+b]||f}return e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):a===g?(e=h.css(e,c),f=parseFloat(e),h.isNaN(f)?e:f):this.css(c,typeof a=="string"?a:a+"px")}});b.jQuery=b.$=h})(window);(function(b,g){function j(e){return!b(e).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};b.ui.version||(b.extend(b.ui,{version:"1.8.12",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),b.fn.extend({_focus:b.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var a=this;setTimeout(function(){b(a).focus();f&&f.call(a)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;e=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!e.length?b(document):e},zIndex:function(e){if(e!==g)return this.css("zIndex",e);if(this.length)for(var e=b(this[0]),f;e.length&&e[0]!==document;){f=e.css("position");if(f===
"absolute"||f==="relative"||f==="fixed")if(f=parseInt(e.css("zIndex"),10),!isNaN(f)&&f!==0)return f;e=e.parent()}return 0},disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(b){b.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),b.each(["Width","Height"],function(e,f){function a(a,e,f,k){b.each(c,function(){e-=parseFloat(b.curCSS(a,"padding"+this,!0))||0;f&&(e-=parseFloat(b.curCSS(a,
"border"+this+"Width",!0))||0);k&&(e-=parseFloat(b.curCSS(a,"margin"+this,!0))||0)});return e}var c=f==="Width"?["Left","Right"]:["Top","Bottom"],k=f.toLowerCase(),j={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+f]=function(c){return c===g?j["inner"+f].call(this):this.each(function(){b(this).css(k,a(this,c)+"px")})};b.fn["outer"+f]=function(c,e){return typeof c!=="number"?j["outer"+f].call(this,c):this.each(function(){b(this).css(k,
a(this,c,!0,e)+"px")})}}),b.extend(b.expr[":"],{data:function(e,f,a){return!!b.data(e,a[3])},focusable:function(e){var f=e.nodeName.toLowerCase(),a=b.attr(e,"tabindex");if("area"===f){f=e.parentNode;a=f.name;if(!e.href||!a||f.nodeName.toLowerCase()!=="map")return!1;e=b("img[usemap=#"+a+"]")[0];return!!e&&j(e)}return(/input|select|textarea|button|object/.test(f)?!e.disabled:"a"==f?e.href||!isNaN(a):!isNaN(a))&&j(e)},tabbable:function(e){var f=b.attr(e,"tabindex");return(isNaN(f)||f>=0)&&b(e).is(":focusable")}}),
b(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));b.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=f.offsetHeight===100;b.support.selectstart="onselectstart"in f;e.removeChild(f).style.display="none"}),b.extend(b.ui,{plugin:{add:function(e,f,a){var e=b.ui[e].prototype,c;for(c in a)e.plugins[c]=e.plugins[c]||[],e.plugins[c].push([f,a[c]])},call:function(b,f,a){if((f=b.plugins[f])&&b.element[0].parentNode)for(var c=0;c<f.length;c++)b.options[f[c][0]]&&
f[c][1].apply(b.element,a)}},contains:function(b,f){return document.compareDocumentPosition?b.compareDocumentPosition(f)&16:b!==f&&b.contains(f)},hasScroll:function(e,f){if(b(e).css("overflow")==="hidden")return!1;var f=f&&f==="left"?"scrollLeft":"scrollTop",a=!1;if(e[f]>0)return!0;e[f]=1;a=e[f]>0;e[f]=0;return a},isOverAxis:function(b,f,a){return b>f&&b<f+a},isOver:function(e,f,a,c,k,g){return b.ui.isOverAxis(e,a,k)&&b.ui.isOverAxis(f,c,g)}}))})(jQuery);
(function(b,g){if(b.cleanData){var j=b.cleanData;b.cleanData=function(e){for(var a=0,c;(c=e[a])!=null;a++)b(c).triggerHandler("remove");j(e)}}else{var e=b.fn.remove;b.fn.remove=function(f,a){return this.each(function(){a||(!f||b.filter(f,[this]).length)&&b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return e.call(b(this),f,a)})}}b.widget=function(e,a,c){var k=e.split(".")[0],g,e=e.split(".")[1];g=k+"-"+e;if(!c)c=a,a=b.Widget;b.expr[":"][g]=function(a){return!!b.data(a,
e)};b[k]=b[k]||{};b[k][e]=function(a,b){arguments.length&&this._createWidget(a,b)};a=new a;a.options=b.extend(!0,{},a.options);b[k][e].prototype=b.extend(!0,a,{namespace:k,widgetName:e,widgetEventPrefix:b[k][e].prototype.widgetEventPrefix||e,widgetBaseClass:g},c);b.widget.bridge(e,b[k][e])};b.widget.bridge=function(e,a){b.fn[e]=function(c){var k=typeof c==="string",j=Array.prototype.slice.call(arguments,1),p=this,c=!k&&j.length?b.extend.apply(null,[!0,c].concat(j)):c;if(k&&c.charAt(0)==="_")return p;
k?this.each(function(){var a=b.data(this,e),k=a&&b.isFunction(a[c])?a[c].apply(a,j):a;if(k!==a&&k!==g)return p=k,!1}):this.each(function(){var k=b.data(this,e);k?k.option(c||{})._init():b.data(this,e,new a(c,this))});return p}};b.Widget=function(b,a){arguments.length&&this._createWidget(b,a)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,a){b.data(a,this.widgetName,this);this.element=b(a);this.options=b.extend(!0,{},this.options,this._getCreateOptions(),
e);var c=this;this.element.bind("remove."+this.widgetName,function(){c.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},
option:function(e,a){var c=e;if(arguments.length===0)return b.extend({},this.options);if(typeof e==="string"){if(a===g)return this.options[e];c={};c[e]=a}this._setOptions(c);return this},_setOptions:function(e){var a=this;b.each(e,function(b,e){a._setOption(b,e)});return this},_setOption:function(b,a){this.options[b]=a;b==="disabled"&&this.widget()[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",a);return this},enable:function(){return this._setOption("disabled",
!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,a,c){var k=this.options[e],a=b.Event(a);a.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();c=c||{};if(a.originalEvent)for(var e=b.event.props.length,g;e;)g=b.event.props[--e],a[g]=a.originalEvent[g];this.element.trigger(a,c);return!(b.isFunction(k)&&k.call(this.element[0],a,c)===!1||a.isDefaultPrevented())}}})(jQuery);
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var g=this;this.element.bind("mousedown."+this.widgetName,function(b){return g._mouseDown(b)}).bind("click."+this.widgetName,function(j){if(!0===b.data(j.target,g.widgetName+".preventClickEvent"))return b.removeData(j.target,g.widgetName+".preventClickEvent"),j.stopImmediatePropagation(),!1});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(g){g.originalEvent=
g.originalEvent||{};if(!g.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(g);this._mouseDownEvent=g;var j=this,e=g.which==1,f=typeof this.options.cancel=="string"?b(g.target).parents().add(g.target).filter(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(g))return!0;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){j.mouseDelayMet=!0},this.options.delay);if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)&&(this._mouseStarted=
this._mouseStart(g)!==!1,!this._mouseStarted))return g.preventDefault(),!0;!0===b.data(g.target,this.widgetName+".preventClickEvent")&&b.removeData(g.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return j._mouseMove(a)};this._mouseUpDelegate=function(a){return j._mouseUp(a)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);g.preventDefault();return g.originalEvent.mouseHandled=!0}},_mouseMove:function(g){if(b.browser.msie&&
!(document.documentMode>=9)&&!g.button)return this._mouseUp(g);if(this._mouseStarted)return this._mouseDrag(g),g.preventDefault();if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,g)!==!1)?this._mouseDrag(g):this._mouseUp(g);return!this._mouseStarted},_mouseUp:function(g){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted=
!1,g.target==this._mouseDownEvent.target&&b.data(g.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(g);return!1},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(b){b.ui=b.ui||{};var g=/left|center|right/,j=/top|center|bottom/,e=b.fn.position,f=b.fn.offset;b.fn.position=function(a){if(!a||!a.of)return e.apply(this,arguments);var a=b.extend({},a),c=b(a.of),f=c[0],o=(a.collision||"flip").split(" "),p=a.offset?a.offset.split(" "):[0,0],q,m,l;f.nodeType===9?(q=c.width(),m=c.height(),l={top:0,left:0}):f.setTimeout?(q=c.width(),m=c.height(),l={top:c.scrollTop(),left:c.scrollLeft()}):f.preventDefault?(a.at="left top",q=m=0,l={top:a.of.pageY,left:a.of.pageX}):
(q=c.outerWidth(),m=c.outerHeight(),l=c.offset());b.each(["my","at"],function(){var b=(a[this]||"").split(" ");b.length===1&&(b=g.test(b[0])?b.concat(["center"]):j.test(b[0])?["center"].concat(b):["center","center"]);b[0]=g.test(b[0])?b[0]:"center";b[1]=j.test(b[1])?b[1]:"center";a[this]=b});o.length===1&&(o[1]=o[0]);p[0]=parseInt(p[0],10)||0;p.length===1&&(p[1]=p[0]);p[1]=parseInt(p[1],10)||0;a.at[0]==="right"?l.left+=q:a.at[0]==="center"&&(l.left+=q/2);a.at[1]==="bottom"?l.top+=m:a.at[1]==="center"&&
(l.top+=m/2);l.left+=p[0];l.top+=p[1];return this.each(function(){var c=b(this),e=c.outerWidth(),f=c.outerHeight(),k=parseInt(b.curCSS(this,"marginLeft",!0))||0,g=parseInt(b.curCSS(this,"marginTop",!0))||0,j=e+k+(parseInt(b.curCSS(this,"marginRight",!0))||0),A=f+g+(parseInt(b.curCSS(this,"marginBottom",!0))||0),B=b.extend({},l),z;a.my[0]==="right"?B.left-=e:a.my[0]==="center"&&(B.left-=e/2);a.my[1]==="bottom"?B.top-=f:a.my[1]==="center"&&(B.top-=f/2);B.left=Math.round(B.left);B.top=Math.round(B.top);
z={left:B.left-k,top:B.top-g};b.each(["left","top"],function(c,k){b.ui.position[o[c]]&&b.ui.position[o[c]][k](B,{targetWidth:q,targetHeight:m,elemWidth:e,elemHeight:f,collisionPosition:z,collisionWidth:j,collisionHeight:A,offset:p,my:a.my,at:a.at})});b.fn.bgiframe&&c.bgiframe();c.offset(b.extend(B,{using:a.using}))})};b.ui.position={fit:{left:function(a,c){var e=b(window),e=c.collisionPosition.left+c.collisionWidth-e.width()-e.scrollLeft();a.left=e>0?a.left-e:Math.max(a.left-c.collisionPosition.left,
a.left)},top:function(a,c){var e=b(window),e=c.collisionPosition.top+c.collisionHeight-e.height()-e.scrollTop();a.top=e>0?a.top-e:Math.max(a.top-c.collisionPosition.top,a.top)}},flip:{left:function(a,c){if(c.at[0]!=="center"){var e=b(window),e=c.collisionPosition.left+c.collisionWidth-e.width()-e.scrollLeft(),f=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,g=c.at[0]==="left"?c.targetWidth:-c.targetWidth,j=-2*c.offset[0];a.left+=c.collisionPosition.left<0?f+g+j:e>0?f+g+j:0}},top:function(a,
c){if(c.at[1]!=="center"){var e=b(window),e=c.collisionPosition.top+c.collisionHeight-e.height()-e.scrollTop(),f=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,g=c.at[1]==="top"?c.targetHeight:-c.targetHeight,j=-2*c.offset[1];a.top+=c.collisionPosition.top<0?f+g+j:e>0?f+g+j:0}}}};if(!b.offset.setOffset)b.offset.setOffset=function(a,c){if(/static/.test(b.curCSS(a,"position")))a.style.position="relative";var e=b(a),f=e.offset(),g=parseInt(b.curCSS(a,"top",!0),10)||0,j=parseInt(b.curCSS(a,
"left",!0),10)||0,f={top:c.top-f.top+g,left:c.left-f.left+j};"using"in c?c.using.call(a,f):e.css(f)},b.fn.offset=function(a){var c=this[0];return!c||!c.ownerDocument?null:a?this.each(function(){b.offset.setOffset(this,a)}):f.call(this)}})(jQuery);
(function(b){b.widget("ui.draggable",b.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position=
"relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(g){var j=this.options;if(this.helper||j.disabled||b(g.target).is(".ui-resizable-handle"))return!1;
this.handle=this._getHandle(g);return!this.handle?!1:!0},_mouseStart:function(g){var j=this.options;this.helper=this._createHelper(g);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:g.pageX-
this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(g);this.originalPageX=g.pageX;this.originalPageY=g.pageY;j.cursorAt&&this._adjustOffsetFromHelper(j.cursorAt);j.containment&&this._setContainment();if(this._trigger("start",g)===!1)return this._clear(),!1;this._cacheHelperProportions();b.ui.ddmanager&&!j.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,g);this.helper.addClass("ui-draggable-dragging");
this._mouseDrag(g,!0);return!0},_mouseDrag:function(g,j){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!j){j=this._uiHash();if(this._trigger("drag",g,j)===!1)return this._mouseUp({}),!1;this.position=j.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";b.ui.ddmanager&&b.ui.ddmanager.drag(this,g);return!1},
_mouseStop:function(g){var j=!1;b.ui.ddmanager&&!this.options.dropBehaviour&&(j=b.ui.ddmanager.drop(this,g));if(this.dropped)j=this.dropped,this.dropped=!1;if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!j||this.options.revert=="valid"&&j||this.options.revert===!0||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,j)){var e=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
10),function(){e._trigger("stop",g)!==!1&&e._clear()})}else this._trigger("stop",g)!==!1&&this._clear();return!1},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(g){var j=!this.options.handle||!b(this.options.handle,this.element).length?!0:!1;b(this.options.handle,this.element).find("*").andSelf().each(function(){this==g.target&&(j=!0)});return j},_createHelper:function(g){var j=this.options,g=b.isFunction(j.helper)?b(j.helper.apply(this.element[0],
[g])):j.helper=="clone"?this.element.clone():this.element;g.parents("body").length||g.appendTo(j.appendTo=="parent"?this.element[0].parentNode:j.appendTo);g[0]!=this.element[0]&&!/(fixed|absolute)/.test(g.css("position"))&&g.css("position","absolute");return g},_adjustOffsetFromHelper:function(g){typeof g=="string"&&(g=g.split(" "));b.isArray(g)&&(g={left:+g[0],top:+g[1]||0});if("left"in g)this.offset.click.left=g.left+this.margins.left;if("right"in g)this.offset.click.left=this.helperProportions.width-
g.right+this.margins.left;if("top"in g)this.offset.click.top=g.top+this.margins.top;if("bottom"in g)this.offset.click.top=this.helperProportions.height-g.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var g=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(g.left+=this.scrollParent.scrollLeft(),g.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==
document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)g={top:0,left:0};return{top:g.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:g.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),
10)||0)+this.scrollParent.scrollLeft()}}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 g=this.options;if(g.containment==
"parent")g.containment=this.helper[0].parentNode;if(g.containment=="document"||g.containment=="window")this.containment=[(g.containment=="document"?0:b(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(g.containment=="document"?0:b(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(g.containment=="document"?0:b(window).scrollLeft())+b(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(g.containment=="document"?
0:b(window).scrollTop())+(b(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(g.containment)&&g.containment.constructor!=Array){var j=b(g.containment)[0];if(j){var g=b(g.containment).offset(),e=b(j).css("overflow")!="hidden";this.containment=[g.left+(parseInt(b(j).css("borderLeftWidth"),10)||0)+(parseInt(b(j).css("paddingLeft"),10)||0),g.top+(parseInt(b(j).css("borderTopWidth"),
10)||0)+(parseInt(b(j).css("paddingTop"),10)||0),g.left+(e?Math.max(j.scrollWidth,j.offsetWidth):j.offsetWidth)-(parseInt(b(j).css("borderLeftWidth"),10)||0)-(parseInt(b(j).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,g.top+(e?Math.max(j.scrollHeight,j.offsetHeight):j.offsetHeight)-(parseInt(b(j).css("borderTopWidth"),10)||0)-(parseInt(b(j).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(g.containment.constructor==
Array)this.containment=g.containment},_convertPositionTo:function(g,j){if(!j)j=this.position;var g=g=="absolute"?1:-1,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName);return{top:j.top+this.offset.relative.top*g+this.offset.parent.top*g-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:e.scrollTop())*g),left:j.left+this.offset.relative.left*g+this.offset.parent.left*g-(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*g)}},_generatePosition:function(g){var j=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName),a=g.pageX,c=g.pageY;
this.originalPosition&&(this.containment&&(g.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),g.pageY-this.offset.click.top<this.containment[1]&&(c=this.containment[1]+this.offset.click.top),g.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),g.pageY-this.offset.click.top>this.containment[3]&&(c=this.containment[3]+this.offset.click.top)),j.grid&&(c=this.originalPageY+Math.round((c-this.originalPageY)/j.grid[1])*
j.grid[1],c=this.containment?!(c-this.offset.click.top<this.containment[1]||c-this.offset.click.top>this.containment[3])?c:!(c-this.offset.click.top<this.containment[1])?c-j.grid[1]:c+j.grid[1]:c,a=this.originalPageX+Math.round((a-this.originalPageX)/j.grid[0])*j.grid[0],a=this.containment?!(a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2])?a:!(a-this.offset.click.left<this.containment[0])?a-j.grid[0]:a+j.grid[0]:a));return{top:c-this.offset.click.top-this.offset.relative.top-
this.offset.parent.top+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&b.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.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(g,j,e){e=e||this._uiHash();b.ui.plugin.call(this,g,[j,e]);if(g=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.Widget.prototype._trigger.call(this,g,j,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.extend(b.ui.draggable,{version:"1.8.12"});b.ui.plugin.add("draggable","connectToSortable",{start:function(g,
j){var e=b(this).data("draggable"),f=e.options,a=b.extend({},j,{item:e.element});e.sortables=[];b(f.connectToSortable).each(function(){var c=b.data(this,"sortable");c&&!c.options.disabled&&(e.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",g,a))})},stop:function(g,j){var e=b(this).data("draggable"),f=b.extend({},j,{item:e.element});b.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=!0;this.instance.cancelHelperRemoval=
!1;if(this.shouldRevert)this.instance.options.revert=!0;this.instance._mouseStop(g);this.instance.options.helper=this.instance.options._helper;e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",g,f)})},drag:function(g,j){var e=b(this).data("draggable"),f=this;b.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=
e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver)this.instance.isOver=1,this.instance.currentItem=b(f).clone().appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return j.helper[0]},g.target=this.instance.currentItem[0],this.instance._mouseCapture(g,!0),this.instance._mouseStart(g,!0,!0),this.instance.offset.click.top=e.offset.click.top,this.instance.offset.click.left=
e.offset.click.left,this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top,e._trigger("toSortable",g),e.dropped=this.instance.element,e.currentItem=e.element,this.instance.fromOutside=e;this.instance.currentItem&&this.instance._mouseDrag(g)}else if(this.instance.isOver)this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",
g,this.instance._uiHash(this.instance)),this.instance._mouseStop(g,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),e._trigger("fromSortable",g),e.dropped=!1})}});b.ui.plugin.add("draggable","cursor",{start:function(){var g=b("body"),j=b(this).data("draggable").options;if(g.css("cursor"))j._cursor=g.css("cursor");g.css("cursor",j.cursor)},stop:function(){var g=b(this).data("draggable").options;
g._cursor&&b("body").css("cursor",g._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var g=b(this).data("draggable").options;b(g.iframeFix===!0?"iframe":g.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
b.ui.plugin.add("draggable","opacity",{start:function(g,j){g=b(j.helper);j=b(this).data("draggable").options;if(g.css("opacity"))j._opacity=g.css("opacity");g.css("opacity",j.opacity)},stop:function(g,j){g=b(this).data("draggable").options;g._opacity&&b(j.helper).css("opacity",g._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var g=b(this).data("draggable");if(g.scrollParent[0]!=document&&g.scrollParent[0].tagName!="HTML")g.overflowOffset=g.scrollParent.offset()},drag:function(g){var j=
b(this).data("draggable"),e=j.options,f=!1;if(j.scrollParent[0]!=document&&j.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(j.overflowOffset.top+j.scrollParent[0].offsetHeight-g.pageY<e.scrollSensitivity)j.scrollParent[0].scrollTop=f=j.scrollParent[0].scrollTop+e.scrollSpeed;else if(g.pageY-j.overflowOffset.top<e.scrollSensitivity)j.scrollParent[0].scrollTop=f=j.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(j.overflowOffset.left+j.scrollParent[0].offsetWidth-g.pageX<
e.scrollSensitivity)j.scrollParent[0].scrollLeft=f=j.scrollParent[0].scrollLeft+e.scrollSpeed;else if(g.pageX-j.overflowOffset.left<e.scrollSensitivity)j.scrollParent[0].scrollLeft=f=j.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")g.pageY-b(document).scrollTop()<e.scrollSensitivity?f=b(document).scrollTop(b(document).scrollTop()-e.scrollSpeed):b(window).height()-(g.pageY-b(document).scrollTop())<e.scrollSensitivity&&(f=b(document).scrollTop(b(document).scrollTop()+e.scrollSpeed));
if(!e.axis||e.axis!="y")g.pageX-b(document).scrollLeft()<e.scrollSensitivity?f=b(document).scrollLeft(b(document).scrollLeft()-e.scrollSpeed):b(window).width()-(g.pageX-b(document).scrollLeft())<e.scrollSensitivity&&(f=b(document).scrollLeft(b(document).scrollLeft()+e.scrollSpeed))}f!==!1&&b.ui.ddmanager&&!e.dropBehaviour&&b.ui.ddmanager.prepareOffsets(j,g)}});b.ui.plugin.add("draggable","snap",{start:function(){var g=b(this).data("draggable"),j=g.options;g.snapElements=[];b(j.snap.constructor!=String?
j.snap.items||":data(draggable)":j.snap).each(function(){var e=b(this),f=e.offset();this!=g.element[0]&&g.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:f.top,left:f.left})})},drag:function(g,j){for(var e=b(this).data("draggable"),f=e.options,a=f.snapTolerance,c=j.offset.left,k=c+e.helperProportions.width,o=j.offset.top,p=o+e.helperProportions.height,q=e.snapElements.length-1;q>=0;q--){var m=e.snapElements[q].left,l=m+e.snapElements[q].width,n=e.snapElements[q].top,t=
n+e.snapElements[q].height;if(m-a<c&&c<l+a&&n-a<o&&o<t+a||m-a<c&&c<l+a&&n-a<p&&p<t+a||m-a<k&&k<l+a&&n-a<o&&o<t+a||m-a<k&&k<l+a&&n-a<p&&p<t+a){if(f.snapMode!="inner"){var y=Math.abs(n-p)<=a,v=Math.abs(t-o)<=a,w=Math.abs(m-k)<=a,x=Math.abs(l-c)<=a;if(y)j.position.top=e._convertPositionTo("relative",{top:n-e.helperProportions.height,left:0}).top-e.margins.top;if(v)j.position.top=e._convertPositionTo("relative",{top:t,left:0}).top-e.margins.top;if(w)j.position.left=e._convertPositionTo("relative",{top:0,
left:m-e.helperProportions.width}).left-e.margins.left;if(x)j.position.left=e._convertPositionTo("relative",{top:0,left:l}).left-e.margins.left}var A=y||v||w||x;if(f.snapMode!="outer"){y=Math.abs(n-o)<=a;v=Math.abs(t-p)<=a;w=Math.abs(m-c)<=a;x=Math.abs(l-k)<=a;if(y)j.position.top=e._convertPositionTo("relative",{top:n,left:0}).top-e.margins.top;if(v)j.position.top=e._convertPositionTo("relative",{top:t-e.helperProportions.height,left:0}).top-e.margins.top;if(w)j.position.left=e._convertPositionTo("relative",
{top:0,left:m}).left-e.margins.left;if(x)j.position.left=e._convertPositionTo("relative",{top:0,left:l-e.helperProportions.width}).left-e.margins.left}!e.snapElements[q].snapping&&(y||v||w||x||A)&&e.options.snap.snap&&e.options.snap.snap.call(e.element,g,b.extend(e._uiHash(),{snapItem:e.snapElements[q].item}));e.snapElements[q].snapping=y||v||w||x||A}else e.snapElements[q].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,g,b.extend(e._uiHash(),{snapItem:e.snapElements[q].item})),
e.snapElements[q].snapping=!1}}});b.ui.plugin.add("draggable","stack",{start:function(){var g=b(this).data("draggable").options,g=b.makeArray(b(g.stack)).sort(function(e,f){return(parseInt(b(e).css("zIndex"),10)||0)-(parseInt(b(f).css("zIndex"),10)||0)});if(g.length){var j=parseInt(g[0].style.zIndex)||0;b(g).each(function(b){this.style.zIndex=j+b});this[0].style.zIndex=j+g.length}}});b.ui.plugin.add("draggable","zIndex",{start:function(g,j){g=b(j.helper);j=b(this).data("draggable").options;if(g.css("zIndex"))j._zIndex=
g.css("zIndex");g.css("zIndex",j.zIndex)},stop:function(g,j){g=b(this).data("draggable").options;g._zIndex&&b(j.helper).css("zIndex",g._zIndex)}})})(jQuery);
(function(b){b.widget("ui.resizable",b.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,f=this.options;this.element.addClass("ui-resizable");b.extend(this,{_aspectRatio:!!f.aspectRatio,aspectRatio:f.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],
_helper:f.helper||f.ghost||f.animate?f.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i))/relative/.test(this.element.css("position"))&&b.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"}),this.element.wrap(b('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),
this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize",
"none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize();this.handles=f.handles||(!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles==
"all")this.handles="n,e,s,w,se,sw,ne,nw";var a=this.handles.split(",");this.handles={};for(var c=0;c<a.length;c++){var k=b.trim(a[c]),g=b('<div class="ui-resizable-handle ui-resizable-'+k+'"></div>');/sw|se|ne|nw/.test(k)&&g.css({zIndex:++f.zIndex});"se"==k&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(g)}}this._renderAxis=function(a){var a=a||this.element,c;for(c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=b(this.handles[c],
this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var e=b(this.handles[c],this.element),f=0,f=/sw|ne|nw|se|n|s/.test(c)?e.outerHeight():e.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");a.css(e,f);this._proportionallyResize()}b(this.handles[c])}};this._renderAxis(this.element);this._handles=b(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className)var a=
this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=a&&a[1]?a[1]:"se"}});f.autoHide&&(this._handles.hide(),b(this.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){e.resizing||(b(this).addClass("ui-resizable-autohide"),e._handles.hide())}));this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(a){b(a).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var f=!1,a;for(a in this.handles)b(this.handles[a])[0]==e.target&&(f=!0);return!this.options.disabled&&f},_mouseStart:function(e){var f=this.options,a=this.element.position(),
c=this.element;this.resizing=!0;this.documentScroll={top:b(document).scrollTop(),left:b(document).scrollLeft()};(c.is(".ui-draggable")||/absolute/.test(c.css("position")))&&c.css({position:"absolute",top:a.top,left:a.left});b.browser.opera&&/relative/.test(c.css("position"))&&c.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();var a=g(this.helper.css("left")),k=g(this.helper.css("top"));f.containment&&(a+=b(f.containment).scrollLeft()||0,k+=b(f.containment).scrollTop()||0);this.offset=
this.helper.offset();this.position={left:a,top:k};this.size=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalSize=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()};this.originalPosition={left:a,top:k};this.sizeDiff={width:c.outerWidth()-c.width(),height:c.outerHeight()-c.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof f.aspectRatio=="number"?f.aspectRatio:
this.originalSize.width/this.originalSize.height||1;f=b(".ui-resizable-"+this.axis).css("cursor");b("body").css("cursor",f=="auto"?this.axis+"-resize":f);c.addClass("ui-resizable-resizing");this._propagate("start",e);return!0},_mouseDrag:function(b){var f=this.helper,a=this.originalMousePosition,c=this._change[this.axis];if(!c)return!1;a=c.apply(this,[b,b.pageX-a.left||0,b.pageY-a.top||0]);if(this._aspectRatio||b.shiftKey)a=this._updateRatio(a,b);a=this._respectSize(a,b);this._propagate("resize",
b);f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(a);this._trigger("resize",b,this.ui());return!1},_mouseStop:function(e){this.resizing=!1;var f=this.options;if(this._helper){var a=this._proportionallyResizeElements,c=a.length&&/textarea/i.test(a[0].nodeName),a=c&&b.ui.hasScroll(a[0],"left")?0:this.sizeDiff.height,c=c?0:
this.sizeDiff.width,c={width:this.helper.width()-c,height:this.helper.height()-a},a=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null,k=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;f.animate||this.element.css(b.extend(c,{top:k,left:a}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!f.animate&&this._proportionallyResize()}b("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",e);this._helper&&this.helper.remove();return!1},_updateCache:function(b){this.offset=this.helper.offset();if(j(b.left))this.position.left=b.left;if(j(b.top))this.position.top=b.top;if(j(b.height))this.size.height=b.height;if(j(b.width))this.size.width=b.width},_updateRatio:function(b){var f=this.position,a=this.size,c=this.axis;if(b.height)b.width=a.height*this.aspectRatio;else if(b.width)b.height=a.width/this.aspectRatio;if(c=="sw")b.left=f.left+(a.width-b.width),b.top=null;
if(c=="nw")b.top=f.top+(a.height-b.height),b.left=f.left+(a.width-b.width);return b},_respectSize:function(b){var f=this.options,a=this.axis,c=j(b.width)&&f.maxWidth&&f.maxWidth<b.width,k=j(b.height)&&f.maxHeight&&f.maxHeight<b.height,g=j(b.width)&&f.minWidth&&f.minWidth>b.width,p=j(b.height)&&f.minHeight&&f.minHeight>b.height;if(g)b.width=f.minWidth;if(p)b.height=f.minHeight;if(c)b.width=f.maxWidth;if(k)b.height=f.maxHeight;var q=this.originalPosition.left+this.originalSize.width,m=this.position.top+
this.size.height,l=/sw|nw|w/.test(a),a=/nw|ne|n/.test(a);if(g&&l)b.left=q-f.minWidth;if(c&&l)b.left=q-f.maxWidth;if(p&&a)b.top=m-f.minHeight;if(k&&a)b.top=m-f.maxHeight;if((f=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(f&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,f=0;f<this._proportionallyResizeElements.length;f++){var a=this._proportionallyResizeElements[f];if(!this.borderDif){var c=
[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],k=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];this.borderDif=b.map(c,function(a,b){a=parseInt(a,10)||0;b=parseInt(k[b],10)||0;return a+b})}b.browser.msie&&(b(e).is(":hidden")||b(e).parents(":hidden").length)||a.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||b('<div style="overflow:hidden;"></div>');var f=b.browser.msie&&b.browser.version<7,a=f?1:0,f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-a+"px",top:this.elementOffset.top-a+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,
f){return{width:this.originalSize.width+f}},w:function(b,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(b,f,a){return{top:this.originalPosition.top+a,height:this.originalSize.height-a}},s:function(b,f,a){return{height:this.originalSize.height+a}},se:function(e,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,f,a]))},sw:function(e,f,a){return b.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,f,
a]))},ne:function(e,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,f,a]))},nw:function(e,f,a){return b.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,f,a]))}},_propagate:function(e,f){b.ui.plugin.call(this,e,[f,this.ui()]);e!="resize"&&this._trigger(e,f,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});b.extend(b.ui.resizable,{version:"1.8.12"});b.ui.plugin.add("resizable","alsoResize",{start:function(){var e=b(this).data("resizable").options,f=function(a){b(a).each(function(){var a=b(this);a.data("resizable-alsoresize",{width:parseInt(a.width(),10),height:parseInt(a.height(),10),left:parseInt(a.css("left"),10),top:parseInt(a.css("top"),10),position:a.css("position")})})};typeof e.alsoResize=="object"&&!e.alsoResize.parentNode?e.alsoResize.length?(e.alsoResize=
e.alsoResize[0],f(e.alsoResize)):b.each(e.alsoResize,function(a){f(a)}):f(e.alsoResize)},resize:function(e,f){var a=b(this).data("resizable"),e=a.options,c=a.originalSize,k=a.originalPosition,g={height:a.size.height-c.height||0,width:a.size.width-c.width||0,top:a.position.top-k.top||0,left:a.position.left-k.left||0},j=function(c,e){b(c).each(function(){var c=b(this),k=b(this).data("resizable-alsoresize"),j={},p=e&&e.length?e:c.parents(f.originalElement[0]).length?["width","height"]:["width","height",
"top","left"];b.each(p,function(a,b){if((a=(k[b]||0)+(g[b]||0))&&a>=0)j[b]=a||null});if(b.browser.opera&&/relative/.test(c.css("position")))a._revertToRelativePosition=!0,c.css({position:"absolute",top:"auto",left:"auto"});c.css(j)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?b.each(e.alsoResize,function(a,b){j(a,b)}):j(e.alsoResize)},stop:function(){var e=b(this).data("resizable"),f=e.options,a=function(a){b(a).each(function(){var a=b(this);a.css({position:a.data("resizable-alsoresize").position})})};
if(e._revertToRelativePosition)e._revertToRelativePosition=!1,typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?b.each(f.alsoResize,function(b){a(b)}):a(f.alsoResize);b(this).removeData("resizable-alsoresize")}});b.ui.plugin.add("resizable","animate",{stop:function(e){var f=b(this).data("resizable"),a=f.options,c=f._proportionallyResizeElements,k=c.length&&/textarea/i.test(c[0].nodeName),g=k&&b.ui.hasScroll(c[0],"left")?0:f.sizeDiff.height,k={width:f.size.width-(k?0:f.sizeDiff.width),height:f.size.height-
g},g=parseInt(f.element.css("left"),10)+(f.position.left-f.originalPosition.left)||null,j=parseInt(f.element.css("top"),10)+(f.position.top-f.originalPosition.top)||null;f.element.animate(b.extend(k,j&&g?{top:j,left:g}:{}),{duration:a.animateDuration,easing:a.animateEasing,step:function(){var a={width:parseInt(f.element.css("width"),10),height:parseInt(f.element.css("height"),10),top:parseInt(f.element.css("top"),10),left:parseInt(f.element.css("left"),10)};c&&c.length&&b(c[0]).css({width:a.width,
height:a.height});f._updateCache(a);f._propagate("resize",e)}})}});b.ui.plugin.add("resizable","containment",{start:function(){var e=b(this).data("resizable"),f=e.element,a=e.options.containment;if(f=a instanceof b?a.get(0):/parent/.test(a)?f.parent().get(0):a)if(e.containerElement=b(f),/document/.test(a)||a==document)e.containerOffset={left:0,top:0},e.containerPosition={left:0,top:0},e.parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight};
else{var c=b(f),k=[];b(["Top","Right","Left","Bottom"]).each(function(a,b){k[a]=g(c.css("padding"+b))});e.containerOffset=c.offset();e.containerPosition=c.position();e.containerSize={height:c.innerHeight()-k[3],width:c.innerWidth()-k[1]};var a=e.containerOffset,j=e.containerSize.height,p=e.containerSize.width,p=b.ui.hasScroll(f,"left")?f.scrollWidth:p,j=b.ui.hasScroll(f)?f.scrollHeight:j;e.parentData={element:f,left:a.left,top:a.top,width:p,height:j}}},resize:function(e){var f=b(this).data("resizable"),
a=f.options,c=f.containerOffset,k=f.position,e=f._aspectRatio||e.shiftKey,g={top:0,left:0},j=f.containerElement;j[0]!=document&&/static/.test(j.css("position"))&&(g=c);if(k.left<(f._helper?c.left:0)){f.size.width+=f._helper?f.position.left-c.left:f.position.left-g.left;if(e)f.size.height=f.size.width/a.aspectRatio;f.position.left=a.helper?c.left:0}if(k.top<(f._helper?c.top:0)){f.size.height+=f._helper?f.position.top-c.top:f.position.top;if(e)f.size.width=f.size.height*a.aspectRatio;f.position.top=
f._helper?c.top:0}f.offset.left=f.parentData.left+f.position.left;f.offset.top=f.parentData.top+f.position.top;a=Math.abs((f._helper?f.offset.left-g.left:f.offset.left-g.left)+f.sizeDiff.width);c=Math.abs((f._helper?f.offset.top-g.top:f.offset.top-c.top)+f.sizeDiff.height);k=f.containerElement.get(0)==f.element.parent().get(0);g=/relative|absolute/.test(f.containerElement.css("position"));k&&g&&(a-=f.parentData.left);if(a+f.size.width>=f.parentData.width&&(f.size.width=f.parentData.width-a,e))f.size.height=
f.size.width/f.aspectRatio;if(c+f.size.height>=f.parentData.height&&(f.size.height=f.parentData.height-c,e))f.size.width=f.size.height*f.aspectRatio},stop:function(){var e=b(this).data("resizable"),f=e.options,a=e.containerOffset,c=e.containerPosition,k=e.containerElement,g=b(e.helper),j=g.offset(),q=g.outerWidth()-e.sizeDiff.width,g=g.outerHeight()-e.sizeDiff.height;e._helper&&!f.animate&&/relative/.test(k.css("position"))&&b(this).css({left:j.left-c.left-a.left,width:q,height:g});e._helper&&!f.animate&&
/static/.test(k.css("position"))&&b(this).css({left:j.left-c.left-a.left,width:q,height:g})}});b.ui.plugin.add("resizable","ghost",{start:function(){var e=b(this).data("resizable"),f=e.options,a=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=b(this).data("resizable");
e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=b(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});b.ui.plugin.add("resizable","grid",{resize:function(){var e=b(this).data("resizable"),f=e.options,a=e.size,c=e.originalSize,k=e.originalPosition,g=e.axis;f.grid=typeof f.grid=="number"?[f.grid,f.grid]:f.grid;var j=Math.round((a.width-c.width)/(f.grid[0]||1))*(f.grid[0]||1),f=Math.round((a.height-c.height)/
(f.grid[1]||1))*(f.grid[1]||1);/^(se|s|e)$/.test(g)?(e.size.width=c.width+j,e.size.height=c.height+f):/^(ne)$/.test(g)?(e.size.width=c.width+j,e.size.height=c.height+f,e.position.top=k.top-f):(/^(sw)$/.test(g)?(e.size.width=c.width+j,e.size.height=c.height+f):(e.size.width=c.width+j,e.size.height=c.height+f,e.position.top=k.top-f),e.position.left=k.left-j)}});var g=function(b){return parseInt(b,10)||0},j=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
(function(b){var g=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var g=this,e=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(a){if(!g.options.disabled&&!g.element.attr("readonly")){f=!1;var c=
b.ui.keyCode;switch(a.keyCode){case c.PAGE_UP:g._move("previousPage",a);break;case c.PAGE_DOWN:g._move("nextPage",a);break;case c.UP:g._move("previous",a);a.preventDefault();break;case c.DOWN:g._move("next",a);a.preventDefault();break;case c.ENTER:case c.NUMPAD_ENTER:g.menu.active&&(f=!0,a.preventDefault());case c.TAB:if(!g.menu.active)break;g.menu.select(a);break;case c.ESCAPE:g.element.val(g.term);g.close(a);break;default:clearTimeout(g.searching),g.searching=setTimeout(function(){if(g.term!=g.element.val())g.selectedItem=
null,g.search(null,a)},g.options.delay)}}}).bind("keypress.autocomplete",function(a){f&&(f=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(!g.options.disabled)g.selectedItem=null,g.previous=g.element.val()}).bind("blur.autocomplete",function(a){if(!g.options.disabled)clearTimeout(g.searching),g.closing=setTimeout(function(){g.close(a);g._change(a)},150)});this._initSource();this.response=function(){return g._response.apply(g,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||
"body",e)[0]).mousedown(function(a){var c=g.menu.element[0];b(a.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(a){a.target!==g.element[0]&&a.target!==c&&!b.ui.contains(c,a.target)&&g.close()})},1);setTimeout(function(){clearTimeout(g.closing)},13)}).menu({focus:function(a,b){b=b.item.data("item.autocomplete");!1!==g._trigger("focus",a,{item:b})&&/^key/.test(a.originalEvent.type)&&g.element.val(b.value)},selected:function(a,b){var f=b.item.data("item.autocomplete"),
o=g.previous;if(g.element[0]!==e.activeElement)g.element.focus(),g.previous=o,setTimeout(function(){g.previous=o;g.selectedItem=f},1);!1!==g._trigger("select",a,{item:f})&&g.element.val(f.value);g.term=g.element.val();g.close(a);g.selectedItem=f},blur:function(){g.menu.element.is(":visible")&&g.element.val()!==g.term&&g.element.val(g.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(g,e){b.Widget.prototype._setOption.apply(this,arguments);g==="source"&&this._initSource();g==="appendTo"&&this.menu.element.appendTo(b(e||"body",this.element[0].ownerDocument)[0]);g==="disabled"&&e&&this.xhr&&this.xhr.abort()},_initSource:function(){var j=this,e,f;b.isArray(this.options.source)?(e=this.options.source,this.source=function(a,c){c(b.ui.autocomplete.filter(e,a.term))}):typeof this.options.source==="string"?
(f=this.options.source,this.source=function(a,c){j.xhr&&j.xhr.abort();j.xhr=b.ajax({url:f,data:a,dataType:"json",autocompleteRequest:++g,success:function(a){this.autocompleteRequest===g&&c(a)},error:function(){this.autocompleteRequest===g&&c([])}})}):this.source=this.options.source},search:function(b,e){b=b!=null?b:this.element.val();this.term=this.element.val();if(b.length<this.options.minLength)return this.close(e);clearTimeout(this.closing);if(this._trigger("search",e)!==!1)return this._search(b)},
_search:function(b){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:b},this.response)},_response:function(b){!this.options.disabled&&b&&b.length?(b=this._normalize(b),this._suggest(b),this._trigger("open")):this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(b){clearTimeout(this.closing);this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",b))},_change:function(b){this.previous!==
this.element.val()&&this._trigger("change",b,{item:this.selectedItem})},_normalize:function(g){return g.length&&g[0].label&&g[0].value?g:b.map(g,function(e){return typeof e==="string"?{label:e,value:e}:b.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(g){var e=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(e,g);this.menu.deactivate();this.menu.refresh();e.show();this._resizeMenu();e.position(b.extend({of:this.element},this.options.position));
this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var b=this.menu.element;b.outerWidth(Math.max(b.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(g,e){var f=this;b.each(e,function(a,b){f._renderItem(g,b)})},_renderItem:function(g,e){return b("<li></li>").data("item.autocomplete",e).append(b("<a></a>").text(e.label)).appendTo(g)},_move:function(b,e){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(b)||this.menu.last()&&
/^next/.test(b))this.element.val(this.term),this.menu.deactivate();else this.menu[b](e);else this.search(null,e)},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(g,e){var f=RegExp(b.ui.autocomplete.escapeRegex(e),"i");return b.grep(g,function(a){return f.test(a.label||a.value||a)})}})})(jQuery);
(function(b){b.widget("ui.menu",{_create:function(){var g=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(j){b(j.target).closest(".ui-menu-item a").length&&(j.preventDefault(),g.select(j))});this.refresh()},refresh:function(){var g=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(j){g.activate(j,b(this).parent())}).mouseleave(function(){g.deactivate()})},activate:function(b,j){this.deactivate();if(this.hasScroll()){var e=j.offset().top-this.element.offset().top,f=this.element.attr("scrollTop"),a=this.element.height();e<0?this.element.attr("scrollTop",f+e):e>=a&&this.element.attr("scrollTop",f+e-a+j.height())}this.active=j.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",b,{item:j})},deactivate:function(){if(this.active)this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),
this._trigger("blur"),this.active=null},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(b,j,e){this.active?(b=this.active[b+"All"](".ui-menu-item").eq(0),b.length?this.activate(e,b):this.activate(e,this.element.children(j))):this.activate(e,this.element.children(j))},
nextPage:function(g){if(this.hasScroll())if(!this.active||this.last())this.activate(g,this.element.children(".ui-menu-item:first"));else{var j=this.active.offset().top,e=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var a=b(this).offset().top-j-e+b(this).height();return a<10&&a>-10});f.length||(f=this.element.children(".ui-menu-item:last"));this.activate(g,f)}else this.activate(g,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},
previousPage:function(g){if(this.hasScroll())if(!this.active||this.first())this.activate(g,this.element.children(".ui-menu-item:last"));else{var j=this.active.offset().top,e=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var f=b(this).offset().top-j+e-b(this).height();return f<10&&f>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(g,result)}else this.activate(g,this.element.children(".ui-menu-item").filter(!this.active||
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);
(function(b,g){var j={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},e={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},f=b.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};b.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(a){var c=
b(this).css(a).offset().top;c<0&&b(this).css("top",a.top-c)}},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.options.title=this.options.title||this.originalTitle;var a=this,c=a.options,e=c.title||"&#160;",f=b.ui.dialog.getTitleId(a.element),g=(a.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(e){c.closeOnEscape&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE&&(a.close(e),e.preventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(b){a.moveToTop(!1,b)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var j=(a.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),
m=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){m.addClass("ui-state-hover")},function(){m.removeClass("ui-state-hover")}).focus(function(){m.addClass("ui-state-focus")}).blur(function(){m.removeClass("ui-state-focus")}).click(function(b){a.close(b);return!1}).appendTo(j);(a.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(m);b("<span></span>").addClass("ui-dialog-title").attr("id",
f).html(e).prependTo(j);if(b.isFunction(c.beforeclose)&&!b.isFunction(c.beforeClose))c.beforeClose=c.beforeclose;j.find("*").add(j).disableSelection();c.draggable&&b.fn.draggable&&a._makeDraggable();c.resizable&&b.fn.resizable&&a._makeResizable();a._createButtons(c.buttons);a._isOpen=!1;b.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(a){var c=this,e,f;if(!1!==c._trigger("beforeClose",a)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=!1;c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",a)}):(c.uiDialog.hide(),c._trigger("close",a));b.ui.dialog.overlay.resize();if(c.options.modal)e=0,b(".ui-dialog").each(function(){this!==
c.uiDialog[0]&&(f=b(this).css("z-index"),isNaN(f)||(e=Math.max(e,f)))}),b.ui.dialog.maxZ=e;return c}},isOpen:function(){return this._isOpen},moveToTop:function(a,c){var e=this.options;if(e.modal&&!a||!e.stack&&!e.modal)return this._trigger("focus",c);if(e.zIndex>b.ui.dialog.maxZ)b.ui.dialog.maxZ=e.zIndex;if(this.overlay)b.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ);a={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
b.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",b.ui.dialog.maxZ);this.element.attr(a);this._trigger("focus",c);return this},open:function(){if(!this._isOpen){var a=this.options,c=this.uiDialog;this.overlay=a.modal?new b.ui.dialog.overlay(this):null;this._size();this._position(a.position);c.show(a.show);this.moveToTop(!0);a.modal&&c.bind("keypress.ui-dialog",function(a){if(a.keyCode===b.ui.keyCode.TAB){var c=b(":tabbable",this),e=c.filter(":first"),c=c.filter(":last");if(a.target===c[0]&&!a.shiftKey)return e.focus(1),
!1;else if(a.target===e[0]&&a.shiftKey)return c.focus(1),!1}});b(this.element.find(":tabbable").get().concat(c.find(".ui-dialog-buttonpane :tabbable").get().concat(c.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(a){var c=this,e=!1,g=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=b("<div></div>").addClass("ui-dialog-buttonset").appendTo(g);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&
a!==null&&b.each(a,function(){return!(e=!0)});e&&(b.each(a,function(a,e){var e=b.isFunction(e)?{click:e,text:a}:e,g=b('<button type="button"></button>').click(function(){e.click.apply(c.element[0],arguments)}).appendTo(j);b.each(e,function(a,b){a!=="click"&&(a in f?g[a](b):g.attr(a,b))});b.fn.button&&g.button()}),g.appendTo(c.uiDialog))},_makeDraggable:function(){function a(a){return{position:a.position,offset:a.offset}}var c=this,e=c.options,f=b(document),g;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(f,j){g=e.height==="auto"?"auto":b(this).height();b(this).height(b(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",f,a(j))},drag:function(b,e){c._trigger("drag",b,a(e))},stop:function(j,m){e.position=[m.position.left-f.scrollLeft(),m.position.top-f.scrollTop()];b(this).removeClass("ui-dialog-dragging").height(g);c._trigger("dragStop",j,a(m));b.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function c(a){return{originalPosition:a.originalPosition,
originalSize:a.originalSize,position:a.position,size:a.size}}var a=a===g?this.options.resizable:a,e=this,f=e.options,j=e.uiDialog.css("position"),a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:e._minHeight(),handles:a,start:function(a,f){b(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",a,c(f))},resize:function(a,b){e._trigger("resize",
a,c(b))},stop:function(a,g){b(this).removeClass("ui-dialog-resizing");f.height=b(this).height();f.width=b(this).width();e._trigger("resizeStop",a,c(g));b.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(a){var c=[],e=[0,0],f;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a)c=a.split?a.split(" "):
[a[0],a[1]],c.length===1&&(c[1]=c[0]),b.each(["left","top"],function(a,b){+c[a]===c[a]&&(e[a]=c[a],c[a]=b)}),a={my:c.join(" "),at:c.join(" "),offset:e.join(" ")};a=b.extend({},b.ui.dialog.prototype.options.position,a)}else a=b.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(b.extend({of:window},a));f||this.uiDialog.hide()},_setOptions:function(a){var c=this,f={},g=!1;b.each(a,function(a,b){c._setOption(a,b);a in
j&&(g=!0);a in e&&(f[a]=b)});g&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(a,c){var e=this.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":this._createButtons(c);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+c);break;case "dialogClass":e.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case "disabled":c?e.addClass("ui-dialog-disabled"):
e.removeClass("ui-dialog-disabled");break;case "draggable":var f=e.is(":data(draggable)");f&&!c&&e.draggable("destroy");!f&&c&&this._makeDraggable();break;case "position":this._position(c);break;case "resizable":(f=e.is(":data(resizable)"))&&!c&&e.resizable("destroy");f&&typeof c==="string"&&e.resizable("option","handles",c);!f&&c!==!1&&this._makeResizable(c);break;case "title":b(".ui-dialog-title",this.uiDialogTitlebar).html(""+(c||"&#160;"))}b.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var a=this.options,c,e,f=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;c=this.uiDialog.css({height:"auto",width:a.width}).height();e=Math.max(0,a.minHeight-c);a.height==="auto"?b.support.minHeight?this.element.css({minHeight:e,height:"auto"}):(this.uiDialog.show(),a=this.element.css("height","auto").height(),f||this.uiDialog.hide(),this.element.height(Math.max(a,e))):this.element.height(Math.max(a.height-
c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});b.extend(b.ui.dialog,{version:"1.8.12",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a)this.uuid+=1,a=this.uuid;return"ui-dialog-title-"+a},overlay:function(a){this.$el=b.ui.dialog.overlay.create(a)}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
create:function(a){this.instances.length===0&&(setTimeout(function(){b.ui.dialog.overlay.instances.length&&b(document).bind(b.ui.dialog.overlay.events,function(a){if(b(a.target).zIndex()<b.ui.dialog.overlay.maxZ)return!1})},1),b(document).bind("keydown.dialog-overlay",function(c){a.options.closeOnEscape&&c.keyCode&&c.keyCode===b.ui.keyCode.ESCAPE&&(a.close(c),c.preventDefault())}),b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize));var c=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});b.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(a){var c=b.inArray(a,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&b([document,window]).unbind(".dialog-overlay");a.remove();var e=0;b.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){var a,c;return b.browser.msie&&b.browser.version<7?(a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),
c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),a<c?b(window).height()+"px":a+"px"):b(document).height()+"px"},width:function(){var a,c;return b.browser.msie&&b.browser.version<7?(a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),a<c?b(window).width()+"px":a+"px"):b(document).width()+"px"},resize:function(){var a=b([]);b.each(b.ui.dialog.overlay.instances,function(){a=a.add(this)});
a.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(b){b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var g=this,j=this.options;this._mouseSliding=this._keySliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");j.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=b([]);if(j.range){if(j.range===!0){this.range=b("<div></div>");if(!j.values)j.values=[this._valueMin(),this._valueMin()];if(j.values.length&&j.values.length!==2)j.values=[j.values[0],j.values[0]]}else this.range=b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");(j.range==="min"||j.range==="max")&&this.range.addClass("ui-slider-range-"+j.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length===0&&b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(j.values&&j.values.length)for(;b(".ui-slider-handle",this.element).length<j.values.length;)b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){j.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){j.disabled?
b(this).blur():(b(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),b(this).addClass("ui-state-focus"))}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(e){b(this).data("index.ui-slider-handle",e)});this.handles.keydown(function(e){var f=!0,a=b(this).data("index.ui-slider-handle"),c,k,j;if(!g.options.disabled){switch(e.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(f=
!1,!g._keySliding&&(g._keySliding=!0,b(this).addClass("ui-state-active"),c=g._start(e,a),c===!1))return}j=g.options.step;c=g.options.values&&g.options.values.length?k=g.values(a):k=g.value();switch(e.keyCode){case b.ui.keyCode.HOME:k=g._valueMin();break;case b.ui.keyCode.END:k=g._valueMax();break;case b.ui.keyCode.PAGE_UP:k=g._trimAlignValue(c+(g._valueMax()-g._valueMin())/5);break;case b.ui.keyCode.PAGE_DOWN:k=g._trimAlignValue(c-(g._valueMax()-g._valueMin())/5);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(c===
g._valueMax())return;k=g._trimAlignValue(c+j);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(c===g._valueMin())return;k=g._trimAlignValue(c-j)}g._slide(e,a,k);return f}}).keyup(function(e){var f=b(this).data("index.ui-slider-handle");if(g._keySliding)g._keySliding=!1,g._stop(e,f),g._change(e,f),b(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(g){var j=this.options,e,f,a,c,k;if(j.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e=this._normValueFromMouse({x:g.pageX,y:g.pageY});f=this._valueMax()-this._valueMin()+1;c=this;this.handles.each(function(g){var j=Math.abs(e-c.values(g));f>j&&(f=j,a=b(this),k=g)});j.range===!0&&this.values(1)===j.min&&(k+=1,a=b(this.handles[k]));if(this._start(g,
k)===!1)return!1;this._mouseSliding=!0;c._handleIndex=k;a.addClass("ui-state-active").focus();j=a.offset();this._clickOffset=!b(g.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:g.pageX-j.left-a.width()/2,top:g.pageY-j.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(g,k,e);return this._animateOff=!0},_mouseStart:function(){return!0},
_mouseDrag:function(b){var j=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,j);return!1},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var j;this.orientation===
"horizontal"?(j=this.elementSize.width,b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(j=this.elementSize.height,b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));j=b/j;j>1&&(j=1);j<0&&(j=0);this.orientation==="vertical"&&(j=1-j);b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+j*b)},_start:function(b,j){var e={handle:this.handles[j],value:this.value()};if(this.options.values&&this.options.values.length)e.value=this.values(j),
e.values=this.values();return this._trigger("start",b,e)},_slide:function(b,j,e){var f;if(this.options.values&&this.options.values.length){f=this.values(j?0:1);if(this.options.values.length===2&&this.options.range===!0&&(j===0&&e>f||j===1&&e<f))e=f;e!==this.values(j)&&(f=this.values(),f[j]=e,b=this._trigger("slide",b,{handle:this.handles[j],value:e,values:f}),this.values(j?0:1),b!==!1&&this.values(j,e,!0))}else e!==this.value()&&(b=this._trigger("slide",b,{handle:this.handles[j],value:e}),b!==!1&&
this.value(e))},_stop:function(b,j){var e={handle:this.handles[j],value:this.value()};if(this.options.values&&this.options.values.length)e.value=this.values(j),e.values=this.values();this._trigger("stop",b,e)},_change:function(b,j){if(!this._keySliding&&!this._mouseSliding){var e={handle:this.handles[j],value:this.value()};if(this.options.values&&this.options.values.length)e.value=this.values(j),e.values=this.values();this._trigger("change",b,e)}},value:function(b){if(arguments.length)this.options.value=
this._trimAlignValue(b),this._refreshValue(),this._change(null,0);else return this._value()},values:function(g,j){var e,f,a;if(arguments.length>1)this.options.values[g]=this._trimAlignValue(j),this._refreshValue(),this._change(null,g);else if(arguments.length)if(b.isArray(arguments[0])){e=this.options.values;f=arguments[0];for(a=0;a<e.length;a+=1)e[a]=this._trimAlignValue(f[a]),this._change(null,a);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(g):this.value();
else return this._values()},_setOption:function(g,j){var e,f=0;if(b.isArray(this.options.values))f=this.options.values.length;b.Widget.prototype._setOption.apply(this,arguments);switch(g){case "disabled":j?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.attr("disabled","disabled"),this.element.addClass("ui-disabled")):(this.handles.removeAttr("disabled"),this.element.removeClass("ui-disabled"));break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case "values":this._animateOff=!0;this._refreshValue();for(e=0;e<f;e+=1)this._change(null,e);this._animateOff=!1}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(b){var j,e;if(arguments.length)return j=this.options.values[b],this._trimAlignValue(j);
else{j=this.options.values.slice();for(e=0;e<j.length;e+=1)j[e]=this._trimAlignValue(j[e]);return j}},_trimAlignValue:function(b){if(b<=this._valueMin())return this._valueMin();if(b>=this._valueMax())return this._valueMax();var j=this.options.step>0?this.options.step:1,e=(b-this._valueMin())%j;alignValue=b-e;Math.abs(e)*2>=j&&(alignValue+=e>0?j:-j);return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var g=
this.options.range,j=this.options,e=this,f=!this._animateOff?j.animate:!1,a,c={},k,o,p,q;if(this.options.values&&this.options.values.length)this.handles.each(function(g){a=(e.values(g)-e._valueMin())/(e._valueMax()-e._valueMin())*100;c[e.orientation==="horizontal"?"left":"bottom"]=a+"%";b(this).stop(1,1)[f?"animate":"css"](c,j.animate);if(e.options.range===!0)if(e.orientation==="horizontal"){if(g===0)e.range.stop(1,1)[f?"animate":"css"]({left:a+"%"},j.animate);if(g===1)e.range[f?"animate":"css"]({width:a-
k+"%"},{queue:!1,duration:j.animate})}else{if(g===0)e.range.stop(1,1)[f?"animate":"css"]({bottom:a+"%"},j.animate);if(g===1)e.range[f?"animate":"css"]({height:a-k+"%"},{queue:!1,duration:j.animate})}k=a});else{o=this.value();p=this._valueMin();q=this._valueMax();a=q!==p?(o-p)/(q-p)*100:0;c[e.orientation==="horizontal"?"left":"bottom"]=a+"%";this.handle.stop(1,1)[f?"animate":"css"](c,j.animate);if(g==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:a+"%"},j.animate);
if(g==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-a+"%"},{queue:!1,duration:j.animate});if(g==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:a+"%"},j.animate);if(g==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-a+"%"},{queue:!1,duration:j.animate})}}});b.extend(b.ui.slider,{version:"1.8.12"})})(jQuery);
(function(b,g){function j(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,
maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function e(a,c){b.extend(a,c);for(var e in c)if(c[e]==null||c[e]==g)a[e]=
c[e];return a}b.extend(b.ui,{datepicker:{version:"1.8.12"}});var f=(new Date).getTime();b.extend(j.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){e(this._defaults,a||{});return this},_attachDatepicker:function(a,c){var e=null,f;for(f in this._defaults){var g=a.getAttribute("date:"+f);if(g){e=e||{};try{e[f]=eval(g)}catch(j){e[f]=g}}}f=a.nodeName.toLowerCase();g=f=="div"||
f=="span";if(!a.id)this.uuid+=1,a.id="dp"+this.uuid;var m=this._newInst(b(a),g);m.settings=b.extend({},c||{},e||{});f=="input"?this._connectDatepicker(a,m):g&&this._inlineDatepicker(a,m)},_newInst:function(a,c){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:!c?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,
c){var e=b(a);c.append=b([]);c.trigger=b([]);e.hasClass(this.markerClassName)||(this._attachments(e,c),e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,b,e){c.settings[b]=e}).bind("getData.datepicker",function(a,b){return this._get(c,b)}),this._autoSize(c),b.data(a,"datepicker",c))},_attachments:function(a,c){var e=this._get(c,"appendText"),f=this._get(c,"isRTL");c.append&&c.append.remove();if(e)c.append=
b('<span class="'+this._appendClass+'">'+e+"</span>"),a[f?"before":"after"](c.append);a.unbind("focus",this._showDatepicker);c.trigger&&c.trigger.remove();e=this._get(c,"showOn");(e=="focus"||e=="both")&&a.focus(this._showDatepicker);if(e=="button"||e=="both"){var e=this._get(c,"buttonText"),g=this._get(c,"buttonImage");c.trigger=b(this._get(c,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:g,alt:e,title:e}):b('<button type="button"></button>').addClass(this._triggerClass).html(g==
""?e:b("<img/>").attr({src:g,alt:e,title:e})));a[f?"before":"after"](c.trigger);c.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a[0]?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a[0]);return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),e=this._get(a,"dateFormat");if(e.match(/[DM]/)){var f=function(a){for(var b=0,c=0,e=0;e<a.length;e++)if(a[e].length>b)b=a[e].length,c=e;return c};b.setMonth(f(this._get(a,
e.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(f(this._get(a,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,c){var e=b(a);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(a,b,e){c.settings[b]=e}).bind("getData.datepicker",function(a,b){return this._get(c,b)}),b.data(a,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),
this._updateDatepicker(c),this._updateAlternate(c),c.dpDiv.show())},_dialogDatepicker:function(a,c,f,g,j){a=this._dialogInst;if(!a)this.uuid+=1,this._dialogInput=b('<input type="text" id="dp'+this.uuid+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),this._dialogInput.keydown(this._doKeyDown),b("body").append(this._dialogInput),a=this._dialogInst=this._newInst(this._dialogInput,!1),a.settings={},b.data(this._dialogInput[0],"datepicker",a);e(a.settings,g||{});c=c&&c.constructor==
Date?this._formatDate(a,c):c;this._dialogInput.val(c);this._pos=j?j.length?j:[j.pageX,j.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=f;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var c=b(a),e=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var f=a.nodeName.toLowerCase();b.removeData(a,"datepicker");f=="input"?(e.append.remove(),e.trigger.remove(),c.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(f=="div"||f=="span")&&c.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(a){var c=b(a),e=b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var f=a.nodeName.toLowerCase();f=="input"?(a.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(f=="div"||f=="span")&&c.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(b){return b==a?null:b})}},_disableDatepicker:function(a){var c=b(a),e=
b.data(a,"datepicker");if(c.hasClass(this.markerClassName)){var f=a.nodeName.toLowerCase();f=="input"?(a.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(f=="div"||f=="span")&&c.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(b){return b==a?null:b});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return!1;
for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_getInst:function(a){try{return b.data(a,"datepicker")}catch(c){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,c,f){var j=this._getInst(a);if(arguments.length==2&&typeof c=="string")return c=="defaults"?b.extend({},b.datepicker._defaults):j?c=="all"?b.extend({},j.settings):this._get(j,c):null;var p=c||{};typeof c=="string"&&(p={},p[c]=f);if(j){this._curInst==j&&this._hideDatepicker();
var q=this._getDateDatepicker(a,!0),m=this._getMinMaxDate(j,"min"),l=this._getMinMaxDate(j,"max");e(j.settings,p);if(m!==null&&p.dateFormat!==g&&p.minDate===g)j.settings.minDate=this._formatDate(j,m);if(l!==null&&p.dateFormat!==g&&p.maxDate===g)j.settings.maxDate=this._formatDate(j,l);this._attachments(b(a),j);this._autoSize(j);this._setDateDatepicker(a,q);this._updateDatepicker(j)}},_changeDatepicker:function(a,b,e){this._optionDatepicker(a,b,e)},_refreshDatepicker:function(a){(a=this._getInst(a))&&
this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a))this._setDate(a,b),this._updateDatepicker(a),this._updateAlternate(a)},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var c=b.datepicker._getInst(a.target),e=!0,f=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=!0;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker();e=!1;break;case 13:return e=
b("td."+b.datepicker._dayOverClass+":not(."+b.datepicker._currentClass+")",c.dpDiv),e[0]?b.datepicker._selectDay(a.target,c.selectedMonth,c.selectedYear,e[0]):b.datepicker._hideDatepicker(),!1;case 27:b.datepicker._hideDatepicker();break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");
break;case 35:(a.ctrlKey||a.metaKey)&&b.datepicker._clearDate(a.target);e=a.ctrlKey||a.metaKey;break;case 36:(a.ctrlKey||a.metaKey)&&b.datepicker._gotoToday(a.target);e=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,f?1:-1,"D");e=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(c,"stepBigMonths"):-b.datepicker._get(c,"stepMonths"),"M");break;case 38:(a.ctrlKey||a.metaKey)&&b.datepicker._adjustDate(a.target,
-7,"D");e=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,f?-1:1,"D");e=a.ctrlKey||a.metaKey;a.originalEvent.altKey&&b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(c,"stepBigMonths"):+b.datepicker._get(c,"stepMonths"),"M");break;case 40:(a.ctrlKey||a.metaKey)&&b.datepicker._adjustDate(a.target,7,"D");e=a.ctrlKey||a.metaKey;break;default:e=!1}else a.keyCode==36&&a.ctrlKey?b.datepicker._showDatepicker(this):e=!1;e&&(a.preventDefault(),a.stopPropagation())},
_doKeyPress:function(a){var c=b.datepicker._getInst(a.target);if(b.datepicker._get(c,"constrainInput")){var c=b.datepicker._possibleChars(b.datepicker._get(c,"dateFormat")),e=String.fromCharCode(a.charCode==g?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||e<" "||!c||c.indexOf(e)>-1}},_doKeyUp:function(a){a=b.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,b.datepicker._getFormatConfig(a)))b.datepicker._setDateFromField(a),
b.datepicker._updateAlternate(a),b.datepicker._updateDatepicker(a)}catch(c){b.datepicker.log(c)}return!0},_showDatepicker:function(a){a=a.target||a;a.nodeName.toLowerCase()!="input"&&(a=b("input",a.parentNode)[0]);if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var c=b.datepicker._getInst(a);b.datepicker._curInst&&b.datepicker._curInst!=c&&b.datepicker._curInst.dpDiv.stop(!0,!0);var f=b.datepicker._get(c,"beforeShow");e(c.settings,f?f.apply(a,[a,c]):{});c.lastVal=null;b.datepicker._lastInput=
a;b.datepicker._setDateFromField(c);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos)b.datepicker._pos=b.datepicker._findPos(a),b.datepicker._pos[1]+=a.offsetHeight;var g=!1;b(a).parents().each(function(){g|=b(this).css("position")=="fixed";return!g});g&&b.browser.opera&&(b.datepicker._pos[0]-=document.documentElement.scrollLeft,b.datepicker._pos[1]-=document.documentElement.scrollTop);f={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;c.dpDiv.empty();c.dpDiv.css({position:"absolute",
display:"block",top:"-1000px"});b.datepicker._updateDatepicker(c);f=b.datepicker._checkOffset(c,f,g);c.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":g?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!c.inline){var f=b.datepicker._get(c,"showAnim"),j=b.datepicker._get(c,"duration"),q=function(){b.datepicker._datepickerShowing=!0;var a=c.dpDiv.find("iframe.ui-datepicker-cover");if(a.length){var e=b.datepicker._getBorders(c.dpDiv);a.css({left:-e[0],top:-e[1],width:c.dpDiv.outerWidth(),
height:c.dpDiv.outerHeight()})}};c.dpDiv.zIndex(b(a).zIndex()+1);b.effects&&b.effects[f]?c.dpDiv.show(f,b.datepicker._get(c,"showOptions"),j,q):c.dpDiv[f||"show"](f?j:null,q);(!f||!j)&&q();c.input.is(":visible")&&!c.input.is(":disabled")&&c.input.focus();b.datepicker._curInst=c}}},_updateDatepicker:function(a){var c=this,e=b.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var f=a.dpDiv.find("iframe.ui-datepicker-cover");f.length&&f.css({left:-e[0],top:-e[1],width:a.dpDiv.outerWidth(),
height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!c._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0]))b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),
b(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();e=this._getNumberOfMonths(a);f=e[1];f>1?a.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(e[0]!=
1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==b.datepicker._curInst&&b.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var g=a.yearshtml;setTimeout(function(){g===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);g=a.yearshtml=null},0)}},_getBorders:function(a){var b=
function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,c,e){var f=a.dpDiv.outerWidth(),g=a.dpDiv.outerHeight(),j=a.input?a.input.outerWidth():0,m=a.input?a.input.outerHeight():0,l=document.documentElement.clientWidth+b(document).scrollLeft(),n=document.documentElement.clientHeight+b(document).scrollTop();c.left-=this._get(a,"isRTL")?f-j:0;c.left-=e&&c.left==a.input.offset().left?b(document).scrollLeft():
0;c.top-=e&&c.top==a.input.offset().top+m?b(document).scrollTop():0;c.left-=Math.min(c.left,c.left+f>l&&l>f?Math.abs(c.left+f-l):0);c.top-=Math.min(c.top,c.top+g>n&&n>g?Math.abs(g+m):0);return c},_findPos:function(a){for(var c=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||b.expr.filters.hidden(a));)a=a[c?"previousSibling":"nextSibling"];a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var c=this._curInst;if(c&&!(a&&c!=b.data(a,"datepicker"))&&this._datepickerShowing){var a=
this._get(c,"showAnim"),e=this._get(c,"duration"),f=function(){b.datepicker._tidyDialog(c);this._curInst=null};b.effects&&b.effects[a]?c.dpDiv.hide(a,b.datepicker._get(c,"showOptions"),e,f):c.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?e:null,f);a||f();if(a=this._get(c,"onClose"))a.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c]);this._datepickerShowing=!1;this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),b.blockUI&&
(b.unblockUI(),b("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){b.datepicker._curInst&&(a=b(a.target),a[0].id!=b.datepicker._mainDivId&&a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&(!b.datepicker._inDialog||!b.blockUI)&&b.datepicker._hideDatepicker())},
_adjustDate:function(a,c,e){var a=b(a),f=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(f,c+(e=="M"?this._get(f,"showCurrentAtPos"):0),e),this._updateDatepicker(f))},_gotoToday:function(a){var a=b(a),c=this._getInst(a[0]);if(this._get(c,"gotoCurrent")&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var e=new Date;c.selectedDay=e.getDate();c.drawMonth=c.selectedMonth=e.getMonth();c.drawYear=
c.selectedYear=e.getFullYear()}this._notifyChange(c);this._adjustDate(a)},_selectMonthYear:function(a,c,e){var a=b(a),f=this._getInst(a[0]);f._selectingMonthYear=!1;f["selected"+(e=="M"?"Month":"Year")]=f["draw"+(e=="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(f);this._adjustDate(a)},_clickMonthYear:function(a){var c=this._getInst(b(a)[0]);c.input&&c._selectingMonthYear&&setTimeout(function(){c.input.focus()},0);c._selectingMonthYear=!c._selectingMonthYear},
_selectDay:function(a,c,e,f){var g=b(a);if(!b(f).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(g[0]))g=this._getInst(g[0]),g.selectedDay=g.currentDay=b("a",f).html(),g.selectedMonth=g.currentMonth=c,g.selectedYear=g.currentYear=e,this._selectDate(a,this._formatDate(g,g.currentDay,g.currentMonth,g.currentYear))},_clearDate:function(a){a=b(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,c){a=this._getInst(b(a)[0]);c=c!=null?c:this._formatDate(a);a.input&&a.input.val(c);
this._updateAlternate(a);var e=this._get(a,"onSelect");e?e.apply(a.input?a.input[0]:null,[c,a]):a.input&&a.input.trigger("change");a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],typeof a.input[0]!="object"&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var c=this._get(a,"altField");if(c){var e=this._get(a,"altFormat")||this._get(a,"dateFormat"),f=this._getDate(a),g=this.formatDate(e,f,this._getFormatConfig(a));b(c).each(function(){b(this).val(g)})}},
noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,e){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;for(var f=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,
10),g=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,j=(e?e.dayNames:null)||this._defaults.dayNames,m=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,n=e=-1,t=-1,y=-1,v=!1,w=function(b){(b=H+1<a.length&&a.charAt(H+1)==b)&&H++;return b},x=function(a){var e=w(a),a=b.substring(z).match(RegExp("^\\d{1,"+(a=="@"?14:a=="!"?20:a=="y"&&e?4:a=="o"?3:2)+"}"));if(!a)throw"Missing number at position "+z;z+=a[0].length;return parseInt(a[0],
10)},A=function(a,e,f){a=w(a)?f:e;for(e=0;e<a.length;e++)if(b.substr(z,a[e].length).toLowerCase()==a[e].toLowerCase())return z+=a[e].length,e+1;throw"Unknown name at position "+z;},B=function(){if(b.charAt(z)!=a.charAt(H))throw"Unexpected literal at position "+z;z++},z=0,H=0;H<a.length;H++)if(v)a.charAt(H)=="'"&&!w("'")?v=!1:B();else switch(a.charAt(H)){case "d":t=x("d");break;case "D":A("D",g,j);break;case "o":y=x("o");break;case "m":n=x("m");break;case "M":n=A("M",m,l);break;case "y":e=x("y");break;
case "@":var C=new Date(x("@")),e=C.getFullYear(),n=C.getMonth()+1,t=C.getDate();break;case "!":C=new Date((x("!")-this._ticksTo1970)/1E4);e=C.getFullYear();n=C.getMonth()+1;t=C.getDate();break;case "'":w("'")?B():v=!0;break;default:B()}e==-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=f?0:-100));if(y>-1){n=1;t=y;do{f=this._getDaysInMonth(e,n-1);if(t<=f)break;n++;t-=f}while(1)}C=this._daylightSavingAdjust(new Date(e,n-1,t));if(C.getFullYear()!=e||
C.getMonth()+1!=n||C.getDate()!=t)throw"Invalid date";return C},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864E9,formatDate:function(a,b,e){if(!b)return"";var f=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,g=(e?e.dayNames:null)||this._defaults.dayNames,
j=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,e=(e?e.monthNames:null)||this._defaults.monthNames,m=function(b){(b=v+1<a.length&&a.charAt(v+1)==b)&&v++;return b},l=function(a,b,c){b=""+b;if(m(a))for(;b.length<c;)b="0"+b;return b},n=function(a,b,c,e){return m(a)?e[b]:c[b]},t="",y=!1;if(b)for(var v=0;v<a.length;v++)if(y)a.charAt(v)=="'"&&!m("'")?y=!1:t+=a.charAt(v);else switch(a.charAt(v)){case "d":t+=l("d",b.getDate(),2);break;case "D":t+=n("D",b.getDay(),f,g);break;case "o":t+=l("o",
(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":t+=l("m",b.getMonth()+1,2);break;case "M":t+=n("M",b.getMonth(),j,e);break;case "y":t+=m("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":t+=b.getTime();break;case "!":t+=b.getTime()*1E4+this._ticksTo1970;break;case "'":m("'")?t+="'":y=!0;break;default:t+=a.charAt(v)}return t},_possibleChars:function(a){for(var b="",e=!1,f=function(b){(b=g+1<a.length&&a.charAt(g+1)==b)&&g++;return b},g=0;g<
a.length;g++)if(e)a.charAt(g)=="'"&&!f("'")?e=!1:b+=a.charAt(g);else switch(a.charAt(g)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":f("'")?b+="'":e=!0;break;default:b+=a.charAt(g)}return b},_get:function(a,b){return a.settings[b]!==g?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var e=this._get(a,"dateFormat"),f=a.lastVal=a.input?a.input.val():null,g,j;g=j=this._getDefaultDate(a);var m=this._getFormatConfig(a);
try{g=this.parseDate(e,f,m)||j}catch(l){this.log(l),f=b?"":f}a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();a.currentDay=f?g.getDate():0;a.currentMonth=f?g.getMonth():0;a.currentYear=f?g.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,c,e){var h;var f=function(a){var b=new Date;b.setDate(b.getDate()+
a);return b};if(h=(c=c==null||c===""?e:typeof c=="string"?function(c){try{return b.datepicker.parseDate(b.datepicker._get(a,"dateFormat"),c,b.datepicker._getFormatConfig(a))}catch(e){}for(var f=(c.toLowerCase().match(/^c/)?b.datepicker._getDate(a):null)||new Date,g=f.getFullYear(),j=f.getMonth(),f=f.getDate(),k=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=k.exec(c);o;){switch(o[2]||"d"){case "d":case "D":f+=parseInt(o[1],10);break;case "w":case "W":f+=parseInt(o[1],10)*7;break;case "m":case "M":j+=parseInt(o[1],
10);f=Math.min(f,b.datepicker._getDaysInMonth(g,j));break;case "y":case "Y":g+=parseInt(o[1],10),f=Math.min(f,b.datepicker._getDaysInMonth(g,j))}o=k.exec(c)}return new Date(g,j,f)}(c):typeof c=="number"?isNaN(c)?e:f(c):new Date(c.getTime()))&&c.toString()=="Invalid Date"?e:c,c=h)c.setHours(0),c.setMinutes(0),c.setSeconds(0),c.setMilliseconds(0);return this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,
b,e){var f=!b,g=a.selectedMonth,j=a.selectedYear,b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();(g!=a.selectedMonth||j!=a.selectedYear)&&!e&&this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(f?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,
a.currentMonth,a.currentDay))},_generateHTML:function(a){var c=new Date,c=this._daylightSavingAdjust(new Date(c.getFullYear(),c.getMonth(),c.getDate())),e=this._get(a,"isRTL"),g=this._get(a,"showButtonPanel"),j=this._get(a,"hideIfNoPrevNext"),q=this._get(a,"navigationAsDateFormat"),m=this._getNumberOfMonths(a),l=this._get(a,"showCurrentAtPos"),n=this._get(a,"stepMonths"),t=m[0]!=1||m[1]!=1,y=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),
v=this._getMinMaxDate(a,"min"),w=this._getMinMaxDate(a,"max"),l=a.drawMonth-l,x=a.drawYear;l<0&&(l+=12,x--);if(w)for(var A=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth()-m[0]*m[1]+1,w.getDate())),A=v&&A<v?v:A;this._daylightSavingAdjust(new Date(x,l,1))>A;)l--,l<0&&(l=11,x--);a.drawMonth=l;a.drawYear=x;var A=this._get(a,"prevText"),A=!q?A:this.formatDate(A,this._daylightSavingAdjust(new Date(x,l-n,1)),this._getFormatConfig(a)),A=this._canAdjustMonth(a,-1,x,l)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+
f+".datepicker._adjustDate('#"+a.id+"', -"+n+", 'M');\" title=\""+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+A+"</span></a>":j?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"e":"w")+'">'+A+"</span></a>",B=this._get(a,"nextText"),B=!q?B:this.formatDate(B,this._daylightSavingAdjust(new Date(x,l+n,1)),this._getFormatConfig(a)),j=this._canAdjustMonth(a,1,x,l)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+
f+".datepicker._adjustDate('#"+a.id+"', +"+n+", 'M');\" title=\""+B+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+B+"</span></a>":j?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+B+'"><span class="ui-icon ui-icon-circle-triangle-'+(e?"w":"e")+'">'+B+"</span></a>",n=this._get(a,"currentText"),B=this._get(a,"gotoCurrent")&&a.currentDay?y:c,n=!q?n:this.formatDate(n,B,this._getFormatConfig(a)),q=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+
f+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"",g=g?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(e?q:"")+(this._isInRange(a,B)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+f+".datepicker._gotoToday('#"+a.id+"');\">"+n+"</button>":"")+(e?"":q)+"</div>":"",q=parseInt(this._get(a,"firstDay"),10),q=isNaN(q)?0:q,n=this._get(a,"showWeek"),B=this._get(a,"dayNames");this._get(a,"dayNamesShort");
var z=this._get(a,"dayNamesMin"),H=this._get(a,"monthNames"),C=this._get(a,"monthNamesShort"),F=this._get(a,"beforeShowDay"),N=this._get(a,"showOtherMonths"),P=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var u=this._getDefaultDate(a),R="",K=0;K<m[0];K++){for(var h="",Q=0;Q<m[1];Q++){var ea=this._daylightSavingAdjust(new Date(x,l,a.selectedDay)),I=" ui-corner-all",O="";if(t){O+='<div class="ui-datepicker-group';if(m[1]>1)switch(Q){case 0:O+=" ui-datepicker-group-first";I=" ui-corner-"+
(e?"right":"left");break;case m[1]-1:O+=" ui-datepicker-group-last";I=" ui-corner-"+(e?"left":"right");break;default:O+=" ui-datepicker-group-middle",I=""}O+='">'}O+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+I+'">'+(/all|left/.test(I)&&K==0?e?j:A:"")+(/all|right/.test(I)&&K==0?e?A:j:"")+this._generateMonthYearHeader(a,l,x,v,w,K>0||Q>0,H,C)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var L=n?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+
"</th>":"",I=0;I<7;I++){var E=(I+q)%7;L+="<th"+((I+q+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+B[E]+'">'+z[E]+"</span></th>"}O+=L+"</tr></thead><tbody>";L=this._getDaysInMonth(x,l);if(x==a.selectedYear&&l==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,L);for(var I=(this._getFirstDayOfMonth(x,l)-q+7)%7,L=t?6:Math.ceil((I+L)/7),E=this._daylightSavingAdjust(new Date(x,l,1-I)),ka=0;ka<L;ka++){O+="<tr>";for(var la=!n?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(E)+
"</td>",I=0;I<7;I++){var Z=F?F.apply(a.input?a.input[0]:null,[E]):[!0,""],S=E.getMonth()!=l,Y=S&&!P||!Z[0]||v&&E<v||w&&E>w;la+='<td class="'+((I+q+6)%7>=5?" ui-datepicker-week-end":"")+(S?" ui-datepicker-other-month":"")+(E.getTime()==ea.getTime()&&l==a.selectedMonth&&a._keyEvent||u.getTime()==E.getTime()&&u.getTime()==ea.getTime()?" "+this._dayOverClass:"")+(Y?" "+this._unselectableClass+" ui-state-disabled":"")+(S&&!N?"":" "+Z[1]+(E.getTime()==y.getTime()?" "+this._currentClass:"")+(E.getTime()==
c.getTime()?" ui-datepicker-today":""))+'"'+((!S||N)&&Z[2]?' title="'+Z[2]+'"':"")+(Y?"":' onclick="DP_jQuery_'+f+".datepicker._selectDay('#"+a.id+"',"+E.getMonth()+","+E.getFullYear()+', this);return false;"')+">"+(S&&!N?"&#xa0;":Y?'<span class="ui-state-default">'+E.getDate()+"</span>":'<a class="ui-state-default'+(E.getTime()==c.getTime()?" ui-state-highlight":"")+(E.getTime()==y.getTime()?" ui-state-active":"")+(S?" ui-priority-secondary":"")+'" href="#">'+E.getDate()+"</a>")+"</td>";E.setDate(E.getDate()+
1);E=this._daylightSavingAdjust(E)}O+=la+"</tr>"}l++;l>11&&(l=0,x++);O+="</tbody></table>"+(t?"</div>"+(m[0]>0&&Q==m[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");h+=O}R+=h}R+=g+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=!1;return R},_generateMonthYearHeader:function(a,c,e,g,j,q,m,l){var n=this._get(a,"changeMonth"),t=this._get(a,"changeYear"),y=this._get(a,"showMonthAfterYear"),
v='<div class="ui-datepicker-title">',w="";if(q||!n)w+='<span class="ui-datepicker-month">'+m[c]+"</span>";else{var m=g&&g.getFullYear()==e,x=j&&j.getFullYear()==e;w+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+f+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var A=0;A<12;A++)if((!m||A>=g.getMonth())&&(!x||A<=j.getMonth()))w+='<option value="'+A+'"'+(A==c?' selected="selected"':"")+">"+l[A]+"</option>";
w+="</select>"}y||(v+=w+(q||!n||!t?"&#xa0;":""));if(!a.yearshtml)if(a.yearshtml="",q||!t)v+='<span class="ui-datepicker-year">'+e+"</span>";else{var l=this._get(a,"yearRange").split(":"),B=(new Date).getFullYear(),m=function(a){a=a.match(/c[+-].*/)?e+parseInt(a.substring(1),10):a.match(/[+-].*/)?B+parseInt(a,10):parseInt(a,10);return isNaN(a)?B:a},c=m(l[0]),l=Math.max(c,m(l[1]||"")),c=g?Math.max(c,g.getFullYear()):c,l=j?Math.min(l,j.getFullYear()):l;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+
f+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+f+".datepicker._clickMonthYear('#"+a.id+"');\">";c<=l;c++)a.yearshtml+='<option value="'+c+'"'+(c==e?' selected="selected"':"")+">"+c+"</option>";a.yearshtml+="</select>";b.browser.mozilla?v+='<select class="ui-datepicker-year"><option value="'+e+'" selected="selected">'+e+"</option></select>":(v+=a.yearshtml,a.yearshtml=null)}v+=this._get(a,"yearSuffix");y&&(v+=(q||!n||!t?"&#xa0;":"")+w);v+="</div>";return v},_adjustInstDate:function(a,
b,e){var f=a.drawYear+(e=="Y"?b:0),g=a.drawMonth+(e=="M"?b:0),b=Math.min(a.selectedDay,this._getDaysInMonth(f,g))+(e=="D"?b:0),f=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(f,g,b)));a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();(e=="M"||e=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var e=this._getMinMaxDate(a,"min"),a=this._getMinMaxDate(a,"max"),b=e&&b<e?e:b;return a&&b>a?a:b},_notifyChange:function(a){var b=
this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,e,
f){var g=this._getNumberOfMonths(a),e=this._daylightSavingAdjust(new Date(e,f+(b<0?b:g[0]*g[1]),1));b<0&&e.setDate(this._getDaysInMonth(e.getFullYear(),e.getMonth()));return this._isInRange(a,e)},_isInRange:function(a,b){var e=this._getMinMaxDate(a,"min"),a=this._getMinMaxDate(a,"max");return(!e||b.getTime()>=e.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff"),b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,
dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,e,f){if(!b)a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear;b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(f,e,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});
b.fn.datepicker=function(a){if(!this.length)return this;if(!b.datepicker.initialized)b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv),b.datepicker.initialized=!0;var c=Array.prototype.slice.call(arguments,1);return typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(c)):a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,
[this[0]].concat(c)):this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(c)):b.datepicker._attachDatepicker(this,a)})};b.datepicker=new j;b.datepicker.initialized=!1;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.8.12";window["DP_jQuery_"+f]=b})(jQuery);
jQuery.effects||function(b,g){function j(a){var c;return a&&a.constructor==Array&&a.length==3?a:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))?[parseInt(c[1],16),parseInt(c[2],
16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:/rgba\(0, 0, 0, 0\)/.exec(a)?o.transparent:o[b.trim(a).toLowerCase()]}function e(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,e;if(a&&a.length&&a[0]&&a[a[0]])for(var f=a.length;f--;)c=a[f],typeof a[c]=="string"&&(e=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[e]=a[c]);else for(c in a)typeof a[c]===
"string"&&(b[c]=a[c]);return b}function f(a){var c,e;for(c in a)e=a[c],(e==null||b.isFunction(e)||c in q||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(e)))&&delete a[c];return a}function a(a,b){var c={_:0},e;for(e in b)a[e]!=b[e]&&(c[e]=b[e]);return c}function c(a,c,e,f){if(typeof a=="object")f=c,e=null,c=a,a=c.effect;b.isFunction(c)&&(f=c,e=null,c={});if(typeof c=="number"||b.fx.speeds[c])f=e,e=c,c={};b.isFunction(e)&&(f=e,e=null);c=c||{};e=e||c.duration;e=b.fx.off?0:typeof e=="number"?
e:e in b.fx.speeds?b.fx.speeds[e]:b.fx.speeds._default;f=f||c.complete;return[a,c,e,f]}function k(a){return!a||typeof a==="number"||b.fx.speeds[a]?!0:typeof a==="string"&&!b.effects[a]?!0:!1}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(a,c){b.fx.step[c]=function(a){if(!a.colorInit){var e;e=a.elem;var f=c,g;do{g=b.curCSS(e,f);if(g!=""&&g!="transparent"||b.nodeName(e,"body"))break;f="backgroundColor"}while(e=
e.parentNode);e=j(g);a.start=e;a.end=j(a.end);a.colorInit=!0}a.elem.style[c]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],
darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],
maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],q={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(c,g,j,k){b.isFunction(j)&&(k=j,j=null);return this.queue("fx",function(){var o=b(this),q=o.attr("style")||
" ",w=f(e.call(this)),x,A=o.attr("className");b.each(p,function(a,b){c[b]&&o[b+"Class"](c[b])});x=f(e.call(this));o.attr("className",A);o.animate(a(w,x),g,j,function(){b.each(p,function(a,b){c[b]&&o[b+"Class"](c[b])});typeof o.attr("style")=="object"?(o.attr("style").cssText="",o.attr("style").cssText=q):o.attr("style",q);k&&k.apply(this,arguments)});w=b.queue(this);x=w.splice(w.length-1,1)[0];w.splice(1,0,x);b.dequeue(this)})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(a,c,e,f){return c?
b.effects.animateClass.apply(this,[{add:a},c,e,f]):this._addClass(a)},_removeClass:b.fn.removeClass,removeClass:function(a,c,e,f){return c?b.effects.animateClass.apply(this,[{remove:a},c,e,f]):this._removeClass(a)},_toggleClass:b.fn.toggleClass,toggleClass:function(a,c,e,f,j){return typeof c=="boolean"||c===g?e?b.effects.animateClass.apply(this,[c?{add:a}:{remove:a},e,f,j]):this._toggleClass(a,c):b.effects.animateClass.apply(this,[{toggle:a},c,e,f])},switchClass:function(a,c,e,f,g){return b.effects.animateClass.apply(this,
[{add:c,remove:a},e,f,g])}});b.extend(b.effects,{version:"1.8.12",save:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.data("ec.storage."+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.css(b[c],a.data("ec.storage."+b[c]))},setMode:function(a,b){b=="toggle"&&(b=a.is(":hidden")?"show":"hide");return b},getBaseline:function(a,b){var c;switch(a[0]){case "top":c=0;break;case "middle":c=0.5;break;case "bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case "left":a=
0;break;case "center":a=0.5;break;case "right":a=1;break;default:a=a[1]/b.width}return{x:a,y:c}},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper"))return a.parent();var c={width:a.outerWidth(!0),height:a.outerHeight(!0),"float":a.css("float")},e=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});a.wrap(e);e=a.parent();a.css("position")=="static"?(e.css({position:"relative"}),a.css({position:"relative"})):
(b.extend(c,{position:a.css("position"),zIndex:a.css("z-index")}),b.each(["top","left","bottom","right"],function(b,e){c[e]=a.css(e);isNaN(parseInt(c[e],10))&&(c[e]="auto")}),a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"}));return e.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(a,c,e,f){f=f||{};b.each(c,function(b,c){unit=a.cssUnit(c);unit[0]>0&&(f[c]=unit[0]*e+unit[1])});return f}});b.fn.extend({effect:function(a){var e=
c.apply(this,arguments),f={options:e[1],duration:e[2],callback:e[3]},e=f.options.mode,g=b.effects[a];return b.fx.off||!g?e?this[e](f.duration,f.callback):this.each(function(){f.callback&&f.callback.call(this)}):g.call(this,f)},_show:b.fn.show,show:function(a){if(k(a))return this._show.apply(this,arguments);else{var b=c.apply(this,arguments);b[1].mode="show";return this.effect.apply(this,b)}},_hide:b.fn.hide,hide:function(a){if(k(a))return this._hide.apply(this,arguments);else{var b=c.apply(this,arguments);
b[1].mode="hide";return this.effect.apply(this,b)}},__toggle:b.fn.toggle,toggle:function(a){if(k(a)||typeof a==="boolean"||b.isFunction(a))return this.__toggle.apply(this,arguments);else{var e=c.apply(this,arguments);e[1].mode="toggle";return this.effect.apply(this,e)}},cssUnit:function(a){var c=this.css(a),e=[];b.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(e=[parseFloat(c),b])});return e}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(a,c,e,f,g){return b.easing[b.easing.def](a,
c,e,f,g)},easeInQuad:function(a,b,c,e,f){return e*(b/=f)*b+c},easeOutQuad:function(a,b,c,e,f){return-e*(b/=f)*(b-2)+c},easeInOutQuad:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b+c:-e/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,e,f){return e*(b/=f)*b*b+c},easeOutCubic:function(a,b,c,e,f){return e*((b=b/f-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b+c:e/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,e,f){return e*(b/=f)*b*b*b+c},easeOutQuart:function(a,b,c,e,f){return-e*
((b=b/f-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b*b+c:-e/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,e,f){return e*(b/=f)*b*b*b*b+c},easeOutQuint:function(a,b,c,e,f){return e*((b=b/f-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,e,f){return(b/=f/2)<1?e/2*b*b*b*b*b+c:e/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,e,f){return-e*Math.cos(b/f*(Math.PI/2))+e+c},easeOutSine:function(a,b,c,e,f){return e*Math.sin(b/f*(Math.PI/2))+c},easeInOutSine:function(a,b,
c,e,f){return-e/2*(Math.cos(Math.PI*b/f)-1)+c},easeInExpo:function(a,b,c,e,f){return b==0?c:e*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,e,f){return b==f?c+e:e*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,e,f){return b==0?c:b==f?c+e:(b/=f/2)<1?e/2*Math.pow(2,10*(b-1))+c:e/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,e,f){return-e*(Math.sqrt(1-(b/=f)*b)-1)+c},easeOutCirc:function(a,b,c,e,f){return e*Math.sqrt(1-(b=b/f-1)*b)+c},easeInOutCirc:function(a,b,c,e,f){return(b/=
f/2)<1?-e/2*(Math.sqrt(1-b*b)-1)+c:e/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,e,f){var g=0,j=e;if(b==0)return c;if((b/=f)==1)return c+e;g||(g=f*0.3);j<Math.abs(e)?(j=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/j);return-(j*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,e,f){var g=0,j=e;if(b==0)return c;if((b/=f)==1)return c+e;g||(g=f*0.3);j<Math.abs(e)?(j=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/j);return j*Math.pow(2,-10*b)*Math.sin((b*f-a)*2*Math.PI/
g)+e+c},easeInOutElastic:function(a,b,c,e,f){var g=0,j=e;if(b==0)return c;if((b/=f/2)==2)return c+e;g||(g=f*0.3*1.5);j<Math.abs(e)?(j=e,a=g/4):a=g/(2*Math.PI)*Math.asin(e/j);return b<1?-0.5*j*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g)+c:j*Math.pow(2,-10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/g)*0.5+e+c},easeInBack:function(a,b,c,e,f,j){j==g&&(j=1.70158);return e*(b/=f)*b*((j+1)*b-j)+c},easeOutBack:function(a,b,c,e,f,j){j==g&&(j=1.70158);return e*((b=b/f-1)*b*((j+1)*b+j)+1)+c},easeInOutBack:function(a,
b,c,e,f,j){j==g&&(j=1.70158);return(b/=f/2)<1?e/2*b*b*(((j*=1.525)+1)*b-j)+c:e/2*((b-=2)*b*(((j*=1.525)+1)*b+j)+2)+c},easeInBounce:function(a,c,e,f,g){return f-b.easing.easeOutBounce(a,g-c,0,f,g)+e},easeOutBounce:function(a,b,c,e,f){return(b/=f)<1/2.75?e*7.5625*b*b+c:b<2/2.75?e*(7.5625*(b-=1.5/2.75)*b+0.75)+c:b<2.5/2.75?e*(7.5625*(b-=2.25/2.75)*b+0.9375)+c:e*(7.5625*(b-=2.625/2.75)*b+0.984375)+c},easeInOutBounce:function(a,c,e,f,g){return c<g/2?b.easing.easeInBounce(a,c*2,0,f,g)*0.5+e:b.easing.easeOutBounce(a,
c*2-g,0,f,g)*0.5+f*0.5+e}})}(jQuery);(function(b){b.effects.fade=function(g){return this.queue(function(){var j=b(this),e=b.effects.setMode(j,g.options.mode||"hide");j.animate({opacity:e},{queue:!1,duration:g.duration,easing:g.options.easing,complete:function(){g.callback&&g.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);
(function(b){b.effects.slide=function(g){return this.queue(function(){var j=b(this),e=["position","top","bottom","left","right"],f=b.effects.setMode(j,g.options.mode||"show"),a=g.options.direction||"left";b.effects.save(j,e);j.show();b.effects.createWrapper(j).css({overflow:"hidden"});var c=a=="up"||a=="down"?"top":"left",a=a=="up"||a=="left"?"pos":"neg",k=g.options.distance||(c=="top"?j.outerHeight({margin:!0}):j.outerWidth({margin:!0}));f=="show"&&j.css(c,a=="pos"?isNaN(k)?"-"+k:-k:k);var o={};
o[c]=(f=="show"?a=="pos"?"+=":"-=":a=="pos"?"-=":"+=")+k;j.animate(o,{queue:!1,duration:g.duration,easing:g.options.easing,complete:function(){f=="hide"&&j.hide();b.effects.restore(j,e);b.effects.removeWrapper(j);g.callback&&g.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);function Set_Cookie(b,g,j,e,f,a){var c=new Date;c.setTime(c.getTime());j&&(j*=864E5);c=new Date(c.getTime()+j);document.cookie=b+"="+escape(g)+(j?";expires="+c.toGMTString():"")+(e?";path="+e:"")+(f?";domain="+f:"")+(a?";secure":"")}function setCookie(b,g,j){var e=new Date;e.setDate(e.getDate()+j);document.cookie=b+"="+escape(g)+(j==null?"":";expires="+e.toGMTString())}
function getCookie(b){if(document.cookie.length>0&&(c_start=document.cookie.indexOf(b+"="),c_start!=-1)){c_start=c_start+b.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}return""}function wC(){cZ=new Date;d=cZ.getTime()-cA.getTime();d/=1E3;return cZhtml=d>=10?"":wCS(d)}
function wCS(b){b+="";r="";sA=b.split(".");for(i=0;i<sA.length;i++)i==0?r+=sA[i]+".":(r+=sA[i].substring(0,2),sA[i].length==1&&(r+="0"));r.length==2&&(r+="01");return r}
function insertLoadTime(){var b="loading_duration="+wC()+"&generation_duration="+GD+"&page_url="+window.location.href+window.location.hash+"&page="+SCRIPT_NAME+"&page_cached="+PC;typeof VISITS_PROPID!="undefined"&&VISITS_PROPID!=""&&VISITS_PROPID>0&&(b+="&proID="+VISITS_PROPID);typeof PTV!="undefined"&&PTV!=""&&(b+="&ptv="+PTV);$.ajax({type:"POST",url:"/ajax_files/insert_page_load_stats.php",data:b,cache:!1})}
$(document).ready(function(){insertLoadTime();var b=$("#header_keywords").val(),g={},j;$("#header_keywords").autocomplete({minLength:3,autoFocus:!0,delay:200,source:function(b,f){var a=b.term;a in g?f(g[a]):j=$.getJSON("/ajax_files/locations_search.ajax.php",b,function(b,e,o){g[a]=b;o===j&&f(b)})},create:function(){$(".ui-autocomplete").css("z-index",9999)},select:function(b,f){this.value=f.item.value;return!1},open:function(){$(".featured").css("z-index",0);$(".visualsContent").css("z-index",0);
$(".ui-autocomplete").css("z-index",9999)},close:function(){$(".featured").css("z-index",2);$(".visualsContent").css("z-index",2)}});$("#header_keywords").focus(function(){$(this).val()==b&&$(this).val("")});$("#header_keywords").blur(function(){$(this).val()==""&&$(this).val(b)})});

