function stringBuilder(){this._strings=[];for(var n=0,t=arguments.length;n").appendTo("body"),t=r.css("display");r.remove();(t==="none"||t==="")&&(t="block");at[n]=t}return at[n]}function o(n,t){var r={};return i.each(nr.concat.apply([],nr.slice(0,t)),function(){r[this]=n}),r}function ir(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function pt(){try{return new n.XMLHttpRequest}catch(t){}}function rr(){i(n).unload(function(){for(var n in h)h[n](0,1)})}function ur(n,r){n.dataFilter&&(r=n.dataFilter(r,n.dataType));for(var v=n.dataTypes,s={},l,p=v.length,a,u=v[0],h,y,f,e,o,c=1;c=0===r})}function ni(n){return!n||!n.parentNode||n.parentNode.nodeType===11}function b(n,t){return(n&&n!=="*"?n+".":"")+t.replace(yr,"`").replace(pr,"&")}function sr(n){var w,c,s,t,r,l,u,f,h,o,a,v,y=[],b=[],p=i._data(this,"events"),e;if(n.liveFired!==this&&p&&p.live&&!n.target.disabled&&(!n.button||n.type!=="click")){for(n.namespace&&(a=new RegExp("(^|\\.)"+n.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),n.liveFired=this,e=p.live.slice(0),u=0;uc)break;if(n.currentTarget=t.elem,n.data=t.handleObj.data,n.handleObj=t.handleObj,v=t.handleObj.origHandler.apply(t.elem,arguments),(v===!1||n.isPropagationStopped())&&(c=t.level,v===!1&&(w=!1),n.isImmediatePropagationStopped()))break}return w}}function ti(n,r,u){var f=i.extend({},u[0]);f.type=n;f.originalEvent={};f.liveFired=t;i.event.handle.call(r,f);f.isDefaultPrevented()&&u[0].preventDefault()}function k(){return!0}function s(){return!1}function rt(n){for(var t in n)if(t!=="toJSON")return!1;return!0}function ii(n,r,u){if(u===t&&n.nodeType===1)if(u=n.getAttribute("data-"+r),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:i.isNaN(u)?ri.test(u)?i.parseJSON(u):u:parseFloat(u)}catch(f){}i.data(n,r,u)}else u=t;return u}var r=n.document,i=function(){function l(){if(!i.isReady){try{r.documentElement.doScroll("left")}catch(n){setTimeout(l,1);return}i.ready()}}var i=function(n,t){return new i.fn.init(n,t,a)},g=n.jQuery,nt=n.$,a,tt=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,v=/\S/,y=/^\s+/,p=/\s+$/,it=/\d/,rt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ut=/^[\],:{}\s]*$/,ft=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,et=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ot=/(?:^|:|,)(?:\s*\[)+/g,st=/(webkit)[ \/]([\w.]+)/,ht=/(opera)(?:.*version)?[ \/]([\w.]+)/,ct=/(msie) ([\w.]+)/,lt=/(mozilla)(?:.*? rv:([\w.]+))?/,at=navigator.userAgent,e,w=!1,o,s="then done fail isResolved isRejected promise".split(" "),u,vt=Object.prototype.toString,h=Object.prototype.hasOwnProperty,c=Array.prototype.push,f=Array.prototype.slice,b=String.prototype.trim,k=Array.prototype.indexOf,d={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector="body",this.length=1,this;if(typeof n=="string"){if(o=tt.exec(n),!o||!o[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=rt.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1;this[0]=s}return this.context=r,this.selector=n,this}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?c.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.done(n),this},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+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(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var o,e,u,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n!="object"&&!i.isFunction(n)&&(n={}),l===f&&(n=this,--f);f0)return;o.resolveWith(r,[i]);i.fn.trigger&&i(r).trigger("ready").unbind("ready")}},bindReady:function(){if(!w){if(w=!0,r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u);n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&l()}}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNaN:function(n){return n==null||!it.test(n)||isNaN(n)},type:function(n){return n==null?String(n):d[vt.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n)||n.constructor&&!h.call(n,"constructor")&&!h.call(n.constructor.prototype,"isPrototypeOf"))return!1;for(var r in n);return r===t||h.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw n;},parseJSON:function(t){if(typeof t!="string"||!t)return null;if(t=i.trim(t),ut.test(t.replace(ft,"@").replace(et,"]").replace(ot,"")))return n.JSON&&n.JSON.parse?n.JSON.parse(t):new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(t,r,u){return n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t)),u=r.documentElement,(!u||!u.nodeName||u.nodeName==="parsererror")&&i.error("Invalid XML: "+t),r},noop:function(){},globalEval:function(n){if(n&&v.test(n)){var u=r.head||r.getElementsByTagName("head")[0]||r.documentElement,t=r.createElement("script");i.support.scriptEval()?t.appendChild(r.createTextNode(n)):t.text=n;u.insertBefore(t,u.firstChild);u.removeChild(t)}},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var f,e=0,s=n.length,h=s===t||i.isFunction(n),o;if(u){if(h){for(f in n)if(r.apply(n[f],u)===!1)break}else for(;e1){for(var u=f.call(arguments,0),o=t,s=function(n){return function(t){u[n]=arguments.length>1?f.call(arguments,0):t;--o||r.resolveWith(e,u)}};t--;)n=u[t],n&&i.isFunction(n.promise)?n.promise().then(s(t),r.reject):--o;o||r.resolveWith(e,u)}else r!==n&&r.resolve(n);return e},uaMatch:function(n){n=n.toLowerCase();var t=st.exec(n)||ht.exec(n)||ct.exec(n)||n.indexOf("compatible")<0&<.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(t,i){return new n.fn.init(t,i)}i.extend(!0,n,this);n.superclass=this;n.fn=n.prototype=this();n.fn.constructor=n;n.subclass=this.subclass;n.fn.init=function(r,u){return u&&u instanceof i&&!(u instanceof n)&&(u=n(u)),i.fn.init.call(this,r,u,t)};n.fn.init.prototype=n.fn;var t=n(r);return n},browser:{}}),o=i._Deferred(),i.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(n,t){d["[object "+t+"]"]=t.toLowerCase()}),e=i.uaMatch(at),e.browser&&(i.browser[e.browser]=!0,i.browser.version=e.version),i.browser.webkit&&(i.browser.safari=!0),k&&(i.inArray=function(n,t){return k.call(t,n)}),v.test(" ")&&(y=/^[\s\xA0]+/,p=/[\s\xA0]+$/),a=i(r),r.addEventListener?u=function(){r.removeEventListener("DOMContentLoaded",u,!1);i.ready()}:r.attachEvent&&(u=function(){r.readyState==="complete"&&(r.detachEvent("onreadystatechange",u),i.ready())}),i}(),ri,et,ot,c,st,l,ht,di,v,gi,h,y,tr,vt;(function(){var t,f,s,h;i.support={};t=r.createElement("div");t.style.display="none";t.innerHTML=" <\/table>a<\/a>";var e=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],c=r.createElement("select"),l=c.appendChild(r.createElement("option")),o=t.getElementsByTagName("input")[0];if(e&&e.length&&u){i.support={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:o.value==="on",optSelected:l.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0};o.checked=!0;i.support.noCloneChecked=o.cloneNode(!0).checked;c.disabled=!0;i.support.optDisabled=!l.disabled;f=null;i.support.scriptEval=function(){if(f===null){var t=r.documentElement,u=r.createElement("script"),e="script"+i.now();try{u.appendChild(r.createTextNode("window."+e+"=1;"))}catch(o){}t.insertBefore(u,t.firstChild);n[e]?(f=!0,delete n[e]):f=!1;t.removeChild(u);t=u=e=null}return f};try{delete t.test}catch(v){i.support.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function a(){i.support.noCloneEvent=!1;t.detachEvent("onclick",a)}),t.cloneNode(!0).fireEvent("onclick"));t=r.createElement("div");t.innerHTML="";s=r.createDocumentFragment();s.appendChild(t.firstChild);i.support.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked;i(function(){var n=r.createElement("div"),u=r.getElementsByTagName("body")[0],t;u&&(n.style.width=n.style.paddingLeft="1px",u.appendChild(n),i.boxModel=i.support.boxModel=n.offsetWidth===2,"zoom"in n.style&&(n.style.display="inline",n.style.zoom=1,i.support.inlineBlockNeedsLayout=n.offsetWidth===2,n.style.display="",n.innerHTML="
<\/div>",i.support.shrinkWrapBlocks=n.offsetWidth!==2),n.innerHTML="
","<\/select>"],legend:[1,"
","<\/fieldset>"],thead:[1,"
<\/td>t<\/td><\/tr><\/table>",t=n.getElementsByTagName("td"),i.support.reliableHiddenOffsets=t[0].offsetHeight===0,t[0].style.display="",t[1].style.display="none",i.support.reliableHiddenOffsets=i.support.reliableHiddenOffsets&&t[0].offsetHeight===0,n.innerHTML="",u.removeChild(n).style.display="none",n=t=null)});h=function(n){var t=r.createElement("div"),i;return(n="on"+n,!t.attachEvent)?!0:(i=n in t,i||(t.setAttribute(n,"return;"),i=typeof t[n]=="function"),t=null,i)};i.support.submitBubbles=h("submit");i.support.changeBubbles=h("change");t=e=u=null}})();ri=/^(?:\{.*\}|\[.*\])$/;i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!rt(n)},data:function(n,r,u,f){if(i.acceptData(n)){var h=i.expando,l=typeof r=="string",o,c=n.nodeType,s=c?i.cache:n,e=c?n[i.expando]:n[i.expando]&&i.expando;return(!e||f&&e&&!s[e][h])&&l&&u===t?void 0:(e||(c?n[i.expando]=e=++i.uuid:e=i.expando),s[e]||(s[e]={},c||(s[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?s[e][h]=i.extend(s[e][h],r):s[e]=i.extend(s[e],r)),o=s[e],f&&(o[h]||(o[h]={}),o=o[h]),u!==t&&(o[r]=u),r==="events"&&!o[r])?o[h]&&o[h].events:l?o[r]:o}},removeData:function(t,r,u){var h,c;if(i.acceptData(t)){var o=i.expando,s=t.nodeType,f=s?i.cache:t,e=s?t[i.expando]:i.expando;if(!f[e])return;if(r&&(h=u?f[e][o]:f[e],h&&(delete h[r],!rt(h))))return;if(u&&(delete f[e][o],!rt(f[e])))return;c=f[e][o];i.support.deleteExpando||f!=n?delete f[e]:f[e]=null;c?(f[e]={},s||(f[e].toJSON=i.noop),f[e][o]=c):s&&(i.support.deleteExpando?delete t[i.expando]:t.removeAttribute?t.removeAttribute(i.expando):t[i.expando]=null)}},_data:function(n,t,r){return i.data(n,t,r,!0)},acceptData:function(n){if(n.nodeName){var t=i.noData[n.nodeName.toLowerCase()];if(t)return t!==!0&&n.getAttribute("classid")===t}return!0}});i.fn.extend({data:function(n,r){var f=null,s,e,o,h,u;if(typeof n=="undefined"){if(this.length&&(f=i.data(this[0]),this[0].nodeType===1))for(s=this[0].attributes,o=0,h=s.length;o-1)return!0;return!1},val:function(n){var r,h,s,l,u,a;if(!arguments.length){if(r=this[0],r){if(i.nodeName(r,"option"))return h=r.attributes.value,!h||h.specified?r.value:r.text;if(i.nodeName(r,"select")){var f=r.selectedIndex,c=[],e=r.options,o=r.type==="select-one";if(f<0)return null;for(s=o?f:0,l=o?f+1:e.length;s=0:i.nodeName(this,"select")?(u=i.makeArray(r),i("option",this).each(function(){this.selected=i.inArray(i(this).val(),u)>=0}),u.length||(this.selectedIndex=-1)):this.value=r)})}});i.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var e,o,c,s,h,l;return!n||n.nodeType===3||n.nodeType===8||n.nodeType===2?t:f&&r in i.attrFn?i(n)[r](u):(e=n.nodeType!==1||!i.isXMLDoc(n),o=u!==t,r=e&&i.props[r]||r,n.nodeType===1)?(c=cr.test(r),r!=="selected"||i.support.optSelected||(s=n.parentNode,s&&(s.selectedIndex,s.parentNode&&s.parentNode.selectedIndex)),(r in n||n[r]!==t)&&e&&!c)?(o&&(r==="type"&&lr.test(n.nodeName)&&n.parentNode&&i.error("type property can't be changed"),u===null?n.nodeType===1&&n.removeAttribute(r):n[r]=u),i.nodeName(n,"form")&&n.getAttributeNode(r))?n.getAttributeNode(r).nodeValue:r==="tabIndex"?(h=n.getAttributeNode("tabIndex"),h&&h.specified?h.value:ar.test(n.nodeName)||vr.test(n.nodeName)&&n.href?0:t):n[r]:!i.support.style&&e&&r==="style"?(o&&(n.style.cssText=""+u),n.style.cssText):(o&&n.setAttribute(r,""+u),!n.attributes[r]&&n.hasAttribute&&!n.hasAttribute(r))?t:(l=!i.support.hrefNormalized&&e&&c?n.getAttribute(r,2):n.getAttribute(r),l===null?t:l):(o&&(n[r]=u),n[r])}});var d=/\.(.*)$/,ft=/^(?:textarea|input|select)$/i,yr=/\./g,pr=/ /g,wr=/[^\w\s.|`]/g,br=function(n){return n.replace(wr,"\\$&")};i.event={add:function(r,u,f,e){var p,h,l,a,c,o,b,v,w,y;if(r.nodeType!==3&&r.nodeType!==8){try{i.isWindow(r)&&r!==n&&!r.frameElement&&(r=n)}catch(k){}if(f===!1)f=s;else if(!f)return;if(f.handler&&(p=f,f=p.handler),f.guid||(f.guid=i.guid++),l=i._data(r),!l)return;for(a=l.events,c=l.handle,a||(l.events=a={}),c||(l.handle=c=function(){return typeof i!="undefined"&&!i.event.triggered?i.event.handle.apply(c.elem,arguments):t}),c.elem=r,u=u.split(" "),b=0;o=u[b++];)h=p?i.extend({},p):{handler:f,data:e},o.indexOf(".")>-1?(v=o.split("."),o=v.shift(),h.namespace=v.slice(0).sort().join(".")):(v=[],h.namespace=""),h.type=o,h.guid||(h.guid=f.guid),w=a[o],y=i.event.special[o]||{},w||(w=a[o]=[],y.setup&&y.setup.call(r,e,v,c)!==!1||(r.addEventListener?r.addEventListener(o,c,!1):r.attachEvent&&r.attachEvent("on"+o,c))),y.add&&(y.add.call(r,h),h.handler.guid||(h.handler.guid=f.guid)),w.push(h),i.event.global[o]=!0;r=null}},global:{},remove:function(n,r,u,f){var b;if(n.nodeType!==3&&n.nodeType!==8){u===!1&&(u=s);var d,e,o,g=0,p,a,w,v,h,c,k,l=i.hasData(n)&&i._data(n),y=l&&l.events;if(!l||!y)return;if(r&&r.type&&(u=r.handler,r=r.type),!r||typeof r=="string"&&r.charAt(0)==="."){r=r||"";for(e in y)i.event.remove(n,e+r);return}for(r=r.split(" ");e=r[g++];)if(k=e,c=null,p=e.indexOf(".")<0,a=[],p||(a=e.split("."),e=a.shift(),w=new RegExp("(^|\\.)"+i.map(a.slice(0).sort(),br).join("\\.(?:.*\\.)?")+"(\\.|$)")),h=y[e],h){if(!u){for(o=0;o=0&&(n.type=f=f.slice(0,-1),n.exclusive=!0),u||(n.stopPropagation(),i.event.global[f]&&i.each(i.cache,function(){var u=i.expando,t=this[u];t&&t.events&&t.events[f]&&i.event.trigger(n,r,t.handle.elem)})),!u||u.nodeType===3||u.nodeType===8)return t;n.result=t;n.target=u;r=i.makeArray(r);r.unshift(n)}n.currentTarget=u;h=i._data(u,"handle");h&&h.apply(u,r);c=u.parentNode||u.ownerDocument;try{u&&u.nodeName&&i.noData[u.nodeName.toLowerCase()]||u["on"+f]&&u["on"+f].apply(u,r)===!1&&(n.result=!1,n.preventDefault())}catch(y){}if(!n.isPropagationStopped()&&c)i.event.trigger(n,r,c,!0);else if(!n.isDefaultPrevented()){var s,e=n.target,o=f.replace(d,""),v=i.nodeName(e,"a")&&o==="click",l=i.event.special[o]||{};if((!l._default||l._default.call(u,n)===!1)&&!v&&!(e&&e.nodeName&&i.noData[e.nodeName.toLowerCase()])){try{e[o]&&(s=e["on"+o],s&&(e["on"+o]=null),i.event.triggered=!0,e[o]())}catch(p){}s&&(e["on"+o]=s);i.event.triggered=!1}}},handle:function(r){var s,u,h,a,c,l=[],v=i.makeArray(arguments),e,y,f,o;if(r=v[0]=i.event.fix(r||n.event),r.currentTarget=this,s=r.type.indexOf(".")<0&&!r.exclusive,s||(h=r.type.split("."),r.type=h.shift(),l=h.slice(0).sort(),a=new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)")),r.namespace=r.namespace||l.join("."),c=i._data(this,"events"),u=(c||{})[r.type],c&&u)for(u=u.slice(0),e=0,y=u.length;e-1?i.map(n.options,function(n){return n.selected}).join("-"):"":n.nodeName.toLowerCase()==="select"&&(t=n.selectedIndex),t},l=function(n){var r=n.target,u,f;if(ft.test(r.nodeName)&&!r.readOnly){if(u=i._data(r,"_change_data"),f=st(r),(n.type!=="focusout"||r.type!=="radio")&&i._data(r,"_change_data",f),u===t||f===u)return;(u!=null||f)&&(n.type="change",n.liveFired=t,i.event.trigger(n,arguments[1],r))}},i.event.special.change={filters:{focusout:l,beforedeactivate:l,click:function(n){var t=n.target,i=t.type;(i==="radio"||i==="checkbox"||t.nodeName.toLowerCase()==="select")&&l.call(this,n)},keydown:function(n){var i=n.target,t=i.type;(n.keyCode===13&&i.nodeName.toLowerCase()!=="textarea"||n.keyCode===32&&(t==="checkbox"||t==="radio")||t==="select-multiple")&&l.call(this,n)},beforeactivate:function(n){var t=n.target;i._data(t,"_change_data",st(t))}},setup:function(){if(this.type==="file")return!1;for(var n in c)i.event.add(this,n+".specialChange",c[n]);return ft.test(this.nodeName)},teardown:function(){return i.event.remove(this,".specialChange"),ft.test(this.nodeName)}},c=i.event.special.change.filters,c.focus=c.beforeactivate);r.addEventListener&&i.each({focus:"focusin",blur:"focusout"},function(n,t){function r(n){return n=i.event.fix(n),n.type=t,i.event.handle.call(this,n)}i.event.special[t]={setup:function(){this.addEventListener(n,r,!0)},teardown:function(){this.removeEventListener(n,r,!0)}}});i.each(["bind","one"],function(n,r){i.fn[r]=function(n,u,f){var o,s,e,h;if(typeof n=="object"){for(o in n)this[r](o,u,n[o],f);return this}if((i.isFunction(u)||u===!1)&&(f=u,u=t),s=r==="one"?i.proxy(f,function(n){return i(this).unbind(n,s),f.apply(this,arguments)}):f,n==="unload"&&r!=="one")this.one(n,u,f);else for(e=0,h=this.length;e0?this.bind(t,n,i):this.trigger(t)};i.attrFn&&(i.attrFn[t]=!0)}),function(){function p(t,i,r,u,f,e){for(var o,h,s=0,c=u.length;s0){h=o;break}o=o[t]}u[s]=h}}function w(n,t,i,r,u,f){for(var e,s,o=0,h=r.length;o+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,v=0,b=Object.prototype.toString,h=!1,k=!0,e=/\\/g,c=/\W/,n,o,f,l,s,y;[0,0].sort(function(){return k=!1,0});n=function(t,i,e,o){var tt;if(e=e||[],i=i||r,tt=i,i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var p,v,h,nt,l,w,k,c,it=!0,g=n.isXML(i),s=[],rt=t;do if(a.exec(""),p=a.exec(rt),p&&(rt=p[3],s.push(p[1]),p[2])){nt=p[3];break}while(p);if(s.length>1&&d.exec(t))if(s.length===2&&u.relative[s[0]])v=y(s[0]+s[1],i);else for(v=u.relative[s[0]]?[i]:n(s.shift(),i);s.length;)t=s.shift(),u.relative[t]&&(t+=s.shift()),v=y(t,v);else if(!o&&s.length>1&&i.nodeType===9&&!g&&u.match.ID.test(s[0])&&!u.match.ID.test(s[s.length-1])&&(l=n.find(s.shift(),i,g),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]),i)for(l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,g),v=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(v):it=!1;s.length;)w=s.pop(),k=w,u.relative[w]?k=s.pop():w="",k==null&&(k=i),u.relative[w](h,k,g);else h=s=[];if(h||(h=v),h||n.error(w||t),b.call(h)==="[object Array]")if(it)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(v[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(v[c]);else e.push.apply(e,h);else f(h,e);return nt&&(n(nt,tt,e,o),n.uniqueSort(e)),e};n.uniqueSort=function(n){if(l&&(h=k,n.sort(l),h))for(var t=1;t0};n.find=function(n,t,i){var f,o,c,r,s,h;if(!n)return[];for(o=0,c=u.order.length;o":function(t,i){var u,f=typeof i=="string",r=0,o=t.length,e;if(f&&!c.test(i))for(i=i.toLowerCase();r=0)?i||r.push(o):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(e,"")},TAG:function(n){return n[1].replace(e,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]);t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0;t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=v++,t},ATTR:function(n,t,i,r,f,o){var s=n[1]=n[1].replace(e,"");return!o&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(e,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((a.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){return"text"===n.getAttribute("type")},radio:function(n){return"radio"===n.type},checkbox:function(n){return"checkbox"===n.type},file:function(n){return"file"===n.type},password:function(n){return"password"===n.type},submit:function(n){return"submit"===n.type},image:function(n){return"image"===n.type},reset:function(n){return"reset"===n.type},button:function(n){return"button"===n.type||n.nodeName.toLowerCase()==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return ti[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var e=i[1],h=u.filters[e],s,o,c;if(h)return h(t,r,i,f);if(e==="contains")return(t.textContent||t.innerText||n.getText([t])||"").indexOf(i[3])>=0;if(e==="not"){for(s=i[3],o=0,c=s.length;o=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(n,t){var e=t[1],o=u.attrHandle[e]?u.attrHandle[e](n):n[e]!=null?n[e]:n.getAttribute(e),r=o+"",f=t[2],i=t[4];return o==null?f==="!=":f==="="?r===i:f==="*="?r.indexOf(i)>=0:f==="~="?(" "+r+" ").indexOf(i)>=0:i?f==="!="?r!==i:f==="^="?r.indexOf(i)===0:f==="$="?r.substr(r.length-i.length)===i:f==="|="?r===i||r.substr(0,i.length+1)===i+"-":!1:r&&o!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},d=u.match.POS,g=function(n,t){return"\\"+(+t+1)};for(o in u.match)u.match[o]=new RegExp(u.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[o].source.replace(/\\(\d+)/g,g));f=function(n,t){return(n=Array.prototype.slice.call(n,0),t)?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(nt){f=function(n,t){var i=0,r=t||[],u;if(b.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i";i.insertBefore(n,i.firstChild);r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t});i.removeChild(n);i=n=null}(),function(){var n=r.createElement("div");n.appendChild(r.createComment(""));n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var i=t.getElementsByTagName(n[1]),u,r;if(n[1]==="*"){for(u=[],r=0;i[r];r++)i[r].nodeType===1&&u.push(i[r]);i=u}return i});n.innerHTML="<\/a>";n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)});n=null}();r.querySelectorAll&&function(){var i=n,t=r.createElement("div"),o="__sizzle__",e;if(t.innerHTML="

<\/p>",!t.querySelectorAll||t.querySelectorAll(".TEST").length!==0){n=function(t,e,s,h){var c,l;if(e=e||r,!h&&!n.isXML(e)){if(c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t),c&&(e.nodeType===1||e.nodeType===9)){if(c[1])return f(e.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&e.getElementsByClassName)return f(e.getElementsByClassName(c[2]),s)}if(e.nodeType===9){if(t==="body"&&e.body)return f([e.body],s);if(c&&c[3]){if(l=e.getElementById(c[3]),!l||!l.parentNode)return f([],s);if(l.id===c[3])return f([l],s)}try{return f(e.querySelectorAll(t),s)}catch(b){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var w=e,v=e.getAttribute("id"),a=v||o,y=e.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):e.setAttribute("id",a);p&&y&&(e=e.parentNode);try{if(!p||y)return f(e.querySelectorAll("[id='"+a+"'] "+t),s)}catch(k){}finally{v||w.removeAttribute("id")}}}return i(t,e,s,h)};for(e in i)n[e]=i[e];t=null}}(),function(){var t=r.documentElement,i=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector,f=!1;try{i.call(r.documentElement,"[test!='']:sizzle")}catch(e){f=!0}i&&(n.matchesSelector=function(t,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!n.isXML(t))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r))return i.call(t,r)}catch(e){}return n(r,null,null,[t]).length>0})}(),function(){var n=r.createElement("div");if(n.innerHTML="

<\/div>
<\/div>",n.getElementsByClassName&&n.getElementsByClassName("e").length!==0){if(n.lastChild.className="e",n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS");u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])};n=null}}();n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1};n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1};y=function(t,i){for(var f,e=[],o="",s=i.nodeType?[i]:i,r,h;f=u.match.PSEUDO.exec(t);)o+=f[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,r=0,h=s.length;r0)for(r=e;r0},closest:function(n,t){var f=[],e,s,r=this[0],h,u,o,c,l;if(i.isArray(n)){if(o={},c=1,r&&n.length){for(e=0,s=n.length;e-1:i(r).is(h))&&f.push({selector:u,elem:r,level:c});r=r.parentNode;c++}}return f}for(l=iu.test(n)?i(n,t||this.context):null,e=0,s=this.length;e-1:i.find.matchesSelector(r,n)){f.push(r);break}if(r=r.parentNode,!r||!r.ownerDocument||r===t)break}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return!n||typeof n=="string"?i.inArray(this[0],n?i(n):this.parent().children()):i.inArray(n.jquery?n[0]:n,this)},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n),r=i.merge(this.get(),u);return this.pushStack(ni(u[0])||ni(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r),e=tu.call(arguments);return kr.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!ru[n]?i.unique(f):f,(this.length>1||gr.test(u))&&dr.test(n)&&(f=f.reverse()),this.pushStack(f,n,e.join(","))}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var r=0;n;n=n[i])if(n.nodeType===1&&++r===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var uu=/ jQuery\d+="(?:\d+|null)"/g,ct=/^\s+/,ei=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,oi=/<([\w:]+)/,fu=/
","<\/table>"],tr:[2,"
","<\/tbody><\/table>"],td:[3,"
","<\/tr><\/tbody><\/table>"],col:[2,"
<\/tbody>","<\/colgroup><\/table>"],area:[1,"","<\/map>"],_default:[0,"",""]};u.optgroup=u.option;u.tbody=u.tfoot=u.colgroup=u.caption=u.thead;u.th=u.td;i.support.htmlSerialize||(u._default=[1,"div
","<\/div>"]);i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){return this.each(function(){i(this).wrapAll(n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i(arguments[0]);return n.push.apply(n,this.toArray()),this.pushStack(n,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var n=this.pushStack(this,"after",arguments);return n.push.apply(n,i(arguments[0]).toArray()),n}},remove:function(n,t){for(var u=0,r;(r=this[u])!=null;u++)(!n||i.filter(n,[r]).length)&&(t||r.nodeType!==1||(i.cleanData(r.getElementsByTagName("*")),i.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t=0,n;(n=this[t])!=null;t++)for(n.nodeType===1&&i.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){if(n===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(uu,""):null;if(typeof n!="string"||si.test(n)||!i.support.leadingWhitespace&&ct.test(n)||u[(oi.exec(n)||["",""])[1].toLowerCase()])i.isFunction(n)?this.each(function(t){var r=i(this);r.html(n.call(this,t,r.html()))}):this.empty().append(n);else{n=n.replace(ei,"<$1><\/$2>");try{for(var r=0,f=this.length;r1&&s0?this.clone(!0):this).get(),i(u[f])[t](s),e=e.concat(s);return this.pushStack(e,n,u.selector)}});i.extend({clone:function(n,t,r){var e=n.cloneNode(!0),f,o,u;if((!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(kt(n,e),f=w(n),o=w(e),u=0;f[u];++u)kt(f[u],o[u]);if(t&&(dt(n,e),r))for(f=w(n),o=w(e),u=0;f[u];++u)dt(f[u],o[u]);return e},clean:function(n,t,f,e){var s,h,o,y,a,l;for(t=t||r,typeof t.createElement=="undefined"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||r),s=[],h=0;(o=n[h])!=null;h++)if(typeof o=="number"&&(o+=""),o){if(typeof o!="string"||eu.test(o)){if(typeof o=="string"){o=o.replace(ei,"<$1><\/$2>");var p=(oi.exec(o)||["",""])[1].toLowerCase(),v=u[p]||u._default,w=v[0],c=t.createElement("div");for(c.innerHTML=v[1]+o+v[2];w--;)c=c.lastChild;if(!i.support.tbody)for(y=fu.test(o),a=p==="table"&&!y?c.firstChild&&c.firstChild.childNodes:v[1]==="
"&&!y?c.childNodes:[],l=a.length-1;l>=0;--l)i.nodeName(a[l],"tbody")&&!a[l].childNodes.length&&a[l].parentNode.removeChild(a[l]);!i.support.leadingWhitespace&&ct.test(o)&&c.insertBefore(t.createTextNode(ct.exec(o)[0]),c.firstChild);o=c.childNodes}}else o=t.createTextNode(o);o.nodeType?s.push(o):s=i.merge(s,o)}if(f)for(h=0;s[h];h++)!e||!i.nodeName(s[h],"script")||s[h].type&&s[h].type.toLowerCase()!=="text/javascript"?(s[h].nodeType===1&&s.splice.apply(s,[h+1,0].concat(i.makeArray(s[h].getElementsByTagName("script")))),f.appendChild(s[h])):e.push(s[h].parentNode?s[h].parentNode.removeChild(s[h]):s[h]);return s},cleanData:function(n){for(var f,r,u,e=i.cache,s=i.expando,h=i.event.special,c=i.support.deleteExpando,o=0,t;(t=n[o])!=null;o++)if((!t.nodeName||!i.noData[t.nodeName.toLowerCase()])&&(u=t[i.expando],u)){if(r=e[u]&&e[u][s],r&&r.events){for(f in r.events)h[f]?i.event.remove(t,f):i.removeEvent(t,f,r.handle);r.handle&&(r.handle.elem=null)}c?delete t[i.expando]:t.removeAttribute&&t.removeAttribute(i.expando);delete e[u]}}});var ci=/alpha\([^)]*\)/i,ou=/opacity=([^)]*)/,su=/-([a-z])/ig,hu=/([A-Z])/g,li=/^-?\d+(?:px)?$/i,cu=/^-?\d/,lu={position:"absolute",visibility:"hidden",display:"block"},au=["Left","Right"],vu=["Top","Bottom"],a,ai,g,yu=function(n,t){return t.toUpperCase()};i.fn.css=function(n,r){return arguments.length===2&&r===t?this:i.access(this,n,r,!0,function(n,r,u){return u!==t?i.style(n,r,u):i.css(n,r)})};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=a(n,"opacity","opacity");return i===""?"1":i}return n.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var s,o=i.camelCase(r),h=n.style,e=i.cssHooks[o];if(r=i.cssProps[o]||o,u===t)return e&&"get"in e&&(s=e.get(n,!1,f))!==t?s:h[r];if(typeof u=="number"&&isNaN(u)||u==null)return;if(typeof u!="number"||i.cssNumber[o]||(u+="px"),!e||!("set"in e)||(u=e.set(n,u))!==t)try{h[r]=u}catch(c){}}},css:function(n,r,u){var o,f=i.camelCase(r),e=i.cssHooks[f];return(r=i.cssProps[f]||f,e&&"get"in e&&(o=e.get(n,!0,u))!==t)?o:a?a(n,r,f):void 0},swap:function(n,t,i){var u={};for(var r in t)u[r]=n.style[r],n.style[r]=t[r];i.call(n);for(r in t)n.style[r]=u[r]},camelCase:function(n){return n.replace(su,yu)}});i.curCSS=i.css;i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){var f;if(r)return(n.offsetWidth!==0?f=bt(n,t,u):i.swap(n,lu,function(){f=bt(n,t,u)}),f<=0&&(f=a(n,t,t),f==="0px"&&g&&(f=g(n,t,t)),f!=null))?f===""||f==="auto"?"0px":f:f<0||f==null?(f=n.style[t],f===""||f==="auto"?"0px":f):typeof f=="string"?f:f+"px"},set:function(n,t){return li.test(t)?(t=parseFloat(t),t>=0?t+"px":void 0):t}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return ou.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(n,t){var r=n.style,u,f;r.zoom=1;u=i.isNaN(t)?"":"alpha(opacity="+t*100+")";f=r.filter||"";r.filter=ci.test(f)?f.replace(ci,u):r.filter+" "+u}});r.defaultView&&r.defaultView.getComputedStyle&&(ai=function(n,r,u){var f,e,o;return(u=u.replace(hu,"-$1").toLowerCase(),!(e=n.ownerDocument.defaultView))?t:((o=e.getComputedStyle(n,null))&&(f=o.getPropertyValue(u),f!==""||i.contains(n.ownerDocument.documentElement,n)||(f=i.style(n,u))),f)});r.documentElement.currentStyle&&(g=function(n,t){var f,i=n.currentStyle&&n.currentStyle[t],u=n.runtimeStyle&&n.runtimeStyle[t],r=n.style;return!li.test(i)&&cu.test(i)&&(f=r.left,u&&(n.runtimeStyle.left=n.currentStyle.left),r.left=t==="fontSize"?"1em":i||0,i=r.pixelLeft+"px",r.left=f,u&&(n.runtimeStyle.left=u)),i===""?"auto":i});a=ai||g;i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){var t=n.offsetWidth,r=n.offsetHeight;return t===0&&r===0||!i.support.reliableHiddenOffsets&&(n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});var pu=/%20/g,wu=/\[\]$/,vi=/\r?\n/g,bu=/#.*$/,ku=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,du=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,gu=/^(?:GET|HEAD)$/,nf=/^\/\//,yi=/\?/,tf=/)<[^<]*)*<\/script>/gi,rf=/^(?:select|textarea)/i,pi=/\s+/,uf=/([?&])_=[^&]*/,ff=/(^|\-)([a-z])/g,ef=function(n,t,i){return t+i.toUpperCase()},wi=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bi=i.fn.load,lt={},ki={},f,e;try{f=r.location.href}catch(hf){f=r.createElement("a");f.href="";f=f.href}e=wi.exec(f.toLowerCase());i.fn.extend({load:function(n,r,u){var f,e,o,s;return typeof n!="string"&&bi?bi.apply(this,arguments):this.length?(f=n.indexOf(" "),f>=0&&(e=n.slice(f,n.length),n=n.slice(0,f)),o="GET",r&&(i.isFunction(r)?(u=r,r=t):typeof r=="object"&&(r=i.param(r,i.ajaxSettings.traditional),o="POST")),s=this,i.ajax({url:n,type:o,dataType:"html",data:r,complete:function(n,t,r){r=n.responseText;n.isResolved()&&(n.done(function(n){r=n}),s.html(e?i("
").append(r.replace(tf,"")).find(e):r));u&&s.each(u,[r,t,n])}}),this):this},serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?i.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||rf.test(this.nodeName)||du.test(this.type))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(vi,"\r\n")}}):{name:t.name,value:r.replace(vi,"\r\n")}}).get()}});i.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(n,t){i.fn[t]=function(n){return this.bind(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({type:r,url:n,data:u,success:f,dataType:e})}});i.extend({getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")},ajaxSetup:function(n,t){t?i.extend(!0,n,i.ajaxSettings,t):(t=n,n=i.extend(!0,i.ajaxSettings,t));for(var r in{context:1,url:1})r in t?n[r]=t[r]:r in i.ajaxSettings&&(n[r]=i.ajaxSettings[r]);return n},ajaxSettings:{url:f,isLocal:/(?:^file|^widget|\-extension):$/.test(e[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML}},ajaxPrefilter:wt(lt),ajaxTransport:wt(ki),ajax:function(n,r){function w(n,r,e,c){if(o!==2){o=2;tt&&clearTimeout(tt);l=t;nt=c||"";f.readyState=n?4:0;var a,p,v,it=e?fr(u,f,e):t,w,k;if(n>=200&&n<300||n===304)if(u.ifModified&&((w=f.getResponseHeader("Last-Modified"))&&(i.lastModified[s]=w),(k=f.getResponseHeader("Etag"))&&(i.etag[s]=k)),n===304)r="notmodified",a=!0;else try{p=ur(u,it);r="success";a=!0}catch(rt){r="parsererror";v=rt}else v=r,(!r||n)&&(r="error",n<0&&(n=0));f.status=n;f.statusText=r;a?g.resolveWith(h,[p,r,f]):g.rejectWith(h,[f,r,v]);f.statusCode(b);b=t;y&&d.trigger("ajax"+(a?"Success":"Error"),[f,u,a?p:v]);ut.resolveWith(h,[f,r]);y&&(d.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop"))}}var it,rt;typeof n=="object"&&(r=n,n=t);r=r||{};var u=i.ajaxSetup({},r),h=u.context||u,d=h!==u&&(h.nodeType||h instanceof i)?i(h):i.event,g=i.Deferred(),ut=i._Deferred(),b=u.statusCode||{},s,c={},nt,k,l,tt,a,o=0,y,v,f={readyState:0,setRequestHeader:function(n,t){return o||(c[n.toLowerCase().replace(ff,ef)]=t),this},getAllResponseHeaders:function(){return o===2?nt:null},getResponseHeader:function(n){var i;if(o===2){if(!k)for(k={};i=ku.exec(nt);)k[i[1].toLowerCase()]=i[2];i=k[n.toLowerCase()]}return i===t?null:i},overrideMimeType:function(n){return o||(u.mimeType=n),this},abort:function(n){return n=n||"abort",l&&l.abort(n),w(0,n),this}};if(g.promise(f),f.success=f.done,f.error=f.fail,f.complete=ut.done,f.statusCode=function(n){if(n){var t;if(o<2)for(t in n)b[t]=[b[t],n[t]];else t=n[f.status],f.then(t,t)}return this},u.url=((n||u.url)+"").replace(bu,"").replace(nf,e[1]+"//"),u.dataTypes=i.trim(u.dataType||"*").toLowerCase().split(pi),u.crossDomain||(a=wi.exec(u.url.toLowerCase()),u.crossDomain=a&&(a[1]!=e[1]||a[2]!=e[2]||(a[3]||(a[1]==="http:"?80:443))!=(e[3]||(e[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),p(lt,u,r,f),o===2)return!1;y=u.global;u.type=u.type.toUpperCase();u.hasContent=!gu.test(u.type);y&&i.active++==0&&i.event.trigger("ajaxStart");u.hasContent||(u.data&&(u.url+=(yi.test(u.url)?"&":"?")+u.data),s=u.url,u.cache===!1&&(it=i.now(),rt=u.url.replace(uf,"$1_="+it),u.url=rt+(rt===u.url?(yi.test(u.url)?"&":"?")+"_="+it:"")));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&(c["Content-Type"]=u.contentType);u.ifModified&&(s=s||u.url,i.lastModified[s]&&(c["If-Modified-Since"]=i.lastModified[s]),i.etag[s]&&(c["If-None-Match"]=i.etag[s]));c.Accept=u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", */*; q=0.01":""):u.accepts["*"];for(v in u.headers)f.setRequestHeader(v,u.headers[v]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort(),!1;for(v in{success:1,error:1,complete:1})f[v](u[v]);if(l=p(ki,u,r,f),l){f.readyState=1;y&&d.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(tt=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;l.send(c,w)}catch(ft){status<2?w(-1,ft):i.error(ft)}}else w(-1,"No Transport");return f},param:function(n,r){var u=[],e=function(n,t){t=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)},f;if(r===t&&(r=i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(f in n)it(f,n[f],r,e);return u.join("&").replace(pu,"+")}});i.extend({active:0,lastModified:{},etag:{}});di=i.now();v=/(\=)\?(&|$)|()\?\?()/i;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return i.expando+"_"+di++}});i.ajaxPrefilter("json jsonp",function(t,r,u){var h=typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||r.jsonpCallback||r.jsonp!=null||t.jsonp!==!1&&(v.test(t.url)||h&&v.test(t.data))){var o,f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,c=n[f],e=t.url,s=t.data,l="$1"+f+"$2",a=function(){n[f]=c;o&&i.isFunction(c)&&n[f](o[0])};return t.jsonp!==!1&&(e=e.replace(v,l),t.url===e&&(h&&(s=s.replace(v,l)),t.data===s&&(e+=(/\?/.test(e)?"&":"?")+t.jsonp+"="+f))),t.url=e,t.data=s,n[f]=function(n){o=[n]},u.then(a,a),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json","script"}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var i,u=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(f,e){i=r.createElement("script");i.async="async";n.scriptCharset&&(i.charset=n.scriptCharset);i.src=n.url;i.onload=i.onreadystatechange=function(n,r){(!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,u&&i.parentNode&&u.removeChild(i),i=t,r||e(200,"success"))};u.insertBefore(i,u.firstChild)},abort:function(){i&&i.onload(0,1)}}}});gi=i.now();i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&pt()||ir()}:pt;y=i.ajaxSettings.xhr();i.support.ajax=!!y;i.support.cors=y&&"withCredentials"in y;y=t;i.support.ajax&&i.ajaxTransport(function(n){if(!n.crossDomain||i.support.cors){var r;return{send:function(u,f){var e=n.xhr(),s,o;if(n.username?e.open(n.type,n.url,n.async,n.username,n.password):e.open(n.type,n.url,n.async),n.xhrFields)for(o in n.xhrFields)e[o]=n.xhrFields[o];n.mimeType&&e.overrideMimeType&&e.overrideMimeType(n.mimeType);n.crossDomain&&!n.hasContent||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");try{for(o in u)e.setRequestHeader(o,u[o])}catch(c){}e.send(n.hasContent&&n.data||null);r=function(u,o){var c,v,y,l,a;try{if(r&&(o||e.readyState===4))if(r=t,s&&(e.onreadystatechange=i.noop,delete h[s]),o)e.readyState!==4&&e.abort();else{c=e.status;y=e.getAllResponseHeaders();l={};a=e.responseXML;a&&a.documentElement&&(l.xml=a);l.text=e.responseText;try{v=e.statusText}catch(w){v=""}c||!n.isLocal||n.crossDomain?c===1223&&(c=204):c=l.text?200:404}}catch(p){o||f(-1,p)}l&&f(c,v,l,y)};n.async&&e.readyState!==4?(h||(h={},rr()),s=gi++,e.onreadystatechange=h[s]=r):r()},abort:function(){r&&r(0,1)}}}});var at={},of=/^(?:toggle|show|hide)$/,sf=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,nt,nr=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];i.fn.extend({show:function(n,t,r){var u,e,f,s;if(n||n===0)return this.animate(o("show",3),n,t,r);for(f=0,s=this.length;f=0;n--)r[n].elem===this&&(t&&r[n](!0),r.splice(n,1))}),t||this.dequeue(),this}});i.each({slideDown:o("show",1),slideUp:o("hide",1),slideToggle:o("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.extend({speed:function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,u.old=u.complete,u.complete=function(){u.queue!==!1&&i(this).dequeue();i.isFunction(u.old)&&u.old.call(this)},u},easing:{linear:function(n,t,i,r){return i+r*n},swing:function(n,t,i,r){return(-Math.cos(n*Math.PI)/2+.5)*r+i}},timers:[],fx:function(n,t,i){this.options=t;this.elem=n;this.prop=i;t.orig||(t.orig={})}});i.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(i.fx.step[this.prop]||i.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 t,n=i.css(this.elem,this.prop);return isNaN(t=parseFloat(n))?!n||n==="auto"?0:n:t},custom:function(n,t,r){function u(n){return e.step(n)}var e=this,f=i.fx;this.startTime=i.now();this.start=n;this.end=t;this.unit=r||this.unit||(i.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;u.elem=this.elem;u()&&i.timers.push(u)&&!nt&&(nt=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());i(this.elem).show()},hide:function(){this.options.orig[this.prop]=i.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(n){var u=i.now(),f=!0,e,o,s,t,r,h,c;if(n||u>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(e in this.options.curAnim)this.options.curAnim[e]!==!0&&(f=!1);if(f){if(this.options.overflow==null||i.support.shrinkWrapBlocks||(o=this.elem,s=this.options,i.each(["","X","Y"],function(n,t){o.style["overflow"+t]=s.overflow[n]})),this.options.hide&&i(this.elem).hide(),this.options.hide||this.options.show)for(t in this.options.curAnim)i.style(this.elem,t,this.options.orig[t]);this.options.complete.call(this.elem)}return!1}return r=u-this.startTime,this.state=r/this.options.duration,h=this.options.specialEasing&&this.options.specialEasing[this.prop],c=this.options.easing||(i.easing.swing?"swing":"linear"),this.pos=i.easing[h||c](this.state,r,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0}};i.extend(i.fx,{tick:function(){for(var n=i.timers,t=0;t
<\/div><\/div>
<\/td><\/tr><\/table>";t.insertBefore(u,t.firstChild);f=u.firstChild;n=f.firstChild;e=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=n.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;n.style.position="fixed";n.style.top="20px";this.supportsFixedPosition=n.offsetTop===20||n.offsetTop===15;n.style.position=n.style.top="";f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=n.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=t.offsetTop!==s;t.removeChild(u);t=u=f=n=o=e=null;i.offset.initialize=i.noop},bodyOffset:function(n){var t=n.offsetTop,r=n.offsetLeft;return i.offset.initialize(),i.offset.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(i.css(n,"marginTop"))||0,r+=parseFloat(i.css(n,"marginLeft"))||0),{top:t,left:r}},setOffset:function(n,t,r){var h=i.css(n,"position");h==="static"&&(n.style.position="relative");var f=i(n),e=f.offset(),c=i.css(n,"top"),l=i.css(n,"left"),o=h==="absolute"&&i.inArray("auto",[c,l])>-1,u={},s={},a,v;o&&(s=f.position());a=o?s.top:parseInt(c,10)||0;v=o?s.left:parseInt(l,10)||0;i.isFunction(t)&&(t=t.call(n,r,e));t.top!=null&&(u.top=t.top-e.top+a);t.left!=null&&(u.left=t.left-e.left+v);"using"in t?t.using.call(n,u):f.css(u)}};i.fn.extend({position:function(){if(!this[0])return null;var u=this[0],n=this.offsetParent(),t=this.offset(),r=vt.test(n[0].nodeName)?{top:0,left:0}:n.offset();return t.top-=parseFloat(i.css(u,"marginTop"))||0,t.left-=parseFloat(i.css(u,"marginLeft"))||0,r.top+=parseFloat(i.css(n[0],"borderTopWidth"))||0,r.left+=parseFloat(i.css(n[0],"borderLeftWidth"))||0,{top:t.top-r.top,left:t.left-r.left}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.body;n&&!vt.test(n.nodeName)&&i.css(n,"position")==="static";)n=n.offsetParent;return n})}});i.each(["Left","Top"],function(n,r){var u="scroll"+r;i.fn[u]=function(r){var e=this[0],f;return e?r!==t?this.each(function(){f=tt(this);f?f.scrollTo(n?i(f).scrollLeft():r,n?r:i(f).scrollTop()):this[u]=r}):(f=tt(e),f?"pageXOffset"in f?f[n?"pageYOffset":"pageXOffset"]:i.support.boxModel&&f.document.documentElement[u]||f.document.body[u]:e[u]):null}});i.each(["Height","Width"],function(n,r){var u=r.toLowerCase();i.fn["inner"+r]=function(){return this[0]?parseFloat(i.css(this[0],u,"padding")):null};i.fn["outer"+r]=function(n){return this[0]?parseFloat(i.css(this[0],u,n?"margin":"border")):null};i.fn[u]=function(n){var f=this[0],e,o,s;return f?i.isFunction(n)?this.each(function(t){var r=i(this);r[u](n.call(this,t,r[u]()))}):i.isWindow(f)?(e=f.document.documentElement["client"+r],f.document.compatMode==="CSS1Compat"&&e||f.document.body["client"+r]||e):f.nodeType===9?Math.max(f.documentElement["client"+r],f.body["scroll"+r],f.documentElement["scroll"+r],f.body["offset"+r],f.documentElement["offset"+r]):n===t?(o=i.css(f,u),s=parseFloat(o),i.isNaN(s)?o:s):this.css(u,typeof n=="string"?n:n+"px"):n==null?null:this}});n.jQuery=n.$=i})(window),function(n,t){function i(t,i){var u=t.nodeName.toLowerCase(),f,e,o;return"area"===u?(f=t.parentNode,e=f.name,!t.href||!e||f.nodeName.toLowerCase()!=="map")?!1:(o=n("img[usemap=#"+e+"]")[0],!!o&&r(o)):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"==u?t.href||i:i)&&r(t)}function r(t){return!n(t).parents().andSelf().filter(function(){return n.curCSS(this,"visibility")==="hidden"||n.expr.filters.hidden(this)}).length}(n.ui=n.ui||{},n.ui.version)||(n.extend(n.ui,{version:"1.8.13",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}}),n.fn.extend({_focus:n.fn.focus,focus:function(t,i){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){n(r).focus();i&&i.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=n.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.curCSS(this,"position",1))&&/(auto|scroll)/.test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.curCSS(this,"overflow",1)+n.curCSS(this,"overflow-y",1)+n.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var r=n(this[0]),u,f;r.length&&r[0]!==document;){if(u=r.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&f!==0))return f;r=r.parent()}return 0},disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.curCSS(t,"padding"+this,!0))||0;r&&(i-=parseFloat(n.curCSS(t,"border"+this+"Width",!0))||0);u&&(i-=parseFloat(n.curCSS(t,"margin"+this,!0))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}}),n.extend(n.expr[":"],{data:function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}}),n(function(){var i=document.body,t=i.appendChild(t=document.createElement("div"));n.extend(t.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});n.support.minHeight=t.offsetHeight===100;n.support.selectstart="onselectstart"in t;i.removeChild(t).style.display="none"}),n.extend(n.ui,{plugin:{add:function(t,i,r){var f=n.ui[t].prototype;for(var u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var u=n.plugins[t],r;if(u&&n.element[0].parentNode)for(r=0;r0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},isOverAxis:function(n,t,i){return n>t&&n=9)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target==this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n){n.ui=n.ui||{};var i=/left|center|right/,r=/top|center|bottom/,t="center",u=n.fn.position,f=n.fn.offset;n.fn.position=function(f){if(!f||!f.of)return u.apply(this,arguments);f=n.extend({},f);var o=n(f.of),a=o[0],l=(f.collision||"flip").split(" "),s=f.offset?f.offset.split(" "):[0,0],h,c,e;return a.nodeType===9?(h=o.width(),c=o.height(),e={top:0,left:0}):a.setTimeout?(h=o.width(),c=o.height(),e={top:o.scrollTop(),left:o.scrollLeft()}):a.preventDefault?(f.at="left top",h=c=0,e={top:f.of.pageY,left:f.of.pageX}):(h=o.outerWidth(),c=o.outerHeight(),e=o.offset()),n.each(["my","at"],function(){var n=(f[this]||"").split(" ");n.length===1&&(n=i.test(n[0])?n.concat([t]):r.test(n[0])?[t].concat(n):[t,t]);n[0]=i.test(n[0])?n[0]:t;n[1]=r.test(n[1])?n[1]:t;f[this]=n}),l.length===1&&(l[1]=l[0]),s[0]=parseInt(s[0],10)||0,s.length===1&&(s[1]=s[0]),s[1]=parseInt(s[1],10)||0,f.at[0]==="right"?e.left+=h:f.at[0]===t&&(e.left+=h/2),f.at[1]==="bottom"?e.top+=c:f.at[1]===t&&(e.top+=c/2),e.left+=s[0],e.top+=s[1],this.each(function(){var r=n(this),u=r.outerWidth(),o=r.outerHeight(),a=parseInt(n.curCSS(this,"marginLeft",!0))||0,v=parseInt(n.curCSS(this,"marginTop",!0))||0,p=u+a+(parseInt(n.curCSS(this,"marginRight",!0))||0),w=o+v+(parseInt(n.curCSS(this,"marginBottom",!0))||0),i=n.extend({},e),y;f.my[0]==="right"?i.left-=u:f.my[0]===t&&(i.left-=u/2);f.my[1]==="bottom"?i.top-=o:f.my[1]===t&&(i.top-=o/2);i.left=Math.round(i.left);i.top=Math.round(i.top);y={left:i.left-a,top:i.top-v};n.each(["left","top"],function(t,r){n.ui.position[l[t]]&&n.ui.position[l[t]][r](i,{targetWidth:h,targetHeight:c,elemWidth:u,elemHeight:o,collisionPosition:y,collisionWidth:p,collisionHeight:w,offset:s,my:f.my,at:f.at})});n.fn.bgiframe&&r.bgiframe();r.offset(n.extend(i,{using:f.using}))})};n.ui.position={fit:{left:function(t,i){var r=n(window),u=i.collisionPosition.left+i.collisionWidth-r.width()-r.scrollLeft();t.left=u>0?t.left-u:Math.max(t.left-i.collisionPosition.left,t.left)},top:function(t,i){var r=n(window),u=i.collisionPosition.top+i.collisionHeight-r.height()-r.scrollTop();t.top=u>0?t.top-u:Math.max(t.top-i.collisionPosition.top,t.top)}},flip:{left:function(i,r){if(r.at[0]!==t){var u=n(window),s=r.collisionPosition.left+r.collisionWidth-u.width()-u.scrollLeft(),f=r.my[0]==="left"?-r.elemWidth:r.my[0]==="right"?r.elemWidth:0,e=r.at[0]==="left"?r.targetWidth:-r.targetWidth,o=-2*r.offset[0];i.left+=r.collisionPosition.left<0?f+e+o:s>0?f+e+o:0}},top:function(i,r){if(r.at[1]!==t){var u=n(window),s=r.collisionPosition.top+r.collisionHeight-u.height()-u.scrollTop(),f=r.my[1]==="top"?-r.elemHeight:r.my[1]==="bottom"?r.elemHeight:0,e=r.at[1]==="top"?r.targetHeight:-r.targetHeight,o=-2*r.offset[1];i.top+=r.collisionPosition.top<0?f+e+o:s>0?f+e+o:0}}}};n.offset.setOffset||(n.offset.setOffset=function(t,i){/static/.test(n.curCSS(t,"position"))&&(t.style.position="relative");var r=n(t),u=r.offset(),e=parseInt(n.curCSS(t,"top",!0),10)||0,o=parseInt(n.curCSS(t,"left",!0),10)||0,f={top:i.top-u.top+e,left:i.left-u.left+o};"using"in i?i.using.call(t,f):r.css(f)},n.fn.offset=function(t){var i=this[0];return!i||!i.ownerDocument?null:t?this.each(function(){n.offset.setOffset(this,t)}):f.call(this)})}(jQuery),function(n){n.widget("ui.draggable",n.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper!="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(n(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){n('
<\/div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(n(this).offset()).appendTo("body")}),!0)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._cacheHelperProportions(),n.ui.ddmanager&&(n.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},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(t,!0),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.options.axis&&this.options.axis=="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis=="x"||(this.helper[0].style.top=this.position.top+"px"),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=!1,r;return(n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),(!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")?!1:(this.options.revert=="invalid"&&!i||this.options.revert=="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?(r=this,n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()})):this._trigger("stop",t)!==!1&&this._clear(),!1)},_mouseUp:function(t){return this.options.iframeFix===!0&&n("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var i=!this.options.handle||!n(this.options.handle,this.element).length?!0:!1;return n(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(i=!0)}),i},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):r.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo=="parent"?this.element[0].parentNode:r.appendTo),i[0]==this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&n.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&n.browser.msie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var n=this.element.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var i=this.options,r,t,f,u;if(i.containment=="parent"&&(i.containment=this.helper[0].parentNode),(i.containment=="document"||i.containment=="window")&&(this.containment=[(i.containment=="document"?0:n(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(i.containment=="document"?0:n(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(i.containment=="document"?0:n(window).scrollLeft())+n(i.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(i.containment=="document"?0:n(window).scrollTop())+(n(i.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||i.containment.constructor==Array)i.containment.constructor==Array&&(this.containment=i.containment);else{if(r=n(i.containment),t=r[0],!t)return;f=r.offset();u=n(t).css("overflow")!="hidden";this.containment=[(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0),(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0),(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=r}},_convertPositionTo:function(t,i){i||(i=this.position);var r=t=="absolute"?1:-1,e=this.options,u=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r),left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(n.browser.safari&&n.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r)}},_generatePosition:function(t){var r=this.options,h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&n.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,c=/(html|body)/i.test(h[0].tagName),e=t.pageX,o=t.pageY,i,s,u,f;return this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(e=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1],o=i?(u-this.offset.click.topi[3])?(u-this.offset.click.topi[2])?(f-this.offset.click.left=0;f--){var e=r.snapElements[f].left,s=e+r.snapElements[f].width,o=r.snapElements[f].top,h=o+r.snapElements[f].height;if(!(e-u<\/div>")).appendTo(document.body).hide().addClass(i+r.dialogClass).css({zIndex:r.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){r.closeOnEscape&&i.keyCode&&i.keyCode===n.ui.keyCode.ESCAPE&&(t.close(i),i.preventDefault())}).attr({role:"dialog","aria-labelledby":o}).mousedown(function(n){t.moveToTop(!1,n)}),h=t.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(e),f=(t.uiDialogTitlebar=n("
<\/div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(e),u=n('<\/a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){u.addClass("ui-state-hover")},function(){u.removeClass("ui-state-hover")}).focus(function(){u.addClass("ui-state-focus")}).blur(function(){u.removeClass("ui-state-focus")}).click(function(n){return t.close(n),!1}).appendTo(f),c=(t.uiDialogTitlebarCloseText=n("<\/span>")).addClass("ui-icon ui-icon-closethick").text(r.closeText).appendTo(u),l=n("<\/span>").addClass("ui-dialog-title").attr("id",o).html(s).prependTo(f);n.isFunction(r.beforeclose)&&!n.isFunction(r.beforeClose)&&(r.beforeClose=r.beforeclose);f.find("*").add(f).disableSelection();r.draggable&&n.fn.draggable&&t._makeDraggable();r.resizable&&n.fn.resizable&&t._makeResizable();t._createButtons(r.buttons);t._isOpen=!1;n.fn.bgiframe&&e.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var n=this;return n.overlay&&n.overlay.destroy(),n.uiDialog.hide(),n.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),n.uiDialog.remove(),n.originalTitle&&n.element.attr("title",n.originalTitle),n},widget:function(){return this.uiDialog},close:function(t){var i=this,r,u;if(!1!==i._trigger("beforeClose",t))return i.overlay&&i.overlay.destroy(),i.uiDialog.unbind("keypress.ui-dialog"),i._isOpen=!1,i.options.hide?i.uiDialog.hide(i.options.hide,function(){i._trigger("close",t)}):(i.uiDialog.hide(),i._trigger("close",t)),n.ui.dialog.overlay.resize(),i.options.modal&&(r=0,n(".ui-dialog").each(function(){this!==i.uiDialog[0]&&(u=n(this).css("z-index"),isNaN(u)||(r=Math.max(r,u)))}),n.ui.dialog.maxZ=r),i},isOpen:function(){return this._isOpen},moveToTop:function(t,i){var r=this,u=r.options,f;return u.modal&&!t||!u.stack&&!u.modal?r._trigger("focus",i):(u.zIndex>n.ui.dialog.maxZ&&(n.ui.dialog.maxZ=u.zIndex),r.overlay&&(n.ui.dialog.maxZ+=1,r.overlay.$el.css("z-index",n.ui.dialog.overlay.maxZ=n.ui.dialog.maxZ)),f={scrollTop:r.element.attr("scrollTop"),scrollLeft:r.element.attr("scrollLeft")},n.ui.dialog.maxZ+=1,r.uiDialog.css("z-index",n.ui.dialog.maxZ),r.element.attr(f),r._trigger("focus",i),r)},open:function(){if(!this._isOpen){var t=this,i=t.options,r=t.uiDialog;return t.overlay=i.modal?new n.ui.dialog.overlay(t):null,t._size(),t._position(i.position),r.show(i.show),t.moveToTop(!0),i.modal&&r.bind("keypress.ui-dialog",function(t){if(t.keyCode===n.ui.keyCode.TAB){var i=n(":tabbable",this),r=i.filter(":first"),u=i.filter(":last");if(t.target!==u[0]||t.shiftKey){if(t.target===r[0]&&t.shiftKey)return u.focus(1),!1}else return r.focus(1),!1}}),n(t.element.find(":tabbable").get().concat(r.find(".ui-dialog-buttonpane :tabbable").get().concat(r.get()))).eq(0).focus(),t._isOpen=!0,t._trigger("open"),t}},_createButtons:function(t){var i=this,r=!1,u=n("
<\/div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),e=n("
<\/div>").addClass("ui-dialog-buttonset").appendTo(u);i.uiDialog.find(".ui-dialog-buttonpane").remove();typeof t=="object"&&t!==null&&n.each(t,function(){return!(r=!0)});r&&(n.each(t,function(t,r){r=n.isFunction(r)?{click:r,text:t}:r;var u=n('