(function(g,h){function j(){if(!c.isReady){try{A.documentElement.doScroll("left")}catch(a){setTimeout(j,1);return}c.ready()}}function o(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function p(a,b,d,e,f,l){var m=a.length;if(typeof b==="object"){for(var u in b)p(a,u,b[u],e,f,d);return a}if(d!==h){e=!l&&e&&c.isFunction(d);for(u=0;u<m;u++)f(a[u],b,e?d.call(a[u],u,f(a[u],b)):d,l);return a}return m?
f(a[0],b):h}function n(){return(new Date).getTime()}function s(){return false}function y(){return true}function B(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function I(a){var b,d=[],e=[],f=arguments,l,m,u,r,v,z;m=c.data(this,"events");if(!(a.liveFired===this||!m||!m.live||a.button&&a.type==="click")){a.liveFired=this;var E=m.live.slice(0);for(r=0;r<E.length;r++){m=E[r];m.origType.replace(Z,"")===a.type?e.push(m.selector):E.splice(r--,1)}l=c(a.target).closest(e,a.currentTarget);v=0;for(z=
l.length;v<z;v++)for(r=0;r<E.length;r++){m=E[r];if(l[v].selector===m.selector){u=l[v].elem;e=null;if(m.preType==="mouseenter"||m.preType==="mouseleave")e=c(a.relatedTarget).closest(m.selector)[0];if(!e||e!==u)d.push({elem:u,handleObj:m})}}v=0;for(z=d.length;v<z;v++){l=d[v];a.currentTarget=l.elem;a.data=l.handleObj.data;a.handleObj=l.handleObj;if(l.handleObj.origHandler.apply(l.elem,f)===false){b=false;break}}return b}}function M(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function N(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);if(e=e&&e.events){delete f.handle;f.events={};for(var l in e)for(var m in e[l])c.event.add(this,l,e[l][m],e[l][m].data)}}})}function L(a,b,d){var e,f,l;b=b&&b[0]?b[0].ownerDocument||b[0]:A;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===A&&!xa.test(a[0])&&(c.support.checkClone||!ya.test(a[0]))){f=true;if(l=c.fragments[a[0]])if(l!==1)e=l}if(!e){e=b.createDocumentFragment();
c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=l?e:1;return{fragment:e,cacheable:f}}function R(a,b){var d={};c.each(za.concat.apply([],za.slice(0,b)),function(){d[this]=a});return d}function V(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},ea=g.jQuery,ja=g.$,A=g.document,fa,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aa=navigator.userAgent,
Aa=false,ba=[],W,ka=Object.prototype.toString,la=Object.prototype.hasOwnProperty,ma=Array.prototype.push,ca=Array.prototype.slice,Ba=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=A;this[0]=A.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:A;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=
[A.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(a[1])];else{a=L([d[1]],[e]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=A.getElementById(d[2])){if(b.id!==d[2])return fa.find(a);this.length=1;this[0]=b}this.context=A;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=A;a=A.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||fa).find(a):c(b).find(a);else if(c.isFunction(a))return fa.ready(a);
if(a.selector!==h){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ca.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var e=c();c.isArray(a)?ma.apply(e,a):c.merge(e,a);e.prevObject=this;e.context=this.context;if(b==="find")e.selector=this.selector+(this.selector?" ":"")+d;else if(b)e.selector=this.selector+
"."+b+"("+d+")";return e},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(A,c);else ba&&ba.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ca.apply(this,arguments),"slice",ca.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||
c(null)},push:ma,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,e=false,f,l,m,u;if(typeof a==="boolean"){e=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((f=arguments[b])!=null)for(l in f){m=a[l];u=f[l];if(a!==u)if(e&&u&&(c.isPlainObject(u)||c.isArray(u))){m=m&&(c.isPlainObject(m)||c.isArray(m))?m:c.isArray(u)?[]:{};a[l]=c.extend(e,m,u)}else if(u!==h)a[l]=
u}return a};c.extend({noConflict:function(a){g.$=ja;if(a)g.jQuery=ea;return c},isReady:false,ready:function(){if(!c.isReady){if(!A.body)return setTimeout(c.ready,13);c.isReady=true;if(ba){for(var a,b=0;a=ba[b++];)a.call(A,c);ba=null}c.fn.triggerHandler&&c(A).triggerHandler("ready")}},bindReady:function(){if(!Aa){Aa=true;if(A.readyState==="complete")return c.ready();if(A.addEventListener){A.addEventListener("DOMContentLoaded",W,false);g.addEventListener("load",c.ready,false)}else if(A.attachEvent){A.attachEvent("onreadystatechange",
W);g.attachEvent("onload",c.ready);var a=false;try{a=g.frameElement==null}catch(b){}A.documentElement.doScroll&&a&&j()}}},isFunction:function(a){return ka.call(a)==="[object Function]"},isArray:function(a){return ka.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||ka.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!la.call(a,"constructor")&&!la.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===h||la.call(a,b)},
isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return g.JSON&&g.JSON.parse?g.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&
Va.test(a)){var b=A.getElementsByTagName("head")[0]||A.documentElement,d=A.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(A.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var e,f=0,l=a.length,m=l===h||c.isFunction(a);if(d)if(m)for(e in a){if(b.apply(a[e],d)===false)break}else for(;f<l;){if(b.apply(a[f++],d)===false)break}else if(m)for(e in a){if(b.call(a[e],
e,a[e])===false)break}else for(d=a[0];f<l&&b.call(d,f,d)!==false;d=a[++f]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ma.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,e=b.length;d<e;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,e=0;if(typeof b.length==="number")for(var f=b.length;e<
f;e++)a[d++]=b[e];else for(;b[e]!==h;)a[d++]=b[e++];a.length=d;return a},grep:function(a,b,d){for(var e=[],f=0,l=a.length;f<l;f++)!d!==!b(a[f],f)&&e.push(a[f]);return e},map:function(a,b,d){for(var e=[],f,l=0,m=a.length;l<m;l++){f=b(a[l],l,d);if(f!=null)e[e.length]=f}return e.concat.apply([],e)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=h}else if(b&&!c.isFunction(b)){d=b;b=h}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=
a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});aa=c.uaMatch(aa);if(aa.browser){c.browser[aa.browser]=true;c.browser.version=aa.version}if(c.browser.webkit)c.browser.safari=true;if(Ba)c.inArray=function(a,b){return Ba.call(b,a)};fa=c(A);if(A.addEventListener)W=
function(){A.removeEventListener("DOMContentLoaded",W,false);c.ready()};else if(A.attachEvent)W=function(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",W);c.ready()}};(function(){c.support={};var a=A.documentElement,b=A.createElement("script"),d=A.createElement("div"),e="script"+n();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),l=d.getElementsByTagName("a")[0];
if(!(!f||!f.length||!l)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:/^0.55$/.test(l.style.opacity),cssFloat:!!l.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:A.createElement("select").appendChild(A.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(A.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(A.createTextNode("window."+e+"=1;"))}catch(m){}a.insertBefore(b,a.firstChild);if(g[e]){c.support.scriptEval=true;delete g[e]}try{delete b.test}catch(u){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=A.createElement("div");
d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=A.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=A.createElement("div");r.style.width=r.style.paddingLeft="1px";A.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;A.body.removeChild(r).style.display="none"});a=function(r){var v=A.createElement("div");r="on"+r;var z=r in v;if(!z){v.setAttribute(r,"return;");z=typeof v[r]===
"function"}return z};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=l=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var S="jQuery"+n(),Ya=0,Ca={};c.extend({cache:{},expando:S,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=
a==g?Ca:a;var e=a[S],f=c.cache;if(!e&&typeof b==="string"&&d===h)return null;e||(e=++Ya);if(typeof b==="object"){a[S]=e;f[e]=c.extend(true,{},b)}else if(!f[e]){a[S]=e;f[e]={}}a=f[e];if(d!==h)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==g?Ca:a;var d=a[S],e=c.cache,f=e[d];if(b){if(f){delete f[b];c.isEmptyObject(f)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);
delete e[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===h){var e=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(e===h&&this.length)e=c.data(this[0],a);return e===h&&d[1]?this.data(d[0]):e}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,
a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===h)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,
a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Da=/[\n\t]/g,na=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,cb=/^(a|area)$/i,Ea=/radio|checkbox/;c.fn.extend({attr:function(a,
b){return p(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(v){var z=c(this);z.addClass(a.call(this,v,z.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(na),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var l=" "+f.className+" ",m=f.className,u=0,r=b.length;u<r;u++)if(l.indexOf(" "+b[u]+" ")<
0)m+=" "+b[u];f.className=c.trim(m)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(r){var v=c(this);v.removeClass(a.call(this,r,v.attr("class")))});if(a&&typeof a==="string"||a===h)for(var b=(a||"").split(na),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var l=(" "+f.className+" ").replace(Da," "),m=0,u=b.length;m<u;m++)l=l.replace(" "+b[m]+" "," ");f.className=c.trim(l)}else f.className=""}return this},toggleClass:function(a,
b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var l=c(this);l.toggleClass(a.call(this,f,l.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,l=0,m=c(this),u=b,r=a.split(na);f=r[l++];){u=e?u:!m.hasClass(f);m[u?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Da," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===h){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,e=[],f=b.options;b=b.type==="select-one";if(d<0)return null;var l=b?d:0;for(d=b?d+1:f.length;l<d;l++){var m=f[l];if(m.selected){a=c(m).val();if(b)return a;e.push(a)}}return e}if(Ea.test(b.type)&&
!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return h}var u=c.isFunction(a);return this.each(function(r){var v=c(this),z=a;if(this.nodeType===1){if(u)z=a.call(this,r,v.val());if(typeof z==="number")z+="";if(c.isArray(z)&&Ea.test(this.type))this.checked=c.inArray(v.val(),z)>=0;else if(c.nodeName(this,"select")){var E=c.makeArray(z);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),E)>=0});if(!E.length)this.selectedIndex=
-1}else this.value=z}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return h;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==h;b=e&&c.props[b]||b;if(a.nodeType===1){var l=$a.test(b);if(b in a&&e&&!l){if(f){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;
if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:h;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&e&&l?a.getAttribute(b,2):a.getAttribute(b);return a===null?h:a}return c.style(a,b,d)}});var Z=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,e){if(!(a.nodeType===
3||a.nodeType===8)){if(a.setInterval&&a!==g&&!a.frameElement)a=g;var f,l;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(l=c.data(a)){var m=l.events=l.events||{},u=l.handle;if(!u)l.handle=u=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(u.elem,arguments):h};u.elem=a;b=b.split(" ");for(var r,v=0,z;r=b[v++];){l=f?c.extend({},f):{handler:d,data:e};if(r.indexOf(".")>-1){z=r.split(".");r=z.shift();l.namespace=z.slice(0).sort().join(".")}else{z=[];l.namespace=
""}l.type=r;l.guid=d.guid;var E=m[r],H=c.event.special[r]||{};if(!E){E=m[r]=[];if(!H.setup||H.setup.call(a,e,z,u)===false)if(a.addEventListener)a.addEventListener(r,u,false);else a.attachEvent&&a.attachEvent("on"+r,u)}if(H.add){H.add.call(a,l);if(!l.handler.guid)l.handler.guid=d.guid}E.push(l);c.event.global[r]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){var f,l=0,m,u,r,v,z,E,H=c.data(a),K=H&&H.events;if(H&&K){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b===
"string"&&b.charAt(0)==="."){b=b||"";for(f in K)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){v=f;m=f.indexOf(".")<0;u=[];if(!m){u=f.split(".");f=u.shift();r=RegExp("(^|\\.)"+c.map(u.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(z=K[f])if(d){v=c.event.special[f]||{};for(J=e||0;J<z.length;J++){E=z[J];if(d.guid===E.guid){if(m||r.test(E.namespace)){e==null&&z.splice(J--,1);v.remove&&v.remove.call(a,E)}if(e!=null)break}}if(z.length===0||e!=null&&z.length===1){if(!v.teardown||v.teardown.call(a,
u)===false)Fa(a,f,H.handle);delete K[f]}}else for(var J=0;J<z.length;J++){E=z[J];if(m||r.test(E.namespace)){c.event.remove(a,v,E.handler,J);z.splice(J--,1)}}}if(c.isEmptyObject(K)){if(b=H.handle)b.elem=null;delete H.events;delete H.handle;c.isEmptyObject(H)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[S]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,
function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return h;a.result=h;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=c.data(d,"handle"))&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false)a.result=false}catch(l){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){e=a.target;var m,
u=c.nodeName(e,"a")&&f==="click",r=c.event.special[f]||{};if((!r._default||r._default.call(d,a)===false)&&!u&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[f]){if(m=e["on"+f])e["on"+f]=null;c.event.triggered=true;e[f]()}}catch(v){}if(m)e["on"+f]=m;c.event.triggered=false}}},handle:function(a){var b,d,e,f;a=arguments[0]=c.event.fix(a||g.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();e=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}f=c.data(this,"events");d=f[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var m=d[f];if(b||e.test(m.namespace)){a.handler=m.handler;a.data=m.data;a.handleObj=m;m=m.handler.apply(this,arguments);if(m!==h){a.result=m;if(m===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[S])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||A;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=A.documentElement;d=A.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==h)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:I}))},remove:function(a){var b=true,d=a.origType.replace(Z,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(Z,""))return b=false});b&&c.event.remove(this,a.origType,I)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Fa=A.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=n();this[S]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=y;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:s,isPropagationStopped:s,
isImmediatePropagationStopped:s};var Ga=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ha=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ha:Ga,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ha:Ga)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return B("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return B("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var oa=
/textarea|input|select/i,pa,Ia=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},qa=function(a,b){var d=a.target,e,f;if(!(!oa.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=Ia(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===h||f===e))if(e!=null||
f){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:qa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return qa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return qa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Ia(a))}},setup:function(){if(this.type===
"file")return false;for(var a in pa)c.event.add(this,a+".specialChange",pa[a]);return oa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return oa.test(this.nodeName)}};pa=c.event.special.change.filters}A.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,
d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var l in d)this[b](l,e,d[l],f);return this}if(c.isFunction(e)){f=e;e=h}var m=b==="one"?c.proxy(f,function(r){c(this).unbind(r,m);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{l=0;for(var u=this.length;l<u;l++)c.event.add(this[l],d,m,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=
0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,
b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ja={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,l){var m,u=0,r,v,z=l||this.selector,E=l?this:c(this.context);if(c.isFunction(e)){f=e;e=h}for(d=
(d||"").split(" ");(m=d[u++])!=null;){l=Z.exec(m);r="";if(l){r=l[0];m=m.replace(Z,"")}if(m==="hover")d.push("mouseenter"+r,"mouseleave"+r);else{v=m;if(m==="focus"||m==="blur"){d.push(Ja[m]+r);m+=r}else m=(Ja[m]||m)+r;b==="live"?E.each(function(){c.event.add(this,M(m,z),{data:e,selector:z,handler:f,origType:m,origHandler:f,preType:v})}):E.unbind(M(m,z),f)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});g.attachEvent&&!g.addEventListener&&g.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(i){for(var k="",q,t=0;i[t];t++){q=i[t];if(q.nodeType===3||q.nodeType===4)k+=q.nodeValue;else if(q.nodeType!==8)k+=a(q.childNodes)}return k}function b(i,k,q,t,x,w){x=0;for(var D=t.length;x<D;x++){var C=t[x];
if(C){C=C[i];for(var G=false;C;){if(C.sizcache===q){G=t[C.sizset];break}if(C.nodeType===1&&!w){C.sizcache=q;C.sizset=x}if(C.nodeName.toLowerCase()===k){G=C;break}C=C[i]}t[x]=G}}}function d(i,k,q,t,x,w){x=0;for(var D=t.length;x<D;x++){var C=t[x];if(C){C=C[i];for(var G=false;C;){if(C.sizcache===q){G=t[C.sizset];break}if(C.nodeType===1){if(!w){C.sizcache=q;C.sizset=x}if(typeof k!=="string"){if(C===k){G=true;break}}else if(r.filter(k,[C]).length>0){G=C;break}}C=C[i]}t[x]=G}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
f=0,l=Object.prototype.toString,m=false,u=true;[0,0].sort(function(){u=false;return 0});var r=function(i,k,q,t){q=q||[];var x=k=k||A;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!i||typeof i!=="string")return q;for(var w=[],D,C,G,da,T=true,X=F(k),U=i;(e.exec(""),D=e.exec(U))!==null;){U=D[3];w.push(D[1]);if(D[2]){da=D[3];break}}if(w.length>1&&z.exec(i))if(w.length===2&&v.relative[w[0]])C=ra(w[0]+w[1],k);else for(C=v.relative[w[0]]?[k]:r(w.shift(),k);w.length;){i=w.shift();if(v.relative[i])i+=w.shift();
C=ra(i,C)}else{if(!t&&w.length>1&&k.nodeType===9&&!X&&v.match.ID.test(w[0])&&!v.match.ID.test(w[w.length-1])){D=r.find(w.shift(),k,X);k=D.expr?r.filter(D.expr,D.set)[0]:D.set[0]}if(k){D=t?{expr:w.pop(),set:H(t)}:r.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&k.parentNode?k.parentNode:k,X);C=D.expr?r.filter(D.expr,D.set):D.set;if(w.length>0)G=H(C);else T=false;for(;w.length;){var O=w.pop();D=O;if(v.relative[O])D=w.pop();else O="";if(D==null)D=k;v.relative[O](G,D,X)}}else G=[]}G||(G=C);G||r.error(O||
i);if(l.call(G)==="[object Array]")if(T)if(k&&k.nodeType===1)for(i=0;G[i]!=null;i++){if(G[i]&&(G[i]===true||G[i].nodeType===1&&P(k,G[i])))q.push(C[i])}else for(i=0;G[i]!=null;i++)G[i]&&G[i].nodeType===1&&q.push(C[i]);else q.push.apply(q,G);else H(G,q);if(da){r(da,x,q,t);r.uniqueSort(q)}return q};r.uniqueSort=function(i){if(J){m=u;i.sort(J);if(m)for(var k=1;k<i.length;k++)i[k]===i[k-1]&&i.splice(k--,1)}return i};r.matches=function(i,k){return r(i,null,null,k)};r.find=function(i,k,q){var t,x;if(!i)return[];
for(var w=0,D=v.order.length;w<D;w++){var C=v.order[w];if(x=v.leftMatch[C].exec(i)){var G=x[1];x.splice(1,1);if(G.substr(G.length-1)!=="\\"){x[1]=(x[1]||"").replace(/\\/g,"");t=v.find[C](x,k,q);if(t!=null){i=i.replace(v.match[C],"");break}}}}t||(t=k.getElementsByTagName("*"));return{set:t,expr:i}};r.filter=function(i,k,q,t){for(var x=i,w=[],D=k,C,G,da=k&&k[0]&&F(k[0]);i&&k.length;){for(var T in v.filter)if((C=v.leftMatch[T].exec(i))!=null&&C[2]){var X=v.filter[T],U,O;O=C[1];G=false;C.splice(1,1);
if(O.substr(O.length-1)!=="\\"){if(D===w)w=[];if(v.preFilter[T])if(C=v.preFilter[T](C,D,q,w,t,da)){if(C===true)continue}else G=U=true;if(C)for(var ga=0;(O=D[ga])!=null;ga++)if(O){U=X(O,C,ga,D);var Ka=t^!!U;if(q&&U!=null)if(Ka)G=true;else D[ga]=false;else if(Ka){w.push(O);G=true}}if(U!==h){q||(D=w);i=i.replace(v.match[T],"");if(!G)return[];break}}}if(i===x)if(G==null)r.error(i);else break;x=i}return D};r.error=function(i){throw"Syntax error, unrecognized expression: "+i;};var v=r.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className",
"for":"htmlFor"},attrHandle:{href:function(i){return i.getAttribute("href")}},relative:{"+":function(i,k){var q=typeof k==="string",t=q&&!/\W/.test(k);q=q&&!t;if(t)k=k.toLowerCase();t=0;for(var x=i.length,w;t<x;t++)if(w=i[t]){for(;(w=w.previousSibling)&&w.nodeType!==1;);i[t]=q||w&&w.nodeName.toLowerCase()===k?w||false:w===k}q&&r.filter(k,i,true)},">":function(i,k){var q=typeof k==="string";if(q&&!/\W/.test(k)){k=k.toLowerCase();for(var t=0,x=i.length;t<x;t++){var w=i[t];if(w){q=w.parentNode;i[t]=
q.nodeName.toLowerCase()===k?q:false}}}else{t=0;for(x=i.length;t<x;t++)if(w=i[t])i[t]=q?w.parentNode:w.parentNode===k;q&&r.filter(k,i,true)}},"":function(i,k,q){var t=f++,x=d;if(typeof k==="string"&&!/\W/.test(k)){var w=k=k.toLowerCase();x=b}x("parentNode",k,t,i,w,q)},"~":function(i,k,q){var t=f++,x=d;if(typeof k==="string"&&!/\W/.test(k)){var w=k=k.toLowerCase();x=b}x("previousSibling",k,t,i,w,q)}},find:{ID:function(i,k,q){if(typeof k.getElementById!=="undefined"&&!q)return(i=k.getElementById(i[1]))?
[i]:[]},NAME:function(i,k){if(typeof k.getElementsByName!=="undefined"){var q=[];k=k.getElementsByName(i[1]);for(var t=0,x=k.length;t<x;t++)k[t].getAttribute("name")===i[1]&&q.push(k[t]);return q.length===0?null:q}},TAG:function(i,k){return k.getElementsByTagName(i[1])}},preFilter:{CLASS:function(i,k,q,t,x,w){i=" "+i[1].replace(/\\/g,"")+" ";if(w)return i;w=0;for(var D;(D=k[w])!=null;w++)if(D)if(x^(D.className&&(" "+D.className+" ").replace(/[\t\n]/g," ").indexOf(i)>=0))q||t.push(D);else if(q)k[w]=
false;return false},ID:function(i){return i[1].replace(/\\/g,"")},TAG:function(i){return i[1].toLowerCase()},CHILD:function(i){if(i[1]==="nth"){var k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(i[2]==="even"&&"2n"||i[2]==="odd"&&"2n+1"||!/\D/.test(i[2])&&"0n+"+i[2]||i[2]);i[2]=k[1]+(k[2]||1)-0;i[3]=k[3]-0}i[0]=f++;return i},ATTR:function(i,k,q,t,x,w){k=i[1].replace(/\\/g,"");if(!w&&v.attrMap[k])i[1]=v.attrMap[k];if(i[2]==="~=")i[4]=" "+i[4]+" ";return i},PSEUDO:function(i,k,q,t,x){if(i[1]==="not")if((e.exec(i[3])||
"").length>1||/^\w/.test(i[3]))i[3]=r(i[3],null,null,k);else{i=r.filter(i[3],k,q,true^x);q||t.push.apply(t,i);return false}else if(v.match.POS.test(i[0])||v.match.CHILD.test(i[0]))return true;return i},POS:function(i){i.unshift(true);return i}},filters:{enabled:function(i){return i.disabled===false&&i.type!=="hidden"},disabled:function(i){return i.disabled===true},checked:function(i){return i.checked===true},selected:function(i){return i.selected===true},parent:function(i){return!!i.firstChild},empty:function(i){return!i.firstChild},
has:function(i,k,q){return!!r(q[3],i).length},header:function(i){return/h\d/i.test(i.nodeName)},text:function(i){return"text"===i.type},radio:function(i){return"radio"===i.type},checkbox:function(i){return"checkbox"===i.type},file:function(i){return"file"===i.type},password:function(i){return"password"===i.type},submit:function(i){return"submit"===i.type},image:function(i){return"image"===i.type},reset:function(i){return"reset"===i.type},button:function(i){return"button"===i.type||i.nodeName.toLowerCase()===
"button"},input:function(i){return/input|select|textarea|button/i.test(i.nodeName)}},setFilters:{first:function(i,k){return k===0},last:function(i,k,q,t){return k===t.length-1},even:function(i,k){return k%2===0},odd:function(i,k){return k%2===1},lt:function(i,k,q){return k<q[3]-0},gt:function(i,k,q){return k>q[3]-0},nth:function(i,k,q){return q[3]-0===k},eq:function(i,k,q){return q[3]-0===k}},filter:{PSEUDO:function(i,k,q,t){var x=k[1],w=v.filters[x];if(w)return w(i,q,k,t);else if(x==="contains")return(i.textContent||
i.innerText||a([i])||"").indexOf(k[3])>=0;else if(x==="not"){k=k[3];q=0;for(t=k.length;q<t;q++)if(k[q]===i)return false;return true}else r.error("Syntax error, unrecognized expression: "+x)},CHILD:function(i,k){var q=k[1],t=i;switch(q){case "only":case "first":for(;t=t.previousSibling;)if(t.nodeType===1)return false;if(q==="first")return true;t=i;case "last":for(;t=t.nextSibling;)if(t.nodeType===1)return false;return true;case "nth":q=k[2];var x=k[3];if(q===1&&x===0)return true;k=k[0];var w=i.parentNode;
if(w&&(w.sizcache!==k||!i.nodeIndex)){var D=0;for(t=w.firstChild;t;t=t.nextSibling)if(t.nodeType===1)t.nodeIndex=++D;w.sizcache=k}i=i.nodeIndex-x;return q===0?i===0:i%q===0&&i/q>=0}},ID:function(i,k){return i.nodeType===1&&i.getAttribute("id")===k},TAG:function(i,k){return k==="*"&&i.nodeType===1||i.nodeName.toLowerCase()===k},CLASS:function(i,k){return(" "+(i.className||i.getAttribute("class"))+" ").indexOf(k)>-1},ATTR:function(i,k){var q=k[1];i=v.attrHandle[q]?v.attrHandle[q](i):i[q]!=null?i[q]:
i.getAttribute(q);q=i+"";var t=k[2];k=k[4];return i==null?t==="!=":t==="="?q===k:t==="*="?q.indexOf(k)>=0:t==="~="?(" "+q+" ").indexOf(k)>=0:!k?q&&i!==false:t==="!="?q!==k:t==="^="?q.indexOf(k)===0:t==="$="?q.substr(q.length-k.length)===k:t==="|="?q===k||q.substr(0,k.length+1)===k+"-":false},POS:function(i,k,q,t){var x=v.setFilters[k[2]];if(x)return x(i,q,k,t)}}},z=v.match.POS;for(var E in v.match){v.match[E]=RegExp(v.match[E].source+/(?![^\[]*\])(?![^\(]*\))/.source);v.leftMatch[E]=RegExp(/(^(?:.|\r|\n)*?)/.source+
v.match[E].source.replace(/\\(\d+)/g,function(i,k){return"\\"+(k-0+1)}))}var H=function(i,k){i=Array.prototype.slice.call(i,0);if(k){k.push.apply(k,i);return k}return i};try{Array.prototype.slice.call(A.documentElement.childNodes,0)}catch(K){H=function(i,k){k=k||[];if(l.call(i)==="[object Array]")Array.prototype.push.apply(k,i);else if(typeof i.length==="number")for(var q=0,t=i.length;q<t;q++)k.push(i[q]);else for(q=0;i[q];q++)k.push(i[q]);return k}}var J;if(A.documentElement.compareDocumentPosition)J=
function(i,k){if(!i.compareDocumentPosition||!k.compareDocumentPosition){if(i==k)m=true;return i.compareDocumentPosition?-1:1}i=i.compareDocumentPosition(k)&4?-1:i===k?0:1;if(i===0)m=true;return i};else if("sourceIndex"in A.documentElement)J=function(i,k){if(!i.sourceIndex||!k.sourceIndex){if(i==k)m=true;return i.sourceIndex?-1:1}i=i.sourceIndex-k.sourceIndex;if(i===0)m=true;return i};else if(A.createRange)J=function(i,k){if(!i.ownerDocument||!k.ownerDocument){if(i==k)m=true;return i.ownerDocument?
-1:1}var q=i.ownerDocument.createRange(),t=k.ownerDocument.createRange();q.setStart(i,0);q.setEnd(i,0);t.setStart(k,0);t.setEnd(k,0);i=q.compareBoundaryPoints(Range.START_TO_END,t);if(i===0)m=true;return i};(function(){var i=A.createElement("div"),k="script"+(new Date).getTime();i.innerHTML="<a name='"+k+"'/>";var q=A.documentElement;q.insertBefore(i,q.firstChild);if(A.getElementById(k)){v.find.ID=function(t,x,w){if(typeof x.getElementById!=="undefined"&&!w)return(x=x.getElementById(t[1]))?x.id===
t[1]||typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id").nodeValue===t[1]?[x]:h:[]};v.filter.ID=function(t,x){var w=typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id");return t.nodeType===1&&w&&w.nodeValue===x}}q.removeChild(i);q=i=null})();(function(){var i=A.createElement("div");i.appendChild(A.createComment(""));if(i.getElementsByTagName("*").length>0)v.find.TAG=function(k,q){q=q.getElementsByTagName(k[1]);if(k[1]==="*"){k=[];for(var t=0;q[t];t++)q[t].nodeType===1&&
k.push(q[t]);q=k}return q};i.innerHTML="<a href='#'></a>";if(i.firstChild&&typeof i.firstChild.getAttribute!=="undefined"&&i.firstChild.getAttribute("href")!=="#")v.attrHandle.href=function(k){return k.getAttribute("href",2)};i=null})();A.querySelectorAll&&function(){var i=r,k=A.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===0)){r=function(t,x,w,D){x=x||A;if(!D&&x.nodeType===9&&!F(x))try{return H(x.querySelectorAll(t),w)}catch(C){}return i(t,
x,w,D)};for(var q in i)r[q]=i[q];k=null}}();(function(){var i=A.createElement("div");i.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!i.getElementsByClassName||i.getElementsByClassName("e").length===0)){i.lastChild.className="e";if(i.getElementsByClassName("e").length!==1){v.order.splice(1,0,"CLASS");v.find.CLASS=function(k,q,t){if(typeof q.getElementsByClassName!=="undefined"&&!t)return q.getElementsByClassName(k[1])};i=null}}})();var P=A.compareDocumentPosition?function(i,
k){return!!(i.compareDocumentPosition(k)&16)}:function(i,k){return i!==k&&(i.contains?i.contains(k):true)},F=function(i){return(i=(i?i.ownerDocument||i:0).documentElement)?i.nodeName!=="HTML":false},ra=function(i,k){var q=[],t="",x;for(k=k.nodeType?[k]:k;x=v.match.PSEUDO.exec(i);){t+=x[0];i=i.replace(v.match.PSEUDO,"")}i=v.relative[i]?i+"*":i;x=0;for(var w=k.length;x<w;x++)r(i,k[x],q);return r.filter(t,q)};c.find=r;c.expr=r.selectors;c.expr[":"]=c.expr.filters;c.unique=r.uniqueSort;c.text=a;c.isXMLDoc=
F;c.contains=P})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,gb=/,/;ca=Array.prototype.slice;var La=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,l){return!!b.call(f,l,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Ua.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})};c.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var l=d;l<b.length;l++)for(var m=0;m<d;m++)if(b[m]===b[l]){b.splice(l--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(La(this,a,false),"not",a)},filter:function(a){return this.pushStack(La(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>
0},closest:function(a,b){if(c.isArray(a)){var d=[],e=this[0],f,l={},m;if(e&&a.length){f=0;for(var u=a.length;f<u;f++){m=a[f];l[m]||(l[m]=c.expr.match.POS.test(m)?c(m,b||this.context):m)}for(;e&&e.ownerDocument&&e!==b;){for(m in l){f=l[m];if(f.jquery?f.index(e)>-1:c(e).is(f)){d.push({selector:m,elem:e});delete l[m]}}e=e.parentNode}}return d}var r=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(v,z){for(;z&&z.ownerDocument&&z!==b;){if(r?r.index(z)>-1:c(z).is(a))return z;
z=z.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(!a[0]||!a[0].parentNode||a[0].parentNode.nodeType===11||!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=
a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,
a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);eb.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||gb.test(e))&&fb.test(a))f=f.reverse();return this.pushStack(f,a,ca.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,
b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===h||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ma=/ jQuery\d+="(?:\d+|null)"/g,ha=/^\s+/,Na=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Oa=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,
xa=/<script|<object|<embed|<option|<style/i,ya=/checked\s*(?:[^=]|=\s*.checked.)/i,Pa=function(a,b,d){return hb.test(d)?a:b+"></"+d+">"},Q={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,"",""]};Q.optgroup=Q.option;Q.tbody=Q.tfoot=
Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;if(!c.support.htmlSerialize)Q._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==h)return this.empty().append((this[0]&&this[0].ownerDocument||A).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,
"body")||c(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(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&
e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ma,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ha,
"")],e)[0]}else return this.cloneNode(true)});if(a===true){N(this,b);N(this.find("*"),b.find("*"))}return b},html:function(a){if(a===h)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ma,""):null;else if(typeof a==="string"&&!xa.test(a)&&(c.support.leadingWhitespace||!ha.test(a))&&!Q[(Oa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Na,Pa);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?
this.each(function(f){var l=c(this),m=l.html();l.empty().append(function(){return a.call(this,f,m)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?
a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,l=a[0],m=[],u;if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&ya.test(l))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(l))return this.each(function(v){var z=c(this);a[0]=l.call(this,v,b?z.html():h);z.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:L(a,this,
m);u=e.fragment;if(f=u.childNodes.length===1?u=u.firstChild:u.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var r=this.length;f<r;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||e.cacheable||this.length>1?u.cloneNode(true):u)}m.length&&c.each(m,o)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var 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{f=0;for(var l=d.length;f<l;f++){var m=(f>0?this.clone(true):this).get();c.fn[b].apply(c(d[f]),m);e=e.concat(m)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||A;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||A;for(var f=[],l=0,m;(m=a[l])!=null;l++){if(typeof m===
"number")m+="";if(m){if(typeof m==="string"&&!jb.test(m))m=b.createTextNode(m);else if(typeof m==="string"){m=m.replace(Na,Pa);var u=(Oa.exec(m)||["",""])[1].toLowerCase(),r=Q[u]||Q._default,v=r[0],z=b.createElement("div");for(z.innerHTML=r[1]+m+r[2];v--;)z=z.lastChild;if(!c.support.tbody){v=ib.test(m);u=u==="table"&&!v?z.firstChild&&z.firstChild.childNodes:r[1]==="<table>"&&!v?z.childNodes:[];for(r=u.length-1;r>=0;--r)c.nodeName(u[r],"tbody")&&!u[r].childNodes.length&&u[r].parentNode.removeChild(u[r])}!c.support.leadingWhitespace&&
ha.test(m)&&z.insertBefore(b.createTextNode(ha.exec(m)[0]),z.firstChild);m=z.childNodes}if(m.nodeType)f.push(m);else f=c.merge(f,m)}}if(d)for(l=0;f[l];l++)if(e&&c.nodeName(f[l],"script")&&(!f[l].type||f[l].type.toLowerCase()==="text/javascript"))e.push(f[l].parentNode?f[l].parentNode.removeChild(f[l]):f[l]);else{f[l].nodeType===1&&f.splice.apply(f,[l+1,0].concat(c.makeArray(f[l].getElementsByTagName("script"))));d.appendChild(f[l])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,
l=c.support.deleteExpando,m=0,u;(u=a[m])!=null;m++)if(d=u[c.expando]){b=e[d];if(b.events)for(var r in b.events)f[r]?c.event.remove(u,r):Fa(u,r,b.handle);if(l)delete u[c.expando];else u.removeAttribute&&u.removeAttribute(c.expando);delete e[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Qa=/alpha\([^)]*\)/,Ra=/opacity=([^)]*)/,sa=/float/i,ta=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],
qb=["Top","Bottom"],rb=A.defaultView&&A.defaultView.getComputedStyle,Sa=c.support.cssFloat?"cssFloat":"styleFloat",ua=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return p(this,a,b,true,function(d,e,f){if(f===h)return c.curCSS(d,e);if(typeof f==="number"&&!kb.test(e))f+="px";c.style(d,e,f)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return h;if((b==="width"||b==="height")&&parseFloat(d)<0)d=h;var e=a.style||a,f=d!==h;if(!c.support.opacity&&b==="opacity"){if(f){e.zoom=
1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=e.filter||c.curCSS(a,"filter")||"";e.filter=Qa.test(a)?a.replace(Qa,b):b}return e.filter&&e.filter.indexOf("opacity=")>=0?parseFloat(Ra.exec(e.filter)[1])/100+"":""}if(sa.test(b))b=Sa;b=b.replace(ta,ua);if(f)e[b]=d;return e[b]},css:function(a,b,d,e){if(b==="width"||b==="height"){var f,l=b==="width"?pb:qb;d=function(){f=b==="width"?a.offsetWidth:a.offsetHeight;e!=="border"&&c.each(l,function(){e||(f-=parseFloat(c.curCSS(a,"padding"+this,
true))||0);if(e==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?d():c.swap(a,ob,d);return Math.max(0,Math.round(f))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var e,f=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){e=Ra.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return e===""?"1":e}if(sa.test(b))b=Sa;if(!d&&f&&f[b])e=f[b];else if(rb){if(sa.test(b))b="float";b=b.replace(lb,
"-$1").toLowerCase();f=a.ownerDocument.defaultView;if(!f)return null;if(a=f.getComputedStyle(a,null))e=a.getPropertyValue(b);if(b==="opacity"&&e==="")e="1"}else if(a.currentStyle){d=b.replace(ta,ua);e=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(e)&&nb.test(e)){b=f.left;var l=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=d==="fontSize"?"1em":e||0;e=f.pixelLeft+"px";f.left=b;a.runtimeStyle.left=l}}return e},swap:function(a,b,d){var e={};for(var f in b){e[f]=a.style[f];a.style[f]=
b[f]}d.call(a);for(f in b)a.style[f]=e[f]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,e=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!e?true:b>0&&d>0&&!e?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=n(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Y=/=\?(&|$)/,va=
/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return zb.call(this,a);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var l=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(m,u){if(u==="success"||u==="notmodified")l.html(f?
c("<div />").append(m.responseText.replace(tb,"")).find(f):m.responseText);d&&l.each(d,[m.responseText,u,m])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,
value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",
url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:g.XMLHttpRequest&&(g.location.protocol!=="file:"||!g.ActiveXObject)?function(){return new g.XMLHttpRequest}:function(){try{return new g.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){f.success&&f.success.call(r,u,m,F);f.global&&e("ajaxSuccess",[F,f])}function d(){f.complete&&f.complete.call(r,F,m);f.global&&e("ajaxComplete",[F,f]);f.global&&!--c.active&&c.event.trigger("ajaxStop")}function e(x,w){(f.context?c(f.context):c.event).trigger(x,w)}var f=c.extend(true,{},c.ajaxSettings,a),l,m,u,r=a&&a.context||f,v=f.type.toUpperCase();if(f.data&&f.processData&&
typeof f.data!=="string")f.data=c.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(v==="GET")Y.test(f.url)||(f.url+=(va.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||!Y.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&Y.test(f.data)||Y.test(f.url))){l=f.jsonpCallback||"jsonp"+sb++;if(f.data)f.data=(f.data+"").replace(Y,"="+l+"$1");f.url=f.url.replace(Y,"="+l+"$1");f.dataType="script";g[l]=g[l]||function(x){u=
x;b();d();g[l]=h;try{delete g[l]}catch(w){}H&&H.removeChild(K)}}if(f.dataType==="script"&&f.cache===null)f.cache=false;if(f.cache===false&&v==="GET"){var z=n(),E=f.url.replace(wb,"$1_="+z+"$2");f.url=E+(E===f.url?(va.test(f.url)?"&":"?")+"_="+z:"")}if(f.data&&v==="GET")f.url+=(va.test(f.url)?"&":"?")+f.data;f.global&&!c.active++&&c.event.trigger("ajaxStart");z=(z=xb.exec(f.url))&&(z[1]&&z[1]!==location.protocol||z[2]!==location.host);if(f.dataType==="script"&&v==="GET"&&z){var H=A.getElementsByTagName("head")[0]||
A.documentElement,K=A.createElement("script");K.src=f.url;if(f.scriptCharset)K.charset=f.scriptCharset;if(!l){var J=false;K.onload=K.onreadystatechange=function(){if(!J&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){J=true;b();d();K.onload=K.onreadystatechange=null;H&&K.parentNode&&H.removeChild(K)}}}H.insertBefore(K,H.firstChild);return h}var P=false,F=f.xhr();if(F){f.username?F.open(v,f.url,f.async,f.username,f.password):F.open(v,f.url,f.async);try{if(f.data||a&&
a.contentType)F.setRequestHeader("Content-Type",f.contentType);if(f.ifModified){c.lastModified[f.url]&&F.setRequestHeader("If-Modified-Since",c.lastModified[f.url]);c.etag[f.url]&&F.setRequestHeader("If-None-Match",c.etag[f.url])}z||F.setRequestHeader("X-Requested-With","XMLHttpRequest");F.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(ra){}if(f.beforeSend&&f.beforeSend.call(r,F,f)===false){f.global&&!--c.active&&c.event.trigger("ajaxStop");
F.abort();return false}f.global&&e("ajaxSend",[F,f]);var i=F.onreadystatechange=function(x){if(!F||F.readyState===0||x==="abort"){P||d();P=true;if(F)F.onreadystatechange=c.noop}else if(!P&&F&&(F.readyState===4||x==="timeout")){P=true;F.onreadystatechange=c.noop;m=x==="timeout"?"timeout":!c.httpSuccess(F)?"error":f.ifModified&&c.httpNotModified(F,f.url)?"notmodified":"success";var w;if(m==="success")try{u=c.httpData(F,f.dataType,f)}catch(D){m="parsererror";w=D}if(m==="success"||m==="notmodified")l||
b();else c.handleError(f,F,m,w);d();x==="timeout"&&F.abort();if(f.async)F=null}};try{var k=F.abort;F.abort=function(){F&&k.call(F);i("abort")}}catch(q){}f.async&&f.timeout>0&&setTimeout(function(){F&&!P&&i("timeout")},f.timeout);try{F.send(v==="POST"||v==="PUT"||v==="DELETE"?f.data:null)}catch(t){c.handleError(f,F,null,t);d()}f.async||i();return F}},handleError:function(a,b,d,e){if(a.error)a.error.call(a.context||a,b,d,e);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,e])},
active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304||a.status===0},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;
f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(m,u){if(c.isArray(u))c.each(u,function(r,v){b||/\[\]$/.test(m)?e(m,v):d(m+"["+(typeof v==="object"||c.isArray(v)?r:"")+"]",v)});else!b&&u!=null&&typeof u==="object"?c.each(u,function(r,v){d(m+"["+r+"]",
v)}):e(m,u)}function e(m,u){u=c.isFunction(u)?u():u;f[f.length]=encodeURIComponent(m)+"="+encodeURIComponent(u)}var f=[];if(b===h)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var l in a)d(l,a[l]);return f.join("&").replace(yb,"+")}});var wa={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,ia,za=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(R("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var e;if(wa[d])e=wa[d];else{var f=c("<"+d+" />").appendTo("body");e=f.css("display");if(e==="none")e="block";f.remove();wa[d]=e}c.data(this[a],"olddisplay",e)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},
hide:function(a,b){if(a||a===0)return this.animate(R("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var e=d?a:c(this).is(":hidden");c(this)[e?"show":
"hide"]()}):this.animate(R("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var l=c.extend({},f),m,u=this.nodeType===1&&c(this).is(":hidden"),r=this;for(m in a){var v=m.replace(ta,ua);if(m!==v){a[v]=a[m];delete a[m];m=v}if(a[m]==="hide"&&u||a[m]==="show"&&!u)return l.complete.call(this);
if((m==="height"||m==="width")&&this.style){l.display=c.css(this,"display");l.overflow=this.style.overflow}if(c.isArray(a[m])){(l.specialEasing=l.specialEasing||{})[m]=a[m][1];a[m]=a[m][0]}}if(l.overflow!=null)this.style.overflow="hidden";l.curAnim=c.extend({},a);c.each(a,function(z,E){var H=new c.fx(r,l,z);if(Ab.test(E))H[E==="toggle"?u?"show":"hide":E](a);else{var K=Bb.exec(E),J=H.cur(true)||0;if(K){E=parseFloat(K[2]);var P=K[3]||"px";if(P!=="px"){r.style[z]=(E||1)+P;J=(E||1)/H.cur(true)*J;r.style[z]=
J+P}if(K[1])E=(K[1]==="-="?-1:1)*E+J;H.custom(J,E,P)}else H.custom(J,E,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:R("show",1),slideUp:R("hide",1),slideToggle:R("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e){return this.animate(b,d,e)}});c.extend({speed:function(a,b,
d){var e=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:c.fx.speeds[e.duration]||c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=
b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,
this.prop))||0},custom:function(a,b,d){function e(l){return f.step(l)}this.startTime=n();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ia)ia=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=n(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)c.style(this.elem,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=b-this.startTime;this.state=f/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,f,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(ia);ia=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.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(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in A.documentElement?function(a){var b=this[0];if(a)return this.each(function(f){c.offset.setOffset(this,a,f)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),e=b.ownerDocument;b=e.body;e=e.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&
e.scrollTop||b.scrollTop)-(e.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&e.scrollLeft||b.scrollLeft)-(e.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(z){c.offset.setOffset(this,a,z)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b,f=b.ownerDocument,l,m=f.documentElement,u=f.body;e=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
for(var r=b.offsetTop,v=b.offsetLeft;(b=b.parentNode)&&b!==u&&b!==m;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;l=f?f.getComputedStyle(b,null):b.currentStyle;r-=b.scrollTop;v-=b.scrollLeft;if(b===d){r+=b.offsetTop;v+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){r+=parseFloat(l.borderTopWidth)||0;v+=parseFloat(l.borderLeftWidth)||0}e=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&l.overflow!==
"visible"){r+=parseFloat(l.borderTopWidth)||0;v+=parseFloat(l.borderLeftWidth)||0}e=l}if(e.position==="relative"||e.position==="static"){r+=u.offsetTop;v+=u.offsetLeft}if(c.offset.supportsFixedPosition&&e.position==="fixed"){r+=Math.max(m.scrollTop,u.scrollTop);v+=Math.max(m.scrollLeft,u.scrollLeft)}return{top:r,left:v}};c.offset={initialize:function(){var a=A.body,b=A.createElement("div"),d,e,f,l=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==l;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,
"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var e=c(a),f=e.offset(),l=parseInt(c.curCSS(a,"top",true),10)||0,m=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,f);d={top:b.top-f.top+l,left:b.left-f.left+m};"using"in b?b.using.call(a,d):e.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),
d=this.offset(),e=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;e.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;e.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||A.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=
a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],l;if(!f)return null;return e!==h?this.each(function(){if(l=V(this))l.scrollTo(!a?e:c(l).scrollLeft(),a?e:c(l).scrollTop());else this[d]=e}):(l=V(f))?"pageXOffset"in l?l[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&l.document.documentElement[d]||l.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],
d,false,"padding"):null};c.fn["outer"+b]=function(e){return this[0]?c.css(this[0],d,false,e?"margin":"border"):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var m=c(this);m[d](e.call(this,l,m[d]()))});return"scrollTo"in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+
b],f.body["offset"+b],f.documentElement["offset"+b]):e===h?c.css(f,d):this.css(d,typeof e==="string"?e:e+"px")}});g.jQuery=g.$=c})(window);
jQuery.ui||function(g){g.ui={version:"1.8",plugin:{add:function(h,j,o){h=g.ui[h].prototype;for(var p in o){h.plugins[p]=h.plugins[p]||[];h.plugins[p].push([j,o[p]])}},call:function(h,j,o){if((j=h.plugins[j])&&h.element[0].parentNode)for(var p=0;p<j.length;p++)h.options[j[p][0]]&&j[p][1].apply(h.element,o)}},contains:function(h,j){return document.compareDocumentPosition?h.compareDocumentPosition(j)&16:h!==j&&h.contains(j)},hasScroll:function(h,j){if(g(h).css("overflow")=="hidden")return false;var o=
j&&j=="left"?"scrollLeft":"scrollTop",p=false;if(h[o]>0)return true;h[o]=1;p=h[o]>0;h[o]=0;return p},isOverAxis:function(h,j,o){return h>j&&h<j+o},isOver:function(h,j,o,p,n,s){return g.ui.isOverAxis(h,o,n)&&g.ui.isOverAxis(j,p,s)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,
SHIFT:16,SPACE:32,TAB:9,UP:38}};g.fn.extend({_focus:g.fn.focus,focus:function(h,j){return typeof h==="number"?this.each(function(){var o=this;setTimeout(function(){g(o).focus();j&&j.call(o)},h)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var h;
h=g.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(g.curCSS(this,"position",1))&&/(auto|scroll)/.test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||
!h.length?g(document):h},zIndex:function(h){if(h!==undefined)return this.css("zIndex",h);if(this.length){h=g(this[0]);for(var j;h.length&&h[0]!==document;){j=h.css("position");if(j=="absolute"||j=="relative"||j=="fixed"){j=parseInt(h.css("zIndex"));if(!isNaN(j)&&j!=0)return j}h=h.parent()}}return 0}});g.extend(g.expr[":"],{data:function(h,j,o){return!!g.data(h,o[3])},focusable:function(h){var j=h.nodeName.toLowerCase(),o=g.attr(h,"tabindex");return(/input|select|textarea|button|object/.test(j)?!h.disabled:
"a"==j||"area"==j?h.href||!isNaN(o):!isNaN(o))&&!g(h)["area"==j?"parents":"closest"](":hidden").length},tabbable:function(h){var j=g.attr(h,"tabindex");return(isNaN(j)||j>=0)&&g(h).is(":focusable")}})}(jQuery);
(function(g){var h=g.fn.remove;g.fn.remove=function(j,o){return this.each(function(){if(!o)if(!j||g.filter(j,[this]).length)g("*",this).add(this).each(function(){g(this).triggerHandler("remove")});return h.call(g(this),j,o)})};g.widget=function(j,o,p){var n=j.split(".")[0],s;j=j.split(".")[1];s=n+"-"+j;if(!p){p=o;o=g.Widget}g.expr[":"][s]=function(y){return!!g.data(y,j)};g[n]=g[n]||{};g[n][j]=function(y,B){arguments.length&&this._createWidget(y,B)};o=new o;o.options=g.extend({},o.options);g[n][j].prototype=
g.extend(true,o,{namespace:n,widgetName:j,widgetEventPrefix:g[n][j].prototype.widgetEventPrefix||j,widgetBaseClass:s},p);g.widget.bridge(j,g[n][j])};g.widget.bridge=function(j,o){g.fn[j]=function(p){var n=typeof p==="string",s=Array.prototype.slice.call(arguments,1),y=this;p=!n&&s.length?g.extend.apply(null,[true,p].concat(s)):p;if(n&&p.substring(0,1)==="_")return y;n?this.each(function(){var B=g.data(this,j),I=B&&g.isFunction(B[p])?B[p].apply(B,s):B;if(I!==B&&I!==undefined){y=I;return false}}):this.each(function(){var B=
g.data(this,j);if(B){p&&B.option(p);B._init()}else g.data(this,j,new o(p,this))});return y}};g.Widget=function(j,o){arguments.length&&this._createWidget(j,o)};g.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(j,o){this.element=g(o).data(this.widgetName,this);this.options=g.extend(true,{},this.options,g.metadata&&g.metadata.get(o)[this.widgetName],j);var p=this;this.element.bind("remove."+this.widgetName,function(){p.destroy()});this._create();
this._init()},_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 "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(j,o){var p=j,n=this;if(arguments.length===0)return g.extend({},n.options);if(typeof j==="string"){if(o===undefined)return this.options[j];p={};p[j]=o}g.each(p,
function(s,y){n._setOption(s,y)});return n},_setOption:function(j,o){this.options[j]=o;if(j==="disabled")this.widget()[o?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",o);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(j,o,p){var n=this.options[j];o=g.Event(o);o.type=(j===this.widgetEventPrefix?j:this.widgetEventPrefix+j).toLowerCase();
p=p||{};if(o.originalEvent){j=g.event.props.length;for(var s;j;){s=g.event.props[--j];o[s]=o.originalEvent[s]}}this.element.trigger(o,p);return!(g.isFunction(n)&&n.call(this.element[0],o,p)===false||o.isDefaultPrevented())}}})(jQuery);
(function(g){g.ui=g.ui||{};var h=/left|center|right/,j=/top|center|bottom/,o=g.fn.position,p=g.fn.offset;g.fn.position=function(n){if(!n||!n.of)return o.apply(this,arguments);n=g.extend({},n);var s=g(n.of),y=(n.collision||"flip").split(" "),B=n.offset?n.offset.split(" "):[0,0],I,M,N;if(n.of.nodeType===9){I=s.width();M=s.height();N={top:0,left:0}}else if(n.of.scrollTo&&n.of.document){I=s.width();M=s.height();N={top:s.scrollTop(),left:s.scrollLeft()}}else if(n.of.preventDefault){n.at="left top";I=M=
0;N={top:n.of.pageY,left:n.of.pageX}}else{I=s.outerWidth();M=s.outerHeight();N=s.offset()}g.each(["my","at"],function(){var L=(n[this]||"").split(" ");if(L.length===1)L=h.test(L[0])?L.concat(["center"]):j.test(L[0])?["center"].concat(L):["center","center"];L[0]=h.test(L[0])?L[0]:"center";L[1]=j.test(L[1])?L[1]:"center";n[this]=L});if(y.length===1)y[1]=y[0];B[0]=parseInt(B[0],10)||0;if(B.length===1)B[1]=B[0];B[1]=parseInt(B[1],10)||0;if(n.at[0]==="right")N.left+=I;else if(n.at[0]==="center")N.left+=
I/2;if(n.at[1]==="bottom")N.top+=M;else if(n.at[1]==="center")N.top+=M/2;N.left+=B[0];N.top+=B[1];return this.each(function(){var L=g(this),R=L.outerWidth(),V=L.outerHeight(),c=g.extend({},N);if(n.my[0]==="right")c.left-=R;else if(n.my[0]==="center")c.left-=R/2;if(n.my[1]==="bottom")c.top-=V;else if(n.my[1]==="center")c.top-=V/2;g.each(["left","top"],function(ea,ja){g.ui.position[y[ea]]&&g.ui.position[y[ea]][ja](c,{targetWidth:I,targetHeight:M,elemWidth:R,elemHeight:V,offset:B,my:n.my,at:n.at})});
g.fn.bgiframe&&L.bgiframe();L.offset(g.extend(c,{using:n.using}))})};g.ui.position={fit:{left:function(n,s){var y=g(window);y=n.left+s.elemWidth-y.width()-y.scrollLeft();n.left=y>0?n.left-y:Math.max(0,n.left)},top:function(n,s){var y=g(window);y=n.top+s.elemHeight-y.height()-y.scrollTop();n.top=y>0?n.top-y:Math.max(0,n.top)}},flip:{left:function(n,s){if(s.at[0]!=="center"){var y=g(window);y=n.left+s.elemWidth-y.width()-y.scrollLeft();var B=s.my[0]==="left"?-s.elemWidth:s.my[0]==="right"?s.elemWidth:
0,I=-2*s.offset[0];n.left+=n.left<0?B+s.targetWidth+I:y>0?B-s.targetWidth+I:0}},top:function(n,s){if(s.at[1]!=="center"){var y=g(window);y=n.top+s.elemHeight-y.height()-y.scrollTop();var B=s.my[1]==="top"?-s.elemHeight:s.my[1]==="bottom"?s.elemHeight:0,I=s.at[1]==="top"?s.targetHeight:-s.targetHeight,M=-2*s.offset[1];n.top+=n.top<0?B+s.targetHeight+M:y>0?B+I+M:0}}}};if(!g.offset.setOffset){g.offset.setOffset=function(n,s){if(/static/.test(g.curCSS(n,"position")))n.style.position="relative";var y=
g(n),B=y.offset(),I=parseInt(g.curCSS(n,"top",true),10)||0,M=parseInt(g.curCSS(n,"left",true),10)||0;B={top:s.top-B.top+I,left:s.left-B.left+M};"using"in s?s.using.call(n,B):y.css(B)};g.fn.offset=function(n){var s=this[0];if(!s||!s.ownerDocument)return null;if(n)return this.each(function(){g.offset.setOffset(this,n)});return p.call(this)}}})(jQuery);
(function(g){var h,j=function(p){g(":ui-button",p.target.form).each(function(){var n=g(this).data("button");setTimeout(function(){n.refresh()},1)})},o=function(p){var n=p.name,s=p.form,y=g([]);if(n)y=s?g(s).find("[name='"+n+"']"):g("[name='"+n+"']",p.ownerDocument).filter(function(){return!this.form});return y};g.widget("ui.button",{options:{text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",j);this._determineButtonType();
this.hasTitle=!!this.buttonElement.attr("title");var p=this,n=this.options,s=this.type==="checkbox"||this.type==="radio",y="ui-state-hover"+(!s?" ui-state-active":"");if(n.label===null)n.label=this.buttonElement.html();if(this.element.is(":disabled"))n.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!n.disabled){g(this).addClass("ui-state-hover");this===h&&g(this).addClass("ui-state-active")}}).bind("mouseleave.button",
function(){n.disabled||g(this).removeClass(y)}).bind("focus.button",function(){g(this).addClass("ui-state-focus")}).bind("blur.button",function(){g(this).removeClass("ui-state-focus")});s&&this.element.bind("change.button",function(){p.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(n.disabled)return false;g(this).toggleClass("ui-state-active");p.buttonElement.attr("aria-pressed",p.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",
function(){if(n.disabled)return false;g(this).addClass("ui-state-active");p.buttonElement.attr("aria-pressed",true);var B=p.element[0];o(B).not(B).map(function(){return g(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(n.disabled)return false;g(this).addClass("ui-state-active");h=this;g(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(n.disabled)return false;g(this).removeClass("ui-state-active")}).bind("keydown.button",
function(B){if(n.disabled)return false;if(B.keyCode==g.ui.keyCode.SPACE||B.keyCode==g.ui.keyCode.ENTER)g(this).addClass("ui-state-active")}).bind("keyup.button",function(){g(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(B){B.keyCode===g.ui.keyCode.SPACE&&g(this).click()})}this._setOption("disabled",n.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?
"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var p=this.element.is(":checked");p&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",p)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
this.hasTitle||this.buttonElement.removeAttr("title");g.Widget.prototype.destroy.call(this)},_setOption:function(p,n){g.Widget.prototype._setOption.apply(this,arguments);if(p==="disabled")n?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var p=this.element.is(":disabled");p!==this.options.disabled&&this._setOption("disabled",p);if(this.type==="radio")o(this.element[0]).each(function(){g(this).is(":checked")?g(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
true):g(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var p=this.buttonElement,n=g("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(p.empty()).text(),
s=this.options.icons,y=s.primary&&s.secondary;if(s.primary||s.secondary){p.addClass("ui-button-text-icon"+(y?"s":""));s.primary&&p.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>");s.secondary&&p.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>");if(!this.options.text){p.addClass(y?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon");this.hasTitle||p.attr("title",n)}}else p.addClass("ui-button-text-only")}}});
g.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(p,n){p==="disabled"&&this.buttons.button("option",p,n);g.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return g(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},
destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return g(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");g.Widget.prototype.destroy.call(this)}})})(jQuery);
(function(g){g.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:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var h=this,j=h.options,o=j.title||h.originalTitle||"&#160;",p=g.ui.dialog.getTitleId(h.element),n=(h.uiDialog=g("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
j.dialogClass).css({zIndex:j.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(B){if(j.closeOnEscape&&B.keyCode&&B.keyCode===g.ui.keyCode.ESCAPE){h.close(B);B.preventDefault()}}).attr({role:"dialog","aria-labelledby":p}).mousedown(function(B){h.moveToTop(false,B)});h.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n);var s=(h.uiDialogTitlebar=g("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),
y=g('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){y.addClass("ui-state-hover")},function(){y.removeClass("ui-state-hover")}).focus(function(){y.addClass("ui-state-focus")}).blur(function(){y.removeClass("ui-state-focus")}).click(function(B){h.close(B);return false}).appendTo(s);(h.uiDialogTitlebarCloseText=g("<span></span>")).addClass("ui-icon ui-icon-closethick").text(j.closeText).appendTo(y);g("<span></span>").addClass("ui-dialog-title").attr("id",
p).html(o).prependTo(s);if(g.isFunction(j.beforeclose)&&!g.isFunction(j.beforeClose))j.beforeClose=j.beforeclose;s.find("*").add(s).disableSelection();j.draggable&&g.fn.draggable&&h._makeDraggable();j.resizable&&g.fn.resizable&&h._makeResizable();h._createButtons(j.buttons);h._isOpen=false;g.fn.bgiframe&&n.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(h){var j=this,o;if(false!==j._trigger("beforeClose",h)){j.overlay&&j.overlay.destroy();j.uiDialog.unbind("keypress.ui-dialog");j._isOpen=false;if(j.options.hide)j.uiDialog.hide(j.options.hide,function(){j._trigger("close",h)});else{j.uiDialog.hide();j._trigger("close",h)}g.ui.dialog.overlay.resize();if(j.options.modal){o=0;g(".ui-dialog").each(function(){if(this!==
j.uiDialog[0])o=Math.max(o,g(this).css("z-index"))});g.ui.dialog.maxZ=o}return j}},isOpen:function(){return this._isOpen},moveToTop:function(h,j){var o=this.options;if(o.modal&&!h||!o.stack&&!o.modal)return this._trigger("focus",j);if(o.zIndex>g.ui.dialog.maxZ)g.ui.dialog.maxZ=o.zIndex;if(this.overlay){g.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",g.ui.dialog.overlay.maxZ=g.ui.dialog.maxZ)}o={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};g.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",g.ui.dialog.maxZ);this.element.attr(o);this._trigger("focus",j);return this},open:function(){if(!this._isOpen){var h=this.options,j=this.uiDialog;this.overlay=h.modal?new g.ui.dialog.overlay(this):null;j.next().length&&j.appendTo("body");this._size();this._position(h.position);j.show(h.show);this.moveToTop(true);h.modal&&j.bind("keypress.ui-dialog",function(o){if(o.keyCode===g.ui.keyCode.TAB){var p=g(":tabbable",this),n=p.filter(":first");p=p.filter(":last");if(o.target===
p[0]&&!o.shiftKey){n.focus(1);return false}else if(o.target===n[0]&&o.shiftKey){p.focus(1);return false}}});g([]).add(j.find(".ui-dialog-content :tabbable:first")).add(j.find(".ui-dialog-buttonpane :tabbable:first")).add(j).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(h){var j=this,o=false,p=g("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");j.uiDialog.find(".ui-dialog-buttonpane").remove();typeof h==="object"&&
h!==null&&g.each(h,function(){return!(o=true)});if(o){g.each(h,function(n,s){var y=g('<button type="button"></button>').text(n).click(function(){s.apply(j.element[0],arguments)}).appendTo(p);g.fn.button&&y.button()});p.appendTo(j.uiDialog)}},_makeDraggable:function(){function h(s){return{position:s.position,offset:s.offset}}var j=this,o=j.options,p=g(document),n;j.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,
y){n=o.height==="auto"?"auto":g(this).height();g(this).height(g(this).height()).addClass("ui-dialog-dragging");j._trigger("dragStart",s,h(y))},drag:function(s,y){j._trigger("drag",s,h(y))},stop:function(s,y){o.position=[y.position.left-p.scrollLeft(),y.position.top-p.scrollTop()];g(this).removeClass("ui-dialog-dragging").height(n);j._trigger("dragStop",s,h(y));g.ui.dialog.overlay.resize()}})},_makeResizable:function(h){function j(s){return{originalPosition:s.originalPosition,originalSize:s.originalSize,
position:s.position,size:s.size}}h=h===undefined?this.options.resizable:h;var o=this,p=o.options,n=o.uiDialog.css("position");h=typeof h==="string"?h:"n,e,s,w,se,sw,ne,nw";o.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:o.element,maxWidth:p.maxWidth,maxHeight:p.maxHeight,minWidth:p.minWidth,minHeight:o._minHeight(),handles:h,start:function(s,y){g(this).addClass("ui-dialog-resizing");o._trigger("resizeStart",s,j(y))},resize:function(s,y){o._trigger("resize",s,j(y))},
stop:function(s,y){g(this).removeClass("ui-dialog-resizing");p.height=g(this).height();p.width=g(this).width();o._trigger("resizeStop",s,j(y));g.ui.dialog.overlay.resize()}}).css("position",n).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var h=this.options;return h.height==="auto"?h.minHeight:Math.min(h.minHeight,h.height)},_position:function(h){var j=[],o=[0,0];h=h||g.ui.dialog.prototype.options.position;if(typeof h==="string"||typeof h==="object"&&
"0"in h){j=h.split?h.split(" "):[h[0],h[1]];if(j.length===1)j[1]=j[0];g.each(["left","top"],function(p,n){if(+j[p]===j[p]){o[p]=j[p];j[p]=n}})}else if(typeof h==="object"){if("left"in h){j[0]="left";o[0]=h.left}else if("right"in h){j[0]="right";o[0]=-h.right}if("top"in h){j[1]="top";o[1]=h.top}else if("bottom"in h){j[1]="bottom";o[1]=-h.bottom}}(h=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:j.join(" "),at:j.join(" "),offset:o.join(" "),of:window,
collision:"fit",using:function(p){var n=g(this).css(p).offset().top;n<0&&g(this).css("top",p.top-n)}});h||this.uiDialog.hide()},_setOption:function(h,j){var o=this.uiDialog,p=o.is(":data(resizable)"),n=false;switch(h){case "beforeclose":h="beforeClose";break;case "buttons":this._createButtons(j);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+j);break;case "dialogClass":o.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+j);break;case "disabled":j?
o.addClass("ui-dialog-disabled"):o.removeClass("ui-dialog-disabled");break;case "draggable":j?this._makeDraggable():o.draggable("destroy");break;case "height":n=true;break;case "maxHeight":p&&o.resizable("option","maxHeight",j);n=true;break;case "maxWidth":p&&o.resizable("option","maxWidth",j);n=true;break;case "minHeight":p&&o.resizable("option","minHeight",j);n=true;break;case "minWidth":p&&o.resizable("option","minWidth",j);n=true;break;case "position":this._position(j);break;case "resizable":p&&
!j&&o.resizable("destroy");p&&typeof j==="string"&&o.resizable("option","handles",j);!p&&j!==false&&this._makeResizable(j);break;case "title":g(".ui-dialog-title",this.uiDialogTitlebar).html(""+(j||"&#160;"));break;case "width":n=true;break}g.Widget.prototype._setOption.apply(this,arguments);n&&this._size()},_size:function(){var h=this.options,j;this.element.css("width","auto").hide();j=this.uiDialog.css({height:"auto",width:h.width}).height();this.element.css(h.height==="auto"?{minHeight:Math.max(h.minHeight-
j,0),height:"auto"}:{minHeight:0,height:Math.max(h.height-j,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});g.extend(g.ui.dialog,{version:"1.8",uuid:0,maxZ:0,getTitleId:function(h){h=h.attr("id");if(!h){this.uuid+=1;h=this.uuid}return"ui-dialog-title-"+h},overlay:function(h){this.$el=g.ui.dialog.overlay.create(h)}});g.extend(g.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:g.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(h){return h+".dialog-overlay"}).join(" "),create:function(h){if(this.instances.length===0){setTimeout(function(){g.ui.dialog.overlay.instances.length&&g(document).bind(g.ui.dialog.overlay.events,function(o){return g(o.target).zIndex()>=g.ui.dialog.overlay.maxZ})},1);g(document).bind("keydown.dialog-overlay",function(o){if(h.options.closeOnEscape&&o.keyCode&&o.keyCode===g.ui.keyCode.ESCAPE){h.close(o);o.preventDefault()}});g(window).bind("resize.dialog-overlay",g.ui.dialog.overlay.resize)}var j=
(this.oldInstances.pop()||g("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});g.fn.bgiframe&&j.bgiframe();this.instances.push(j);return j},destroy:function(h){this.oldInstances.push(this.instances.splice(g.inArray(h,this.instances),1)[0]);this.instances.length===0&&g([document,window]).unbind(".dialog-overlay");h.remove();var j=0;g.each(this.instances,function(){j=Math.max(j,this.css("z-index"))});this.maxZ=j},height:function(){var h,
j;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);j=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return h<j?g(window).height()+"px":h+"px"}else return g(document).height()+"px"},width:function(){var h,j;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);j=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return h<
j?g(window).width()+"px":h+"px"}else return g(document).width()+"px"},resize:function(){var h=g([]);g.each(g.ui.dialog.overlay.instances,function(){h=h.add(this)});h.css({width:0,height:0}).css({width:g.ui.dialog.overlay.width(),height:g.ui.dialog.overlay.height()})}});g.extend(g.ui.dialog.overlay.prototype,{destroy:function(){g.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(g){g.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=g("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);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();g.Widget.prototype.destroy.apply(this,arguments)},value:function(h){if(h===undefined)return this._value();this._setOption("value",h);return this},_setOption:function(h,j){switch(h){case "value":this.options.value=j;this._refreshValue();this._trigger("change");break}g.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var h=this.options.value;if(typeof h!=="number")h=0;if(h<this._valueMin())h=this._valueMin();if(h>this._valueMax())h=this._valueMax();return h},
_valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var h=this.value();this.valueDiv[h===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(h+"%");this.element.attr("aria-valuenow",h)}});g.extend(g.ui.progressbar,{version:"1.8"})})(jQuery);
jQuery.url=function(){var g={},h={},j={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},
o=function(){str=decodeURI(j.url);for(var n=j.parser[j.strictMode?"strict":"loose"].exec(str),s={},y=14;y--;)s[j.key[y]]=n[y]||"";s[j.q.name]={};s[j.key[12]].replace(j.q.parser,function(B,I,M){if(I)s[j.q.name][I]=M});return s},p=function(){h=o();var n=h.path;g=[];g=h.path.length==1?{}:(n.charAt(n.length-1)=="/"?n.substring(1,n.length-1):path=n.substring(1)).split("/")};return{setMode:function(n){strictMode=n=="strict"?true:false;return this},setUrl:function(n){j.url=n===undefined?window.location:
n;p();return this},segment:function(n){h.length||p();if(n===undefined)return g.length;return g[n]===""||g[n]===undefined?null:g[n]},attr:function(n){h.length||p();if(n=="base")return h.port!==null&&h.port!==""?h.protocol+"://"+h.host+":"+h.port+"/":h.protocol+"://"+h.host+"/";return h[n]===""?null:h[n]},param:function(n){h.length||p();return h.queryKey[n]===null?null:h.queryKey[n]}}}();
(function(g){function h(j){if(typeof j.data==="string"){var o=j.handler,p=j.data.toLowerCase().split(" ");j.handler=function(n){if(!(this!==n.target&&(/textarea|select/i.test(n.target.nodeName)||n.target.type==="text"))){var s=n.type!=="keypress"&&g.hotkeys.specialKeys[n.which],y=String.fromCharCode(n.which).toLowerCase(),B="",I={};if(n.altKey&&s!=="alt")B+="alt+";if(n.ctrlKey&&s!=="ctrl")B+="ctrl+";if(n.metaKey&&!n.ctrlKey&&s!=="meta")B+="meta+";if(n.shiftKey&&s!=="shift")B+="shift+";if(s)I[B+s]=
true;else{I[B+y]=true;I[B+g.hotkeys.shiftNums[y]]=true;if(B==="shift+")I[g.hotkeys.shiftNums[y]]=true}s=0;for(y=p.length;s<y;s++)if(I[p[s]])return o.apply(this,arguments)}}}}g.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",
106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};g.each(["keydown","keyup","keypress"],function(){g.event.special[this]={add:h}})})(jQuery);
var our_url=$.url.attr("source"),our_host=$.url.attr("host")||"localhost",start=[new Date,new Date],duration=[null,null],urls=["",""],runs={},repeat=0,repeat_total=0,repeat_render=false,race_urls={r:[],l:[]},race_index=[0,0],racing=false,querystring="",current_test_url=our_url,serial=false;if(!String.prototype.startsWith)String.prototype.startsWith=function(g){return!this.indexOf(g)};
load_frame=function(g){racing&&$("#url"+g).val(race_urls[["l","r"][g]][race_index[g]]);var h=$("#url"+g).val();if(h.indexOf("://")==-1){urls[g]=h;h="http://"+h;$("#url"+g).val(h)}else urls[g]=h.substr(h.indexOf("://")+3);$("#frame"+g).attr("src","about:blank");if(!racing||race_index[g]===0){start[g]=new Date;duration[g]=0}$("#frame"+g).attr("src",h);$("#time"+g).html("<blink>loading...</blink>").show();if(repeat_total){$("#xfactor div").html('<p> <div id="progress"></div> </p><p> '+(repeat_total-
repeat)+" out of "+repeat_total+"</p>");$("#progress").progressbar({value:100*(repeat_total-repeat)/repeat_total});$("#xfactor").show();$("#average").hide()}else $(".overlay").hide()};display_runs=function(){msg="";$.each(runs,function(g,h){msg+=unescape(g)+"\n\n";msg+="left_ms,right_ms\n";$.each(h.history,function(j,o){msg+=o[0]+","+o[1]+"\n"});msg+="\n\n"});return msg};
comparison_txt=function(g){var h=true;if(g<1){g=1/g;h=false}var j=Math.round(100*(g-1)),o=g.toPrecision(2);return j<5?"it's a tie!":g<2?h?j+"<small>%</small> faster &rarr;":"&larr; "+j+"<small>%</small> faster":h?o+" &times; faster &rarr;":"&larr; "+o+" &times; faster"};
after_load=function(g,h){if(duration[g]!==null)if(racing&&race_index[g]<race_urls[["l","r"][g]].length-1){race_index[g]++;load_frame(g,h)}else{var j=(new Date).getTime()-start[g].getTime();duration[g]=j;$("#time"+g).text(j+" ms");if(duration[g]&&duration[h]){j=duration[0]/duration[1];var o=current_test_url;runs[o]||(runs[o]={total_time:[0,0],history:[]});runs[o].history.push([duration[0],duration[1],j]);var p=runs[o].history.length;runs[o].total_time[0]+=duration[0];runs[o].total_time[1]+=duration[1];
var n=runs[o].total_time[0]/runs[o].total_time[1],s=(runs[o].total_time[0]/p).toFixed(0);o=(runs[o].total_time[1]/p).toFixed(0);if(repeat_render){repeat_render=false;repeat_total=0;$("#xfactor div").html("<h2>"+comparison_txt(n)+"</h2><p>"+s+" ms / "+o+" ms </p>");$("#average div").html("<p> Average over "+p+" runs: </p><p>"+comparison_txt(n)+"</p><p>"+s+" ms / "+o+" ms </p>");$(".overlay").show()}else{$("#xfactor div").html("<h2>"+comparison_txt(j)+"</h2><p>"+duration[0].toFixed(0)+" ms / "+duration[1].toFixed(0)+
" ms</p>");$("#xfactor").show();if(p>1){$("#average div").html("<p> Average over "+p+" runs: </p><p>"+comparison_txt(n)+"</p><p>"+s+" ms / "+o+" ms </p>");$("#average").show()}}if(racing&&!repeat)racing=false;if(repeat){if(--repeat==0)repeat_render=true;racing&&prep_race();reload_frames()}else $("#xfactor-links").delay(1E3).fadeIn();$(".load_time").hide();go_focus()}serial&&duration[g]&&!duration[h]&&load_frame(h,g)}};
reload_frames=function(){duration=[0,0];current_test_url=build_querystring(racing);$("#xfactor-links").hide();if(serial)load_frame(1,0);else{load_frame(1,0);load_frame(0,1)}};go_focus=function(){setTimeout(function(){$("#go").focus()},10)};prep_repeat=function(g){repeat=g-1;repeat_total=g;repeat_render=false};prep_race=function(){racing=true;race_index=[0,0]};
build_querystring=function(g){var h=[],j=[];if(g){for(g=0;g<race_urls.l.length;g++)h[g]=escape(race_urls.l[g]);for(g=0;g<race_urls.r.length;g++)j[g]=escape(race_urls.r[g])}else{h.push(escape(urls[0]));j.push(escape(urls[1]))}g=repeat_total?"&times="+repeat_total:"";return our_url.split("?")[0].split("#")[0]+"?l="+h.join(";")+"&r="+j.join(";")+g};
parse_querystring=function(g){if(!g){g=$.url.attr("query");if(!g)return}if(g[0]!="?")g="?"+g;$.each({0:"l",1:"r"},function(h,j){var o=$.url.setUrl(g).param(j);if(o){o=o.split(";");$.each(o,function(p,n){$("#"+j+p).val(n)});$("#url"+h).val(o[0]);urls[h]=o[0];race_urls[j]=o}})};
var add_race_input=function(){var g=$("#race-form input").size()/2;$("#race-form tr").last().after('<tr><td><input type="text" id="l'+g+'" class="race_url text ui-widget-content ui-corner-all" /></td><td><input type="text" id="r'+g+'" class="race_url text ui-widget-content ui-corner-all" /></td></tr>');$("#race-form").dialog("option","position","auto");race_input_auto_add()},race_input_auto_add=function(){$("#race-form input").focus(function(){var g=$("#race-form input").size()/2-1,h=$(this).attr("id");
if(h==="l"+g||h==="r"+g)add_race_input()})};
$(window).ready(function(){$("#frame0").load(function(){after_load(0,1)});$("#frame1").load(function(){after_load(1,0)});$("#go").button({icons:{primary:"ui-icon-arrowthick-1-e"}}).click(reload_frames);$("#url0, #url1").keyup(function(h){h.keyCode==13&&reload_frames()});$("#repeat").click(function(){$("#repeat-form").dialog({modal:true,title:"Repeat this matchup",open:function(){$("#custom_times").focus(function(){$("#custom").attr("checked","checked")})},buttons:{GO:function(){$("#custom_times_error").removeClass("ui-state-highlight").hide();
var h=$('#times input[name="times"]:checked').val();if(h==="custom")h=$("#custom_times").val();h=parseInt(h);if(isNaN(h)||h<1)$("#custom_times_error").addClass("ui-state-highlight").text("positive number please").show();else{$(this).dialog("close");prep_repeat(h);reload_frames()}},Cancel:function(){$(this).dialog("close")}},close:function(){}})});$("#race").click(function(){$("#race-form").dialog({width:550,modal:true,title:"Race!",open:function(){for(var h=0;h<Math.max(race_urls.r.length,race_urls.l.length);h++){$("#race-form input").size()/
2<=h+1&&add_race_input();$("#l"+h).val(race_urls.l[h]);$("#r"+h).val(race_urls.r[h])}race_input_auto_add()},buttons:{OK:function(){var h={r:"",l:""};$.each(h,function(o){for(var p=0,n="foo",s=[];n=$("#"+o+p).val();){s.push(n);p++}h[o]=o+"="+s.join(";")});var j=h.l+"&"+h.r;querystring=j;parse_querystring(j);prep_race();reload_frames();$(this).dialog("close")}},close:function(){}})});$("#data").click(function(){$("#data-form").dialog({width:600,height:600,modal:true,title:"Grab my data",open:function(){$("#data-form textarea").val(display_runs())},
buttons:{OK:function(){$(this).dialog("close")}},close:function(){}})});$("#splash").dialog({autoOpen:false,modal:true,title:"Which loads faster?",open:function(){$("#matchups button").button({icons:{primary:"ui-icon-star"}}).click(function(){urls=$(this).attr("name").split(":");$("#url0").val(urls[0]);$("#url1").val(urls[1]);$("#splash").dialog("close");reload_frames()})},buttons:{"Try my own matchup":function(){$("#url0").focus().select();$(this).dialog("close")}},close:function(){}});$("#splash-link").click(function(){$("#splash").dialog("open")});
$("#framebuster").dialog({autoOpen:false,modal:true,title:"Framebuster warning",open:function(){$("#framebuster_name").html("");var h="";if(duration[0]&&!duration[1])h=$("#url1").val();else if(duration[1]&&!duration[0])h=$("#url0").val();else return;$("#framebuster_name").html("(<b>"+h+"</b>)")},buttons:{OK:function(){$(this).dialog("close")}},close:function(){}});$("#help").dialog({autoOpen:false,modal:true,title:"Help",buttons:{OK:function(){$(this).dialog("close")}}});$("#help-link").click(function(){$("#help").dialog("open")});
$("#about").dialog({width:400,autoOpen:false,modal:true,title:"About this project",open:function(){$(".IE6 #about").supersleight({shim:"img/x.gif"})},buttons:{"Cool Beans!":function(){$(this).dialog("close")}}});$("#about-link").click(function(){$("#about").dialog("open")});$("#share").dialog({autoOpen:false,modal:true,title:"Share this test!",width:400,open:function(){$("#share textarea").val(current_test_url)},buttons:{OK:function(){$(this).dialog("close")}}});$("#share-link").click(function(){$("#share").dialog("open")});
$("#more").dialog({autoOpen:false,modal:true,title:"Dig deeper",width:400,open:function(){var h=escape($("#url0").val()),j=escape($("#url1").val());$("#gtmetrix0").click(function(){window.open("http://gtmetrix.com/analyze.html?url="+h);return false});$("#gtmetrix1").click(function(){window.open("http://gtmetrix.com/analyze.html?url="+j);return false})},buttons:{"Thanks, I'm done!":function(){$(this).dialog("close")}}});$("#more-link").click(function(){$("#more").dialog("open")});$("#settings").dialog({autoOpen:false,
modal:true,title:"Settings",width:400,buttons:{OK:function(){$(this).dialog("close")}}});$("#settings-link").click(function(){$("#settings").dialog("open")});$("#serial_parallel").buttonset();$("#serial, #parallel").change(function(){serial=$("#serial").attr("checked")});$("button").button();$(".load_time").hide();parse_querystring();var g=$.url.param("times");if(g)if($("#"+g+"times").attr("checked")===undefined){$("#custom_times").val(g);$("#custom").attr("checked",true)}else $("#"+g+"times").attr("checked",
true);make_shortcut=function(h,j){$(document).bind("keyup",h,function(){$(j).trigger("click")});if($(j).is("button"))j+=" span";$(j).html($(j).text().replace(RegExp("(.*)("+h+")(.*)","i"),"$1<u>$2</u>$3"))};make_shortcut("r","#repeat");make_shortcut("c","#race");make_shortcut("p","#splash-link");make_shortcut("s","#settings-link");make_shortcut("d","#data");make_shortcut("g","#go");make_shortcut("h","#help-link");make_shortcut("a","#about-link");$("#frame0").focus(function(){$("#frame0").trigger("blur")});
$("#frame1").focus(function(){$("#frame1").trigger("blur")});go_focus();$("input").focus(function(){$(this).addClass("hasfocus")}).blur(function(){$(this).removeClass("hasfocus")});$("#go").blur(function(){setTimeout(function(){var h=true;$.each($("input"),function(){if($(this).hasClass("hasfocus"))h=false});h&&go_focus()},10)});setInterval(function(){var h=true;$("input").each(function(){if($(this).hasClass("hasfocus"))h=false});h&&go_focus()},200);$("input").bind("keydown","esc",function(){$(this).blur()});
switch($.url.param("action")){case "go":$("#go").trigger("click");break;case "race":$("#race").trigger("click");break;case "repeat":$("#repeat").trigger("click");break;case "splash":$("#splash").dialog("open");break;case "serial":serial=true;$("#parallel").removeAttr("checked");$("#serial").attr("checked","checked");$("#serial_parallel").buttonset();break;default:if(race_urls.l.length&&race_urls.r.length){g&&prep_repeat(g);race_urls.l.length+race_urls.r.length>2&&prep_race();reload_frames()}else $("#splash").dialog("open");
break}$("#logo a").attr("href",our_url);$("#logo a").html(our_host);$(".IE6 #xfactor").supersleight({shim:"img/x.gif"});$(".IE6 #average").supersleight({shim:"img/x.gif"})});$("#frame0").top=null;$("#frame1").top=null;
jQuery.fn.supersleight=function(g){g=jQuery.extend({imgs:true,backgrounds:true,shim:"x.gif",apply_positioning:true},g);return this.each(function(){jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7&&parseInt(jQuery.browser.version,10)>4&&jQuery(this).find("*").andSelf().each(function(h,j){var o=jQuery(j);if(g.backgrounds&&o.css("background-image").match(/\.png/i)!==null){var p=o.css("background-image");p=p.substring(5,p.length-2);var n=o.css("background-repeat")=="no-repeat"?"crop":"scale";
p={filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+p+"', sizingMethod='"+n+"')","background-image":"url("+g.shim+")"};o.css(p)}if(g.imgs&&o.is("img[src$=png]")){p={width:o.width()+"px",height:o.height()+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+o.attr("src")+"', sizingMethod='scale')"};o.css(p).attr("src",g.shim)}if(g.apply_positioning&&o.is("a, input")&&(o.css("position")===""||o.css("position")=="static"))o.css("position","relative")})})};

