(function(a){function m(){if(!f.isReady){try{p.documentElement.doScroll("left")}catch(k){setTimeout(m,1);return}f.ready()}}function l(k,a){a.src?f.ajax({url:a.src,async:!1,dataType:"script"}):f.globalEval(a.text||a.textContent||a.innerHTML||"");a.parentNode&&a.parentNode.removeChild(a)}function g(k,a,b,d,c,e){var j=k.length;if(typeof a==="object"){for(var h in a)g(k,h,a[h],d,c,b);return k}if(b!==void 0){d=!e&&d&&f.isFunction(b);for(h=0;h<j;h++)c(k[h],a,d?b.call(k[h],h,c(k[h],a)):b,e);return k}return j?
c(k[0],a):void 0}function c(){return(new Date).getTime()}function e(){return!1}function i(){return!0}function b(k,a,b){b[0].type=k;return f.event.handle.apply(a,b)}function d(k){var a,b=[],d=[],c=arguments,e,j,h,g,i,n;j=f.data(this,"events");if(!(k.liveFired===this||!j||!j.live||k.button&&k.type==="click")){k.liveFired=this;var q=j.live.slice(0);for(g=0;g<q.length;g++)j=q[g],j.origType.replace(L,"")===k.type?d.push(j.selector):q.splice(g--,1);e=f(k.target).closest(d,k.currentTarget);i=0;for(n=e.length;i<
n;i++)for(g=0;g<q.length;g++)if(j=q[g],e[i].selector===j.selector){h=e[i].elem;d=null;if(j.preType==="mouseenter"||j.preType==="mouseleave")d=f(k.relatedTarget).closest(j.selector)[0];(!d||d!==h)&&b.push({elem:h,handleObj:j})}i=0;for(n=b.length;i<n;i++)if(e=b[i],k.currentTarget=e.elem,k.data=e.handleObj.data,k.handleObj=e.handleObj,e.handleObj.origHandler.apply(e.elem,c)===!1){a=!1;break}return a}}function j(k,a){return"live."+(k&&k!=="*"?k+".":"")+a.replace(/\./g,"`").replace(/ /g,"&")}function n(k,
a){var b=0;a.each(function(){if(this.nodeName===(k[b]&&k[b].nodeName)){var a=f.data(k[b++]),F=f.data(this,a);if(a=a&&a.events){delete F.handle;F.events={};for(var d in a)for(var c in a[d])f.event.add(this,d,a[d][c],a[d][c].data)}}})}function r(k,a,b){var d,c,e,a=a&&a[0]?a[0].ownerDocument||a[0]:p;if(k.length===1&&typeof k[0]==="string"&&k[0].length<512&&a===p&&!la.test(k[0])&&(f.support.checkClone||!ma.test(k[0])))c=!0,(e=f.fragments[k[0]])&&e!==1&&(d=e);d||(d=a.createDocumentFragment(),f.clean(k,
a,d,b));c&&(f.fragments[k[0]]=e?d:1);return{fragment:d,cacheable:c}}function h(k,a){var b={};f.each(na.concat.apply([],na.slice(0,a)),function(){b[this]=k});return b}function q(k){return"scrollTo"in k&&k.document?k:k.nodeType===9?k.defaultView||k.parentWindow:!1}var f=function(k,a){return new f.fn.init(k,a)},y=a.jQuery,u=a.$,p=a.document,x,t=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,w=/^.[^:#\[\.,]*$/,v=/\S/,A=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,J=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,B=!1,s=
[],I,K=Object.prototype.toString,o=Object.prototype.hasOwnProperty,E=Array.prototype.push,P=Array.prototype.slice,O=Array.prototype.indexOf;f.fn=f.prototype={init:function(k,a){var b,d,c;if(!k)return this;if(k.nodeType)return this.context=this[0]=k,this.length=1,this;if(k==="body"&&!a)return this.context=p,this[0]=p.body,this.selector="body",this.length=1,this;if(typeof k==="string")if((b=t.exec(k))&&(b[1]||!a))if(b[1])return c=a?a.ownerDocument||a:p,(d=J.exec(k))?f.isPlainObject(a)?(k=[p.createElement(d[1])],
f.fn.attr.call(k,a,!0)):k=[c.createElement(d[1])]:(d=r([b[1]],[c]),k=(d.cacheable?d.fragment.cloneNode(!0):d.fragment).childNodes),f.merge(this,k);else{if(d=p.getElementById(b[2])){if(d.id!==b[2])return x.find(k);this.length=1;this[0]=d}this.context=p;this.selector=k;return this}else return!a&&/^\w+$/.test(k)?(this.selector=k,this.context=p,k=p.getElementsByTagName(k),f.merge(this,k)):!a||a.jquery?(a||x).find(k):f(a).find(k);else if(f.isFunction(k))return x.ready(k);if(k.selector!==void 0)this.selector=
k.selector,this.context=k.context;return f.makeArray(k,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return P.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this.slice(k)[0]:this[k]},pushStack:function(k,a,b){var d=f();f.isArray(k)?E.apply(d,k):f.merge(d,k);d.prevObject=this;d.context=this.context;if(a==="find")d.selector=this.selector+(this.selector?" ":"")+b;else if(a)d.selector=this.selector+"."+a+"("+b+")";return d},each:function(k,
a){return f.each(this,k,a)},ready:function(k){f.bindReady();f.isReady?k.call(p,f):s&&s.push(k);return this},eq:function(k){return k===-1?this.slice(k):this.slice(k,+k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(P.apply(this,arguments),"slice",P.call(arguments).join(","))},map:function(k){return this.pushStack(f.map(this,function(a,f){return k.call(a,f,a)}))},end:function(){return this.prevObject||f(null)},push:E,sort:[].sort,splice:[].splice};
f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var k=arguments[0]||{},a=1,b=arguments.length,d=!1,c,e,j,h;typeof k==="boolean"&&(d=k,k=arguments[1]||{},a=2);typeof k!=="object"&&!f.isFunction(k)&&(k={});for(b===a&&(k=this,--a);a<b;a++)if((c=arguments[a])!=null)for(e in c)j=k[e],h=c[e],k!==h&&(d&&h&&(f.isPlainObject(h)||f.isArray(h))?(j=j&&(f.isPlainObject(j)||f.isArray(j))?j:f.isArray(h)?[]:{},k[e]=f.extend(d,j,h)):h!==void 0&&(k[e]=h));return k};f.extend({noConflict:function(k){a.$=u;if(k)a.jQuery=
y;return f},isReady:!1,ready:function(){if(!f.isReady){if(!p.body)return setTimeout(f.ready,13);f.isReady=!0;if(s){for(var k,a=0;k=s[a++];)k.call(p,f);s=null}f.fn.triggerHandler&&f(p).triggerHandler("ready")}},bindReady:function(){if(!B){B=!0;if(p.readyState==="complete")return f.ready();if(p.addEventListener)p.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",f.ready,!1);else if(p.attachEvent){p.attachEvent("onreadystatechange",I);a.attachEvent("onload",f.ready);var k=!1;try{k=
a.frameElement==null}catch(b){}p.documentElement.doScroll&&k&&m()}}},isFunction:function(k){return K.call(k)==="[object Function]"},isArray:function(k){return K.call(k)==="[object Array]"},isPlainObject:function(k){if(!k||K.call(k)!=="[object Object]"||k.nodeType||k.setInterval)return!1;if(k.constructor&&!o.call(k,"constructor")&&!o.call(k.constructor.prototype,"isPrototypeOf"))return!1;for(var a in k);return a===void 0||o.call(k,a)},isEmptyObject:function(k){for(var a in k)return!1;return!0},error:function(k){throw k;
},parseJSON:function(k){if(typeof k!=="string"||!k)return null;k=f.trim(k);if(/^[\],:{}\s]*$/.test(k.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(k):(new Function("return "+k))();else f.error("Invalid JSON: "+k)},noop:function(){},globalEval:function(k){if(k&&v.test(k)){var a=p.getElementsByTagName("head")[0]||p.documentElement,b=p.createElement("script");
b.type="text/javascript";f.support.scriptEval?b.appendChild(p.createTextNode(k)):b.text=k;a.insertBefore(b,a.firstChild);a.removeChild(b)}},nodeName:function(k,a){return k.nodeName&&k.nodeName.toUpperCase()===a.toUpperCase()},each:function(k,a,b){var d,c=0,e=k.length,j=e===void 0||f.isFunction(k);if(b)if(j)for(d in k){if(a.apply(k[d],b)===!1)break}else for(;c<e;){if(a.apply(k[c++],b)===!1)break}else if(j)for(d in k){if(a.call(k[d],d,k[d])===!1)break}else for(b=k[0];c<e&&a.call(b,c,b)!==!1;b=k[++c]);
return k},trim:function(a){return(a||"").replace(A,"")},makeArray:function(a,b){var d=b||[];a!=null&&(a.length==null||typeof a==="string"||f.isFunction(a)||typeof a!=="function"&&a.setInterval?E.call(d,a):f.merge(d,a));return d},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var f=0,d=b.length;f<d;f++)if(b[f]===a)return f;return-1},merge:function(a,b){var f=a.length,d=0;if(typeof b.length==="number")for(var c=b.length;d<c;d++)a[f++]=b[d];else for(;b[d]!==void 0;)a[f++]=b[d++];a.length=
f;return a},grep:function(a,b,f){for(var d=[],c=0,e=a.length;c<e;c++)!f!==!b(a[c],c)&&d.push(a[c]);return d},map:function(a,b,f){for(var d=[],c,e=0,j=a.length;e<j;e++)c=b(a[e],e,f),c!=null&&(d[d.length]=c);return d.concat.apply([],d)},guid:1,proxy:function(a,b,d){arguments.length===2&&(typeof b==="string"?(d=a,a=d[b],b=void 0):b&&!f.isFunction(b)&&(d=b,b=void 0));!b&&a&&(b=function(){return a.apply(d||this,arguments)});if(a)b.guid=a.guid=a.guid||b.guid||f.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:{}});G=f.uaMatch(G);if(G.browser)f.browser[G.browser]=!0,f.browser.version=G.version;if(f.browser.webkit)f.browser.safari=!0;if(O)f.inArray=function(a,b){return O.call(b,a)};x=f(p);p.addEventListener?I=function(){p.removeEventListener("DOMContentLoaded",I,!1);f.ready()}:p.attachEvent&&
(I=function(){p.readyState==="complete"&&(p.detachEvent("onreadystatechange",I),f.ready())});(function(){f.support={};var k=p.documentElement,b=p.createElement("script"),d=p.createElement("div"),e="script"+c();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 j=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0];if(j&&j.length&&h){f.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,
htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:p.createElement("select").appendChild(p.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(p.createElement("div"))).parentNode===null,deleteExpando:!0,checkClone:!1,scriptEval:!1,noCloneEvent:!0,boxModel:null};
b.type="text/javascript";try{b.appendChild(p.createTextNode("window."+e+"=1;"))}catch(g){}k.insertBefore(b,k.firstChild);if(a[e])f.support.scriptEval=!0,delete a[e];try{delete b.test}catch(i){f.support.deleteExpando=!1}k.removeChild(b);d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function Ba(){f.support.noCloneEvent=!1;d.detachEvent("onclick",Ba)}),d.cloneNode(!0).fireEvent("onclick"));d=p.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";k=p.createDocumentFragment();
k.appendChild(d.firstChild);f.support.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked;f(function(){var a=p.createElement("div");a.style.width=a.style.paddingLeft="1px";p.body.appendChild(a);f.boxModel=f.support.boxModel=a.offsetWidth===2;p.body.removeChild(a).style.display="none"});k=function(a){var k=p.createElement("div"),a="on"+a,b=a in k;b||(k.setAttribute(a,"return;"),b=typeof k[a]==="function");return b};f.support.submitBubbles=k("submit");f.support.changeBubbles=k("change");k=b=
d=j=h=null}})();f.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var M="jQuery"+c(),W=0,H={};f.extend({cache:{},expando:M,noData:{embed:!0,object:!0,applet:!0},data:function(k,b,d){if(!k.nodeName||!f.noData[k.nodeName.toLowerCase()]){var k=k==a?H:k,c=k[M],e=f.cache;if(!c&&typeof b==="string"&&d===void 0)return null;c||(c=++W);typeof b===
"object"?(k[M]=c,e[c]=f.extend(!0,{},b)):e[c]||(k[M]=c,e[c]={});k=e[c];d!==void 0&&(k[b]=d);return typeof b==="string"?k[b]:k}},removeData:function(k,b){if(!k.nodeName||!f.noData[k.nodeName.toLowerCase()]){var k=k==a?H:k,d=k[M],c=f.cache,e=c[d];b?e&&(delete e[b],f.isEmptyObject(e)&&f.removeData(k)):(f.support.deleteExpando?delete k[f.expando]:k.removeAttribute&&k.removeAttribute(f.expando),delete c[d])}}});f.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return f.data(this[0]);
else if(typeof a==="object")return this.each(function(){f.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===void 0){var c=this.triggerHandler("getData"+d[1]+"!",[d[0]]);c===void 0&&this.length&&(c=f.data(this[0],a));return c===void 0&&d[1]?this.data(d[0]):c}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){f.data(this,a,b)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}});f.extend({queue:function(a,b,d){if(a){var b=(b||"fx")+"queue",c=
f.data(a,b);if(!d)return c||[];!c||f.isArray(d)?c=f.data(a,b,f.makeArray(d)):c.push(d);return c}},dequeue:function(a,b){var b=b||"fx",d=f.queue(a,b),c=d.shift();c==="inprogress"&&(c=d.shift());c&&(b==="fx"&&d.unshift("inprogress"),c.call(a,function(){f.dequeue(a,b)}))}});f.fn.extend({queue:function(a,b){typeof a!=="string"&&(b=a,a="fx");return b===void 0?f.queue(this[0],a):this.each(function(){var d=f.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,
a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){f.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var N=/[\n\t]/g,C=/\s+/,z=/\r/g,D=/href|src|style/,Q=/(button|input)/i,S=/(button|input|object|select|textarea)/i,R=/^(a|area)$/i,U=/radio|checkbox/;f.fn.extend({attr:function(a,b){return g(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.attr(this,a,"");this.nodeType===
1&&this.removeAttribute(a)})},addClass:function(a){if(f.isFunction(a))return this.each(function(b){var d=f(this);d.addClass(a.call(this,b,d.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(C),d=0,c=this.length;d<c;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",h=e.className,g=0,i=b.length;g<i;g++)j.indexOf(" "+b[g]+" ")<0&&(h+=" "+b[g]);e.className=f.trim(h)}else e.className=a}return this},removeClass:function(a){if(f.isFunction(a))return this.each(function(b){var d=
f(this);d.removeClass(a.call(this,b,d.attr("class")))});if(a&&typeof a==="string"||a===void 0)for(var b=(a||"").split(C),d=0,c=this.length;d<c;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(N," "),h=0,g=b.length;h<g;h++)j=j.replace(" "+b[h]+" "," ");e.className=f.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,c=typeof b==="boolean";return f.isFunction(a)?this.each(function(d){var c=f(this);c.toggleClass(a.call(this,
d,c.attr("class"),b),b)}):this.each(function(){if(d==="string")for(var e,j=0,h=f(this),g=b,i=a.split(C);e=i[j++];)g=c?g:!h.hasClass(e),h[g?"addClass":"removeClass"](e);else if(d==="undefined"||d==="boolean")this.className&&f.data(this,"__className__",this.className),this.className=this.className||a===!1?"":f.data(this,"__className__")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,f=this.length;b<f;b++)if((" "+this[b].className+" ").replace(N," ").indexOf(a)>-1)return!0;return!1},val:function(a){if(a===
void 0){var b=this[0];if(b){if(f.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(f.nodeName(b,"select")){var d=b.selectedIndex,c=[],e=b.options,b=b.type==="select-one";if(d<0)return null;for(var j=b?d:0,d=b?d+1:e.length;j<d;j++){var h=e[j];if(h.selected){a=f(h).val();if(b)return a;c.push(a)}}return c}return U.test(b.type)&&!f.support.checkOn?b.getAttribute("value")===null?"on":b.value:(b.value||"").replace(z,"")}}else{var g=f.isFunction(a);return this.each(function(b){var d=
f(this),c=a;if(this.nodeType===1)if(g&&(c=a.call(this,b,d.val())),typeof c==="number"&&(c+=""),f.isArray(c)&&U.test(this.type))this.checked=f.inArray(d.val(),c)>=0;else if(f.nodeName(this,"select")){var e=f.makeArray(c);f("option",this).each(function(){this.selected=f.inArray(f(this).val(),e)>=0});if(!e.length)this.selectedIndex=-1}else this.value=c})}}});f.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,d,c){if(a&&!(a.nodeType===3||a.nodeType===
8)){if(c&&b in f.attrFn)return f(a)[b](d);var c=a.nodeType!==1||!f.isXMLDoc(a),e=d!==void 0,b=c&&f.props[b]||b;if(a.nodeType===1){var j=D.test(b);if(b in a&&c&&!j)return e&&(b==="type"&&Q.test(a.nodeName)&&a.parentNode&&f.error("type property can't be changed"),a[b]=d),f.nodeName(a,"form")&&a.getAttributeNode(b)?a.getAttributeNode(b).nodeValue:b==="tabIndex"?(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:S.test(a.nodeName)||R.test(a.nodeName)&&a.href?0:void 0:a[b];if(!f.support.style&&c&&
b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!f.support.hrefNormalized&&c&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?void 0:a}return f.style(a,b,d)}}});var L=/\.(.*)$/,ba=function(a){return a.replace(/[^\w\s\.\|`]/g,function(a){return"\\"+a})};f.event={add:function(b,d,c,e){if(!(b.nodeType===3||b.nodeType===8)){b.setInterval&&b!==a&&!b.frameElement&&(b=a);var j,h;if(c.handler)j=c,c=j.handler;if(!c.guid)c.guid=f.guid++;if(h=f.data(b)){var g=
h.events=h.events||{},i=h.handle;if(!i)h.handle=i=function(){return typeof f!=="undefined"&&!f.event.triggered?f.event.handle.apply(i.elem,arguments):void 0};i.elem=b;for(var d=d.split(" "),n,q=0,r;n=d[q++];){h=j?f.extend({},j):{handler:c,data:e};n.indexOf(".")>-1?(r=n.split("."),n=r.shift(),h.namespace=r.slice(0).sort().join(".")):(r=[],h.namespace="");h.type=n;h.guid=c.guid;var p=g[n],l=f.event.special[n]||{};if(!p&&(p=g[n]=[],!l.setup||l.setup.call(b,e,r,i)===!1))b.addEventListener?b.addEventListener(n,
i,!1):b.attachEvent&&b.attachEvent("on"+n,i);if(l.add&&(l.add.call(b,h),!h.handler.guid))h.handler.guid=c.guid;p.push(h);f.event.global[n]=!0}b=null}}},global:{},remove:function(a,b,d,c){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,h,g,i,n,q,r,p=f.data(a),l=p&&p.events;if(p&&l){if(b&&b.type)d=b.handler,b=b.type;if(!b||typeof b==="string"&&b.charAt(0)===".")for(e in b=b||"",l)f.event.remove(a,e+b);else{for(b=b.split(" ");e=b[j++];)if(n=e,h=e.indexOf(".")<0,g=[],h||(g=e.split("."),e=g.shift(),i=
RegExp("(^|\\.)"+f.map(g.slice(0).sort(),ba).join("\\.(?:.*\\.)?")+"(\\.|$)")),q=l[e])if(d){n=f.event.special[e]||{};for(m=c||0;m<q.length;m++)if(r=q[m],d.guid===r.guid){if(h||i.test(r.namespace))c==null&&q.splice(m--,1),n.remove&&n.remove.call(a,r);if(c!=null)break}if(q.length===0||c!=null&&q.length===1)(!n.teardown||n.teardown.call(a,g)===!1)&&oa(a,e,p.handle),delete l[e]}else for(var m=0;m<q.length;m++)if(r=q[m],h||i.test(r.namespace))f.event.remove(a,n,r.handler,m),q.splice(m--,1);if(f.isEmptyObject(l)){if(b=
p.handle)b.elem=null;delete p.events;delete p.handle;f.isEmptyObject(p)&&f.removeData(a)}}}}},trigger:function(a,b,d,c){var e=a.type||a;if(!c){a=typeof a==="object"?a[M]?a:f.extend(f.Event(e),a):f.Event(e);if(e.indexOf("!")>=0)a.type=e=e.slice(0,-1),a.exclusive=!0;d||(a.stopPropagation(),f.event.global[e]&&f.each(f.cache,function(){this.events&&this.events[e]&&f.event.trigger(a,b,this.handle.elem)}));if(!d||d.nodeType===3||d.nodeType===8)return;a.result=void 0;a.target=d;b=f.makeArray(b);b.unshift(a)}a.currentTarget=
d;(c=f.data(d,"handle"))&&c.apply(d,b);c=d.parentNode||d.ownerDocument;try{if((!d||!d.nodeName||!f.noData[d.nodeName.toLowerCase()])&&d["on"+e]&&d["on"+e].apply(d,b)===!1)a.result=!1}catch(j){}if(!a.isPropagationStopped()&&c)f.event.trigger(a,b,c,!0);else if(!a.isDefaultPrevented()){var c=a.target,h,g=f.nodeName(c,"a")&&e==="click",i=f.event.special[e]||{};if((!i._default||i._default.call(d,a)===!1)&&!g&&(!c||!c.nodeName||!f.noData[c.nodeName.toLowerCase()])){try{if(c[e])(h=c["on"+e])&&(c["on"+e]=
null),f.event.triggered=!0,c[e]()}catch(n){}h&&(c["on"+e]=h);f.event.triggered=!1}}},handle:function(b){var d,c,e,j,b=arguments[0]=f.event.fix(b||a.event);b.currentTarget=this;d=b.type.indexOf(".")<0&&!b.exclusive;if(!d)c=b.type.split("."),b.type=c.shift(),e=RegExp("(^|\\.)"+c.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");j=f.data(this,"events");c=j[b.type];if(j&&c){c=c.slice(0);j=0;for(var h=c.length;j<h;j++){var g=c[j];if(d||e.test(g.namespace)){b.handler=g.handler;b.data=g.data;b.handleObj=
g;g=g.handler.apply(this,arguments);if(g!==void 0)b.result=g,g===!1&&(b.preventDefault(),b.stopPropagation());if(b.isImmediatePropagationStopped())break}}}return b.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[M])return a;for(var b=a,a=f.Event(b),d=this.props.length,c;d;)c=this.props[--d],a[c]=b[c];if(!a.target)a.target=a.srcElement||p;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=p.documentElement,d=p.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!==void 0)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,a.origType,f.extend({},a,{handler:d}))},remove:function(a){var b=!0,c=a.origType.replace(L,"");f.each(f.data(this,"events").live||
[],function(){if(c===this.origType.replace(L,""))return b=!1});b&&f.event.remove(this,a.origType,d)}},beforeunload:{setup:function(a,b,f){if(this.setInterval)this.onbeforeunload=f;return!1},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var oa=p.removeEventListener?function(a,b,f){a.removeEventListener(b,f,!1)}:function(a,b,f){a.detachEvent("on"+b,f)};f.Event=function(a){if(!this.preventDefault)return new f.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type):
this.type=a;this.timeStamp=c();this[M]=!0};f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var a=this.originalEvent;if(a)a.preventDefault&&a.preventDefault(),a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=i;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:e,isPropagationStopped:e,isImmediatePropagationStopped:e};
var pa=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this)a.type=a.data,f.event.handle.apply(this,arguments)}catch(d){}},qa=function(a){a.type=a.data;f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(d){f.event.add(this,b,d&&d.selector?qa:pa,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?qa:pa)}}});if(!f.support.submitBubbles)f.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form")f.event.add(this,"click.specialSubmit",function(a){var d=a.target,c=d.type;if((c==="submit"||c==="image")&&f(d).closest("form").length)return b("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var d=a.target,c=d.type;if((c==="text"||c==="password")&&f(d).closest("form").length&&a.keyCode===13)return b("submit",this,arguments)});else return!1},teardown:function(){f.event.remove(this,".specialSubmit")}};if(!f.support.changeBubbles){var ca=/textarea|input|select/i,
da,ra=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?f.map(a.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},ea=function(a,b){var d=a.target,c,e;if(ca.test(d.nodeName)&&!d.readOnly&&(c=f.data(d,"_change_data"),e=ra(d),(a.type!=="focusout"||d.type!=="radio")&&f.data(d,"_change_data",e),!(c===void 0||e===c)))if(c!=null||e)return a.type="change",
f.event.trigger(a,b,d)};f.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,f=b.type;if(f==="radio"||f==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,f=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a=a.target;f.data(a,"_change_data",ra(a))}},setup:function(){if(this.type===
"file")return!1;for(var a in da)f.event.add(this,a+".specialChange",da[a]);return ca.test(this.nodeName)},teardown:function(){f.event.remove(this,".specialChange");return ca.test(this.nodeName)}};da=f.event.special.change.filters}p.addEventListener&&f.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){a=f.event.fix(a);a.type=b;return f.event.handle.call(this,a)}f.event.special[b]={setup:function(){this.addEventListener(a,d,!0)},teardown:function(){this.removeEventListener(a,d,!0)}}});
f.each(["bind","one"],function(a,b){f.fn[b]=function(a,d,c){if(typeof a==="object"){for(var k in a)this[b](k,d,a[k],c);return this}f.isFunction(d)&&(c=d,d=void 0);var e=b==="one"?f.proxy(c,function(a){f(this).unbind(a,e);return c.apply(this,arguments)}):c;if(a==="unload"&&b!=="one")this.one(a,d,c);else{k=0;for(var j=this.length;k<j;k++)f.event.add(this[k],a,e,d)}return this}});f.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 c=
this.length;d<c;d++)f.event.remove(this[d],a,b)}return this},delegate:function(a,b,f,d){return this.live(b,f,d,a)},undelegate:function(a,b,f){return arguments.length===0?this.unbind("live"):this.die(b,null,f,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=f.Event(a);d.preventDefault();d.stopPropagation();f.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)f.proxy(a,b[d++]);
return this.click(f.proxy(a,function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1);c.preventDefault();return b[e].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var sa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,b){f.fn[b]=function(a,d,c,k){var e,h=0,g,i,n=k||this.selector,q=k?this:f(this.context);f.isFunction(d)&&(c=d,d=void 0);for(a=(a||"").split(" ");(e=
a[h++])!=null;)k=L.exec(e),g="",k&&(g=k[0],e=e.replace(L,"")),e==="hover"?a.push("mouseenter"+g,"mouseleave"+g):(i=e,e==="focus"||e==="blur"?(a.push(sa[e]+g),e+=g):e=(sa[e]||e)+g,b==="live"?q.each(function(){f.event.add(this,j(e,n),{data:d,selector:n,handler:c,origType:e,origHandler:c,preType:i})}):q.unbind(j(e,n),c));return this}});f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){f.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};f.attrFn&&(f.attrFn[b]=!0)});a.attachEvent&&!a.addEventListener&&a.attachEvent("onunload",function(){for(var a in f.cache)if(f.cache[a].handle)try{f.event.remove(f.cache[a].handle.elem)}catch(b){}});(function(){function a(b){for(var d="",f,c=0;b[c];c++)f=b[c],f.nodeType===3||f.nodeType===4?d+=f.nodeValue:f.nodeType!==8&&(d+=a(f.childNodes));return d}function b(a,d,f,c,e,k){for(var e=0,j=c.length;e<j;e++){var h=c[e];if(h){for(var h=
h[a],g=!1;h;){if(h.sizcache===f){g=c[h.sizset];break}if(h.nodeType===1&&!k)h.sizcache=f,h.sizset=e;if(h.nodeName.toLowerCase()===d){g=h;break}h=h[a]}c[e]=g}}}function d(a,b,f,c,e,k){for(var e=0,j=c.length;e<j;e++){var h=c[e];if(h){for(var h=h[a],g=!1;h;){if(h.sizcache===f){g=c[h.sizset];break}if(h.nodeType===1){if(!k)h.sizcache=f,h.sizset=e;if(typeof b!=="string"){if(h===b){g=!0;break}}else if(i.filter(b,[h]).length>0){g=h;break}}h=h[a]}c[e]=g}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,h=!1,g=!0;[0,0].sort(function(){g=!1;return 0});var i=function(a,b,f,d){var f=f||[],e=b=b||p;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return f;for(var k=[],h,g,F,Y,r=!0,V=u(b),m=a;(c.exec(""),h=c.exec(m))!==null;)if(m=h[3],k.push(h[1]),h[2]){Y=h[3];break}if(k.length>1&&q.exec(a))if(k.length===2&&n.relative[k[0]])g=s(k[0]+k[1],b);else for(g=n.relative[k[0]]?[b]:i(k.shift(),b);k.length;)a=k.shift(),n.relative[a]&&(a+=k.shift()),g=s(a,g);else if(!d&&
k.length>1&&b.nodeType===9&&!V&&n.match.ID.test(k[0])&&!n.match.ID.test(k[k.length-1])&&(h=i.find(k.shift(),b,V),b=h.expr?i.filter(h.expr,h.set)[0]:h.set[0]),b){h=d?{expr:k.pop(),set:l(d)}:i.find(k.pop(),k.length===1&&(k[0]==="~"||k[0]==="+")&&b.parentNode?b.parentNode:b,V);g=h.expr?i.filter(h.expr,h.set):h.set;for(k.length>0?F=l(g):r=!1;k.length;){var y=k.pop();h=y;n.relative[y]?h=k.pop():y="";h==null&&(h=b);n.relative[y](F,h,V)}}else F=[];F||(F=g);F||i.error(y||a);if(j.call(F)==="[object Array]")if(r)if(b&&
b.nodeType===1)for(a=0;F[a]!=null;a++)F[a]&&(F[a]===!0||F[a].nodeType===1&&L(b,F[a]))&&f.push(g[a]);else for(a=0;F[a]!=null;a++)F[a]&&F[a].nodeType===1&&f.push(g[a]);else f.push.apply(f,F);else l(F,f);Y&&(i(Y,e,f,d),i.uniqueSort(f));return f};i.uniqueSort=function(a){if(y&&(h=g,a.sort(y),h))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};i.matches=function(a,b){return i(a,null,null,b)};i.find=function(a,b,f){var d,c;if(!a)return[];for(var k=0,e=n.order.length;k<e;k++){var j=n.order[k];
if(c=n.leftMatch[j].exec(a)){var h=c[1];c.splice(1,1);if(h.substr(h.length-1)!=="\\"&&(c[1]=(c[1]||"").replace(/\\/g,""),d=n.find[j](c,b,f),d!=null)){a=a.replace(n.match[j],"");break}}}d||(d=b.getElementsByTagName("*"));return{set:d,expr:a}};i.filter=function(a,b,f,d){for(var c=a,k=[],e=b,j,h,g=b&&b[0]&&u(b[0]);a&&b.length;){for(var F in n.filter)if((j=n.leftMatch[F].exec(a))!=null&&j[2]){var Y=n.filter[F],q,r;r=j[1];h=!1;j.splice(1,1);if(r.substr(r.length-1)!=="\\"){e===k&&(k=[]);if(n.preFilter[F])if(j=
n.preFilter[F](j,e,f,k,d,g)){if(j===!0)continue}else h=q=!0;if(j)for(var V=0;(r=e[V])!=null;V++)if(r){q=Y(r,j,V,e);var ka=d^!!q;f&&q!=null?ka?h=!0:e[V]=!1:ka&&(k.push(r),h=!0)}if(q!==void 0){f||(e=k);a=a.replace(n.match[F],"");if(!h)return[];break}}}if(a===c)if(h==null)i.error(a);else break;c=a}return e};i.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var n=i.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(a){return a.getAttribute("href")}},
relative:{"+":function(a,b){var f=typeof b==="string",d=f&&!/\W/.test(b),f=f&&!d;d&&(b=b.toLowerCase());for(var d=0,c=a.length,k;d<c;d++)if(k=a[d]){for(;(k=k.previousSibling)&&k.nodeType!==1;);a[d]=f||k&&k.nodeName.toLowerCase()===b?k||!1:k===b}f&&i.filter(b,a,!0)},">":function(a,b){var f=typeof b==="string";if(f&&!/\W/.test(b))for(var b=b.toLowerCase(),d=0,c=a.length;d<c;d++){var k=a[d];if(k)f=k.parentNode,a[d]=f.nodeName.toLowerCase()===b?f:!1}else{d=0;for(c=a.length;d<c;d++)(k=a[d])&&(a[d]=f?k.parentNode:
k.parentNode===b);f&&i.filter(b,a,!0)}},"":function(a,f,c){var k=e++,j=d;if(typeof f==="string"&&!/\W/.test(f))var h=f=f.toLowerCase(),j=b;j("parentNode",f,k,a,h,c)},"~":function(a,f,c){var k=e++,j=d;if(typeof f==="string"&&!/\W/.test(f))var h=f=f.toLowerCase(),j=b;j("previousSibling",f,k,a,h,c)}},find:{ID:function(a,b,f){if(typeof b.getElementById!=="undefined"&&!f)return(a=b.getElementById(a[1]))?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var f=[],d=b.getElementsByName(a[1]),
c=0,k=d.length;c<k;c++)d[c].getAttribute("name")===a[1]&&f.push(d[c]);return f.length===0?null:f}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,f,d,c,k){a=" "+a[1].replace(/\\/g,"")+" ";if(k)return a;for(var k=0,e;(e=b[k])!=null;k++)e&&(c^(e.className&&(" "+e.className+" ").replace(/[\t\n]/g," ").indexOf(a)>=0)?f||d.push(e):f&&(b[k]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]===
"nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=e++;return a},ATTR:function(a,b,f,d,c,k){b=a[1].replace(/\\/g,"");!k&&n.attrMap[b]&&(a[1]=n.attrMap[b]);a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,f,d,k){if(a[1]==="not")if((c.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=i(a[3],null,null,b);else return a=i.filter(a[3],b,f,1^k),f||d.push.apply(d,a),!1;else if(n.match.POS.test(a[0])||
n.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,f){return!!i(f[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},
radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===
0},last:function(a,b,f,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,f){return b<f[3]-0},gt:function(a,b,f){return b>f[3]-0},nth:function(a,b,f){return f[3]-0===b},eq:function(a,b,f){return f[3]-0===b}},filter:{PSEUDO:function(b,f,d,c){var e=f[1],j=n.filters[e];if(j)return j(b,d,f,c);else if(e==="contains")return(b.textContent||b.innerText||a([b])||"").indexOf(f[3])>=0;else if(e==="not"){f=f[3];d=0;for(c=f.length;d<c;d++)if(f[d]===b)return!1;
return!0}else i.error("Syntax error, unrecognized expression: "+e)},CHILD:function(a,b){var f=b[1],d=a;switch(f){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return!1;if(f==="first")return!0;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return!1;return!0;case "nth":var f=b[2],c=b[3];if(f===1&&c===0)return!0;var k=b[0],e=a.parentNode;if(e&&(e.sizcache!==k||!a.nodeIndex)){for(var j=0,d=e.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++j;e.sizcache=k}d=
a.nodeIndex-c;return f===0?d===0:d%f===0&&d/f>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var f=b[1],f=n.attrHandle[f]?n.attrHandle[f](a):a[f]!=null?a[f]:a.getAttribute(f),d=f+"",c=b[2],k=b[4];return f==null?c==="!=":c==="="?d===k:c==="*="?d.indexOf(k)>=0:c==="~="?(" "+d+" ").indexOf(k)>=
0:!k?d&&f!==!1:c==="!="?d!==k:c==="^="?d.indexOf(k)===0:c==="$="?d.substr(d.length-k.length)===k:c==="|="?d===k||d.substr(0,k.length+1)===k+"-":!1},POS:function(a,b,f,d){var c=n.setFilters[b[2]];if(c)return c(a,f,b,d)}}},q=n.match.POS,r;for(r in n.match)n.match[r]=RegExp(n.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[r]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[r].source.replace(/\\(\d+)/g,function(a,b){return"\\"+(b-0+1)}));var l=function(a,b){a=Array.prototype.slice.call(a,0);return b?
(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(p.documentElement.childNodes,0)}catch(m){l=function(a,b){var f=b||[];if(j.call(a)==="[object Array]")Array.prototype.push.apply(f,a);else if(typeof a.length==="number")for(var d=0,c=a.length;d<c;d++)f.push(a[d]);else for(d=0;a[d];d++)f.push(a[d]);return f}}var y;p.documentElement.compareDocumentPosition?y=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a==b&&(h=!0),a.compareDocumentPosition?-1:1;var f=a.compareDocumentPosition(b)&
4?-1:a===b?0:1;f===0&&(h=!0);return f}:"sourceIndex"in p.documentElement?y=function(a,b){if(!a.sourceIndex||!b.sourceIndex)return a==b&&(h=!0),a.sourceIndex?-1:1;var f=a.sourceIndex-b.sourceIndex;f===0&&(h=!0);return f}:p.createRange&&(y=function(a,b){if(!a.ownerDocument||!b.ownerDocument)return a==b&&(h=!0),a.ownerDocument?-1:1;var f=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();f.setStart(a,0);f.setEnd(a,0);d.setStart(b,0);d.setEnd(b,0);f=f.compareBoundaryPoints(Range.START_TO_END,
d);f===0&&(h=!0);return f});(function(){var a=p.createElement("div"),b="script"+(new Date).getTime();a.innerHTML="<a name='"+b+"'/>";var f=p.documentElement;f.insertBefore(a,f.firstChild);if(p.getElementById(b))n.find.ID=function(a,b,f){if(typeof b.getElementById!=="undefined"&&!f)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:void 0:[]},n.filter.ID=function(a,b){var f=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");
return a.nodeType===1&&f&&f.nodeValue===b};f.removeChild(a);f=a=null})();(function(){var a=p.createElement("div");a.appendChild(p.createComment(""));if(a.getElementsByTagName("*").length>0)n.find.TAG=function(a,b){var f=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],c=0;f[c];c++)f[c].nodeType===1&&d.push(f[c]);f=d}return f};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(a){return a.getAttribute("href",
2)};a=null})();p.querySelectorAll&&function(){var a=i,b=p.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){i=function(b,f,d,c){f=f||p;if(!c&&f.nodeType===9&&!u(f))try{return l(f.querySelectorAll(b),d)}catch(k){}return a(b,f,d,c)};for(var f in a)i[f]=a[f];b=null}}();(function(){var a=p.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==
0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))n.order.splice(1,0,"CLASS"),n.find.CLASS=function(a,b,f){if(typeof b.getElementsByClassName!=="undefined"&&!f)return b.getElementsByClassName(a[1])},a=null})();var L=p.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):!0)},u=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":!1},s=function(a,b){for(var f=[],d="",
c,k=b.nodeType?[b]:b;c=n.match.PSEUDO.exec(a);)d+=c[0],a=a.replace(n.match.PSEUDO,"");a=n.relative[a]?a+"*":a;c=0;for(var e=k.length;c<e;c++)i(a,k[c],f);return i.filter(d,f)};f.find=i;f.expr=i.selectors;f.expr[":"]=f.expr.filters;f.unique=i.uniqueSort;f.text=a;f.isXMLDoc=u;f.contains=L})();var Ca=/Until$/,Da=/^(?:parents|prevUntil|prevAll)/,Ea=/,/,P=Array.prototype.slice,ta=function(a,b,d){if(f.isFunction(b))return f.grep(a,function(a,f){return!!b.call(a,f,a)===d});else if(b.nodeType)return f.grep(a,
function(a){return a===b===d});else if(typeof b==="string"){var c=f.grep(a,function(a){return a.nodeType===1});if(w.test(b))return f.filter(b,c,!d);else b=f.filter(b,c)}return f.grep(a,function(a){return f.inArray(a,b)>=0===d})};f.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,c=0,e=this.length;c<e;c++)if(d=b.length,f.find(a,this[c],b),c>0)for(var j=d;j<b.length;j++)for(var h=0;h<d;h++)if(b[h]===b[j]){b.splice(j--,1);break}return b},has:function(a){var b=f(a);return this.filter(function(){for(var a=
0,d=b.length;a<d;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(ta(this,a,!1),"not",a)},filter:function(a){return this.pushStack(ta(this,a,!0),"filter",a)},is:function(a){return!!a&&f.filter(a,this).length>0},closest:function(a,b){if(f.isArray(a)){var d=[],c=this[0],e,j={},h;if(c&&a.length){e=0;for(var g=a.length;e<g;e++)h=a[e],j[h]||(j[h]=f.expr.match.POS.test(h)?f(h,b||this.context):h);for(;c&&c.ownerDocument&&c!==b;){for(h in j)if(e=j[h],e.jquery?e.index(c)>-1:f(c).is(e))d.push({selector:h,
elem:c}),delete j[h];c=c.parentNode}}return d}var i=f.expr.match.POS.test(a)?f(a,b||this.context):null;return this.map(function(d,c){for(;c&&c.ownerDocument&&c!==b;){if(i?i.index(c)>-1:f(c).is(a))return c;c=c.parentNode}return null})},index:function(a){return!a||typeof a==="string"?f.inArray(this[0],a?f(a):this.parent().children()):f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?f(a,b||this.context):f.makeArray(a),c=f.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||
d[0].parentNode.nodeType===11||!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11?c:f.unique(c))},andSelf:function(){return this.add(this.prevObject)}});f.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,d){return f.dir(a,"parentNode",d)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,
"previousSibling")},nextUntil:function(a,b,d){return f.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return f.dir(a,"previousSibling",d)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(d,c){var e=f.map(this,b,d);Ca.test(a)||(c=d);c&&typeof c==="string"&&(e=f.filter(c,e));
e=this.length>1?f.unique(e):e;if((this.length>1||Ea.test(c))&&Da.test(a))e=e.reverse();return this.pushStack(e,a,P.call(arguments).join(","))}});f.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return f.find.matches(a,b)},dir:function(a,b,d){for(var c=[],a=a[b];a&&a.nodeType!==9&&(d===void 0||a.nodeType!==1||!f(a).is(d));)a.nodeType===1&&c.push(a),a=a[b];return c},nth:function(a,b,f){for(var b=b||1,d=0;a;a=a[f])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,b){for(var f=[];a;a=
a.nextSibling)a.nodeType===1&&a!==b&&f.push(a);return f}});var ua=/ jQuery\d+="(?:\d+|null)"/g,Z=/^\s+/,va=/(<([\w:]+)[^>]*?)\/>/g,Fa=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,wa=/<([\w:]+)/,Ga=/<tbody/i,Ha=/<|&#?\w+;/,la=/<script|<object|<embed|<option|<style/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,xa=function(a,b,f){return Fa.test(f)?a:b+"></"+f+">"},T={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,"",""]};T.optgroup=T.option;T.tbody=T.tfoot=T.colgroup=T.caption=T.thead;T.th=T.td;if(!f.support.htmlSerialize)T._default=[1,"div<div>","</div>"];f.fn.extend({text:function(a){return f.isFunction(a)?this.each(function(b){var d=f(this);d.text(a.call(this,b,d.text()))}):typeof a!=="object"&&a!==void 0?this.empty().append((this[0]&&
this[0].ownerDocument||p).createTextNode(a)):f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return f.isFunction(a)?this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=
f(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&
this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,
b){for(var d=0,c;(c=this[d])!=null;d++)if(!a||f.filter(a,[c]).length)!b&&c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),f.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!f.support.noCloneEvent&&!f.isXMLDoc(this)){var a=this.outerHTML,b=this.ownerDocument;
if(!a)a=b.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML;return f.clean([a.replace(ua,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(Z,"")],b)[0]}else return this.cloneNode(!0)});a===!0&&(n(this,b),n(this.find("*"),b.find("*")));return b},html:function(a){if(a===void 0)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ua,""):null;else if(typeof a==="string"&&!la.test(a)&&(f.support.leadingWhitespace||!Z.test(a))&&!T[(wa.exec(a)||["",""])[1].toLowerCase()]){a=
a.replace(va,xa);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1)f.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a}catch(c){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var d=f(this),c=d.html();d.empty().append(function(){return a.call(this,b,c)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var d=f(this),c=d.html();d.replaceWith(a.call(this,b,c))});
typeof a!=="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;f(this).remove();b?f(b).before(a):f(d).append(a)})}else return this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,d){var c,e,j=a[0],h=[],g;if(!f.support.checkClone&&arguments.length===3&&typeof j==="string"&&ma.test(j))return this.each(function(){f(this).domManip(a,b,d,!0)});if(f.isFunction(j))return this.each(function(c){var e=
f(this);a[0]=j.call(this,c,b?e.html():void 0);e.domManip(a,b,d)});if(this[0]){c=j&&j.parentNode;c=f.support.parentNode&&c&&c.nodeType===11&&c.childNodes.length===this.length?{fragment:c}:r(a,this,h);g=c.fragment;if(e=g.childNodes.length===1?g=g.firstChild:g.firstChild){b=b&&f.nodeName(e,"tr");e=0;for(var i=this.length;e<i;e++)d.call(b?f.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],e>0||c.cacheable||
this.length>1?g.cloneNode(!0):g)}h.length&&f.each(h,l)}return this}});f.fragments={};f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(d){var c=[],d=f(d),e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1)return d[b](this[0]),this;else{for(var e=0,j=d.length;e<j;e++){var h=(e>0?this.clone(!0):this).get();f.fn[b].apply(f(d[e]),h);c=c.concat(h)}return this.pushStack(c,
a,d.selector)}}});f.extend({clean:function(a,b,d,c){b=b||p;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||p);for(var e=[],j=0,h;(h=a[j])!=null;j++)if(typeof h==="number"&&(h+=""),h){if(typeof h==="string"&&!Ha.test(h))h=b.createTextNode(h);else if(typeof h==="string"){h=h.replace(va,xa);var g=(wa.exec(h)||["",""])[1].toLowerCase(),i=T[g]||T._default,n=i[0],q=b.createElement("div");for(q.innerHTML=i[1]+h+i[2];n--;)q=q.lastChild;if(!f.support.tbody){n=Ga.test(h);
g=g==="table"&&!n?q.firstChild&&q.firstChild.childNodes:i[1]==="<table>"&&!n?q.childNodes:[];for(i=g.length-1;i>=0;--i)f.nodeName(g[i],"tbody")&&!g[i].childNodes.length&&g[i].parentNode.removeChild(g[i])}!f.support.leadingWhitespace&&Z.test(h)&&q.insertBefore(b.createTextNode(Z.exec(h)[0]),q.firstChild);h=q.childNodes}h.nodeType?e.push(h):e=f.merge(e,h)}if(d)for(j=0;e[j];j++)c&&f.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript")?c.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):
e[j]):(e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(f.makeArray(e[j].getElementsByTagName("script")))),d.appendChild(e[j]));return e},cleanData:function(a){for(var b,d,c=f.cache,e=f.event.special,j=f.support.deleteExpando,h=0,g;(g=a[h])!=null;h++)if(d=g[f.expando]){b=c[d];if(b.events)for(var i in b.events)e[i]?f.event.remove(g,i):oa(g,i,b.handle);j?delete g[f.expando]:g.removeAttribute&&g.removeAttribute(f.expando);delete c[d]}}});var Ia=/z-?index|font-?weight|opacity|zoom|line-?height/i,ya=
/alpha\([^)]*\)/,za=/opacity=([^)]*)/,fa=/float/i,ga=/-([a-z])/ig,Ja=/([A-Z])/g,Ka=/^-?\d+(?:px)?$/i,La=/^-?\d/,Ma={position:"absolute",visibility:"hidden",display:"block"},Na=["Left","Right"],Oa=["Top","Bottom"],Pa=p.defaultView&&p.defaultView.getComputedStyle,Aa=f.support.cssFloat?"cssFloat":"styleFloat",ha=function(a,b){return b.toUpperCase()};f.fn.css=function(a,b){return g(this,a,b,!0,function(a,b,d){if(d===void 0)return f.curCSS(a,b);typeof d==="number"&&!Ia.test(b)&&(d+="px");f.style(a,b,d)})};
f.extend({style:function(a,b,d){if(a&&!(a.nodeType===3||a.nodeType===8)){if((b==="width"||b==="height")&&parseFloat(d)<0)d=void 0;var c=a.style||a,e=d!==void 0;if(!f.support.opacity&&b==="opacity"){if(e)c.zoom=1,b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")",a=c.filter||f.curCSS(a,"filter")||"",c.filter=ya.test(a)?a.replace(ya,b):b;return c.filter&&c.filter.indexOf("opacity=")>=0?parseFloat(za.exec(c.filter)[1])/100+"":""}fa.test(b)&&(b=Aa);b=b.replace(ga,ha);e&&(c[b]=d);return c[b]}},
css:function(a,b,d,c){if(b==="width"||b==="height"){var e,j=b==="width"?Na:Oa,d=function(){e=b==="width"?a.offsetWidth:a.offsetHeight;c!=="border"&&f.each(j,function(){c||(e-=parseFloat(f.curCSS(a,"padding"+this,!0))||0);c==="margin"?e+=parseFloat(f.curCSS(a,"margin"+this,!0))||0:e-=parseFloat(f.curCSS(a,"border"+this+"Width",!0))||0})};a.offsetWidth!==0?d():f.swap(a,Ma,d);return Math.max(0,Math.round(e))}return f.curCSS(a,b,d)},curCSS:function(a,b,d){var c,e=a.style;if(!f.support.opacity&&b==="opacity"&&
a.currentStyle)return c=za.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"",c===""?"1":c;fa.test(b)&&(b=Aa);if(!d&&e&&e[b])c=e[b];else if(Pa){fa.test(b)&&(b="float");b=b.replace(Ja,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;(a=e.getComputedStyle(a,null))&&(c=a.getPropertyValue(b));b==="opacity"&&c===""&&(c="1")}else if(a.currentStyle&&(d=b.replace(ga,ha),c=a.currentStyle[b]||a.currentStyle[d],!Ka.test(c)&&La.test(c))){var b=e.left,j=a.runtimeStyle.left;a.runtimeStyle.left=
a.currentStyle.left;e.left=d==="fontSize"?"1em":c||0;c=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}return c},swap:function(a,b,d){var f={},c;for(c in b)f[c]=a.style[c],a.style[c]=b[c];d.call(a);for(c in b)a.style[c]=f[c]}});if(f.expr&&f.expr.filters)f.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,c=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!c?!0:b>0&&d>0&&!c?!1:f.curCSS(a,"display")==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)};
var Qa=c(),Ra=/<script(.|\s)*?\/script>/gi,Sa=/select|textarea/i,Ta=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,X=/=\?(&|$)/,ia=/\?/,Ua=/(\?|&)_=.*?(&|$)/,Va=/^(\w+:)?\/\/([^\/?#]+)/,Wa=/%20/g,Xa=f.fn.load;f.fn.extend({load:function(a,b,d){if(typeof a!=="string")return Xa.call(this,a);else if(!this.length)return this;var c=a.indexOf(" ");if(c>=0)var e=a.slice(c,a.length),a=a.slice(0,c);c="GET";b&&(f.isFunction(b)?(d=b,b=null):typeof b==="object"&&
(b=f.param(b,f.ajaxSettings.traditional),c="POST"));var j=this;f.ajax({url:a,type:c,dataType:"html",data:b,complete:function(a,b){if(b==="success"||b==="notmodified")j.html(e?f("<div />").append(a.responseText.replace(Ra,"")).find(e):a.responseText);d&&j.each(d,[a.responseText,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&
!this.disabled&&(this.checked||Sa.test(this.nodeName)||Ta.test(this.type))}).map(function(a,b){var d=f(this).val();return d==null?null:f.isArray(d)?f.map(d,function(a){return{name:b.name,value:a}}):{name:b.name,value:d}}).get()}});f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}});f.extend({get:function(a,b,d,c){f.isFunction(b)&&(c=c||d,d=b,b=null);return f.ajax({type:"GET",url:a,data:b,success:d,dataType:c})},
getScript:function(a,b){return f.get(a,null,b,"script")},getJSON:function(a,b,d){return f.get(a,b,d,"json")},post:function(a,b,d,c){f.isFunction(b)&&(c=c||d,d=b,b={});return f.ajax({type:"POST",url:a,data:b,success:d,dataType:c})},ajaxSetup:function(a){f.extend(f.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:a.XMLHttpRequest&&(a.location.protocol!=="file:"||!a.ActiveXObject)?function(){return new a.XMLHttpRequest}:
function(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}},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(b){function d(){h.success&&h.success.call(q,n,i,o);h.global&&j("ajaxSuccess",[o,h])}function e(){h.complete&&h.complete.call(q,o,i);h.global&&j("ajaxComplete",[o,h]);h.global&&!--f.active&&f.event.trigger("ajaxStop")}
function j(a,b){(h.context?f(h.context):f.event).trigger(a,b)}var h=f.extend(!0,{},f.ajaxSettings,b),g,i,n,q=b&&b.context||h,r=h.type.toUpperCase();if(h.data&&h.processData&&typeof h.data!=="string")h.data=f.param(h.data,h.traditional);if(h.dataType==="jsonp"){if(r==="GET")X.test(h.url)||(h.url+=(ia.test(h.url)?"&":"?")+(h.jsonp||"callback")+"=?");else if(!h.data||!X.test(h.data))h.data=(h.data?h.data+"&":"")+(h.jsonp||"callback")+"=?";h.dataType="json"}if(h.dataType==="json"&&(h.data&&X.test(h.data)||
X.test(h.url))){g=h.jsonpCallback||"jsonp"+Qa++;if(h.data)h.data=(h.data+"").replace(X,"="+g+"$1");h.url=h.url.replace(X,"="+g+"$1");h.dataType="script";a[g]=a[g]||function(b){n=b;d();e();a[g]=void 0;try{delete a[g]}catch(f){}y&&y.removeChild(L)}}if(h.dataType==="script"&&h.cache===null)h.cache=!1;if(h.cache===!1&&r==="GET"){var l=c(),m=h.url.replace(Ua,"$1_="+l+"$2");h.url=m+(m===h.url?(ia.test(h.url)?"&":"?")+"_="+l:"")}h.data&&r==="GET"&&(h.url+=(ia.test(h.url)?"&":"?")+h.data);h.global&&!f.active++&&
f.event.trigger("ajaxStart");l=(l=Va.exec(h.url))&&(l[1]&&l[1]!==location.protocol||l[2]!==location.host);if(h.dataType==="script"&&r==="GET"&&l){var y=p.getElementsByTagName("head")[0]||p.documentElement,L=p.createElement("script");L.src=h.url;if(h.scriptCharset)L.charset=h.scriptCharset;if(!g){var u=!1;L.onload=L.onreadystatechange=function(){if(!u&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"))u=!0,d(),e(),L.onload=L.onreadystatechange=null,y&&L.parentNode&&y.removeChild(L)}}y.insertBefore(L,
y.firstChild)}else{var s=!1,o=h.xhr();if(o){h.username?o.open(r,h.url,h.async,h.username,h.password):o.open(r,h.url,h.async);try{(h.data||b&&b.contentType)&&o.setRequestHeader("Content-Type",h.contentType),h.ifModified&&(f.lastModified[h.url]&&o.setRequestHeader("If-Modified-Since",f.lastModified[h.url]),f.etag[h.url]&&o.setRequestHeader("If-None-Match",f.etag[h.url])),l||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Accept",h.dataType&&h.accepts[h.dataType]?h.accepts[h.dataType]+
", */*":h.accepts._default)}catch(x){}if(h.beforeSend&&h.beforeSend.call(q,o,h)===!1)return h.global&&!--f.active&&f.event.trigger("ajaxStop"),o.abort(),!1;h.global&&j("ajaxSend",[o,h]);var t=o.onreadystatechange=function(a){if(!o||o.readyState===0||a==="abort"){if(s||e(),s=!0,o)o.onreadystatechange=f.noop}else if(!s&&o&&(o.readyState===4||a==="timeout")){s=!0;o.onreadystatechange=f.noop;i=a==="timeout"?"timeout":!f.httpSuccess(o)?"error":h.ifModified&&f.httpNotModified(o,h.url)?"notmodified":"success";
var b;if(i==="success")try{n=f.httpData(o,h.dataType,h)}catch(c){i="parsererror",b=c}i==="success"||i==="notmodified"?g||d():f.handleError(h,o,i,b);e();a==="timeout"&&o.abort();h.async&&(o=null)}};try{var ba=o.abort;o.abort=function(){o&&ba.call(o);t("abort")}}catch(w){}h.async&&h.timeout>0&&setTimeout(function(){o&&!s&&t("timeout")},h.timeout);try{o.send(r==="POST"||r==="PUT"||r==="DELETE"?h.data:null)}catch(v){f.handleError(h,o,null,v),e()}h.async||t();return o}}},handleError:function(a,b,d,c){a.error&&
a.error.call(a.context||a,b,d,c);a.global&&(a.context?f(a.context):f.event).trigger("ajaxError",[b,a,c])},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!1},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),c=a.getResponseHeader("Etag");d&&(f.lastModified[b]=d);c&&(f.etag[b]=c);return a.status===304||a.status===0},httpData:function(a,b,d){var c=a.getResponseHeader("content-type")||
"",e=b==="xml"||!b&&c.indexOf("xml")>=0,a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&f.error("parsererror");d&&d.dataFilter&&(a=d.dataFilter(a,b));typeof a==="string"&&(b==="json"||!b&&c.indexOf("json")>=0?a=f.parseJSON(a):(b==="script"||!b&&c.indexOf("javascript")>=0)&&f.globalEval(a));return a},param:function(a,b){function d(a,e){f.isArray(e)?f.each(e,function(e,h){b||/\[\]$/.test(a)?c(a,h):d(a+"["+(typeof h==="object"||f.isArray(h)?e:"")+"]",h)}):!b&&e!=null&&
typeof e==="object"?f.each(e,function(b,f){d(a+"["+b+"]",f)}):c(a,e)}function c(a,b){b=f.isFunction(b)?b():b;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}var e=[];if(b===void 0)b=f.ajaxSettings.traditional;if(f.isArray(a)||a.jquery)f.each(a,function(){c(this.name,this.value)});else for(var h in a)d(h,a[h]);return e.join("&").replace(Wa,"+")}});var ja={},Ya=/toggle|show|hide/,Za=/^([+-]=)?([\d+-.]+)(.*)$/,aa,na=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width",
"marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];f.fn.extend({show:function(a,b){if(a||a===0)return this.animate(h("show",3),a,b);else{for(var d=0,c=this.length;d<c;d++){var e=f.data(this[d],"olddisplay");this[d].style.display=e||"";if(f.css(this[d],"display")==="none"){var e=this[d].nodeName,j;if(ja[e])j=ja[e];else{var g=f("<"+e+" />").appendTo("body");j=g.css("display");j==="none"&&(j="block");g.remove();ja[e]=j}f.data(this[d],"olddisplay",j)}}d=0;for(c=this.length;d<c;d++)this[d].style.display=
f.data(this[d],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(h("hide",3),a,b);else{for(var d=0,c=this.length;d<c;d++){var e=f.data(this[d],"olddisplay");!e&&e!=="none"&&f.data(this[d],"olddisplay",f.css(this[d],"display"))}d=0;for(c=this.length;d<c;d++)this[d].style.display="none";return this}},_toggle:f.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=
d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(h("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,c){var e=f.speed(b,d,c);return f.isEmptyObject(a)?this.each(e.complete):this[e.queue===!1?"each":"queue"](function(){var b=f.extend({},e),d,c=this.nodeType===1&&f(this).is(":hidden"),h=this;for(d in a){var j=d.replace(ga,ha);d!==j&&(a[j]=a[d],delete a[d],d=j);if(a[d]===
"hide"&&c||a[d]==="show"&&!c)return b.complete.call(this);if((d==="height"||d==="width")&&this.style)b.display=f.css(this,"display"),b.overflow=this.style.overflow;if(f.isArray(a[d]))(b.specialEasing=b.specialEasing||{})[d]=a[d][1],a[d]=a[d][0]}if(b.overflow!=null)this.style.overflow="hidden";b.curAnim=f.extend({},a);f.each(a,function(d,e){var j=new f.fx(h,b,d);if(Ya.test(e))j[e==="toggle"?c?"show":"hide":e](a);else{var g=Za.exec(e),i=j.cur(!0)||0;if(g){var n=parseFloat(g[2]),q=g[3]||"px";q!=="px"&&
(h.style[d]=(n||1)+q,i*=(n||1)/j.cur(!0),h.style[d]=i+q);g[1]&&(n=(g[1]==="-="?-1:1)*n+i);j.custom(i,n,q)}else j.custom(i,e,"")}});return!0})},stop:function(a,b){var d=f.timers;a&&this.queue([]);this.each(function(){for(var a=d.length-1;a>=0;a--)if(d[a].elem===this){if(b)d[a](!0);d.splice(a,1)}});b||this.dequeue();return this}});f.each({slideDown:h("show",1),slideUp:h("hide",1),slideToggle:h("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){f.fn[a]=function(a,d){return this.animate(b,
a,d)}});f.extend({speed:function(a,b,d){var c=a&&typeof a==="object"?a:{complete:d||!d&&b||f.isFunction(a)&&a,duration:a,easing:d&&b||b&&!f.isFunction(b)&&b};c.duration=f.fx.off?0:typeof c.duration==="number"?c.duration:f.fx.speeds[c.duration]||f.fx.speeds._default;c.old=c.complete;c.complete=function(){c.queue!==!1&&f(this).dequeue();f.isFunction(c.old)&&c.old.call(this)};return c},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],
fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(f.fx.step[this.prop]||f.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){return this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)?this.elem[this.prop]:(a=parseFloat(f.css(this.elem,this.prop,a)))&&a>
-1E4?a:parseFloat(f.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function e(a){return h.step(a)}this.startTime=c();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=this;e.elem=this.elem;e()&&f.timers.push(e)&&!aa&&(aa=setInterval(f.fx.tick,13))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());f(this.elem).show()},hide:function(){this.options.orig[this.prop]=
f.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=c(),d=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(d=!1);if(d){if(this.options.display!=null&&(this.elem.style.overflow=this.options.overflow,a=f.data(this.elem,"olddisplay"),this.elem.style.display=a?a:this.options.display,f.css(this.elem,"display")===
"none"))this.elem.style.display="block";this.options.hide&&f(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)f.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}else h=b-this.startTime,this.state=h/this.options.duration,a=this.options.easing||(f.easing.swing?"swing":"linear"),this.pos=f.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,h,0,1,this.options.duration),this.now=this.start+
(this.end-this.start)*this.pos,this.update();return!0}};f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},stop:function(){clearInterval(aa);aa=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});if(f.expr&&
f.expr.filters)f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length};f.fn.offset="getBoundingClientRect"in p.documentElement?function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var d=b.getBoundingClientRect(),c=b.ownerDocument,b=c.body,c=c.documentElement;return{top:d.top+(self.pageYOffset||f.support.boxModel&&c.scrollTop||
b.scrollTop)-(c.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||f.support.boxModel&&c.scrollLeft||b.scrollLeft)-(c.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var d=b.offsetParent,c=b.ownerDocument,e,h=c.documentElement,j=c.body;e=(c=c.defaultView)?c.getComputedStyle(b,null):b.currentStyle;for(var g=
b.offsetTop,i=b.offsetLeft;(b=b.parentNode)&&b!==j&&b!==h;){if(f.offset.supportsFixedPosition&&e.position==="fixed")break;e=c?c.getComputedStyle(b,null):b.currentStyle;g-=b.scrollTop;i-=b.scrollLeft;if(b===d){g+=b.offsetTop;i+=b.offsetLeft;if(f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!/^t(able|d|h)$/i.test(b.nodeName)))g+=parseFloat(e.borderTopWidth)||0,i+=parseFloat(e.borderLeftWidth)||0;d=b.offsetParent}f.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"&&
(g+=parseFloat(e.borderTopWidth)||0,i+=parseFloat(e.borderLeftWidth)||0)}if(e.position==="relative"||e.position==="static")g+=j.offsetTop,i+=j.offsetLeft;f.offset.supportsFixedPosition&&e.position==="fixed"&&(g+=Math.max(h.scrollTop,j.scrollTop),i+=Math.max(h.scrollLeft,j.scrollLeft));return{top:g,left:i}};f.offset={initialize:function(){var a=p.body,b=p.createElement("div"),d,c,e,h=parseFloat(f.curCSS(a,"marginTop",!0))||0;f.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;c=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=c.offsetTop!==5;this.doesAddBorderForTableAndCells=
e.offsetTop===5;c.style.position="fixed";c.style.top="20px";this.supportsFixedPosition=c.offsetTop===20||c.offsetTop===15;c.style.position=c.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=c.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;f.offset.initialize();f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.curCSS(a,
"marginTop",!0))||0,d+=parseFloat(f.curCSS(a,"marginLeft",!0))||0);return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(f.curCSS(a,"position")))a.style.position="relative";var c=f(a),e=c.offset(),h=parseInt(f.curCSS(a,"top",!0),10)||0,j=parseInt(f.curCSS(a,"left",!0),10)||0;f.isFunction(b)&&(b=b.call(a,d,e));d={top:b.top-e.top+h,left:b.left-e.left+j};"using"in b?b.using.call(a,d):c.css(d)}};f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=
this.offset(),c=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(f.curCSS(a,"marginTop",!0))||0;d.left-=parseFloat(f.curCSS(a,"marginLeft",!0))||0;c.top+=parseFloat(f.curCSS(b[0],"borderTopWidth",!0))||0;c.left+=parseFloat(f.curCSS(b[0],"borderLeftWidth",!0))||0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||p.body;a&&!/^body|html$/i.test(a.nodeName)&&f.css(a,"position")==="static";)a=a.offsetParent;
return a})}});f.each(["Left","Top"],function(a,b){var d="scroll"+b;f.fn[d]=function(b){var c=this[0],e;return!c?null:b!==void 0?this.each(function(){(e=q(this))?e.scrollTo(!a?b:f(e).scrollLeft(),a?b:f(e).scrollTop()):this[d]=b}):(e=q(c))?"pageXOffset"in e?e[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&e.document.documentElement[d]||e.document.body[d]:c[d]}});f.each(["Height","Width"],function(a,b){var d=b.toLowerCase();f.fn["inner"+b]=function(){return this[0]?f.css(this[0],d,!1,"padding"):
null};f.fn["outer"+b]=function(a){return this[0]?f.css(this[0],d,!1,a?"margin":"border"):null};f.fn[d]=function(a){var c=this[0];return!c?a==null?null:this:f.isFunction(a)?this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))}):"scrollTo"in c&&c.document?c.document.compatMode==="CSS1Compat"&&c.document.documentElement["client"+b]||c.document.body["client"+b]:c.nodeType===9?Math.max(c.documentElement["client"+b],c.body["scroll"+b],c.documentElement["scroll"+b],c.body["offset"+b],c.documentElement["offset"+
b]):a===void 0?f.css(c,d):this.css(d,typeof a==="string"?a:a+"px")}});a.jQuery=a.$=f})(window);
(function(a){a.isEmailAddress=function(a){return a.match(/^.*[0-9a-z].*@[a-z0-9]([-a-z0-9]+[a-z0-9])?\.[a-z][a-z]+$/i)};a.isHTTPURL=function(m){return a.isURL(m,["http://"])};a.isURL=function(a,l){l=(l||["http://","ftp://","mailto:"]).join("|");alphanum="[a-zA-Z0-9]";unreserved="[a-zA-Z0-9_.!~*'()-]";encoded="(%[0-9a-fA-F]{2})";reserved="[;/?:@&=+$,]";ipaddress="(((2([0-4][0-9]|5[0-5])|[01]?[0-9]?[0-9])\\.){3}((2([0-4][0-9]|5[0-5])|[01]?[0-9]?[0-9])))";domain_tertiary="("+alphanum+"([a-zA-Z0-9-]{0,61}"+
alphanum+")?\\.)*";domain_secondary="("+alphanum+"([a-zA-Z0-9-]{0,61}"+alphanum+")?\\.)";domain_toplevel="([a-zA-Z](([a-zA-Z0-9-]*)[a-zA-Z0-9])?)";scheme="("+l+")";userinfo="(("+unreserved+"|"+encoded+"|[;&=+$,])+(:("+unreserved+"|"+encoded+"|[;:&=+$,])+)?@)?";address="(localhost|"+ipaddress+"|"+domain_tertiary+domain_secondary+domain_toplevel+")";port_number="(:([0-5]?[0-9]{1,4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?";path="(/(;?("+unreserved+"|"+encoded+"|[:@&=+$,])+/?)*)?";querystring=
"(\\?("+reserved+"|"+unreserved+"|"+encoded+")*)?";fragment="(#("+reserved+"|"+unreserved+"|"+encoded+")*)?";regex=("^"+scheme+userinfo+address+port_number+path+querystring+fragment+"$").replace(/\//g,"\\/");return RegExp(regex).test(a)}})(jQuery);
(function(a){function m(g){var c;return g&&g.constructor==Array&&g.length==3?g:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g))?[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:
(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:l[a.trim(g).toLowerCase()]}a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,c){a.fx.step[c]=function(e){if(e.state==0){var g;g=e.elem;var b=c,d;do{d=a.curCSS(g,b);if(d!=""&&d!="transparent"||a.nodeName(g,"body"))break;b="backgroundColor"}while(g=g.parentNode);g=m(d);e.start=g;e.end=m(e.end)}e.elem.style[c]=
"rgb("+[Math.max(Math.min(parseInt(e.pos*(e.end[0]-e.start[0])+e.start[0]),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[1]-e.start[1])+e.start[1]),255),0),Math.max(Math.min(parseInt(e.pos*(e.end[2]-e.start[2])+e.start[2]),255),0)].join(",")+")"}});var l={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);
jQuery.cookie=function(a,m,l){if(typeof m!="undefined"){l=l||{};if(m===null)m="",l.expires=-1;var g="";if(l.expires&&(typeof l.expires=="number"||l.expires.toUTCString))typeof l.expires=="number"?(g=new Date,g.setTime(g.getTime()+l.expires*864E5)):g=l.expires,g="; expires="+g.toUTCString();var c=l.path?"; path="+l.path:"",e=l.domain?"; domain="+l.domain:"",l=l.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(m),g,c,e,l].join("")}else{m=null;if(document.cookie&&document.cookie!=""){l=
document.cookie.split(";");for(g=0;g<l.length;g++)if(c=jQuery.trim(l[g]),c.substring(0,a.length+1)==a+"="){m=decodeURIComponent(c.substring(a.length+1));break}}return m}};
(function(a){a.fn.customSelect=function(){if(!a.browser.msie||a.browser.version>6)return this.each(function(){var m=function(a){return a.replace(/^\s+/,"")||"\u00a0"},l=a(this).find(":selected"),g=a("<span/>").addClass("select");g.css({display:"inline-block",position:"relative",margin:a(this).css("margin")});g=a(this).wrap(g).closest(".select");a("<span/>").addClass("pointer").css({position:"absolute",top:0,bottom:0,right:0}).prependTo(g);a("<span/>").addClass("value").css({position:"absolute",top:0,
left:0,bottom:0}).text(m(l.text())).prependTo(g);a(this).addClass("customized").css({display:"inline-block",padding:0,border:0,fontSize:"inherit",margin:0,opacity:0,position:"relative",zIndex:999});g.children(":first-child").css({lineHeight:g.height()?g.height()+"px":"normal"});a(this).change(function(){g.children(":first-child").text(m(a(this).find(":selected").text()))})})}})(jQuery);
(function(a){var m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");a.uuid=function(a,g){var c=[],g=g||m.length;if(a)for(var e=0;e<a;e++)c[e]=m[0|Math.random()*g];else{var i;c[8]=c[13]=c[18]=c[23]="-";c[14]="4";for(e=0;e<36;e++)c[e]||(i=0|Math.random()*16,c[e]=m[e==19?i&3|8:i])}return c.join("")}})(jQuery);(function(a){a.k=function(a){return a}})(jQuery);
(function(a,m){function l(a){return typeof a==="string"}function g(a){var d=b.call(arguments,1);return function(){return a.apply(this,d.concat(b.call(arguments)))}}function c(b,c,f,e,h){var g;e!==void 0?(c=f.match(b?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),f=c[3]||"",h===2&&l(e)?e=e.replace(b?J:A,""):(g=r(c[2]),e=l(e)?r[b?t:x](e):e,e=h===2?e:h===1?a.extend({},e,g):a.extend({},g,e),e=j(e),b&&(e=e.replace(G,d))),b=c[1]+(b?"#":e||!c[1]?"?":"")+e+f):b=c(f!==void 0?f:m[w][v]);return b}function e(a,
b,d){b===void 0||typeof b==="boolean"?(d=b,b=j[a?t:x]()):b=l(b)?b.replace(a?J:A,""):b;return r(b,d)}function i(b,d,c,f){!l(c)&&typeof c!=="object"&&(f=c,c=d,d=void 0);return this.each(function(){var e=a(this),h=d||u()[(this.nodeName||"").toLowerCase()]||"",g=h&&e.attr(h)||"";e.attr(h,j[b](g,c,f))})}var b=Array.prototype.slice,d=decodeURIComponent,j=a.param,n,r,h,q=a.bbq=a.bbq||{},f,y,u,p=a.event.special,x="querystring",t="fragment",w="location",v="href",A=/^.*\?|#.*$/g,J=/^.*\#/,G,B={};j[x]=g(c,0,
function(a){return a.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")});j[t]=n=g(c,1,function(a){return a.replace(/^[^#]*#?(.*)$/,"$1")});n.noEscape=function(b){b=a.map((b||"").split(""),encodeURIComponent);G=RegExp(b.join("|"),"g")};n.noEscape(",/");a.deparam=r=function(b,c){var f={},e={"true":!0,"false":!1,"null":null};a.each(b.replace(/\+/g," ").split("&"),function(b,h){var o;var k;var j,g=h.split("=");j=d(g[0]);var i=f,n=0,q=j.split("]["),r=q.length-1;/\[/.test(q[0])&&/\]$/.test(q[r])?(q[r]=q[r].replace(/\]$/,
""),q=q.shift().split("[").concat(q),r=q.length-1):r=0;if(g.length===2)if(g=d(g[1]),c&&(g=g&&!isNaN(g)?+g:g==="undefined"?void 0:e[g]!==void 0?e[g]:g),r)for(;n<=r;n++)j=q[n]===""?i.length:q[n],k=(o=i[j]=n<r?i[j]||(q[n+1]&&isNaN(q[n+1])?{}:[]):g,j=o),i=k;else a.isArray(f[j])?f[j].push(g):f[j]=f[j]!==void 0?[f[j],g]:g;else j&&(f[j]=c?void 0:"")});return f};r[x]=g(e,0);r[t]=h=g(e,1);a.elemUrlAttr||(a.elemUrlAttr=function(b){return a.extend(B,b)})({a:v,base:v,iframe:"src",img:"src",input:"src",form:"action",
link:v,script:"src"});u=a.elemUrlAttr;a.fn[x]=g(i,x);a.fn[t]=g(i,t);q.pushState=f=function(a,b){l(a)&&/^#/.test(a)&&b===void 0&&(b=2);var d=a!==void 0,d=n(m[w][v],d?a:{},d?b:2);m[w][v]=d+(/#/.test(d)?"":"#")};q.getState=y=function(a,b){return a===void 0||typeof a==="boolean"?h(a):h(b)[a]};q.removeState=function(b){var d={};b!==void 0&&(d=y(),a.each(a.isArray(b)?b:arguments,function(a,b){delete d[b]}));f(d,2)};p.hashchange=a.extend(p.hashchange,{add:function(b){function d(a){var b=a[t]=n();a.getState=
function(a,d){return a===void 0||typeof a==="boolean"?r(b,a):r(b,d)[a]};c.apply(this,arguments)}var c;if(a.isFunction(b))return c=b,d;else c=b.handler,b.handler=d}})})(jQuery,this);
(function(a,m,l){function g(a){a=a||m[i][b];return a.replace(/^[^#]*#?(.*)$/,"$1")}var c,e=a.event.special,i="location",b="href",d=document.documentMode,j=a.browser.msie&&(d===l||d<8),n="onhashchange"in m&&!j;a.hashchangeDelay=100;e.hashchange=a.extend(e.hashchange,{setup:function(){if(n)return!1;a(c.start)},teardown:function(){if(n)return!1;a(c.stop)}});c=function(){function d(){n=l=function(a){return a};if(j)f=a('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,l=function(){return g(f.document[i][b])},
n=function(a,b){if(a!==b){var d=f.document;d.open().close();d[i].hash="#"+a}},n(g())}var c={},e,f,n,l;c.start=function(){if(!e){var c=g();n||d();(function t(){var d=g(),f=l(c);d!==c?(n(c=d,f),a(m).trigger("hashchange")):f!==c&&(m[i][b]=m[i][b].replace(/#.*/,"")+"#"+f);e=setTimeout(t,a.hashchangeDelay)})()}};c.stop=function(){f||(e&&clearTimeout(e),e=0)};return c}()})(jQuery,this);
(function(a){a.escape=function(m,l){l=a.extend({html:!0,strip:!1},l);m+="";var g=[];l.html&&(g=l.strip?a.merge(g,[[/<[^>]+(>|$)/g,""]]):a.merge(g,[[/</g,"&lt;"],[/>/g,"&gt;"]]));a.each(g,function(){m=m.replace(this[0],this[1])});return m}})(jQuery);
(function(a){function m(c){c=c.split("?");return{path:decodeURIComponent(c[0]),params:a.deparam(c[1]||"")}}function l(c,e){var i=m(c),b=e?[e]:g,d=a.grep(g,function(a){return!a.is_default&&i.path.match(a.compiled)}).length===0;a.each(b,function(b,c){var e={};matches=i.path.match(c.compiled);if(c.callback&&d&&c.is_default||matches&&!c.is_default){for(b=1;b<matches.length;b++)e[c.params[b-1]]=matches[b];e=a.extend(i.params,e);c.callback(e)}})}var g=[];a.napkin={go:function(c,e){e===void 0&&typeof c!=
"string"&&(e=c,c=void 0);var g=c||"";e&&(g=(g?"?":"")+a.param(e));a.bbq.pushState("#"+g)},route:function(c,e,i){c=a.isArray(c)?c:[c];i=a.extend(!0,{requirements:{}},i||{});a.each(c,function(b,d){var c=/[^\/]+/,n=[],d=this===window?"":d,r=d==="",h=r?".*":d,q=d.match(/:([a-zA-Z_]+)/g);q&&a.each(q,function(a,b){var d=b.substr(1);n.push(d);d="("+(i.requirements[d]||c).toString().split("/").slice(1,-1).join("/")+")";h=h.replace(b,d)});d={compiled:RegExp("^"+h+"$"),callback:e,is_default:r,params:n,route:d};
d.is_default||!g.length||!g[g.length-1].is_default?g.push(d):g.splice(g.length-1,0,d);l(location.hash.substr(1),d)})}};a(window).bind("hashchange",function(a){l(a.fragment)})})(jQuery);
(function(a){function m(a){var e=a.data("pin-clone");e&&e.remove();a.css({position:"",top:"","z-index":""}).removeClass("pinned");return a}function l(){a(g).each(function(){var c=a(this),e=c.offset().top-a(document).scrollTop(),g=c.data("pin-opts"),b=c.is(".pinned");!b&&e<=g.offset?(e=c.clone().css({border:0,padding:0,height:c.outerHeight(),margin:0,overflow:"hidden",width:c.outerWidth(),visibility:"hidden"}).removeAttr("id"),g=c.data("pin-opts"),c.css({position:"fixed",top:g.offset,"z-index":9999}).addClass("pinned").after(e).data("pin-clone",
e)):b&&c.data("pin-clone").offset().top-a(document).scrollTop()>g.offset&&m(c)})}var g=[];a(window).bind("scroll resize",l);a.fn.pin=function(c){c=a.extend({offset:0},c);a(this).each(function(){a(this).data("pin-opts",c);g.push(this)});l();return this};a.fn.unpin=function(){a(this).each(function(){var c=a.inArray(this,g);c>=0&&(m(a(this)).removeData("pin-clone"),g.splice(c,1))});return this}})(jQuery);
(function(a){a.fn.quotes=function(){function m(){if(b){b=!1;var d=function(){g=c;paused||(e=setTimeout(m,interval));b=!0};if(g){var c=g.next("li"),c=c.length?c:g.siblings("li").first();g.parent().css({height:g.height()});g.css({opacity:1});c.css({opacity:0}).show();g.animate({opacity:0},animation_time,function(){g.parent().animate({height:c.height()},animation_time*0.33,function(){l();c.animate({opacity:1},animation_time,d)})})}else{var n=0;i.find("li").each(function(b){b!==0&&a(this).css({position:"absolute",
top:0,left:0});b=a(this).height();n=Math.max(b,n)});$wrapper.css({height:n});c=i.find(" > li:first");d();l()}}}function l(){c?g&&g.hide():(c=a("<ul>").addClass("pages").insertAfter(g.parent()),g.parent().children("li").each(function(){a('<li><span class="bullet">\u25cf</span><span class="paused">Paused</span></li>').appendTo(c)}));c.children("li").removeClass("selected");g.parent().children("li").each(function(b){a(this).css("display")!=="none"&&c.children("li").eq(b).addClass("selected")})}var g,
c,e,i=a(this).find(" > ul:first"),b=!0;animation_time=1E3;interval=5E3;paused=!1;$wrapper=a(this).first();switch(i.find("li").length){case 0:a(this).remove();case 1:return}i.hover(function(){(paused=!paused)?(c.addClass("paused"),clearTimeout(e)):(c.removeClass("paused"),m())});m()}})(jQuery);
(function(a){var m={as_needed:!1,complete:a.noop,duration:500,offset:0,to:null,until:null};a.fn.smooth=function(l){l=a.extend({},m,l);a(this).each(function(){var g=a(this),c=g.attr("href").replace(/^[^#]+/,"")||l.to;c&&c.length>1&&g.click(function(e){a.smooth(c,l);e.preventDefault()})});return this};a.smooth=function(l,g){var g=a.extend({},m,g),c=a(l).first()||a(g.to).first();if(c.length){var e=g.until?a(g.until).first():null,e=c.offset().top-(e?e.outerHeight():0)-parseInt(g.offset),c=e+c.outerHeight();
if(g.as_needed){var i=a(document).scrollTop(),b=i+a("html").height(),d=e>=i&&e<=b,j=b-i;if(d&&c>=i&&c<=b)return;else offset=!d&&e<i||c-e>j?e:c-j}else offset=e;a("html, body").animate({scrollTop:offset},g.duration,g.complete)}}})(jQuery);
(function(a){a.fn.toToggle=function(){a(this).each(function(){var m,l=a(this),g,c=l.is(":disabled");l.closest("div.toggle").length==0&&(l.removeClass("toggle"),m=this.id?a("label[for="+this.id+"]"):null,g=a('<div class="toggle"></div>'),c&&g.addClass("disabled"),g.insertBefore(l).append('<div class="knob"></div>','<div class="mask"></div>','<div class="values"></div>',l,m),l.is(":checked")&&g.addClass("selected"),g.bind("mousedown",function(a){a.which===1&&!g.hasClass("disabled")&&(g.toggleClass("selected"),
g.hasClass("selected")?l.attr("checked","checked"):l.removeAttr("checked"),l.change())}))})}})(jQuery);
(function(a){function m(a){if(a.attr("title")||typeof a.attr("original-title")!="string")a.attr("original-title",a.attr("title")||"").removeAttr("title")}function l(g,c){this.$element=a(g);this.options=c;this.enabled=!0;m(this.$element)}l.prototype={show:function(){var g=this.getTitle();if(g&&this.enabled){var c=this.tip();c.find(".tipsy-inner")[this.options.html?"html":"text"](g);c[0].className="tipsy";c.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var g=
a.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),e=c[0].offsetWidth,i=c[0].offsetHeight,b=typeof this.options.gravity=="function"?this.options.gravity.call(this.$element[0]):this.options.gravity,d;switch(b.charAt(0)){case "n":d={top:g.top+g.height+this.options.offset,left:g.left+g.width/2-e/2};break;case "s":d={top:g.top-i-this.options.offset,left:g.left+g.width/2-e/2};break;case "e":d={top:g.top+g.height/2-i/2,left:g.left-e-this.options.offset};
break;case "w":d={top:g.top+g.height/2-i/2,left:g.left+g.width+this.options.offset}}if(b.length==2)d.left=b.charAt(1)=="w"?g.left+g.width/2-15:g.left+g.width/2-e+15;c.css(d).addClass("tipsy-"+b);this.options.fade?c.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):c.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){a(this).remove()}):this.tip().remove()},getTitle:function(){var a,
c=this.$element,e=this.options;m(c);e=this.options;typeof e.title=="string"?a=c.attr(e.title=="title"?"original-title":e.title):typeof e.title=="function"&&(a=e.title.call(c[0]));return(""+a).replace(/(^\s*|\s*$)/,"")||e.fallback},tip:function(){if(!this.$tip)this.$tip=a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"/></div>');return this.$tip},validate:function(){this.$element[0].parentNode||this.hide()},enable:function(){this.enabled=!0},disable:function(){this.enabled=
!1},toggleEnabled:function(){this.enabled=!this.enabled}};a.fn.tipsy=function(g){function c(b){var d=a.data(b,"tipsy");d||(d=new l(b,a.fn.tipsy.elementOptions(b,g)),a.data(b,"tipsy",d));return d}function e(){var a=c(this);a.hoverState="in";g.delayIn==0?a.show():setTimeout(function(){a.hoverState=="in"&&a.show()},g.delayIn)}function i(){var a=c(this);a.hoverState="out";g.delayOut==0?a.hide():setTimeout(function(){a.hoverState=="out"&&a.hide()},g.delayOut)}if(g===!0)return this.data("tipsy");else if(typeof g==
"string")return this.data("tipsy")[g]();g=a.extend({},a.fn.tipsy.defaults,g);g.live||this.each(function(){c(this)});if(g.trigger!="manual"){var b=g.live?"live":"bind",d=g.trigger=="hover"?"mouseleave":"blur";this[b](g.trigger=="hover"?"mouseenter":"focus",e)[b](d,i)}return this};a.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover"};a.fn.tipsy.elementOptions=function(g,c){return a.metadata?a.extend({},c,a(g).metadata()):
c};a.fn.tipsy.autoNS=function(){return a(this).offset().top>a(document).scrollTop()+a(window).height()/2?"s":"n"};a.fn.tipsy.autoWE=function(){return a(this).offset().left>a(document).scrollLeft()+a(window).width()/2?"e":"w"}})(jQuery);
(function(a){function m(g){var c=[].slice.call(arguments,1),e=0,g=a.event.fix(g||window.event);g.type="mousewheel";g.wheelDelta&&(e=g.wheelDelta/120);g.detail&&(e=-g.detail/3);c.unshift(g,e);return a.event.handle.apply(this,c)}var l=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=l.length;a;)this.addEventListener(l[--a],m,!1);else this.onmousewheel=m},teardown:function(){if(this.removeEventListener)for(var a=l.length;a;)this.removeEventListener(l[--a],
m,!1);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
(function(a){function m(){p.hide();O.onerror=O.onload=null;P&&P.abort();u.empty()}function l(){a.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})}function g(){m();var b=I[B];s=a.extend({},a.fn.fancybox.defaults,typeof a(b).data("fancybox")=="undefined"?s:a(b).data("fancybox"));var d,f,h=b.title||a(b).title||s.title||"";if(b.nodeName&&!s.orig)s.orig=a(b).children("img:first").length?
a(b).children("img:first"):a(b);h==""&&s.orig&&(h=s.orig.attr("alt"));d=b.nodeName&&/^(?:javascript|#)/i.test(b.href)?s.href||null:s.href||b.href||null;if(s.type){if(f=s.type,!d)d=s.content}else s.content?f="html":d?d.match(M)?f="image":d.match(W)?f="swf":a(b).hasClass("iframe")?f="iframe":d.match(/#/)?(b=d.substr(d.indexOf("#")),f=a(b).length>0?"inline":"ajax"):f="ajax":f="inline";s.type=f;s.href=d;s.title=h;if(s.autoDimensions&&s.type!=="iframe"&&s.type!=="swf")s.width="auto",s.height="auto";if(s.modal)s.overlayShow=
!0,s.hideOnOverlayClick=!1,s.hideOnContentClick=!1,s.enableEscapeButton=!1,s.showCloseButton=!1;if(a.isFunction(s.onStart)&&s.onStart(I,B,s)===!1)D=!1;else switch(u.css("padding",Q+s.padding+s.margin),a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(v.children())}),f){case "html":u.html(s.content);c();break;case "inline":a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(b)).bind("fancybox-cleanup",function(){a(this).replaceWith(v.children())}).bind("fancybox-cancel",
function(){a(this).replaceWith(u.children())});a(b).appendTo(u);c();break;case "image":D=!1;a.fancybox.showActivity();O=new Image;O.onerror=function(){l()};O.onload=function(){O.onerror=null;O.onload=null;D=!0;s.width=O.width;s.height=O.height;a("<img />").attr({id:"fancybox-img",src:O.src,alt:s.title}).appendTo(u);e()};O.src=d;break;case "swf":var j="",g="";j+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+s.width+'" height="'+s.height+'"><param name="movie" value="'+d+'"></param>';
a.each(s.swf,function(a,b){j+='<param name="'+a+'" value="'+b+'"></param>';g+=" "+a+'="'+b+'"'});j+='<embed src="'+d+'" type="application/x-shockwave-flash" width="'+s.width+'" height="'+s.height+'"'+g+"></embed></object>";u.html(j);c();break;case "ajax":b=d.split("#",2);f=s.ajax.data||{};if(b.length>1)d=b[0],typeof f=="string"?f+="&selector="+b[1]:f.selector=b[1];D=!1;a.fancybox.showActivity();P=a.ajax(a.extend(s.ajax,{url:d,data:f,error:l,success:function(a){P.status==200&&(u.html(a),c())}}));break;
case "iframe":a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+s.scrolling+'" src="'+s.href+'"></iframe>').appendTo(u),e()}}function c(){u.width(s.width);u.height(s.height);if(s.width=="auto")s.width=u.width();if(s.height=="auto")s.height=u.height();e()}function e(){p.hide();if(t.is(":visible")&&a.isFunction(o.onCleanup)&&o.onCleanup(E,K,o)===!1)a.event.trigger("fancybox-cancel"),D=!1;else{E=I;K=B;o=s;v.get(0).scrollTop=0;v.get(0).scrollLeft=
0;if(o.overlayShow){if(U)a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});x.css({"background-color":o.overlayColor,opacity:o.overlayOpacity}).unbind().show()}z=d();q();if(t.is(":visible")){a(A.add(J).add(G)).hide();var c=t.position();C={top:c.top,left:c.left,width:t.width(),height:t.height()};var f=C.width==z.width&&C.height==z.height;v.fadeOut(o.changeFade,
function(){a.event.trigger("fancybox-change");v.css({top:o.padding,left:o.padding,width:Math.max(C.width-o.padding*2,1),height:Math.max(C.height-o.padding*2,1)}).empty().css("overflow","hidden");S.prop=0;a(S).animate({prop:1},{duration:f?0:o.changeSpeed,easing:o.easingChange,step:i,complete:function(){v.html(u.contents()).fadeIn(o.changeFade,b)}})})}else if(t.css("opacity",1),o.transitionIn=="elastic"){C=j();v.css({top:o.padding,left:o.padding,width:Math.max(C.width-o.padding*2,1),height:Math.max(C.height-
o.padding*2,1)}).html(u.contents());t.css(C).show();if(o.opacity)z.opacity=0;S.prop=0;a(S).animate({prop:1},{duration:o.speedIn,easing:o.easingIn,step:i,complete:b})}else v.css({top:o.padding,left:o.padding,width:Math.max(z.width-o.padding*2,1),height:Math.max(z.height-o.padding*2-R,1)}).html(u.contents()),t.css(z).fadeIn(o.transitionIn=="none"?0:o.speedIn,b)}}function i(a){var b=Math.round(C.width+(z.width-C.width)*a),d=Math.round(C.height+(z.height-C.height)*a);t.css({width:b+"px",height:d+"px",
top:Math.round(C.top+(z.top-C.top)*a)+"px",left:Math.round(C.left+(z.left-C.left)*a)+"px"});b=Math.max(b-o.padding*2,0);d=Math.max(d-(o.padding*2+R*a),0);v.css({width:b+"px",height:d+"px"});typeof z.opacity!=="undefined"&&t.css("opacity",a<0.5?0.5:a)}function b(){v.css("overflow",overflow=o.scrolling=="auto"?o.type=="image"||o.type=="iframe"||o.type=="swf"?"hidden":"auto":o.scrolling=="yes"?"auto":"visible");a.support.opacity||(v.get(0).style.removeAttribute("filter"),t.get(0).style.removeAttribute("filter"));
a("#fancybox-title").show();if(o.hideOnContentClick)v.one("click",a.fancybox.close);if(o.hideOnOverlayClick)x.one("click",a.fancybox.close);o.showCloseButton&&A.show();n();a(window).bind("resize.fb",a.fancybox.center);o.centerOnScroll?a(window).bind("scroll.fb",a.fancybox.center):a(window).unbind("scroll.fb");if(a.isFunction(o.onComplete))o.onComplete(E,K,o);D=!1;if(E.length-1>K){var b=E[K+1].href;if(typeof b!=="undefined"&&b.match(M)){var d=new Image;d.src=b}}if(K>0&&(b=E[K-1].href,typeof b!=="undefined"&&
b.match(M)))d=new Image,d.src=b}function d(){var a=h(),b={},d=o.margin,c=o.autoScale,f=(Q+d)*2,e=(Q+d)*2,j=o.padding*2;o.width.toString().indexOf("%")>-1?(b.width=a[0]*parseFloat(o.width)/100-Q*2,c=!1):b.width=o.width+j;o.height.toString().indexOf("%")>-1?(b.height=a[1]*parseFloat(o.height)/100-Q*2,c=!1):b.height=o.height+j;if(c&&(b.width>a[0]-f||b.height>a[1]-e))s.type=="image"||s.type=="swf"?(f+=j,e+=j,c=Math.min(Math.min(a[0]-f,o.width)/o.width,Math.min(a[1]-e,o.height)/o.height),b.width=Math.round(c*
(b.width-j))+j,b.height=Math.round(c*(b.height-j))+j):(b.width=Math.min(b.width,a[0]-f),b.height=Math.min(b.height,a[1]-e));b.top=a[3]+(a[1]-(b.height+Q*2))*0.5;b.left=a[2]+(a[0]-(b.width+Q*2))*0.5;if(o.autoScale==!1)b.top=Math.max(a[3]+d,b.top),b.left=Math.max(a[2]+d,b.left);return b}function j(){var b=s.orig?a(s.orig):!1,d={};b&&b.length?(d=b.offset(),d.top+=parseFloat(b.css("paddingTop"))||0,d.left+=parseFloat(b.css("paddingLeft"))||0,d.top+=parseFloat(b.css("border-top-width"))||0,d.left+=parseFloat(b.css("border-left-width"))||
0,d.width=b.width(),d.height=b.height(),d={width:d.width+o.padding*2,height:d.height+o.padding*2,top:d.top-o.padding-Q,left:d.left-o.padding-Q}):(b=h(),d={width:1,height:1,top:b[3]+b[1]*0.5,left:b[2]+b[0]*0.5});return d}function n(){a(document).unbind("keydown.fb").bind("keydown.fb",function(b){b.keyCode==27&&o.enableEscapeButton?(b.preventDefault(),a.fancybox.close()):b.keyCode==37?(b.preventDefault(),a.fancybox.prev()):b.keyCode==39&&(b.preventDefault(),a.fancybox.next())});a.fn.mousewheel&&(t.unbind("mousewheel.fb"),
E.length>1&&t.bind("mousewheel.fb",function(b,d){b.preventDefault();D||d==0||(d>0?a.fancybox.prev():a.fancybox.next())}));o.showNavArrows&&((o.cyclic&&E.length>1||K!=0)&&J.show(),(o.cyclic&&E.length>1||K!=E.length-1)&&G.show())}function r(){p.is(":visible")?(a("div",p).css("top",N*-40+"px"),N=(N+1)%12):clearInterval(H)}function h(){return[a(window).width(),a(window).height(),a(document).scrollLeft(),a(document).scrollTop()]}function q(){a("#fancybox-title").remove();R=0;if(o.titleShow!=!1){var b=
o.title;if((b=a.isFunction(o.titleFormat)?o.titleFormat(b,E,K,o):f(b))&&b!=""){var d=z.width-o.padding*2;a('<div id="fancybox-title" class="fancybox-title-'+o.titlePosition+'" />').css({width:d,paddingLeft:o.padding,paddingRight:o.padding}).html(b).appendTo("body");switch(o.titlePosition){case "inside":R=a("#fancybox-title").outerHeight(!0)-o.padding;z.height+=R;break;case "over":a("#fancybox-title").css("bottom",o.padding);break;default:a("#fancybox-title").css("bottom",a("#fancybox-title").outerHeight(!0)*
-1)}a("#fancybox-title").appendTo(w).hide();U&&a("#fancybox-title span").fixPNG()}}}function f(a){if(a&&a.length)switch(o.titlePosition){case "inside":return a;case "over":return'<span id="fancybox-title-over">'+a+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span>'}return!1}function y(){a("#fancybox-wrap").length||(a("body").append(u=a('<div id="fancybox-tmp"></div>'),
p=a('<div id="fancybox-loading"><div></div></div>'),x=a('<div id="fancybox-overlay"></div>'),t=a('<div id="fancybox-wrap"></div>')),w=a('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(t),
w.append(v=a('<div id="fancybox-inner"></div>'),A=a('<a id="fancybox-close"></a>'),J=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),G=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),A.click(a.fancybox.close),p.click(a.fancybox.cancel),J.click(function(b){b.preventDefault();a.fancybox.prev()}),G.click(function(b){b.preventDefault();a.fancybox.next()}),a.support.opacity||w.find(".fancy-bg").fixPNG(),
U&&(a(A.add(".fancy-ico").add("div",p)).fixPNG(),x.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'"),p.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'"),w.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')))}
var u,p,x,t,w,v,A,J,G,B=0,s={},I=[],K=0,o={},E=[],P=null,O=new Image,M=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,H,N=1,C,z,D=!1,Q=20,S=a.extend(a("<div/>")[0],{prop:0}),R=0,U=!a.support.opacity&&!window.XMLHttpRequest;a.fn.fixPNG=function(){return this.each(function(){var b=a(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i))b=RegExp.$1,a(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(a(this).css("backgroundRepeat")==
"no-repeat"?"crop":"scale")+", src='"+b+"')"}).each(function(){var b=a(this).css("position");b!="absolute"&&b!="relative"&&a(this).css("position","relative")}).css("zoom",1)})};a.fn.fancybox=function(b){a(this).data("fancybox",a.extend({},b));a(this).unbind("click.fb").bind("click.fb",function(b){b.preventDefault();a.fancybox.open(this)});return this};a.fancybox=function(b,d){if(!D){D=!0;I=[];B=0;if(a.isArray(b)){for(var c=0,f=b.length;c<f;c++)typeof b[c]=="object"?a(b[c]).data("fancybox",a.extend({},
d,b[c])):b[c]=a({}).data("fancybox",a.extend({content:b[c]},d));I=jQuery.merge(I,b)}else typeof b=="object"?a(b).data("fancybox",a.extend({},d,b)):b=a({}).data("fancybox",a.extend({content:b},d)),I.push(b);g()}};a.fancybox.showActivity=function(){clearInterval(H);p.show();H=setInterval(r,66)};a.fancybox.hideActivity=function(){p.hide()};a.fancybox.next=function(){return a.fancybox.pos(K+1)};a.fancybox.prev=function(){return a.fancybox.pos(K-1)};a.fancybox.open=function(b){if(!D){D=!0;a(b).blur();
I=[];B=0;var d=a(b).attr("rel")||"";!d||d==""||d==="nofollow"?I.push(b):(I=a("a[rel="+d+"], area[rel="+d+"]"),B=I.index(b));g();return!1}};a.fancybox.pos=function(a){D||(a=parseInt(a),a>-1&&E.length>a&&(B=a,g()),o.cyclic&&E.length>1&&a<0&&(B=E.length-1,g()),o.cyclic&&E.length>1&&a>=E.length&&(B=0,g()))};a.fancybox.cancel=function(){if(!D){D=!0;a.event.trigger("fancybox-cancel");m();if(s&&a.isFunction(s.onCancel))s.onCancel(I,B,s);D=!1}};a.fancybox.close=function(){function b(){x.fadeOut("fast");t.hide();
a.event.trigger("fancybox-cleanup");v.empty();if(a.isFunction(o.onClosed))o.onClosed(E,K,o);E=s=[];K=B=0;o=s={};D=!1}if(!D&&!t.is(":hidden"))if(D=!0,o&&a.isFunction(o.onCleanup)&&o.onCleanup(E,K,o)===!1)D=!1;else if(m(),a(A.add(J).add(G)).hide(),a("#fancybox-title").remove(),t.add(v).add(x).unbind(),a(window).unbind("resize.fb scroll.fb"),a(document).unbind("keydown.fb"),v.css("overflow","hidden"),o.transitionOut=="elastic"){C=j();var d=t.position();z={top:d.top,left:d.left,width:t.width(),height:t.height()};
if(o.opacity)z.opacity=1;S.prop=1;a(S).animate({prop:0},{duration:o.speedOut,easing:o.easingOut,step:i,complete:b})}else t.fadeOut(o.transitionOut=="none"?0:o.speedOut,b)};a.fancybox.resize=function(){if(!D&&!t.is(":hidden")){D=!0;var b=v.wrapInner("<div style='overflow:auto'></div>").children(),d=b.height();t.css({height:d+o.padding*2+R});v.css({height:d});b.replaceWith(b.children());a.fancybox.center()}};a.fancybox.center=function(){D=!0;var a=h(),b=o.margin,d={};d.top=a[3]+(a[1]-(t.height()-R+
Q*2))*0.5;d.left=a[2]+(a[0]-(t.width()+Q*2))*0.5;d.top=Math.max(a[3]+b,d.top);d.left=Math.max(a[2]+b,d.left);t.css(d);D=!1};a.fn.fancybox.defaults={padding:10,margin:20,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:0.3,overlayColor:"#666",titleShow:!0,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",
speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};a(document).ready(function(){y()})})(jQuery);
(function(a){function m(){var e;e=a(this);if(!e.data("timeago")){e.data("timeago",{datetime:c.datetime(e)});var g=a.trim(e.text());g.length>0&&e.attr("title",g)}e=e.data("timeago");isNaN(e.datetime)||a(this).text(l(e.datetime));return this}function l(a){return c.inWords((new Date).getTime()-a.getTime())}function g(c,g){return(a.isFunction(c)?c(g):c).replace(/%d/i,g)}a.timeago=function(c){return c instanceof Date?l(c):typeof c=="string"?l(a.timeago.parse(c)):l(a.timeago.datetime(c))};var c=a.timeago;
a.extend(a.timeago,{settings:{refreshMillis:6E4,allowFuture:!1,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",ago:null,fromNow:null,seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years"}},inWords:function(c){var i=this.settings.strings,b=i.prefixAgo,d=i.suffixAgo||i.ago;if(this.settings.allowFuture){if(c<
0)b=i.prefixFromNow,d=i.suffixFromNow||i.fromNow;c=Math.abs(c)}c/=1E3;var j=c/60,n=j/60,r=n/24,h=r/365,i=c<45&&g(i.seconds,Math.round(c))||c<90&&g(i.minute,1)||j<45&&g(i.minutes,Math.round(j))||j<90&&g(i.hour,1)||n<24&&g(i.hours,Math.round(n))||n<48&&g(i.day,1)||r<30&&g(i.days,Math.floor(r))||r<60&&g(i.month,1)||r<365&&g(i.months,Math.floor(r/30))||h<2&&g(i.year,1)||g(i.years,Math.floor(h));return a.trim([b,i,d].join(" "))},parse:function(c){c=a.trim(c);c=c.replace(/-/,"/").replace(/-/,"/");c=c.replace(/T/,
" ").replace(/Z/," UTC");c=c.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(c)},datetime:function(e){e=a(e).get(0).tagName.toLowerCase()=="time"?a(e).attr("datetime"):a(e).attr("title");return c.parse(e)}});a.fn.timeago=function(){var a=this;a.each(m);var g=c.settings;g.refreshMillis>0&&setInterval(function(){a.each(m)},g.refreshMillis);return a};document.createElement("abbr");document.createElement("time")})(jQuery);
(function(a){function m(a){a<10&&(a="0"+a);return a}function l(a){return a>11?"pm":"am"}function g(a){for(a=new Date(a,0,1);a.getDay()!=1;)a.setDate(a.getDate()+1);return a.valueOf()}function c(a){a==0?a=24:a>12&&(a-=12);return a}var e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["January","February","March","April","May","June","July","August","September","October","November","December"];a.PHPDate=function(a,d){for(var j="",n="",a=a.replace(/r/g,"D, j M Y H:i:s O"),
r=0;r<a.length;r++){j=a.charAt(r);switch(j){case "a":j=l(d.getHours());break;case "c":var j=d.getFullYear()+"-"+m(d.getMonth())+"-"+m(d.getDate())+"T"+m(d.getHours())+":"+m(d.getMinutes())+":"+m(d.getSeconds()),h=d.toString().split(" ")[5];j+=h.indexOf("-")>-1?h.substr(h.indexOf("-")):h.indexOf("+")>-1?h.substr(h.indexOf("+")):"+0000";break;case "d":j=m(d.getDate());break;case "g":j=c(d.getHours());break;case "h":j=m(c(d.getHours()));break;case "i":j=m(d.getMinutes());break;case "j":j=d.getDate();
break;case "l":j=e[d.getDay()];break;case "m":j=m(d.getMonth()+1);break;case "n":j=d.getMonth()+1;break;case "o":new Date(g(d.getFullYear()))>d?j=d.getFullYear()-1:j=d.getFullYear();break;case "s":j=m(d.getSeconds());break;case "t":j=new Date(d.valueOf());j.setMonth(j.getMonth()+1);j.setDate(0);j=j.getDate();break;case "u":j=d.getMilliseconds();break;case "w":j=d.getDay();break;case "y":j=d.getFullYear().toString().substr(2,2);break;case "z":j=new Date(d.getFullYear(),0,1,0,0,0,0);h=new Date(d.getFullYear(),
d.getMonth(),d.getDate(),0,0,0,0);j=Math.round((h.valueOf()-j.valueOf())/1E3/60/60/24);break;case "A":j=l(d.getHours()).toUpperCase();break;case "B":j=Math.floor((d.getHours()*36E5+d.getMinutes()*6E4+d.getSeconds()*1E3+d.getMilliseconds())/86400);break;case "D":j=e[d.getDay()].substr(0,3);break;case "F":j=i[d.getMonth()];break;case "G":j=d.getHours();break;case "H":j=m(d.getHours());break;case "I":var h=new Date(d.getFullYear(),0,1),q=new Date(d.getFullYear(),d.getMonth(),d.getDate()),h=(q.valueOf()-
h.valueOf())/1E3/60/60/24;h==Math.round(h)?j=0:j=1;break;case "L":(new Date(d.getFullYear(),2,0)).getDate()==29?j=1:j=0;break;case "M":j=i[d.getMonth()].substr(0,3);break;case "N":d.getDay()==0?j=7:j=d.getDay();break;case "O":h=d.toString().split(" ")[5];j=h.indexOf("-")>-1?h.substr(h.indexOf("-")):h.indexOf("+")>-1?h.substr(h.indexOf("+")):"+0000";break;case "P":h=d.toString().split(" ")[5];h.indexOf("-")>-1?(j=h.substr(h.indexOf("-")+1).split(""),j="-"+j[0]+j[1]+":"+j[2]+j[3]):h.indexOf("+")>-1?
(j=h.substr(h.indexOf("+")+1).split(""),j="+"+j[0]+j[1]+":"+j[2]+j[3]):j="+00:00";break;case "S":j=d.getDate();h="th";switch(parseInt(j)){case 1:case 21:case 31:h="st";break;case 2:case 22:h="nd";break;case 3:case 23:h="rd"}j=h;break;case "T":h=d.toString().split(" ");j=h[4]+(h.length>6?" "+h[6]:"");/([A-Z]+)/.test(j)?j=j.match(/([A-Z]+)/)[1]:(j=h[5],j.indexOf("+")>-1?j=j.substr(0,j.indexOf("+")):j.indexOf("-")>-1&&(j=j.substr(0,j.indexOf("-"))));break;case "U":j=Math.floor(d.getTime()/1E3);break;
case "W":h=new Date(g(d.getFullYear()));q=new Date(d.getFullYear(),d.getMonth(),d.getDate());j=Math.ceil(Math.round((q.valueOf()-h.valueOf())/1E3/60/60/24)/7);break;case "Y":j=d.getFullYear();break;case "Z":d.getTimezoneOffset()<0?j=Math.abs(d.getTimezoneOffset()*60):j=0-d.getTimezoneOffset()*60}n+=j.toString()}return n}})(jQuery);
jQuery.vsprintf=function(a,m){function l(a,b,d){if(b==void 0)return a=="s"?"":"0";var c,f="",e="",h=" ";if(d["short"]||d["long"]||d.long_long)switch(a){case "e":case "f":case "G":case "E":case "G":case "d":d["short"]?b>=32767?b=32767:b<=-32768&&(b=-32768):d["long"]?b>=2147483647?b=2147483647:b<=-2147483648&&(b=-2147483648):b>=9223372036854774784?b=9223372036854774784:b<=-9223372036854774784-1&&(b=-9223372036854774784-1);break;case "X":case "B":case "u":case "o":case "x":case "b":b<0&&(b=Math.abs(b)-
1),d["short"]?b>=65535&&(b=65535):d["long"]?b>=4294967295&&(b=4294967295):b>=1.8446744073709552E19&&(b=1.8446744073709552E19)}switch(a){case "c":c=String.fromCharCode(parseInt(b));break;case "s":c=b.toString();break;case "d":c=(new Number(parseInt(b))).toString();break;case "u":c=(new Number(parseInt(b))).toString();break;case "o":c=(new Number(parseInt(b))).toString(8);break;case "x":c=(new Number(parseInt(b))).toString(16);break;case "B":case "b":c=(new Number(parseInt(b))).toString(2);break;case "e":c=
d.precision?d.precision:6;c=(new Number(b)).toExponential(c).toString();break;case "f":c=d.precision?d.precision:6;c=(new Number(b)).toFixed(c).toString();break;case "g":c=d.precision?d.precision:6;c=(new Number(b)).toPrecision(c).toString();break;case "X":c=(new Number(parseInt(b))).toString(16).toUpperCase();break;case "E":c=d.precision?d.precision:6;c=(new Number(b)).toExponential(c).toString().toUpperCase();break;case "G":c=d.precision?d.precision:6,c=(new Number(b)).toPrecision(c).toString().toUpperCase()}d["+"]&&
parseFloat(b)>0&&["d","e","f","g","E","G"].indexOf(a)!=-1&&(f="+");d[" "]&&parseFloat(b)>0&&["d","e","f","g","E","G"].indexOf(a)!=-1&&(f=" ");if(d["#"]&&parseInt(b)!=0)switch(a){case "o":f="0";break;case "x":case "X":f="0x";break;case "b":f="0b";break;case "B":f="0B"}d["0"]&&!d["-"]&&(h="0");if(d.width&&d.width>c.length+f.length){a=d.width-c.length-f.length;for(b=0;b<a;++b)e+=h}d["-"]&&!d["0"]?c+=e:c=e+c;return f+c}if(a==null)throw"Not enough arguments for vsprintf";m==null&&(m=[]);for(var g="",c=
0,e=0,i={"long":!1,"short":!1,long_long:!1},b=!1,d=!1,j=!1,n=!1,r=!1,h=!1,q=".",f=0;f<a.length;++f){var y=a.charAt(f);if(b){switch(y){case "i":y="d";break;case "D":i["long"]=!0;y="d";break;case "U":i["long"]=!0;y="u";break;case "O":i["long"]=!0;y="o";break;case "F":y="f"}switch(y){case "c":case "s":case "d":case "u":case "o":case "x":case "e":case "f":case "g":case "X":case "E":case "G":case "b":case "B":e=m[e];if(r){r=e;if(e instanceof Array)r=e;else if(typeof e=="string"||e instanceof String)r=
e.split("").map(function(a){return a.charCodeAt()});else if((typeof e=="number"||e instanceof Number)&&i.bitwidth){r=[];do r.unshift(e&~(-1<<i.bitwidth));while(e>>>=i.bitwidth)}else r=e.toString().split("").map(function(a){return a.charCodeAt()});g+=r.map(function(a){return l(y,a,i)}).join(q)}else g+=l(y,e,i);n||++c;e=c;i={};h=r=n=j=b=d=!1;q=".";break;case "v":r=!0;break;case " ":case "0":case "-":case "+":case "#":i[y]=!0;break;case "*":d=!0;break;case ".":j=!0;break;case "@":h=!0;break;case "l":i["long"]?
(i.long_long=!0,i["long"]=!1):(i["long"]=!0,i.long_long=!1);i["short"]=!1;break;case "q":case "L":i.long_long=!0;i["long"]=!1;i["short"]=!1;break;case "h":i["short"]=!0,i["long"]=!1,i.long_long=!1}if(/\d/.test(y)){var u=parseInt(a.substr(f));f+=u.toString().length-1;if(a.charAt(f+1)=="$"){if(u<0||u>m.length)throw"out of bound";d?(j?(i.precision=m[u-1],j=!1):a.charAt(f+2)=="v"?q=m[u-1]:i.width=m[u-1],d=!1):(n=!0,e=u-1);++f}else j?(i.precision=u,j=!1):h?(i.bitwidth=u,h=!1):i.width=u}else if(d&&!/\d/.test(a.charAt(f+
1)))j?(i.precision=m[e],j=!1):a.charAt(f+1)=="v"?q=m[e]:i.width=m[e],++c,n||e++,d=!1}else y=="%"?a.charAt(f+1)=="%"?(g+="%",++f):b=!0:g+=y}return g};jQuery.sprintf=function(){if(arguments.length==0)throw"Not enough arguments for sprintf";var a=Array.prototype.slice.call(arguments),m=a.shift();return jQuery.vsprintf(m,a)};
jQuery.fn.printf=function(){if(arguments.length==0)throw"Not enough arguments for sprintf";var a=Array.prototype.slice.call(arguments),m=a.shift();return this.append(jQuery.vsprintf(m,a))};jQuery.fn.vprintf=function(a,m){if(arguments.length==0)throw"Not enough arguments for sprintf";return this.append(jQuery.vsprintf(a,m))};
jQuery.fn.vformat=function(a){if(arguments.length==0)throw"Not enough arguments for sprintf";return this.each(function(){self=jQuery(this);self.html(jQuery.vsprintf(self.html(),a))})};jQuery.fn.format=function(){if(arguments.length==0)throw"Not enough arguments for sprintf";var a=Array.prototype.slice.call(arguments);return this.each(function(){self=jQuery(this);self.html(jQuery.vsprintf(self.html(),a))})};
jQuery.printf=function(){if(arguments.length==0)throw"Not enough arguments for sprintf";var a=Array.prototype.slice.call(arguments),m=a.shift(),a=jQuery.vsprintf(m,a);window.console?window.console.info(a):window.dump(a)};jQuery.vprintf=function(a,m){if(arguments.length==0)throw"Not enough arguments for sprintf";var l=jQuery.vsprintf(a,m);window.console?window.console.info(l):window.dump(l)};
(function(a){var m={round:!1,simple:!1,decimal_separator:".",digit_separator:",",currency_sign:"$",fractional_currency_sign:"\u00a2",currency:{units:"mixed"},number:{suffixes:["K","M","B","T"]}};a.fmtSetup=function(l){m=a.extend(!0,m,l)};a.fmt={currency:function(l,g){g=a.extend({},m,m.currency,g);l=parseFloat(l)||0;if(g.units=="cents"||g.units=="mixed"&&Math.abs(l)<1)return a.fmt.number(Math.round(l*100))+g.fractional_currency_sign;else{g.round&&(l=Math.round(l));var c=this.sprintf("%.02f",l).split("."),
e=a.fmt.number(c[0],g);g.simple||(e+=g.decimal_separator+c[1]);return g.currency_sign+e}},date:function(l,g){arguments.length<this.length&&(g=arguments[0],l="r");var c={E:function(c,b){return a.timeago(b)}},e="";return a.map(l.split(""),function(i,b){if(c[i]){var d=(e.length?a.PHPDate(e,g):"")+c[i](e,g);e="";return d}else if(b==l.length-1)return a.PHPDate(e+i,g);e+=i}).join("")},number:function(l,g){var g=a.extend({},m,m.number,g),l=l===void 0||isNaN(l)?0:parseFloat(l,10),c=l+"",e="",i="";if(g.simple&&
typeof l=="number"&&l>-Infinity&&l<Infinity){for(c=0;c<g.suffixes.length;c++){if(l<1E3)break;i=g.suffixes[c];l/=1E3}l=this.sprintf("%.1f",l).replace(/\.0$/,"")}for(g.round?c=Math.round(l)+"":(e=(l+"").split("."),c=e[0],e=e.length>1?g.decimal_separator+e[1]:"");matches=c.match(/(\d+)(\d{3})/);)c=c.replace(matches[0],matches.slice(1).join(g.digit_separator));return c+e+i},percentage:function(a,g){return this.number(Math.round(a*1E4)/100,g)+"%"},sprintf:a.sprintf}})(jQuery);
(function(a){function m(g,c){var e=g.nodeName.toLowerCase();if("area"===e){var e=g.parentNode,i=e.name;if(!g.href||!i||e.nodeName.toLowerCase()!=="map")return!1;e=a("img[usemap=#"+i+"]")[0];return!!e&&l(e)}return(/input|select|textarea|button|object/.test(e)?!g.disabled:"a"==e?g.href||c:c)&&l(g)}function l(g){return!a(g).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.13",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({_focus:a.fn.focus,focus:function(g,c){return typeof g==="number"?this.each(function(){var e=this;setTimeout(function(){a(e).focus();
c&&c.call(e)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,
"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?a(document):g},zIndex:function(g){if(g!==void 0)return this.css("zIndex",g);if(this.length)for(var g=a(this[0]),c;g.length&&g[0]!==document;){c=g.css("position");if(c==="absolute"||c==="relative"||c==="fixed")if(c=parseInt(g.css("zIndex"),10),!isNaN(c)&&c!==0)return c;g=g.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(g,c){function e(b,d,c,e){a.each(i,function(){d-=parseFloat(a.curCSS(b,"padding"+this,!0))||0;c&&(d-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0);e&&(d-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return d}var i=c==="Width"?["Left","Right"]:["Top","Bottom"],b=c.toLowerCase(),d={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,
outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(j){return j===void 0?d["inner"+c].call(this):this.each(function(){a(this).css(b,e(this,j)+"px")})};a.fn["outer"+c]=function(j,g){return typeof j!=="number"?d["outer"+c].call(this,j):this.each(function(){a(this).css(b,e(this,j,!0,g)+"px")})}}),a.extend(a.expr[":"],{data:function(g,c,e){return!!a.data(g,e[3])},focusable:function(g){return m(g,!isNaN(a.attr(g,"tabindex")))},tabbable:function(g){var c=a.attr(g,"tabindex"),e=isNaN(c);return(e||c>=
0)&&m(g,!e)}}),a(function(){var g=document.body,c=g.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;g.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(g,c,e){var g=a.ui[g].prototype,i;for(i in e)g.plugins[i]=g.plugins[i]||[],g.plugins[i].push([c,e[i]])},call:function(a,c,e){if((c=a.plugins[c])&&a.element[0].parentNode)for(var i=
0;i<c.length;i++)a.options[c[i][0]]&&c[i][1].apply(a.element,e)}},contains:function(a,c){return document.compareDocumentPosition?a.compareDocumentPosition(c)&16:a!==c&&a.contains(c)},hasScroll:function(g,c){if(a(g).css("overflow")==="hidden")return!1;var e=c&&c==="left"?"scrollLeft":"scrollTop",i=!1;if(g[e]>0)return!0;g[e]=1;i=g[e]>0;g[e]=0;return i},isOverAxis:function(a,c,e){return a>c&&a<c+e},isOver:function(g,c,e,i,b,d){return a.ui.isOverAxis(g,e,b)&&a.ui.isOverAxis(c,i,d)}}))})(jQuery);
(function(a){function m(g,c){var e=g.nodeName.toLowerCase();if("area"===e){var e=g.parentNode,i=e.name;if(!g.href||!i||e.nodeName.toLowerCase()!=="map")return!1;e=a("img[usemap=#"+i+"]")[0];return!!e&&l(e)}return(/input|select|textarea|button|object/.test(e)?!g.disabled:"a"==e?g.href||c:c)&&l(g)}function l(g){return!a(g).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.13",
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({_focus:a.fn.focus,focus:function(g,c){return typeof g==="number"?this.each(function(){var e=this;setTimeout(function(){a(e).focus();
c&&c.call(e)},g)}):this._focus.apply(this,arguments)},scrollParent:function(){var g;g=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,
"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!g.length?a(document):g},zIndex:function(g){if(g!==void 0)return this.css("zIndex",g);if(this.length)for(var g=a(this[0]),c;g.length&&g[0]!==document;){c=g.css("position");if(c==="absolute"||c==="relative"||c==="fixed")if(c=parseInt(g.css("zIndex"),10),!isNaN(c)&&c!==0)return c;g=g.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(g,c){function e(b,d,c,e){a.each(i,function(){d-=parseFloat(a.curCSS(b,"padding"+this,!0))||0;c&&(d-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0);e&&(d-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return d}var i=c==="Width"?["Left","Right"]:["Top","Bottom"],b=c.toLowerCase(),d={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,
outerHeight:a.fn.outerHeight};a.fn["inner"+c]=function(j){return j===void 0?d["inner"+c].call(this):this.each(function(){a(this).css(b,e(this,j)+"px")})};a.fn["outer"+c]=function(j,g){return typeof j!=="number"?d["outer"+c].call(this,j):this.each(function(){a(this).css(b,e(this,j,!0,g)+"px")})}}),a.extend(a.expr[":"],{data:function(g,c,e){return!!a.data(g,e[3])},focusable:function(g){return m(g,!isNaN(a.attr(g,"tabindex")))},tabbable:function(g){var c=a.attr(g,"tabindex"),e=isNaN(c);return(e||c>=
0)&&m(g,!e)}}),a(function(){var g=document.body,c=g.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;g.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(g,c,e){var g=a.ui[g].prototype,i;for(i in e)g.plugins[i]=g.plugins[i]||[],g.plugins[i].push([c,e[i]])},call:function(a,c,e){if((c=a.plugins[c])&&a.element[0].parentNode)for(var i=
0;i<c.length;i++)a.options[c[i][0]]&&c[i][1].apply(a.element,e)}},contains:function(a,c){return document.compareDocumentPosition?a.compareDocumentPosition(c)&16:a!==c&&a.contains(c)},hasScroll:function(g,c){if(a(g).css("overflow")==="hidden")return!1;var e=c&&c==="left"?"scrollLeft":"scrollTop",i=!1;if(g[e]>0)return!0;g[e]=1;i=g[e]>0;g[e]=0;return i},isOverAxis:function(a,c,e){return a>c&&a<c+e},isOver:function(g,c,e,i,b,d){return a.ui.isOverAxis(g,e,b)&&a.ui.isOverAxis(c,i,d)}}))})(jQuery);
(function(a,m){if(a.cleanData){var l=a.cleanData;a.cleanData=function(c){for(var e=0,g;(g=c[e])!=null;e++)a(g).triggerHandler("remove");l(c)}}else{var g=a.fn.remove;a.fn.remove=function(c,e){return this.each(function(){e||(!c||a.filter(c,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return g.call(a(this),c,e)})}}a.widget=function(c,e,g){var b=c.split(".")[0],d,c=c.split(".")[1];d=b+"-"+c;if(!g)g=e,e=a.Widget;a.expr[":"][d]=function(b){return!!a.data(b,
c)};a[b]=a[b]||{};a[b][c]=function(a,b){arguments.length&&this._createWidget(a,b)};e=new e;e.options=a.extend(!0,{},e.options);a[b][c].prototype=a.extend(!0,e,{namespace:b,widgetName:c,widgetEventPrefix:a[b][c].prototype.widgetEventPrefix||c,widgetBaseClass:d},g);a.widget.bridge(c,a[b][c])};a.widget.bridge=function(c,e){a.fn[c]=function(g){var b=typeof g==="string",d=Array.prototype.slice.call(arguments,1),j=this,g=!b&&d.length?a.extend.apply(null,[!0,g].concat(d)):g;if(b&&g.charAt(0)==="_")return j;
b?this.each(function(){var b=a.data(this,c),e=b&&a.isFunction(b[g])?b[g].apply(b,d):b;if(e!==b&&e!==m)return j=e,!1}):this.each(function(){var b=a.data(this,c);b?b.option(g||{})._init():a.data(this,c,new e(g,this))});return j}};a.Widget=function(a,e){arguments.length&&this._createWidget(a,e)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(c,e){a.data(e,this.widgetName,this);this.element=a(e);this.options=a.extend(!0,{},this.options,this._getCreateOptions(),
c);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},
option:function(c,e){var g=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(e===m)return this.options[c];g={};g[c]=e}this._setOptions(g);return this},_setOptions:function(c){var e=this;a.each(c,function(a,b){e._setOption(a,b)});return this},_setOption:function(a,e){this.options[a]=e;a==="disabled"&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",
!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(c,e,g){var b=this.options[c],e=a.Event(e);e.type=(c===this.widgetEventPrefix?c:this.widgetEventPrefix+c).toLowerCase();g=g||{};if(e.originalEvent)for(var c=a.event.props.length,d;c;)d=a.event.props[--c],e[d]=e.originalEvent[d];this.element.trigger(e,g);return!(a.isFunction(b)&&b.call(this.element[0],e,g)===!1||e.isDefaultPrevented())}}})(jQuery);
(function(a){a.ui=a.ui||{};var m=/left|center|right/,l=/top|center|bottom/,g=a.fn.position,c=a.fn.offset;a.fn.position=function(c){if(!c||!c.of)return g.apply(this,arguments);var c=a.extend({},c),i=a(c.of),b=i[0],d=(c.collision||"flip").split(" "),j=c.offset?c.offset.split(" "):[0,0],n,r,h;b.nodeType===9?(n=i.width(),r=i.height(),h={top:0,left:0}):b.setTimeout?(n=i.width(),r=i.height(),h={top:i.scrollTop(),left:i.scrollLeft()}):b.preventDefault?(c.at="left top",n=r=0,h={top:c.of.pageY,left:c.of.pageX}):
(n=i.outerWidth(),r=i.outerHeight(),h=i.offset());a.each(["my","at"],function(){var a=(c[this]||"").split(" ");a.length===1&&(a=m.test(a[0])?a.concat(["center"]):l.test(a[0])?["center"].concat(a):["center","center"]);a[0]=m.test(a[0])?a[0]:"center";a[1]=l.test(a[1])?a[1]:"center";c[this]=a});d.length===1&&(d[1]=d[0]);j[0]=parseInt(j[0],10)||0;j.length===1&&(j[1]=j[0]);j[1]=parseInt(j[1],10)||0;c.at[0]==="right"?h.left+=n:c.at[0]==="center"&&(h.left+=n/2);c.at[1]==="bottom"?h.top+=r:c.at[1]==="center"&&
(h.top+=r/2);h.left+=j[0];h.top+=j[1];return this.each(function(){var b=a(this),f=b.outerWidth(),g=b.outerHeight(),i=parseInt(a.curCSS(this,"marginLeft",!0))||0,l=parseInt(a.curCSS(this,"marginTop",!0))||0,m=f+i+(parseInt(a.curCSS(this,"marginRight",!0))||0),t=g+l+(parseInt(a.curCSS(this,"marginBottom",!0))||0),w=a.extend({},h),v;c.my[0]==="right"?w.left-=f:c.my[0]==="center"&&(w.left-=f/2);c.my[1]==="bottom"?w.top-=g:c.my[1]==="center"&&(w.top-=g/2);w.left=Math.round(w.left);w.top=Math.round(w.top);
v={left:w.left-i,top:w.top-l};a.each(["left","top"],function(b,h){if(a.ui.position[d[b]])a.ui.position[d[b]][h](w,{targetWidth:n,targetHeight:r,elemWidth:f,elemHeight:g,collisionPosition:v,collisionWidth:m,collisionHeight:t,offset:j,my:c.my,at:c.at})});a.fn.bgiframe&&b.bgiframe();b.offset(a.extend(w,{using:c.using}))})};a.ui.position={fit:{left:function(c,g){var b=a(window),b=g.collisionPosition.left+g.collisionWidth-b.width()-b.scrollLeft();c.left=b>0?c.left-b:Math.max(c.left-g.collisionPosition.left,
c.left)},top:function(c,g){var b=a(window),b=g.collisionPosition.top+g.collisionHeight-b.height()-b.scrollTop();c.top=b>0?c.top-b:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,g){if(g.at[0]!=="center"){var b=a(window),b=g.collisionPosition.left+g.collisionWidth-b.width()-b.scrollLeft(),d=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,j=g.at[0]==="left"?g.targetWidth:-g.targetWidth,n=-2*g.offset[0];c.left+=g.collisionPosition.left<0?d+j+n:b>0?d+j+n:0}},top:function(c,
g){if(g.at[1]!=="center"){var b=a(window),b=g.collisionPosition.top+g.collisionHeight-b.height()-b.scrollTop(),d=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,j=g.at[1]==="top"?g.targetHeight:-g.targetHeight,n=-2*g.offset[1];c.top+=g.collisionPosition.top<0?d+j+n:b>0?d+j+n:0}}}};if(!a.offset.setOffset)a.offset.setOffset=function(c,g){if(/static/.test(a.curCSS(c,"position")))c.style.position="relative";var b=a(c),d=b.offset(),j=parseInt(a.curCSS(c,"top",!0),10)||0,n=parseInt(a.curCSS(c,
"left",!0),10)||0,d={top:g.top-d.top+j,left:g.left-d.left+n};"using"in g?g.using.call(c,d):b.css(d)},a.fn.offset=function(e){var g=this[0];return!g||!g.ownerDocument?null:e?this.each(function(){a.offset.setOffset(this,e)}):c.call(this)}})(jQuery);
(function(a,m){var l={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},g={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},c=a.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(c){var g=
a(this).css(c).offset().top;g<0&&a(this).css("top",c.top-g)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var c=this,g=c.options,b=g.title||"&#160;",d=a.ui.dialog.getTitleId(c.element),j=(c.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
g.dialogClass).css({zIndex:g.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(b){g.closeOnEscape&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE&&(c.close(b),b.preventDefault())}).attr({role:"dialog","aria-labelledby":d}).mousedown(function(a){c.moveToTop(!1,a)});c.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(j);var n=(c.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(j),
r=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){r.addClass("ui-state-hover")},function(){r.removeClass("ui-state-hover")}).focus(function(){r.addClass("ui-state-focus")}).blur(function(){r.removeClass("ui-state-focus")}).click(function(a){c.close(a);return!1}).appendTo(n);(c.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(g.closeText).appendTo(r);a("<span></span>").addClass("ui-dialog-title").attr("id",
d).html(b).prependTo(n);if(a.isFunction(g.beforeclose)&&!a.isFunction(g.beforeClose))g.beforeClose=g.beforeclose;n.find("*").add(n).disableSelection();g.draggable&&a.fn.draggable&&c._makeDraggable();g.resizable&&a.fn.resizable&&c._makeResizable();c._createButtons(g.buttons);c._isOpen=!1;a.fn.bgiframe&&j.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(c){var g=this,b,d;if(!1!==g._trigger("beforeClose",c)){g.overlay&&g.overlay.destroy();g.uiDialog.unbind("keypress.ui-dialog");g._isOpen=!1;g.options.hide?g.uiDialog.hide(g.options.hide,function(){g._trigger("close",c)}):(g.uiDialog.hide(),g._trigger("close",c));a.ui.dialog.overlay.resize();if(g.options.modal)b=0,a(".ui-dialog").each(function(){this!==
g.uiDialog[0]&&(d=a(this).css("z-index"),isNaN(d)||(b=Math.max(b,d)))}),a.ui.dialog.maxZ=b;return g}},isOpen:function(){return this._isOpen},moveToTop:function(c,g){var b=this.options;if(b.modal&&!c||!b.stack&&!b.modal)return this._trigger("focus",g);if(b.zIndex>a.ui.dialog.maxZ)a.ui.dialog.maxZ=b.zIndex;if(this.overlay)a.ui.dialog.maxZ+=1,this.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ);b={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};
a.ui.dialog.maxZ+=1;this.uiDialog.css("z-index",a.ui.dialog.maxZ);this.element.attr(b);this._trigger("focus",g);return this},open:function(){if(!this._isOpen){var c=this.options,g=this.uiDialog;this.overlay=c.modal?new a.ui.dialog.overlay(this):null;this._size();this._position(c.position);g.show(c.show);this.moveToTop(!0);c.modal&&g.bind("keypress.ui-dialog",function(b){if(b.keyCode===a.ui.keyCode.TAB){var d=a(":tabbable",this),c=d.filter(":first"),d=d.filter(":last");if(b.target===d[0]&&!b.shiftKey)return c.focus(1),
!1;else if(b.target===c[0]&&b.shiftKey)return d.focus(1),!1}});a(this.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();this._isOpen=!0;this._trigger("open");return this}},_createButtons:function(e){var g=this,b=!1,d=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(d);g.uiDialog.find(".ui-dialog-buttonpane").remove();typeof e==="object"&&
e!==null&&a.each(e,function(){return!(b=!0)});b&&(a.each(e,function(b,d){var d=a.isFunction(d)?{click:d,text:b}:d,e=a('<button type="button"></button>').click(function(){d.click.apply(g.element[0],arguments)}).appendTo(j);a.each(d,function(a,b){if(a!=="click")if(a in c)e[a](b);else e.attr(a,b)});a.fn.button&&e.button()}),d.appendTo(g.uiDialog))},_makeDraggable:function(){function c(a){return{position:a.position,offset:a.offset}}var g=this,b=g.options,d=a(document),j;g.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
handle:".ui-dialog-titlebar",containment:"document",start:function(d,r){j=b.height==="auto"?"auto":a(this).height();a(this).height(a(this).height()).addClass("ui-dialog-dragging");g._trigger("dragStart",d,c(r))},drag:function(a,b){g._trigger("drag",a,c(b))},stop:function(n,r){b.position=[r.position.left-d.scrollLeft(),r.position.top-d.scrollTop()];a(this).removeClass("ui-dialog-dragging").height(j);g._trigger("dragStop",n,c(r));a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function g(a){return{originalPosition:a.originalPosition,
originalSize:a.originalSize,position:a.position,size:a.size}}var c=c===m?this.options.resizable:c,b=this,d=b.options,j=b.uiDialog.css("position"),c=typeof c==="string"?c:"n,e,s,w,se,sw,ne,nw";b.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:b.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:b._minHeight(),handles:c,start:function(d,c){a(this).addClass("ui-dialog-resizing");b._trigger("resizeStart",d,g(c))},resize:function(a,d){b._trigger("resize",
a,g(d))},stop:function(c,e){a(this).removeClass("ui-dialog-resizing");d.height=a(this).height();d.width=a(this).width();b._trigger("resizeStop",c,g(e));a.ui.dialog.overlay.resize()}}).css("position",j).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(c){var g=[],b=[0,0],d;if(c){if(typeof c==="string"||typeof c==="object"&&"0"in c)g=c.split?c.split(" "):
[c[0],c[1]],g.length===1&&(g[1]=g[0]),a.each(["left","top"],function(a,d){+g[a]===g[a]&&(b[a]=g[a],g[a]=d)}),c={my:g.join(" "),at:g.join(" "),offset:b.join(" ")};c=a.extend({},a.ui.dialog.prototype.options.position,c)}else c=a.ui.dialog.prototype.options.position;(d=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},c));d||this.uiDialog.hide()},_setOptions:function(c){var i=this,b={},d=!1;a.each(c,function(a,c){i._setOption(a,c);a in
l&&(d=!0);a in g&&(b[a]=c)});d&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",b)},_setOption:function(c,g){var b=this.uiDialog;switch(c){case "beforeclose":c="beforeClose";break;case "buttons":this._createButtons(g);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+g);break;case "dialogClass":b.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+g);break;case "disabled":g?b.addClass("ui-dialog-disabled"):
b.removeClass("ui-dialog-disabled");break;case "draggable":var d=b.is(":data(draggable)");d&&!g&&b.draggable("destroy");!d&&g&&this._makeDraggable();break;case "position":this._position(g);break;case "resizable":(d=b.is(":data(resizable)"))&&!g&&b.resizable("destroy");d&&typeof g==="string"&&b.resizable("option","handles",g);!d&&g!==!1&&this._makeResizable(g);break;case "title":a(".ui-dialog-title",this.uiDialogTitlebar).html(""+(g||"&#160;"))}a.Widget.prototype._setOption.apply(this,arguments)},
_size:function(){var c=this.options,g,b,d=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(c.minWidth>c.width)c.width=c.minWidth;g=this.uiDialog.css({height:"auto",width:c.width}).height();b=Math.max(0,c.minHeight-g);c.height==="auto"?a.support.minHeight?this.element.css({minHeight:b,height:"auto"}):(this.uiDialog.show(),c=this.element.css("height","auto").height(),d||this.uiDialog.hide(),this.element.height(Math.max(c,b))):this.element.height(Math.max(c.height-
g,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});a.extend(a.ui.dialog,{version:"1.8.13",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a)this.uuid+=1,a=this.uuid;return"ui-dialog-title-"+a},overlay:function(c){this.$el=a.ui.dialog.overlay.create(c)}});a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
create:function(c){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(document).bind("keydown.dialog-overlay",function(b){c.options.closeOnEscape&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE&&(c.close(b),b.preventDefault())}),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var g=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
height:this.height()});a.fn.bgiframe&&g.bgiframe();this.instances.push(g);return g},destroy:function(c){var g=a.inArray(c,this.instances);g!=-1&&this.oldInstances.push(this.instances.splice(g,1)[0]);this.instances.length===0&&a([document,window]).unbind(".dialog-overlay");c.remove();var b=0;a.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var c,g;return a.browser.msie&&a.browser.version<7?(c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),
g=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),c<g?a(window).height()+"px":c+"px"):a(document).height()+"px"},width:function(){var c,g;return a.browser.msie&&a.browser.version<7?(c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),g=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),c<g?a(window).width()+"px":c+"px"):a(document).width()+"px"},resize:function(){var c=a([]);a.each(a.ui.dialog.overlay.instances,function(){c=c.add(this)});
c.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}});a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(a,m){function l(){this.debug=!1;this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._inDialog=this._datepickerShowing=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,
maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1};a.extend(this._defaults,this.regional[""]);this.dpDiv=g(a('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function g(b){return b.delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a",
"mouseout",function(){a(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a","mouseover",function(){if(!a.datepicker._isDisabledDatepicker(i.inline?b.parent()[0]:i.input[0]))a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),
a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!=-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!=-1&&a(this).addClass("ui-datepicker-next-hover")})}function c(b,d){a.extend(b,d);for(var c in d)if(d[c]==null||d[c]==m)b[c]=d[c];return b}a.extend(a.ui,{datepicker:{version:"1.8.13"}});var e=(new Date).getTime(),i;a.extend(l.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},
_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){c(this._defaults,a||{});return this},_attachDatepicker:function(b,d){var c=null,e;for(e in this._defaults){var g=b.getAttribute("date:"+e);if(g){c=c||{};try{c[e]=eval(g)}catch(h){c[e]=g}}}e=b.nodeName.toLowerCase();g=e=="div"||e=="span";if(!b.id)this.uuid+=1,b.id="dp"+this.uuid;var i=this._newInst(a(b),g);i.settings=a.extend({},d||{},c||{});e=="input"?this._connectDatepicker(b,i):g&&this._inlineDatepicker(b,i)},_newInst:function(b,
d){return{id:b[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:d,dpDiv:!d?this.dpDiv:g(a('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(b,d){var c=a(b);d.append=a([]);d.trigger=a([]);c.hasClass(this.markerClassName)||(this._attachments(c,d),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
function(a,b,c){d.settings[b]=c}).bind("getData.datepicker",function(a,b){return this._get(d,b)}),this._autoSize(d),a.data(b,"datepicker",d))},_attachments:function(b,d){var c=this._get(d,"appendText"),e=this._get(d,"isRTL");d.append&&d.append.remove();if(c)d.append=a('<span class="'+this._appendClass+'">'+c+"</span>"),b[e?"before":"after"](d.append);b.unbind("focus",this._showDatepicker);d.trigger&&d.trigger.remove();c=this._get(d,"showOn");(c=="focus"||c=="both")&&b.focus(this._showDatepicker);
if(c=="button"||c=="both"){var c=this._get(d,"buttonText"),g=this._get(d,"buttonImage");d.trigger=a(this._get(d,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:g,alt:c,title:c}):a('<button type="button"></button>').addClass(this._triggerClass).html(g==""?c:a("<img/>").attr({src:g,alt:c,title:c})));b[e?"before":"after"](d.trigger);d.trigger.click(function(){a.datepicker._datepickerShowing&&a.datepicker._lastInput==b[0]?a.datepicker._hideDatepicker():a.datepicker._showDatepicker(b[0]);
return!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var d=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(a){for(var b=0,d=0,c=0;c<a.length;c++)if(a[c].length>b)b=a[c].length,d=c;return d};d.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));d.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-d.getDay())}a.input.attr("size",this._formatDate(a,d).length)}},_inlineDatepicker:function(b,d){var c=a(b);c.hasClass(this.markerClassName)||
(c.addClass(this.markerClassName).append(d.dpDiv).bind("setData.datepicker",function(a,b,c){d.settings[b]=c}).bind("getData.datepicker",function(a,b){return this._get(d,b)}),a.data(b,"datepicker",d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.dpDiv.show())},_dialogDatepicker:function(b,d,e,g,i){b=this._dialogInst;if(!b)this.uuid+=1,this._dialogInput=a('<input type="text" id="dp'+this.uuid+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'),
this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),b=this._dialogInst=this._newInst(this._dialogInput,!1),b.settings={},a.data(this._dialogInput[0],"datepicker",b);c(b.settings,g||{});d=d&&d.constructor==Date?this._formatDate(b,d):d;this._dialogInput.val(d);this._pos=i?i.length?i:[i.pageX,i.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/
2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=e;this._inDialog=!0;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);a.blockUI&&a.blockUI(this.dpDiv);a.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var d=a(b),c=a.data(b,"datepicker");if(d.hasClass(this.markerClassName)){var e=b.nodeName.toLowerCase();a.removeData(b,
"datepicker");e=="input"?(c.append.remove(),c.trigger.remove(),d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(e=="div"||e=="span")&&d.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(b){var d=a(b),c=a.data(b,"datepicker");if(d.hasClass(this.markerClassName)){var e=b.nodeName.toLowerCase();if(e=="input")b.disabled=!1,c.trigger.filter("button").each(function(){this.disabled=
!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(e=="div"||e=="span")d=d.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled");this._disabledInputs=a.map(this._disabledInputs,function(a){return a==b?null:a})}},_disableDatepicker:function(b){var d=a(b),c=a.data(b,"datepicker");if(d.hasClass(this.markerClassName)){var e=b.nodeName.toLowerCase();if(e=="input")b.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=
!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(e=="div"||e=="span")d=d.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled");this._disabledInputs=a.map(this._disabledInputs,function(a){return a==b?null:a});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var d=0;d<this._disabledInputs.length;d++)if(this._disabledInputs[d]==
a)return!0;return!1},_getInst:function(b){try{return a.data(b,"datepicker")}catch(d){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,d,e){var g=this._getInst(b);if(arguments.length==2&&typeof d=="string")return d=="defaults"?a.extend({},a.datepicker._defaults):g?d=="all"?a.extend({},g.settings):this._get(g,d):null;var i=d||{};typeof d=="string"&&(i={},i[d]=e);if(g){this._curInst==g&&this._hideDatepicker();var h=this._getDateDatepicker(b,!0),q=this._getMinMaxDate(g,
"min"),f=this._getMinMaxDate(g,"max");c(g.settings,i);if(q!==null&&i.dateFormat!==m&&i.minDate===m)g.settings.minDate=this._formatDate(g,q);if(f!==null&&i.dateFormat!==m&&i.maxDate===m)g.settings.maxDate=this._formatDate(g,f);this._attachments(a(b),g);this._autoSize(g);this._setDate(g,h);this._updateAlternate(g);this._updateDatepicker(g)}},_changeDatepicker:function(a,d,c){this._optionDatepicker(a,d,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,
c){var e=this._getInst(a);e&&(this._setDate(e,c),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(a,c){var e=this._getInst(a);e&&!e.inline&&this._setDateFromField(e,c);return e?this._getDate(e):null},_doKeyDown:function(b){var c=a.datepicker._getInst(b.target),e=!0,g=c.dpDiv.is(".ui-datepicker-rtl");c._keyEvent=!0;if(a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker();e=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+
":not(."+a.datepicker._currentClass+")",c.dpDiv),e[0]?a.datepicker._selectDay(b.target,c.selectedMonth,c.selectedYear,e[0]):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&
a.datepicker._clearDate(b.target);e=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target);e=b.ctrlKey||b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,g?1:-1,"D");e=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(c,"stepBigMonths"):-a.datepicker._get(c,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D");e=b.ctrlKey||b.metaKey;
break;case 39:if(b.ctrlKey||b.metaKey)a.datepicker._adjustDate(b.target,g?-1:1,"D");e=b.ctrlKey||b.metaKey;b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(c,"stepBigMonths"):+a.datepicker._get(c,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D");e=b.ctrlKey||b.metaKey;break;default:e=!1}else b.keyCode==36&&b.ctrlKey?a.datepicker._showDatepicker(this):e=!1;e&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c=
a.datepicker._getInst(b.target);if(a.datepicker._get(c,"constrainInput")){var c=a.datepicker._possibleChars(a.datepicker._get(c,"dateFormat")),e=String.fromCharCode(b.charCode==m?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||e<" "||!c||c.indexOf(e)>-1}},_doKeyUp:function(b){b=a.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,a.datepicker._getFormatConfig(b)))a.datepicker._setDateFromField(b),
a.datepicker._updateAlternate(b),a.datepicker._updateDatepicker(b)}catch(c){a.datepicker.log(c)}return!0},_showDatepicker:function(b){b=b.target||b;b.nodeName.toLowerCase()!="input"&&(b=a("input",b.parentNode)[0]);if(!(a.datepicker._isDisabledDatepicker(b)||a.datepicker._lastInput==b)){var d=a.datepicker._getInst(b);a.datepicker._curInst&&a.datepicker._curInst!=d&&a.datepicker._curInst.dpDiv.stop(!0,!0);var e=a.datepicker._get(d,"beforeShow");c(d.settings,e?e.apply(b,[b,d]):{});d.lastVal=null;a.datepicker._lastInput=
b;a.datepicker._setDateFromField(d);if(a.datepicker._inDialog)b.value="";if(!a.datepicker._pos)a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight;var g=!1;a(b).parents().each(function(){g|=a(this).css("position")=="fixed";return!g});g&&a.browser.opera&&(a.datepicker._pos[0]-=document.documentElement.scrollLeft,a.datepicker._pos[1]-=document.documentElement.scrollTop);e={left:a.datepicker._pos[0],top:a.datepicker._pos[1]};a.datepicker._pos=null;d.dpDiv.empty();d.dpDiv.css({position:"absolute",
display:"block",top:"-1000px"});a.datepicker._updateDatepicker(d);e=a.datepicker._checkOffset(d,e,g);d.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":g?"fixed":"absolute",display:"none",left:e.left+"px",top:e.top+"px"});if(!d.inline){var e=a.datepicker._get(d,"showAnim"),i=a.datepicker._get(d,"duration"),h=function(){var b=d.dpDiv.find("iframe.ui-datepicker-cover");if(b.length){var c=a.datepicker._getBorders(d.dpDiv);b.css({left:-c[0],top:-c[1],width:d.dpDiv.outerWidth(),height:d.dpDiv.outerHeight()})}};
d.dpDiv.zIndex(a(b).zIndex()+1);a.datepicker._datepickerShowing=!0;if(a.effects&&a.effects[e])d.dpDiv.show(e,a.datepicker._get(d,"showOptions"),i,h);else d.dpDiv[e||"show"](e?i:null,h);(!e||!i)&&h();d.input.is(":visible")&&!d.input.is(":disabled")&&d.input.focus();a.datepicker._curInst=d}}},_updateDatepicker:function(b){var c=a.datepicker._getBorders(b.dpDiv);i=b;b.dpDiv.empty().append(this._generateHTML(b));var e=b.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),
height:b.dpDiv.outerHeight()});b.dpDiv.find("."+this._dayOverClass+" a").mouseover();c=this._getNumberOfMonths(b);e=c[1];b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");e>1&&b.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em");b.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");b==a.datepicker._curInst&&a.datepicker._datepickerShowing&&b.input&&
b.input.is(":visible")&&!b.input.is(":disabled")&&b.input[0]!=document.activeElement&&b.input.focus();if(b.yearshtml){var g=b.yearshtml;setTimeout(function(){g===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);g=b.yearshtml=null},0)}},_getBorders:function(a){var c=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(c(a.css("border-left-width"))),parseFloat(c(a.css("border-top-width")))]},_checkOffset:function(b,c,e){var g=b.dpDiv.outerWidth(),
i=b.dpDiv.outerHeight(),h=b.input?b.input.outerWidth():0,q=b.input?b.input.outerHeight():0,f=document.documentElement.clientWidth+a(document).scrollLeft(),l=document.documentElement.clientHeight+a(document).scrollTop();c.left-=this._get(b,"isRTL")?g-h:0;c.left-=e&&c.left==b.input.offset().left?a(document).scrollLeft():0;c.top-=e&&c.top==b.input.offset().top+q?a(document).scrollTop():0;c.left-=Math.min(c.left,c.left+g>f&&f>g?Math.abs(c.left+g-f):0);c.top-=Math.min(c.top,c.top+i>l&&l>i?Math.abs(i+q):
0);return c},_findPos:function(b){for(var c=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1||a.expr.filters.hidden(b));)b=b[c?"previousSibling":"nextSibling"];b=a(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var c=this._curInst;if(c&&!(b&&c!=a.data(b,"datepicker"))&&this._datepickerShowing){var b=this._get(c,"showAnim"),e=this._get(c,"duration"),g=function(){a.datepicker._tidyDialog(c);this._curInst=null};if(a.effects&&a.effects[b])c.dpDiv.hide(b,a.datepicker._get(c,
"showOptions"),e,g);else c.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?e:null,g);b||g();(b=this._get(c,"onClose"))&&b.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c]);this._datepickerShowing=!1;this._lastInput=null;this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv)));this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(b){a.datepicker._curInst&&(b=a(b.target),b[0].id!=a.datepicker._mainDivId&&b.parents("#"+a.datepicker._mainDivId).length==0&&!b.hasClass(a.datepicker.markerClassName)&&!b.hasClass(a.datepicker._triggerClass)&&a.datepicker._datepickerShowing&&(!a.datepicker._inDialog||!a.blockUI)&&a.datepicker._hideDatepicker())},_adjustDate:function(b,c,e){var b=a(b),g=this._getInst(b[0]);this._isDisabledDatepicker(b[0])||(this._adjustInstDate(g,c+(e=="M"?this._get(g,"showCurrentAtPos"):
0),e),this._updateDatepicker(g))},_gotoToday:function(b){var b=a(b),c=this._getInst(b[0]);if(this._get(c,"gotoCurrent")&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var e=new Date;c.selectedDay=e.getDate();c.drawMonth=c.selectedMonth=e.getMonth();c.drawYear=c.selectedYear=e.getFullYear()}this._notifyChange(c);this._adjustDate(b)},_selectMonthYear:function(b,c,e){var b=a(b),g=this._getInst(b[0]);g._selectingMonthYear=
!1;g["selected"+(e=="M"?"Month":"Year")]=g["draw"+(e=="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10);this._notifyChange(g);this._adjustDate(b)},_clickMonthYear:function(b){var c=this._getInst(a(b)[0]);c.input&&c._selectingMonthYear&&setTimeout(function(){c.input.focus()},0);c._selectingMonthYear=!c._selectingMonthYear},_selectDay:function(b,c,e,g){var i=a(b);if(!a(g).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(i[0]))i=this._getInst(i[0]),i.selectedDay=i.currentDay=
a("a",g).html(),i.selectedMonth=i.currentMonth=c,i.selectedYear=i.currentYear=e,this._selectDate(b,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear))},_clearDate:function(b){b=a(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,c){var e=this._getInst(a(b)[0]),c=c!=null?c:this._formatDate(e);e.input&&e.input.val(c);this._updateAlternate(e);var g=this._get(e,"onSelect");g?g.apply(e.input?e.input[0]:null,[c,e]):e.input&&e.input.trigger("change");e.inline?this._updateDatepicker(e):
(this._hideDatepicker(),this._lastInput=e.input[0],typeof e.input[0]!="object"&&e.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c=this._get(b,"altField");if(c){var e=this._get(b,"altFormat")||this._get(b,"dateFormat"),g=this._getDate(b),i=this.formatDate(e,g,this._getFormatConfig(b));a(c).each(function(){a(this).val(i)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var c=
a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((c-a)/864E5)/7)+1},parseDate:function(b,c,e){if(b==null||c==null)throw"Invalid arguments";c=typeof c=="object"?c.toString():c+"";if(c=="")return null;for(var g=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,g=typeof g!="string"?g:(new Date).getFullYear()%100+parseInt(g,10),i=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,h=(e?e.dayNames:null)||this._defaults.dayNames,q=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,
f=(e?e.monthNames:null)||this._defaults.monthNames,l=e=-1,m=-1,p=-1,x=!1,t=function(a){(a=G+1<b.length&&b.charAt(G+1)==a)&&G++;return a},w=function(a){var b=t(a),a=c.substring(J).match(RegExp("^\\d{1,"+(a=="@"?14:a=="!"?20:a=="y"&&b?4:a=="o"?3:2)+"}"));if(!a)throw"Missing number at position "+J;J+=a[0].length;return parseInt(a[0],10)},v=function(b,f,e){var b=a.map(t(b)?e:f,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),g=-1;a.each(b,function(a,b){var f=b[1];if(c.substr(J,
f.length).toLowerCase()==f.toLowerCase())return g=b[0],J+=f.length,!1});if(g!=-1)return g+1;else throw"Unknown name at position "+J;},A=function(){if(c.charAt(J)!=b.charAt(G))throw"Unexpected literal at position "+J;J++},J=0,G=0;G<b.length;G++)if(x)b.charAt(G)=="'"&&!t("'")?x=!1:A();else switch(b.charAt(G)){case "d":m=w("d");break;case "D":v("D",i,h);break;case "o":p=w("o");break;case "m":l=w("m");break;case "M":l=v("M",q,f);break;case "y":e=w("y");break;case "@":var B=new Date(w("@")),e=B.getFullYear(),
l=B.getMonth()+1,m=B.getDate();break;case "!":B=new Date((w("!")-this._ticksTo1970)/1E4);e=B.getFullYear();l=B.getMonth()+1;m=B.getDate();break;case "'":t("'")?A():x=!0;break;default:A()}e==-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=g?0:-100));if(p>-1){l=1;m=p;do{g=this._getDaysInMonth(e,l-1);if(m<=g)break;l++;m-=g}while(1)}B=this._daylightSavingAdjust(new Date(e,l-1,m));if(B.getFullYear()!=e||B.getMonth()+1!=l||B.getDate()!=m)throw"Invalid date";
return B},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864E9,formatDate:function(a,c,e){if(!c)return"";var g=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,i=(e?e.dayNames:null)||this._defaults.dayNames,h=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,
e=(e?e.monthNames:null)||this._defaults.monthNames,q=function(c){(c=x+1<a.length&&a.charAt(x+1)==c)&&x++;return c},f=function(a,b,c){b=""+b;if(q(a))for(;b.length<c;)b="0"+b;return b},l=function(a,b,c,d){return q(a)?d[b]:c[b]},m="",p=!1;if(c)for(var x=0;x<a.length;x++)if(p)a.charAt(x)=="'"&&!q("'")?p=!1:m+=a.charAt(x);else switch(a.charAt(x)){case "d":m+=f("d",c.getDate(),2);break;case "D":m+=l("D",c.getDay(),g,i);break;case "o":m+=f("o",(c.getTime()-(new Date(c.getFullYear(),0,0)).getTime())/864E5,
3);break;case "m":m+=f("m",c.getMonth()+1,2);break;case "M":m+=l("M",c.getMonth(),h,e);break;case "y":m+=q("y")?c.getFullYear():(c.getYear()%100<10?"0":"")+c.getYear()%100;break;case "@":m+=c.getTime();break;case "!":m+=c.getTime()*1E4+this._ticksTo1970;break;case "'":q("'")?m+="'":p=!0;break;default:m+=a.charAt(x)}return m},_possibleChars:function(a){for(var c="",e=!1,g=function(c){(c=i+1<a.length&&a.charAt(i+1)==c)&&i++;return c},i=0;i<a.length;i++)if(e)a.charAt(i)=="'"&&!g("'")?e=!1:c+=a.charAt(i);
else switch(a.charAt(i)){case "d":case "m":case "y":case "@":c+="0123456789";break;case "D":case "M":return null;case "'":g("'")?c+="'":e=!0;break;default:c+=a.charAt(i)}return c},_get:function(a,c){return a.settings[c]!==m?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,c){if(a.input.val()!=a.lastVal){var e=this._get(a,"dateFormat"),g=a.lastVal=a.input?a.input.val():null,i,h;i=h=this._getDefaultDate(a);var q=this._getFormatConfig(a);try{i=this.parseDate(e,g,q)||h}catch(f){this.log(f),
g=c?"":g}a.selectedDay=i.getDate();a.drawMonth=a.selectedMonth=i.getMonth();a.drawYear=a.selectedYear=i.getFullYear();a.currentDay=g?i.getDate():0;a.currentMonth=g?i.getMonth():0;a.currentYear=g?i.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,e){var g,i=function(a){var b=new Date;b.setDate(b.getDate()+a);return b};if(g=(c=c==null||c===""?e:typeof c=="string"?
function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(d){}for(var f=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=f.getFullYear(),g=f.getMonth(),f=f.getDate(),j=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=j.exec(c);i;){switch(i[2]||"d"){case "d":case "D":f+=parseInt(i[1],10);break;case "w":case "W":f+=parseInt(i[1],10)*7;break;case "m":case "M":g+=parseInt(i[1],10);f=Math.min(f,a.datepicker._getDaysInMonth(e,
g));break;case "y":case "Y":e+=parseInt(i[1],10),f=Math.min(f,a.datepicker._getDaysInMonth(e,g))}i=j.exec(c)}return new Date(e,g,f)}(c):typeof c=="number"?isNaN(c)?e:i(c):new Date(c.getTime()))&&c.toString()=="Invalid Date"?e:c,c=g)c.setHours(0),c.setMinutes(0),c.setSeconds(0),c.setMilliseconds(0);return this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,c,e){var g=!c,i=a.selectedMonth,h=a.selectedYear,
c=this._restrictMinMax(a,this._determineDate(a,c,new Date));a.selectedDay=a.currentDay=c.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=c.getMonth();a.drawYear=a.selectedYear=a.currentYear=c.getFullYear();(i!=a.selectedMonth||h!=a.selectedYear)&&!e&&this._notifyChange(a);this._adjustInstDate(a);a.input&&a.input.val(g?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},
_generateHTML:function(b){var c=new Date,c=this._daylightSavingAdjust(new Date(c.getFullYear(),c.getMonth(),c.getDate())),g=this._get(b,"isRTL"),i=this._get(b,"showButtonPanel"),l=this._get(b,"hideIfNoPrevNext"),h=this._get(b,"navigationAsDateFormat"),q=this._getNumberOfMonths(b),f=this._get(b,"showCurrentAtPos"),m=this._get(b,"stepMonths"),u=q[0]!=1||q[1]!=1,p=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),x=this._getMinMaxDate(b,
"min"),t=this._getMinMaxDate(b,"max"),f=b.drawMonth-f,w=b.drawYear;f<0&&(f+=12,w--);if(t)for(var v=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth()-q[0]*q[1]+1,t.getDate())),v=x&&v<x?x:v;this._daylightSavingAdjust(new Date(w,f,1))>v;)f--,f<0&&(f=11,w--);b.drawMonth=f;b.drawYear=w;var v=this._get(b,"prevText"),v=!h?v:this.formatDate(v,this._daylightSavingAdjust(new Date(w,f-m,1)),this._getFormatConfig(b)),v=this._canAdjustMonth(b,-1,w,f)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+
e+".datepicker._adjustDate('#"+b.id+"', -"+m+", 'M');\" title=\""+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+v+"</span></a>":l?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+v+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+v+"</span></a>",A=this._get(b,"nextText"),A=!h?A:this.formatDate(A,this._daylightSavingAdjust(new Date(w,f+m,1)),this._getFormatConfig(b)),l=this._canAdjustMonth(b,1,w,f)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+
e+".datepicker._adjustDate('#"+b.id+"', +"+m+", 'M');\" title=\""+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+A+"</span></a>":l?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+A+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+A+"</span></a>",m=this._get(b,"currentText"),A=this._get(b,"gotoCurrent")&&b.currentDay?p:c,m=!h?m:this.formatDate(m,A,this._getFormatConfig(b)),h=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+
e+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"",i=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(g?h:"")+(this._isInRange(b,A)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+e+".datepicker._gotoToday('#"+b.id+"');\">"+m+"</button>":"")+(g?"":h)+"</div>":"",h=parseInt(this._get(b,"firstDay"),10),h=isNaN(h)?0:h,m=this._get(b,"showWeek"),A=this._get(b,"dayNames");this._get(b,"dayNamesShort");
var J=this._get(b,"dayNamesMin"),G=this._get(b,"monthNames"),B=this._get(b,"monthNamesShort"),s=this._get(b,"beforeShowDay"),I=this._get(b,"showOtherMonths"),K=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var o=this._getDefaultDate(b),E="",P=0;P<q[0];P++){for(var O="",M=0;M<q[1];M++){var W=this._daylightSavingAdjust(new Date(w,f,b.selectedDay)),H=" ui-corner-all",N="";if(u){N+='<div class="ui-datepicker-group';if(q[1]>1)switch(M){case 0:N+=" ui-datepicker-group-first";H=" ui-corner-"+
(g?"right":"left");break;case q[1]-1:N+=" ui-datepicker-group-last";H=" ui-corner-"+(g?"left":"right");break;default:N+=" ui-datepicker-group-middle",H=""}N+='">'}N+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+H+'">'+(/all|left/.test(H)&&P==0?g?l:v:"")+(/all|right/.test(H)&&P==0?g?v:l:"")+this._generateMonthYearHeader(b,f,w,x,t,P>0||M>0,G,B)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var C=m?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+
"</th>":"",H=0;H<7;H++){var z=(H+h)%7;C+="<th"+((H+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+A[z]+'">'+J[z]+"</span></th>"}N+=C+"</tr></thead><tbody>";C=this._getDaysInMonth(w,f);if(w==b.selectedYear&&f==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,C);for(var H=(this._getFirstDayOfMonth(w,f)-h+7)%7,C=u?6:Math.ceil((H+C)/7),z=this._daylightSavingAdjust(new Date(w,f,1-H)),D=0;D<C;D++){N+="<tr>";for(var Q=!m?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(z)+
"</td>",H=0;H<7;H++){var S=s?s.apply(b.input?b.input[0]:null,[z]):[!0,""],R=z.getMonth()!=f,U=R&&!K||!S[0]||x&&z<x||t&&z>t;Q+='<td class="'+((H+h+6)%7>=5?" ui-datepicker-week-end":"")+(R?" ui-datepicker-other-month":"")+(z.getTime()==W.getTime()&&f==b.selectedMonth&&b._keyEvent||o.getTime()==z.getTime()&&o.getTime()==W.getTime()?" "+this._dayOverClass:"")+(U?" "+this._unselectableClass+" ui-state-disabled":"")+(R&&!I?"":" "+S[1]+(z.getTime()==p.getTime()?" "+this._currentClass:"")+(z.getTime()==c.getTime()?
" ui-datepicker-today":""))+'"'+((!R||I)&&S[2]?' title="'+S[2]+'"':"")+(U?"":' onclick="DP_jQuery_'+e+".datepicker._selectDay('#"+b.id+"',"+z.getMonth()+","+z.getFullYear()+', this);return false;"')+">"+(R&&!I?"&#xa0;":U?'<span class="ui-state-default">'+z.getDate()+"</span>":'<a class="ui-state-default'+(z.getTime()==c.getTime()?" ui-state-highlight":"")+(z.getTime()==p.getTime()?" ui-state-active":"")+(R?" ui-priority-secondary":"")+'" href="#">'+z.getDate()+"</a>")+"</td>";z.setDate(z.getDate()+
1);z=this._daylightSavingAdjust(z)}N+=Q+"</tr>"}f++;f>11&&(f=0,w++);N+="</tbody></table>"+(u?"</div>"+(q[0]>0&&M==q[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=N}E+=O}E+=i+(a.browser.msie&&parseInt(a.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");b._keyEvent=!1;return E},_generateMonthYearHeader:function(a,c,g,i,l,h,q,f){var m=this._get(a,"changeMonth"),u=this._get(a,"changeYear"),p=this._get(a,"showMonthAfterYear"),
x='<div class="ui-datepicker-title">',t="";if(h||!m)t+='<span class="ui-datepicker-month">'+q[c]+"</span>";else{var q=i&&i.getFullYear()==g,w=l&&l.getFullYear()==g;t+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+e+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var v=0;v<12;v++)if((!q||v>=i.getMonth())&&(!w||v<=l.getMonth()))t+='<option value="'+v+'"'+(v==c?' selected="selected"':"")+">"+f[v]+"</option>";
t+="</select>"}p||(x+=t+(h||!m||!u?"&#xa0;":""));if(!a.yearshtml)if(a.yearshtml="",h||!u)x+='<span class="ui-datepicker-year">'+g+"</span>";else{var f=this._get(a,"yearRange").split(":"),A=(new Date).getFullYear(),q=function(a){a=a.match(/c[+-].*/)?g+parseInt(a.substring(1),10):a.match(/[+-].*/)?A+parseInt(a,10):parseInt(a,10);return isNaN(a)?A:a},c=q(f[0]),f=Math.max(c,q(f[1]||"")),c=i?Math.max(c,i.getFullYear()):c,f=l?Math.min(f,l.getFullYear()):f;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+
e+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+a.id+"');\">";c<=f;c++)a.yearshtml+='<option value="'+c+'"'+(c==g?' selected="selected"':"")+">"+c+"</option>";a.yearshtml+="</select>";x+=a.yearshtml;a.yearshtml=null}x+=this._get(a,"yearSuffix");p&&(x+=(h||!m||!u?"&#xa0;":"")+t);x+="</div>";return x},_adjustInstDate:function(a,c,e){var g=a.drawYear+(e=="Y"?c:0),i=a.drawMonth+(e=="M"?c:0),c=Math.min(a.selectedDay,this._getDaysInMonth(g,
i))+(e=="D"?c:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(g,i,c)));a.selectedDay=g.getDate();a.drawMonth=a.selectedMonth=g.getMonth();a.drawYear=a.selectedYear=g.getFullYear();(e=="M"||e=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,c){var e=this._getMinMaxDate(a,"min"),g=this._getMinMaxDate(a,"max"),e=e&&c<e?e:c;return g&&e>g?g:e},_notifyChange:function(a){var c=this._get(a,"onChangeMonthYear");c&&c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},
_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,c){return this._determineDate(a,this._get(a,c+"Date"),null)},_getDaysInMonth:function(a,c){return 32-this._daylightSavingAdjust(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return(new Date(a,c,1)).getDay()},_canAdjustMonth:function(a,c,e,g){var i=this._getNumberOfMonths(a),e=this._daylightSavingAdjust(new Date(e,g+(c<0?c:i[0]*i[1]),1));c<0&&e.setDate(this._getDaysInMonth(e.getFullYear(),
e.getMonth()));return this._isInRange(a,e)},_isInRange:function(a,c){var e=this._getMinMaxDate(a,"min"),g=this._getMinMaxDate(a,"max");return(!e||c.getTime()>=e.getTime())&&(!g||c.getTime()<=g.getTime())},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff"),c=typeof c!="string"?c:(new Date).getFullYear()%100+parseInt(c,10);return{shortYearCutoff:c,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,
"monthNames")}},_formatDate:function(a,c,e,g){if(!c)a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear;c=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(g,e,c)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),c,this._getFormatConfig(a))}});a.fn.datepicker=function(b){if(!this.length)return this;if(!a.datepicker.initialized)a(document).mousedown(a.datepicker._checkExternalClick).find("body").append(a.datepicker.dpDiv),
a.datepicker.initialized=!0;var c=Array.prototype.slice.call(arguments,1);return typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget")?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):b=="option"&&arguments.length==2&&typeof arguments[1]=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){typeof b=="string"?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,
b)})};a.datepicker=new l;a.datepicker.initialized=!1;a.datepicker.uuid=(new Date).getTime();a.datepicker.version="1.8.13";window["DP_jQuery_"+e]=a})(jQuery);
jQuery.ajaxq=function(a,m){if(typeof document.ajaxq=="undefined")document.ajaxq={q:{},r:null};typeof document.ajaxq.q[a]=="undefined"&&(document.ajaxq.q[a]=[]);if(typeof m!="undefined"){var l={},g;for(g in m)l[g]=m[g];var m=l,c=m.complete;m.complete=function(e,g){document.ajaxq.q[a].shift();document.ajaxq.r=null;c&&c(e,g);if(document.ajaxq.q[a].length>0)document.ajaxq.r=jQuery.ajax(document.ajaxq.q[a][0])};document.ajaxq.q[a].push(m);if(document.ajaxq.q[a].length==1)document.ajaxq.r=jQuery.ajax(m)}else{if(document.ajaxq.r)document.ajaxq.r.abort(),
document.ajaxq.r=null;document.ajaxq.q[a]=[]}};
(function(){var a=this,m=a._,l=function(a){this._wrapped=a},g=typeof StopIteration!=="undefined"?StopIteration:"__break__",c=a._=function(a){return new l(a)};if(typeof exports!=="undefined")exports._=c;var e=Array.prototype.slice,i=Array.prototype.unshift,b=Object.prototype.toString,d=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;c.VERSION="0.5.8";c.each=function(a,b,d){try{if(a.forEach)a.forEach(b,d);else if(c.isNumber(a.length))for(var e=0,i=a.length;e<i;e++)b.call(d,a[e],
e,a);else for(var j=c.keys(a),i=j.length,e=0;e<i;e++)b.call(d,a[j[e]],j[e],a)}catch(l){if(l!=g)throw l;}return a};c.map=function(a,b,d){if(a&&c.isFunction(a.map))return a.map(b,d);var e=[];c.each(a,function(a,c,g){e.push(b.call(d,a,c,g))});return e};c.reduce=function(a,b,d,e){if(a&&c.isFunction(a.reduce))return a.reduce(c.bind(d,e),b);c.each(a,function(a,c,g){b=d.call(e,b,a,c,g)});return b};c.reduceRight=function(a,b,d,e){if(a&&c.isFunction(a.reduceRight))return a.reduceRight(c.bind(d,e),b);var g=
c.clone(c.toArray(a)).reverse();c.each(g,function(c,g){b=d.call(e,b,c,g,a)});return b};c.detect=function(a,b,d){var e;c.each(a,function(a,g,h){b.call(d,a,g,h)&&(e=a,c.breakLoop())});return e};c.select=function(a,b,d){if(a&&c.isFunction(a.filter))return a.filter(b,d);var e=[];c.each(a,function(a,c,g){b.call(d,a,c,g)&&e.push(a)});return e};c.reject=function(a,b,d){var e=[];c.each(a,function(a,c,g){!b.call(d,a,c,g)&&e.push(a)});return e};c.all=function(a,b,d){b=b||c.identity;if(a&&c.isFunction(a.every))return a.every(b,
d);var e=!0;c.each(a,function(a,g,h){(e=e&&b.call(d,a,g,h))||c.breakLoop()});return e};c.any=function(a,b,d){b=b||c.identity;if(a&&c.isFunction(a.some))return a.some(b,d);var e=!1;c.each(a,function(a,g,h){(e=b.call(d,a,g,h))&&c.breakLoop()});return e};c.include=function(a,b){if(a&&c.isFunction(a.indexOf))return c.indexOf(a,b)!=-1;var d=!1;c.each(a,function(a){(d=a===b)&&c.breakLoop()});return d};c.invoke=function(a,b){var d=c.rest(arguments,2);return c.map(a,function(a){return(b?a[b]:a).apply(a,d)})};
c.pluck=function(a,b){return c.map(a,function(a){return a[b]})};c.max=function(a,b,d){if(!b&&c.isArray(a))return Math.max.apply(Math,a);var e={computed:-Infinity};c.each(a,function(a,c,g){c=b?b.call(d,a,c,g):a;c>=e.computed&&(e={value:a,computed:c})});return e.value};c.min=function(a,b,d){if(!b&&c.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};c.each(a,function(a,c,g){c=b?b.call(d,a,c,g):a;c<e.computed&&(e={value:a,computed:c})});return e.value};c.sortBy=function(a,b,d){return c.pluck(c.map(a,
function(a,c,e){return{value:a,criteria:b.call(d,a,c,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};c.sortedIndex=function(a,b,d){for(var d=d||c.identity,e=0,g=a.length;e<g;){var i=e+g>>1;d(a[i])<d(b)?e=i+1:g=i}return e};c.toArray=function(a){return!a?[]:a.toArray?a.toArray():c.isArray(a)?a:c.isArguments(a)?e.call(a):c.values(a)};c.size=function(a){return c.toArray(a).length};c.first=function(a,b,c){return b&&!c?e.call(a,0,b):a[0]};c.rest=function(a,b,d){return e.call(a,
c.isUndefined(b)||d?1:b)};c.last=function(a){return a[a.length-1]};c.compact=function(a){return c.select(a,function(a){return!!a})};c.flatten=function(a){return c.reduce(a,[],function(a,b){if(c.isArray(b))return a.concat(c.flatten(b));a.push(b);return a})};c.without=function(a){var b=c.rest(arguments);return c.select(a,function(a){return!c.include(b,a)})};c.uniq=function(a,b){return c.reduce(a,[],function(a,d,e){(0==e||(b===!0?c.last(a)!=d:!c.include(a,d)))&&a.push(d);return a})};c.intersect=function(a){var b=
c.rest(arguments);return c.select(c.uniq(a),function(a){return c.all(b,function(b){return c.indexOf(b,a)>=0})})};c.zip=function(){for(var a=c.toArray(arguments),b=c.max(c.pluck(a,"length")),d=Array(b),e=0;e<b;e++)d[e]=c.pluck(a,String(e));return d};c.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1};c.lastIndexOf=function(a,b){if(a.lastIndexOf)return a.lastIndexOf(b);for(var c=a.length;c--;)if(a[c]===b)return c;return-1};c.range=function(a,
b,d){var e=c.toArray(arguments),g=e.length<=1,a=g?0:e[0],b=g?e[0]:e[1],d=e[2]||1,e=Math.ceil((b-a)/d);if(e<=0)return[];for(var e=Array(e),g=a,i=0;;g+=d){if((d>0?g-b:b-g)>=0)return e;e[i++]=g}};c.bind=function(b,d){var e=c.rest(arguments,2);return function(){return b.apply(d||a,e.concat(c.toArray(arguments)))}};c.bindAll=function(a){var b=c.rest(arguments);b.length==0&&(b=c.functions(a));c.each(b,function(b){a[b]=c.bind(a[b],a)});return a};c.delay=function(a,b){var d=c.rest(arguments,2);return setTimeout(function(){return a.apply(a,
d)},b)};c.defer=function(a){return c.delay.apply(c,[a,1].concat(c.rest(arguments)))};c.wrap=function(a,b){return function(){var d=[a].concat(c.toArray(arguments));return b.apply(b,d)}};c.compose=function(){var a=c.toArray(arguments);return function(){for(var b=c.toArray(arguments),d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};c.keys=function(a){if(c.isArray(a))return c.range(0,a.length);var b=[],e;for(e in a)d.call(a,e)&&b.push(e);return b};c.values=function(a){return c.map(a,c.identity)};
c.functions=function(a){return c.select(c.keys(a),function(b){return c.isFunction(a[b])}).sort()};c.extend=function(a,b){for(var c in b)a[c]=b[c];return a};c.clone=function(a){return c.isArray(a)?a.slice(0):c.extend({},a)};c.tap=function(a,b){b(a);return a};c.isEqual=function(a,b){if(a===b)return!0;var d=typeof a;if(d!=typeof b)return!1;if(a==b)return!0;if(!a&&b||a&&!b)return!1;if(a.isEqual)return a.isEqual(b);if(c.isDate(a)&&c.isDate(b))return a.getTime()===b.getTime();if(c.isNaN(a)&&c.isNaN(b))return!0;
if(c.isRegExp(a)&&c.isRegExp(b))return a.source===b.source&&a.global===b.global&&a.ignoreCase===b.ignoreCase&&a.multiline===b.multiline;if(d!=="object")return!1;if(a.length&&a.length!==b.length)return!1;var d=c.keys(a),e=c.keys(b);if(d.length!=e.length)return!1;for(var g in a)if(!c.isEqual(a[g],b[g]))return!1;return!0};c.isEmpty=function(a){return c.keys(a).length==0};c.isElement=function(a){return!!(a&&a.nodeType==1)};c.isArray=function(a){return!(!a||!a.concat||!a.unshift)};c.isArguments=function(a){return a&&
c.isNumber(a.length)&&!a.concat&&!a.substr&&!a.apply&&!j.call(a,"length")};c.isFunction=function(a){return!(!a||!a.constructor||!a.call||!a.apply)};c.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};c.isNumber=function(a){return a===+a||b.call(a)==="[object Number]"};c.isDate=function(a){return!(!a||!a.getTimezoneOffset||!a.setUTCFullYear)};c.isRegExp=function(a){return!(!a||!a.test||!a.exec||!(a.ignoreCase||a.ignoreCase===!1))};c.isNaN=function(a){return c.isNumber(a)&&isNaN(a)};
c.isNull=function(a){return a===null};c.isUndefined=function(a){return typeof a=="undefined"};c.noConflict=function(){a._=m;return this};c.identity=function(a){return a};c.breakLoop=function(){throw g;};var n=0;c.uniqueId=function(a){var b=n++;return a?a+b:b};c.templateSettings={start:"<%",end:"%>",interpolate:/<%=(.+?)%>/g};c.template=function(a,b){var d=c.templateSettings,d=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").replace(RegExp("'(?=[^"+
d.end[0]+"]*"+d.end.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")+")","g"),"\t").split("\t").join("'").replace(d.interpolate,"',$1,'").split(d.start).join("');").split(d.end).join("p.push('")+"');}return p.join('');");return b?d(b):d};c.forEach=c.each;c.foldl=c.inject=c.reduce;c.foldr=c.reduceRight;c.filter=c.select;c.every=c.all;c.some=c.any;c.head=c.first;c.tail=c.rest;c.methods=c.functions;var r=function(a,b){return b?c(a).chain():a};c.each(c.functions(c),function(a){var b=c[a];l.prototype[a]=function(){var a=
c.toArray(arguments);i.call(a,this._wrapped);return r(b.apply(c,a),this._chain)}});c.each(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=Array.prototype[a];l.prototype[a]=function(){b.apply(this._wrapped,arguments);return r(this._wrapped,this._chain)}});c.each(["concat","join","slice"],function(a){var b=Array.prototype[a];l.prototype[a]=function(){return r(b.apply(this._wrapped,arguments),this._chain)}});l.prototype.chain=function(){this._chain=!0;return this};l.prototype.value=
function(){return this._wrapped}})();
(function(){var a=!1,m=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(l){function g(){!a&&this.init&&this.init.apply(this,arguments)}var c=this.prototype;a=!0;var e=new this;a=!1;for(var i in l)e[i]=typeof l[i]=="function"&&typeof c[i]=="function"&&m.test(l[i])?function(a,d){return function(){var e=this._super;this._super=c[a];var g=d.apply(this,arguments);this._super=e;return g}}(i,l[i]):l[i];g.prototype=e;g.constructor=g;g.extend=arguments.callee;return g}})();
var JSON;JSON||(JSON={});
(function(){function a(a){return a<10?"0"+a:a}function m(a){c.lastIndex=0;return c.test(a)?'"'+a.replace(c,function(a){var c=b[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function l(a,b){var c,g,q,f,y=e,u,p=b[a];p&&typeof p==="object"&&typeof p.toJSON==="function"&&(p=p.toJSON(a));typeof d==="function"&&(p=d.call(b,a,p));switch(typeof p){case "string":return m(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);case "object":if(!p)return"null";
e+=i;u=[];if(Object.prototype.toString.apply(p)==="[object Array]"){f=p.length;for(c=0;c<f;c+=1)u[c]=l(c,p)||"null";q=u.length===0?"[]":e?"[\n"+e+u.join(",\n"+e)+"\n"+y+"]":"["+u.join(",")+"]";e=y;return q}if(d&&typeof d==="object"){f=d.length;for(c=0;c<f;c+=1)typeof d[c]==="string"&&(g=d[c],(q=l(g,p))&&u.push(m(g)+(e?": ":":")+q))}else for(g in p)Object.prototype.hasOwnProperty.call(p,g)&&(q=l(g,p))&&u.push(m(g)+(e?": ":":")+q);q=u.length===0?"{}":e?"{\n"+e+u.join(",\n"+e)+"\n"+y+"}":"{"+u.join(",")+
"}";e=y;return q}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var g=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e,i,b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},d;if(typeof JSON.stringify!=="function")JSON.stringify=function(a,b,c){var g;i=e="";if(typeof c==="number")for(g=0;g<c;g+=1)i+=" ";else typeof c==="string"&&(i=c);if((d=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return l("",
{"":a})};if(typeof JSON.parse!=="function")JSON.parse=function(a,b){function c(a,d){var e,g,h=a[d];if(h&&typeof h==="object")for(e in h)Object.prototype.hasOwnProperty.call(h,e)&&(g=c(h,e),g!==void 0?h[e]=g:delete h[e]);return b.call(a,d,h)}var d,a=String(a);g.lastIndex=0;g.test(a)&&(a=a.replace(g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),typeof b==="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");}})();
var behavior=function(){$(document).ready(function(){behavior.init("body")});return{init:function(a){for(var m in this.methods)this.methods[m](a)},methods:{customSelectBoxes:function(a){$(a).find("select").customSelect()},lightboxLinks:function(){$.fn.fancybox.defaults=$.extend($.fn.fancybox.defaults,{padding:0,overlayOpacity:0.01,overlayColor:"#000"});return function(a){$(a).find("a.fancybox").each(function(){$(this).hasClass("iframe")?$(this).fancybox({autoScale:!1,transitionIn:"none",transitionOut:"none",
width:658,height:400,href:this.href.replace(/watch\\?v=/i,"embed/"),type:"iframe"}):$(this).fancybox({titlePosition:"over"})})}}(),pinnedSidebars:function(a){$(a).find(".toc").pin({offset:30})},rotatingTestimonials:function(a){$(a).find("#quotes").quotes()},sourceSelector:function(a){$(a).find("#source select").live("change",function(){if(source_redirect){var a=$(this).val(),l=source_redirect(),a=a?"/"+encodeURIComponent(a):"";location.href=l[0]+a+(l[1]||"")}})},tipsyTooltips:function(a){$(a).find(".tooltipped").each(function(){var a=
$(this),l="s";$.each($(this).attr("className").split(" "),function(a,c){var e=c.match(/^gravity-(.*)$/);if(e)return l=e[1],!1});a.tipsy({fade:!0,html:!0,opacity:0.9,gravity:l})})},toggles:function(a){$(a).find("input[type=checkbox].toggle").toToggle()}}}}(),flash=function(){var a,m,l=function(g,c,e,i){var c=c||"success",b,d=$("#flash").length,j=$("#source"),l=function(){j.length&&(a||$("#body").get(0)).insertBefore(j.get(0),m)},r=function(){if(j.length&&!a)a=j.get(0).parentNode,m=j.get(0).nextSibling;
l();d?($flash.attr("class",null),$flash.empty()):($("#body").prepend('<div id="flash"></div>'),$flash=$("#flash"));$flash.addClass(c).html('<div class="content">'+(e?"<strong>"+$("<div/>").text(e).html()+"</strong> ":"")+g+'<a href="#" class="close" title="Hide this message">Hide this message</a></div>').find(".close").click(function(a){$flash.trigger("hide");$flash.css({height:0});a.preventDefault()});behavior.init($flash);i&&$flash.bind("hide",function(){setTimeout(l,250)}).find(".content ").prepend(j);
b=$flash.css({visibility:"hidden",display:"block"}).find(".content").outerHeight(!0);$flash.css({height:0,visibility:"visible"}).css({height:b+"px"})};window.flash.scroll&&$.smooth("#flash",{as_needed:!0});d?($flash.css({opacity:0}),setTimeout(function(){r();$flash.css({opacity:1})},250)):r()};return{scroll:!0,clear:function(){$("#flash").css({height:0})},error:function(a,c,e){l(a,"error",c,e)},message:function(a,c,e){l(a,"success",c,e)},news:function(a,c,e){l(a,"news",c,e)},warning:function(a,c,
e){l(a,"warning",c,e)},success:function(){this.message.apply(this,arguments)},announcement:function(a,c,e){var i={domain:ENV.cookie.domain,expires:new Date((new Date).getTime()+31536E7),path:"/"},e=e?new Date(e):null;cookie_date=$.cookie("sys-message")?new Date(parseInt($.cookie("sys-message"),10)):null;(!cookie_date||!e||cookie_date<e)&&l(a,"announcement",c,!1);$("#flash .close").click(function(){$.cookie("sys-message",e.getTime(),i)})},persistent:function(){var a=[],c={domain:ENV.cookie.domain,
expires:new Date((new Date).getTime()+31536E7),path:"/"},e={postInstall:{body:'Welcome!  Thanks for joining VigLink.  <a href="/support/next" class="fancybox">Find out what to expect.</a>',logged_in:!0}};$(document).ready(function(){setTimeout(function(){$("#flash").length===0&&_.detect(e,function(a,b){if($.cookie("fm-"+b)==1&&(!a.logged_in||ENV&&ENV.account&&ENV.account.logged_in))return window.flash.persistent.show(b)})},0)});return{clear:function(a){$.cookie("fm-"+a,0,c)},exclude:function(c){a.push(c)},
set:function(a){a="fm-"+a;$.cookie(a)!=0&&$.cookie(a,1,c)},show:function(c){var b=e[c];if(b&&!_.include(a,c))return window.flash[b.type||"message"](b.body),$("#flash .close").click(function(){window.flash.persistent.clear(c)}),!0}}}()}}();_.templateSettings={start:"<?",end:"?>",interpolate:/<\?=(.+?)\?>/g};(function(){var a=$.fn.html;$.fn.html=function(m){var l=a.apply(this,arguments);m&&$(this).each(function(){behavior.init(this)});return l}})();
if($.browser.webkit&&navigator.userAgent.match(/ Chrome\//))$.browser.chrome=!0,delete $.browser.safari;function clippyCopiedCallback(a){var m=$("#clippy_tooltip-"+a);if(m.length!==0){var l=m.attr("original-title");m.attr("title","copied!").trigger("tipsy.update");setTimeout(function(){m.attr("title",l)},500)}}function submitForm(a){document.getElementById(a).submit()};
