(function(l,a,F){var h=a.documentElement,d=l.setTimeout,f=a.getElementsByTagName("script")[0],s={}.toString,e=[],k=0,j="MozAppearance"in h.style,g=j&&!!a.createRange().compareNode,H=j&&!g,o=g?h:f.parentNode,E=l.opera&&s.call(l.opera)=="[object Opera]",r="webkitAppearance"in h.style,z=r&&"async"in a.createElement("script"),v=j?"object":E||z?"img":"script",B=r?"img":v,y=Array.isArray||function(a){return s.call(a)=="[object Array]"},q=function(a){return typeof a=="object"},i=function(a){return typeof a=="string"},p=function(a){return s.call(a)=="[object Function]"},m=[],w={},x,c;function t(a){return!a||a=="loaded"||a=="complete"}function b(){var b=1,a=-1;while(e.length-++a)if(e[a].s&&!(b=e[a].r))break;b&&n()}function D(h){var e=a.createElement("script"),g;e.src=h.s;e.onreadystatechange=e.onload=function(){if(!g&&t(e.readyState)){g=1;b();e.onload=e.onreadystatechange=null}};d(function(){if(!g){g=1;b()}},c.errorTimeout);h.e?e.onload():f.parentNode.insertBefore(e,f)}function C(h){var g=a.createElement("link"),e;g.href=h.s;g.rel="stylesheet";g.type="text/css";if(!h.e&&(r||j))(function i(a){d(function(){if(!e)try{if(a.sheet.cssRules.length){e=1;b()}else i(a)}catch(c){if(c.code==1e3||c.message=="security"||c.message=="denied"){e=1;d(function(){b()},0)}else i(a)}},0)})(g);else{g.onload=function(){if(!e){e=1;d(function(){b()},0)}};h.e&&g.onload()}d(function(){if(!e){e=1;b()}},c.errorTimeout);!h.e&&f.parentNode.insertBefore(g,f)}function n(){var a=e.shift();k=1;if(a)if(a.t)d(function(){a.t=="c"?C(a):D(a)},0);else{a();b()}else k=0}function A(l,q,p,r,u,s){var h=a.createElement(l),j=0,i={t:p,s:q,e:s};function m(){if(!j&&t(h.readyState)){i.r=j=1;!k&&b();h.onload=h.onreadystatechange=null;d(function(){o.removeChild(h)},0)}}h.src=h.data=q;!g&&(h.style.display="none");h.width=h.height="0";if(l!="object")h.type=p;h.onload=h.onreadystatechange=m;if(l=="img")h.onerror=m;else if(l=="script")h.onerror=function(){i.e=i.r=1;n()};e.splice(r,0,i);o.insertBefore(h,g?null:f);d(function(){if(!j){o.removeChild(h);i.r=i.e=j=1;b()}},c.errorTimeout)}function G(b,a,c){var d=a=="c"?B:v;k=0;a=a||"j";if(i(b))A(d,b,a,this.i++,h,c);else{e.splice(this.i++,0,b);e.length==1&&n()}return this}function u(){var a=c;a.loader={load:G,i:0};return a}c=function(a){var f,b,e=this.yepnope.loader;function h(h){for(var c=h.split("!"),f=m.length,e=c.pop(),g=c.length,b={url:e,origUrl:e,prefixes:c},d,a=0;a<g;a++){d=w[c[a]];if(d)b=d(b)}for(a=0;a<f;a++)b=m[a](b);return b}function d(d,a,g,c,f){var b=h(d),e=b.autoCallback;if(b.bypass)return;if(a)a=p(a)?a:a[d]||a[c]||a[d.split("/").pop().split("?")[0]];if(b.instead)return b.instead(d,a,g,c,f);else{g.load(b.url,b.forceCSS||!b.forceJS&&/css$/.test(b.url)?"c":F,b.noexec);(p(a)||p(e))&&g.load(function(){u();a&&a(b.origUrl,f,c);e&&e(b.origUrl,f,c)})}}function g(a,e){var c=!!a.test,j=c?a.yep:a.nope,h=a.load||a.both,g=a.callback,b;function f(a){if(i(a))d(a,g,e,0,c);else if(q(a))for(b in a)a.hasOwnProperty(b)&&d(a[b],g,e,b,c)}f(j);f(h);a.complete&&e.load(a.complete)}if(i(a))d(a,0,e,0);else if(y(a))for(f=0;f<a.length;f++){b=a[f];if(i(b))d(b,0,e,0);else if(y(b))c(b);else q(b)&&g(b,e)}else q(a)&&g(a,e)};c.addPrefix=function(b,a){w[b]=a};c.addFilter=function(a){m.push(a)};c.errorTimeout=1e4;if(a.readyState==null&&a.addEventListener){a.readyState="loading";a.addEventListener("DOMContentLoaded",x=function(){a.removeEventListener("DOMContentLoaded",x,0);a.readyState="complete"},0)}l.yepnope=u()})(this,this.document);
/*!
 * Modernizr v2.0.6
 * http://www.modernizr.com
 *
 * Copyright (c) 2009-2011 Faruk Ates, Paul Irish, Alex Sexton
 * Dual-licensed under the BSD or MIT licenses: www.modernizr.com/license/
 */
window.Modernizr=function(e,b,h){var H="2.0.6",c={},E=true,f=b.documentElement,J=b.head||b.getElementsByTagName("head")[0],m="modernizr",A=b.createElement(m),j=A.style,d=b.createElement("input"),t=":)",y=Object.prototype.toString,i=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),k="Webkit Moz O ms Khtml".split(" "),u={svg:"http://www.w3.org/2000/svg"},a={},B={},C={},z=[],q,v=function(h,j,c,e){var g,i,d,a=b.createElement("div");if(parseInt(c,10))while(c--){d=b.createElement("div");d.id=e?e[c]:m+(c+1);a.appendChild(d)}g=["&shy;","<style>",h,"</style>"].join("");a.id=m;a.innerHTML+=g;f.appendChild(a);i=j(a,h);a.parentNode.removeChild(a);return!!i},D=function(b){if(e.matchMedia)return matchMedia(b).matches;var a;v("@media "+b+" { #"+m+" { position: absolute; } }",function(b){a=(e.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position=="absolute"});return a},o=function(){var c={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function a(d,a){a=a||b.createElement(c[d]||"div");d="on"+d;var e=d in a;if(!e){if(!a.setAttribute)a=b.createElement("div");if(a.setAttribute&&a.removeAttribute){a.setAttribute(d,"");e=n(a[d],"function");if(!n(a[d],h))a[d]=h;a.removeAttribute(d)}}a=null;return e}return a}(),w={}.hasOwnProperty,p;if(!n(w,h)&&!n(w.call,h))p=function(b,a){return w.call(b,a)};else p=function(b,a){return a in b&&n(b.constructor.prototype[a],h)};function l(a){j.cssText=a}function F(a,b){return l(i.join(a+";")+(b||""))}function n(b,a){return typeof b===a}function s(b,a){return!!~(""+b).indexOf(a)}function r(a,c){for(var b in a)if(j[a[b]]!==h)return c=="pfx"?a[b]:true;return false}function g(a,c){var b=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+k.join(b+" ")+b).split(" ");return r(d,c)}var I=function(f,d){var g=f.join(""),a=d.length;v(g,function(i,j){var d=b.styleSheets[b.styleSheets.length-1],h=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",g=i.childNodes,f={};while(a--)f[g[a].id]=g[a];c.touch="ontouchstart"in e||f.touch.offsetTop===9;c.csstransforms3d=f.csstransforms3d.offsetLeft===9;c.generatedcontent=f.generatedcontent.offsetHeight>=1;c.fontface=/src/i.test(h)&&h.indexOf(j.split(" ")[0])===0},a,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",i.join("touch-enabled),("),m,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",i.join("transform-3d),("),m,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',t,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);a.flexbox=function(){function e(b,a,d,c){a+=":";b.style.cssText=(a+i.join(d+";"+a)).slice(0,-a.length)+(c||"")}function d(b,a,d,c){b.style.cssText=i.join(a+":"+d+";")+(c||"")}var a=b.createElement("div"),c=b.createElement("div");e(a,"display","box","width:42px;padding:0;");d(c,"box-flex","1","width:10px;");a.appendChild(c);f.appendChild(a);var g=c.offsetWidth===42;a.removeChild(c);f.removeChild(a);return g};a.canvas=function(){var a=b.createElement("canvas");return!!(a.getContext&&a.getContext("2d"))};a.canvastext=function(){return!!(c.canvas&&n(b.createElement("canvas").getContext("2d").fillText,"function"))};a.webgl=function(){return!!e.WebGLRenderingContext};a.touch=function(){return c.touch};a.geolocation=function(){return!!navigator.geolocation};a.postmessage=function(){return!!e.postMessage};a.websqldatabase=function(){return!!e.openDatabase};a.indexedDB=function(){for(var a=-1,b=k.length;++a<b;)if(e[k[a].toLowerCase()+"IndexedDB"])return true;return!!e.indexedDB};a.hashchange=function(){return o("hashchange",e)&&(b.documentMode===h||b.documentMode>7)};a.history=function(){return!!(e.history&&history.pushState)};a.draganddrop=function(){return o("dragstart")&&o("drop")};a.websockets=function(){for(var a=-1,b=k.length;++a<b;)if(e[k[a]+"WebSocket"])return true;return"WebSocket"in e};a.rgba=function(){l("background-color:rgba(150,255,150,.5)");return s(j.backgroundColor,"rgba")};a.hsla=function(){l("background-color:hsla(120,40%,100%,.5)");return s(j.backgroundColor,"rgba")||s(j.backgroundColor,"hsla")};a.multiplebgs=function(){l("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(j.background)};a.backgroundsize=function(){return g("backgroundSize")};a.borderimage=function(){return g("borderImage")};a.borderradius=function(){return g("borderRadius")};a.boxshadow=function(){return g("boxShadow")};a.textshadow=function(){return b.createElement("div").style.textShadow===""};a.opacity=function(){F("opacity:.55");return/^0.55$/.test(j.opacity)};a.cssanimations=function(){return g("animationName")};a.csscolumns=function(){return g("columnCount")};a.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";l((a+i.join(b+a)+i.join(c+a)).slice(0,-a.length));return s(j.backgroundImage,"gradient")};a.cssreflections=function(){return g("boxReflect")};a.csstransforms=function(){return!!r(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};a.csstransforms3d=function(){var a=!!r(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a&&"webkitPerspective"in f.style)a=c.csstransforms3d;return a};a.csstransitions=function(){return g("transitionProperty")};a.fontface=function(){return c.fontface};a.generatedcontent=function(){return c.generatedcontent};a.video=function(){var c=b.createElement("video"),a=false;try{if(a=!!c.canPlayType){a=new Boolean(a);a.ogg=c.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';a.h264=c.canPlayType(d+'"')||c.canPlayType(d+', mp4a.40.2"');a.webm=c.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(e){}return a};a.audio=function(){var c=b.createElement("audio"),a=false;try{if(a=!!c.canPlayType){a=new Boolean(a);a.ogg=c.canPlayType('audio/ogg; codecs="vorbis"');a.mp3=c.canPlayType("audio/mpeg;");a.wav=c.canPlayType('audio/wav; codecs="1"');a.m4a=c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/aac;")}}catch(d){}return a};a.localstorage=function(){try{return!!localStorage.getItem}catch(a){return false}};a.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return false}};a.webworkers=function(){return!!e.Worker};a.applicationcache=function(){return!!e.applicationCache};a.svg=function(){return!!b.createElementNS&&!!b.createElementNS(u.svg,"svg").createSVGRect};a.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==u.svg};a.smil=function(){return!!b.createElementNS&&/SVG/.test(y.call(b.createElementNS(u.svg,"animate")))};a.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(y.call(b.createElementNS(u.svg,"clipPath")))};function G(){c.input=function(b){for(var a=0,c=b.length;a<c;a++)C[b[a]]=!!(b[a]in d);return C}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));c.inputtypes=function(i){for(var e=0,a,c,g,j=i.length;e<j;e++){d.setAttribute("type",c=i[e]);a=d.type!=="text";if(a){d.value=t;d.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(c)&&d.style.WebkitAppearance!==h){f.appendChild(d);g=b.defaultView;a=g.getComputedStyle&&g.getComputedStyle(d,null).WebkitAppearance!=="textfield"&&d.offsetHeight!==0;f.removeChild(d)}else if(!/^(search|tel)$/.test(c))if(/^(url|email)$/.test(c))a=d.checkValidity&&d.checkValidity()===false;else if(/^color$/.test(c)){f.appendChild(d);f.offsetWidth;a=d.value!=t;f.removeChild(d)}else a=d.value!=t}B[i[e]]=!!a}return B}("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var x in a)if(p(a,x)){q=x.toLowerCase();c[q]=a[x]();z.push((c[q]?"":"no-")+q)}c.input||G();c.addTest=function(a,b){if(typeof a=="object")for(var d in a)p(a,d)&&c.addTest(d,a[d]);else{a=a.toLowerCase();if(c[a]!==h)return;b=typeof b=="boolean"?b:!!b();f.className+=" "+(b?"":"no-")+a;c[a]=b}return c};l("");A=d=null;e.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&(function(f,b){f.iepp=f.iepp||{};var a=f.iepp,i=a.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",g=i.split("|"),k=g.length,p=new RegExp("(^|\\s)("+i+")","gi"),s=new RegExp("<(/*)("+i+")","gi"),r=/^\s*[\{\}]\s*$/,q=new RegExp("(^|[^\\n]*?\\s)("+i+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),j=b.documentElement,m=j.firstChild,d=b.createElement("body"),e=b.createElement("style"),o=/print|all/,c;function n(b){var a=-1;while(++a<k)b.createElement(g[a])}a.getCSS=function(d,c){if(d+""===h)return"";var f=-1,g=d.length,b,e=[];while(++f<g){b=d[f];if(b.disabled)continue;c=b.media||c;o.test(c)&&e.push(a.getCSS(b.imports,c),b.cssText);c="all"}return e.join("")};a.parseCSS=function(c){var b=[],a;while((a=q.exec(c))!=null)b.push(((r.exec(a[1])?"\n":a[1])+a[2]+a[3]).replace(p,"$1.iepp_$2")+a[4]);return b.join("\n")};a.writeHTML=function(){var e=-1;c=c||b.body;while(++e<k){var a=b.getElementsByTagName(g[e]),h=a.length,f=-1;while(++f<h)if(a[f].className.indexOf("iepp_")<0)a[f].className+=" iepp_"+g[e]}l.appendChild(c);j.appendChild(d);d.className=c.className;d.id=c.id;d.innerHTML=c.innerHTML.replace(s,"<$1font")};a._beforePrint=function(){e.styleSheet.cssText=a.parseCSS(a.getCSS(b.styleSheets,"all"));a.writeHTML()};a.restoreHTML=function(){d.innerHTML="";j.removeChild(d);j.appendChild(c)};a._afterPrint=function(){a.restoreHTML();e.styleSheet.cssText=""};n(b);n(l);if(a.disablePP)return;m.insertBefore(e,m.firstChild);e.media="print";e.className="iepp-printshim";f.attachEvent("onbeforeprint",a._beforePrint);f.attachEvent("onafterprint",a._afterPrint)})(e,b);c._version=H;c._prefixes=i;c._domPrefixes=k;c.mq=D;c.hasEvent=o;c.testProp=function(a){return r([a])};c.testAllProps=g;c.testStyles=v;c.prefixed=function(a){return g(a,"pfx")};f.className=f.className.replace(/\bno-js\b/,"")+(E?" js "+z.join(" "):"");return c}(this,this.document);
/*!
 * jQuery JavaScript Library v1.6.3
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Wed Aug 31 10:35:15 2011 -0400
 */
(function(d,b){var c=d.document,Qb=d.navigator,Vb=d.location,a=function(){var a=function(b,c){return new a.fn.init(b,c,m)},F=d.jQuery,J=d.$,m,z=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,n=/\S/,p=/^\s+/,o=/\s+$/,G=/\d/,y=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,v=/^[\],:{}\s]*$/,t=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,u=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,s=/(?:^|:|,)(?:\s*\[)+/g,E=/(webkit)[ \/]([\w.]+)/,H=/(opera)(?:.*version)?[ \/]([\w.]+)/,I=/(msie) ([\w.]+)/,C=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z]|[0-9])/ig,A=/^-ms-/,w=function(b,a){return(a+"").toUpperCase()},B=Qb.userAgent,g,h,e,D=Object.prototype.toString,i=Object.prototype.hasOwnProperty,j=Array.prototype.push,f=Array.prototype.slice,r=String.prototype.trim,q=Array.prototype.indexOf,l={};a.fn=a.prototype={constructor:a,init:function(d,e,i){var f,h,g,j;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!e&&c.body){this.context=c;this[0]=c.body;this.selector=d;this.length=1;return this}if(typeof d==="string"){if(d.charAt(0)==="<"&&d.charAt(d.length-1)===">"&&d.length>=3)f=[null,d,null];else f=z.exec(d);if(f&&(f[1]||!e))if(f[1]){e=e instanceof a?e[0]:e;j=e?e.ownerDocument||e:c;g=y.exec(d);if(g)if(a.isPlainObject(e)){d=[c.createElement(g[1])];a.fn.attr.call(d,e,true)}else d=[j.createElement(g[1])];else{g=a.buildFragment([f[1]],[j]);d=(g.cacheable?a.clone(g.fragment):g.fragment).childNodes}return a.merge(this,d)}else{h=c.getElementById(f[2]);if(h&&h.parentNode){if(h.id!==f[2])return i.find(d);this.length=1;this[0]=h}this.context=c;this.selector=d;return this}else return!e||e.jquery?(e||i).find(d):this.constructor(e).find(d)}else if(a.isFunction(d))return i.ready(d);if(d.selector!==b){this.selector=d.selector;this.context=d.context}return a.makeArray(d,this)},selector:"",jquery:"1.6.3",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(c,d,e){var b=this.constructor();if(a.isArray(c))j.apply(b,c);else a.merge(b,c);b.prevObject=this;b.context=this.context;if(d==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(d)b.selector=this.selector+"."+d+"("+e+")";return b},each:function(b,c){return a.each(this,b,c)},ready:function(b){a.bindReady();h.done(b);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(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var i,g,e,d,h,j,c=arguments[0]||{},f=1,l=arguments.length,k=false;if(typeof c==="boolean"){k=c;c=arguments[1]||{};f=2}if(typeof c!=="object"&&!a.isFunction(c))c={};if(l===f){c=this;--f}for(;f<l;f++)if((i=arguments[f])!=null)for(g in i){e=c[g];d=i[g];if(c===d)continue;if(k&&d&&(a.isPlainObject(d)||(h=a.isArray(d)))){if(h){h=false;j=e&&a.isArray(e)?e:[]}else j=e&&a.isPlainObject(e)?e:{};c[g]=a.extend(k,j,d)}else if(d!==b)c[g]=d}return c};a.extend({noConflict:function(b){if(d.$===a)d.$=J;if(b&&d.jQuery===a)d.jQuery=F;return a},isReady:false,readyWait:1,holdReady:function(b){if(b)a.readyWait++;else a.ready(true)},ready:function(b){if(b===true&&!--a.readyWait||b!==true&&!a.isReady){if(!c.body)return setTimeout(a.ready,1);a.isReady=true;if(b!==true&&--a.readyWait>0)return;h.resolveWith(c,[a]);a.fn.trigger&&a(c).trigger("ready").unbind("ready")}},bindReady:function(){if(h)return;h=a._Deferred();if(c.readyState==="complete")return setTimeout(a.ready,1);if(c.addEventListener){c.addEventListener("DOMContentLoaded",e,false);d.addEventListener("load",a.ready,false)}else if(c.attachEvent){c.attachEvent("onreadystatechange",e);d.attachEvent("onload",a.ready);var b=false;try{b=d.frameElement==null}catch(f){}c.documentElement.doScroll&&b&&k()}},isFunction:function(b){return a.type(b)==="function"},isArray:Array.isArray||function(b){return a.type(b)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!G.test(a)||isNaN(a)},type:function(a){return a==null?String(a):l[D.call(a)]||"object"},isPlainObject:function(c){if(!c||a.type(c)!=="object"||c.nodeType||a.isWindow(c))return false;try{if(c.constructor&&!i.call(c,"constructor")&&!i.call(c.constructor.prototype,"isPrototypeOf"))return false}catch(e){return false}var d;for(d in c);return d===b||i.call(c,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(d.JSON&&d.JSON.parse)return d.JSON.parse(b);if(v.test(b.replace(t,"@").replace(u,"]").replace(s,"")))return new Function("return "+b)();a.error("Invalid JSON: "+b)},parseXML:function(e){var c,f;try{if(d.DOMParser){f=new DOMParser;c=f.parseFromString(e,"text/xml")}else{c=new ActiveXObject("Microsoft.XMLDOM");c.async="false";c.loadXML(e)}}catch(g){c=b}(!c||!c.documentElement||c.getElementsByTagName("parsererror").length)&&a.error("Invalid XML: "+e);return c},noop:function(){},globalEval:function(a){a&&n.test(a)&&(d.execScript||function(a){d.eval.call(d,a)})(a)},camelCase:function(a){return a.replace(A,"ms-").replace(x,w)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(c,f,h){var d,e=0,g=c.length,i=g===b||a.isFunction(c);if(h){if(i){for(d in c)if(f.apply(c[d],h)===false)break}else for(;e<g;)if(f.apply(c[e++],h)===false)break}else if(i){for(d in c)if(f.call(c[d],d,c[d])===false)break}else for(;e<g;)if(f.call(c[e],e,c[e++])===false)break;return c},trim:r?function(a){return a==null?"":r.call(a)}:function(a){return a==null?"":a.toString().replace(p,"").replace(o,"")},makeArray:function(b,e){var d=e||[];if(b!=null){var c=a.type(b);if(b.length==null||c==="string"||c==="function"||c==="regexp"||a.isWindow(b))j.call(d,b);else a.merge(d,b)}return d},inArray:function(c,a){if(!a)return-1;if(q)return q.call(a,c);for(var b=0,d=a.length;b<d;b++)if(a[b]===c)return b;return-1},merge:function(c,a){var e=c.length,d=0;if(typeof a.length==="number")for(var f=a.length;d<f;d++)c[e++]=a[d];else while(a[d]!==b)c[e++]=a[d++];c.length=e;return c},grep:function(b,f,c){var e=[],d;c=!!c;for(var a=0,g=b.length;a<g;a++){d=!!f(b[a],a);c!==d&&e.push(b[a])}return e},map:function(c,i,j){var e,h,f=[],g=0,d=c.length,k=c instanceof a||d!==b&&typeof d==="number"&&(d>0&&c[0]&&c[d-1]||d===0||a.isArray(c));if(k)for(;g<d;g++){e=i(c[g],g,j);if(e!=null)f[f.length]=e}else for(h in c){e=i(c[h],h,j);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(c,d){if(typeof d==="string"){var h=c[d];d=c;c=h}if(!a.isFunction(c))return b;var g=f.call(arguments,2),e=function(){return c.apply(d,g.concat(f.call(arguments)))};e.guid=c.guid=c.guid||e.guid||a.guid++;return e},access:function(c,d,f,g,h,j){var i=c.length;if(typeof d==="object"){for(var k in d)a.access(c,k,d[k],g,h,f);return c}if(f!==b){g=!j&&g&&a.isFunction(f);for(var e=0;e<i;e++)h(c[e],d,g?f.call(c[e],e,h(c[e],d)):f,j);return c}return i?h(c[0],d):b},now:function(){return+new Date},uaMatch:function(a){a=a.toLowerCase();var b=E.exec(a)||H.exec(a)||I.exec(a)||a.indexOf("compatible")<0&&C.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function b(a,c){return new b.fn.init(a,c)}a.extend(true,b,this);b.superclass=this;b.fn=b.prototype=this();b.fn.constructor=b;b.sub=this.sub;b.fn.init=function(e,c){if(c&&c instanceof a&&!(c instanceof b))c=b(c);return a.fn.init.call(this,e,c,d)};b.fn.init.prototype=b.fn;var d=b(c);return b},browser:{}});a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b,a){l["[object "+a+"]"]=a.toLowerCase()});g=a.uaMatch(B);if(g.browser){a.browser[g.browser]=true;a.browser.version=g.version}if(a.browser.webkit)a.browser.safari=true;if(n.test(" ")){p=/^[\s\xA0]+/;o=/[\s\xA0]+$/}m=a(c);if(c.addEventListener)e=function(){c.removeEventListener("DOMContentLoaded",e,false);a.ready()};else if(c.attachEvent)e=function(){if(c.readyState==="complete"){c.detachEvent("onreadystatechange",e);a.ready()}};function k(){if(a.isReady)return;try{c.documentElement.doScroll("left")}catch(b){setTimeout(k,1);return}a.ready()}return a}(),A="done fail isResolved isRejected promise then always pipe".split(" "),T=[].slice;a.extend({_Deferred:function(){var d=[],b,e,f,c={done:function(){if(!f){var k=arguments,h,j,g,i,e;if(b){e=b;b=0}for(h=0,j=k.length;h<j;h++){g=k[h];i=a.type(g);if(i==="array")c.done.apply(c,g);else i==="function"&&d.push(g)}e&&c.resolveWith(e[0],e[1])}return this},resolveWith:function(c,a){if(!f&&!b&&!e){a=a||[];e=1;try{while(d[0])d.shift().apply(c,a)}finally{b=[c,a];e=0}}return this},resolve:function(){c.resolveWith(this,arguments);return this},isResolved:function(){return!!(e||b)},cancel:function(){f=1;d=[];return this}};return c},Deferred:function(e){var b=a._Deferred(),c=a._Deferred(),d;a.extend(b,{then:function(a,c){b.done(a).fail(c);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(c,d){return a.Deferred(function(e){a.each({done:[c,"resolve"],fail:[d,"reject"]},function(d,g){var h=g[0],f=g[1],c;if(a.isFunction(h))b[d](function(){c=h.apply(this,arguments);if(c&&a.isFunction(c.promise))c.promise().then(e.resolve,e.reject);else e[f+"With"](this===b?e:this,[c])});else b[d](e[f])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=A.length;while(c--)a[A[c]]=b[A[c]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;e&&e.call(b,b);return b},when:function(e){var c=arguments,d=0,f=c.length,g=f,b=f<=1&&e&&a.isFunction(e.promise)?e:a.Deferred();function h(a){return function(d){c[a]=arguments.length>1?T.call(arguments,0):d;!--g&&b.resolveWith(b,T.call(c,0))}}if(f>1){for(;d<f;d++)if(c[d]&&a.isFunction(c[d].promise))c[d].promise().then(h(d),b.reject);else--g;!g&&b.resolveWith(b,c)}else b!==e&&b.resolveWith(b,f?[e]:[]);return b.promise()}});a.support=function(){var b=c.createElement("div"),t=c.documentElement,s,i,q,r,e,h,d,p,k,m,f,n,l,u,o,j,g;b.setAttribute("className","t");b.innerHTML="   <link><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=checkbox>";s=b.getElementsByTagName("*");i=b.getElementsByTagName("a")[0];if(!s||!s.length||!i)return{};q=c.createElement("select");r=q.appendChild(c.createElement("option"));e=b.getElementsByTagName("input")[0];d={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:e.value==="on",optSelected:r.selected,getSetAttribute:b.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};e.checked=true;d.noCloneChecked=e.cloneNode(true).checked;q.disabled=true;d.optDisabled=!r.disabled;try{delete b.test}catch(v){d.deleteExpando=false}if(!b.addEventListener&&b.attachEvent&&b.fireEvent){b.attachEvent("onclick",function(){d.noCloneEvent=false});b.cloneNode(true).fireEvent("onclick")}e=c.createElement("input");e.value="t";e.setAttribute("type","radio");d.radioValue=e.value==="t";e.setAttribute("checked","checked");b.appendChild(e);p=c.createDocumentFragment();p.appendChild(b.firstChild);d.checkClone=p.cloneNode(true).cloneNode(true).lastChild.checked;b.innerHTML="";b.style.width=b.style.paddingLeft="1px";k=c.getElementsByTagName("body")[0];f=c.createElement(k?"div":"body");n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};k&&a.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(j in n)f.style[j]=n[j];f.appendChild(b);m=k||t;m.insertBefore(f,m.firstChild);d.appendChecked=e.checked;d.boxModel=b.offsetWidth===2;if("zoom"in b.style){b.style.display="inline";b.style.zoom=1;d.inlineBlockNeedsLayout=b.offsetWidth===2;b.style.display="";b.innerHTML="<div style='width:4px;'></div>";d.shrinkWrapBlocks=b.offsetWidth!==2}b.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";l=b.getElementsByTagName("td");g=l[0].offsetHeight===0;l[0].style.display="";l[1].style.display="none";d.reliableHiddenOffsets=g&&l[0].offsetHeight===0;b.innerHTML="";if(c.defaultView&&c.defaultView.getComputedStyle){h=c.createElement("div");h.style.width="0";h.style.marginRight="0";b.appendChild(h);d.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0}f.innerHTML="";m.removeChild(f);if(b.attachEvent)for(j in{submit:1,change:1,focusin:1}){o="on"+j;g=o in b;if(!g){b.setAttribute(o,"return;");g=typeof b[o]==="function"}d[j+"Bubbles"]=g}f=p=q=r=k=h=b=e=null;return d}();a.boxModel=a.support.boxModel;var hc=/^(?:\{.*\}|\[.*\])$/,Nb=/([a-z])([A-Z])/g;a.extend({cache:{},uuid:0,expando:"jQuery"+(a.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(b){b=b.nodeType?a.cache[b[a.expando]]:b[a.expando];return!!b&&!y(b)},data:function(h,f,k,l){if(!a.acceptData(h))return;var d,i,g=a.expando,m=typeof f==="string",j=h.nodeType,e=j?a.cache:h,c=j?h[a.expando]:h[a.expando]&&a.expando;if((!c||l&&c&&e[c]&&!e[c][g])&&m&&k===b)return;if(!c)if(j)h[a.expando]=c=++a.uuid;else c=a.expando;if(!e[c]){e[c]={};if(!j)e[c].toJSON=a.noop}if(typeof f==="object"||typeof f==="function")if(l)e[c][g]=a.extend(e[c][g],f);else e[c]=a.extend(e[c],f);d=e[c];if(l){if(!d[g])d[g]={};d=d[g]}if(k!==b)d[a.camelCase(f)]=k;if(f==="events"&&!d[f])return d[g]&&d[g].events;if(m){i=d[f];if(i==null)i=d[a.camelCase(f)]}else i=d;return i},removeData:function(d,f,j){if(!a.acceptData(d))return;var e,g=a.expando,h=d.nodeType,b=h?a.cache:d,c=h?d[a.expando]:a.expando;if(!b[c])return;if(f){e=j?b[c][g]:b[c];if(e){if(!e[f])f=a.camelCase(f);delete e[f];if(!y(e))return}}if(j){delete b[c][g];if(!y(b[c]))return}var i=b[c][g];if(a.support.deleteExpando||!b.setInterval)delete b[c];else b[c]=null;if(i){b[c]={};if(!h)b[c].toJSON=a.noop;b[c][g]=i}else if(h)if(a.support.deleteExpando)delete d[a.expando];else if(d.removeAttribute)d.removeAttribute(a.expando);else d[a.expando]=null},_data:function(c,d,b){return a.data(c,d,b,true)},acceptData:function(c){if(c.nodeName){var b=a.noData[c.nodeName.toLowerCase()];if(b)return!(b===true||c.getAttribute("classid")!==b)}return true}});a.fn.extend({data:function(e,g){var d=null;if(typeof e==="undefined"){if(this.length){d=a.data(this[0]);if(this[0].nodeType===1)for(var i=this[0].attributes,f,h=0,j=i.length;h<j;h++){f=i[h].name;if(f.indexOf("data-")===0){f=a.camelCase(f.substring(5));eb(this[0],f,d[f])}}}return d}else if(typeof e==="object")return this.each(function(){a.data(this,e)});var c=e.split(".");c[1]=c[1]?"."+c[1]:"";if(g===b){d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===b&&this.length){d=a.data(this[0],e);d=eb(this[0],e,d)}return d===b&&c[1]?this.data(c[0]):d}else return this.each(function(){var b=a(this),d=[c[0],g];b.triggerHandler("setData"+c[1]+"!",d);a.data(this,e,g);b.triggerHandler("changeData"+c[1]+"!",d)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})}});function eb(d,e,c){if(c===b&&d.nodeType===1){var f="data-"+e.replace(Nb,"$1-$2").toLowerCase();c=d.getAttribute(f);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:!a.isNaN(c)?parseFloat(c):hc.test(c)?a.parseJSON(c):c}catch(g){}a.data(d,e,c)}else c=b}return c}function y(b){for(var a in b)if(a!=="toJSON")return false;return true}function L(c,d,i){var e=d+"defer",f=d+"queue",g=d+"mark",h=a.data(c,e,b,true);h&&(i==="queue"||!a.data(c,f,b,true))&&(i==="mark"||!a.data(c,g,b,true))&&setTimeout(function(){if(!a.data(c,f,b,true)&&!a.data(c,g,b,true)){a.removeData(c,e,true);h.resolve()}},0)}a.extend({_mark:function(d,c){if(d){c=(c||"fx")+"mark";a.data(d,c,(a.data(d,c,b,true)||0)+1,true)}},_unmark:function(e,c,d){if(e!==true){d=c;c=e;e=false}if(c){d=d||"fx";var f=d+"mark",g=e?0:(a.data(c,f,b,true)||1)-1;if(g)a.data(c,f,g,true);else{a.removeData(c,f,true);L(c,d,"mark")}}},queue:function(f,d,c){if(f){d=(d||"fx")+"queue";var e=a.data(f,d,b,true);if(c)if(!e||a.isArray(c))e=a.data(f,d,a.makeArray(c),true);else e.push(c);return e||[]}},dequeue:function(c,b){b=b||"fx";var d=a.queue(c,b),e=d.shift(),f;if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(c,function(){a.dequeue(c,b)})}if(!d.length){a.removeData(c,b+"queue",true);L(c,b,"queue")}}});a.fn.extend({queue:function(c,d){if(typeof c!=="string"){d=c;c="fx"}return d===b?a.queue(this[0],c):this.each(function(){var b=a.queue(this,c,d);c==="fx"&&b[0]!=="inprogress"&&a.dequeue(this,c)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})},delay:function(b,c){b=a.fx?a.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var d=this;setTimeout(function(){a.dequeue(d,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(c,m){if(typeof c!=="string"){m=c;c=b}c=c||"fx";var i=a.Deferred(),d=this,e=d.length,h=1,f=c+"defer",k=c+"queue",l=c+"mark",j;function g(){!--h&&i.resolveWith(d,[d])}while(e--)if(j=a.data(d[e],f,b,true)||(a.data(d[e],k,b,true)||a.data(d[e],l,b,true))&&a.data(d[e],f,a._Deferred(),true)){h++;j.done(g)}g();return i.promise()}});var nb=/[\n\t\r]/g,J=/\s+/,ec=/\r/g,qc=/^(?:button|input)$/i,Mb=/^(?:button|input|object|select|textarea)$/i,Lb=/^a(?:rea)?$/i,gb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,j,db;a.fn.extend({attr:function(c,b){return a.access(this,c,b,true,a.attr)},removeAttr:function(b){return this.each(function(){a.removeAttr(this,b)})},prop:function(c,b){return a.access(this,c,b,true,a.prop)},removeProp:function(c){c=a.propFix[c]||c;return this.each(function(){try{this[c]=b;delete this[c]}catch(a){}})},addClass:function(b){var d,g,i,c,f,e,h;if(a.isFunction(b))return this.each(function(c){a(this).addClass(b.call(this,c,this.className))});if(b&&typeof b==="string"){d=b.split(J);for(g=0,i=this.length;g<i;g++){c=this[g];if(c.nodeType===1)if(!c.className&&d.length===1)c.className=b;else{f=" "+c.className+" ";for(e=0,h=d.length;e<h;e++)if(!~f.indexOf(" "+d[e]+" "))f+=d[e]+" ";c.className=a.trim(f)}}}return this},removeClass:function(c){var h,g,j,d,e,f,i;if(a.isFunction(c))return this.each(function(b){a(this).removeClass(c.call(this,b,this.className))});if(c&&typeof c==="string"||c===b){h=(c||"").split(J);for(g=0,j=this.length;g<j;g++){d=this[g];if(d.nodeType===1&&d.className)if(c){e=(" "+d.className+" ").replace(nb," ");for(f=0,i=h.length;f<i;f++)e=e.replace(" "+h[f]+" "," ");d.className=a.trim(e)}else d.className=""}}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";return a.isFunction(b)?this.each(function(d){a(this).toggleClass(b.call(this,d,this.className,c),c)}):this.each(function(){if(d==="string"){var f,j=0,h=a(this),g=c,i=b.split(J);while(f=i[j++]){g=e?g:!h.hasClass(f);h[g?"addClass":"removeClass"](f)}}else if(d==="undefined"||d==="boolean"){this.className&&a._data(this,"__className__",this.className);this.className=this.className||b===false?"":a._data(this,"__className__")||""}})},hasClass:function(c){for(var b=" "+c+" ",a=0,d=this.length;a<d;a++)if(this[a].nodeType===1&&(" "+this[a].className+" ").replace(nb," ").indexOf(b)>-1)return true;return false},val:function(f){var c,d,e=this[0];if(!arguments.length){if(e){c=a.valHooks[e.nodeName.toLowerCase()]||a.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d==="string"?d.replace(ec,""):d==null?"":d}return b}var g=a.isFunction(f);return this.each(function(h){var e=a(this),d;if(this.nodeType!==1)return;if(g)d=f.call(this,h,e.val());else d=f;if(d==null)d="";else if(typeof d==="number")d+="";else if(a.isArray(d))d=a.map(d,function(a){return a==null?"":a+""});c=a.valHooks[this.nodeName.toLowerCase()]||a.valHooks[this.type];if(!c||!("set"in c)||c.set(this,d,"value")===b)this.value=d})}});a.extend({valHooks:{option:{"get":function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{"get":function(h){var g,d=h.selectedIndex,f=[],c=h.options,e=h.type==="select-one";if(d<0)return null;for(var i=e?d:0,j=e?d+1:c.length;i<j;i++){var b=c[i];if(b.selected&&(a.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!a.nodeName(b.parentNode,"optgroup"))){g=a(b).val();if(e)return g;f.push(g)}}return e&&!f.length&&c.length?a(c[d]).val():f},"set":function(c,d){var b=a.makeArray(d);a(c).find("option").each(function(){this.selected=a.inArray(a(this).val(),b)>=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(d,c,f,k){var h=d.nodeType;if(!d||h===3||h===8||h===2)return b;if(k&&c in a.attrFn)return a(d)[c](f);if(!("getAttribute"in d))return a.prop(d,c,f);var g,e,i=h!==1||!a.isXMLDoc(d);if(i){c=a.attrFix[c]||c;e=a.attrHooks[c];if(!e)if(gb.test(c))e=db;else if(j)e=j}if(f!==b)if(f===null){a.removeAttr(d,c);return b}else if(e&&"set"in e&&i&&(g=e.set(d,f,c))!==b)return g;else{d.setAttribute(c,""+f);return f}else if(e&&"get"in e&&i&&(g=e.get(d,c))!==null)return g;else{g=d.getAttribute(c);return g===null?b:g}},removeAttr:function(c,b){var d;if(c.nodeType===1){b=a.attrFix[b]||b;a.attr(c,b,"");c.removeAttribute(b);if(gb.test(b)&&(d=a.propFix[b]||b)in c)c[d]=false}},attrHooks:{type:{"set":function(b,c){if(qc.test(b.nodeName)&&b.parentNode)a.error("type property can't be changed");else if(!a.support.radioValue&&c==="radio"&&a.nodeName(b,"input")){var d=b.value;b.setAttribute("type",c);if(d)b.value=d;return c}}},value:{"get":function(b,c){return j&&a.nodeName(b,"button")?j.get(b,c):c in b?b.value:null},"set":function(b,c,d){if(j&&a.nodeName(b,"button"))return j.set(b,c,d);b.value=c}}},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(e,c,h){var f=e.nodeType;if(!e||f===3||f===8||f===2)return b;var g,d,i=f!==1||!a.isXMLDoc(e);if(i){c=a.propFix[c]||c;d=a.propHooks[c]}return h!==b?d&&"set"in d&&(g=d.set(e,h,c))!==b?g:e[c]=h:d&&"get"in d&&(g=d.get(e,c))!==null?g:e[c]},propHooks:{tabIndex:{"get":function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):Mb.test(a.nodeName)||Lb.test(a.nodeName)&&a.href?0:b}}}});a.attrHooks.tabIndex=a.propHooks.tabIndex;db={"get":function(e,c){var d;return a.prop(e,c)===true||(d=e.getAttributeNode(c))&&d.nodeValue!==false?c.toLowerCase():b},"set":function(c,e,b){var d;if(e===false)a.removeAttr(c,b);else{d=a.propFix[b]||b;if(d in c)c[d]=true;c.setAttribute(b,b.toLowerCase())}return b}};if(!a.support.getSetAttribute){j=a.valHooks.button={"get":function(c,d){var a;a=c.getAttributeNode(d);return a&&a.nodeValue!==""?a.nodeValue:b},"set":function(b,e,d){var a=b.getAttributeNode(d);if(!a){a=c.createAttribute(d);b.setAttributeNode(a)}return a.nodeValue=e+""}};a.each(["width","height"],function(c,b){a.attrHooks[b]=a.extend(a.attrHooks[b],{"set":function(c,a){if(a===""){c.setAttribute(b,"auto");return a}}})})}!a.support.hrefNormalized&&a.each(["href","src","width","height"],function(d,c){a.attrHooks[c]=a.extend(a.attrHooks[c],{"get":function(d){var a=d.getAttribute(c,2);return a===null?b:a}})});if(!a.support.style)a.attrHooks.style={"get":function(a){return a.style.cssText.toLowerCase()||b},"set":function(b,a){return b.style.cssText=""+a}};if(!a.support.optSelected)a.propHooks.selected=a.extend(a.propHooks.selected,{"get":function(b){var a=b.parentNode;if(a){a.selectedIndex;if(a.parentNode)a.parentNode.selectedIndex}return null}});!a.support.checkOn&&a.each(["radio","checkbox"],function(){a.valHooks[this]={"get":function(a){return a.getAttribute("value")===null?"on":a.value}}});a.each(["radio","checkbox"],function(){a.valHooks[this]=a.extend(a.valHooks[this],{"set":function(c,b){if(a.isArray(b))return c.checked=a.inArray(a(c).val(),b)>=0}})});var D=/\.(.*)$/,F=/^(?:textarea|input|select)$/i,cc=/\./g,gc=/ /g,bc=/[^\w\s.|`]/g,Tb=function(a){return a.replace(bc,"\\$&")};a.event={add:function(d,o,c,p){if(d.nodeType===3||d.nodeType===8)return;if(c===false)c=i;else if(!c)return;var k,f;if(c.handler){k=c;c=k.handler}if(!c.guid)c.guid=a.guid++;var j=a._data(d);if(!j)return;var m=j.events,g=j.handle;if(!m)j.events=m={};if(!g)j.handle=g=function(c){return typeof a!=="undefined"&&(!c||a.event.triggered!==c.type)?a.event.handle.apply(g.elem,arguments):b};g.elem=d;o=o.split(" ");var e,q=0,h;while(e=o[q++]){f=k?a.extend({},k):{handler:c,data:p};if(e.indexOf(".")>-1){h=e.split(".");e=h.shift();f.namespace=h.slice(0).sort().join(".")}else{h=[];f.namespace=""}f.type=e;if(!f.guid)f.guid=c.guid;var n=m[e],l=a.event.special[e]||{};if(!n){n=m[e]=[];if(!l.setup||l.setup.call(d,p,h,g)===false)if(d.addEventListener)d.addEventListener(e,g,false);else d.attachEvent&&d.attachEvent("on"+e,g)}if(l.add){l.add.call(d,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);a.event.global[e]=true}d=null},global:{},remove:function(g,c,l,p){if(g.nodeType===3||g.nodeType===8)return;if(l===false)l=i;var t,d,v,e,u=0,o,k,q,m,f,h,r,j=a.hasData(g)&&a._data(g),n=j&&j.events;if(!j||!n)return;if(c&&c.type){l=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(d in n)a.event.remove(g,d+c);return}c=c.split(" ");while(d=c[u++]){r=d;h=null;o=d.indexOf(".")<0;k=[];if(!o){k=d.split(".");d=k.shift();q=new RegExp("(^|\\.)"+a.map(k.slice(0).sort(),Tb).join("\\.(?:.*\\.)?")+"(\\.|$)")}f=n[d];if(!f)continue;if(!l){for(e=0;e<f.length;e++){h=f[e];if(o||q.test(h.namespace)){a.event.remove(g,r,h.handler,e);f.splice(e--,1)}}continue}m=a.event.special[d]||{};for(e=p||0;e<f.length;e++){h=f[e];if(l.guid===h.guid){if(o||q.test(h.namespace)){p==null&&f.splice(e--,1);m.remove&&m.remove.call(g,h)}if(p!=null)break}}if(f.length===0||p!=null&&f.length===1){(!m.teardown||m.teardown.call(g,k)===false)&&a.removeEvent(g,d,j.handle);t=null;delete n[d]}}if(a.isEmptyObject(n)){var s=j.handle;if(s)s.elem=null;delete j.events;delete j.handle;a.isEmptyObject(j)&&a.removeData(g,b,true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,i,f,o){var e=c.type||c,j=[],l;if(e.indexOf("!")>=0){e=e.slice(0,-1);l=true}if(e.indexOf(".")>=0){j=e.split(".");e=j.shift();j.sort()}if((!f||a.event.customEvent[e])&&!a.event.global[e])return;c=typeof c==="object"?c[a.expando]?c:new a.Event(e,c):new a.Event(e);c.type=e;c.exclusive=l;c.namespace=j.join(".");c.namespace_re=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");if(o||!f){c.preventDefault();c.stopPropagation()}if(!f){a.each(a.cache,function(){var d=a.expando,b=this[d];b&&b.events&&b.events[e]&&a.event.trigger(c,i,b.handle.elem)});return}if(f.nodeType===3||f.nodeType===8)return;c.result=b;c.target=f;i=i!=null?a.makeArray(i):[];i.unshift(c);var g=f,h=e.indexOf(":")<0?"on"+e:"";do{var n=a._data(g,"handle");c.currentTarget=g;n&&n.apply(g,i);if(h&&a.acceptData(g)&&g[h]&&g[h].apply(g,i)===false){c.result=false;c.preventDefault()}g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&d}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var k,m=a.event.special[e]||{};if((!m._default||m._default.call(f.ownerDocument,c)===false)&&!(e==="click"&&a.nodeName(f,"a"))&&a.acceptData(f)){try{if(h&&f[e]){k=f[h];if(k)f[h]=null;a.event.triggered=e;f[e]()}}catch(p){}if(k)f[h]=k;a.event.triggered=b}}return c.result},handle:function(c){c=a.event.fix(c||d.event);var h=((a._data(this,"events")||{})[c.type]||[]).slice(0),j=!c.exclusive&&!c.namespace,i=Array.prototype.slice.call(arguments,0);i[0]=c;c.currentTarget=this;for(var g=0,k=h.length;g<k;g++){var e=h[g];if(j||c.namespace_re.test(e.namespace)){c.handler=e.handler;c.data=e.data;c.handleObj=e;var f=e.handler.apply(this,i);if(f!==b){c.result=f;if(f===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}return c.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(d){if(d[a.expando])return d;var i=d;d=a.Event(i);for(var j=this.props.length,g;j;){g=this.props[--j];d[g]=i[g]}if(!d.target)d.target=d.srcElement||c;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){var h=d.target.ownerDocument||c,f=h.documentElement,e=h.body;d.pageX=d.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f&&f.clientLeft||e&&e.clientLeft||0);d.pageY=d.clientY+(f&&f.scrollTop||e&&e.scrollTop||0)-(f&&f.clientTop||e&&e.clientTop||0)}if(d.which==null&&(d.charCode!=null||d.keyCode!=null))d.which=d.charCode!=null?d.charCode:d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==b)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1e8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,q(b.origType,b.selector),a.extend({},b,{handler:Hb,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,q(b.origType,b.selector),b)}},beforeunload:{setup:function(d,c,b){if(a.isWindow(this))this.onbeforeunload=b},teardown:function(b,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};a.removeEvent=c.removeEventListener?function(a,c,b){a.removeEventListener&&a.removeEventListener(c,b,false)}:function(a,c,b){a.detachEvent&&a.detachEvent("on"+c,b)};a.Event=function(b,c){if(!this.preventDefault)return new a.Event(b,c);if(b&&b.type){this.originalEvent=b;this.type=b.type;this.isDefaultPrevented=b.defaultPrevented||b.returnValue===false||b.getPreventDefault&&b.getPreventDefault()?r:i}else this.type=b;c&&a.extend(this,c);this.timeStamp=a.now();this[a.expando]=true};function i(){return false}function r(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var a=this.originalEvent;if(!a)return;if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=r;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation();a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i};var U=function(b){var c=b.relatedTarget,d=false,e=b.type;b.type=b.data;if(c!==this){if(c)d=a.contains(this,c);if(!d){a.event.handle.apply(this,arguments);b.type=e}}},fb=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){a.event.special[b]={setup:function(d){a.event.add(this,c,d&&d.selector?fb:U,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?fb:U)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(!a.nodeName(this,"form")){a.event.add(this,"click.specialSubmit",function(d){var b=d.target,c=a.nodeName(b,"input")?b.type:"";(c==="submit"||c==="image")&&a(b).closest("form").length&&lb("submit",this,arguments)});a.event.add(this,"keypress.specialSubmit",function(d){var b=d.target,c=a.nodeName(b,"input")?b.type:"";(c==="text"||c==="password")&&a(b).closest("form").length&&d.keyCode===13&&lb("submit",this,arguments)})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var o,mb=function(b){var d=a.nodeName(b,"input")?b.type:"",c=b.value;if(d==="radio"||d==="checkbox")c=b.checked;else if(d==="select-multiple")c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName(b,"select"))c=b.selectedIndex;return c},s=function(d){var c=d.target,e,f;if(!F.test(c.nodeName)||c.readOnly)return;e=a._data(c,"_change_data");f=mb(c);(d.type!=="focusout"||c.type!=="radio")&&a._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f){d.type="change";d.liveFired=b;a.event.trigger(d,arguments[1],c)}};a.event.special.change={filters:{focusout:s,beforedeactivate:s,click:function(d){var b=d.target,c=a.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||a.nodeName(b,"select"))&&s.call(this,d)},keydown:function(b){var c=b.target,d=a.nodeName(c,"input")?c.type:"";(b.keyCode===13&&!a.nodeName(c,"textarea")||b.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")&&s.call(this,b)},beforeactivate:function(c){var b=c.target;a._data(b,"_change_data",mb(b))}},setup:function(){if(this.type==="file")return false;for(var b in o)a.event.add(this,b+".specialChange",o[b]);return F.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return F.test(this.nodeName)}};o=a.event.special.change.filters;o.focus=o.beforeactivate}function lb(f,e,d){var c=a.extend({},d[0]);c.type=f;c.originalEvent={};c.liveFired=b;a.event.handle.call(e,c);c.isDefaultPrevented()&&d[0].preventDefault()}!a.support.focusinBubbles&&a.each({focus:"focusin",blur:"focusout"},function(e,f){var b=0;a.event.special[f]={setup:function(){b++===0&&c.addEventListener(e,d,true)},teardown:function(){--b===0&&c.removeEventListener(e,d,true)}};function d(c){var b=a.event.fix(c);b.type=f;b.originalEvent={};a.event.trigger(b,null,b.target);b.isDefaultPrevented()&&c.preventDefault()}});a.each(["bind","one"],function(d,c){a.fn[c]=function(e,d,f){var g;if(typeof e==="object"){for(var i in e)this[c](i,d,e[i],f);return this}if(arguments.length===2||d===false){f=d;d=b}if(c==="one"){g=function(b){a(this).unbind(b,g);return f.apply(this,arguments)};g.guid=f.guid||a.guid++}else g=f;if(e==="unload"&&c!=="one")this.one(e,d,f);else for(var h=0,j=this.length;h<j;h++)a.event.add(this[h],e,g,d);return this}});a.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault)for(var d in b)this.unbind(d,b[d]);else for(var c=0,f=this.length;c<f;c++)a.event.remove(this[c],b,e);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(c,b){return this.each(function(){a.event.trigger(c,b,this)})},triggerHandler:function(c,b){if(this[0])return a.event.trigger(c,b,this[0],true)},toggle:function(c){var b=arguments,f=c.guid||a.guid++,d=0,e=function(f){var e=(a.data(this,"lastToggle"+c.guid)||0)%d;a.data(this,"lastToggle"+c.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false};e.guid=f;while(d<b.length)b[d++].guid=f;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var H={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(d,c){a.fn[c]=function(e,g,l,h){var d,r=0,m,f,o,k=h||this.selector,j=h?this:a(this.context);if(typeof e==="object"&&!e.preventDefault){for(var p in e)j[c](p,g,e[p],k);return this}if(c==="die"&&!e&&h&&h.charAt(0)==="."){j.unbind(h);return this}if(g===false||a.isFunction(g)){l=g||i;g=b}e=(e||"").split(" ");while((d=e[r++])!=null){m=D.exec(d);f="";if(m){f=m[0];d=d.replace(D,"")}if(d==="hover"){e.push("mouseenter"+f,"mouseleave"+f);continue}o=d;if(H[d]){e.push(H[d]+f);d=d+f}else d=(H[d]||d)+f;if(c==="live")for(var n=0,s=j.length;n<s;n++)a.event.add(j[n],"live."+q(d,k),{data:g,selector:k,handler:l,origType:d,origHandler:l,preType:o});else j.unbind("live."+q(d,k),l)}return this}});function Hb(b){var r,m,g,d,c,i,e,f,k,s,h,l,p,o=[],q=[],n=a._data(this,"events");if(b.liveFired===this||!n||!n.live||b.target.disabled||b.button&&b.type==="click")return;if(b.namespace)l=new RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var j=n.live.slice(0);for(e=0;e<j.length;e++){c=j[e];if(c.origType.replace(D,"")===b.type)q.push(c.selector);else j.splice(e--,1)}d=a(b.target).closest(q,b.currentTarget);for(f=0,k=d.length;f<k;f++){h=d[f];for(e=0;e<j.length;e++){c=j[e];if(h.selector===c.selector&&(!l||l.test(c.namespace))&&!h.elem.disabled){i=h.elem;g=null;if(c.preType==="mouseenter"||c.preType==="mouseleave"){b.type=c.preType;g=a(b.relatedTarget).closest(c.selector)[0];if(g&&a.contains(i,g))g=i}(!g||g!==i)&&o.push({elem:i,handleObj:c,level:h.level})}}}for(f=0,k=o.length;f<k;f++){d=o[f];if(m&&d.level>m)break;b.currentTarget=d.elem;b.data=d.handleObj.data;b.handleObj=d.handleObj;p=d.handleObj.origHandler.apply(d.elem,arguments);if(p===false||b.isPropagationStopped()){m=d.level;if(p===false)r=false;if(b.isImmediatePropagationStopped())break}}return r}function q(a,b){return(a&&a!=="*"?a+".":"")+b.replace(cc,"`").replace(gc,"&")}a.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(c,b){a.fn[b]=function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.bind(b,a,c):this.trigger(b)};if(a.attrFn)a.attrFn[b]=true});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,s=Object.prototype.toString,i=false,o=true,g=/\\/g,k=/\W/;[0,0].sort(function(){o=false;return 0});var d=function(k,b,i,t){i=i||[];b=b||c;var y=b;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!k||typeof k!=="string")return i;var n,l,g,v,j,o,p,h,w=true,r=d.isXML(b),a=[],x=k;do{m.exec("");n=m.exec(x);if(n){x=n[3];a.push(n[1]);if(n[2]){v=n[3];break}}}while(n);if(a.length>1&&u.exec(k))if(a.length===2&&e.relative[a[0]])l=q(a[0]+a[1],b);else{l=e.relative[a[0]]?[b]:d(a.shift(),b);while(a.length){k=a.shift();if(e.relative[k])k+=a.shift();l=q(k,l)}}else{if(!t&&a.length>1&&b.nodeType===9&&!r&&e.match.ID.test(a[0])&&!e.match.ID.test(a[a.length-1])){j=d.find(a.shift(),b,r);b=j.expr?d.filter(j.expr,j.set)[0]:j.set[0]}if(b){j=t?{expr:a.pop(),"set":f(t)}:d.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&b.parentNode?b.parentNode:b,r);l=j.expr?d.filter(j.expr,j.set):j.set;if(a.length>0)g=f(l);else w=false;while(a.length){o=a.pop();p=o;if(!e.relative[o])o="";else p=a.pop();if(p==null)p=b;e.relative[o](g,p,r)}}else g=a=[]}if(!g)g=l;!g&&d.error(o||k);if(s.call(g)==="[object Array]")if(!w)i.push.apply(i,g);else if(b&&b.nodeType===1)for(h=0;g[h]!=null;h++)g[h]&&(g[h]===true||g[h].nodeType===1&&d.contains(b,g[h]))&&i.push(l[h]);else for(h=0;g[h]!=null;h++)g[h]&&g[h].nodeType===1&&i.push(l[h]);else f(g,i);if(v){d(v,y,i,t);d.uniqueSort(i)}return i};d.uniqueSort=function(a){if(j){i=o;a.sort(j);if(i)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};d.matches=function(a,b){return d(a,null,null,b)};d.matchesSelector=function(b,a){return d(a,null,null,[b]).length>0};d.find=function(b,d,j){var c;if(!b)return[];for(var h=0,k=e.order.length;h<k;h++){var a,f=e.order[h];if(a=e.leftMatch[f].exec(b)){var i=a[1];a.splice(1,1);if(i.substr(i.length-1)!=="\\"){a[1]=(a[1]||"").replace(g,"");c=e.find[f](a,d,j);if(c!=null){b=b.replace(e.match[f],"");break}}}}if(!c)c=typeof d.getElementsByTagName!=="undefined"?d.getElementsByTagName("*"):[];return{"set":c,expr:b}};d.filter=function(c,k,n,q){var a,g,r=c,h=[],f=k,s=k&&k[0]&&d.isXML(k[0]);while(c&&k.length){for(var j in e.filter)if((a=e.leftMatch[j].exec(c))!=null&&a[2]){var i,l,t=e.filter[j],o=a[1];g=false;a.splice(1,1);if(o.substr(o.length-1)==="\\")continue;if(f===h)h=[];if(e.preFilter[j]){a=e.preFilter[j](a,f,n,h,q,s);if(!a)g=i=true;else if(a===true)continue}if(a)for(var m=0;(l=f[m])!=null;m++)if(l){i=t(l,a,m,f);var p=q^!!i;if(n&&i!=null)if(p)g=true;else f[m]=false;else if(p){h.push(l);g=true}}if(i!==b){if(!n)f=h;c=c.replace(e.match[j],"");if(!g)return[];break}}if(c===r)if(g==null)d.error(c);else break;r=c}return f};d.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var e=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(c,b){var g=typeof b==="string",h=g&&!k.test(b),f=g&&!h;if(h)b=b.toLowerCase();for(var e=0,i=c.length,a;e<i;e++)if(a=c[e]){while((a=a.previousSibling)&&a.nodeType!==1);c[e]=f||a&&a.nodeName.toLowerCase()===b?a||false:a===b}f&&d.filter(b,c,true)},">":function(e,c){var b,f=typeof c==="string",a=0,h=e.length;if(f&&!k.test(c)){c=c.toLowerCase();for(;a<h;a++){b=e[a];if(b){var g=b.parentNode;e[a]=g.nodeName.toLowerCase()===c?g:false}}}else{for(;a<h;a++){b=e[a];if(b)e[a]=f?b.parentNode:b.parentNode===c}f&&d.filter(c,e,true)}},"":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("parentNode",a,e,d,b,f)},"~":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("previousSibling",a,e,d,b,f)}},find:{ID:function(d,b,c){if(typeof b.getElementById!=="undefined"&&!c){var a=b.getElementById(d[1]);return a&&a.parentNode?[a]:[]}},NAME:function(e,d){if(typeof d.getElementsByName!=="undefined"){for(var c=[],b=d.getElementsByName(e[1]),a=0,f=b.length;a<f;a++)b[a].getAttribute("name")===e[1]&&c.push(b[a]);return c.length===0?null:c}},TAG:function(b,a){if(typeof a.getElementsByTagName!=="undefined")return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,d,e,f,i,h){b=" "+b[1].replace(g,"")+" ";if(h)return b;for(var c=0,a;(a=d[c])!=null;c++)if(a)if(i^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(b)>=0))!e&&f.push(a);else if(e)d[c]=false;return false},ID:function(a){return a[1].replace(g,"")},TAG:function(a){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){!a[2]&&d.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]&&d.error(a[0]);a[0]=n++;return a},ATTR:function(a,d,f,h,i,c){var b=a[1]=a[1].replace(g,"");if(!c&&e.attrMap[b])a[1]=e.attrMap[b];a[4]=(a[4]||a[5]||"").replace(g,"");if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,f,g){if(a[1]==="not")if((m.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=d(a[3],null,null,b);else{var h=d.filter(a[3],b,c,true^g);!c&&f.push.apply(f,h);return false}else if(e.match.POS.test(a[0])||e.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){if(a.parentNode)a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(b,c,a){return!!d(a[3],b).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(b,a){return a===0},last:function(d,b,c,a){return b===a.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,b,a){return b<a[3]-0},gt:function(c,b,a){return b>a[3]-0},nth:function(c,b,a){return a[3]-0===b},eq:function(c,b,a){return a[3]-0===b}},filter:{PSEUDO:function(a,b,j,i){var c=b[1],g=e.filters[c];if(g)return g(a,j,b,i);else if(c==="contains")return(a.textContent||a.innerText||d.getText([a])||"").indexOf(b[3])>=0;else if(c==="not"){for(var h=b[3],f=0,k=h.length;f<k;f++)if(h[f]===a)return false;return true}else d.error(c)},CHILD:function(b,e){var i=e[1],a=b;switch(i){case"only":case"first":while(a=a.previousSibling)if(a.nodeType===1)return false;if(i==="first")return true;a=b;case"last":while(a=a.nextSibling)if(a.nodeType===1)return false;return true;case"nth":var d=e[2],h=e[3];if(d===1&&h===0)return true;var g=e[0],c=b.parentNode;if(c&&(c.sizcache!==g||!b.nodeIndex)){var j=0;for(a=c.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++j;c.sizcache=g}var f=b.nodeIndex-h;return d===0?f===0:f%d===0&&f/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(b,a){return a==="*"&&b.nodeType===1||b.nodeName.toLowerCase()===a},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(f,h){var d=h[1],g=e.attrHandle[d]?e.attrHandle[d](f):f[d]!=null?f[d]:f.getAttribute(d),b=g+"",c=h[2],a=h[4];return g==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:!a?b&&g!==false:c==="!="?b!==a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false},POS:function(d,b,g,c){var f=b[2],a=e.setFilters[f];if(a)return a(d,g,b,c)}}},u=e.match.POS,t=function(b,a){return"\\"+(+a+1)};for(var l in e.match){e.match[l]=new RegExp(e.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source);e.leftMatch[l]=new RegExp(/(^(?:.|\r|\n)*?)/.source+e.match[l].source.replace(/\\(\d+)/g,t))}var f=function(b,a){b=Array.prototype.slice.call(b,0);if(a){a.push.apply(a,b);return a}return b};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(v){f=function(a,d){var b=0,c=d||[];if(s.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var e=a.length;b<e;b++)c.push(a[b]);else for(;a[b];b++)c.push(a[b]);return c}}var j,h;if(c.documentElement.compareDocumentPosition)j=function(a,b){if(a===b){i=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1};else{j=function(c,d){if(c===d){i=true;return 0}else if(c.sourceIndex&&d.sourceIndex)return c.sourceIndex-d.sourceIndex;var k,l,e=[],f=[],g=c.parentNode,j=d.parentNode,b=g;if(g===j)return h(c,d);else if(!g)return-1;else if(!j)return 1;while(b){e.unshift(b);b=b.parentNode}b=j;while(b){f.unshift(b);b=b.parentNode}k=e.length;l=f.length;for(var a=0;a<k&&a<l;a++)if(e[a]!==f[a])return h(e[a],f[a]);return a===k?h(c,f[a],-1):h(e[a],d,1)};h=function(b,c,d){if(b===c)return d;var a=b.nextSibling;while(a){if(a===c)return-1;a=a.nextSibling}return 1}}d.getText=function(e){for(var b="",a,c=0;e[c];c++){a=e[c];if(a.nodeType===3||a.nodeType===4)b+=a.nodeValue;else if(a.nodeType!==8)b+=d.getText(a.childNodes)}return b};(function(){var a=c.createElement("div"),f="script"+ +new Date,d=c.documentElement;a.innerHTML="<a name='"+f+"'/>";d.insertBefore(a,d.firstChild);if(c.getElementById(f)){e.find.ID=function(c,d,e){if(typeof d.getElementById!=="undefined"&&!e){var a=d.getElementById(c[1]);return a?a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]}};e.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}d.removeChild(a);d=a=null})();(function(){var a=c.createElement("div");a.appendChild(c.createComment(""));if(a.getElementsByTagName("*").length>0)e.find.TAG=function(c,e){var a=e.getElementsByTagName(c[1]);if(c[1]==="*"){for(var d=[],b=0;a[b];b++)a[b].nodeType===1&&d.push(a[b]);a=d}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")e.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();c.querySelectorAll&&(function(){var b=d,a=c.createElement("div"),h="__sizzle__";a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)return;d=function(j,a,g,p){a=a||c;if(!p&&!d.isXML(a)){var i=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(j);if(i&&(a.nodeType===1||a.nodeType===9))if(i[1])return f(a.getElementsByTagName(j),g);else if(i[2]&&e.find.CLASS&&a.getElementsByClassName)return f(a.getElementsByClassName(i[2]),g);if(a.nodeType===9){if(j==="body"&&a.body)return f([a.body],g);else if(i&&i[3]){var k=a.getElementById(i[3]);if(k&&k.parentNode){if(k.id===i[3])return f([k],g)}else return f([],g)}try{return f(a.querySelectorAll(j),g)}catch(s){}}else if(a.nodeType===1&&a.nodeName.toLowerCase()!=="object"){var q=a,m=a.getAttribute("id"),l=m||h,o=a.parentNode,n=/^\s*[+~]/.test(j);if(!m)a.setAttribute("id",l);else l=l.replace(/'/g,"\\$&");if(n&&o)a=a.parentNode;try{if(!n||o)return f(a.querySelectorAll("[id='"+l+"'] "+j),g)}catch(r){}finally{!m&&q.removeAttribute("id")}}}return b(j,a,g,p)};for(var g in b)d[g]=b[g];a=null})();(function(){var b=c.documentElement,a=b.matchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.msMatchesSelector;if(a){var g=!a.call(c.createElement("div"),"div"),f=false;try{a.call(c.documentElement,"[test!='']:sizzle")}catch(h){f=true}d.matchesSelector=function(c,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(c))try{if(f||!e.match.PSEUDO.test(b)&&!/!=/.test(b)){var h=a.call(c,b);if(h||!g||c.document&&c.document.nodeType!==11)return h}}catch(i){}return d(b,null,null,[c]).length>0}}})();(function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;e.order.splice(1,0,"CLASS");e.find.CLASS=function(c,a,b){if(typeof a.getElementsByClassName!=="undefined"&&!b)return a.getElementsByClassName(c[1])};a=null})();function p(f,h,e,c,j,g){for(var b=0,i=c.length;b<i;b++){var a=c[b];if(a){var d=false;a=a[f];while(a){if(a.sizcache===e){d=c[a.sizset];break}if(a.nodeType===1&&!g){a.sizcache=e;a.sizset=b}if(a.nodeName.toLowerCase()===h){d=a;break}a=a[f]}c[b]=d}}}function r(h,f,g,c,k,i){for(var b=0,j=c.length;b<j;b++){var a=c[b];if(a){var e=false;a=a[h];while(a){if(a.sizcache===g){e=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=g;a.sizset=b}if(typeof f!=="string"){if(a===f){e=true;break}}else if(d.filter(f,[a]).length>0){e=a;break}}a=a[h]}c[b]=e}}}if(c.documentElement.contains)d.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)};else if(c.documentElement.compareDocumentPosition)d.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)};else d.contains=function(){return false};d.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var q=function(a,b){var h,f=[],g="",i=b.nodeType?[b]:b;while(h=e.match.PSEUDO.exec(a)){g+=h[0];a=a.replace(e.match.PSEUDO,"")}a=e.relative[a]?a+"*":a;for(var c=0,j=i.length;c<j;c++)d(a,i[c],f);return d.filter(g,f)};a.find=d;a.expr=d.selectors;a.expr[":"]=a.expr.filters;a.unique=d.uniqueSort;a.text=d.getText;a.isXMLDoc=d.isXML;a.contains=d.contains})();var mc=/Until$/,Fb=/^(?:parents|prevUntil|prevAll)/,Cb=/,/,Ub=/^.[^:#\[\.,]*$/,rc=Array.prototype.slice,wb=a.expr.match.POS,yb={children:true,contents:true,next:true,prev:true};a.fn.extend({find:function(e){var i=this,b,f;if(typeof e!=="string")return a(e).filter(function(){for(b=0,f=i.length;b<f;b++)if(a.contains(i[b],this))return true});var c=this.pushStack("","find",e),h,d,g;for(b=0,f=this.length;b<f;b++){h=c.length;a.find(e,this[b],c);if(b>0)for(d=h;d<c.length;d++)for(g=0;g<h;g++)if(c[g]===c[d]){c.splice(d--,1);break}}return c},has:function(c){var b=a(c);return this.filter(function(){for(var c=0,d=b.length;c<d;c++)if(a.contains(this,b[c]))return true})},not:function(a){return this.pushStack(qb(this,a,false),"not",a)},filter:function(a){return this.pushStack(qb(this,a,true),"filter",a)},is:function(b){return!!b&&(typeof b==="string"?a.filter(b,this).length>0:this.filter(b).length>0)},closest:function(c,g){var e=[],f,j,b=this[0];if(a.isArray(c)){var i,d,h={},k=1;if(b&&c.length){for(f=0,j=c.length;f<j;f++){d=c[f];if(!h[d])h[d]=wb.test(d)?a(d,g||this.context):d}while(b&&b.ownerDocument&&b!==g){for(d in h){i=h[d];(i.jquery?i.index(b)>-1:a(b).is(i))&&e.push({selector:d,elem:b,level:k})}b=b.parentNode;k++}}return e}var l=wb.test(c)||typeof c!=="string"?a(c,g||this.context):0;for(f=0,j=this.length;f<j;f++){b=this[f];while(b)if(l?l.index(b)>-1:a.find.matchesSelector(b,c)){e.push(b);break}else{b=b.parentNode;if(!b||!b.ownerDocument||b===g||b.nodeType===11)break}}e=e.length>1?a.unique(e):e;return this.pushStack(e,"closest",c)},index:function(b){return!b?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof b==="string"?a.inArray(this[0],a(b)):a.inArray(b.jquery?b[0]:b,this)},add:function(b,e){var d=typeof b==="string"?a(b,e):a.makeArray(b&&b.nodeType?[b]:b),c=a.merge(this.get(),d);return this.pushStack(S(d[0])||S(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}});function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}a.each({parent:function(b){var a=b.parentNode;return a&&a.nodeType!==11?a:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(c,d,b){return a.dir(c,"parentNode",b)},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(c,d,b){return a.dir(c,"nextSibling",b)},prevUntil:function(c,d,b){return a.dir(c,"previousSibling",b)},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(f,e){var d=a.map(this,c,f),g=rc.call(arguments);if(!mc.test(b))e=f;if(e&&typeof e==="string")d=a.filter(e,d);d=this.length>1&&!yb[b]?a.unique(d):d;if((this.length>1||Cb.test(e))&&Fb.test(b))d=d.reverse();return this.pushStack(d,b,g.join(","))}});a.extend({filter:function(c,b,d){if(d)c=":not("+c+")";return b.length===1?a.find.matchesSelector(b[0],c)?[b[0]]:[]:a.find.matches(c,b)},dir:function(g,f,e){var d=[],c=g[f];while(c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!a(c).is(e))){c.nodeType===1&&d.push(c);c=c[f]}return d},nth:function(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});function qb(c,b,d){b=b||0;if(a.isFunction(b))return a.grep(c,function(a,e){var c=!!b.call(a,e,a);return c===d});else if(b.nodeType)return a.grep(c,function(a){return a===b===d});else if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Ub.test(b))return a.filter(b,e,!d);else b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})}var Db=/ jQuery\d+="(?:\d+|null)"/g,x=/^\s+/,bb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,jb=/<([\w:]+)/,lc=/<tbody/i,pc=/<|&#?\w+;/,ib=/<(?:script|object|embed|option|style)/i,hb=/checked\s*(?:[^=]|=\s*.checked.)/i,Ib=/\/(java|ecma)script/i,Eb=/^\s*<!(?:\[CDATA\[|\-\-)/,e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;if(!a.support.htmlSerialize)e._default=[1,"div<div>","</div>"];a.fn.extend({text:function(d){return a.isFunction(d)?this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))}):typeof d!=="object"&&d!==b?this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(d)):a.text(this)},wrapAll:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapAll(b.call(this,c))});if(this[0]){var c=a(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return a.isFunction(b)?this.each(function(c){a(this).wrapInner(b.call(this,c))}):this.each(function(){var d=a(this),c=d.contents();if(c.length)c.wrapAll(b);else d.append(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){!a.nodeName(this,"body")&&a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var b=a(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},remove:function(c,e){for(var d=0,b;(b=this[d])!=null;d++)if(!c||a.filter(c,[b]).length){if(!e&&b.nodeType===1){a.cleanData(b.getElementsByTagName("*"));a.cleanData([b])}b.parentNode&&b.parentNode.removeChild(b)}return this},empty:function(){for(var c=0,b;(b=this[c])!=null;c++){b.nodeType===1&&a.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(b,c){b=b==null?false:b;c=c==null?b:c;return this.map(function(){return a.clone(this,b,c)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Db,""):null;else if(typeof c==="string"&&!ib.test(c)&&(a.support.leadingWhitespace||!x.test(c))&&!e[(jb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(bb,"<$1></$2>");try{for(var d=0,f=this.length;d<f;d++)if(this[d].nodeType===1){a.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=c}}catch(g){this.empty().append(c)}}else if(a.isFunction(c))this.each(function(d){var b=a(this);b.html(c.call(this,d,b.html()))});else this.empty().append(c);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(a.isFunction(b))return this.each(function(e){var c=a(this),d=c.html();c.replaceWith(b.call(this,e,d))});if(typeof b!=="string")b=a(b).detach();return this.each(function(){var c=this.nextSibling,d=this.parentNode;a(this).remove();if(c)a(c).before(b);else a(d).append(b)})}else return this.length?this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b):this},detach:function(a){return this.remove(a,true)},domManip:function(h,d,k){var j,g,c,f,e=h[0],l=[];if(!a.support.checkClone&&arguments.length===3&&typeof e==="string"&&hb.test(e))return this.each(function(){a(this).domManip(h,d,k,true)});if(a.isFunction(e))return this.each(function(f){var c=a(this);h[0]=e.call(this,f,d?c.html():b);c.domManip(h,d,k)});if(this[0]){f=e&&e.parentNode;if(a.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length)j={fragment:f};else j=a.buildFragment(h,this,l);c=j.fragment;if(c.childNodes.length===1)g=c=c.firstChild;else g=c.firstChild;if(g){d=d&&a.nodeName(g,"tr");for(var i=0,m=this.length,n=m-1;i<m;i++)k.call(d?uc(this[i],g):this[i],j.cacheable||m>1&&i<n?a.clone(c,true,true):c)}l.length&&a.each(l,Kb)}return this}});function uc(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function Q(i,g){if(g.nodeType!==1||!a.hasData(i))return;var h=a.expando,e=a.data(i),f=a.data(g,e);if(e=e[h]){var b=e.events;f=f[h]=a.extend({},e);if(b){delete f.handle;f.events={};for(var c in b)for(var d=0,j=b[c].length;d<j;d++)a.event.add(g,c+(b[c][d].namespace?".":"")+b[c][d].namespace,b[c][d],b[c][d].data)}}}function M(c,b){var d;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(c);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=c.outerHTML;else if(d==="input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)b.defaultChecked=b.checked=c.checked;if(b.value!==c.value)b.value=c.value}else if(d==="option")b.selected=c.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=c.defaultValue;b.removeAttribute(a.expando)}a.buildFragment=function(b,g,i){var d,h,f,e;if(g&&g[0])e=g[0].ownerDocument||g[0];if(!e.createDocumentFragment)e=c;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&e===c&&b[0].charAt(0)==="<"&&!ib.test(b[0])&&(a.support.checkClone||!hb.test(b[0]))){h=true;f=a.fragments[b[0]];if(f&&f!==1)d=f}if(!d){d=e.createDocumentFragment();a.clean(b,e,d,i)}if(h)a.fragments[b[0]]=f?d:1;return{fragment:d,cacheable:h}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,b){a.fn[c]=function(i){var g=[],d=a(i),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{for(var e=0,j=d.length;e<j;e++){var h=(e>0?this.clone(true):this).get();a(d[e])[b](h);g=g.concat(h)}return this.pushStack(g,c,d.selector)}}});function u(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function O(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function Z(b){if(a.nodeName(b,"input"))O(b);else"getElementsByTagName"in b&&a.grep(b.getElementsByTagName("input"),O)}a.extend({clone:function(c,h,g){var f=c.cloneNode(true),d,e,b;if((!a.support.noCloneEvent||!a.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!a.isXMLDoc(c)){M(c,f);d=u(c);e=u(f);for(b=0;d[b];++b)e[b]&&M(d[b],e[b])}if(h){Q(c,f);if(g){d=u(c);e=u(f);for(b=0;d[b];++b)Q(d[b],e[b])}}d=e=null;return f},clean:function(t,h,m,o){var l;h=h||c;if(typeof h.createElement==="undefined")h=h.ownerDocument||h[0]&&h[0].ownerDocument||c;for(var d=[],g,f=0,b;(b=t[f])!=null;f++){if(typeof b==="number")b+="";if(!b)continue;if(typeof b==="string")if(!pc.test(b))b=h.createTextNode(b);else{b=b.replace(bb,"<$1></$2>");var q=(jb.exec(b)||["",""])[1].toLowerCase(),k=e[q]||e._default,s=k[0],i=h.createElement("div");i.innerHTML=k[1]+b+k[2];while(s--)i=i.lastChild;if(!a.support.tbody){var n=lc.test(b),j=q==="table"&&!n?i.firstChild&&i.firstChild.childNodes:k[1]==="<table>"&&!n?i.childNodes:[];for(g=j.length-1;g>=0;--g)a.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!a.support.leadingWhitespace&&x.test(b)&&i.insertBefore(h.createTextNode(x.exec(b)[0]),i.firstChild);b=i.childNodes}var p;if(!a.support.appendChecked)if(b[0]&&typeof(p=b.length)==="number")for(g=0;g<p;g++)Z(b[g]);else Z(b);if(b.nodeType)d.push(b);else d=a.merge(d,b)}if(m){l=function(a){return!a.type||Ib.test(a.type)};for(f=0;d[f];f++)if(o&&a.nodeName(d[f],"script")&&(!d[f].type||d[f].type.toLowerCase()==="text/javascript"))o.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]);else{if(d[f].nodeType===1){var r=a.grep(d[f].getElementsByTagName("script"),l);d.splice.apply(d,[f+1,0].concat(r))}m.appendChild(d[f])}}return d},cleanData:function(k){for(var c,d,e=a.cache,i=a.expando,j=a.event.special,h=a.support.deleteExpando,g=0,b;(b=k[g])!=null;g++){if(b.nodeName&&a.noData[b.nodeName.toLowerCase()])continue;d=b[a.expando];if(d){c=e[d]&&e[d][i];if(c&&c.events){for(var f in c.events)if(j[f])a.event.remove(b,f);else a.removeEvent(b,f,c.handle);if(c.handle)c.handle.elem=null}if(h)delete b[a.expando];else b.removeAttribute&&b.removeAttribute(a.expando);delete e[d]}}}});function Kb(c,b){if(b.src)a.ajax({url:b.src,async:false,dataType:"script"});else a.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Eb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}var I=/alpha\([^)]*\)/i,Zb=/opacity=([^)]*)/,nc=/([A-Z]|^ms)/g,ob=/^-?\d+(?:px)?$/i,tc=/^-?\d/,dc=/^([\-+])=([\-+.\de]+)/,ac={position:"absolute",visibility:"hidden",display:"block"},Sb=["Left","Right"],Pb=["Top","Bottom"],m,P,V;a.fn.css=function(d,c){return arguments.length===2&&c===b?this:a.access(this,d,c,true,function(d,e,c){return c!==b?a.style(d,e,c):a.css(d,e)})};a.extend({cssHooks:{opacity:{"get":function(a,c){if(c){var b=m(a,"opacity","opacity");return b===""?"1":b}else return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(d,f,c,k){if(!d||d.nodeType===3||d.nodeType===8||!d.style)return;var h,g,i=a.camelCase(f),j=d.style,e=a.cssHooks[i];f=a.cssProps[i]||i;if(c!==b){g=typeof c;if(g==="string"&&(h=dc.exec(c))){c=+(h[1]+1)*+h[2]+parseFloat(a.css(d,f));g="number"}if(c==null||g==="number"&&isNaN(c))return;if(g==="number"&&!a.cssNumber[i])c+="px";if(!e||!("set"in e)||(c=e.set(d,c))!==b)try{j[f]=c}catch(l){}}else return e&&"get"in e&&(h=e.get(d,false,k))!==b?h:j[f]},css:function(e,c,g){var f,d;c=a.camelCase(c);d=a.cssHooks[c];c=a.cssProps[c]||c;if(c==="cssFloat")c="float";return d&&"get"in d&&(f=d.get(e,true,g))!==b?f:m?m(e,c):void 0},swap:function(b,c,e){var d={};for(var a in c){d[a]=b.style[a];b.style[a]=c[a]}e.call(b);for(a in c)b.style[a]=d[a]}});a.curCSS=a.css;a.each(["height","width"],function(c,b){a.cssHooks[b]={"get":function(c,f,d){var e;if(f){if(c.offsetWidth!==0)return rb(c,b,d);else a.swap(c,ac,function(){e=rb(c,b,d)});return e}},"set":function(b,a){if(ob.test(a)){a=parseFloat(a);if(a>=0)return a+"px"}else return a}}});if(!a.support.opacity)a.cssHooks.opacity={"get":function(a,b){return Zb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},"set":function(g,e){var d=g.style,b=g.currentStyle,f=a.isNaN(e)?"":"alpha(opacity="+e*100+")",c=b&&b.filter||d.filter||"";d.zoom=1;if(e>=1&&a.trim(c.replace(I,""))===""){d.removeAttribute("filter");if(b&&!b.filter)return}d.filter=I.test(c)?c.replace(I,f):c+" "+f}};a(function(){if(!a.support.reliableMarginRight)a.cssHooks.marginRight={"get":function(b,d){var c;a.swap(b,{display:"inline-block"},function(){if(d)c=m(b,"margin-right","marginRight");else c=b.style.marginRight});return c}}});if(c.defaultView&&c.defaultView.getComputedStyle)P=function(c,d){var e,g,f;d=d.replace(nc,"-$1").toLowerCase();if(!(g=c.ownerDocument.defaultView))return b;if(f=g.getComputedStyle(c,null)){e=f.getPropertyValue(d);if(e===""&&!a.contains(c.ownerDocument.documentElement,c))e=a.style(c,d)}return e};if(c.documentElement.currentStyle)V=function(a,e){var f,b=a.currentStyle&&a.currentStyle[e],d=a.runtimeStyle&&a.runtimeStyle[e],c=a.style;if(!ob.test(b)&&tc.test(b)){f=c.left;if(d)a.runtimeStyle.left=a.currentStyle.left;c.left=e==="fontSize"?"1em":b||0;b=c.pixelLeft+"px";c.left=f;if(d)a.runtimeStyle.left=d}return b===""?"auto":b};m=P||V;function rb(c,e,d){var b=e==="width"?c.offsetWidth:c.offsetHeight,f=e==="width"?Sb:Pb;if(b>0){d!=="border"&&a.each(f,function(){if(!d)b-=parseFloat(a.css(c,"padding"+this))||0;if(d==="margin")b+=parseFloat(a.css(c,d+this))||0;else b-=parseFloat(a.css(c,"border"+this+"Width"))||0});return b+"px"}b=m(c,e,e);if(b<0||b==null)b=c.style[e]||0;b=parseFloat(b)||0;d&&a.each(f,function(){b+=parseFloat(a.css(c,"padding"+this))||0;if(d!=="padding")b+=parseFloat(a.css(c,"border"+this+"Width"))||0;if(d==="margin")b+=parseFloat(a.css(c,d+this))||0});return b+"px"}if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(b){var d=b.offsetWidth,c=b.offsetHeight;return d===0&&c===0||!a.support.reliableHiddenOffsets&&(b.style.display||a.css(b,"display"))==="none"};a.expr.filters.visible=function(b){return!a.expr.filters.hidden(b)}}var wc=/%20/g,Wb=/\[\]$/,sb=/\r?\n/g,oc=/#.*$/,Yb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,jc=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Bb=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ob=/^(?:GET|HEAD)$/,Rb=/^\/\//,pb=/\?/,fc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ab=/^(?:select|textarea)/i,X=/\s+/,xc=/([?&])_=[^&]*/,vb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ub=a.fn.load,E={},ab={},g,h,cb=["*/"]+["*"];try{g=Vb.href}catch(yc){g=c.createElement("a");g.href="";g=g.href}h=vb.exec(g.toLowerCase())||[];function K(b){return function(d,f){if(typeof d!=="string"){f=d;d="*"}if(a.isFunction(f))for(var h=d.toLowerCase().split(X),g=0,j=h.length,c,i,e;g<j;g++){c=h[g];e=/^\+/.test(c);if(e)c=c.substr(1)||"*";i=b[c]=b[c]||[];i[e?"unshift":"push"](f)}}}function p(e,d,g,i,f,c){f=f||d.dataTypes[0];c=c||{};c[f]=true;for(var j=e[f],k=0,l=j?j.length:0,h=e===E,a;k<l&&(h||!a);k++){a=j[k](d,g,i);if(typeof a==="string")if(!h||c[a])a=b;else{d.dataTypes.unshift(a);a=p(e,d,g,i,a,c)}}if((h||!a)&&!c["*"])a=p(e,d,g,i,"*",c);return a}function Y(f,e){var c,d,g=a.ajaxSettings.flatOptions||{};for(c in e)if(e[c]!==b)(g[c]?f:d||(d={}))[c]=e[c];d&&a.extend(true,f,d)}a.fn.extend({load:function(d,c,e){if(typeof d!=="string"&&ub)return ub.apply(this,arguments);else if(!this.length)return this;var f=d.indexOf(" ");if(f>=0){var g=d.slice(f,d.length);d=d.slice(0,f)}var i="GET";if(c)if(a.isFunction(c)){e=c;c=b}else if(typeof c==="object"){c=a.param(c,a.ajaxSettings.traditional);i="POST"}var h=this;a.ajax({url:d,type:i,dataType:"html",data:c,complete:function(c,d,b){b=c.responseText;if(c.isResolved()){c.done(function(a){b=a});h.html(g?a("<div>").append(b.replace(fc,"")).find(g):b)}e&&h.each(e,[b,d,c])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ab.test(this.nodeName)||jc.test(this.type))}).map(function(d,c){var b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a.replace(sb,"\r\n")}}):{name:c.name,value:b.replace(sb,"\r\n")}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});a.each(["get","post"],function(d,c){a[c]=function(g,d,e,f){if(a.isFunction(d)){f=f||e;e=d;d=b}return a.ajax({type:c,url:g,data:d,success:e,dataType:f})}});a.extend({getScript:function(d,c){return a.get(d,b,c,"script")},getJSON:function(d,c,b){return a.get(d,c,b,"json")},ajaxSetup:function(b,c){if(c)Y(b,a.ajaxSettings);else{c=b;b=a.ajaxSettings}Y(b,c);return b},ajaxSettings:{url:g,isLocal:Bb.test(h[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":d.String,"text html":true,"text json":a.parseJSON,"text xml":a.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:K(E),ajaxTransport:K(ab),ajax:function(r,i){if(typeof r==="object"){i=r;r=b}i=i||{};var c=a.ajaxSetup({},i),g=c.context||c,t=g!==c&&(g.nodeType||g instanceof a)?a(g):a.event,v=a.Deferred(),x=a._Deferred(),o=c.statusCode||{},f,y={},w={},s,n,j,u,k,e=0,m,l,d={readyState:0,setRequestHeader:function(a,c){if(!e){var b=a.toLowerCase();a=w[b]=w[b]||a;y[a]=c}return this},getAllResponseHeaders:function(){return e===2?s:null},getResponseHeader:function(c){var a;if(e===2){if(!n){n={};while(a=Yb.exec(s))n[a[1].toLowerCase()]=a[2]}a=n[c.toLowerCase()]}return a===b?null:a},overrideMimeType:function(a){if(!e)c.mimeType=a;return this},abort:function(a){a=a||"abort";j&&j.abort(a);q(0,a);return this}};function q(i,p,r,z){if(e===2)return;e=2;u&&clearTimeout(u);j=b;s=z||"";d.readyState=i>0?4:0;var k,n,l,h=p,y=r?xb(c,d,r):b,q,w;if(i>=200&&i<300||i===304){if(c.ifModified){if(q=d.getResponseHeader("Last-Modified"))a.lastModified[f]=q;if(w=d.getResponseHeader("Etag"))a.etag[f]=w}if(i===304){h="notmodified";k=true}else try{n=Gb(c,y);h="success";k=true}catch(A){h="parsererror";l=A}}else{l=h;if(!h||i){h="error";if(i<0)i=0}}d.status=i;d.statusText=""+(p||h);if(k)v.resolveWith(g,[n,h,d]);else v.rejectWith(g,[d,h,l]);d.statusCode(o);o=b;m&&t.trigger("ajax"+(k?"Success":"Error"),[d,c,k?n:l]);x.resolveWith(g,[d,h]);if(m){t.trigger("ajaxComplete",[d,c]);!--a.active&&a.event.trigger("ajaxStop")}}v.promise(d);d.success=d.done;d.error=d.fail;d.complete=x.done;d.statusCode=function(b){if(b){var a;if(e<2)for(a in b)o[a]=[o[a],b[a]];else{a=b[d.status];d.then(a,a)}}return this};c.url=((r||c.url)+"").replace(oc,"").replace(Rb,h[1]+"//");c.dataTypes=a.trim(c.dataType||"*").toLowerCase().split(X);if(c.crossDomain==null){k=vb.exec(c.url.toLowerCase());c.crossDomain=!!(k&&(k[1]!=h[1]||k[2]!=h[2]||(k[3]||(k[1]==="http:"?80:443))!=(h[3]||(h[1]==="http:"?80:443))))}if(c.data&&c.processData&&typeof c.data!=="string")c.data=a.param(c.data,c.traditional);p(E,c,i,d);if(e===2)return false;m=c.global;c.type=c.type.toUpperCase();c.hasContent=!Ob.test(c.type);m&&a.active++===0&&a.event.trigger("ajaxStart");if(!c.hasContent){if(c.data){c.url+=(pb.test(c.url)?"&":"?")+c.data;delete c.data}f=c.url;if(c.cache===false){var A=a.now(),z=c.url.replace(xc,"$1_="+A);c.url=z+(z===c.url?(pb.test(c.url)?"&":"?")+"_="+A:"")}}(c.data&&c.hasContent&&c.contentType!==false||i.contentType)&&d.setRequestHeader("Content-Type",c.contentType);if(c.ifModified){f=f||c.url;a.lastModified[f]&&d.setRequestHeader("If-Modified-Since",a.lastModified[f]);a.etag[f]&&d.setRequestHeader("If-None-Match",a.etag[f])}d.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+cb+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)d.setRequestHeader(l,c.headers[l]);if(c.beforeSend&&(c.beforeSend.call(g,d,c)===false||e===2)){d.abort();return false}for(l in{success:1,error:1,complete:1})d[l](c[l]);j=p(ab,c,i,d);if(!j)q(-1,"No Transport");else{d.readyState=1;m&&t.trigger("ajaxSend",[d,c]);if(c.async&&c.timeout>0)u=setTimeout(function(){d.abort("timeout")},c.timeout);try{e=1;j.send(y,q)}catch(B){if(e<2)q(-1,B);else a.error(B)}}return d},param:function(c,d){var e=[],g=function(c,b){b=a.isFunction(b)?b():b;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)};if(d===b)d=a.ajaxSettings.traditional;if(a.isArray(c)||c.jquery&&!a.isPlainObject(c))a.each(c,function(){g(this.name,this.value)});else for(var f in c)B(f,c[f],d,g);return e.join("&").replace(wc,"+")}});function B(c,b,d,e){if(a.isArray(b))a.each(b,function(f,b){if(d||Wb.test(c))e(c,b);else B(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)B(c+"["+f+"]",b[f],d,e);else e(c,b)}a.extend({active:0,lastModified:{},etag:{}});function xb(f,k,e){var i=f.contents,c=f.dataTypes,j=f.responseFields,g,a,d,h;for(a in j)if(a in e)k[j[a]]=e[a];while(c[0]==="*"){c.shift();if(g===b)g=f.mimeType||k.getResponseHeader("content-type")}if(g)for(a in i)if(i[a]&&i[a].test(g)){c.unshift(a);break}if(c[0]in e)d=c[0];else{for(a in e){if(!c[0]||f.converters[a+" "+c[0]]){d=a;break}if(!h)h=a}d=d||h}if(d){d!==c[0]&&c.unshift(d);return e[d]}}function Gb(j,h){if(j.dataFilter)h=j.dataFilter(h,j.dataType);for(var o=j.dataTypes,g={},k,p=o.length,l,c=o[0],i,n,d,e,f,m=1;m<p;m++){if(m===1)for(k in j.converters)if(typeof k==="string")g[k.toLowerCase()]=j.converters[k];i=c;c=o[m];if(c==="*")c=i;else if(i!=="*"&&i!==c){n=i+" "+c;d=g[n]||g["* "+c];if(!d){f=b;for(e in g){l=e.split(" ");if(l[0]===i||l[0]==="*"){f=g[l[1]+" "+c];if(f){e=g[e];if(e===true)d=f;else if(f===true)d=e;break}}}}!(d||f)&&a.error("No conversion from "+n.replace(" "," to "));if(d!==true)h=d?d(h):f(e(h))}}return h}var vc=a.now(),w=/(\=)\?(&|$)|\?\?/i;a.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return a.expando+"_"+vc++}});a.ajaxPrefilter("json jsonp",function(b,l,k){var h=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==false&&(w.test(b.url)||h&&w.test(b.data))){var f,c=b.jsonpCallback=a.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=d[c],e=b.url,g=b.data,j="$1"+c+"$2";if(b.jsonp!==false){e=e.replace(w,j);if(b.url===e){if(h)g=g.replace(w,j);if(b.data===g)e+=(/\?/.test(e)?"&":"?")+b.jsonp+"="+c}}b.url=e;b.data=g;d[c]=function(a){f=[a]};k.always(function(){d[c]=i;f&&a.isFunction(i)&&d[c](f[0])});b.converters["script json"]=function(){!f&&a.error(c+" was not called");return f[0]};b.dataTypes[0]="json";return"script"}});a.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){a.globalEval(b);return b}}});a.ajaxPrefilter("script",function(a){if(a.cache===b)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});a.ajaxTransport("script",function(e){if(e.crossDomain){var a,d=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(g,f){a=c.createElement("script");a.async="async";if(e.scriptCharset)a.charset=e.scriptCharset;a.src=e.url;a.onload=a.onreadystatechange=function(e,c){if(c||!a.readyState||/loaded|complete/.test(a.readyState)){a.onload=a.onreadystatechange=null;d&&a.parentNode&&d.removeChild(a);a=b;!c&&f(200,"success")}};d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0,1)}}}});var z=d.ActiveXObject?function(){for(var a in k)k[a](0,1)}:false,sc=0,k;function N(){try{return new d.XMLHttpRequest}catch(a){}}function zb(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}a.ajaxSettings.xhr=d.ActiveXObject?function(){return!this.isLocal&&N()||zb()}:N;(function(b){a.extend(a.support,{ajax:!!b,cors:!!b&&"withCredentials"in b})})(a.ajaxSettings.xhr());a.support.ajax&&a.ajaxTransport(function(c){if(!c.crossDomain||a.support.cors){var e;return{send:function(h,j){var f=c.xhr(),i,g;if(c.username)f.open(c.type,c.url,c.async,c.username,c.password);else f.open(c.type,c.url,c.async);if(c.xhrFields)for(g in c.xhrFields)f[g]=c.xhrFields[g];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);if(!c.crossDomain&&!h["X-Requested-With"])h["X-Requested-With"]="XMLHttpRequest";try{for(g in h)f.setRequestHeader(g,h[g])}catch(l){}f.send(c.hasContent&&c.data||null);e=function(q,m){var g,l,n,d,h;try{if(e&&(m||f.readyState===4)){e=b;if(i){f.onreadystatechange=a.noop;if(z)delete k[i]}if(m)f.readyState!==4&&f.abort();else{g=f.status;n=f.getAllResponseHeaders();d={};h=f.responseXML;if(h&&h.documentElement)d.xml=h;d.text=f.responseText;try{l=f.statusText}catch(p){l=""}if(!g&&c.isLocal&&!c.crossDomain)g=d.text?200:404;else if(g===1223)g=204}}}catch(o){!m&&j(-1,o)}d&&j(g,l,d,n)};if(!c.async||f.readyState===4)e();else{i=++sc;if(z){if(!k){k={};a(d).unload(z)}k[i]=e}f.onreadystatechange=e}},abort:function(){e&&e(0,1)}}}});var C={},f,l,Xb=/^(?:toggle|show|hide)$/,ic=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,t,kb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],v;a.fn.extend({show:function(e,h,g){var b,c;if(e||e===0)return this.animate(n("show",3),e,h,g);else{for(var d=0,f=this.length;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(!a._data(b,"olddisplay")&&c==="none")c=b.style.display="";c===""&&a.css(b,"display")==="none"&&a._data(b,"olddisplay",R(b.nodeName))}}for(d=0;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(c===""||c==="none")b.style.display=a._data(b,"olddisplay")||""}}return this}},hide:function(c,g,f){if(c||c===0)return this.animate(n("hide",3),c,g,f);else{for(var b=0,e=this.length;b<e;b++)if(this[b].style){var d=a.css(this[b],"display");d!=="none"&&!a._data(this[b],"olddisplay")&&a._data(this[b],"olddisplay",d)}for(b=0;b<e;b++)if(this[b].style)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,d,e){var c=typeof b==="boolean";if(a.isFunction(b)&&a.isFunction(d))this._toggle.apply(this,arguments);else if(b==null||c)this.each(function(){var d=c?b:a(this).is(":hidden");a(this)[d?"show":"hide"]()});else this.animate(n("toggle",3),b,d,e);return this},fadeTo:function(c,d,b,a){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:d},c,b,a)},animate:function(b,f,e,d){var c=a.speed(f,e,d);if(a.isEmptyObject(b))return this.each(c.complete,[false]);b=a.extend({},b);return this[c.queue===false?"each":"queue"](function(){c.queue===false&&a._mark(this);var g=a.extend({},c),n=this.nodeType===1,m=n&&a(this).is(":hidden"),f,d,e,o,k,i,h,j,l;g.animatedProperties={};for(e in b){f=a.camelCase(e);if(e!==f){b[f]=b[e];delete b[e]}d=b[f];if(a.isArray(d)){g.animatedProperties[f]=d[1];d=b[f]=d[0]}else g.animatedProperties[f]=g.specialEasing&&g.specialEasing[f]||g.easing||"swing";if(d==="hide"&&m||d==="show"&&!m)return g.complete.call(this);if(n&&(f==="height"||f==="width")){g.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none")if(!a.support.inlineBlockNeedsLayout)this.style.display="inline-block";else{o=R(this.nodeName);if(o==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}}}if(g.overflow!=null)this.style.overflow="hidden";for(e in b){k=new a.fx(this,g,e);d=b[e];if(Xb.test(d))k[d==="toggle"?m?"show":"hide":d]();else{i=ic.exec(d);h=k.cur();if(i){j=parseFloat(i[2]);l=i[3]||(a.cssNumber[e]?"":"px");if(l!=="px"){a.style(this,e,(j||1)+l);h=(j||1)/k.cur()*h;a.style(this,e,h+l)}if(i[1])j=(i[1]==="-="?-1:1)*j+h;k.custom(h,j,l)}else k.custom(h,d,"")}}return true})},stop:function(c,b){c&&this.queue([]);this.each(function(){var c=a.timers,d=c.length;!b&&a._unmark(true,this);while(d--)if(c[d].elem===this){b&&c[d](true);c.splice(d,1)}});!b&&this.dequeue();return this}});function W(){setTimeout(Jb,0);return v=a.now()}function Jb(){v=b}function n(c,d){var b={};a.each(kb.concat.apply([],kb.slice(0,d)),function(){b[this]=c});return b}a.each({slideDown:n("show",1),slideUp:n("hide",1),slideToggle:n("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,b){a.fn[c]=function(d,c,a){return this.animate(b,d,c,a)}});a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?a.extend({},c):{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:b.duration in a.fx.speeds?a.fx.speeds[b.duration]:a.fx.speeds._default;b.old=b.complete;b.complete=function(c){a.isFunction(b.old)&&b.old.call(this);if(b.queue!==false)a.dequeue(this);else c!==false&&a._unmark(this)};return b},easing:{linear:function(c,d,a,b){return a+b*c},swing:function(c,d,a,b){return(-Math.cos(c*Math.PI)/2+.5)*b+a}},timers:[],fx:function(b,a,c){this.options=a;this.elem=b;this.prop=c;a.orig=a.orig||{}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.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 c,b=a.css(this.elem,this.prop);return isNaN(c=parseFloat(b))?!b||b==="auto"?0:b:c},custom:function(d,g,f){var e=this,c=a.fx;this.startTime=v||W();this.start=d;this.end=g;this.unit=f||this.unit||(a.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function b(a){return e.step(a)}b.elem=this.elem;if(b()&&a.timers.push(b)&&!t)t=setInterval(c.tick,c.interval)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(i){var e=v||W(),f=true,c=this.elem,b=this.options,g,d;if(i||e>=b.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b.animatedProperties[this.prop]=true;for(g in b.animatedProperties)if(b.animatedProperties[g]!==true)f=false;if(f){b.overflow!=null&&!a.support.shrinkWrapBlocks&&a.each(["","X","Y"],function(a,d){c.style["overflow"+d]=b.overflow[a]});b.hide&&a(c).hide();if(b.hide||b.show)for(var h in b.animatedProperties)a.style(c,h,b.orig[h]);b.complete.call(c)}return false}else{if(b.duration==Infinity)this.now=e;else{d=e-this.startTime;this.state=d/b.duration;this.pos=a.easing[b.animatedProperties[this.prop]](this.state,d,0,1,b.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};a.extend(a.fx,{tick:function(){for(var b=a.timers,c=0;c<b.length;++c)!b[c]()&&b.splice(c--,1);!b.length&&a.fx.stop()},interval:13,stop:function(){clearInterval(t);t=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.style(b.elem,"opacity",b.now)},_default:function(a){if(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;else a.elem[a.prop]=a.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};function R(b){if(!C[b]){var g=c.body,d=a("<"+b+">").appendTo(g),e=d.css("display");d.remove();if(e==="none"||e===""){if(!f){f=c.createElement("iframe");f.frameBorder=f.width=f.height=0}g.appendChild(f);if(!l||!f.createElement){l=(f.contentWindow||f.contentDocument).document;l.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");l.close()}d=l.createElement(b);l.body.appendChild(d);e=a.css(d,"display");g.removeChild(f)}C[b]=e}return C[b]}var kc=/^t(?:able|d|h)$/i,tb=/^(?:body|html)$/i;if("getBoundingClientRect"in c.documentElement)a.fn.offset=function(g){var b=this[0],c;if(g)return this.each(function(b){a.offset.setOffset(this,g,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(o){}var f=b.ownerDocument,d=f.documentElement;if(!c||!a.contains(d,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var e=f.body,h=G(f),k=d.clientTop||e.clientTop||0,i=d.clientLeft||e.clientLeft||0,l=h.pageYOffset||a.support.boxModel&&d.scrollTop||e.scrollTop,j=h.pageXOffset||a.support.boxModel&&d.scrollLeft||e.scrollLeft,n=c.top+l-k,m=c.left+j-i;return{top:n,left:m}};else a.fn.offset=function(l){var b=this[0];if(l)return this.each(function(b){a.offset.setOffset(this,l,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var c,i=b.offsetParent,m=b,k=b.ownerDocument,j=k.documentElement,g=k.body,h=k.defaultView,f=h?h.getComputedStyle(b,null):b.currentStyle,e=b.offsetTop,d=b.offsetLeft;while((b=b.parentNode)&&b!==g&&b!==j){if(a.offset.supportsFixedPosition&&f.position==="fixed")break;c=h?h.getComputedStyle(b,null):b.currentStyle;e-=b.scrollTop;d-=b.scrollLeft;if(b===i){e+=b.offsetTop;d+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&kc.test(b.nodeName))){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}m=i;i=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}f=c}if(f.position==="relative"||f.position==="static"){e+=g.offsetTop;d+=g.offsetLeft}if(a.offset.supportsFixedPosition&&f.position==="fixed"){e+=Math.max(j.scrollTop,g.scrollTop);d+=Math.max(j.scrollLeft,g.scrollLeft)}return{top:e,left:d}};a.offset={initialize:function(){var f=c.body,d=c.createElement("div"),e,b,j,g,h=parseFloat(a.css(f,"marginTop"))||0,i="<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.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});d.innerHTML=i;f.insertBefore(d,f.firstChild);e=d.firstChild;b=e.firstChild;g=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=b.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;b.style.position="fixed";b.style.top="20px";this.supportsFixedPosition=b.offsetTop===20||b.offsetTop===15;b.style.position=b.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=b.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=f.offsetTop!==h;f.removeChild(d);a.offset.initialize=a.noop},bodyOffset:function(b){var d=b.offsetTop,c=b.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){d+=parseFloat(a.css(b,"marginTop"))||0;c+=parseFloat(a.css(b,"marginLeft"))||0}return{top:d,left:c}},setOffset:function(c,b,n){var g=a.css(c,"position");if(g==="static")c.style.position="relative";var h=a(c),f=h.offset(),l=a.css(c,"top"),k=a.css(c,"left"),m=(g==="absolute"||g==="fixed")&&a.inArray("auto",[l,k])>-1,d={},e={},j,i;if(m){e=h.position();j=e.top;i=e.left}else{j=parseFloat(l)||0;i=parseFloat(k)||0}if(a.isFunction(b))b=b.call(c,n,f);if(b.top!=null)d.top=b.top-f.top+j;if(b.left!=null)d.left=b.left-f.left+i;if("using"in b)b.using.call(c,d);else h.css(d)}};a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),d=this.offset(),c=tb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(a.css(e,"marginTop"))||0;d.left-=parseFloat(a.css(e,"marginLeft"))||0;c.top+=parseFloat(a.css(b[0],"borderTopWidth"))||0;c.left+=parseFloat(a.css(b[0],"borderLeftWidth"))||0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||c.body;while(b&&!tb.test(b.nodeName)&&a.css(b,"position")==="static")b=b.offsetParent;return b})}});a.each(["Left","Top"],function(d,e){var c="scroll"+e;a.fn[c]=function(g){var f,e;if(g===b){f=this[0];if(!f)return null;e=G(f);return e?"pageXOffset"in e?e[d?"pageYOffset":"pageXOffset"]:a.support.boxModel&&e.document.documentElement[c]||e.document.body[c]:f[c]}return this.each(function(){e=G(this);if(e)e.scrollTo(!d?g:a(e).scrollLeft(),d?g:a(e).scrollTop());else this[c]=g})}});function G(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:false}a.each(["Height","Width"],function(e,c){var d=c.toLowerCase();a.fn["inner"+c]=function(){var b=this[0];return b&&b.style?parseFloat(a.css(b,d,"padding")):null};a.fn["outer"+c]=function(c){var b=this[0];return b&&b.style?parseFloat(a.css(b,d,c?"margin":"border")):null};a.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(a.isFunction(f))return this.each(function(c){var b=a(this);b[d](f.call(this,c,b[d]()))});if(a.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}else if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);else if(f===b){var i=a.css(e,d),j=parseFloat(i);return a.isNaN(j)?i:j}else return this.css(d,typeof f==="string"?f:f+"px")}});d.jQuery=d.$=a})(window);
/*!
 * jQuery UI 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,c){a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.15",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}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;if(a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position")))b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);else b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(f){if(f!==c)return this.css("zIndex",f);if(this.length){var b=a(this[0]),d,e;while(b.length&&b[0]!==document){d=b.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){e=parseInt(b.css("zIndex"),10);if(!isNaN(e)&&e!==0)return e}b=b.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(h,b){var g=b==="Width"?["Left","Right"]:["Top","Bottom"],f=b.toLowerCase(),e={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function d(c,b,d,e){a.each(g,function(){b-=parseFloat(a.curCSS(c,"padding"+this,true))||0;if(d)b-=parseFloat(a.curCSS(c,"border"+this+"Width",true))||0;if(e)b-=parseFloat(a.curCSS(c,"margin"+this,true))||0});return b}a.fn["inner"+b]=function(g){return g===c?e["inner"+b].call(this):this.each(function(){a(this).css(f,d(this,g)+"px")})};a.fn["outer"+b]=function(c,g){return typeof c!=="number"?e["outer"+b].call(this,c):this.each(function(){a(this).css(f,d(this,c,true,g)+"px")})}});function b(b,f){var c=b.nodeName.toLowerCase();if("area"===c){var h=b.parentNode,g=h.name,e;if(!b.href||!g||h.nodeName.toLowerCase()!=="map")return false;e=a("img[usemap=#"+g+"]")[0];return!!e&&d(e)}return(/input|select|textarea|button|object/.test(c)?!b.disabled:"a"==c?b.href||f:f)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(c,d,b){return!!a.data(c,b[3])},focusable:function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},tabbable:function(e){var d=a.attr(e,"tabindex"),c=isNaN(d);return(c||d>=0)&&b(e,!c)}});a(function(){var c=document.body,b=c.appendChild(b=document.createElement("div"));a.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=b.offsetHeight===100;a.support.selectstart="onselectstart"in b;c.removeChild(b).style.display="none"});a.extend(a.ui,{plugin:{add:function(e,f,d){var c=a.ui[e].prototype;for(var b in d){c.plugins[b]=c.plugins[b]||[];c.plugins[b].push([f,d[b]])}},call:function(a,e,d){var b=a.plugins[e];if(!b||!a.element[0].parentNode)return;for(var c=0;c<b.length;c++)a.options[b[c][0]]&&b[c][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,e){if(a(b).css("overflow")==="hidden")return false;var c=e&&e==="left"?"scrollLeft":"scrollTop",d=false;if(b[c]>0)return true;b[c]=1;d=b[c]>0;b[c]=0;return d},isOverAxis:function(b,a,c){return b>a&&b<a+c},isOver:function(g,f,e,d,b,c){return a.ui.isOverAxis(g,e,b)&&a.ui.isOverAxis(f,d,c)}})})(jQuery);
/*!
 * jQuery UI Widget 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var e=0,d;(d=b[e])!=null;e++)a(d).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c)(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return d.call(a(this),b,c)})}}a.widget=function(b,g,e){var c=b.split(".")[0],f;b=b.split(".")[1];f=c+"-"+b;if(!e){e=g;g=a.Widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[c]=a[c]||{};a[c][b]=function(b,a){arguments.length&&this._createWidget(b,a)};var d=new g;d.options=a.extend(true,{},d.options);a[c][b].prototype=a.extend(true,d,{"namespace":c,widgetName:b,widgetEventPrefix:a[c][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},e);a.widget.bridge(b,a[c][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",h=Array.prototype.slice.call(arguments,1),g=this;e=!f&&h.length?a.extend.apply(null,[true,e].concat(h)):e;if(f&&e.charAt(0)==="_")return g;if(f)this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,h):d;if(f!==d&&f!==b){g=f;return false}});else this.each(function(){var b=a.data(this,c);if(b)b.option(e||{})._init();else a.data(this,c,new d(e,this))});return g}};a.Widget=function(b,a){arguments.length&&this._createWidget(b,a)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(c,b){a.data(b,this.widgetName,this);this.element=a(b);this.options=a.extend(true,{},this.options,this._getCreateOptions(),c);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.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(c,e){var d=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(e===b)return this.options[c];d={};d[c]=e}this._setOptions(d);return this},_setOptions:function(b){var c=this;a.each(b,function(b,a){c._setOption(b,a)});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",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,b,c){var f=this.options[d];b=a.Event(b);b.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();c=c||{};if(b.originalEvent)for(var g=a.event.props.length,e;g;){e=a.event.props[--g];b[e]=b.originalEvent[e]}this.element.trigger(b,c);return!(a.isFunction(f)&&f.call(this.element[0],b,c)===false||b.isDefaultPrevented())}}})(jQuery);
/*!
 * jQuery UI Mouse 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(true===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled)return;this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,e=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).closest(this.options.cancel).length:false;if(!e||d||!this._mouseCapture(b))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();b.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_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();return this},_mouseCapture:function(c){var b=this.options;if(this.helper||b.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")});return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();if(this._trigger("drag",b,c)===false){this._mouseUp({});return false}this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return false},_mouseStop:function(c){var b=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)b=a.ui.ddmanager.drop(this,c);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",c)!==false&&d._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},_mouseUp:function(b){this.options.iframeFix===true&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){if(this.helper.is(".ui-draggable-dragging"))this._mouseUp({});else this._clear();return this},_getHandle:function(c){var b=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target)b=true});return b},_createHelper:function(d){var c=this.options,b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;!b.parents("body").length&&b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute");return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[c.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,c.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:a(window).scrollLeft())+a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c.containment=="document"?0:a(window).scrollTop())+(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var d=a(c.containment),b=d[0];if(!b)return;var f=d.offset(),e=a(b).css("overflow")!="hidden";this.containment=[(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0),(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0),(e?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=d}else if(c.containment.constructor==Array)this.containment=c.containment},_convertPositionTo:function(f,c){if(!c)c=this.position;var b=f=="absolute"?1:-1,g=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(f){var c=this.options,j=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=/(html|body)/i.test(j[0].tagName),g=f.pageX,h=f.pageY;if(this.originalPosition){var b;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();b=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else b=this.containment;if(f.pageX-this.offset.click.left<b[0])g=b[0]+this.offset.click.left;if(f.pageY-this.offset.click.top<b[1])h=b[1]+this.offset.click.top;if(f.pageX-this.offset.click.left>b[2])g=b[2]+this.offset.click.left;if(f.pageY-this.offset.click.top>b[3])h=b[3]+this.offset.click.top}if(c.grid){var e=c.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;h=b?!(e-this.offset.click.top<b[1]||e-this.offset.click.top>b[3])?e:!(e-this.offset.click.top<b[1])?e-c.grid[1]:e+c.grid[1]:e;var d=c.grid[0]?this.originalPageX+Math.round((g-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX;g=b?!(d-this.offset.click.left<b[0]||d-this.offset.click.left>b[2])?d:!(d-this.offset.click.left<b[0])?d-c.grid[0]:d+c.grid[0]:d}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():k?0:j.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:j.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=false},_trigger:function(c,d,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[d,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,d,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.15"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,e){var b=a(this).data("draggable"),f=b.options,c=a.extend({},e,{item:b.element});b.sortables=[];a(f.connectToSortable).each(function(){var e=a.data(this,"sortable");if(e&&!e.options.disabled){b.sortables.push({instance:e,shouldRevert:e.options.revert});e.refreshPositions();e._trigger("activate",d,c)}})},stop:function(c,e){var b=a(this).data("draggable"),d=a.extend({},e,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;b.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,d)}})},drag:function(c,e){var b=a(this).data("draggable"),d=this,f=function(b){var i=this.offset.click.top,h=this.offset.click.left,e=this.positionAbs.top,c=this.positionAbs.left,d=b.height,f=b.width,j=b.top,g=b.left;return a.ui.isOver(e+i,c+h,j,g,d,f)};a.each(b.sortables,function(){this.instance.positionAbs=b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(d).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",c);b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();b._trigger("fromSortable",c);b.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;if(b.css("cursor"))c._cursor=b.css("cursor");b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","opacity",{start:function(e,d){var b=a(d.helper),c=a(this).data("draggable").options;if(b.css("opacity"))c._opacity=b.css("opacity");b.css("opacity",c.opacity)},stop:function(d,c){var b=a(this).data("draggable").options;b._opacity&&a(c.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML")b.overflowOffset=b.scrollParent.offset()},drag:function(e){var c=a(this).data("draggable"),b=c.options,d=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(c.overflowOffset.top+c.scrollParent[0].offsetHeight-e.pageY<b.scrollSensitivity)c.scrollParent[0].scrollTop=d=c.scrollParent[0].scrollTop+b.scrollSpeed;else if(e.pageY-c.overflowOffset.top<b.scrollSensitivity)c.scrollParent[0].scrollTop=d=c.scrollParent[0].scrollTop-b.scrollSpeed;if(!b.axis||b.axis!="y")if(c.overflowOffset.left+c.scrollParent[0].offsetWidth-e.pageX<b.scrollSensitivity)c.scrollParent[0].scrollLeft=d=c.scrollParent[0].scrollLeft+b.scrollSpeed;else if(e.pageX-c.overflowOffset.left<b.scrollSensitivity)c.scrollParent[0].scrollLeft=d=c.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")if(e.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(e.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(!b.axis||b.axis!="y")if(e.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(e.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,e)}});a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(s,e){for(var b=a(this).data("draggable"),r=b.options,c=r.snapTolerance,j=e.offset.left,l=j+b.helperProportions.width,k=e.offset.top,m=k+b.helperProportions.height,d=b.snapElements.length-1;d>=0;d--){var f=b.snapElements[d].left,i=f+b.snapElements[d].width,g=b.snapElements[d].top,h=g+b.snapElements[d].height;if(!(f-c<j&&j<i+c&&g-c<k&&k<h+c||f-c<j&&j<i+c&&g-c<m&&m<h+c||f-c<l&&l<i+c&&g-c<k&&k<h+c||f-c<l&&l<i+c&&g-c<m&&m<h+c)){if(b.snapElements[d].snapping)b.options.snap.release&&b.options.snap.release.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=false;continue}if(r.snapMode!="inner"){var q=Math.abs(g-m)<=c,n=Math.abs(h-k)<=c,o=Math.abs(f-l)<=c,p=Math.abs(i-j)<=c;if(q)e.position.top=b._convertPositionTo("relative",{top:g-b.helperProportions.height,left:0}).top-b.margins.top;if(n)e.position.top=b._convertPositionTo("relative",{top:h,left:0}).top-b.margins.top;if(o)e.position.left=b._convertPositionTo("relative",{top:0,left:f-b.helperProportions.width}).left-b.margins.left;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:i}).left-b.margins.left}var t=q||n||o||p;if(r.snapMode!="outer"){var q=Math.abs(g-k)<=c,n=Math.abs(h-m)<=c,o=Math.abs(f-j)<=c,p=Math.abs(i-l)<=c;if(q)e.position.top=b._convertPositionTo("relative",{top:g,left:0}).top-b.margins.top;if(n)e.position.top=b._convertPositionTo("relative",{top:h-b.helperProportions.height,left:0}).top-b.margins.top;if(o)e.position.left=b._convertPositionTo("relative",{top:0,left:f}).left-b.margins.left;if(p)e.position.left=b._convertPositionTo("relative",{top:0,left:i-b.helperProportions.width}).left-b.margins.left}if(!b.snapElements[d].snapping&&(q||n||o||p||t))b.options.snap.snap&&b.options.snap.snap.call(b.element,s,a.extend(b._uiHash(),{snapItem:b.snapElements[d].item}));b.snapElements[d].snapping=q||n||o||p||t}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options,b=a.makeArray(a(d.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(!b.length)return;var c=parseInt(b[0].style.zIndex)||0;a(b).each(function(a){this.style.zIndex=c+a});this[0].style.zIndex=c+b.length}});a.ui.plugin.add("draggable","zIndex",{start:function(e,d){var b=a(d.helper),c=a(this).data("draggable").options;if(b.css("zIndex"))c._zIndex=b.css("zIndex");b.css("zIndex",c.zIndex)},stop:function(d,c){var b=a(this).data("draggable").options;b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,c=b.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(a){return a.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[];a.ui.ddmanager.droppables[b.scope].push(this);b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],b=0;b<c.length;b++)c[b]==this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,b){if(c=="accept")this.accept=a.isFunction(b)?b:function(a){return a.is(b)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);b&&this._trigger("activate",c,this.ui(b))},_deactivate:function(c){var b=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",c,this.ui(b))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return;if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return;if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(b))}},_drop:function(e,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return false;var c=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var d=a.data(this,"droppable");if(d.options.greedy&&!d.options.disabled&&d.options.scope==b.options.scope&&d.accept.call(d.element[0],b.currentItem||b.element)&&a.ui.intersect(b,a.extend(d,{offset:d.element.offset()}),d.options.tolerance)){c=true;return false}});if(c)return false;if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",e,this.ui(b));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.15"});a.ui.intersect=function(b,c,m){if(!c.offset)return false;var f=(b.positionAbs||b.position.absolute).left,h=f+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,i=g+b.helperProportions.height,d=c.offset.left,k=d+c.proportions.width,e=c.offset.top,j=e+c.proportions.height;switch(m){case"fit":return d<=f&&h<=k&&e<=g&&i<=j;break;case"intersect":return d<f+b.helperProportions.width/2&&h-b.helperProportions.width/2<k&&e<g+b.helperProportions.height/2&&i-b.helperProportions.height/2<j;break;case"pointer":var l=(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,n=(b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,o=a.ui.isOver(n,l,e,d,c.proportions.height,c.proportions.width);return o;break;case"touch":return(g>=e&&g<=j||i>=e&&i<=j||g<e&&i>j)&&(f>=d&&f<=k||h>=d&&h<=k||f<d&&h>k);break;default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(d,e){var c=a.ui.ddmanager.droppables[d.options.scope]||[],h=e?e.type:null,g=(d.currentItem||d.element).find(":data(droppable)").andSelf();a:for(var b=0;b<c.length;b++){if(c[b].options.disabled||d&&!c[b].accept.call(c[b].element[0],d.currentItem||d.element))continue;for(var f=0;f<g.length;f++)if(g[f]==c[b].element[0]){c[b].proportions.height=0;continue a}c[b].visible=c[b].element.css("display")!="none";if(!c[b].visible)continue;h=="mousedown"&&c[b]._activate.call(c[b],e);c[b].offset=c[b].element.offset();c[b].proportions={width:c[b].element[0].offsetWidth,height:c[b].element[0].offsetHeight}}},drop:function(b,d){var c=false;a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options)return;if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance))c=c||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}});return c},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){!b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c);a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var f=a.ui.intersect(b,this,this.options.tolerance),e=!f&&this.isover==1?"isout":f&&this.isover==0?"isover":null;if(!e)return;var d;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){d=a.data(g[0],"droppable");d.greedyChild=e=="isover"?1:0}}if(d&&e=="isover"){d.isover=0;d.isout=1;d._out.call(d,c)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,c);if(d&&e=="isout"){d.isout=0;d.isover=1;d._over.call(d,c)}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable");!b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c)}}})(jQuery);(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var d=this,b=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<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=true;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=b.handles||(!a(".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 g=this.handles.split(",");this.handles={};for(var f=0;f<g.length;f++){var c=a.trim(g[f]),h="ui-resizable-"+c,e=a('<div class="ui-resizable-handle '+h+'"></div>');/sw|se|ne|nw/.test(c)&&e.css({zIndex:++b.zIndex});"se"==c&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[c]=".ui-resizable-"+c;this.element.append(e)}}this._renderAxis=function(c){c=c||this.element;for(var b in this.handles){if(this.handles[b].constructor==String)this.handles[b]=a(this.handles[b],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var e=a(this.handles[b],this.element),d=0;d=/sw|ne|nw|se|n|s/.test(b)?e.outerHeight():e.outerWidth();var f=["padding",/ne|nw|n/.test(b)?"Top":/se|sw|s/.test(b)?"Bottom":/^e$/.test(b)?"Right":"Left"].join("");c.css(f,d);this._proportionallyResize()}if(!a(this.handles[b]).length)continue}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!d.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);d.axis=a&&a[1]?a[1]:"se"}});if(b.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){if(b.disabled)return;a(this).removeClass("ui-resizable-autohide");d._handles.show()},function(){if(b.disabled)return;if(!d.resizing){a(this).addClass("ui-resizable-autohide");d._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement);return this},_mouseCapture:function(c){var b=false;for(var d in this.handles)if(a(this.handles[d])[0]==c.target)b=true;return!this.options.disabled&&b},_mouseStart:function(g){var d=this.options,i=this.element.position(),b=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};(b.is(".ui-draggable")||/absolute/.test(b.css("position")))&&b.css({position:"absolute",top:i.top,left:i.left});a.browser.opera&&/relative/.test(b.css("position"))&&b.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();var e=c(this.helper.css("left")),f=c(this.helper.css("top"));if(d.containment){e+=a(d.containment).scrollLeft()||0;f+=a(d.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:e,top:f};this.size=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalSize=this._helper?{width:b.outerWidth(),height:b.outerHeight()}:{width:b.width(),height:b.height()};this.originalPosition={left:e,top:f};this.sizeDiff={width:b.outerWidth()-b.width(),height:b.outerHeight()-b.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;var h=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",h=="auto"?this.axis+"-resize":h);b.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(b){var h=this.helper,n=this.options,k={},l=this,e=this.originalMousePosition,i=this.axis,f=b.pageX-e.left||0,g=b.pageY-e.top||0,d=this._change[i];if(!d)return false;var c=d.apply(this,[b,f,g]),m=a.browser.msie&&a.browser.version<7,j=this.sizeDiff;this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);h.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(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(h){this.resizing=false;var e=this.options,b=this;if(this._helper){var c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),f=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height,g=d?0:b.sizeDiff.width,k={width:b.helper.width()-g,height:b.helper.height()-f},i=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null,j=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;!e.animate&&this.element.css(a.extend(k,{top:j,left:i}));b.helper.height(b.size.height);b.helper.width(b.size.width);this._helper&&!e.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(h){var c=this.options,g,f,e,d,a;a={minWidth:b(c.minWidth)?c.minWidth:0,maxWidth:b(c.maxWidth)?c.maxWidth:Infinity,minHeight:b(c.minHeight)?c.minHeight:0,maxHeight:b(c.maxHeight)?c.maxHeight:Infinity};if(this._aspectRatio||h){g=a.minHeight*this.aspectRatio;e=a.minWidth/this.aspectRatio;f=a.maxHeight*this.aspectRatio;d=a.maxWidth/this.aspectRatio;if(g>a.minWidth)a.minWidth=g;if(e>a.minHeight)a.minHeight=e;if(f<a.maxWidth)a.maxWidth=f;if(d<a.maxHeight)a.maxHeight=d}this._vBoundaries=a},_updateCache:function(a){var c=this.options;this.offset=this.helper.offset();if(b(a.left))this.position.left=a.left;if(b(a.top))this.position.top=a.top;if(b(a.height))this.size.height=a.height;if(b(a.width))this.size.width=a.width},_updateRatio:function(a){var g=this.options,d=this.position,c=this.size,e=this.axis;if(b(a.height))a.width=a.height*this.aspectRatio;else if(b(a.width))a.height=a.width/this.aspectRatio;if(e=="sw"){a.left=d.left+(c.width-a.width);a.top=null}if(e=="nw"){a.top=d.top+(c.height-a.height);a.left=d.left+(c.width-a.width)}return a},_respectSize:function(a,n){var p=this.helper,c=this._vBoundaries,o=this._aspectRatio||n.shiftKey,m=this.axis,f=b(a.width)&&c.maxWidth&&c.maxWidth<a.width,e=b(a.height)&&c.maxHeight&&c.maxHeight<a.height,h=b(a.width)&&c.minWidth&&c.minWidth>a.width,g=b(a.height)&&c.minHeight&&c.minHeight>a.height;if(h)a.width=c.minWidth;if(g)a.height=c.minHeight;if(f)a.width=c.maxWidth;if(e)a.height=c.maxHeight;var l=this.originalPosition.left+this.originalSize.width,k=this.position.top+this.size.height,j=/sw|nw|w/.test(m),i=/nw|ne|n/.test(m);if(h&&j)a.left=l-c.minWidth;if(f&&j)a.left=l-c.maxWidth;if(g&&i)a.top=k-c.minHeight;if(e&&i)a.top=k-c.maxHeight;var d=!a.width&&!a.height;if(d&&!a.left&&a.top)a.top=null;else if(d&&!a.top&&a.left)a.left=null;return a},_proportionallyResize:function(){var g=this.options;if(!this._proportionallyResizeElements.length)return;for(var c=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var b=this._proportionallyResizeElements[d];if(!this.borderDif){var e=[b.css("borderTopWidth"),b.css("borderRightWidth"),b.css("borderBottomWidth"),b.css("borderLeftWidth")],f=[b.css("paddingTop"),b.css("paddingRight"),b.css("paddingBottom"),b.css("paddingLeft")];this.borderDif=a.map(e,function(d,c){var b=parseInt(d,10)||0,a=parseInt(f[c],10)||0;return b+a})}if(a.browser.msie&&!!(a(c).is(":hidden")||a(c).parents(":hidden").length))continue;b.css({height:c.height()-this.borderDif[0]-this.borderDif[2]||0,width:c.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.element,f=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var d=a.browser.msie&&a.browser.version<7,b=d?1:0,c=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-b+"px",top:this.elementOffset.top-b+"px",zIndex:++f.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(d,a){var f=this.options,b=this.originalSize,c=this.originalPosition;return{left:c.left+a,width:b.width-a}},n:function(d,e,a){var f=this.options,b=this.originalSize,c=this.originalPosition;return{top:c.top+a,height:b.height-a}},s:function(b,c,a){return{height:this.originalSize.height+a}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.15"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var d=a(this).data("resizable"),b=d.options,c=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];c(b.alsoResize)}else a.each(b.alsoResize,function(a){c(a)});else c(b.alsoResize)},resize:function(i,h){var b=a(this).data("resizable"),c=b.options,f=b.originalSize,e=b.originalPosition,g={height:b.size.height-f.height||0,width:b.size.width-f.width||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},d=function(d,c){a(d).each(function(){var d=a(this),f=a(this).data("resizable-alsoresize"),e={},i=c&&c.length?c:d.parents(h.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(i,function(c,a){var b=(f[a]||0)+(g[a]||0);if(b&&b>=0)e[a]=b||null});if(a.browser.opera&&/relative/.test(d.css("position"))){b._revertToRelativePosition=true;d.css({position:"absolute",top:"auto",left:"auto"})}d.css(e)})};if(typeof c.alsoResize=="object"&&!c.alsoResize.nodeType)a.each(c.alsoResize,function(a,b){d(a,b)});else d(c.alsoResize)},stop:function(){var c=a(this).data("resizable"),b=c.options,d=function(b){a(b).each(function(){var b=a(this);b.css({position:b.data("resizable-alsoresize").position})})};if(c._revertToRelativePosition){c._revertToRelativePosition=false;if(typeof b.alsoResize=="object"&&!b.alsoResize.nodeType)a.each(b.alsoResize,function(a){d(a)});else d(b.alsoResize)}a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","animate",{stop:function(j){var b=a(this).data("resizable"),g=b.options,c=b._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),h=d&&a.ui.hasScroll(c[0],"left")?0:b.sizeDiff.height,i=d?0:b.sizeDiff.width,k={width:b.size.width-i,height:b.size.height-h},e=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null,f=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(a.extend(k,f&&e?{top:f,left:e}:{}),{duration:g.animateDuration,easing:g.animateEasing,step:function(){var d={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};c&&c.length&&a(c[0]).css({width:d.width,height:d.height});b._updateCache(d);b._propagate("resize",j)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),n=b.options,m=b.element,e=n.containment,d=e instanceof a?e.get(0):/parent/.test(e)?m.parent().get(0):e;if(!d)return;b.containerElement=a(d);if(/document/.test(e)||e==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var f=a(d),g=[];a(["Top","Right","Left","Bottom"]).each(function(b,a){g[b]=c(f.css("padding"+a))});b.containerOffset=f.offset();b.containerPosition=f.position();b.containerSize={height:f.innerHeight()-g[3],width:f.innerWidth()-g[1]};var h=b.containerOffset,k=b.containerSize.height,l=b.containerSize.width,j=a.ui.hasScroll(d,"left")?d.scrollWidth:l,i=a.ui.hasScroll(d)?d.scrollHeight:k;b.parentData={element:d,left:h.left,top:h.top,width:j,height:i}}},resize:function(m){var b=a(this).data("resizable"),g=b.options,o=b.containerSize,c=b.containerOffset,n=b.size,j=b.position,e=b._aspectRatio||m.shiftKey,d={top:0,left:0},i=b.containerElement;if(i[0]!=document&&/static/.test(i.css("position")))d=c;if(j.left<(b._helper?c.left:0)){b.size.width=b.size.width+(b._helper?b.position.left-c.left:b.position.left-d.left);if(e)b.size.height=b.size.width/g.aspectRatio;b.position.left=g.helper?c.left:0}if(j.top<(b._helper?c.top:0)){b.size.height=b.size.height+(b._helper?b.position.top-c.top:b.position.top);if(e)b.size.width=b.size.height*g.aspectRatio;b.position.top=b._helper?c.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;var f=Math.abs((b._helper?b.offset.left-d.left:b.offset.left-d.left)+b.sizeDiff.width),h=Math.abs((b._helper?b.offset.top-d.top:b.offset.top-c.top)+b.sizeDiff.height),l=b.containerElement.get(0)==b.element.parent().get(0),k=/relative|absolute/.test(b.containerElement.css("position"));if(l&&k)f-=b.parentData.left;if(f+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-f;if(e)b.size.height=b.size.width/b.aspectRatio}if(h+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-h;if(e)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var b=a(this).data("resizable"),i=b.options,l=b.position,f=b.containerOffset,d=b.containerPosition,e=b.containerElement,c=a(b.helper),g=c.offset(),j=c.outerWidth()-b.sizeDiff.width,h=c.outerHeight()-b.sizeDiff.height;b._helper&&!i.animate&&/relative/.test(e.css("position"))&&a(this).css({left:g.left-d.left-f.left,width:j,height:h});b._helper&&!i.animate&&/static/.test(e.css("position"))&&a(this).css({left:g.left-d.left-f.left,width:j,height:h})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),d=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof d.ghost=="string"?d.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable"),e=b.options;b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable"),e=b.options;b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});a.ui.plugin.add("resizable","grid",{resize:function(j){var b=a(this).data("resizable"),d=b.options,i=b.size,c=b.originalSize,g=b.originalPosition,h=b.axis,k=d._aspectRatio||j.shiftKey;d.grid=typeof d.grid=="number"?[d.grid,d.grid]:d.grid;var e=Math.round((i.width-c.width)/(d.grid[0]||1))*(d.grid[0]||1),f=Math.round((i.height-c.height)/(d.grid[1]||1))*(d.grid[1]||1);if(/^(se|s|e)$/.test(h)){b.size.width=c.width+e;b.size.height=c.height+f}else if(/^(ne)$/.test(h)){b.size.width=c.width+e;b.size.height=c.height+f;b.position.top=g.top-f}else if(/^(sw)$/.test(h)){b.size.width=c.width+e;b.size.height=c.height+f;b.position.left=g.left-e}else{b.size.width=c.width+e;b.size.height=c.height+f;b.position.top=g.top-f;b.position.left=g.left-e}}});var c=function(a){return parseInt(a,10)||0},b=function(a){return!isNaN(parseInt(a,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(c.options.filter,c.element[0]);b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:false,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})};this.refresh();this.selectees=b.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(b){var d=this;this.opos=[b.pageX,b.pageY];if(this.options.disabled)return;var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",b);a(c.appendTo).append(this.helper);this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0});c.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=true;if(!b.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;d._trigger("unselecting",b,{unselecting:c.element})}});a(b.target).parents().andSelf().each(function(){var c=a.data(this,"selectable-item");if(c){var e=!b.metaKey||!c.$element.hasClass("ui-selected");c.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting");c.unselecting=!e;c.selecting=e;c.selected=e;if(e)d._trigger("selecting",b,{selecting:c.element});else d._trigger("unselecting",b,{unselecting:c.element});return false}})},_mouseDrag:function(b){var g=this;this.dragged=true;if(this.options.disabled)return;var h=this.options,c=this.opos[0],d=this.opos[1],e=b.pageX,f=b.pageY;if(c>e){var i=e;e=c;c=i}if(d>f){var i=f;f=d;d=i}this.helper.css({left:c,top:d,width:e-c,height:f-d});this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!i||i.element==g.element[0])return;var j=false;if(h.tolerance=="touch")j=!(i.left>e||i.right<c||i.top>f||i.bottom<d);else if(h.tolerance=="fit")j=i.left>c&&i.right<e&&i.top>d&&i.bottom<f;if(j){if(i.selected){i.$element.removeClass("ui-selected");i.selected=false}if(i.unselecting){i.$element.removeClass("ui-unselecting");i.unselecting=false}if(!i.selecting){i.$element.addClass("ui-selecting");i.selecting=true;g._trigger("selecting",b,{selecting:i.element})}}else{if(i.selecting)if(b.metaKey&&i.startselected){i.$element.removeClass("ui-selecting");i.selecting=false;i.$element.addClass("ui-selected");i.selected=true}else{i.$element.removeClass("ui-selecting");i.selecting=false;if(i.startselected){i.$element.addClass("ui-unselecting");i.unselecting=true}g._trigger("unselecting",b,{unselecting:i.element})}if(i.selected)if(!b.metaKey&&!i.startselected){i.$element.removeClass("ui-selected");i.selected=false;i.$element.addClass("ui-unselecting");i.unselecting=true;g._trigger("unselecting",b,{unselecting:i.element})}}});return false},_mouseStop:function(b){var c=this;this.dragged=false;var d=this.options;a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;c._trigger("unselected",b,{unselected:d.element})});a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;c._trigger("selected",b,{selected:d.element})});this._trigger("stop",b);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.15"})})(jQuery);(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(c,b){if(c==="disabled"){this.options[c]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(c,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var b=null,e=this,g=a(c.target).parents().each(function(){if(a.data(this,"sortable-item")==e){b=a(this);return false}});if(a.data(c.target,"sortable-item")==e)b=a(c.target);if(!b)return false;if(this.options.handle&&!f){var d=false;a(this.options.handle,b).find("*").andSelf().each(function(){if(this==c.target)d=true});if(!d)return false}this.currentItem=b;this._removeCurrentsFromItems();return true},_mouseStart:function(b,g,e){var c=this.options,f=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();c.containment&&this._setContainment();if(c.cursor){if(a("body").css("cursor"))this._storedCursor=a("body").css("cursor");a("body").css("cursor",c.cursor)}if(c.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",c.opacity)}if(c.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",c.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",b,this._uiHash());!this._preserveHelperProportions&&this._cacheHelperProportions();if(!e)for(var d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",b,f._uiHash(this));if(a.ui.ddmanager)a.ui.ddmanager.current=this;a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(c.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-c.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(c.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(c.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-(c.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(c.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c)}this.positionAbs=this._convertPositionTo("absolute");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";for(var h=this.items.length-1;h>=0;h--){var f=this.items[h],e=f.item[0],g=this._intersectsWithPointer(f);if(!g)continue;if(e!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=e&&!a.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],e):true)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(c,f);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,e){if(!c)return;a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,c);if(this.options.revert){var b=this,d=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else this._clear(c,e);return false},cancel:function(){var c=this;if(this.dragging){this._mouseUp({target:null});if(this.options.helper=="original")this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");else this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,c._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,c._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev)a(this.domPosition.prev).after(this.currentItem);else a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};a(d).each(function(){var d=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);d&&c.push((b.key||d[1]+"[]")+"="+(b.key&&b.expression?d[1]:d[2]))});!c.length&&b.key&&c.push(b.key+"=");return c.join("&")},toArray:function(b){var d=this._getItemsAsjQuery(b&&b.connected),c=[];b=b||{};d.each(function(){c.push(a(b.item||this).attr(b.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,k=b+this.helperProportions.width,c=this.positionAbs.top,l=c+this.helperProportions.height,d=a.left,i=d+a.width,e=a.top,h=e+a.height,g=this.offset.click.top,f=this.offset.click.left,j=c+g>e&&c+g<h&&b+f>d&&b+f<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:d<b+this.helperProportions.width/2&&k-this.helperProportions.width/2<i&&e<c+this.helperProportions.height/2&&l-this.helperProportions.height/2<h},_intersectsWithPointer:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height),f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),g=e&&f,c=this._getDragVerticalDirection(),d=this._getDragHorizontalDirection();return!g?false:this.floating?d&&d=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(b){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height),f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width),d=this._getDragVerticalDirection(),c=this._getDragHorizontalDirection();return this.floating&&c?c=="right"&&f||c=="left"&&!f:d&&(d=="down"&&e||d=="up"&&!e)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(i){var j=this,g=[],d=[],e=this._connectWith();if(e&&i)for(var c=e.length-1;c>=0;c--)for(var h=a(e[c]),f=h.length-1;f>=0;f--){var b=a.data(h[f],"sortable");b&&b!=this&&!b.options.disabled&&d.push([a.isFunction(b.options.items)?b.options.items.call(b.element):a(b.options.items,b.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),b])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var c=d.length-1;c>=0;c--)d[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),a=0;a<this.items.length;a++)for(var b=0;b<c.length;b++)c[b]==this.items[a].item[0]&&this.items.splice(a,1)},_refreshItems:function(i){this.items=[];this.containers=[this];var m=this.items,n=this,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],i,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f)for(var c=f.length-1;c>=0;c--)for(var k=a(f[c]),d=k.length-1;d>=0;d--){var b=a.data(k[d],"sortable");if(b&&b!=this&&!b.options.disabled){e.push([a.isFunction(b.options.items)?b.options.items.call(b.element[0],i,{item:this.currentItem}):a(b.options.items,b.element),b]);this.containers.push(b)}}for(var c=e.length-1;c>=0;c--)for(var g=e[c][1],h=e[c][0],d=0,l=h.length;d<l;d++){var j=a(h[d]);j.data("sortable-item",g);m.push({item:j,instance:g,width:0,height:0,left:0,top:0})}},refreshPositions:function(f){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])continue;var e=this.options.toleranceElement?a(this.options.toleranceElement,c.item):c.item;if(!f){c.width=e.outerWidth();c.height=e.outerHeight()}var d=e.offset();c.left=d.left;c.top=d.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var b=this.containers.length-1;b>=0;b--){var d=this.containers[b].element.offset();this.containers[b].containerCache.left=d.left;this.containers[b].containerCache.top=d.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(e){var b=e||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var d=c.placeholder;c.placeholder={element:function(){var c=a(document.createElement(b.currentItem[0].nodeName)).addClass(d||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d)c.style.visibility="hidden";return c},update:function(e,a){if(d&&!c.forcePlaceholderSize)return;!a.height()&&a.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));!a.width()&&a.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}b.placeholder=a(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var g=null,b=null,c=this.containers.length-1;c>=0;c--){if(a.ui.contains(this.currentItem[0],this.containers[c].element[0]))continue;if(this._intersectsWith(this.containers[c].containerCache)){if(g&&a.ui.contains(this.containers[c].element[0],g.element[0]))continue;g=this.containers[c];b=c}else if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",d,this._uiHash(this));this.containers[c].containerCache.over=0}}if(!g)return;if(this.containers.length===1){this.containers[b]._trigger("over",d,this._uiHash(this));this.containers[b].containerCache.over=1}else if(this.currentContainer!=this.containers[b]){for(var i=1e4,f=null,h=this.positionAbs[this.containers[b].floating?"left":"top"],e=this.items.length-1;e>=0;e--){if(!a.ui.contains(this.containers[b].element[0],this.items[e].item[0]))continue;var j=this.items[e][this.containers[b].floating?"left":"top"];if(Math.abs(j-h)<i){i=Math.abs(j-h);f=this.items[e]}}if(!f&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[b];f?this._rearrange(d,f,null,true):this._rearrange(d,null,this.containers[b].element,true);this._trigger("change",d,this._uiHash());this.containers[b]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[b]._trigger("over",d,this._uiHash(this));this.containers[b].containerCache.over=1}},_createHelper:function(d){var c=this.options,b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;!b.parents("body").length&&a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]);if(b[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};(b[0].style.width==""||c.forceHelperSize)&&b.width(this.currentItem.width());(b[0].style.height==""||c.forceHelperSize)&&b.height(this.currentItem.height());return b},_adjustOffsetFromHelper:function(b){if(typeof b=="string")b=b.split(" ");if(a.isArray(b))b={left:+b[0],top:+b[1]||0};if("left"in b)this.offset.click.left=b.left+this.margins.left;if("right"in b)this.offset.click.left=this.helperProportions.width-b.right+this.margins.left;if("top"in b)this.offset.click.top=b.top+this.margins.top;if("bottom"in b)this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var b=a(c.containment)[0],d=a(c.containment).offset(),e=a(b).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,c){if(!c)c=this.position;var b=f=="absolute"?1:-1,g=this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*b)}},_generatePosition:function(e){var b=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(h[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=e.pageX,g=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(e.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(e.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(e.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){var d=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(d-this.offset.click.top<this.containment[1]||d-this.offset.click.top>this.containment[3])?d:!(d-this.offset.click.top<this.containment[1])?d-b.grid[1]:d+b.grid[1]:d;var c=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(c-this.offset.click.left<this.containment[0]||c-this.offset.click.left>this.containment[2])?c:!(c-this.offset.click.left<this.containment[0])?c-b.grid[0]:c+b.grid[0]:c}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(f,a,c,d){c?c[0].appendChild(this.placeholder[0]):a.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?a.item[0]:a.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var b=this,e=this.counter;window.setTimeout(function(){e==b.counter&&b.refreshPositions(!d)},0)},_clear:function(e,d){this.reverting=false;var c=[],f=this;!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&c.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))});(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d&&c.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){!d&&c.push(function(a){this._trigger("remove",a,this._uiHash())});for(var b=this.containers.length-1;b>=0;b--)if(a.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!d){c.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[b]));c.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[b]))}}for(var b=this.containers.length-1;b>=0;b--){!d&&c.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[b]));if(this.containers[b].containerCache.over){c.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",e,this._uiHash());for(var b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}return false}!d&&this._trigger("beforeStop",e,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(var b=0;b<c.length;b++)c[b].call(this,e);this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}});a.extend(a.ui.sortable,{version:"1.8.15"})})(jQuery);jQuery.effects||function(a,c){a.effects={};a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,b){a.fx.step[b]=function(a){if(!a.colorInit){a.start=l(a.elem,b);a.end=i(a.end);a.colorInit=true}a.elem.style[b]="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)+")"}});function i(c){var b;return c&&c.constructor==Array&&c.length==3?c:(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))?[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]:(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))?[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55]:(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))?[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]:(b=/rgba\(0, 0, 0, 0\)/.exec(c))?h.transparent:h[a.trim(c).toLowerCase()]}function l(c,d){var b;do{b=a.curCSS(c,d);if(b!=""&&b!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return i(b)}var h={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]},e=["add","remove","toggle"],j={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function f(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,c={},b,d;if(a&&a.length&&a[0]&&a[a[0]]){var e=a.length;while(e--){b=a[e];if(typeof a[b]=="string"){d=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c[d]=a[b]}}}else for(b in a)if(typeof a[b]==="string")c[b]=a[b];return c}function g(c){var b,d;for(b in c){d=c[b];if(d==null||a.isFunction(d)||b in j||/scrollbar/.test(b)||!/color/i.test(b)&&isNaN(parseFloat(d)))delete c[b]}return c}function k(d,b){var c={_:0},a;for(a in b)if(d[a]!=b[a])c[a]=b[a];return c}a.effects.animateClass=function(c,h,b,d){if(a.isFunction(b)){d=b;b=null}return this.queue(function(){var i=a(this),j=i.attr("style")||" ",m=g(f.call(this)),l,n=i.attr("class");a.each(e,function(b,a){c[a]&&i[a+"Class"](c[a])});l=g(f.call(this));i.attr("class",n);i.animate(k(m,l),{queue:false,duration:h,easing:b,complete:function(){a.each(e,function(b,a){c[a]&&i[a+"Class"](c[a])});if(typeof i.attr("style")=="object"){i.attr("style").cssText="";i.attr("style").cssText=j}else i.attr("style",j);d&&d.apply(this,arguments);a.dequeue(this)}})})};a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,e,d){return c?a.effects.animateClass.apply(this,[{add:b},c,e,d]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,e,d){return c?a.effects.animateClass.apply(this,[{remove:b},c,e,d]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(d,b,e,f,g){return typeof b=="boolean"||b===c?!e?this._toggleClass(d,b):a.effects.animateClass.apply(this,[b?{add:d}:{remove:d},e,f,g]):a.effects.animateClass.apply(this,[{toggle:d},b,e,f])},switchClass:function(d,f,e,c,b){return a.effects.animateClass.apply(this,[{add:f,remove:d},e,c,b])}});a.extend(a.effects,{version:"1.8.15",save:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.data("ec.storage."+b[a],c[0].style[b[a]])},restore:function(c,b){for(var a=0;a<b.length;a++)b[a]!==null&&c.css(b[a],c.data("ec.storage."+b[a]))},setMode:function(b,a){if(a=="toggle")a=b.is(":hidden")?"show":"hide";return a},getBaseline:function(c,d){var b,a;switch(c[0]){case"top":b=0;break;case"middle":b=.5;break;case"bottom":b=1;break;default:b=c[0]/d.height}switch(c[1]){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=c[1]/d.width}return{x:a,y:b}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(true),height:b.outerHeight(true),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});b.wrap(d);d=b.parent();if(b.css("position")=="static"){d.css({position:"relative"});b.css({position:"relative"})}else{a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")});a.each(["top","left","bottom","right"],function(d,a){c[a]=b.css(a);if(isNaN(parseInt(c[a],10)))c[a]="auto"});b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return d.css(c).show()},removeWrapper:function(a){return a.parent().is(".ui-effects-wrapper")?a.parent().replaceWith(a):a},setTransition:function(c,e,d,b){b=b||{};a.each(e,function(e,a){unit=c.cssUnit(a);if(unit[0]>0)b[a]=unit[0]*d+unit[1]});return b}});function b(e,b,c,d){if(typeof e=="object"){d=b;c=null;b=e;e=b.effect}if(a.isFunction(b)){d=b;c=null;b={}}if(typeof b=="number"||a.fx.speeds[b]){d=c;c=b;b={}}if(a.isFunction(c)){d=c;c=null}b=b||{};c=c||b.duration;c=a.fx.off?0:typeof c=="number"?c:c in a.fx.speeds?a.fx.speeds[c]:a.fx.speeds._default;d=d||b.complete;return[e,b,c,d]}function d(b){return!b||typeof b==="number"||a.fx.speeds[b]?true:typeof b==="string"&&!a.effects[b]?true:false}a.fn.extend({effect:function(g){var d=b.apply(this,arguments),c={options:d[1],duration:d[2],callback:d[3]},f=c.options.mode,e=a.effects[g];return a.fx.off||!e?f?this[f](c.duration,c.callback):this.each(function(){c.callback&&c.callback.call(this)}):e.call(this,c)},_show:a.fn.show,show:function(c){if(d(c))return this._show.apply(this,arguments);else{var a=b.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:a.fn.hide,hide:function(c){if(d(c))return this._hide.apply(this,arguments);else{var a=b.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:a.fn.toggle,toggle:function(c){if(d(c)||typeof c==="boolean"||a.isFunction(c))return this.__toggle.apply(this,arguments);else{var e=b.apply(this,arguments);e[1].mode="toggle";return this.effect.apply(this,e)}},cssUnit:function(d){var b=this.css(d),c=[];a.each(["em","px","%","pt"],function(d,a){if(b.indexOf(a)>0)c=[parseFloat(b),a]});return c}});a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(f,e,b,c,d){return a.easing[a.easing.def](f,e,b,c,d)},easeInQuad:function(e,a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(e,a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},easeInCubic:function(e,a,b,c,d){return c*(a/=d)*a*a+b},easeOutCubic:function(e,a,b,c,d){return c*((a=a/d-1)*a*a+1)+b},easeInOutCubic:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a+b:c/2*((a-=2)*a*a+2)+b},easeInQuart:function(e,a,b,c,d){return c*(a/=d)*a*a*a+b},easeOutQuart:function(e,a,b,c,d){return-c*((a=a/d-1)*a*a*a-1)+b},easeInOutQuart:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a+b:-c/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(e,a,b,c,d){return c*(a/=d)*a*a*a*a+b},easeOutQuint:function(e,a,b,c,d){return c*((a=a/d-1)*a*a*a*a+1)+b},easeInOutQuint:function(e,a,b,c,d){return(a/=d/2)<1?c/2*a*a*a*a*a+b:c/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(e,d,b,a,c){return-a*Math.cos(d/c*(Math.PI/2))+a+b},easeOutSine:function(e,d,a,b,c){return b*Math.sin(d/c*(Math.PI/2))+a},easeInOutSine:function(e,d,a,b,c){return-b/2*(Math.cos(Math.PI*d/c)-1)+a},easeInExpo:function(e,b,a,c,d){return b==0?a:c*Math.pow(2,10*(b/d-1))+a},easeOutExpo:function(e,d,a,b,c){return d==c?a+b:b*(-Math.pow(2,-10*d/c)+1)+a},easeInOutExpo:function(e,a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(e,a,b,c,d){return-c*(Math.sqrt(1-(a/=d)*a)-1)+b},easeOutCirc:function(e,a,b,c,d){return c*Math.sqrt(1-(a=a/d-1)*a)+b},easeInOutCirc:function(e,a,b,c,d){return(a/=d/2)<1?-c/2*(Math.sqrt(1-a*a)-1)+b:c/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return-(c*Math.pow(2,10*(d-=1))*Math.sin((d*f-g)*2*Math.PI/b))+e},easeOutElastic:function(h,d,e,a,f){var g=1.70158,b=0,c=a;if(d==0)return e;if((d/=f)==1)return e+a;if(!b)b=f*.3;if(c<Math.abs(a)){c=a;var g=b/4}else var g=b/(2*Math.PI)*Math.asin(a/c);return c*Math.pow(2,-10*d)*Math.sin((d*f-g)*2*Math.PI/b)+a+e},easeInOutElastic:function(h,a,e,b,f){var g=1.70158,c=0,d=b;if(a==0)return e;if((a/=f/2)==2)return e+b;if(!c)c=f*.3*1.5;if(d<Math.abs(b)){d=b;var g=c/4}else var g=c/(2*Math.PI)*Math.asin(b/d);return a<1?-.5*d*Math.pow(2,10*(a-=1))*Math.sin((a*f-g)*2*Math.PI/c)+e:d*Math.pow(2,-10*(a-=1))*Math.sin((a*f-g)*2*Math.PI/c)*.5+b+e},easeInBack:function(g,b,d,e,f,a){if(a==c)a=1.70158;return e*(b/=f)*b*((a+1)*b-a)+d},easeOutBack:function(g,b,d,e,f,a){if(a==c)a=1.70158;return e*((b=b/f-1)*b*((a+1)*b+a)+1)+d},easeInOutBack:function(g,a,d,e,f,b){if(b==c)b=1.70158;return(a/=f/2)<1?e/2*a*a*(((b*=1.525)+1)*a-b)+d:e/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)+d},easeInBounce:function(f,e,d,b,c){return b-a.easing.easeOutBounce(f,c-e,0,b,c)+d},easeOutBounce:function(e,a,b,c,d){return(a/=d)<1/2.75?c*7.5625*a*a+b:a<2/2.75?c*(7.5625*(a-=1.5/2.75)*a+.75)+b:a<2.5/2.75?c*(7.5625*(a-=2.25/2.75)*a+.9375)+b:c*(7.5625*(a-=2.625/2.75)*a+.984375)+b},easeInOutBounce:function(f,d,e,c,b){return d<b/2?a.easing.easeInBounce(f,d*2,0,c,b)*.5+e:a.easing.easeOutBounce(f,d*2-b,0,c,b)*.5+c*.5+e}})}(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var c=a(this),h=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),g=b.options.direction||"vertical";a.effects.save(c,h);c.show();var d=a.effects.createWrapper(c).css({overflow:"hidden"}),i=g=="vertical"?"height":"width",j=g=="vertical"?d.height():d.width();e=="show"&&d.css(i,0);var f={};f[i]=e=="show"?j:0;d.animate(f,b.duration,b.options.easing,function(){e=="hide"&&c.hide();a.effects.restore(c,h);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(b){return this.queue(function(){var c=a(this),m=["position","top","bottom","left","right"],g=a.effects.setMode(c,b.options.mode||"effect"),l=b.options.direction||"up",d=b.options.distance||20,n=b.options.times||5,h=b.duration||250;/show|hide/.test(g)&&m.push("opacity");a.effects.save(c,m);c.show();a.effects.createWrapper(c);var e=l=="up"||l=="down"?"top":"left",f=l=="up"||l=="left"?"pos":"neg",d=b.options.distance||(e=="top"?c.outerHeight({margin:true})/3:c.outerWidth({margin:true})/3);g=="show"&&c.css("opacity",0).css(e,f=="pos"?-d:d);if(g=="hide")d=d/(n*2);if(g!="hide")n--;if(g=="show"){var k={opacity:1};k[e]=(f=="pos"?"+=":"-=")+d;c.animate(k,h/2,b.options.easing);d=d/2;n--}for(var o=0;o<n;o++){var i={},j={};i[e]=(f=="pos"?"-=":"+=")+d;j[e]=(f=="pos"?"+=":"-=")+d;c.animate(i,h/2,b.options.easing).animate(j,h/2,b.options.easing);d=g=="hide"?d*2:d/2}if(g=="hide"){var k={opacity:0};k[e]=(f=="pos"?"-=":"+=")+d;c.animate(k,h/2,b.options.easing,function(){c.hide();a.effects.restore(c,m);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)})}else{var i={},j={};i[e]=(f=="pos"?"-=":"+=")+d;j[e]=(f=="pos"?"+=":"-=")+d;c.animate(i,h/2,b.options.easing).animate(j,h/2,b.options.easing,function(){a.effects.restore(c,m);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)})}c.queue("fx",function(){c.dequeue()});c.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var c=a(this),j=["position","top","bottom","left","right","height","width"],e=a.effects.setMode(c,b.options.mode||"hide"),h=b.options.direction||"vertical";a.effects.save(c,j);c.show();var k=a.effects.createWrapper(c).css({overflow:"hidden"}),d=c[0].tagName=="IMG"?k:c,f={size:h=="vertical"?"height":"width",position:h=="vertical"?"top":"left"},i=h=="vertical"?d.height():d.width();if(e=="show"){d.css(f.size,0);d.css(f.position,i/2)}var g={};g[f.size]=e=="show"?i:0;g[f.position]=e=="show"?0:i/2;d.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var c=a(this),j=["position","top","bottom","left","right","opacity"],e=a.effects.setMode(c,b.options.mode||"hide"),d=b.options.direction||"left";a.effects.save(c,j);c.show();a.effects.createWrapper(c);var h=d=="up"||d=="down"?"top":"left",g=d=="up"||d=="left"?"pos":"neg",f=b.options.distance||(h=="top"?c.outerHeight({margin:true})/2:c.outerWidth({margin:true})/2);e=="show"&&c.css("opacity",0).css(h,g=="pos"?-f:f);var i={opacity:e=="show"?1:0};i[h]=(e=="show"?g=="pos"?"+=":"-=":g=="pos"?"-=":"+=")+f;c.animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var c=a(this).show().css("visibility","hidden"),i=c.offset();i.top-=parseInt(c.css("marginTop"),10)||0;i.left-=parseInt(c.css("marginLeft"),10)||0;for(var j=c.outerWidth(true),h=c.outerHeight(true),f=0;f<e;f++)for(var g=0;g<d;g++)c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-g*(j/d),top:-f*(h/e)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j/d,height:h/e,left:i.left+g*(j/d)+(b.options.mode=="show"?(g-Math.floor(d/2))*(j/d):0),top:i.top+f*(h/e)+(b.options.mode=="show"?(f-Math.floor(e/2))*(h/e):0),opacity:b.options.mode=="show"?0:1}).animate({left:i.left+g*(j/d)+(b.options.mode=="show"?0:(g-Math.floor(d/2))*(j/d)),top:i.top+f*(h/e)+(b.options.mode=="show"?0:(f-Math.floor(e/2))*(h/e)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?c.css({visibility:"visible"}):c.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(c[0]);c.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var c=a(this),n=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.size||15,j=!!b.options.horizFirst,l=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,n);c.show();var d=a.effects.createWrapper(c).css({overflow:"hidden"}),k=e=="show"!=j,o=k?["width","height"]:["height","width"],g=k?[d.width(),d.height()]:[d.height(),d.width()],m=/([0-9]+)%/.exec(f);if(m)f=parseInt(m[1],10)/100*g[e=="hide"?0:1];e=="show"&&d.css(j?{height:0,width:f}:{height:f,width:0});var h={},i={};h[o[0]]=e=="show"?g[0]:f;i[o[1]]=e=="show"?g[1]:0;d.animate(h,l,b.options.easing).animate(i,l,b.options.easing,function(){e=="hide"&&c.hide();a.effects.restore(c,n);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),f=["backgroundImage","backgroundColor","opacity"],d=a.effects.setMode(c,b.options.mode||"show"),e={backgroundColor:c.css("backgroundColor")};if(d=="hide")e.opacity=0;a.effects.save(c,f);c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(e,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){d=="hide"&&c.hide();a.effects.restore(c,f);d=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:a.fx.speeds._default/2,isVisible=c.is(":visible"),animateTo=0;if(!isVisible){c.css("opacity",0).show();animateTo=1}if(d=="hide"&&isVisible||d=="show"&&!isVisible)times--;for(var e=0;e<times;e++){c.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}c.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&c.hide();b.callback&&b.callback.apply(this,arguments)});c.queue("fx",function(){c.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(b){return this.queue(function(){var c=a(this),e=a.effects.setMode(c,b.options.mode||"hide"),f=parseInt(b.options.percent,10)||150,g=f/100,d={height:c.height(),width:c.width()};a.extend(b.options,{fade:true,mode:e,percent:e=="hide"?f:100,from:e=="hide"?d:{height:d.height*g,width:d.width*g}});c.effect("scale",b.options,b.duration,b.callback);c.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var c=a(this),d=a.extend(true,{},b.options),e=a.effects.setMode(c,b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:e=="hide"?0:100),g=b.options.direction||"both",j=b.options.origin;if(e!="effect"){d.origin=j||["middle","center"];d.restore=true}var f={height:c.height(),width:c.width()};c.from=b.options.from||(e=="show"?{height:0,width:0}:f);var i={y:g!="horizontal"?h/100:1,x:g!="vertical"?h/100:1};c.to={height:f.height*i.y,width:f.width*i.x};if(b.options.fade){if(e=="show"){c.from.opacity=0;c.to.opacity=1}if(e=="hide"){c.from.opacity=1;c.to.opacity=0}}d.from=c.from;d.to=c.to;d.mode=e;c.effect("size",d,b.duration,b.callback);c.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),f=["position","top","bottom","left","right","width","height","overflow","opacity"],o=["position","top","bottom","left","right","overflow","opacity"],m=["width","height","overflow"],l=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],g=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=a.effects.setMode(c,b.options.mode||"effect"),k=b.options.restore||false,i=b.options.scale||"both",n=b.options.origin,e={height:c.height(),width:c.width()};c.from=b.options.from||e;c.to=b.options.to||e;if(n){var j=a.effects.getBaseline(n,e);c.from.top=(e.height-c.from.height)*j.y;c.from.left=(e.width-c.from.width)*j.x;c.to.top=(e.height-c.to.height)*j.y;c.to.left=(e.width-c.to.width)*j.x}var d={from:{y:c.from.height/e.height,x:c.from.width/e.width},to:{y:c.to.height/e.height,x:c.to.width/e.width}};if(i=="box"||i=="both"){if(d.from.y!=d.to.y){f=f.concat(h);c.from=a.effects.setTransition(c,h,d.from.y,c.from);c.to=a.effects.setTransition(c,h,d.to.y,c.to)}if(d.from.x!=d.to.x){f=f.concat(g);c.from=a.effects.setTransition(c,g,d.from.x,c.from);c.to=a.effects.setTransition(c,g,d.to.x,c.to)}}if(i=="content"||i=="both")if(d.from.y!=d.to.y){f=f.concat(l);c.from=a.effects.setTransition(c,l,d.from.y,c.from);c.to=a.effects.setTransition(c,l,d.to.y,c.to)}a.effects.save(c,k?f:o);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(i=="content"||i=="both"){h=h.concat(["marginTop","marginBottom"]).concat(l);g=g.concat(["marginLeft","marginRight"]);m=f.concat(h).concat(g);c.find("*[width]").each(function(){child=a(this);k&&a.effects.save(child,m);var c={height:child.height(),width:child.width()};child.from={height:c.height*d.from.y,width:c.width*d.from.x};child.to={height:c.height*d.to.y,width:c.width*d.to.x};if(d.from.y!=d.to.y){child.from=a.effects.setTransition(child,h,d.from.y,child.from);child.to=a.effects.setTransition(child,h,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=a.effects.setTransition(child,g,d.from.x,child.from);child.to=a.effects.setTransition(child,g,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){k&&a.effects.restore(child,m)})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){c.to.opacity===0&&c.css("opacity",c.from.opacity);p=="hide"&&c.hide();a.effects.restore(c,k?f:o);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var c=a(this),l=["position","top","bottom","left","right"],o=a.effects.setMode(c,b.options.mode||"effect"),e=b.options.direction||"left",h=b.options.distance||20,n=b.options.times||3,d=b.duration||b.options.duration||140;a.effects.save(c,l);c.show();a.effects.createWrapper(c);var j=e=="up"||e=="down"?"top":"left",i=e=="up"||e=="left"?"pos":"neg",g={},f={},k={};g[j]=(i=="pos"?"-=":"+=")+h;f[j]=(i=="pos"?"+=":"-=")+h*2;k[j]=(i=="pos"?"-=":"+=")+h*2;c.animate(g,d,b.options.easing);for(var m=1;m<n;m++)c.animate(f,d,b.options.easing).animate(k,d,b.options.easing);c.animate(f,d,b.options.easing).animate(g,d/2,b.options.easing,function(){a.effects.restore(c,l);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments)});c.queue("fx",function(){c.dequeue()});c.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var c=a(this),j=["position","top","bottom","left","right"],g=a.effects.setMode(c,b.options.mode||"show"),e=b.options.direction||"left";a.effects.save(c,j);c.show();a.effects.createWrapper(c).css({overflow:"hidden"});var h=e=="up"||e=="down"?"top":"left",f=e=="up"||e=="left"?"pos":"neg",d=b.options.distance||(h=="top"?c.outerHeight({margin:true}):c.outerWidth({margin:true}));g=="show"&&c.css(h,f=="pos"?isNaN(d)?"-"+d:-d:d);var i={};i[h]=(g=="show"?f=="pos"?"+=":"-=":f=="pos"?"-=":"+=")+d;c.animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){g=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var c=a(this),d=a(b.options.to),f=d.offset(),g={top:f.top,left:f.left,height:d.innerHeight(),width:d.innerWidth()},e=c.offset(),h=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:e.top,left:e.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){h.remove();b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0;b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-focus")});b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");if(e.length)b.active=e;else b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");b.active.next().addClass("ui-accordion-content-active");b._createIcons();b.resize();b.element.attr("role","tablist");b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel");b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();if(!b.active.length)b.headers.eq(0).attr("tabIndex",0);else b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0});!a.browser.safari&&b.headers.find("a").attr("tabIndex",-1);c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this);a.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");(b.autoHeight||b.fillHeight)&&c.css("height","");return a.Widget.prototype.destroy.call(this)},_setOption:function(c,b){a.Widget.prototype._setOption.apply(this,arguments);c=="active"&&this.activate(b);if(c=="icons"){this._destroyIcons();b&&this._createIcons()}c=="disabled"&&this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(this.options.disabled||b.altKey||b.ctrlKey)return;var c=a.ui.keyCode,e=this.headers.length,f=this.headers.index(b.target),d=false;switch(b.keyCode){case c.RIGHT:case c.DOWN:d=this.headers[(f+1)%e];break;case c.LEFT:case c.UP:d=this.headers[(f-1+e)%e];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target);b.preventDefault()}if(d){a(b.target).attr("tabIndex",-1);a(d).attr("tabIndex",0);d.focus();return false}return true},resize:function(){var c=this.options,b;if(c.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else if(c.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,a(this).height("").height())}).height(b)}return this},activate:function(b){this.options.active=b;var a=this._findActive(b)[0];this._clickHandler({target:a},a);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(g,j){var b=this.options;if(b.disabled)return;if(!g.target){if(!b.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(b.icons.headerSelected).addClass(b.icons.header);this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),h={options:b,newHeader:a([]),oldHeader:b.active,newContent:a([]),oldContent:e},f=this.active=a([]);this._toggle(f,e,h);return}var c=a(g.currentTarget||j),d=c[0]===this.active[0];b.active=b.collapsible&&d?false:this.headers.index(c);if(this.running||!b.collapsible&&d)return;var i=this.active,f=c.next(),e=this.active.next(),h={options:b,newHeader:d&&b.collapsible?a([]):c,oldHeader:this.active,newContent:d&&b.collapsible?a([]):f,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(c[0]);this.active=d?a([]):c;this._toggle(f,e,h,d,k);i.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(b.icons.headerSelected).addClass(b.icons.header);if(!d){c.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(b.icons.header).addClass(b.icons.headerSelected);c.next().addClass("ui-accordion-content-active")}return},_toggle:function(f,e,m,j,k){var c=this,b=c.options;c.toShow=f;c.toHide=e;c.data=m;var i=function(){return!c?void 0:c._completed.apply(c,arguments)};c._trigger("changestart",null,c.data);c.running=e.size()===0?f.size():e.size();if(b.animated){var g={};if(b.collapsible&&j)g={toShow:a([]),toHide:e,complete:i,down:k,autoHeight:b.autoHeight||b.fillSpace};else g={toShow:f,toHide:e,complete:i,down:k,autoHeight:b.autoHeight||b.fillSpace};if(!b.proxied)b.proxied=b.animated;if(!b.proxiedDuration)b.proxiedDuration=b.duration;b.animated=a.isFunction(b.proxied)?b.proxied(g):b.proxied;b.duration=a.isFunction(b.proxiedDuration)?b.proxiedDuration(g):b.proxiedDuration;var h=a.ui.accordion.animations,l=b.duration,d=b.animated;if(d&&!h[d]&&!a.easing[d])d="slide";if(!h[d])h[d]=function(a){this.slide(a,{easing:d,duration:l||700})};h[d](g)}else{if(b.collapsible&&j)f.toggle();else{e.hide();f.show()}i(true)}e.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();f.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(this.running)return;this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.8.15",animations:{slide:function(b,h){b=a.extend({easing:"swing",duration:300},b,h);if(!b.toHide.size()){b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);return}if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var i=b.toShow.css("overflow"),f=0,d={},g={},j=["height","paddingTop","paddingBottom"],e,c=b.toShow;e=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));a.each(j,function(f,c){g[c]="hide";var e=(""+a.css(b.toShow[0],c)).match(/^([\d+-.]+)(.*)$/);d[c]={value:e[1],unit:e[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(c,a){if(a.prop=="height")f=a.end-a.start===0?0:(a.now-a.start)/(a.end-a.start);b.toShow[0].style[a.prop]=f*d[a.prop].value+d[a.prop].unit},duration:b.duration,easing:b.easing,complete:function(){!b.autoHeight&&b.toShow.css("height","");b.toShow.css({width:e,overflow:i});b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);(function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,d=this.element[0].ownerDocument,c;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(d){if(b.options.disabled||b.element.propAttr("readOnly"))return;c=false;var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:b._move("previousPage",d);break;case e.PAGE_DOWN:b._move("nextPage",d);break;case e.UP:b._move("previous",d);d.preventDefault();break;case e.DOWN:b._move("next",d);d.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:if(b.menu.active){c=true;d.preventDefault()}case e.TAB:if(!b.menu.active)return;b.menu.select(d);break;case e.ESCAPE:b.element.val(b.term);b.close(d);break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){if(b.term!=b.element.val()){b.selectedItem=null;b.search(null,d)}},b.options.delay)}}).bind("keypress.autocomplete",function(a){if(c){c=false;a.preventDefault()}}).bind("focus.autocomplete",function(){if(b.options.disabled)return;b.selectedItem=null;b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(b.options.disabled)return;clearTimeout(b.searching);b.closing=setTimeout(function(){b.close(a);b._change(a)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",d)[0]).mousedown(function(d){var c=b.menu.element[0];!a(d.target).closest(".ui-menu-item").length&&setTimeout(function(){a(document).one("mousedown",function(d){d.target!==b.element[0]&&d.target!==c&&!a.ui.contains(c,d.target)&&b.close()})},1);setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,d){var c=d.item.data("item.autocomplete");if(false!==b._trigger("focus",a,{item:c}))/^key/.test(a.originalEvent.type)&&b.element.val(c.value)},selected:function(e,f){var a=f.item.data("item.autocomplete"),c=b.previous;if(b.element[0]!==d.activeElement){b.element.focus();b.previous=c;setTimeout(function(){b.previous=c;b.selectedItem=a},1)}false!==b._trigger("select",e,{item:a})&&b.element.val(a.value);b.term=b.element.val();b.close(e);b.selectedItem=a},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");a.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();a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);b==="source"&&this._initSource();b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]);b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var c=this,d,e;if(a.isArray(this.options.source)){d=this.options.source;this.source=function(c,b){b(a.ui.autocomplete.filter(d,c.term))}}else if(typeof this.options.source==="string"){e=this.options.source;this.source=function(f,d){c.xhr&&c.xhr.abort();c.xhr=a.ajax({url:e,data:f,dataType:"json",autocompleteRequest:++b,success:function(a){this.autocompleteRequest===b&&d(a)},error:function(){this.autocompleteRequest===b&&d([])}})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);return this._trigger("search",b)===false?void 0:this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.pending--;!this.pending&&this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return typeof b==="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(c){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,c);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(a.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(d,b){var c=this;a.each(b,function(b,a){c._renderItem(d,a)})},_renderItem:function(c,b){return a("<li></li>").data("item.autocomplete",b).append(a("<a></a>").text(b.label)).appendTo(c)},_move:function(a,b){if(!this.menu.element.is(":visible")){this.search(null,b);return}if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate();return}this.menu[a](b)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(c,d){var b=new RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(c,function(a){return b.test(a.label||a.value||a)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length)return;c.preventDefault();b.select(c)});this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(e,b){this.deactivate();if(this.hasScroll()){var a=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),c=this.element.height();if(a<0)this.element.scrollTop(d+a);else a>=c&&this.element.scrollTop(d+a-c+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:b})},deactivate:function(){if(!this.active)return;this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},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(d,b,a){if(!this.active){this.activate(a,this.element.children(b));return}var c=this.active[d+"All"](".ui-menu-item").eq(0);if(c.length)this.activate(a,c);else this.activate(a,this.element.children(b))},nextPage:function(c){if(this.hasScroll()){if(!this.active||this.last()){this.activate(c,this.element.children(".ui-menu-item:first"));return}var e=this.active.offset().top,d=this.element.height(),b=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-e-d+a(this).height();return b<10&&b>-10});if(!b.length)b=this.element.children(".ui-menu-item:last");this.activate(c,b)}else this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var d=this.active.offset().top,c=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d+c-a(this).height();return b<10&&b>-10});if(!result.length)result=this.element.children(".ui-menu-item:first");this.activate(b,result)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})})(jQuery);(function(a){var c,g,h,b,d="ui-button ui-widget ui-state-default ui-corner-all",j="ui-state-hover ui-state-active ",e="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",i=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},f=function(c){var d=c.name,e=c.form,b=a([]);if(d)if(e)b=a(e).find("[name='"+d+"']");else b=a("[name='"+d+"']",c.ownerDocument).filter(function(){return!this.form});return b};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",i);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var j=this,e=this.options,k=this.type==="checkbox"||this.type==="radio",m="ui-state-hover"+(!k?" ui-state-active":""),l="ui-state-focus";if(e.label===null)e.label=this.buttonElement.html();if(this.element.is(":disabled"))e.disabled=true;this.buttonElement.addClass(d).attr("role","button").bind("mouseenter.button",function(){if(e.disabled)return;a(this).addClass("ui-state-hover");this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave.button",function(){if(e.disabled)return;a(this).removeClass(m)}).bind("click.button",function(a){if(e.disabled){a.preventDefault();a.stopImmediatePropagation()}});this.element.bind("focus.button",function(){j.buttonElement.addClass(l)}).bind("blur.button",function(){j.buttonElement.removeClass(l)});if(k){this.element.bind("change.button",function(){if(b)return;j.refresh()});this.buttonElement.bind("mousedown.button",function(a){if(e.disabled)return;b=false;g=a.pageX;h=a.pageY}).bind("mouseup.button",function(a){if(e.disabled)return;if(g!==a.pageX||h!==a.pageY)b=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(e.disabled||b)return false;a(this).toggleClass("ui-state-active");j.buttonElement.attr("aria-pressed",j.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(e.disabled||b)return false;a(this).addClass("ui-state-active");j.buttonElement.attr("aria-pressed","true");var c=j.element[0];f(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(e.disabled)return false;a(this).addClass("ui-state-active");c=this;a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(e.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(b){if(e.disabled)return false;(b.keyCode==a.ui.keyCode.SPACE||b.keyCode==a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",e.disabled);this._resetButton()},_determineButtonType:function(){if(this.element.is(":checkbox"))this.type="checkbox";else if(this.element.is(":radio"))this.type="radio";else if(this.element.is("input"))this.type="input";else this.type="button";if(this.type==="checkbox"||this.type==="radio"){var a=this.element.parents().filter(":last"),b="label[for="+this.element.attr("id")+"]";this.buttonElement=a.find(b);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(b);if(!this.buttonElement.length)this.buttonElement=a.find(b)}this.element.addClass("ui-helper-hidden-accessible");var c=this.element.is(":checked");c&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",c)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(d+" "+j+" "+e).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());!this.hasTitle&&this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(c,b){a.Widget.prototype._setOption.apply(this,arguments);if(c==="disabled"){if(b)this.element.propAttr("disabled",true);else this.element.propAttr("disabled",false);return}this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")f(this.element[0]).each(function(){if(a(this).is(":checked"))a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true");else a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")if(this.element.is(":checked"))this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true");else this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var c=this.buttonElement.removeClass(e),g=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(c.empty()).text(),b=this.options.icons,f=b.primary&&b.secondary,d=[];if(b.primary||b.secondary){this.options.text&&d.push("ui-button-text-icon"+(f?"s":b.primary?"-primary":"-secondary"));b.primary&&c.prepend("<span class='ui-button-icon-primary ui-icon "+b.primary+"'></span>");b.secondary&&c.append("<span class='ui-button-icon-secondary ui-icon "+b.secondary+"'></span>");if(!this.options.text){d.push(f?"ui-button-icons-only":"ui-button-icon-only");!this.hasTitle&&c.attr("title",g)}}else d.push("ui-button-text-only");c.addClass(d.join(" "))}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(b?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);(function(a,d){a.extend(a.ui,{datepicker:{version:"1.8.15"}});var b="datepicker",c=+new Date,f;function g(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;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:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,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:true,showButtonPanel:false,autoSize:false,disabled:false};a.extend(this._defaults,this.regional[""]);this.dpDiv=h(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}a.extend(g.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){e(this._defaults,a||{});return this},_attachDatepicker:function(b,i){var c=null;for(var e in this._defaults){var d=b.getAttribute("date:"+e);if(d){c=c||{};try{c[e]=eval(d)}catch(j){c[e]=d}}}var f=b.nodeName.toLowerCase(),h=f=="div"||f=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var g=this._newInst(a(b),h);g.settings=a.extend({},i||{},c||{});if(f=="input")this._connectDatepicker(b,g);else h&&this._inlineDatepicker(b,g)},_newInst:function(c,b){var d=c[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:d,input:c,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:h(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(d,c){var e=a(d);c.append=a([]);c.trigger=a([]);if(e.hasClass(this.markerClassName))return;this._attachments(e,c);e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(d,b,a){c.settings[b]=a}).bind("getData.datepicker",function(b,a){return this._get(c,a)});this._autoSize(c);a.data(d,b,c);c.settings.disabled&&this._disableDatepicker(d)},_attachments:function(c,b){var g=this._get(b,"appendText"),h=this._get(b,"isRTL");b.append&&b.append.remove();if(g){b.append=a('<span class="'+this._appendClass+'">'+g+"</span>");c[h?"before":"after"](b.append)}c.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");(e=="focus"||e=="both")&&c.focus(this._showDatepicker);if(e=="button"||e=="both"){var d=this._get(b,"buttonText"),f=this._get(b,"buttonImage");b.trigger=a(this._get(b,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:d,title:d}):a('<button type="button"></button>').addClass(this._triggerClass).html(f==""?d:a("<img/>").attr({src:f,alt:d,title:d})));c[h?"before":"after"](b.trigger);b.trigger.click(function(){if(a.datepicker._datepickerShowing&&a.datepicker._lastInput==c[0])a.datepicker._hideDatepicker();else a.datepicker._showDatepicker(c[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var d=function(b){for(var d=0,c=0,a=0;a<b.length;a++)if(b[a].length>d){d=b[a].length;c=a}return c};b.setMonth(d(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(d(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(d,c){var e=a(d);if(e.hasClass(this.markerClassName))return;e.addClass(this.markerClassName).append(c.dpDiv).bind("setData.datepicker",function(d,b,a){c.settings[b]=a}).bind("getData.datepicker",function(b,a){return this._get(c,a)});a.data(d,b,c);this._setDate(c,this._getDefaultDate(c),true);this._updateDatepicker(c);this._updateAlternate(c);c.settings.disabled&&this._disableDatepicker(d);c.dpDiv.css("display","block")},_dialogDatepicker:function(n,d,i,j,f){var c=this._dialogInst;if(!c){this.uuid+=1;var m="dp"+this.uuid;this._dialogInput=a('<input type="text" id="'+m+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);a("body").append(this._dialogInput);c=this._dialogInst=this._newInst(this._dialogInput,false);c.settings={};a.data(this._dialogInput[0],b,c)}e(c.settings,j||{});d=d&&d.constructor==Date?this._formatDate(c,d):d;this._dialogInput.val(d);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){var h=document.documentElement.clientWidth,g=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[h/2-100+k,g/2-150+l]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");c.settings.onSelect=i;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],b,c);return this},_destroyDatepicker:function(c){var e=a(c),f=a.data(c,b);if(!e.hasClass(this.markerClassName))return;var d=c.nodeName.toLowerCase();a.removeData(c,b);if(d=="input"){f.append.remove();f.trigger.remove();e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else(d=="div"||d=="span")&&e.removeClass(this.markerClassName).empty()},_enableDatepicker:function(c){var e=a(c),g=a.data(c,b);if(!e.hasClass(this.markerClassName))return;var d=c.nodeName.toLowerCase();if(d=="input"){c.disabled=false;g.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(d=="div"||d=="span"){var f=e.children("."+this._inlineClass);f.children().removeClass("ui-state-disabled");f.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a})},_disableDatepicker:function(c){var e=a(c),g=a.data(c,b);if(!e.hasClass(this.markerClassName))return;var d=c.nodeName.toLowerCase();if(d=="input"){c.disabled=true;g.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(d=="div"||d=="span"){var f=e.children("."+this._inlineClass);f.children().addClass("ui-state-disabled");f.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=a.map(this._disabledInputs,function(a){return a==c?null:a});this._disabledInputs[this._disabledInputs.length]=c},_isDisabledDatepicker:function(b){if(!b)return false;for(var a=0;a<this._disabledInputs.length;a++)if(this._disabledInputs[a]==b)return true;return false},_getInst:function(c){try{return a.data(c,b)}catch(d){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(g,f,j){var b=this._getInst(g);if(arguments.length==2&&typeof f=="string")return f=="defaults"?a.extend({},a.datepicker._defaults):b?f=="all"?a.extend({},b.settings):this._get(b,f):null;var c=f||{};if(typeof f=="string"){c={};c[f]=j}if(b){this._curInst==b&&this._hideDatepicker();var k=this._getDateDatepicker(g,true),i=this._getMinMaxDate(b,"min"),h=this._getMinMaxDate(b,"max");e(b.settings,c);if(i!==null&&c.dateFormat!==d&&c.minDate===d)b.settings.minDate=this._formatDate(b,i);if(h!==null&&c.dateFormat!==d&&c.maxDate===d)b.settings.maxDate=this._formatDate(b,h);this._attachments(a(g),b);this._autoSize(b);this._setDate(b,k);this._updateAlternate(b);this._updateDatepicker(b)}},_changeDatepicker:function(a,c,b){this._optionDatepicker(a,c,b)},_refreshDatepicker:function(b){var a=this._getInst(b);a&&this._updateDatepicker(a)},_setDateDatepicker:function(b,c){var a=this._getInst(b);if(a){this._setDate(a,c);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(c,b){var a=this._getInst(c);a&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(b){var c=a.datepicker._getInst(b.target),d=true,f=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=true;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();d=false;break;case 13:var g=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",c.dpDiv);g[0]&&a.datepicker._selectDay(b.target,c.selectedMonth,c.selectedYear,g[0]);var e=a.datepicker._get(c,"onSelect");if(e){var h=a.datepicker._formatDate(c);e.apply(c.input?c.input[0]:null,[h,c])}else a.datepicker._hideDatepicker();return false;break;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target);d=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target);d=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,f?1:-1,"D");d=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D");d=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,f?-1:1,"D");d=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D");d=b.ctrlKey||b.metaKey;break;default:d=false}else if(b.keyCode==36&&b.ctrlKey)a.datepicker._showDatepicker(this);else d=false;if(d){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput")){var c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),f=String.fromCharCode(b.charCode==d?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||f<" "||!c||c.indexOf(f)>-1}},_doKeyUp:function(c){var b=a.datepicker._getInst(c.target);if(b.input.val()!=b.lastVal)try{var d=a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b));if(d){a.datepicker._setDateFromField(b);a.datepicker._updateAlternate(b);a.datepicker._updateDatepicker(b)}}catch(c){a.datepicker.log(c)}return true},_showDatepicker:function(c){c=c.target||c;if(c.nodeName.toLowerCase()!="input")c=a("input",c.parentNode)[0];if(a.datepicker._isDisabledDatepicker(c)||a.datepicker._lastInput==c)return;var b=a.datepicker._getInst(c);if(a.datepicker._curInst&&a.datepicker._curInst!=b){a.datepicker._datepickerShowing&&a.datepicker._triggerOnClose(a.datepicker._curInst);a.datepicker._curInst.dpDiv.stop(true,true)}var j=a.datepicker._get(b,"beforeShow");e(b.settings,j?j.apply(c,[c,b]):{});b.lastVal=null;a.datepicker._lastInput=c;a.datepicker._setDateFromField(b);if(a.datepicker._inDialog)c.value="";if(!a.datepicker._pos){a.datepicker._pos=a.datepicker._findPos(c);a.datepicker._pos[1]+=c.offsetHeight}var f=false;a(c).parents().each(function(){f|=a(this).css("position")=="fixed";return!f});if(f&&a.browser.opera){a.datepicker._pos[0]-=document.documentElement.scrollLeft;a.datepicker._pos[1]-=document.documentElement.scrollTop}var g={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});a.datepicker._updateDatepicker(b);g=a.datepicker._checkOffset(b,g,f);b.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:g.left+"px",top:g.top+"px"});if(!b.inline){var d=a.datepicker._get(b,"showAnim"),i=a.datepicker._get(b,"duration"),h=function(){var d=b.dpDiv.find("iframe.ui-datepicker-cover");if(!!d.length){var c=a.datepicker._getBorders(b.dpDiv);d.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(a(c).zIndex()+1);a.datepicker._datepickerShowing=true;if(a.effects&&a.effects[d])b.dpDiv.show(d,a.datepicker._get(b,"showOptions"),i,h);else b.dpDiv[d||"show"](d?i:null,h);(!d||!i)&&h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();a.datepicker._curInst=b}},_updateDatepicker:function(b){var j=this;j.maxRows=4;var g=a.datepicker._getBorders(b.dpDiv);f=b;b.dpDiv.empty().append(this._generateHTML(b));var h=b.dpDiv.find("iframe.ui-datepicker-cover");!!h.length&&h.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()});b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c=this._getNumberOfMonths(b),d=c[1],i=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");d>1&&b.dpDiv.addClass("ui-datepicker-multi-"+d).css("width",i*d+"em");b.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input[0]!=document.activeElement&&b.input.focus();if(b.yearshtml){var e=b.yearshtml;setTimeout(function(){e===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);e=b.yearshtml=null},0)}},_getBorders:function(b){var a=function(a){return({thin:1,medium:2,thick:3})[a]||a};return[parseFloat(a(b.css("border-left-width"))),parseFloat(a(b.css("border-top-width")))]},_checkOffset:function(c,b,i){var d=c.dpDiv.outerWidth(),f=c.dpDiv.outerHeight(),j=c.input?c.input.outerWidth():0,g=c.input?c.input.outerHeight():0,e=document.documentElement.clientWidth+a(document).scrollLeft(),h=document.documentElement.clientHeight+a(document).scrollTop();b.left-=this._get(c,"isRTL")?d-j:0;b.left-=i&&b.left==c.input.offset().left?a(document).scrollLeft():0;b.top-=i&&b.top==c.input.offset().top+g?a(document).scrollTop():0;b.left-=Math.min(b.left,b.left+d>e&&e>d?Math.abs(b.left+d-e):0);b.top-=Math.min(b.top,b.top+f>h&&h>f?Math.abs(f+g):0);return b},_findPos:function(b){var e=this._getInst(b),d=this._get(e,"isRTL");while(b&&(b.type=="hidden"||b.nodeType!=1||a.expr.filters.hidden(b)))b=b[d?"previousSibling":"nextSibling"];var c=a(b).offset();return[c.left,c.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");b&&b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(g){var c=this._curInst;if(!c||g&&c!=a.data(g,b))return;if(this._datepickerShowing){var d=this._get(c,"showAnim"),f=this._get(c,"duration"),e=function(){a.datepicker._tidyDialog(c);this._curInst=null};if(a.effects&&a.effects[d])c.dpDiv.hide(d,a.datepicker._get(c,"showOptions"),f,e);else c.dpDiv[d=="slideDown"?"slideUp":d=="fadeIn"?"fadeOut":"hide"](d?f:null,e);!d&&e();a.datepicker._triggerOnClose(c);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(a.blockUI){a.unblockUI();a("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(c){if(!a.datepicker._curInst)return;var b=a(c.target);b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&!(a.datepicker._inDialog&&a.blockUI)&&a.datepicker._hideDatepicker()},_adjustDate:function(f,e,c){var d=a(f),b=this._getInst(d[0]);if(this._isDisabledDatepicker(d[0]))return;this._adjustInstDate(b,e+(c=="M"?this._get(b,"showCurrentAtPos"):0),c);this._updateDatepicker(b)},_gotoToday:function(e){var d=a(e),b=this._getInst(d[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(d)},_selectMonthYear:function(f,d,c){var e=a(f),b=this._getInst(e[0]);b["selected"+(c=="M"?"Month":"Year")]=b["draw"+(c=="M"?"Month":"Year")]=parseInt(d.options[d.selectedIndex].value,10);this._notifyChange(b);this._adjustDate(e)},_selectDay:function(d,f,g,e){var c=a(d);if(a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(c[0]))return;var b=this._getInst(c[0]);b.selectedDay=b.currentDay=a("a",e).html();b.selectedMonth=b.currentMonth=f;b.selectedYear=b.currentYear=g;this._selectDate(d,this._formatDate(b,b.currentDay,b.currentMonth,b.currentYear))},_clearDate:function(c){var b=a(c),d=this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(f,c){var e=a(f),b=this._getInst(e[0]);c=c!=null?c:this._formatDate(b);b.input&&b.input.val(c);this._updateAlternate(b);var d=this._get(b,"onSelect");if(d)d.apply(b.input?b.input[0]:null,[c,b]);else b.input&&b.input.trigger("change");if(b.inline)this._updateDatepicker(b);else{this._hideDatepicker();this._lastInput=b.input[0];b.input.focus();this._lastInput=null}},_updateAlternate:function(b){var c=this._get(b,"altField");if(c){var d=this._get(b,"altFormat")||this._get(b,"dateFormat"),f=this._getDate(b),e=this.formatDate(d,f,this._getFormatConfig(b));a(c).each(function(){a(this).val(e)})}},noWeekends:function(b){var a=b.getDay();return[a>0&&a<6,""]},iso8601Week:function(b){var a=new Date(b.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var c=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((c-a)/864e5)/7)+1},parseDate:function(j,c,e){if(j==null||c==null)throw"Invalid arguments";c=typeof c=="object"?c.toString():c+"";if(c=="")return null;var l=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff;l=typeof l!="string"?l:(new Date).getFullYear()%100+parseInt(l,10);for(var t=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,v=(e?e.dayNames:null)||this._defaults.dayNames,s=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,u=(e?e.monthNames:null)||this._defaults.monthNames,d=-1,g=-1,i=-1,p=-1,o=false,m=function(b){var a=h+1<j.length&&j.charAt(h+1)==b;if(a)h++;return a},k=function(a){var e=m(a),g=a=="@"?14:a=="!"?20:a=="y"&&e?4:a=="o"?3:2,f=new RegExp("^\\d{1,"+g+"}"),d=c.substring(b).match(f);if(!d)throw"Missing number at position "+b;b+=d[0].length;return parseInt(d[0],10)},q=function(g,e,f){var h=a.map(m(g)?f:e,function(b,a){return[[a,b]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),d=-1;a.each(h,function(f,e){var a=e[1];if(c.substr(b,a.length).toLowerCase()==a.toLowerCase()){d=e[0];b+=a.length;return false}});if(d!=-1)return d+1;else throw"Unknown name at position "+b;},n=function(){if(c.charAt(b)!=j.charAt(h))throw"Unexpected literal at position "+b;b++},b=0,h=0;h<j.length;h++)if(o)if(j.charAt(h)=="'"&&!m("'"))o=false;else n();else switch(j.charAt(h)){case"d":i=k("d");break;case"D":q("D",t,v);break;case"o":p=k("o");break;case"m":g=k("m");break;case"M":g=q("M",s,u);break;case"y":d=k("y");break;case"@":var f=new Date(k("@"));d=f.getFullYear();g=f.getMonth()+1;i=f.getDate();break;case"!":var f=new Date((k("!")-this._ticksTo1970)/1e4);d=f.getFullYear();g=f.getMonth()+1;i=f.getDate();break;case"'":if(m("'"))n();else o=true;break;default:n()}if(b<c.length)throw"Extra/unparsed characters found in date: "+c.substring(b);if(d==-1)d=(new Date).getFullYear();else if(d<100)d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=l?0:-100);if(p>-1){g=1;i=p;do{var r=this._getDaysInMonth(d,g-1);if(i<=r)break;g++;i-=r}while(1)}var f=this._daylightSavingAdjust(new Date(d,g-1,i));if(f.getFullYear()!=d||f.getMonth()+1!=g||f.getDate()!=i)throw"Invalid date";return f},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(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(e,a,d){if(!a)return"";var k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,j=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,l=(d?d.monthNames:null)||this._defaults.monthNames,f=function(b){var a=c+1<e.length&&e.charAt(c+1)==b;if(a)c++;return a},g=function(b,c,d){var a=""+c;if(f(b))while(a.length<d)a="0"+a;return a},i=function(d,a,b,c){return f(d)?c[a]:b[a]},b="",h=false;if(a)for(var c=0;c<e.length;c++)if(h)if(e.charAt(c)=="'"&&!f("'"))h=false;else b+=e.charAt(c);else switch(e.charAt(c)){case"d":b+=g("d",a.getDate(),2);break;case"D":b+=i("D",a.getDay(),k,m);break;case"o":b+=g("o",Math.round((+new Date(a.getFullYear(),a.getMonth(),a.getDate())-+new Date(a.getFullYear(),0,0))/864e5),3);break;case"m":b+=g("m",a.getMonth()+1,2);break;case"M":b+=i("M",a.getMonth(),j,l);break;case"y":b+=f("y")?a.getFullYear():(a.getYear()%100<10?"0":"")+a.getYear()%100;break;case"@":b+=a.getTime();break;case"!":b+=a.getTime()*1e4+this._ticksTo1970;break;case"'":if(f("'"))b+="'";else h=true;break;default:b+=e.charAt(c)}return b},_possibleChars:function(b){for(var c="",d=false,e=function(d){var c=a+1<b.length&&b.charAt(a+1)==d;if(c)a++;return c},a=0;a<b.length;a++)if(d)if(b.charAt(a)=="'"&&!e("'"))d=false;else c+=b.charAt(a);else switch(b.charAt(a)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":if(e("'"))c+="'";else d=true;break;default:c+=b.charAt(a)}return c},_get:function(b,a){return b.settings[a]!==d?b.settings[a]:this._defaults[a]},_setDateFromField:function(a,f){if(a.input.val()==a.lastVal)return;var e=this._get(a,"dateFormat"),c=a.lastVal=a.input?a.input.val():null,b,d;b=d=this._getDefaultDate(a);var g=this._getFormatConfig(a);try{b=this.parseDate(e,c,g)||d}catch(h){this.log(h);c=f?"":c}a.selectedDay=b.getDate();a.drawMonth=a.selectedMonth=b.getMonth();a.drawYear=a.selectedYear=b.getFullYear();a.currentDay=c?b.getDate():0;a.currentMonth=c?b.getMonth():0;a.currentYear=c?b.getFullYear():0;this._adjustInstDate(a)},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(e,c,d){var f=function(b){var a=new Date;a.setDate(a.getDate()+b);return a},g=function(d){try{return a.datepicker.parseDate(a.datepicker._get(e,"dateFormat"),d,a.datepicker._getFormatConfig(e))}catch(j){}var h=(d.toLowerCase().match(/^c/)?a.datepicker._getDate(e):null)||new Date,g=h.getFullYear(),f=h.getMonth(),c=h.getDate(),i=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,b=i.exec(d);while(b){switch(b[2]||"d"){case"d":case"D":c+=parseInt(b[1],10);break;case"w":case"W":c+=parseInt(b[1],10)*7;break;case"m":case"M":f+=parseInt(b[1],10);c=Math.min(c,a.datepicker._getDaysInMonth(g,f));break;case"y":case"Y":g+=parseInt(b[1],10);c=Math.min(c,a.datepicker._getDaysInMonth(g,f))}b=i.exec(d)}return new Date(g,f,c)},b=c==null||c===""?d:typeof c=="string"?g(c):typeof c=="number"?isNaN(c)?d:f(c):new Date(c.getTime());b=b&&b.toString()=="Invalid Date"?d:b;if(b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,d,f){var i=!d,e=a.selectedMonth,g=a.selectedYear,b=this._restrictMinMax(a,this._determineDate(a,d,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();(e!=a.selectedMonth||g!=a.selectedYear)&&!f&&this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(i?"":this._formatDate(a));var c=this._get(a,"onSelect");if(c){var h=this._formatDate(a);c.apply(a.input?a.input[0]:null,[h,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(b){var n=new Date;n=this._daylightSavingAdjust(new Date(n.getFullYear(),n.getMonth(),n.getDate()));var i=this._get(b,"isRTL"),Z=this._get(b,"showButtonPanel"),F=this._get(b,"hideIfNoPrevNext"),y=this._get(b,"navigationAsDateFormat"),h=this._getNumberOfMonths(b),X=this._get(b,"showCurrentAtPos"),w=this._get(b,"stepMonths"),A=h[0]!=1||h[1]!=1,C=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),r=this._getMinMaxDate(b,"min"),m=this._getMinMaxDate(b,"max"),d=b.drawMonth-X,f=b.drawYear;if(d<0){d+=12;f--}if(m){var x=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth()-h[0]*h[1]+1,m.getDate()));x=r&&x<r?r:x;while(this._daylightSavingAdjust(new Date(f,d,1))>x){d--;if(d<0){d=11;f--}}}b.drawMonth=d;b.drawYear=f;var l=this._get(b,"prevText");l=!y?l:this.formatDate(l,this._daylightSavingAdjust(new Date(f,d-w,1)),this._getFormatConfig(b));var U=this._canAdjustMonth(b,-1,f,d)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+c+".datepicker._adjustDate('#"+b.id+"', -"+w+", 'M');\" title=\""+l+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+l+"</span></a>":F?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+l+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+l+"</span></a>",k=this._get(b,"nextText");k=!y?k:this.formatDate(k,this._daylightSavingAdjust(new Date(f,d+w,1)),this._getFormatConfig(b));var T=this._canAdjustMonth(b,1,f,d)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+c+".datepicker._adjustDate('#"+b.id+"', +"+w+", 'M');\" title=\""+k+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+k+"</span></a>":F?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+k+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+k+"</span></a>",u=this._get(b,"currentText"),L=this._get(b,"gotoCurrent")&&b.currentDay?C:n;u=!y?u:this.formatDate(u,L,this._getFormatConfig(b));var K=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+c+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"",ab=Z?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?K:"")+(this._isInRange(b,L)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+c+".datepicker._gotoToday('#"+b.id+"');\">"+u+"</button>":"")+(i?"":K)+"</div>":"",j=parseInt(this._get(b,"firstDay"),10);j=isNaN(j)?0:j;for(var N=this._get(b,"showWeek"),db=this._get(b,"dayNames"),fb=this._get(b,"dayNamesShort"),bb=this._get(b,"dayNamesMin"),cb=this._get(b,"monthNames"),Y=this._get(b,"monthNamesShort"),G=this._get(b,"beforeShowDay"),z=this._get(b,"showOtherMonths"),W=this._get(b,"selectOtherMonths"),eb=this._get(b,"calculateWeek")||this.iso8601Week,J=this._getDefaultDate(b),E="",t=0;t<h[0];t++){var P="";this.maxRows=4;for(var s=0;s<h[1];s++){var H=this._daylightSavingAdjust(new Date(f,d,b.selectedDay)),p=" ui-corner-all",g="";if(A){g+='<div class="ui-datepicker-group';if(h[1]>1)switch(s){case 0:g+=" ui-datepicker-group-first";p=" ui-corner-"+(i?"right":"left");break;case h[1]-1:g+=" ui-datepicker-group-last";p=" ui-corner-"+(i?"left":"right");break;default:g+=" ui-datepicker-group-middle";p=""}g+='">'}g+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+p+'">'+(/all|left/.test(p)&&t==0?i?T:U:"")+(/all|right/.test(p)&&t==0?i?U:T:"")+this._generateMonthYearHeader(b,d,f,r,m,t>0||s>0,cb,Y)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var R=N?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"",o=0;o<7;o++){var V=(o+j)%7;R+="<th"+((o+j+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+db[V]+'">'+bb[V]+"</span></th>"}g+=R+"</tr></thead><tbody>";var I=this._getDaysInMonth(f,d);if(f==b.selectedYear&&d==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,I);var M=(this._getFirstDayOfMonth(f,d)-j+7)%7,D=Math.ceil((M+I)/7),O=A?this.maxRows>D?this.maxRows:D:D;this.maxRows=O;for(var e=this._daylightSavingAdjust(new Date(f,d,1-M)),S=0;S<O;S++){g+="<tr>";for(var Q=!N?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(e)+"</td>",o=0;o<7;o++){var v=G?G.apply(b.input?b.input[0]:null,[e]):[true,""],q=e.getMonth()!=d,B=q&&!W||!v[0]||r&&e<r||m&&e>m;Q+='<td class="'+((o+j+6)%7>=5?" ui-datepicker-week-end":"")+(q?" ui-datepicker-other-month":"")+(e.getTime()==H.getTime()&&d==b.selectedMonth&&b._keyEvent||J.getTime()==e.getTime()&&J.getTime()==H.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(q&&!z?"":" "+v[1]+(e.getTime()==C.getTime()?" "+this._currentClass:"")+(e.getTime()==n.getTime()?" ui-datepicker-today":""))+'"'+((!q||z)&&v[2]?' title="'+v[2]+'"':"")+(B?"":' onclick="DP_jQuery_'+c+".datepicker._selectDay('#"+b.id+"',"+e.getMonth()+","+e.getFullYear()+', this);return false;"')+">"+(q&&!z?"&#xa0;":B?'<span class="ui-state-default">'+e.getDate()+"</span>":'<a class="ui-state-default'+(e.getTime()==n.getTime()?" ui-state-highlight":"")+(e.getTime()==C.getTime()?" ui-state-active":"")+(q?" ui-priority-secondary":"")+'" href="#">'+e.getDate()+"</a>")+"</td>";e.setDate(e.getDate()+1);e=this._daylightSavingAdjust(e)}g+=Q+"</tr>"}d++;if(d>11){d=0;f++}g+="</tbody></table>"+(A?"</div>"+(h[0]>0&&s==h[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");P+=g}E+=P}E+=ab+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");b._keyEvent=false;return E},_generateMonthYearHeader:function(a,p,g,i,h,j,t,s){var l=this._get(a,"changeMonth"),m=this._get(a,"changeYear"),n=this._get(a,"showMonthAfterYear"),e='<div class="ui-datepicker-title">',f="";if(j||!l)f+='<span class="ui-datepicker-month">'+t[p]+"</span>";else{var v=i&&i.getFullYear()==g,u=h&&h.getFullYear()==g;f+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+c+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var d=0;d<12;d++)if((!v||d>=i.getMonth())&&(!u||d<=h.getMonth()))f+='<option value="'+d+'"'+(d==p?' selected="selected"':"")+">"+s[d]+"</option>";f+="</select>"}if(!n)e+=f+(j||!(l&&m)?"&#xa0;":"");if(!a.yearshtml){a.yearshtml="";if(j||!m)e+='<span class="ui-datepicker-year">'+g+"</span>";else{var r=this._get(a,"yearRange").split(":"),q=(new Date).getFullYear(),o=function(a){var b=a.match(/c[+-].*/)?g+parseInt(a.substring(1),10):a.match(/[+-].*/)?q+parseInt(a,10):parseInt(a,10);return isNaN(b)?q:b},b=o(r[0]),k=Math.max(b,o(r[1]||""));b=i?Math.max(b,i.getFullYear()):b;k=h?Math.min(k,h.getFullYear()):k;a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+c+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";for(;b<=k;b++)a.yearshtml+='<option value="'+b+'"'+(b==g?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";e+=a.yearshtml;a.yearshtml=null}}e+=this._get(a,"yearSuffix");if(n)e+=(j||!(l&&m)?"&#xa0;":"")+f;e+="</div>";return e},_adjustInstDate:function(a,c,b){var f=a.drawYear+(b=="Y"?c:0),e=a.drawMonth+(b=="M"?c:0),g=Math.min(a.selectedDay,this._getDaysInMonth(f,e))+(b=="D"?c:0),d=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(f,e,g)));a.selectedDay=d.getDate();a.drawMonth=a.selectedMonth=d.getMonth();a.drawYear=a.selectedYear=d.getFullYear();(b=="M"||b=="Y")&&this._notifyChange(a)},_restrictMinMax:function(e,d){var c=this._getMinMaxDate(e,"min"),b=this._getMinMaxDate(e,"max"),a=c&&d<c?c:d;a=b&&a>b?b:a;return a},_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(b){var a=this._get(b,"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(b,a){return 32-this._daylightSavingAdjust(new Date(b,a,32)).getDate()},_getFirstDayOfMonth:function(b,a){return new Date(b,a,1).getDay()},_canAdjustMonth:function(d,b,f,e){var c=this._getNumberOfMonths(d),a=this._daylightSavingAdjust(new Date(f,e+(b<0?b:c[0]*c[1]),1));b<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth()));return this._isInRange(d,a)},_isInRange:function(d,c){var b=this._getMinMaxDate(d,"min"),a=this._getMinMaxDate(d,"max");return(!b||c.getTime()>=b.getTime())&&(!a||c.getTime()<=a.getTime())},_getFormatConfig:function(b){var a=this._get(b,"shortYearCutoff");a=typeof a!="string"?a:(new Date).getFullYear()%100+parseInt(a,10);return{shortYearCutoff:a,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}var d=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),d,this._getFormatConfig(a))}});function h(c){var b="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return c.bind("mouseout",function(d){var c=a(d.target).closest(b);if(!c.length)return;c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(e){var d=a(e.target).closest(b);if(a.datepicker._isDisabledDatepicker(f.inline?c.parent()[0]:f.input[0])||!d.length)return;d.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d.addClass("ui-state-hover");d.hasClass("ui-datepicker-prev")&&d.addClass("ui-datepicker-prev-hover");d.hasClass("ui-datepicker-next")&&d.addClass("ui-datepicker-next-hover")})}function e(e,b){a.extend(e,b);for(var c in b)if(b[c]==null||b[c]==d)e[c]=b[c];return e}a.fn.datepicker=function(b){if(!this.length)return this;if(!a.datepicker.initialized){a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv);a.datepicker.initialized=true}var c=Array.prototype.slice.call(arguments,1);return typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget")?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):b=="option"&&arguments.length==2&&typeof arguments[1]=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)})};a.datepicker=new g;a.datepicker.initialized=false;a.datepicker.uuid=+new Date;a.datepicker.version="1.8.15";window["DP_jQuery_"+c]=a})(jQuery);(function(a,e){var b="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},c={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},f=a.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};a.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(c){var b=a(this).css(c).offset().top;b<0&&a(this).css("top",c.top-b)}},resizable:true,show:null,stack:true,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 c=this,d=c.options,i=d.title||"&#160;",h=a.ui.dialog.getTitleId(c.element),g=(c.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass(b+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(b){if(d.closeOnEscape&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE){c.close(b);b.preventDefault()}}).attr({role:"dialog","aria-labelledby":h}).mousedown(function(a){c.moveToTop(false,a)}),k=c.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g),f=(c.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),e=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){e.addClass("ui-state-hover")},function(){e.removeClass("ui-state-hover")}).focus(function(){e.addClass("ui-state-focus")}).blur(function(){e.removeClass("ui-state-focus")}).click(function(a){c.close(a);return false}).appendTo(f),j=(c.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(e),l=a("<span></span>").addClass("ui-dialog-title").attr("id",h).html(i).prependTo(f);if(a.isFunction(d.beforeclose)&&!a.isFunction(d.beforeClose))d.beforeClose=d.beforeclose;f.find("*").add(f).disableSelection();d.draggable&&a.fn.draggable&&c._makeDraggable();d.resizable&&a.fn.resizable&&c._makeResizable();c._createButtons(d.buttons);c._isOpen=false;a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(d){var b=this,c,e;if(false===b._trigger("beforeClose",d))return;b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",d)});else{b.uiDialog.hide();b._trigger("close",d)}a.ui.dialog.overlay.resize();if(b.options.modal){c=0;a(".ui-dialog").each(function(){if(this!==b.uiDialog[0]){e=a(this).css("z-index");if(!isNaN(e))c=Math.max(c,e)}});a.ui.dialog.maxZ=c}return b},isOpen:function(){return this._isOpen},moveToTop:function(f,e){var b=this,c=b.options,d;if(c.modal&&!f||!c.stack&&!c.modal)return b._trigger("focus",e);if(c.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=c.zIndex;if(b.overlay){a.ui.dialog.maxZ+=1;b.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)}d={scrollTop:b.element.scrollTop(),scrollLeft:b.element.scrollLeft()};a.ui.dialog.maxZ+=1;b.uiDialog.css("z-index",a.ui.dialog.maxZ);b.element.attr(d);b._trigger("focus",e);return b},open:function(){if(this._isOpen)return;var b=this,d=b.options,c=b.uiDialog;b.overlay=d.modal?new a.ui.dialog.overlay(b):null;b._size();b._position(d.position);c.show(d.show);b.moveToTop(true);d.modal&&c.bind("keypress.ui-dialog",function(b){if(b.keyCode!==a.ui.keyCode.TAB)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftKey){d.focus(1);return false}else if(b.target===d[0]&&b.shiftKey){e.focus(1);return false}});a(b.element.find(":tabbable").get().concat(c.find(".ui-dialog-buttonpane :tabbable").get().concat(c.get()))).eq(0).focus();b._isOpen=true;b._trigger("open");return b},_createButtons:function(b){var c=this,e=false,d=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(d);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof b==="object"&&b!==null&&a.each(b,function(){return!(e=true)});if(e){a.each(b,function(e,b){b=a.isFunction(b)?{click:b,text:e}:b;var d=a('<button type="button"></button>').click(function(){b.click.apply(c.element[0],arguments)}).appendTo(g);a.each(b,function(a,b){if(a==="click")return;if(a in f)d[a](b);else d.attr(a,b)});a.fn.button&&d.button()});d.appendTo(c.uiDialog)}},_makeDraggable:function(){var b=this,e=b.options,f=a(document),d;function c(a){return{position:a.position,offset:a.offset}}b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(f,g){d=e.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,c(g))},drag:function(a,d){b._trigger("drag",a,c(d))},stop:function(h,g){e.position=[g.position.left-f.scrollLeft(),g.position.top-f.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(d);b._trigger("dragStop",h,c(g));a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){c=c===e?this.options.resizable:c;var b=this,d=b.options,h=b.uiDialog.css("position"),g=typeof c==="string"?c:"n,e,s,w,se,sw,ne,nw";function f(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}b.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:b.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:b._minHeight(),handles:g,start:function(c,d){a(this).addClass("ui-dialog-resizing");b._trigger("resizeStart",c,f(d))},resize:function(a,c){b._trigger("resize",a,f(c))},stop:function(c,e){a(this).removeClass("ui-dialog-resizing");d.height=a(this).height();d.width=a(this).width();b._trigger("resizeStop",c,f(e));a.ui.dialog.overlay.resize()}}).css("position",h).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(b){var c=[],e=[0,0],d;if(b){if(typeof b==="string"||typeof b==="object"&&"0"in b){c=b.split?b.split(" "):[b[0],b[1]];if(c.length===1)c[1]=c[0];a.each(["left","top"],function(a,b){if(+c[a]===c[a]){e[a]=c[a];c[a]=b}});b={my:c.join(" "),at:c.join(" "),offset:e.join(" ")}}b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;d=this.uiDialog.is(":visible");!d&&this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b));!d&&this.uiDialog.hide()},_setOptions:function(f){var g=this,b={},e=false;a.each(f,function(a,f){g._setOption(a,f);if(a in d)e=true;if(a in c)b[a]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",b)},_setOption:function(h,c){var d=this,e=d.uiDialog;switch(h){case"beforeclose":h="beforeClose";break;case"buttons":d._createButtons(c);break;case"closeText":d.uiDialogTitlebarCloseText.text(""+c);break;case"dialogClass":e.removeClass(d.options.dialogClass).addClass(b+c);break;case"disabled":if(c)e.addClass("ui-dialog-disabled");else e.removeClass("ui-dialog-disabled");break;case"draggable":var g=e.is(":data(draggable)");g&&!c&&e.draggable("destroy");!g&&c&&d._makeDraggable();break;case"position":d._position(c);break;case"resizable":var f=e.is(":data(resizable)");f&&!c&&e.resizable("destroy");f&&typeof c==="string"&&e.resizable("option","handles",c);!f&&c!==false&&d._makeResizable(c);break;case"title":a(".ui-dialog-title",d.uiDialogTitlebar).html(""+(c||"&#160;"))}a.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var b=this.options,d,c,f=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(b.minWidth>b.width)b.width=b.minWidth;d=this.uiDialog.css({height:"auto",width:b.width}).height();c=Math.max(0,b.minHeight-d);if(b.height==="auto")if(a.support.minHeight)this.element.css({minHeight:c,height:"auto"});else{this.uiDialog.show();var e=this.element.css("height","auto").height();!f&&this.uiDialog.hide();this.element.height(Math.max(e,c))}else this.element.height(Math.max(b.height-d,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.15",uuid:0,maxZ:0,getTitleId:function(b){var a=b.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(c){if(this.instances.length===0){setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return false})},1);a(document).bind("keydown.dialog-overlay",function(b){if(c.options.closeOnEscape&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE){c.close(b);b.preventDefault()}});a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});a.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(d){var c=a.inArray(d,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");d.remove();var b=0;a.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var b,c;if(a.browser.msie&&a.browser.version<7){b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return b<c?a(window).height()+"px":b+"px"}else return a(document).height()+"px"},width:function(){var b,c;if(a.browser.msie){b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return b<c?a(window).width()+"px":b+"px"}else return a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function(){b=b.add(this)});b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,b="center",e=a.fn.position,f=a.fn.offset;a.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);f=a.extend({},f);var i=a(f.of),m=i[0],l=(f.collision||"flip").split(" "),h=f.offset?f.offset.split(" "):[0,0],k,j,g;if(m.nodeType===9){k=i.width();j=i.height();g={top:0,left:0}}else if(m.setTimeout){k=i.width();j=i.height();g={top:i.scrollTop(),left:i.scrollLeft()}}else if(m.preventDefault){f.at="left top";k=j=0;g={top:f.of.pageY,left:f.of.pageX}}else{k=i.outerWidth();j=i.outerHeight();g=i.offset()}a.each(["my","at"],function(){var a=(f[this]||"").split(" ");if(a.length===1)a=c.test(a[0])?a.concat([b]):d.test(a[0])?[b].concat(a):[b,b];a[0]=c.test(a[0])?a[0]:b;a[1]=d.test(a[1])?a[1]:b;f[this]=a});if(l.length===1)l[1]=l[0];h[0]=parseInt(h[0],10)||0;if(h.length===1)h[1]=h[0];h[1]=parseInt(h[1],10)||0;if(f.at[0]==="right")g.left+=k;else if(f.at[0]===b)g.left+=k/2;if(f.at[1]==="bottom")g.top+=j;else if(f.at[1]===b)g.top+=j/2;g.left+=h[0];g.top+=h[1];return this.each(function(){var i=a(this),e=i.outerWidth(),d=i.outerHeight(),n=parseInt(a.curCSS(this,"marginLeft",true))||0,o=parseInt(a.curCSS(this,"marginTop",true))||0,q=e+n+(parseInt(a.curCSS(this,"marginRight",true))||0),p=d+o+(parseInt(a.curCSS(this,"marginBottom",true))||0),c=a.extend({},g),m;if(f.my[0]==="right")c.left-=e;else if(f.my[0]===b)c.left-=e/2;if(f.my[1]==="bottom")c.top-=d;else if(f.my[1]===b)c.top-=d/2;c.left=Math.round(c.left);c.top=Math.round(c.top);m={left:c.left-n,top:c.top-o};a.each(["left","top"],function(b,g){a.ui.position[l[b]]&&a.ui.position[l[b]][g](c,{targetWidth:k,targetHeight:j,elemWidth:e,elemHeight:d,collisionPosition:m,collisionWidth:q,collisionHeight:p,offset:h,my:f.my,at:f.at})});a.fn.bgiframe&&i.bgiframe();i.offset(a.extend(c,{using:f.using}))})};a.ui.position={fit:{left:function(b,c){var e=a(window),d=c.collisionPosition.left+c.collisionWidth-e.width()-e.scrollLeft();b.left=d>0?b.left-d:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var e=a(window),d=c.collisionPosition.top+c.collisionHeight-e.height()-e.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(h,c){if(c.at[0]===b)return;var g=a(window),i=c.collisionPosition.left+c.collisionWidth-g.width()-g.scrollLeft(),e=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,d=c.at[0]==="left"?c.targetWidth:-c.targetWidth,f=-2*c.offset[0];h.left+=c.collisionPosition.left<0?e+d+f:i>0?e+d+f:0},top:function(h,c){if(c.at[1]===b)return;var g=a(window),i=c.collisionPosition.top+c.collisionHeight-g.height()-g.scrollTop(),e=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,d=c.at[1]==="top"?c.targetHeight:-c.targetHeight,f=-2*c.offset[1];h.top+=c.collisionPosition.top<0?e+d+f:i>0?e+d+f:0}}};if(!a.offset.setOffset){a.offset.setOffset=function(b,c){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var e=a(b),d=e.offset(),h=parseInt(a.curCSS(b,"top",true),10)||0,g=parseInt(a.curCSS(b,"left",true),10)||0,f={top:c.top-d.top+h,left:c.left-d.left+g};if("using"in c)c.using.call(b,f);else e.css(f)};a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):f.call(this)}}})(jQuery);(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===b)return this._value();this._setOption("value",a);return this},_setOption:function(c,b){if(c==="value"){this.options.value=b;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});a.extend(a.ui.progressbar,{version:"1.8.15"})})(jQuery);(function(a){var b=5;a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var c=this,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),i="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",h=d.values&&d.values.length||1,f=[];this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(d.range){if(d.range===true){if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:""))}for(var g=e.length;g<h;g+=1)f.push(i);this.handles=e.add(a(f.join("")).appendTo(c.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){!d.disabled&&a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!d.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else a(this).blur()}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(f){var j=true,g=a(this).data("index.ui-slider-handle"),i,e,d,h;if(c.options.disabled)return;switch(f.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:j=false;if(!c._keySliding){c._keySliding=true;a(this).addClass("ui-state-active");i=c._start(f,g);if(i===false)return}}h=c.options.step;if(c.options.values&&c.options.values.length)e=d=c.values(g);else e=d=c.value();switch(f.keyCode){case a.ui.keyCode.HOME:d=c._valueMin();break;case a.ui.keyCode.END:d=c._valueMax();break;case a.ui.keyCode.PAGE_UP:d=c._trimAlignValue(e+(c._valueMax()-c._valueMin())/b);break;case a.ui.keyCode.PAGE_DOWN:d=c._trimAlignValue(e-(c._valueMax()-c._valueMin())/b);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===c._valueMax())return;d=c._trimAlignValue(e+h);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===c._valueMin())return;d=c._trimAlignValue(e-h)}c._slide(f,g,d);return j}).keyup(function(b){var d=a(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(b,d);c._change(b,d);a(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},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(c){var i=this.options,k,e,f,b,h,d,l,g,j;if(i.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();k={x:c.pageX,y:c.pageY};e=this._normValueFromMouse(k);f=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(g){var c=Math.abs(e-h.values(g));if(f>c){f=c;b=a(this);d=g}});if(i.range===true&&this.values(1)===i.min){d+=1;b=a(this.handles[d])}l=this._start(c,d);if(l===false)return false;this._mouseSliding=true;h._handleIndex=d;b.addClass("ui-state-active").focus();g=b.offset();j=!a(c.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=j?{left:0,top:0}:{left:c.pageX-g.left-b.width()/2,top:c.pageY-g.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};!this.handles.hasClass("ui-state-hover")&&this._slide(c,d,e);this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(a){var c={x:a.pageX,y:a.pageY},b=this._normValueFromMouse(c);this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(f){var c,b,a,e,d;if(this.orientation==="horizontal"){c=this.elementSize.width;b=f.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;b=f.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}a=b/c;if(a>1)a=1;if(a<0)a=0;if(this.orientation==="vertical")a=1-a;e=this._valueMax()-this._valueMin();d=this._valueMin()+a*e;return this._trimAlignValue(d)},_start:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}return this._trigger("start",c,a)},_slide:function(f,b,a){var c,e,d;if(this.options.values&&this.options.values.length){c=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&a>c||b===1&&a<c))a=c;if(a!==this.values(b)){e=this.values();e[b]=a;d=this._trigger("slide",f,{handle:this.handles[b],value:a,values:e});c=this.values(b?0:1);d!==false&&this.values(b,a,true)}}else if(a!==this.value()){d=this._trigger("slide",f,{handle:this.handles[b],value:a});d!==false&&this.value(a)}},_stop:function(c,b){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("stop",c,a)},_change:function(c,b){if(!this._keySliding&&!this._mouseSliding){var a={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(b);a.values=this.values()}this._trigger("change",c,a)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a);this._refreshValue();this._change(null,0);return}return this._value()},values:function(c,f){var d,e,b;if(arguments.length>1){this.options.values[c]=this._trimAlignValue(f);this._refreshValue();this._change(null,c);return}if(arguments.length)if(a.isArray(arguments[0])){d=this.options.values;e=arguments[0];for(b=0;b<d.length;b+=1){d[b]=this._trimAlignValue(e[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(c):this.value();else return this._values()},_setOption:function(e,d){var b,c=0;if(a.isArray(this.options.values))c=this.options.values.length;a.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);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=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(b=0;b<c;b+=1)this._change(null,b);this._animateOff=false}},_value:function(){var a=this.options.value;a=this._trimAlignValue(a);return a},_values:function(d){var c,a,b;if(arguments.length){c=this.options.values[d];c=this._trimAlignValue(c);return c}else{a=this.options.values.slice();for(b=0;b<a.length;b+=1)a[b]=this._trimAlignValue(a[b]);return a}},_trimAlignValue:function(b){if(b<=this._valueMin())return this._valueMin();if(b>=this._valueMax())return this._valueMax();var a=this.options.step>0?this.options.step:1,c=(b-this._valueMin())%a,d=b-c;if(Math.abs(c)*2>=a)d+=c>0?a:-a;return parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var g=this.options.range,d=this.options,c=this,e=!this._animateOff?d.animate:false,b,h={},i,k,f,j;if(this.options.values&&this.options.values.length)this.handles.each(function(f){b=(c.values(f)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=b+"%";a(this).stop(1,1)[e?"animate":"css"](h,d.animate);if(c.options.range===true)if(c.orientation==="horizontal"){f===0&&c.range.stop(1,1)[e?"animate":"css"]({left:b+"%"},d.animate);f===1&&c.range[e?"animate":"css"]({width:b-i+"%"},{queue:false,duration:d.animate})}else{f===0&&c.range.stop(1,1)[e?"animate":"css"]({bottom:b+"%"},d.animate);f===1&&c.range[e?"animate":"css"]({height:b-i+"%"},{queue:false,duration:d.animate})}i=b});else{k=this.value();f=this._valueMin();j=this._valueMax();b=j!==f?(k-f)/(j-f)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[e?"animate":"css"](h,d.animate);g==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:b+"%"},d.animate);g==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:NaN-b},{queue:false,duration:d.animate});g==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:b+"%"},d.animate);g==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:NaN-b},{queue:false,duration:d.animate})}}});a.extend(a.ui.slider,{version:"1.8.15"})})(jQuery);(function(a,b){var f=0,e=0;function d(){return++f}function c(){return++e}a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,a){if(b=="selected"){if(this.options.collapsible&&a==this.options.selected)return;this.select(a)}else{this.options[b]=a;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+d()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+c());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(o){var d=this,c=this.options,n=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=a(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);this.anchors.each(function(j,e){var b=a(e).attr("href"),g=b.split("#")[0],i;if(g&&(g===location.toString().split("#")[0]||(i=a("base")[0])&&g===i.href)){b=e.hash;e.href=b}if(n.test(b))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(b)));else if(b&&b!=="#"){a.data(e,"href.tabs",b);a.data(e,"load.tabs",b.replace(/#.*$/,""));var h=d._tabId(e);e.href="#"+h;var f=d.element.find("#"+h);if(!f.length){f=a(c.panelTemplate).attr("id",h).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[j-1]||d.list);f.data("destroy.tabs",true)}d.panels=d.panels.add(f)}else c.disabled.push(j)});if(o){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===b){location.hash&&this.anchors.each(function(b,a){if(a.hash==location.hash){c.selected=b;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(d._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=a.unique(c.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a){return d.lis.index(a)}))).sort();a.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(a.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(c.selected>=0&&this.anchors.length){d.element.find(d._sanitizeSelector(d.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[c.selected],d.element.find(d._sanitizeSelector(d.anchors[c.selected].hash))[0]))});this.load(c.selected)}a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs");d.lis=d.anchors=d.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);for(var h=0,g;g=this.lis[h];h++)a(g)[a.inArray(h,c.disabled)!=-1&&!a(g).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(b,a){a.is(":not(.ui-state-disabled)")&&a.addClass("ui-state-"+b)},i=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){k("hover",a(this))});this.lis.bind("mouseout.tabs",function(){i("hover",a(this))});this.anchors.bind("focus.tabs",function(){k("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){i("focus",a(this).closest("li"))})}var e,f;if(c.fx)if(a.isArray(c.fx)){e=c.fx[0];f=c.fx[1]}else e=f=c.fx;function j(b,c){b.css("display","");!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var m=f?function(c,b){a(c).closest("li").addClass("ui-tabs-selected ui-state-active");b.hide().removeClass("ui-tabs-hide").animate(f,f.duration||"normal",function(){j(b,f);d._trigger("show",null,d._ui(c,b[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active");c.removeClass("ui-tabs-hide");d._trigger("show",null,d._ui(b,c[0]))},l=e?function(b,a){a.animate(e,e.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active");a.addClass("ui-tabs-hide");j(a,e);d.element.dequeue("tabs")})}:function(b,a){d.lis.removeClass("ui-tabs-selected ui-state-active");a.addClass("ui-tabs-hide");d.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs",function(){var b=this,g=a(b).closest("li"),e=d.panels.filter(":not(.ui-tabs-hide)"),f=d.element.find(d._sanitizeSelector(b.hash));if(g.hasClass("ui-tabs-selected")&&!c.collapsible||g.hasClass("ui-state-disabled")||g.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,f[0]))===false){this.blur();return false}c.selected=d.anchors.index(this);d.abort();if(c.collapsible)if(g.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&d._cookie(c.selected,c.cookie);d.element.queue("tabs",function(){l(b,e)}).dequeue("tabs");this.blur();return false}else if(!e.length){c.cookie&&d._cookie(c.selected,c.cookie);d.element.queue("tabs",function(){m(b,f)});d.load(d.anchors.index(this));this.blur();return false}c.cookie&&d._cookie(c.selected,c.cookie);if(f.length){e.length&&d.element.queue("tabs",function(){l(b,e)});d.element.queue("tabs",function(){m(b,f)});d.load(d.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(b,a){c.removeData(a+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs"))a(this).remove();else a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))});b.cookie&&this._cookie(null,b.cookie);return this},add:function(h,j,c){if(c===b)c=this.anchors.length;var e=this,g=this.options,f=a(g.tabTemplate.replace(/#\{href\}/g,h).replace(/#\{label\}/g,j)),i=!h.indexOf("#")?h.replace("#",""):this._tabId(a("a",f)[0]);f.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var d=e.element.find("#"+i);if(!d.length)d=a(g.panelTemplate).attr("id",i).data("destroy.tabs",true);d.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){f.appendTo(this.list);d.appendTo(this.list[0].parentNode)}else{f.insertBefore(this.lis[c]);d.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(a){return a>=c?++a:a});this._tabify();if(this.anchors.length==1){g.selected=0;f.addClass("ui-tabs-selected ui-state-active");d.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){e._trigger("show",null,e._ui(e.anchors[0],e.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]));return this},remove:function(b){b=this._getIndex(b);var d=this.options,c=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();c.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1<this.anchors.length?1:-1));d.disabled=a.map(a.grep(d.disabled,function(a){return a!=b}),function(a){return a>=b?--a:a});this._tabify();this._trigger("remove",null,this._ui(c.find("a")[0],e[0]));return this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)==-1)return;this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(a){return a!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]));return this},disable:function(a){a=this._getIndex(a);var c=this,b=this.options;if(a!=b.selected){this.lis.eq(a).addClass("ui-state-disabled");b.disabled.push(a);b.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this},load:function(c){c=this._getIndex(c);var b=this,e=this.options,d=this.anchors.eq(c)[0],g=a.data(d,"load.tabs");this.abort();if(!g||this.element.queue("tabs").length!==0&&a.data(d,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(c).addClass("ui-state-processing");if(e.spinner){var f=a("span",d);f.data("label.tabs",f.html()).html(e.spinner)}this.xhr=a.ajax(a.extend({},e.ajaxOptions,{url:g,success:function(f,g){b.element.find(b._sanitizeSelector(d.hash)).html(f);b._cleanup();e.cache&&a.data(d,"cache.tabs",true);b._trigger("load",null,b._ui(b.anchors[c],b.panels[c]));try{e.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f){b._cleanup();b._trigger("load",null,b._ui(b.anchors[c],b.panels[c]));try{e.ajaxOptions.error(a,f,c,d)}catch(g){}}}));b.element.dequeue("tabs");return this},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(a,b){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b);return this},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.8.15"});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(e,f){var a=this,c=this.options,b=a._rotate||(a._rotate=function(b){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var b=c.selected;a.select(++b<a.anchors.length?b:0)},e);b&&b.stopPropagation()}),d=a._unrotate||(a._unrotate=!f?function(b){b.clientX&&a.rotate(null)}:function(){t=c.selected;b()});if(e){this.element.bind("tabsshow",b);this.anchors.bind(c.event+".tabs",d);b()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",b);this.anchors.unbind(c.event+".tabs",d);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(a){a.jGrowl=function(c,b){a("#jGrowl").size()==0&&a('<div id="jGrowl"></div>').addClass(b&&b.position?b.position:a.jGrowl.defaults.position).appendTo("body");a("#jGrowl").jGrowl(c,b)};a.fn.jGrowl=function(b,d){if(a.isFunction(this.each)){var c=arguments;return this.each(function(){var e=this;if(a(this).data("jGrowl.instance")==undefined){a(this).data("jGrowl.instance",a.extend(new a.fn.jGrowl,{notifications:[],element:null,interval:null}));a(this).data("jGrowl.instance").startup(this)}if(a.isFunction(a(this).data("jGrowl.instance")[b]))a(this).data("jGrowl.instance")[b].apply(a(this).data("jGrowl.instance"),a.makeArray(c).slice(1));else a(this).data("jGrowl.instance").create(b,d)})}};a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:false,position:"top-right",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(c,b){var b=a.extend({},this.defaults,b);if(typeof b.speed!=="undefined"){b.openDuration=b.speed;b.closeDuration=b.speed}this.notifications.push({message:c,options:b});b.log.apply(this.element,[this.element,c,b])},render:function(c){var d=this,e=c.message,b=c.options,c=a('<div class="jGrowl-notification '+b.themeState+" ui-corner-all"+(b.group!=undefined&&b.group!=""?" "+b.group:"")+'"><div class="jGrowl-close">'+b.closeTemplate+'</div><div class="jGrowl-header">'+b.header+'</div><div class="jGrowl-message">'+e+"</div></div>").data("jGrowl",b).addClass(b.theme).children("div.jGrowl-close").bind("click.jGrowl",function(){a(this).parent().trigger("jGrowl.close")}).parent();a(c).bind("mouseover.jGrowl",function(){a("div.jGrowl-notification",d.element).data("jGrowl.pause",true)}).bind("mouseout.jGrowl",function(){a("div.jGrowl-notification",d.element).data("jGrowl.pause",false)}).bind("jGrowl.beforeOpen",function(){b.beforeOpen.apply(c,[c,e,b,d.element])!=false&&a(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){if(b.open.apply(c,[c,e,b,d.element])!=false){if(b.glue=="after")a("div.jGrowl-notification:last",d.element).after(c);else a("div.jGrowl-notification:first",d.element).before(c);a(this).animate(b.animateOpen,b.openDuration,b.easing,function(){a.browser.msie&&(parseInt(a(this).css("opacity"),10)===1||parseInt(a(this).css("opacity"),10)===0)&&this.style.removeAttribute("filter");a(this).data("jGrowl").created=new Date;a(this).trigger("jGrowl.afterOpen")})}}).bind("jGrowl.afterOpen",function(){b.afterOpen.apply(c,[c,e,b,d.element])}).bind("jGrowl.beforeClose",function(){b.beforeClose.apply(c,[c,e,b,d.element])!=false&&a(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){a(this).data("jGrowl.pause",true);a(this).animate(b.animateClose,b.closeDuration,b.easing,function(){a(this).remove();var f=b.close.apply(c,[c,e,b,d.element]);a.isFunction(f)&&f.apply(c,[c,e,b,d.element])})}).trigger("jGrowl.beforeOpen");b.corners!=""&&a.fn.corner!=undefined&&a(c).corner(b.corners);a("div.jGrowl-notification:parent",d.element).size()>1&&a("div.jGrowl-closer",d.element).size()==0&&this.defaults.closer!=false&&a(this.defaults.closerTemplate).addClass("jGrowl-closer ui-state-highlight ui-corner-all").addClass(this.defaults.theme).appendTo(d.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().trigger("jGrowl.beforeClose");a.isFunction(d.defaults.closer)&&d.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])})},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){a(this).data("jGrowl")!=undefined&&a(this).data("jGrowl").created!=undefined&&a(this).data("jGrowl").created.getTime()+parseInt(a(this).data("jGrowl").life)<+new Date&&a(this).data("jGrowl").sticky!=true&&(a(this).data("jGrowl.pause")==undefined||a(this).data("jGrowl.pause")!=true)&&a(this).trigger("jGrowl.beforeClose")});this.notifications.length>0&&(this.defaults.pool==0||a(this.element).find("div.jGrowl-notification:parent").size()<this.defaults.pool)&&this.render(this.notifications.shift());a(this.element).find("div.jGrowl-notification:parent").size()<2&&a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})},startup:function(b){this.element=a(b).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){a(b).data("jGrowl.instance").update()},parseInt(this.defaults.check));a.browser.msie&&parseInt(a.browser.version)<7&&!window.XMLHttpRequest&&a(this.element).addClass("ie6")},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)},close:function(){a(this.element).find("div.jGrowl-notification").each(function(){a(this).trigger("jGrowl.beforeClose")})}});a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);"use strict";(function(a,f,j){var c=true,b=false,e=null,g,d,m,h="ui-tooltip",q="ui-widget",i="ui-state-disabled",o="div.qtip."+h,l=h+"-focus",s=h+"-hover",z="-31000px",p="_replacedByqTip",k="oldtitle";function t(){var b=f.console;return b&&(b.error||b.log||a.noop).apply(b,arguments)}function n(c){var e;if(!c||"object"!==typeof c)return b;if("object"!==typeof c.metadata)c.metadata={type:c.metadata};if("content"in c){if("object"!==typeof c.content||c.content.jquery)c.content={text:c.content};e=c.content.text||b;if(!a.isFunction(e)&&(!e&&!e.attr||e.length<1||"object"===typeof e&&!e.jquery))c.content.text=b;if("title"in c.content){if("object"!==typeof c.content.title)c.content.title={text:c.content.title};e=c.content.title.text||b;if(!a.isFunction(e)&&(!e&&!e.attr||e.length<1||"object"===typeof e&&!e.jquery))c.content.title.text=b}}if("position"in c)if("object"!==typeof c.position)c.position={my:c.position,at:c.position};if("show"in c)if("object"!==typeof c.show)if(c.show.jquery)c.show={target:c.show};else c.show={event:c.show};if("hide"in c)if("object"!==typeof c.hide)if(c.hide.jquery)c.hide={target:c.hide};else c.hide={event:c.hide};if("style"in c)if("object"!==typeof c.style)c.style={classes:c.style};a.each(d,function(){this.sanitize&&this.sanitize(c)});return c}function x(v,r,x,L){var j=this,C=document.body,z=h+"-"+x,y=0,w=0,p=a(),t,u;j.id=x;j.rendered=b;j.elements=t={target:v};j.timers={img:[]};j.options=r;j.checks={};j.plugins={};j.cache=u={event:{},target:e,disabled:b,attr:L};function D(e){var d=0,c,b=r,a=e.split(".");while(b=b[a[d++]])if(d<a.length)c=b;return[c||r,a.pop()]}function J(){var a=r.style.widget;p.toggleClass(q,a);t.content.toggleClass(q+"-content",a);t.titlebar&&t.titlebar.toggleClass(q+"-header",a);t.button&&t.button.toggleClass(h+"-icon",!a)}function H(){if(t.title){t.titlebar.remove();t.titlebar=t.title=t.button=e;j.reposition()}}function G(){var c=r.content.title.button,e=typeof c==="string",d=e?c:"Close tooltip";t.button&&t.button.remove();if(c.jquery)t.button=c;else t.button=a("<a />",{"class":"ui-state-default "+(r.style.widget?"":h+"-icon"),title:d,"aria-label":d}).prepend(a("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));t.button.appendTo(t.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){!p.hasClass(i)&&j.hide(a);return b}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")});j.redraw()}function B(){var b=z+"-title";t.titlebar&&H();t.titlebar=a("<div />",{"class":h+"-titlebar "+(r.style.widget?"ui-widget-header":"")}).append(t.title=a("<div />",{id:b,"class":h+"-title","aria-atomic":c})).insertBefore(t.content);if(r.content.title.button)G();else j.rendered&&j.redraw()}function K(a){var d=t.button,c=t.title;if(!j.rendered)return b;if(!a)d.remove();else{!c&&B();G()}}function I(c){var d=t.title;if(!j.rendered||!c)return b;if(a.isFunction(c))c=c.call(v,j)||"";if(c.jquery&&c.length>0)d.empty().append(c.css({display:"block"}));else d.html(c);j.redraw();j.rendered&&p.is(":visible")&&j.reposition(u.event)}function A(c){var d=t.content;c=c||r.content.text;if(!j.rendered||!c)return b;if(a.isFunction(c))c=c.call(v,j)||"";if(c.jquery&&c.length>0)d.empty().append(c.css({display:"block"}));else d.html(c);function e(c){var a;function b(){if((a=a.not(this)).length===0){j.redraw();j.reposition(u.event);c()}}if((a=d.find("img:not([height]):not([width])")).length===0)return b.call(a);a.each(function(c,a){(function d(){var e=j.timers.img;if(a.height&&a.width){clearTimeout(e[c]);return b.call(a)}e[c]=setTimeout(d,20)})()})}if(j.rendered<0)p.queue("fx",e);else{w=0;e(a.noop)}return j}function F(y,w,B,z){var c=".qtip-"+x,e=r.position,d={show:r.show.target,hide:r.hide.target,container:e.container[0]===C?a(document):e.container,doc:a(document)},h={show:a.trim(""+r.show.event).split(" "),hide:a.trim(""+r.hide.event).split(" ")},A=a.browser.msie&&parseInt(a.browser.version,10)===6,D;function q(c){if(p.hasClass(i))return b;d.show.trigger("qtip-"+x+"-inactive");clearTimeout(j.timers.show);clearTimeout(j.timers.hide);var a=function(){j.show(c)};if(r.show.delay>0)j.timers.show=setTimeout(a,r.show.delay);else a()}function n(c){if(p.hasClass(i))return b;var f=a(c.relatedTarget||c.target),g=f.closest(o)[0]===p[0],h=f[0]===d.show[0];clearTimeout(j.timers.show);clearTimeout(j.timers.hide);if(e.target==="mouse"&&g||r.hide.fixed&&/mouse(out|leave|move)/.test(c.type)&&(g||h)){c.stopPropagation();c.preventDefault();return b}if(r.hide.delay>0)j.timers.hide=setTimeout(function(){j.hide(c)},r.hide.delay);else j.hide(c)}function l(a){if(p.hasClass(i))return b;clearTimeout(j.timers.inactive);j.timers.inactive=setTimeout(function(){j.hide(a)},r.hide.inactive)}function k(a){p.is(":visible")&&j.reposition(a)}if(B){if(r.hide.fixed){d.hide=d.hide.add(p);p.bind("mouseover"+c,function(){!p.hasClass(i)&&clearTimeout(j.timers.hide)})}e.target==="mouse"&&e.adjust.mouse&&r.hide.event&&p.bind("mouseleave"+c,function(a){(a.relatedTarget||a.target)!==d.show[0]&&j.hide(a)});p.bind("mouseenter"+c,function(a){j[a.type==="mouseenter"?"focus":"blur"](a)});p.bind("mouseenter"+c+" mouseleave"+c,function(a){p.toggleClass(s,a.type==="mouseenter")})}if(w){if("number"===typeof r.hide.inactive){d.show.bind("qtip-"+x+"-inactive",l);a.each(g.inactiveEvents,function(b,a){d.hide.add(t.tooltip).bind(a+c+"-inactive",l)})}/mouse(over|enter)/i.test(r.show.event)&&!/mouse(out|leave)/i.test(r.hide.event)&&d.hide.bind("mouseleave"+c,function(){clearTimeout(j.timers.show)});a.each(h.hide,function(g,b){var f=a.inArray(b,h.show),e=a(d.hide);if(f>-1&&e.add(d.show).length===e.length||b==="unfocus"){d.show.bind(b+c,function(a){if(p.is(":visible"))n(a);else q(a)});delete h.show[f]}else d.hide.bind(b+c,n)})}if(y){a.each(h.show,function(b,a){d.show.bind(a+c,q)});"number"===typeof r.hide.distance&&d.show.bind("mousemove"+c,function(b){var a=u.origin||{},c=r.hide.distance,d=Math.abs;a&&(d(b.pageX-a.pageX)>=c||d(b.pageY-a.pageY)>=c)&&j.hide(b)})}if(z){(e.adjust.resize||e.viewport)&&a(a.event.special.resize?e.viewport:f).bind("resize"+c,k);(e.viewport||A&&p.css("position")==="fixed")&&a(e.viewport).bind("scroll"+c,k);/unfocus/i.test(r.hide.event)&&d.doc.bind("mousedown"+c,function(c){var b=a(c.target);b.parents(o).length===0&&b.add(v).length>1&&p.is(":visible")&&!p.hasClass(i)&&j.hide(c)});r.hide.leave&&/mouseleave|mouseout/i.test(r.hide.event)&&a(f).bind("blur"+c+" mouse"+(r.hide.leave.indexOf("frame")>-1?"out":"leave")+c,function(a){!a.relatedTarget&&j.hide(a)});e.target==="mouse"&&d.doc.bind("mousemove"+c,function(a){e.adjust.mouse&&!p.hasClass(i)&&p.is(":visible")&&j.reposition(a||m)})}}function E(g,h,e,c){c=parseInt(c,10)!==0;var d=".qtip-"+x,b={show:g&&r.show.target[0],hide:h&&r.hide.target[0],tooltip:e&&j.rendered&&t.tooltip[0],content:e&&j.rendered&&t.content[0],container:c&&r.position.container[0]===C?document:r.position.container[0],window:c&&f};if(j.rendered)a([]).pushStack(a.grep([b.show,b.hide,b.tooltip,b.container,b.content,b.window],function(a){return typeof a==="object"})).unbind(d);else g&&r.show.target.unbind(d+"-create")}j.checks.builtin={"^id$":function(i,j,f){var e=f===c?g.nextid:f,d=h+"-"+e;if(e!==b&&e.length>0&&!a("#"+d).length){p[0].id=d;t.content[0].id=d+"-content";t.title[0].id=d+"-title"}},"^content.text$":function(b,c,a){A(a)},"^content.title.text$":function(b,c,a){if(!a)return H();!t.title&&a&&B();I(a)},"^content.title.button$":function(b,c,a){K(a)},"^position.(my|at)$":function(b,c,a){if("string"===typeof a)b[c]=new d.Corner(a)},"^position.container$":function(b,c,a){j.rendered&&p.appendTo(a)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(c,d,f,e,b){var a=[1,0,0];a[b[1]==="show"?"push":"unshift"](0);E.apply(j,a);F.apply(j,[1,1,0,0])},"^show.ready$":function(){if(!j.rendered)j.render(1);else j.show()},"^style.classes$":function(c,d,b){a.attr(p[0],"class",h+" qtip ui-helper-reset "+b)},"^style.widget|content.title":J,"^events.(render|show|move|hide|focus|blur)$":function(d,c,b){p[(a.isFunction(b)?"":"un")+"bind"]("tooltip"+c,b)}};a.extend(j,{render:function(g){if(j.rendered)return j;var f=r.content.title.text,e=a.Event("tooltiprender");a.attr(v[0],"aria-describedby",z);p=t.tooltip=a("<div/>",{id:z,"class":h+" qtip ui-helper-reset "+r.style.classes,width:r.style.width||"",role:"alert","aria-live":"polite","aria-atomic":b,"aria-describedby":z+"-content","aria-hidden":c}).toggleClass(i,u.disabled).data("qtip",j).appendTo(r.position.container).append(t.content=a("<div />",{"class":h+"-content",id:z+"-content","aria-atomic":c}));j.rendered=-1;w=1;if(f){B();I(f)}A();j.rendered=c;J();a.each(r.events,function(c,b){a.isFunction(b)&&p.bind(c==="toggle"?"tooltipshow tooltiphide":"tooltip"+c,b)});a.each(d,function(){this.initialize==="render"&&this(j)});F(1,1,1,1);p.queue("fx",function(a){e.originalEvent=u.event;p.trigger(e,[j]);w=0;j.redraw();(r.show.ready||g)&&j.show(u.event);a()});return j},"get":function(c){var a,b;switch(c.toLowerCase()){case"dimensions":a={height:p.outerHeight(),width:p.outerWidth()};break;case"offset":a=d.offset(p,r.position.container);break;default:b=D(c.toLowerCase());a=b[0][b[1]];a=a.precedance?a.string():a}return a},"set":function(d,o){var m=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,l=/^content\.(title|attr)|style/i,f=b,h=b,g=j.checks,i;function k(e,d){var a,b,c;for(a in g)for(b in g[a])if(c=new RegExp(b,"i").exec(e)){d.push(c);g[a][b].apply(j,d)}}if("string"===typeof d){i=d;d={};d[i]=o}else d=a.extend(c,{},d);a.each(d,function(e,c){var b=D(e.toLowerCase()),g;g=b[0][b[1]];b[0][b[1]]="object"===typeof c&&c.nodeType?a(c):c;d[e]=[b[0],b[1],c,g];f=m.test(e)||f;h=l.test(e)||h});n(r);y=w=1;a.each(d,k);y=w=0;if(p.is(":visible")&&j.rendered){f&&j.reposition(r.position.target==="mouse"?e:u.event);h&&j.redraw()}return j},toggle:function(c,d){if(!j.rendered)if(c)j.render(1);else return j;var i=c?"show":"hide",f=r[i],k=p.is(":visible"),l,g;if((typeof c).search("boolean|number"))c=!k;if(k===c)return j;if(d){if(/over|enter/.test(d.type)&&/out|leave/.test(u.event.type)&&d.target===r.show.target[0]&&p.has(d.relatedTarget).length)return j;u.event=a.extend({},d)}g=a.Event("tooltip"+i);g.originalEvent=d?u.event:e;p.trigger(g,[j,90]);if(g.isDefaultPrevented())return j;a.attr(p[0],"aria-hidden",!!!c);if(c){u.origin=a.extend({},m);j.focus(d);a.isFunction(r.content.text)&&A();j.reposition(d);f.solo&&a(o,f.solo).not(p).qtip("hide",g)}else{clearTimeout(j.timers.show);delete u.origin;j.blur(d)}function h(){if(!c)p.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""});else{a.browser.msie&&p[0].style.removeAttribute("filter");p.css("overflow","")}}p.stop(0,1);if(a.isFunction(f.effect)){f.effect.call(p,j);p.queue("fx",function(a){h();a()})}else if(f.effect===b){p[i]();h.call(p)}else p.fadeTo(90,c?1:0,h);c&&f.target.trigger("qtip-"+x+"-inactive");return j},show:function(a){return j.toggle(c,a)},hide:function(a){return j.toggle(b,a)},focus:function(h){if(!j.rendered)return j;var d=a(o),f=parseInt(p[0].style.zIndex,10),c=g.zindex+d.length,e=a.extend({},h),i,b;if(!p.hasClass(l)){b=a.Event("tooltipfocus");b.originalEvent=e;p.trigger(b,[j,c]);if(!b.isDefaultPrevented()){if(f!==c){d.each(function(){if(this.style.zIndex>f)this.style.zIndex=this.style.zIndex-1});d.filter("."+l).qtip("blur",e)}p.addClass(l)[0].style.zIndex=c}}return j},blur:function(d){var c=a.extend({},d),b;p.removeClass(l);b=a.Event("tooltipblur");b.originalEvent=c;p.trigger(b,[j]);return j},reposition:function(k,D){if(!j.rendered||y)return j;y=1;var i=r.position.target,v=r.position,g=v.my,o=v.at,n=v.adjust,A=n.method.split(" "),x=p.outerWidth(),w=p.outerHeight(),t=0,s=0,z=a.Event("tooltipmove"),B=p.css("position")==="fixed",e=v.viewport,c={left:0,top:0},q=(j.plugins.tip||{}).corner,l={horizontal:A[0],vertical:A[1]||A[0],tip:r.style.tip||{},left:function(a){var m=l.horizontal==="shift",i=e.offset.left+e.scrollLeft,p=g.x==="left"?x:g.x==="right"?-x:-x/2,r=o.x==="left"?t:o.x==="right"?-t:-t/2,k=l.tip.width+l.tip.border*2||0,f=q&&q.precedance==="x"&&!m?k:0,h=i-a-f,d=a+x-e.width-i+f,b=p-(g.precedance==="x"||g.x===g.y?r:0),j=g.x==="center";if(m){f=q&&q.precedance==="y"?k:0;b=(g.x==="left"?1:-1)*p-f;c.left+=h>0?h:d>0?-d:0;c.left=Math.max(e.offset.left+(f&&q.x==="center"?l.tip.offset:0),a-b,Math.min(Math.max(e.offset.left+e.width,a+b),c.left))}else{if(h>0&&(g.x!=="left"||d>0))c.left-=b+(j?0:2*n.x);else if(d>0&&(g.x!=="right"||h>0))c.left-=j?-b:b+2*n.x;if(c.left!==a&&j)c.left-=n.x;if(c.left<i&&-c.left>d)c.left=a}return c.left-a},top:function(a){var p=l.vertical==="shift",j=e.offset.top+e.scrollTop,m=g.y==="top"?w:g.y==="bottom"?-w:-w/2,r=o.y==="top"?s:o.y==="bottom"?-s:-s/2,k=l.tip.height+l.tip.border*2||0,f=q&&q.precedance==="y"&&!p?k:0,h=j-a-f,d=a+w-e.height-j+f,b=m-(g.precedance==="y"||g.x===g.y?r:0),i=g.y==="center";if(p){f=q&&q.precedance==="x"?k:0;b=(g.y==="top"?1:-1)*m-f;c.top+=h>0?h:d>0?-d:0;c.top=Math.max(e.offset.top+(f&&q.x==="center"?l.tip.offset:0),a-b,Math.min(Math.max(e.offset.top+e.height,a+b),c.top))}else{if(h>0&&(g.y!=="top"||d>0))c.top-=b+(i?0:2*n.y);else if(d>0&&(g.y!=="bottom"||h>0))c.top-=i?-b:b+2*n.y;if(c.top!==a&&i)c.top-=n.y;if(c.top<0&&-c.top>d)c.top=a}return c.top-a}};if(i==="mouse"){o={x:"left",y:"top"};k=k&&(k.type==="resize"||k.type==="scroll")?u.event:!n.mouse&&u.origin?u.origin:m&&(n.mouse||!k||!k.pageX)?{pageX:m.pageX,pageY:m.pageY}:k;c={top:k.pageY,left:k.pageX}}else{if(i==="event")if(k&&k.target&&k.type!=="scroll"&&k.type!=="resize")i=u.target=a(k.target);else i=u.target;i=a(i).eq(0);if(i.length===0)return j;else if(i[0]===document||i[0]===f){t=d.iOS?f.innerWidth:i.width();s=d.iOS?f.innerHeight:i.height();if(i[0]===f)c={top:!B||d.iOS?e.scrollTop():0,left:!B||d.iOS?e.scrollLeft():0}}else if(i.is("area")&&d.imagemap)c=d.imagemap(i,o);else if(i[0].namespaceURI==="http://www.w3.org/2000/svg"&&d.svg)c=d.svg(i,o);else{t=i.outerWidth();s=i.outerHeight();c=d.offset(i,v.container,B)}if(c.offset){t=c.width;s=c.height;c=c.offset}c.left+=o.x==="right"?t:o.x==="center"?t/2:0;c.top+=o.y==="bottom"?s:o.y==="center"?s/2:0}c.left+=n.x+(g.x==="right"?-x:g.x==="center"?-x/2:0);c.top+=n.y+(g.y==="bottom"?-w:g.y==="center"?-w/2:0);if(e.jquery&&i[0]!==f&&i[0]!==C&&l.vertical+l.horizontal!=="nonenone"){e={elem:e,height:e[(e[0]===f?"h":"outerH")+"eight"](),width:e[(e[0]===f?"w":"outerW")+"idth"](),scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),offset:e.offset()||{left:0,top:0}};c.adjusted={left:l.horizontal!=="none"?l.left(c.left):0,top:l.vertical!=="none"?l.top(c.top):0}}else c.adjusted={left:0,top:0};p.attr("class",function(){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(h+"-pos-"+g.abbreviation());z.originalEvent=a.extend({},k);p.trigger(z,[j,c,e.elem||e]);if(z.isDefaultPrevented())return j;delete c.adjusted;if(D===b||isNaN(c.left)||isNaN(c.top)||!a.isFunction(v.effect))p.css(c);else if(a.isFunction(v.effect)){v.effect.call(p,j,a.extend({},c));p.queue(function(b){a(this).css({opacity:"",height:""});a.browser.msie&&this.style.removeAttribute("filter");b()})}y=0;return j},redraw:function(){if(j.rendered<1||r.style.width||w)return j;var f=h+"-fluid",g=r.position.container,e,d,b,c;w=1;p.css("width","").addClass(f);d=p.width()+(a.browser.mozilla?1:0);b=p.css("max-width")||"";c=p.css("min-width")||"";e=(b+c).indexOf("%")>-1?g.width()/100:0;b=(b.indexOf("%")>-1?e:1)*parseInt(b,10)||d;c=(c.indexOf("%")>-1?e:1)*parseInt(c,10)||0;d=b+c?Math.min(Math.max(d,c),b):d;p.css("width",Math.round(d)).removeClass(f);w=0;return j},disable:function(b){var c=i;if("boolean"!==typeof b)b=!(p.hasClass(c)||u.disabled);if(j.rendered){p.toggleClass(c,b);a.attr(p[0],"aria-disabled",b)}else u.disabled=!!b;return j},enable:function(){return j.disable(b)},destroy:function(){var b=v[0],c=a.attr(b,k);if(j.rendered){p.remove();a.each(j.plugins,function(){this.destroy&&this.destroy()})}clearTimeout(j.timers.show);clearTimeout(j.timers.hide);E(1,1,1,1);a.removeData(b,"qtip");if(c){a.attr(b,"title",c);v.removeAttr(k)}v.removeAttr("aria-describedby").unbind(".qtip");return v}})}function w(s,l){var p,h,o,f,i=a(this),r=a(document.body),q=this===document?r:i,m=i.metadata?i.metadata(l.metadata):e,u=l.metadata.type==="html5"&&m?m[l.metadata.name]:e,j=i.data(l.metadata.name||"qtipopts");try{j=typeof j==="string"?new Function("return "+j)():j}catch(v){t("Unable to parse HTML5 attribute data: "+j)}f=a.extend(c,{},g.defaults,l,typeof j==="object"?n(j):e,n(u||m));m&&a.removeData(this,"metadata");h=f.position;f.id=s;if("boolean"===typeof f.content.text){o=i.attr(f.content.attr);if(f.content.attr!==b&&o)f.content.text=o;else return b}if(h.container===b)h.container=r;if(h.target===b)h.target=q;if(f.show.target===b)f.show.target=q;if(f.show.solo===c)f.show.solo=r;if(f.hide.target===b)f.hide.target=q;if(f.position.viewport===c)f.position.viewport=h.container;h.at=new d.Corner(h.at);h.my=new d.Corner(h.my);if(a.data(this,"qtip"))if(f.overwrite)i.qtip("destroy");else if(f.overwrite===b)return b;if(a.attr(this,"title")){a.attr(this,k,a.attr(this,"title"));this.removeAttribute("title")}p=new x(i,f,s,!!o);a.data(this,"qtip",p);i.bind("remove.qtip",function(){p.destroy()});return p}g=a.fn.qtip=function(h,f,o){var d=(""+h).toLowerCase(),l=e,m=d==="disable"?[c]:a.makeArray(arguments).slice(1,10),i=m[m.length-1],k=this[0]?a.data(this[0],"qtip"):e;if(!arguments.length&&k||d==="api")return k;else if("string"===typeof h){this.each(function(){var e=a.data(this,"qtip");if(!e)return c;if(i&&i.timeStamp)e.cache.event=i;if((d==="option"||d==="options")&&f)if(a.isPlainObject(f)||o!==j)e.set(f,o);else{l=e.get(f);return b}else e[d]&&e[d].apply(e[d],m)});return l!==e?l:this}else if("object"===typeof h||!arguments.length){k=n(a.extend(c,{},h));return g.bind.call(this,k,i)}};g.bind=function(e,f){return this.each(function(){var i,m,j,o=!e.id||e.id===b||e.id.length<1||a("#"+h+"-"+e.id).length?g.nextid++:e.id,l=".qtip-"+o+"-create",k=w.call(this,o,e);if(k===b)return c;i=k.options;a.each(d,function(){this.initialize==="initialize"&&this(k)});m={show:i.show.target,hide:i.hide.target};j={show:a.trim(""+i.show.event).replace(/ /g,l+" ")+l,hide:a.trim(""+i.hide.event).replace(/ /g,l+" ")+l};if(/mouse(over|enter)/i.test(j.show)&&!/mouse(out|leave)/i.test(j.hide))j.hide+=" mouseleave"+l;function n(d){function c(){k.render(typeof d==="object"||i.show.ready);m.show.unbind(j.show);m.hide.unbind(j.hide)}if(k.cache.disabled)return b;k.cache.event=a.extend({},d);if(i.show.delay>0){clearTimeout(k.timers.show);k.timers.show=setTimeout(c,i.show.delay);j.show!==j.hide&&m.hide.bind(j.hide,function(){clearTimeout(k.timers.show)})}else c()}m.show.bind(j.show,n);(i.show.ready||i.prerender)&&n(f)})};d=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase();this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(l,e,k){var c=l.offset(),b=e,j=0,h=document.body,g;function i(a,b){c.left+=b*a.scrollLeft();c.top+=b*a.scrollTop()}if(b){do if(b[0]===h)break;else if(b.css("position")!=="static"){g=b.position();c.left-=g.left+(parseInt(b.css("borderLeftWidth"),10)||0);c.top-=g.top+(parseInt(b.css("borderTopWidth"),10)||0);j++}while(b=b.offsetParent());(e[0]!==h||j>1)&&i(e,1);(d.iOS<4.1&&d.iOS>3.1||!d.iOS&&k)&&i(a(f),-1)}return c},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||b,fn:{attr:function(e,f){if(!this.length)return;var d=this[0],c="title",b=a.data(d,"qtip");if(e===c)if(arguments.length<2)return a.attr(d,k);else if(typeof b==="object"){b&&b.rendered&&b.options.content.attr===c&&b.cache.attr&&b.set("content.text",f);a.fn["attr"+p].apply(this,arguments);a.attr(d,k,a.attr(d,c));return this.removeAttr(c)}},clone:function(){var e=a([]),c="title",b;b=a.fn["clone"+p].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,c,a.attr(this,k));this.removeAttribute(k)}).end();return b},remove:a.ui?e:function(b,c){a(this).each(function(){if(!c)(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}};a.each(d.fn,function(b,d){if(!d)return c;var e=a.fn[b+p]=a.fn[b];a.fn[b]=function(){return d.apply(this,arguments)||e.apply(this,arguments)}});a(document).bind("mousemove.qtip",function(a){m={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});g.version="nightly";g.nextid=0;g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");g.zindex=15e3;g.defaults={prerender:b,id:b,overwrite:c,content:{text:c,attr:"title",title:{text:b,button:b}},position:{my:"top left",at:"bottom right",target:b,container:b,viewport:b,adjust:{x:0,y:0,mouse:c,resize:c,method:"flip flip"},effect:c},show:{target:b,event:"mouseenter",effect:c,delay:90,solo:b,ready:b},hide:{target:b,event:"mouseleave",effect:c,delay:0,fixed:b,inactive:b,leave:"window",distance:b},style:{classes:"",widget:b,width:b},events:{render:e,move:e,show:e,hide:e,toggle:e,focus:e,blur:e}};function v(f){var e=this,g=f.elements.tooltip,d=f.options.content.ajax,h=".qtip-ajax",i=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,j=c;f.checks.ajax={"^content.ajax":function(c,a,b){if(a==="ajax")d=b;if(a==="once")e.init();else if(d&&d.url)e.load();else g.unbind(h)}};a.extend(e,{init:function(){d&&d.url&&g.unbind(h)[d.once?"one":"bind"]("tooltipshow"+h,e.load);return e},load:function(m,n){if(m&&m.isDefaultPrevented())return e;var h=d.url.indexOf(" "),c=d.url,j,k=d.once&&!d.loading&&n;k&&g.css("visibility","hidden");if(h>-1){j=c.substr(h);c=c.substr(0,h)}function l(){if(k){g.css("visibility","");n=b}}function o(b){if(j)b=a("<div/>").append(b.replace(i,"")).find(j);f.set("content.text",b);l()}function p(c,a,b){f.set("content.text",a+": "+b);l()}a.ajax(a.extend({success:o,error:p,context:f},d,{url:c}));return e}});e.init()}d.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new v(a)};d.ajax.initialize="render";d.ajax.sanitize=function(c){var b=c.content,a;if(b&&"ajax"in b){a=b.ajax;if(typeof a!=="object")a=c.content.ajax={url:a};if("boolean"!==typeof a.once&&a.once)a.once=!!a.once}};a.extend(c,g.defaults,{content:{ajax:{loading:c,once:c}}});d.imagemap=function(j,d){var k=j.attr("shape").toLowerCase(),h=j.attr("coords").split(","),c=[],f=a('img[usemap="#'+j.parent("map").attr("name")+'"]'),g=f.offset(),b={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},i=0,e=0;function l(c,e){var j=0,a=1,b=1,h=0,i=0,g=c.width,f=c.height;while(g>0&&f>0&&a>0&&b>0){g=Math.floor(g/2);f=Math.floor(f/2);if(d.x==="left")a=g;else if(d.x==="right")a=c.width-g;else a+=Math.floor(g/2);if(d.y==="top")b=f;else if(d.y==="bottom")b=c.height-f;else b+=Math.floor(f/2);j=e.length;while(j--){if(e.length<2)break;h=e[j][0]-c.offset.left;i=e[j][1]-c.offset.top;(d.x==="left"&&h>=a||d.x==="right"&&h<=a||d.x==="center"&&(h<a||h>c.width-a)||d.y==="top"&&i>=b||d.y==="bottom"&&i<=b||d.y==="center"&&(i<b||i>c.height-b))&&e.splice(j,1)}}return{left:e[0][0],top:e[0][1]}}g.left+=Math.ceil((f.outerWidth()-f.width())/2);g.top+=Math.ceil((f.outerHeight()-f.height())/2);if(k==="poly"){i=h.length;while(i--){e=[parseInt(h[--i],10),parseInt(h[i+1],10)];if(e[0]>b.offset.right)b.offset.right=e[0];if(e[0]<b.offset.left)b.offset.left=e[0];if(e[1]>b.offset.bottom)b.offset.bottom=e[1];if(e[1]<b.offset.top)b.offset.top=e[1];c.push(e)}}else c=a.map(h,function(a){return parseInt(a,10)});switch(k){case"rect":b={width:Math.abs(c[2]-c[0]),height:Math.abs(c[3]-c[1]),offset:{left:c[0],top:c[1]}};break;case"circle":b={width:c[2]+2,height:c[2]+2,offset:{left:c[0],top:c[1]}};break;case"poly":a.extend(b,{width:Math.abs(b.offset.right-b.offset.left),height:Math.abs(b.offset.bottom-b.offset.top)});if(d.string()==="centercenter")b.offset={left:b.offset.left+b.width/2,top:b.offset.top+b.height/2};else b.offset=l(b,c.slice());b.width=b.height=0}b.offset.left+=g.left;b.offset.top+=g.top;return b};function r(f,b,a){var e=Math.ceil(b/2),d=Math.ceil(a/2),c={bottomright:[[0,0],[b,a],[b,0]],bottomleft:[[0,0],[b,0],[0,a]],topright:[[0,a],[b,0],[b,a]],topleft:[[0,0],[0,a],[b,a]],topcenter:[[0,a],[e,0],[b,a]],bottomcenter:[[0,0],[b,0],[e,a]],rightcenter:[[0,0],[b,d],[0,a]],leftcenter:[[b,0],[b,a],[0,d]]};c.lefttop=c.bottomright;c.righttop=c.bottomleft;c.leftbottom=c.topright;c.rightbottom=c.topleft;return c[f.string()]}function y(m){var f=this,k=m.options.style.tip,g=m.elements,l=g.tooltip,o={top:0,left:0,corner:""},n={width:k.width,height:k.height},i={},h=k.border||0,s=".qtip-tip",q=a("<canvas />")[0].getContext;f.corner=e;f.mimic=e;f.position={};m.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){!f.init()&&f.destroy();m.reposition()},"^style.tip.(height|width)$":function(){n={width:k.width,height:k.height};f.create();f.update();m.reposition()},"^content.title.text|style.(classes|widget)$":function(){g.tip&&f.update()}};function v(u,v,p){if(!g.tip)return;var e=a.extend({},f.corner),h=p.adjusted,s=m.options.position.adjust.method.split(" "),q=s[0],r=s[1]||s[0],i={left:b,top:b,x:0,y:0},d,n={},l;if(f.corner.fixed!==c){if(q==="shift"&&e.precedance==="x"&&h.left&&e.y!=="center")e.precedance=e.precedance==="x"?"y":"x";else if(q==="flip"&&h.left)e.x=e.x==="center"?h.left>0?"left":"right":e.x==="left"?"right":"left";if(r==="shift"&&e.precedance==="y"&&h.top&&e.x!=="center")e.precedance=e.precedance==="y"?"x":"y";else if(r==="flip"&&h.top)e.y=e.y==="center"?h.top>0?"top":"bottom":e.y==="top"?"bottom":"top";e.string()!==o.corner&&(o.top!==h.top||o.left!==h.left)&&f.update(e,b)}d=f.position(e,h);if(d.right!==j)d.left=-d.right;if(d.bottom!==j)d.top=-d.bottom;d.user=Math.max(0,k.offset);if(i.left=q==="shift"&&!!h.left)if(e.x==="center")n["margin-left"]=i.x=d["margin-left"]-h.left;else{l=d.right!==j?[h.left,-d.left]:[-h.left,d.left];if((i.x=Math.max(l[0],l[1]))>l[0]){p.left-=h.left;i.left=b}n[d.right!==j?"right":"left"]=i.x}if(i.top=r==="shift"&&!!h.top)if(e.y==="center")n["margin-top"]=i.y=d["margin-top"]-h.top;else{l=d.bottom!==j?[h.top,-d.top]:[-h.top,d.top];if((i.y=Math.max(l[0],l[1]))>l[0]){p.top-=h.top;i.top=b}n[d.bottom!==j?"bottom":"top"]=i.y}g.tip.css(n).toggle(!(i.x&&i.y||e.x==="center"&&i.y||e.y==="center"&&i.x));p.left-=d.left.charAt?d.user:q!=="shift"||i.top||!i.left&&!i.top?d.left:0;p.top-=d.top.charAt?d.user:r!=="shift"||i.left||!i.left&&!i.top?d.top:0;o.left=h.left;o.top=h.top;o.corner=e.string()}function p(b,a,f){a=!a?b[b.precedance]:a;var e=g.titlebar&&b.y==="top",h=e?g.titlebar:g.content,c="border-"+a+"-width",d=parseInt(h.css(c),10);return(f?d||parseInt(l.css(c),10):d)||0}function u(b){var f=g.titlebar&&b.y==="top",i=f?g.titlebar:g.content,c=a.browser.mozilla,h=c?"-moz-":a.browser.webkit?"-webkit-":"",d=b.y+(c?"":"-")+b.x,e=h+(c?"border-radius-"+d:"border-"+d+"-radius");return parseInt(i.css(e),10)||parseInt(l.css(e),10)||0}function t(k){var d=k.precedance==="y",m=n[d?"width":"height"],e=n[d?"height":"width"],i=k.string().indexOf("center")>-1,o=m*(i?.5:1),b=Math.pow,l=Math.round,j,g,f,c=Math.sqrt(b(o,2)+b(e,2)),a=[h/o*c,h/e*c];a[2]=Math.sqrt(b(a[0],2)-b(h,2));a[3]=Math.sqrt(b(a[1],2)-b(h,2));j=c+a[2]+a[3]+(i?0:a[0]);g=j/c;f=[l(g*e),l(g*m)];return{height:f[d?0:1],width:f[d?1:0]}}a.extend(f,{init:function(){var b=f.detectCorner()&&(q||a.browser.msie);if(b){f.create();f.update();l.unbind(s).bind("tooltipmove"+s,v)}return b},detectCorner:function(){var e=k.corner,a=m.options.position,h=a.at,g=a.my.string?a.my.string():a.my;if(e===b||g===b&&h===b)return b;else if(e===c)f.corner=new d.Corner(g);else if(!e.string){f.corner=new d.Corner(e);f.corner.fixed=c}return f.corner.string()!=="centercenter"},detectColours:function(){var x,j,e,b=g.tip.css({backgroundColor:"",border:""}),h=f.corner,o=h[h.precedance],q="border-"+o+"-color",t="border"+o.charAt(0)+o.substr(1)+"Color",d=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,c="background-color",p="transparent",s="ui-tooltip-fluid",v=a(document.body).css("color"),u=m.elements.content.css("color"),w=g.titlebar&&(h.y==="top"||h.y==="center"&&b.position().top+n.height/2+k.offset<g.titlebar.outerHeight(1)),r=w?g.titlebar:g.content;l.addClass(s);j=b.css(c)||p;e=b[0].style[t];if(!j||d.test(j)){i.fill=r.css(c);if(d.test(i.fill))i.fill=l.css(c)||j}if(!e||d.test(e)){i.border=l.css(q);if(d.test(i.border)||i.border===v){i.border=r.css(q);if(i.border===u)i.border=e}}a("*",b).add(b).css(c,p).css("border","");l.removeClass(s)},create:function(){var d=n.width,c=n.height,b;g.tip&&g.tip.remove();g.tip=a("<div />",{"class":"ui-tooltip-tip"}).css({width:d,height:c}).prependTo(l);if(q)a("<canvas />").appendTo(g.tip)[0].getContext("2d").save();else{b='<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>';g.tip.html(h?b+=b:b)}},update:function(o,B){var A=g.tip,z=A.children(),w=n.width,v=n.height,D="px solid ",C="px dashed transparent",j=k.mimic,x=Math.round,y,l,m,s,u;if(!o)o=f.corner;if(j===b)j=o;else{j=new d.Corner(j);j.precedance=o.precedance;if(j.x==="inherit")j.x=o.x;else if(j.y==="inherit")j.y=o.y;else if(j.x===j.y)j[o.precedance]=o[o.precedance]}y=j.precedance;f.detectColours();h=i.border==="transparent"||i.border==="#123456"?0:k.border===c?p(o,e,c):k.border;m=r(j,w,v);u=t(o);A.css(u);if(o.precedance==="y")s=[x(j.x==="left"?h:j.x==="right"?u.width-w-h:(u.width-w)/2),x(j.y==="top"?u.height-v:0)];else s=[x(j.x==="left"?u.width-w:0),x(j.y==="top"?h:j.y==="bottom"?u.height-v-h:(u.height-v)/2)];if(q){z.attr(u);l=z[0].getContext("2d");l.restore();l.save();l.clearRect(0,0,3e3,3e3);l.translate(s[0],s[1]);l.beginPath();l.moveTo(m[0][0],m[0][1]);l.lineTo(m[1][0],m[1][1]);l.lineTo(m[2][0],m[2][1]);l.closePath();l.fillStyle=i.fill;l.strokeStyle=i.border;l.lineWidth=h*2;l.lineJoin="miter";l.miterLimit=100;l.stroke();l.fill()}else{m="m"+m[0][0]+","+m[0][1]+" l"+m[1][0]+","+m[1][1]+" "+m[2][0]+","+m[2][1]+" xe";s[2]=h&&/^(r|b)/i.test(o.string())?parseFloat(a.browser.version,10)===8?2:1:0;z.css({antialias:""+(j.string().indexOf("center")>-1),left:s[0]-s[2]*Number(y==="x"),top:s[1]-s[2]*Number(y==="y"),width:w+h,height:v+h}).each(function(b){var c=a(this);c.attr({coordsize:w+h+" "+(v+h),path:m,fillcolor:i.fill,filled:!!b,stroked:!!!b}).css({display:h||b?"block":"none"});!b&&h>0&&c.html()===""&&c.html('<vml:stroke weight="'+h*2+'px" color="'+i.border+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')})}B!==b&&f.position(o)},position:function(d){var m=g.tip,h={},l=Math.max(0,k.offset),e,i,j;if(k.corner===b||!m)return b;d=d||f.corner;e=d.precedance;i=t(d);j=[d.x,d.y];e==="x"&&j.reverse();a.each(j,function(g,b){var a,f;if(b==="center"){a=e==="y"?"left":"top";h[a]="50%";h["margin-"+a]=-Math.round(i[e==="y"?"width":"height"]/2)+l}else{a=p(d,b,c);f=u(d);h[b]=g?p(d,b):l+(f>a?f:0)}});h[d[e]]-=i[e==="x"?"width":"height"];m.css({top:"",bottom:"",left:"",right:"",margin:""}).css(h);return h},destroy:function(){g.tip&&g.tip.remove();l.unbind(s)}});f.init()}d.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new y(a)};d.tip.initialize="render";d.tip.sanitize=function(b){var d=b.style,a;if(d&&"tip"in d){a=b.style.tip;if(typeof a!=="object")b.style.tip={corner:a};if(!/string|boolean/i.test(typeof a.corner))a.corner=c;if(typeof a.width!=="number")delete a.width;if(typeof a.height!=="number")delete a.height;if(typeof a.border!=="number"&&a.border!==c)delete a.border;if(typeof a.offset!=="number")delete a.offset}};a.extend(c,g.defaults,{style:{tip:{corner:c,mimic:b,width:6,height:6,border:c,offset:0}}});function u(j){var e=this,m=j.options.show.modal,i=j.elements,h=i.tooltip,o="#qtip-overlay",g=".qtipmodal",k=g+j.id,n="is-modal-qtip",d;j.checks.modal={"^show.modal.(on|blur)$":function(){e.init();i.overlay.toggle(h.is(":visible"))}};a.extend(e,{init:function(){if(!m.on)return e;d=e.create();h.attr(n,c).unbind(g).unbind(k).bind("tooltipshow"+g+" tooltiphide"+g,function(a,c,b){e[a.type.replace("tooltip","")](a,b)}).bind("tooltipfocus"+g,function(b,c,a){d[0].style.zIndex=a-1}).bind("tooltipblur"+g,function(b){a("["+n+"]:visible").not(h).last().qtip("focus",b)});m.escape&&a(f).unbind(k).bind("keydown"+k,function(a){a.keyCode===27&&h.hasClass(l)&&j.hide(a)});m.blur&&i.overlay.unbind(k).bind("click"+k,function(a){h.hasClass(l)&&j.hide(a)});return e},create:function(){var c=a(o);if(c.length){i.overlay=c;return c}d=i.overlay=a("<div />",{id:o.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return b}}).appendTo(document.body);a(f).unbind(g).bind("resize"+g,function(){d.css({height:Math.max(a(f).height(),a(document).height()),width:Math.max(a(f).width(),a(document).width())})}).trigger("resize");return d},toggle:function(j,f,k){if(j&&j.isDefaultPrevented())return e;var g=m.effect,o=f?"show":"hide",l=a("["+n+"]:visible").not(h),p;if(!d)d=e.create();if(d.is(":animated")&&!f||!f&&l.length)return e;f&&i.overlay.css("cursor",m.blur?"pointer":"");d.stop(c,b);if(a.isFunction(g))g.call(d,f);else if(g===b)d[o]();else d.fadeTo(parseInt(k,10)||90,f?.7:0,function(){!f&&a(this).hide()});return e},show:function(b,a){return e.toggle(b,c,a)},hide:function(c,a){return e.toggle(c,b,a)},destroy:function(){var b=d;if(b){b=a("["+n+"]").not(h).length<1;if(b){i.overlay.remove();a(f).unbind(g)}else i.overlay.unbind(g+j.id)}return h.removeAttr(n).unbind(g)}});e.init()}d.modal=function(a){var b=a.plugins.modal;return"object"===typeof b?b:a.plugins.modal=new u(a)};d.modal.initialize="render";d.modal.sanitize=function(a){if(a.show)if(typeof a.show.modal!=="object")a.show.modal={on:!!a.show.modal};else if(typeof a.show.modal.on==="undefined")a.show.modal.on=c};a.extend(c,g.defaults,{show:{modal:{on:b,effect:c,blur:c,escape:c}}})})(jQuery,window);jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var h="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var b;if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*864e5)}else b=a.expires;h="; expires="+b.toUTCString()}var l=a.path?"; path="+a.path:"",j=a.domain?"; domain="+a.domain:"",k=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),h,l,j,k].join("")}else{var f=null;if(document.cookie&&document.cookie!="")for(var g=document.cookie.split(";"),e=0;e<g.length;e++){var i=jQuery.trim(g[e]);if(i.substring(0,d.length+1)==d+"="){f=decodeURIComponent(i.substring(d.length+1));break}}return f}};
/*!
* jQuery Form Plugin
* version: 2.43 (12-MAR-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
*   http://www.opensource.org/licenses/mit-license.php
*   http://www.gnu.org/licenses/gpl.html
*/
(function(a){a.fn.ajaxSubmit=function(c){if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof c=="function")c={success:c};var f=a.trim(this.attr("action"));if(f)f=(f.match(/^([^#]+)/)||[])[1];f=f||window.location.href||"";c=a.extend({url:f,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c||{});var i={};this.trigger("form-pre-serialize",[this,c,i]);if(i.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===false){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var h=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(var g in c.data)if(c.data[g]instanceof Array)for(var q in c.data[g])h.push({name:g,value:c.data[g][q]});else h.push({name:g,value:c.data[g]})}if(c.beforeSubmit&&c.beforeSubmit(h,this,c)===false){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[h,this,c,i]);if(i.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var n=a.param(h);if(c.type.toUpperCase()=="GET"){c.url+=(c.url.indexOf("?")>=0?"&":"?")+n;c.data=null}else c.data=n;var d=this,e=[];c.resetForm&&e.push(function(){d.resetForm()});c.clearForm&&e.push(function(){d.clearForm()});if(!c.dataType&&c.target){var o=c.success||function(){};e.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(o,arguments)})}else c.success&&e.push(c.success);c.success=function(f,b,h){for(var a=0,g=e.length;a<g;a++)e[a].apply(c,[f,b,h||d,d])};for(var j=a("input:file",this).fieldValue(),m=false,k=0;k<j.length;k++)if(j[k])m=true;var p=false;if(j.length&&c.iframe!==false||c.iframe||m||p)if(c.closeKeepAlive)a.get(c.closeKeepAlive,l);else l();else a.ajax(c);this.trigger("form-submit-notify",[this,c]);return this;function l(){var g=d[0];if(a(":input[name=submit]",g).length){alert('Error: Form elements must not be named "submit".');return}var e=a.extend({},a.ajaxSettings,c),m=a.extend(true,{},a.extend(true,{},a.ajaxSettings),e),o="jqFormIO"+ +new Date,h=a('<iframe id="'+o+'" name="'+o+'" src="'+e.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),j=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;h.attr("src",e.iframeSrc)}},k=e.global;k&&!a.active++&&a.event.trigger("ajaxStart");k&&a.event.trigger("ajaxSend",[f,e]);if(m.beforeSend&&m.beforeSend(f,m)===false){m.global&&a.active--;return}if(f.aborted)return;var p=false,r=0,i=g.clk;if(i){var l=i.name;if(l&&!i.disabled){e.extraData=e.extraData||{};e.extraData[l]=i.value;if(i.type=="image"){e.extraData[l+".x"]=g.clk_x;e.extraData[l+".y"]=g.clk_y}}}function q(){var f=d.attr("target"),i=d.attr("action");g.setAttribute("target",o);g.getAttribute("method")!="POST"&&g.setAttribute("method","POST");g.getAttribute("action")!=e.url&&g.setAttribute("action",e.url);!e.skipEncodingOverride&&d.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});e.timeout&&setTimeout(function(){r=true;n()},e.timeout);var b=[];try{if(e.extraData)for(var c in e.extraData)b.push(a('<input type="hidden" name="'+c+'" value="'+e.extraData[c]+'" />').appendTo(g)[0]);h.appendTo("body");h.data("form-plugin-onload",n);g.submit()}finally{g.setAttribute("action",i);f?g.setAttribute("target",f):d.removeAttr("target");a(b).remove()}}if(e.forceSync)q();else setTimeout(q,10);var s=100;function n(){if(p)return;var d=true;try{if(r)throw"timeout";var i,c;c=j.contentWindow?j.contentWindow.document:j.contentDocument?j.contentDocument:j.document;var g=e.dataType=="xml"||c.XMLDocument||a.isXMLDoc(c);b("isXml="+g);if(!g&&(c.body==null||c.body.innerHTML=="")){if(--s){b("requeing onLoad callback, DOM not available");setTimeout(n,250);return}b("Could not access iframe DOM after 100 tries.");return}b("response detected");p=true;f.responseText=c.body?c.body.innerHTML:null;f.responseXML=c.XMLDocument?c.XMLDocument:c;f.getResponseHeader=function(b){var a={"content-type":e.dataType};return a[b]};if(e.dataType=="json"||e.dataType=="script"){var m=c.getElementsByTagName("textarea")[0];if(m)f.responseText=m.value;else{var l=c.getElementsByTagName("pre")[0];if(l)f.responseText=l.innerHTML}}else if(e.dataType=="xml"&&!f.responseXML&&f.responseText!=null)f.responseXML=t(f.responseText);i=a.httpData(f,e.dataType)}catch(o){b("error caught:",o);d=false;f.error=o;a.handleError(e,f,"error",o)}if(d){e.success(i,"success");k&&a.event.trigger("ajaxSuccess",[f,e])}k&&a.event.trigger("ajaxComplete",[f,e]);k&&!--a.active&&a.event.trigger("ajaxStop");e.complete&&e.complete(f,d?"success":"error");setTimeout(function(){h.removeData("form-plugin-onload");h.remove();f.responseXML=null},100)}function t(b,a){if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLDOM");a.async="false";a.loadXML(b)}else a=(new DOMParser).parseFromString(b,"text/xml");return a&&a.documentElement&&a.documentElement.tagName!="parsererror"?a:null}}};a.fn.ajaxForm=function(b){return this.ajaxFormUnbind().bind("submit.form-plugin",function(c){c.preventDefault();a(this).ajaxSubmit(b)}).bind("click.form-plugin",function(c){var d=c.target,e=a(d);if(!e.is(":submit,input:image")){var g=e.closest(":submit");if(g.length==0)return;d=g[0]}var b=this;b.clk=d;if(d.type=="image")if(c.offsetX!=undefined){b.clk_x=c.offsetX;b.clk_y=c.offsetY}else if(typeof a.fn.offset=="function"){var f=e.offset();b.clk_x=c.pageX-f.left;b.clk_y=c.pageY-f.top}else{b.clk_x=c.pageX-d.offsetLeft;b.clk_y=c.pageY-d.offsetTop}setTimeout(function(){b.clk=b.clk_x=b.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(g){var d=[];if(this.length==0)return d;var b=this[0],i=g?b.getElementsByTagName("*"):b.elements;if(!i)return d;for(var j=0,n=i.length;j<n;j++){var f=i[j],c=f.name;if(!c)continue;if(g&&b.clk&&f.type=="image"){if(!f.disabled&&b.clk==f){d.push({name:c,value:a(f).val()});d.push({name:c+".x",value:b.clk_x},{name:c+".y",value:b.clk_y})}continue}var e=a.fieldValue(f,true);if(e&&e.constructor==Array)for(var k=0,m=e.length;k<m;k++)d.push({name:c,value:e[k]});else e!==null&&typeof e!="undefined"&&d.push({name:c,value:e})}if(!g&&b.clk){var l=a(b.clk),h=l[0],c=h.name;if(c&&!h.disabled&&h.type=="image"){d.push({name:c,value:l.val()});d.push({name:c+".x",value:b.clk_x},{name:c+".y",value:b.clk_y})}}return d};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(c){var b=[];this.each(function(){var f=this.name;if(!f)return;var d=a.fieldValue(this,c);if(d&&d.constructor==Array)for(var e=0,g=d.length;e<g;e++)b.push({name:f,value:d[e]});else d!==null&&typeof d!="undefined"&&b.push({name:this.name,value:d})});return a.param(b)};a.fn.fieldValue=function(e){for(var c=[],d=0,f=this.length;d<f;d++){var g=this[d],b=a.fieldValue(g,e);if(b===null||typeof b=="undefined"||b.constructor==Array&&!b.length)continue;b.constructor==Array?a.merge(c,b):c.push(b)}return c};a.fieldValue=function(a,e){var m=a.name,c=a.type,j=a.tagName.toLowerCase();if(typeof e=="undefined")e=true;if(e&&(!m||a.disabled||c=="reset"||c=="button"||(c=="checkbox"||c=="radio")&&!a.checked||(c=="submit"||c=="image")&&a.form&&a.form.clk!=a||j=="select"&&a.selectedIndex==-1))return null;if(j=="select"){var f=a.selectedIndex;if(f<0)return null;for(var k=[],i=a.options,g=c=="select-one",l=g?f+1:i.length,h=g?f:0;h<l;h++){var b=i[h];if(b.selected){var d=b.value;if(!d)d=b.attributes&&b.attributes.value&&!b.attributes.value.specified?b.text:b.value;if(g)return d;k.push(d)}}return k}return a.value};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();if(a=="text"||a=="password"||b=="textarea")this.value="";else if(a=="checkbox"||a=="radio")this.checked=false;else if(b=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){if(a==undefined)a=true;return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){if(b==undefined)b=true;return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var c=a(this).parent("select");b&&c[0]&&c[0].type=="select-one"&&c.find("option").selected(false);this.selected=b}})};function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(b);else window.opera&&window.opera.postError&&window.opera.postError(b)}}})(jQuery);(function(b){var a={};b.fn.extend({subscribe:function(d,b,f){var c=a[d];if(!c)c=this._createEventName(d);var g=this;if(this.subscribers){this.subscribers[d]=b;for(var h in c)if(h._fn===b)return this}var e=function(){return b.apply(g,f||arguments)};e._fn=b;this._appendHandler(c,e);return this},unsubscribe:function(d,c){var b=a[d];return!b?false:this._removeHandler(b,c)},publish:function(b,g){var d=a[b];if(!d)return;var c=d,h=c.length;a[b]=[];for(var f=0;f<h;f++){var e=c.shift();a[b].push(e);if(e.apply({},g||[])===false){a[b]=a[b].concat(c);return false}}return true},publishOnEvent:function(c,a,d){this._createEventName(a);this.bind(c,d,function(c){b(this).publish(a,c.data,c)});return this},_createEventName:function(b){if(!a[b])a[b]=[];return a[b]},_appendHandler:function(a,c){for(var d=a.length,b=0;b<d;b++)if(a[b]._fn===c._fn)return false;a.push(c);return true},_removeHandler:function(a,b){var e=a.length;if(!b)a=[];for(var d=0;d<e;d++){var c=a.shift();if(c._fn==b)return true;a.push(c)}return false}});b.extend({subscribe:function(a,c,d){return b().subscribe(a,c,d)},unsubscribe:function(a,c){return b().unsubscribe(a,c)},publish:function(a,d,c){return b().publish(a,d,c)}})})(jQuery);(function(a){a.fn.colorFade=function(){this.animate({backgroundColor:"#ff0000"},1).animate({backgroundColor:"#ffffff"},1e3)}})(jQuery);function makeClass(){return function(a){if(this instanceof arguments.callee)typeof this.init=="function"&&this.init.apply(this,a.callee?a:arguments);else return new arguments.callee(arguments)}}(function(a){jQuery.fn.doxEditor=function(){return this.each(function(){a(this).ckeditor(function(){},{customConfig:"",filebrowserBrowseUrl:"/api/doxfile/browseasset/none.html/"+Dox.Vars.SessionId,filebrowserImageBrowseUrl:"/api/doxfile/browseimage/none.html/"+Dox.Vars.SessionId,filebrowserFlashBrowseUrl:"/api/doxfile/browseflash/none.html/"+Dox.Vars.SessionId,filebrowserUploadUrl:a.cookie("UploadPath"),filebrowserImageUploadUrl:a.cookie("UploadPath"),filebrowserFlashUploadUrl:a.cookie("UploadPath"),filebrowserWindowWidth:"640",filebrowserWindowHeight:"480",filebrowserImageWindowWidth:"640",filebrowserImageWindowHeight:"480",htmlEncodeOutput:false,enterMode:"2",language:"sv",toolbarStartupExpanded:false,scayt_autoStartup:false,uiColor:"#ccc",toolbar:[["Bold","Italic","Underline","-","NumberedList","BulletedList"],["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","Outdent","Indent","Blockquote","-","Link","Unlink"],["Undo","Redo","-","Find","Replace","-","SelectAll","RemoveFormat"],["Image","Flash","Table","HorizontalRule","Smiley","SpecialChar","PageBreak"],["Styles","Format","Font","FontSize"],"/",["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"],["TextColor","BGColor"],["Templates"],["Source","Maximize"]]})})}})(jQuery);(function(){jQuery.fn.iphoneSwitch=function(c,f,e,d){var b=c=="on"?c:"off",a={mouse_over:"pointer",mouse_out:"default",switch_on_container_path:"http://cdn.concode.se/doxcentral.com/img/iphone_switch_container_on.png",switch_off_container_path:"http://cdn.concode.se/doxcentral.com/img/iphone_switch_container_off.png",switch_path:"http://cdn.concode.se/doxcentral.com/img/iphone_switch.png",switch_height:27,switch_width:94};d&&jQuery.extend(a,d);return this.each(function(){var c,d;c=jQuery('<div class="iphone_switch_container" style="height:'+a.switch_height+"px; width:"+a.switch_width+'px; position: relative; overflow: hidden"></div>');d=jQuery('<img class="iphone_switch" style="height:'+a.switch_height+"px; width:"+a.switch_width+"px; background-image:url("+a.switch_path+"); background-repeat:none; background-position:"+(b=="on"?0:-53)+'px" src="'+(b=="on"?a.switch_on_container_path:a.switch_off_container_path)+'" />');jQuery(this).html(jQuery(c).html(jQuery(d)));jQuery(this).mouseover(function(){jQuery(this).css("cursor",a.mouse_over)});jQuery(this).mouseout(function(){jQuery(this).css("background",a.mouse_out)});jQuery(this).click(function(){if(b=="on"){jQuery(this).find(".iphone_switch").animate({backgroundPosition:-53},"slow",function(){jQuery(this).attr("src",a.switch_off_container_path);e()});b="off"}else{jQuery(this).find(".iphone_switch").animate({backgroundPosition:0},"slow",function(){f()});jQuery(this).find(".iphone_switch").attr("src",a.switch_on_container_path);b="on"}})})}})(jQuery);(function(a){a.fn.Slidinglabels=function(){var b={topPosition:"5px",leftPosition:"5px",axis:"x",speed:"fast"},d=a.extend(b,d),c=this.children(".formslider"),e=c.children("label");return e.each(function(){var c=a(this),h=c.parents(".formslider");h.css({position:"relative"});c.css({position:"absolute",top:b.topPosition,left:b.leftPosition,display:"inline","z-index":99});var g=a(this).next().val(),e=a(this).width(),f=e+5+"px",d=a(this).height();if(g!=="")if(b.axis=="x")c.stop().animate({left:"-"+f},1);else b.axis=="y"&&c.stop().animate({top:"-"+d},1);a("input, textarea").focus(function(){var c=a(this).prev("label"),h=c.width(),f=c.height(),e=h+5+"px",d=f+"px",g=a(this).val();if(g=="")if(b.axis=="x")c.stop().animate({left:"-"+e},b.speed);else b.axis=="y"&&c.stop().animate({top:"-"+d},b.speed);else if(b.axis=="x")c.css({left:"-"+e});else b.axis=="y"&&c.css({top:"-"+d})}).blur(function(){var c=a(this).prev("label"),d=a(this).val();if(d=="")if(b.axis=="x")c.stop().animate({left:b.leftPosition},b.speed);else b.axis=="y"&&c.stop().animate({top:b.leftPosition},b.speed)})})}})(jQuery);jQuery.extend({doxGet:function(c,b,a){if(a===undefined)a="html";return jQuery.ajax({type:"GET",url:c,cache:false,dataType:a,timeout:15e3,success:function(a){jQuery.isFunction(b)&&b(a)},error:function(b,a){$("#workingOuter").remove();$.jGrowl(a+" "+c,{sticky:true,header:"Ajax Timeout"})},complete:function(){}})},doxPost:function(c,d,b,a){if(a===undefined)a="html";return jQuery.ajax({type:"POST",url:c,cache:false,data:d,dataType:a,timeout:15e3,success:function(a){jQuery.isFunction(b)&&b(a)},error:function(b,a){$("#workingOuter").remove();$.jGrowl(a+" "+c,{sticky:true,header:"Ajax Timeout"})},complete:function(){}})},doxScript:function(b,c,a){return jQuery.ajax({type:"GET",url:b,cache:true,data:c,dataType:"script",timeout:15e3,success:function(b){jQuery.isFunction(a)&&a(b)},error:function(c,a){$.jGrowl(a+" "+b,{sticky:true,header:"script load error"})},complete:function(){}})}});var Dox={};Dox._construct=function(){function c(){}function b(){}function a(){}function d(){}this.Vars=c;this.Resource=b;this.ViewModel=a;this.View=d;Dox.Vars.SessionId=$.cookie("DOXSESSIONID51X");Dox.Vars.UserId=$.cookie("DOXUSERID51X");Dox.Vars.Language=$.cookie("LANGUAGE51X");Dox.Vars.null_guid="{00000000-0000-0000-0000-000000000000}";Dox.Vars.Skin=$.cookie("SKIN");Dox.Vars.PlValue=$.cookie("PLVALUE51X");Dox.Vars.IsGuest=$.cookie("ISGUEST51X");Dox.Vars.FileId="";Dox.Vars.jqxhr=null;Dox.Vars.FileTabs={Filelist:{value:0,name:"Filelist"},SelectedFilelist:{value:1,name:"SelectedFilelist"},ErasedFilelist:{value:2,name:"ErasedFilelist"},TaggedFilelist:{value:3,name:"TaggedFilelist"},FoundFilelist:{value:4,name:"FoundFilelist"}};Dox.Resource.FileProp="";Dox.Vars.IsDragging=false;Dox.Vars.IsCtrl=false;Dox.Vars.IsShift=false;Dox.Vars.FileIndex=-1;Dox.Vars.FileCount=0;Dox.Vars.SelectedFilesCount=0;Dox.Vars.GetParams=makeClass();Dox.Vars.GetParams.prototype.init=function(c,b,a){if(c!==undefined)this.id=c;else this.id="none";if(b!==undefined)this.format=b;else this.format="html";if(a!==undefined)this.sessionId=a;else this.sessionId=Dox.Vars.SessionId};Dox.Vars.EditorLoaded=false;Dox.Vars.Loaded=[]};Dox._construct();Dox.Resource.Get=function(c,b){var a="";return jQuery.ajax({type:"GET",url:"/api/resource/get/"+c+".html/"+Dox.Vars.SessionId,cache:false,async:false,dataType:"html",timeout:7500,global:false,success:function(b){a=b},error:function(d,b){a=b},complete:function(){if(a!="")a=b}}).responseText};var Api={};Api._construct=function(){function h(){}function a(){}function e(){}function i(){}function d(){}function g(){}function b(){}function c(){}function j(){}function f(){}this.DoxFile=h;this.DoxFileMeta=a;this.DoxFolder=e;this.DoxUser=i;this.DoxUserTag=d;this.DoxOrder=g;this.DoxSession=b;this.DoxSetting=c;this.Html=j;this.DoxPortal=f};Api._construct();var Sha1={};Sha1.hash=function(c,l){l=typeof l=="undefined"?true:l;if(l)c=Utf8.encode(c);var t=[1518500249,1859775393,2400959708,3395469782];c+=String.fromCharCode(128);for(var u=c.length/4+2,f=Math.ceil(u/16),e=new Array(f),b=0;b<f;b++){e[b]=new Array(16);for(var d=0;d<16;d++)e[b][d]=c.charCodeAt(b*64+d*4)<<24|c.charCodeAt(b*64+d*4+1)<<16|c.charCodeAt(b*64+d*4+2)<<8|c.charCodeAt(b*64+d*4+3)}e[f-1][14]=(c.length-1)*8/Math.pow(2,32);e[f-1][14]=Math.floor(e[f-1][14]);e[f-1][15]=(c.length-1)*8&4294967295;for(var m=1732584193,n=4023233417,o=2562383102,p=271733878,q=3285377520,g=new Array(80),h,i,j,k,r,b=0;b<f;b++){for(var a=0;a<16;a++)g[a]=e[b][a];for(var a=16;a<80;a++)g[a]=Sha1.ROTL(g[a-3]^g[a-8]^g[a-14]^g[a-16],1);h=m;i=n;j=o;k=p;r=q;for(var a=0;a<80;a++){var s=Math.floor(a/20),v=Sha1.ROTL(h,5)+Sha1.f(s,i,j,k)+r+t[s]+g[a]&4294967295;r=k;k=j;j=Sha1.ROTL(i,30);i=h;h=v}m=m+h&4294967295;n=n+i&4294967295;o=o+j&4294967295;p=p+k&4294967295;q=q+r&4294967295}return Sha1.toHexStr(m)+Sha1.toHexStr(n)+Sha1.toHexStr(o)+Sha1.toHexStr(p)+Sha1.toHexStr(q)};Sha1.f=function(d,a,b,c){switch(d){case 0:return a&b^~a&c;case 1:return a^b^c;case 2:return a&b^a&c^b&c;case 3:return a^b^c}};Sha1.ROTL=function(b,a){return b<<a|b>>>32-a};Sha1.toHexStr=function(d){for(var b="",c,a=7;a>=0;a--){c=d>>>a*4&15;b+=c.toString(16)}return b};var Utf8={};Utf8.encode=function(b){var a=b.replace(/[\u0080-\u07ff]/g,function(b){var a=b.charCodeAt(0);return String.fromCharCode(192|a>>6,128|a&63)});a=a.replace(/[\u0800-\uffff]/g,function(b){var a=b.charCodeAt(0);return String.fromCharCode(224|a>>12,128|a>>6&63,128|a&63)});return a};Utf8.decode=function(b){var a=b.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&15)<<12|(a.charCodeAt(1)&63)<<6|a.charCodeAt(2)&63;return String.fromCharCode(b)});a=a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(a){var b=(a.charCodeAt(0)&31)<<6|a.charCodeAt(1)&63;return String.fromCharCode(b)});return a};jQuery.fn.extend({getUrlParam:function(d){d=escape(unescape(d));var b=[],a=null,c=null;if($(this).attr("nodeName")=="#document"){if(window.location.search.search(d)>-1)a=window.location.search.substr(1,window.location.search.length).split("&")}else if($(this).attr("src")!="undefined"){var g=$(this).attr("src");if(g.indexOf("?")>-1){c=g.substr(g.indexOf("?")+1);a=c.split("&")}}else if($(this).attr("href")!="undefined"){var f=$(this).attr("href");if(f.indexOf("?")>-1){c=f.substr(f.indexOf("?")+1);a=c.split("&")}}else return null;if(a==null)return null;for(var e=0;e<a.length;e++)escape(unescape(a[e].split("=")[0]))==d&&b.push(a[e].split("=")[1]);return b.length==0?null:b.length==1?b[0]:b}});Api.DoxFile.PostTogglePublishFile=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/togglepublishfile/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostUpdateFileDescription=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/updatefiledescription/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostUpdateFileContent=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/updatefilecontent/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetUploadProxy=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/uploadproxy/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostLogDownload=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/logdownload/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetAltFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/altfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetInitUpload=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/initupload/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostSearch=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/search/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCheckIn=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/checkin/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCheckOut=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/checkout/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCheckInFileList=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/checkinfilelist/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCheckOutSelectedFiles=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/checkoutselectedfiles/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetCheckedOutFiles=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/checkedoutfiles/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetGallery=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/gallery/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetCategory=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/category/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetProduct=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/product/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetLatestItems=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/latestitems/"+a.id+"."+a.format+"/"+a.sessionId+a.view,b,a.format)};Api.DoxFile.GetAssetItemsLink=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/assetitemslink/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetShortcutStyle=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/shortcutstyle/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetBrowseImage=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/browseimage/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetBrowseAsset=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/browseasset/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetPageItem=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/pageitem/"+a.id+"."+a.format+"/"+a.sessionId+a.path,b,a.format)};Api.DoxFile.GetStartPageItems=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/startpageitems/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetPiecemaker=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/piecemaker/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetProxy=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/proxy/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileComments=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filecomments/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostFileComment=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/filecomment/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostFileId=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/fileid/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostFileIdByName=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/fileidbyname/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetFileSize=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filesize/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDoxFile=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/doxfile/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetAssetImage=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/assetimage/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetStartImage=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/startimage/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFilePreview=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filepreview/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetAttachedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/attachedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostCopyFile=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/copyfile/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetCurrent=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/current/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostCurrent=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/current/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostInsert=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/insert/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCreatePageItem=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/createpageitem/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelect=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/select/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectFiles=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectfiles/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostToggleSelectFile=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/toggleselectfile/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostDeselect=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/deselect/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectInNewSession=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectinnewsession/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectFilesRecursive=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectfilesrecursive/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostDeselectFilesRecursive=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/deselectfilesrecursive/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetSelectedFilesCount=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/selectedfilescount/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostDeselectAllFiles=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/deselectallfiles/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/delete/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostUpdate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/update/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetAssetFiles=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/assetfiles/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetLinkedFiles=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/linkedfiles/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostLink=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/link/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostLinkFiles=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/linkfiles/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostUnlink=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/unlink/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetFilestoreUrl=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filestoreurl/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFoundFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/foundfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetErasedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/erasedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileListBid=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filelistbid/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFilePage=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filepage/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFilePageBid=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filepagebid/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileRows=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filerows/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileRow=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filerow/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFileDetails=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/filedetails/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsGeneral=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsgeneral/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsDescription=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsdescription/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsContent=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailscontent/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsMeta=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsmeta/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostDetailsMeta=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/detailsmeta/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetDetailsPricerange=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailspricerange/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsUpload=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsupload/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsLinked=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailslinked/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsDownloadedby=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsdownloadedby/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsRevised=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailsrevised/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetailsTags=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detailstags/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFmAll=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/fmall/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFmSingle=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/fmsingle/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.PostFmsingle=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/fmsingle/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostFmall=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/fmall/"+a.sessionId,a,b,a.format)};Api.DoxFile.GetFmFileStatus=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/fmfilestatus/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetSelectedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/selectedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetCompactSelectedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/compactselectedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetFullSelectedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/fullselectedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetIssueAttachedFileList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/issueattachedfilelist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetAttach=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/attach/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDetach=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/detach/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFile.GetDynamicId=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfile/dynamicid/"+a.id+"."+a.format+"/"+a.folderId,b,a.format)};Api.DoxFile.PostMove=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/move/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostCopy=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/copy/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostShortcut=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/shortcut/"+a.sessionid,a,b,a.format)};Api.DoxFile.PostSelectedFilesCopy=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectedfilescopy/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectedFilesMove=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectedfilesmove/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectedFilesShortcut=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectedfilesshortcut/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectedFilesDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectedfilesdelete/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostSelectedFilesUnDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/selectedfilesundelete/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostFileListSort=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/filelistsort/"+a.sessionId,a,b,a.format)};Api.DoxFile.PostUpdateFileDetails=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfile/updatefiledetails/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetFolderDetails=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderdetails/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderInfo=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderinfo/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetObjectsWithFolderRights=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/objectswithfolderrights/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetUploadButton=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/uploadbutton/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderlist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolderListSort=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/folderlistsort/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetSubfolders=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/subfolders/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolderCopyStructure=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/foldercopystructure/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostFolderMove=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/foldermove/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetCurrent=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/current/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostCurrent=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/current/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostCurrentDialog=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/currentdialog/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostCreateFora=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/createfora/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetFolderCreate=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/foldercreate/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolder=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folder/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderPath=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderpath/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolder=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/folder/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostFolderCreate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/foldercreate/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetFolderUpdate=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderupdate/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolderUpdate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/folderupdate/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetFolderDelete=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderdelete/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolderDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/folderdelete/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetBreadcrumb=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/breadcrumb/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetBreadcrumbbid=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/breadcrumbbid/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderTree=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/foldertree/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostCollapse=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/collapse/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostExpand=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/expand/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostExpandSinglePath=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/expandsinglepath/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetGroupNonRights=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/groupnonrights/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetGroupRights=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/grouprights/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostInsertRights=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/insertrights/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostUpdateRights=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/updaterights/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetGroupNotify=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/groupnotify/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetGroupNonNotify=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/groupnonnotify/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostNotifyInsert=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/notifyinsert/"+a.sessionId,a,b,a.format)};Api.DoxFolder.PostNotifyRemove=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/notifyremove/"+a.sessionId,a,b,a.format)};Api.DoxFolder.GetSelectOptions=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/selectoptions/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetGalleries=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/galleries/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetGalerioMenu=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/galeriomenu/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetGazetiMenu=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/gazetimenu/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetCategories=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/categories/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetNegozioMenu=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/negoziomenu/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetParallel=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/parallel/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderStyle=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/folderstyle/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.GetFolderTags=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxfolder/foldertags/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxFolder.PostFolderTag=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxfolder/foldertag/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetBreadcrumb=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/breadcrumb/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetContainerInfo=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/containerinfo/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostEditContainer=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/editcontainer/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostDeleteContainer=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/deletecontainer/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetGroupCreate=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/groupcreate/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostCreateGroup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/creategroup/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetCurrentContainerType=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/currentcontainertype/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCurrentContainer=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/currentcontainer/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostCurrentContainer=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/currentcontainer/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetSelectedUsers=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/selectedusers/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostAddExternMail=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/addexternmail/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostAddPersonToGroup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/addpersontogroup/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostGroupRemoveMembership=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/groupremovemembership/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostGroupAddMembership=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/groupaddmembership/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostAddToGroupUserDetails=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/addtogroupuserdetails/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostRemoveFromGroupUserDetails=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/removefromgroupuserdetails/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostUserListSort=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/userlistsort/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetUserList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userlist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetUserPage=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userpage/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetUserListNotInContainer=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userlistnotincontainer/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetUserListDisabled=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userlistdisabled/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetUserRow=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userrow/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCompanies=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/companies/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCompaniesOrderPaying=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/companiesorderpaying/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCompanyPaying=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/companypaying/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCompanyOrderRecipient=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/companyorderrecipient/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetCompanyCreate=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/companycreate/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostCompanyCreate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/companycreate/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostCompanyDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/companydelete/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetGroupsAdmin=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/groupsadmin/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetUserGroups=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/usergroups/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetPugGroups=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/puggroups/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostAuthenticate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/authenticate/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetUserName=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/username/"+a.id+"."+a.format+"/",b,a.format)};Api.DoxUser.GetUserLogin=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userlogin/"+a.id+"."+a.format+"/",b,a.format)};Api.DoxUser.GetSessionOwner=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/sessionowner/"+a.id+"."+a.format+"/",b,a.format)};Api.DoxUser.GetDetailsAdminGroup=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/detailsadmingroup/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetDetailsUserGroup=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/detailsusergroup/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetDetailsPersonalGroup=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/detailspersonalgroup/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetDetailsGeneral=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/detailsgeneral/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetDetailsPassword=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/detailspassword/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostSendUserPassword=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/senduserpassword/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostSendPortalUserPassword=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/sendportaluserpassword/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostUpdatePassword=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/updatepassword/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetUserDetails=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userdetails/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetMyProfileUser=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/myprofileuser/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetMyProfileCompany=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/myprofilecompany/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetMyProfilePrivateShop=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/myprofileprivateshop/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostUpdateUserDetails=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/updateuserdetails/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetUserInfo=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/userinfo/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostSelectUserToggle=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/selectusertoggle/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostDeselectAll=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/deselectall/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostParameter=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/parameter/"+a.sessionId,a,b,a.format)};Api.DoxUser.GetParameter=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/parameter/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetGetSignupLink=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/getsignuplink/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.GetPortalRegister=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxuser/portalregister/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUser.PostFindUserInPortal=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/finduserinportal/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostGetUserFromPortal=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/getuserfromportal/"+a.sessionId,a,b,a.format)};Api.DoxUser.PostIsEmailAddress=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/isemailaddress/"+a.sessionId,a,b,a.format)};Api.DoxUser.ExportListToExcel=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxuser/exportlisttoexcel/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.GetTagFilterList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxusertag/tagfilterlist/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxUserTag.PostTagList=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/taglist/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostCreate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/create/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/delete/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostDeleteGroup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/deletegroup/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostAttach=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/attach/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostAttachGroup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/attachgroup/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostDetach=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/detach/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostDetachGroup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/detachgroup/"+a.sessionId,a,b,a.format)};Api.DoxUserTag.PostApplytags=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxusertag/applytags/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetSelect=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/select/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetDeselect=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/deselect/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetOrderSummaryTab=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/ordersummarytab/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetOrderDistributionTab=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/orderdistributiontab/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetOrderInfoTab=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/orderinfotab/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.PostUpdateOrderInfo=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/updateorderinfo/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetDistributionTemplates=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/distributiontemplates/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetDistributionContactGroup=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/distributioncontactgroup/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.PostDistributeContactGroupChange=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/distributecontactgroupchange/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetDistributeAddPerson=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/distributeaddperson/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetDistributeOrderTo=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/distributeorderto/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.PostUpdateDistributionList=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/updatedistributionlist/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostUserDistributeToDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/userdistributetodelete/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostCompanyPayingSet=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/companypayingset/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostSaveTemplate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/savetemplate/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetCopyFromTemplate=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/copyfromtemplate/"+a.id+"."+a.format+"/"+a.sessionId+a.value+a.itemno+a.distributeitemno,b,a.format)};Api.DoxOrder.GetViewSentOrder=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/viewsentorder/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.PostAddToCart=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/addtocart/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostRemoveFromCart=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/removefromcart/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostSubtractFromCart=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/subtractfromcart/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostEmptyCart=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/emptycart/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetCart=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/cart/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.GetCartFinal=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/cartfinal/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxOrder.PostAddPrice=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/addprice/"+a.sessionId,a,b,a.format)};Api.DoxOrder.PostDeletePriceRange=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxorder/deletepricerange/"+a.sessionId,a,b,a.format)};Api.DoxOrder.GetCartPostProcessing=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxorder/cartpostprocessing/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxSession.PostOpen=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsession/open/",a,b,a.format)};Api.DoxSession.PostClose=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsession/close/"+a.sessionId,a,b,a.format)};Api.DoxSession.PostValue=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsession/value/"+a.sessionId,a,b,a.format)};Api.DoxSession.GetValue=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxsession/value/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxSession.GetList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxsession/list/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxSetting.GetList=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxsetting/list/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxSetting.GetGet=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxsetting/get/"+a.id+"."+a.format+"/"+a.sessionId+a.path,b,a.format)};Api.DoxSetting.PostCreate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsetting/create/"+a.sessionId,a,b,a.format)};Api.DoxSetting.PostUpdate=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsetting/update/"+a.sessionId,a,b,a.format)};Api.DoxSetting.PostDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxsetting/delete/",a,b,a.format)};Api.Html.PostAskFolderDrop=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/askfolderdrop/"+a.sessionId,a,b,a.format)};Api.Html.PostAskFileDrop=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/askfiledrop/"+a.sessionId,a,b,a.format)};Api.Html.PostAskFileDelete=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/askfiledelete/"+a.sessionId,a,b,a.format)};Api.Html.PostItemPopup=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/itempopup/"+a.sessionId,a,b,a.format)};Api.Html.PostAskPersonDrop=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/askpersondrop/"+a.sessionId,a,b,a.format)};Api.Html.GetFileSortorder=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/filesortorder/"+a.sessionId,b,a.format)};Api.Html.GetFolderSortorder=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/foldersortorder/"+a.sessionId,b,a.format)};Api.Html.PostMessage=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/message/"+a.sessionId,a,b,a.format)};Api.Html.GetSelectFolderMove=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/selectfoldermove/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetSelectFolderCopy=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/selectfoldercopy/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetSelectFolderShortcut=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/selectfoldershortcut/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetFolderMultiButton=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/foldermultibutton/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetFolderMove=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/foldermove/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetFolderCopy=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/foldercopy/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetProvisDialogTemplates=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/provisdialogtemplates/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.GetInviteUserByEmail=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/inviteuserbyemail/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.Html.PostLinkFiles=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/html/linkfiles/"+a.sessionId,a,b,a.format)};Api.Html.GetCopyTaggedFile=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/html/copytaggedfile/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.GetMyProjects=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/myprojects/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.GetCompanyProjects=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/companyprojects/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.GetArchiveProjects=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/archiveprojects/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.GetSearchProjects=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/searchprojects/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.PostSearchProjects=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxportal/searchprojects/"+a.sessionId,a,b,a.format)};Api.DoxPortal.GetOrderProject=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/orderproject/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.GetProjectInfo=function(a,b){Dox.Vars.jqxhr=$.doxGet("/api/doxportal/projectinfo/"+a.id+"."+a.format+"/"+a.sessionId,b,a.format)};Api.DoxPortal.PostSignUpPortal=function(a,b){if(a.sessionId===undefined)a.sessionId=Dox.Vars.SessionId;if(a.format===undefined)a.format="html";Dox.Vars.jqxhr=$.doxPost("/api/doxportal/signupportal/"+a.sessionId,a,b,a.format)}
