(function(e,c){function g(a,b,f){if(f===c&&a.nodeType===1){f=a.getAttribute("data-"+b);if(typeof f==="string"){try{f=f==="true"?true:f==="false"?false:f==="null"?null:!d.isNaN(f)?parseFloat(f):T.test(f)?d.parseJSON(f):f}catch(h){}d.data(a,b,f)}else f=c}return f}function i(){return false}function m(){return true}function o(a,b,f){f[0].type=a;return d.event.handle.apply(b,f)}function r(a){var b,f,h,j,l,t,s,w,K,F,N,U=[];j=[];l=d.data(this,this.nodeType?"events":"__events__");if(typeof l==="function")l=
l.events;if(!(a.liveFired===this||!l||!l.live||a.button&&a.type==="click")){if(a.namespace)N=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var ea=l.live.slice(0);for(s=0;s<ea.length;s++){l=ea[s];l.origType.replace(ga,"")===a.type?j.push(l.selector):ea.splice(s--,1)}j=d(a.target).closest(j,a.currentTarget);w=0;for(K=j.length;w<K;w++){F=j[w];for(s=0;s<ea.length;s++){l=ea[s];if(F.selector===l.selector&&(!N||N.test(l.namespace))){t=F.elem;h=null;if(l.preType===
"mouseenter"||l.preType==="mouseleave"){a.type=l.preType;h=d(a.relatedTarget).closest(l.selector)[0]}if(!h||h!==t)U.push({elem:t,handleObj:l,level:F.level})}}}w=0;for(K=U.length;w<K;w++){j=U[w];if(f&&j.level>f)break;a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;N=j.handleObj.origHandler.apply(j.elem,arguments);if(N===false||a.isPropagationStopped()){f=j.level;if(N===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function z(a,b){return(a&&a!=="*"?a+".":
"")+b.replace(ka,"`").replace(Wa,"&")}function I(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function u(a,b,f){if(d.isFunction(b))return d.grep(a,function(j,l){return!!b.call(j,l,j)===f});else if(b.nodeType)return d.grep(a,function(j){return j===b===f});else if(typeof b==="string"){var h=d.grep(a,function(j){return j.nodeType===1});if(Xa.test(b))return d.filter(b,h,!f);else b=d.filter(b,h)}return d.grep(a,function(j){return d.inArray(j,b)>=0===f})}function E(a){return d.nodeName(a,"table")?
a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Q(a,b){var f=0;b.each(function(){if(this.nodeName===(a[f]&&a[f].nodeName)){var h=d.data(a[f++]),j=d.data(this,h);if(h=h&&h.events){delete j.handle;j.events={};for(var l in h)for(var t in h[l])d.event.add(this,l,h[l][t],h[l][t].data)}}})}function A(a,b){b.src?d.ajax({url:b.src,async:false,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}
function P(a,b,f){var h=b==="width"?a.offsetWidth:a.offsetHeight;if(f==="border")return h;d.each(b==="width"?Ya:Za,function(){f||(h-=parseFloat(d.css(a,"padding"+this))||0);if(f==="margin")h+=parseFloat(d.css(a,"margin"+this))||0;else h-=parseFloat(d.css(a,"border"+this+"Width"))||0});return h}function R(a,b,f,h){if(d.isArray(b)&&b.length)d.each(b,function(j,l){f||$a.test(a)?h(a,l):R(a+"["+(typeof l==="object"||d.isArray(l)?j:"")+"]",l,f,h)});else if(!f&&b!=null&&typeof b==="object")d.isEmptyObject(b)?
h(a,""):d.each(b,function(j,l){R(a+"["+j+"]",l,f,h)});else h(a,b)}function H(a,b){var f={};d.each(Ga.concat.apply([],Ga.slice(0,b)),function(){f[this]=a});return f}function W(a){if(!Ca[a]){var b=d("<"+a+">").appendTo("body"),f=b.css("display");b.remove();if(f==="none"||f==="")f="block";Ca[a]=f}return Ca[a]}function Z(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var B=e.document,d=function(){function a(){if(!b.isReady){try{B.documentElement.doScroll("left")}catch(q){setTimeout(a,
1);return}b.ready()}}var b=function(q,C){return new b.fn.init(q,C)},f=e.jQuery,h=e.$,j,l=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,t=/\S/,s=/^\s+/,w=/\s+$/,K=/\W/,F=/\d/,N=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,U=/^[\],:{}\s]*$/,ea=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,L=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,da=/(?:^|:|,)(?:\s*\[)+/g,na=/(webkit)[ \/]([\w.]+)/,k=/(opera)(?:.*version)?[ \/]([\w.]+)/,p=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,x=navigator.userAgent,y=false,
D=[],M,O=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,la=Array.prototype.push,oa=Array.prototype.slice,pa=String.prototype.trim,X=Array.prototype.indexOf,sa={};b.fn=b.prototype={init:function(q,C){var J,S;if(!q)return this;if(q.nodeType){this.context=this[0]=q;this.length=1;return this}if(q==="body"&&!C&&B.body){this.context=B;this[0]=B.body;this.selector="body";this.length=1;return this}if(typeof q==="string")if((J=l.exec(q))&&(J[1]||!C))if(J[1]){S=C?C.ownerDocument||C:B;if(q=N.exec(q))if(b.isPlainObject(C)){q=
[B.createElement(q[1])];b.fn.attr.call(q,C,true)}else q=[S.createElement(q[1])];else{q=b.buildFragment([J[1]],[S]);q=(q.cacheable?q.fragment.cloneNode(true):q.fragment).childNodes}return b.merge(this,q)}else{if((C=B.getElementById(J[2]))&&C.parentNode){if(C.id!==J[2])return j.find(q);this.length=1;this[0]=C}this.context=B;this.selector=q;return this}else if(!C&&!K.test(q)){this.selector=q;this.context=B;q=B.getElementsByTagName(q);return b.merge(this,q)}else return!C||C.jquery?(C||j).find(q):b(C).find(q);
else if(b.isFunction(q))return j.ready(q);if(q.selector!==c){this.selector=q.selector;this.context=q.context}return b.makeArray(q,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return oa.call(this,0)},get:function(q){return q==null?this.toArray():q<0?this.slice(q)[0]:this[q]},pushStack:function(q,C,J){var S=b();b.isArray(q)?la.apply(S,q):b.merge(S,q);S.prevObject=this;S.context=this.context;if(C==="find")S.selector=this.selector+(this.selector?" ":
"")+J;else if(C)S.selector=this.selector+"."+C+"("+J+")";return S},each:function(q,C){return b.each(this,q,C)},ready:function(q){b.bindReady();if(b.isReady)q.call(B,b);else D&&D.push(q);return this},eq:function(q){return q===-1?this.slice(q):this.slice(q,+q+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(oa.apply(this,arguments),"slice",oa.call(arguments).join(","))},map:function(q){return this.pushStack(b.map(this,function(C,J){return q.call(C,
J,C)}))},end:function(){return this.prevObject||b(null)},push:la,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var q,C,J,S,fa,ba=arguments[0]||{},ia=1,ra=arguments.length,Da=false;if(typeof ba==="boolean"){Da=ba;ba=arguments[1]||{};ia=2}if(typeof ba!=="object"&&!b.isFunction(ba))ba={};if(ra===ia){ba=this;--ia}for(;ia<ra;ia++)if((q=arguments[ia])!=null)for(C in q){J=ba[C];S=q[C];if(ba!==S)if(Da&&S&&(b.isPlainObject(S)||(fa=b.isArray(S)))){if(fa){fa=false;J=
J&&b.isArray(J)?J:[]}else J=J&&b.isPlainObject(J)?J:{};ba[C]=b.extend(Da,J,S)}else if(S!==c)ba[C]=S}return ba};b.extend({noConflict:function(q){e.$=h;if(q)e.jQuery=f;return b},isReady:false,readyWait:1,ready:function(q){q===true&&b.readyWait--;if(!b.readyWait||q!==true&&!b.isReady){if(!B.body)return setTimeout(b.ready,1);b.isReady=true;if(!(q!==true&&--b.readyWait>0))if(D){var C=0,J=D;for(D=null;q=J[C++];)q.call(B,b);b.fn.trigger&&b(B).trigger("ready").unbind("ready")}}},bindReady:function(){if(!y){y=
true;if(B.readyState==="complete")return setTimeout(b.ready,1);if(B.addEventListener){B.addEventListener("DOMContentLoaded",M,false);e.addEventListener("load",b.ready,false)}else if(B.attachEvent){B.attachEvent("onreadystatechange",M);e.attachEvent("onload",b.ready);var q=false;try{q=e.frameElement==null}catch(C){}B.documentElement.doScroll&&q&&a()}}},isFunction:function(q){return b.type(q)==="function"},isArray:Array.isArray||function(q){return b.type(q)==="array"},isWindow:function(q){return q&&
typeof q==="object"&&"setInterval"in q},isNaN:function(q){return q==null||!F.test(q)||isNaN(q)},type:function(q){return q==null?String(q):sa[O.call(q)]||"object"},isPlainObject:function(q){if(!q||b.type(q)!=="object"||q.nodeType||b.isWindow(q))return false;if(q.constructor&&!aa.call(q,"constructor")&&!aa.call(q.constructor.prototype,"isPrototypeOf"))return false;var C;for(C in q);return C===c||aa.call(q,C)},isEmptyObject:function(q){for(var C in q)return false;return true},error:function(q){throw q;
},parseJSON:function(q){if(typeof q!=="string"||!q)return null;q=b.trim(q);if(U.test(q.replace(ea,"@").replace(L,"]").replace(da,"")))return e.JSON&&e.JSON.parse?e.JSON.parse(q):(new Function("return "+q))();else b.error("Invalid JSON: "+q)},noop:function(){},globalEval:function(q){if(q&&t.test(q)){var C=B.getElementsByTagName("head")[0]||B.documentElement,J=B.createElement("script");J.type="text/javascript";if(b.support.scriptEval)J.appendChild(B.createTextNode(q));else J.text=q;C.insertBefore(J,
C.firstChild);C.removeChild(J)}},nodeName:function(q,C){return q.nodeName&&q.nodeName.toUpperCase()===C.toUpperCase()},each:function(q,C,J){var S,fa=0,ba=q.length,ia=ba===c||b.isFunction(q);if(J)if(ia)for(S in q){if(C.apply(q[S],J)===false)break}else for(;fa<ba;){if(C.apply(q[fa++],J)===false)break}else if(ia)for(S in q){if(C.call(q[S],S,q[S])===false)break}else for(J=q[0];fa<ba&&C.call(J,fa,J)!==false;J=q[++fa]);return q},trim:pa?function(q){return q==null?"":pa.call(q)}:function(q){return q==null?
"":q.toString().replace(s,"").replace(w,"")},makeArray:function(q,C){C=C||[];if(q!=null){var J=b.type(q);q.length==null||J==="string"||J==="function"||J==="regexp"||b.isWindow(q)?la.call(C,q):b.merge(C,q)}return C},inArray:function(q,C){if(C.indexOf)return C.indexOf(q);for(var J=0,S=C.length;J<S;J++)if(C[J]===q)return J;return-1},merge:function(q,C){var J=q.length,S=0;if(typeof C.length==="number")for(var fa=C.length;S<fa;S++)q[J++]=C[S];else for(;C[S]!==c;)q[J++]=C[S++];q.length=J;return q},grep:function(q,
C,J){var S=[],fa;J=!!J;for(var ba=0,ia=q.length;ba<ia;ba++){fa=!!C(q[ba],ba);J!==fa&&S.push(q[ba])}return S},map:function(q,C,J){for(var S=[],fa,ba=0,ia=q.length;ba<ia;ba++){fa=C(q[ba],ba,J);if(fa!=null)S[S.length]=fa}return S.concat.apply([],S)},guid:1,proxy:function(q,C,J){if(arguments.length===2)if(typeof C==="string"){J=q;q=J[C];C=c}else if(C&&!b.isFunction(C)){J=C;C=c}if(!C&&q)C=function(){return q.apply(J||this,arguments)};if(q)C.guid=q.guid=q.guid||C.guid||b.guid++;return C},access:function(q,
C,J,S,fa,ba){var ia=q.length;if(typeof C==="object"){for(var ra in C)b.access(q,ra,C[ra],S,fa,J);return q}if(J!==c){S=!ba&&S&&b.isFunction(J);for(ra=0;ra<ia;ra++)fa(q[ra],C,S?J.call(q[ra],ra,fa(q[ra],C)):J,ba);return q}return ia?fa(q[0],C):c},now:function(){return(new Date).getTime()},uaMatch:function(q){q=q.toLowerCase();q=na.exec(q)||k.exec(q)||p.exec(q)||q.indexOf("compatible")<0&&v.exec(q)||[];return{browser:q[1]||"",version:q[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
function(q,C){sa["[object "+C+"]"]=C.toLowerCase()});x=b.uaMatch(x);if(x.browser){b.browser[x.browser]=true;b.browser.version=x.version}if(b.browser.webkit)b.browser.safari=true;if(X)b.inArray=function(q,C){return X.call(C,q)};if(!/\s/.test("\u00a0")){s=/^[\s\xA0]+/;w=/[\s\xA0]+$/}j=b(B);if(B.addEventListener)M=function(){B.removeEventListener("DOMContentLoaded",M,false);b.ready()};else if(B.attachEvent)M=function(){if(B.readyState==="complete"){B.detachEvent("onreadystatechange",M);b.ready()}};return e.jQuery=
e.$=b}();(function(){d.support={};var a=B.documentElement,b=B.createElement("script"),f=B.createElement("div"),h="script"+d.now();f.style.display="none";f.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var j=f.getElementsByTagName("*"),l=f.getElementsByTagName("a")[0],t=B.createElement("select"),s=t.appendChild(B.createElement("option"));if(!(!j||!j.length||!l)){d.support={leadingWhitespace:f.firstChild.nodeType===3,tbody:!f.getElementsByTagName("tbody").length,
htmlSerialize:!!f.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:/^0.55$/.test(l.style.opacity),cssFloat:!!l.style.cssFloat,checkOn:f.getElementsByTagName("input")[0].value==="on",optSelected:s.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};t.disabled=true;d.support.optDisabled=
!s.disabled;b.type="text/javascript";try{b.appendChild(B.createTextNode("window."+h+"=1;"))}catch(w){}a.insertBefore(b,a.firstChild);if(e[h]){d.support.scriptEval=true;delete e[h]}try{delete b.test}catch(K){d.support.deleteExpando=false}a.removeChild(b);if(f.attachEvent&&f.fireEvent){f.attachEvent("onclick",function F(){d.support.noCloneEvent=false;f.detachEvent("onclick",F)});f.cloneNode(true).fireEvent("onclick")}f=B.createElement("div");f.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
a=B.createDocumentFragment();a.appendChild(f.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var F=B.createElement("div");F.style.width=F.style.paddingLeft="1px";B.body.appendChild(F);d.boxModel=d.support.boxModel=F.offsetWidth===2;if("zoom"in F.style){F.style.display="inline";F.style.zoom=1;d.support.inlineBlockNeedsLayout=F.offsetWidth===2;F.style.display="";F.innerHTML="<div style='width:4px;'></div>";d.support.shrinkWrapBlocks=F.offsetWidth!==
2}F.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var N=F.getElementsByTagName("td");d.support.reliableHiddenOffsets=N[0].offsetHeight===0;N[0].style.display="";N[1].style.display="none";d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&N[0].offsetHeight===0;F.innerHTML="";B.body.removeChild(F).style.display="none"});a=function(F){var N=B.createElement("div");F="on"+F;var U=F in N;if(!U){N.setAttribute(F,"return;");U=typeof N[F]==="function"}return U};
d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=b=f=j=l=null}})();var G={},T=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+d.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,f){if(d.acceptData(a)){a=a==e?G:a;var h=a.nodeType,j=h?a[d.expando]:null,l=d.cache;if(!(h&&!j&&typeof b==="string"&&f===c)){if(h)j||(a[d.expando]=j=++d.uuid);else l=a;if(typeof b==="object")if(h)l[j]=d.extend(l[j],b);else d.extend(l,
b);else if(h&&!l[j])l[j]={};a=h?l[j]:l;if(f!==c)a[b]=f;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(d.acceptData(a)){a=a==e?G:a;var f=a.nodeType,h=f?a[d.expando]:a,j=d.cache,l=f?j[h]:h;if(b){if(l){delete l[b];f&&d.isEmptyObject(l)&&d.removeData(a)}}else if(f&&d.support.deleteExpando)delete a[d.expando];else if(a.removeAttribute)a.removeAttribute(d.expando);else if(f)delete j[h];else for(var t in a)delete a[t]}},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];
if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});d.fn.extend({data:function(a,b){var f=null;if(typeof a==="undefined"){if(this.length){var h=this[0].attributes,j;f=d.data(this[0]);for(var l=0,t=h.length;l<t;l++){j=h[l].name;if(j.indexOf("data-")===0){j=j.substr(5);g(this[0],j,f[j])}}}return f}else if(typeof a==="object")return this.each(function(){d.data(this,a)});var s=a.split(".");s[1]=s[1]?"."+s[1]:"";if(b===c){f=this.triggerHandler("getData"+s[1]+"!",[s[0]]);if(f===c&&this.length){f=
d.data(this[0],a);f=g(this[0],a,f)}return f===c&&s[1]?this.data(s[0]):f}else return this.each(function(){var w=d(this),K=[s[0],b];w.triggerHandler("setData"+s[1]+"!",K);d.data(this,a,b);w.triggerHandler("changeData"+s[1]+"!",K)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,b,f){if(a){b=(b||"fx")+"queue";var h=d.data(a,b);if(!f)return h||[];if(!h||d.isArray(f))h=d.data(a,b,d.makeArray(f));else h.push(f);return h}},dequeue:function(a,b){b=
b||"fx";var f=d.queue(a,b),h=f.shift();if(h==="inprogress")h=f.shift();if(h){b==="fx"&&f.unshift("inprogress");h.call(a,function(){d.dequeue(a,b)})}}});d.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===c)return d.queue(this[0],a);return this.each(function(){var f=d.queue(this,a,b);a==="fx"&&f[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,
function(){var f=this;setTimeout(function(){d.dequeue(f,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var V=/[\n\t]/g,Y=/\s+/,ca=/\r/g,ma=/^(?:href|src|style)$/,xa=/^(?:button|input)$/i,Ea=/^(?:button|input|object|select|textarea)$/i,ua=/^a(?:rea)?$/i,ha=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
d.fn.extend({attr:function(a,b){return d.access(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(K){var F=d(this);F.addClass(a.call(this,K,F.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(Y),f=0,h=this.length;f<h;f++){var j=this[f];if(j.nodeType===1)if(j.className){for(var l=" "+j.className+" ",t=j.className,s=0,w=b.length;s<
w;s++)if(l.indexOf(" "+b[s]+" ")<0)t+=" "+b[s];j.className=d.trim(t)}else j.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(w){var K=d(this);K.removeClass(a.call(this,w,K.attr("class")))});if(a&&typeof a==="string"||a===c)for(var b=(a||"").split(Y),f=0,h=this.length;f<h;f++){var j=this[f];if(j.nodeType===1&&j.className)if(a){for(var l=(" "+j.className+" ").replace(V," "),t=0,s=b.length;t<s;t++)l=l.replace(" "+b[t]+" "," ");j.className=d.trim(l)}else j.className=
""}return this},toggleClass:function(a,b){var f=typeof a,h=typeof b==="boolean";if(d.isFunction(a))return this.each(function(j){var l=d(this);l.toggleClass(a.call(this,j,l.attr("class"),b),b)});return this.each(function(){if(f==="string")for(var j,l=0,t=d(this),s=b,w=a.split(Y);j=w[l++];){s=h?s:!t.hasClass(j);t[s?"addClass":"removeClass"](j)}else if(f==="undefined"||f==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||
""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,f=this.length;b<f;b++)if((" "+this[b].className+" ").replace(V," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(d.nodeName(b,"option")){var f=b.attributes.value;return!f||f.specified?b.value:b.text}if(d.nodeName(b,"select")){var h=b.selectedIndex;f=[];var j=b.options;b=b.type==="select-one";if(h<0)return null;var l=b?h:0;for(h=b?h+1:j.length;l<h;l++){var t=j[l];if(t.selected&&(d.support.optDisabled?
!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!d.nodeName(t.parentNode,"optgroup"))){a=d(t).val();if(b)return a;f.push(a)}}return f}if(ha.test(b.type)&&!d.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(ca,"")}return c}var s=d.isFunction(a);return this.each(function(w){var K=d(this),F=a;if(this.nodeType===1){if(s)F=a.call(this,w,K.val());if(F==null)F="";else if(typeof F==="number")F+="";else if(d.isArray(F))F=d.map(F,function(U){return U==
null?"":U+""});if(d.isArray(F)&&ha.test(this.type))this.checked=d.inArray(K.val(),F)>=0;else if(d.nodeName(this,"select")){var N=d.makeArray(F);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),N)>=0});if(!N.length)this.selectedIndex=-1}else this.value=F}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,f,h){if(!a||a.nodeType===3||a.nodeType===8)return c;if(h&&b in d.attrFn)return d(a)[b](f);h=a.nodeType!==
1||!d.isXMLDoc(a);var j=f!==c;b=h&&d.props[b]||b;var l=ma.test(b);if((b in a||a[b]!==c)&&h&&!l){if(j){b==="type"&&xa.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");if(f===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=f}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ea.test(a.nodeName)||ua.test(a.nodeName)&&a.href?0:c;return a[b]}if(!d.support.style&&
h&&b==="style"){if(j)a.style.cssText=""+f;return a.style.cssText}j&&a.setAttribute(b,""+f);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return c;a=!d.support.hrefNormalized&&h&&l?a.getAttribute(b,2):a.getAttribute(b);return a===null?c:a}});var ga=/\.(.*)$/,ja=/^(?:textarea|input|select)$/i,ka=/\./g,Wa=/ /g,ab=/[^\w\s.|`]/g,bb=function(a){return a.replace(ab,"\\$&")},Ha={focusin:0,focusout:0};d.event={add:function(a,b,f,h){if(!(a.nodeType===3||a.nodeType===8)){if(d.isWindow(a)&&a!==e&&!a.frameElement)a=
e;if(f===false)f=i;else if(!f)return;var j,l;if(f.handler){j=f;f=j.handler}if(!f.guid)f.guid=d.guid++;if(l=d.data(a)){var t=a.nodeType?"events":"__events__",s=l[t],w=l.handle;if(typeof s==="function"){w=s.handle;s=s.events}else if(!s){a.nodeType||(l[t]=l=function(){});l.events=s={}}if(!w)l.handle=w=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(w.elem,arguments):c};w.elem=a;b=b.split(" ");for(var K=0,F;t=b[K++];){l=j?d.extend({},j):{handler:f,data:h};if(t.indexOf(".")>
-1){F=t.split(".");t=F.shift();l.namespace=F.slice(0).sort().join(".")}else{F=[];l.namespace=""}l.type=t;if(!l.guid)l.guid=f.guid;var N=s[t],U=d.event.special[t]||{};if(!N){N=s[t]=[];if(!U.setup||U.setup.call(a,h,F,w)===false)if(a.addEventListener)a.addEventListener(t,w,false);else a.attachEvent&&a.attachEvent("on"+t,w)}if(U.add){U.add.call(a,l);if(!l.handler.guid)l.handler.guid=f.guid}N.push(l);d.event.global[t]=true}a=null}}},global:{},remove:function(a,b,f,h){if(!(a.nodeType===3||a.nodeType===
8)){if(f===false)f=i;var j,l,t=0,s,w,K,F,N,U,ea=a.nodeType?"events":"__events__",L=d.data(a),da=L&&L[ea];if(L&&da){if(typeof da==="function"){L=da;da=da.events}if(b&&b.type){f=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(j in da)d.event.remove(a,j+b)}else{for(b=b.split(" ");j=b[t++];){F=j;s=j.indexOf(".")<0;w=[];if(!s){w=j.split(".");j=w.shift();K=new RegExp("(^|\\.)"+d.map(w.slice(0).sort(),bb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(N=da[j])if(f){F=d.event.special[j]||
{};for(l=h||0;l<N.length;l++){U=N[l];if(f.guid===U.guid){if(s||K.test(U.namespace)){h==null&&N.splice(l--,1);F.remove&&F.remove.call(a,U)}if(h!=null)break}}if(N.length===0||h!=null&&N.length===1){if(!F.teardown||F.teardown.call(a,w)===false)d.removeEvent(a,j,L.handle);delete da[j]}}else for(l=0;l<N.length;l++){U=N[l];if(s||K.test(U.namespace)){d.event.remove(a,F,U.handler,l);N.splice(l--,1)}}}if(d.isEmptyObject(da)){if(b=L.handle)b.elem=null;delete L.events;delete L.handle;if(typeof L==="function")d.removeData(a,
ea);else d.isEmptyObject(L)&&d.removeData(a)}}}}},trigger:function(a,b,f,h){var j=a.type||a;if(!h){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(j),a):d.Event(j);if(j.indexOf("!")>=0){a.type=j=j.slice(0,-1);a.exclusive=true}if(!f){a.stopPropagation();d.event.global[j]&&d.each(d.cache,function(){this.events&&this.events[j]&&d.event.trigger(a,b,this.handle.elem)})}if(!f||f.nodeType===3||f.nodeType===8)return c;a.result=c;a.target=f;b=d.makeArray(b);b.unshift(a)}a.currentTarget=f;(h=f.nodeType?
d.data(f,"handle"):(d.data(f,"__events__")||{}).handle)&&h.apply(f,b);h=f.parentNode||f.ownerDocument;try{if(!(f&&f.nodeName&&d.noData[f.nodeName.toLowerCase()]))if(f["on"+j]&&f["on"+j].apply(f,b)===false){a.result=false;a.preventDefault()}}catch(l){}if(!a.isPropagationStopped()&&h)d.event.trigger(a,b,h,true);else if(!a.isDefaultPrevented()){var t;h=a.target;var s=j.replace(ga,""),w=d.nodeName(h,"a")&&s==="click",K=d.event.special[s]||{};if((!K._default||K._default.call(f,a)===false)&&!w&&!(h&&h.nodeName&&
d.noData[h.nodeName.toLowerCase()])){try{if(h[s]){if(t=h["on"+s])h["on"+s]=null;d.event.triggered=true;h[s]()}}catch(F){}if(t)h["on"+s]=t;d.event.triggered=false}}},handle:function(a){var b,f,h,j;f=[];var l=d.makeArray(arguments);a=l[0]=d.event.fix(a||e.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){h=a.type.split(".");a.type=h.shift();f=h.slice(0).sort();h=new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||f.join(".");j=d.data(this,this.nodeType?
"events":"__events__");if(typeof j==="function")j=j.events;f=(j||{})[a.type];if(j&&f){f=f.slice(0);j=0;for(var t=f.length;j<t;j++){var s=f[j];if(b||h.test(s.namespace)){a.handler=s.handler;a.data=s.data;a.handleObj=s;s=s.handler.apply(this,l);if(s!==c){a.result=s;if(s===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[d.expando])return a;var b=a;a=d.Event(b);for(var f=this.props.length,h;f;){h=this.props[--f];a[h]=b[h]}if(!a.target)a.target=a.srcElement||B;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=B.documentElement;f=B.body;a.pageX=a.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b&&b.clientLeft||f&&f.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
f&&f.scrollTop||0)-(b&&b.clientTop||f&&f.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==c)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,z(a.origType,a.selector),d.extend({},a,{handler:r,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,
z(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,f){if(d.isWindow(this))this.onbeforeunload=f},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};d.removeEvent=B.removeEventListener?function(a,b,f){a.removeEventListener&&a.removeEventListener(b,f,false)}:function(a,b,f){a.detachEvent&&a.detachEvent("on"+b,f)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
d.now();this[d.expando]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=m;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=m;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=m;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i};
var Ia=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;d.event.handle.apply(this,arguments)}}catch(f){}},Ja=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(f){d.event.add(this,b,f&&f.selector?Ja:Ia,a)},teardown:function(f){d.event.remove(this,b,f&&f.selector?Ja:Ia)}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form"){d.event.add(this,"click.specialSubmit",function(a){var b=a.target,f=b.type;if((f==="submit"||f==="image")&&d(b).closest("form").length){a.liveFired=c;return o("submit",this,arguments)}});d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,f=b.type;if((f==="text"||f==="password")&&d(b).closest("form").length&&a.keyCode===13){a.liveFired=c;return o("submit",this,arguments)}})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var va,
Ka=function(a){var b=a.type,f=a.value;if(b==="radio"||b==="checkbox")f=a.checked;else if(b==="select-multiple")f=a.selectedIndex>-1?d.map(a.options,function(h){return h.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")f=a.selectedIndex;return f},ya=function(a,b){var f=a.target,h,j;if(!(!ja.test(f.nodeName)||f.readOnly)){h=d.data(f,"_change_data");j=Ka(f);if(a.type!=="focusout"||f.type!=="radio")d.data(f,"_change_data",j);if(!(h===c||j===h))if(h!=null||j){a.type="change";a.liveFired=
c;return d.event.trigger(a,b,f)}}};d.event.special.change={filters:{focusout:ya,beforedeactivate:ya,click:function(a){var b=a.target,f=b.type;if(f==="radio"||f==="checkbox"||b.nodeName.toLowerCase()==="select")return ya.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 ya.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Ka(a))}},setup:function(){if(this.type===
"file")return false;for(var a in va)d.event.add(this,a+".specialChange",va[a]);return ja.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return ja.test(this.nodeName)}};va=d.event.special.change.filters;va.focus=va.beforeactivate}B.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(h){h=d.event.fix(h);h.type=b;return d.event.trigger(h,null,h.target)}d.event.special[b]={setup:function(){Ha[b]++===0&&B.addEventListener(a,f,true)},teardown:function(){--Ha[b]===
0&&B.removeEventListener(a,f,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(f,h,j){if(typeof f==="object"){for(var l in f)this[b](l,h,f[l],j);return this}if(d.isFunction(h)||h===false){j=h;h=c}var t=b==="one"?d.proxy(j,function(w){d(this).unbind(w,t);return j.apply(this,arguments)}):j;if(f==="unload"&&b!=="one")this.one(f,h,j);else{l=0;for(var s=this.length;l<s;l++)d.event.add(this[l],f,t,h)}return this}});d.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var f in a)this.unbind(f,
a[f]);else{f=0;for(var h=this.length;f<h;f++)d.event.remove(this[f],a,b)}return this},delegate:function(a,b,f,h){return this.live(b,f,h,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(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=d.Event(a);a.preventDefault();a.stopPropagation();d.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,f=1;f<
b.length;)d.proxy(a,b[f++]);return this.click(d.proxy(a,function(h){var j=(d.data(this,"lastToggle"+a.guid)||0)%f;d.data(this,"lastToggle"+a.guid,j+1);h.preventDefault();return b[j].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var La={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,b){d.fn[b]=function(f,h,j,l){var t,s=0,w,K,F=l||this.selector;l=l?this:d(this.context);if(typeof f===
"object"&&!f.preventDefault){for(t in f)l[b](t,h,f[t],F);return this}if(d.isFunction(h)){j=h;h=c}for(f=(f||"").split(" ");(t=f[s++])!=null;){w=ga.exec(t);K="";if(w){K=w[0];t=t.replace(ga,"")}if(t==="hover")f.push("mouseenter"+K,"mouseleave"+K);else{w=t;if(t==="focus"||t==="blur"){f.push(La[t]+K);t+=K}else t=(La[t]||t)+K;if(b==="live"){K=0;for(var N=l.length;K<N;K++)d.event.add(l[K],"live."+z(t,F),{data:h,selector:F,handler:j,origType:t,origHandler:j,preType:w})}else l.unbind("live."+z(t,F),j)}}return this}});
d.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){d.fn[b]=function(f,h){if(h==null){h=f;f=null}return arguments.length>0?this.bind(b,f,h):this.trigger(b)};if(d.attrFn)d.attrFn[b]=true});e.attachEvent&&!e.addEventListener&&d(e).bind("unload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(b){}});
(function(){function a(k,p,v,x,y,D){y=0;for(var M=x.length;y<M;y++){var O=x[y];if(O){var aa=false;for(O=O[k];O;){if(O.sizcache===v){aa=x[O.sizset];break}if(O.nodeType===1&&!D){O.sizcache=v;O.sizset=y}if(O.nodeName.toLowerCase()===p){aa=O;break}O=O[k]}x[y]=aa}}}function b(k,p,v,x,y,D){y=0;for(var M=x.length;y<M;y++){var O=x[y];if(O){var aa=false;for(O=O[k];O;){if(O.sizcache===v){aa=x[O.sizset];break}if(O.nodeType===1){if(!D){O.sizcache=v;O.sizset=y}if(typeof p!=="string"){if(O===p){aa=true;break}}else if(s.filter(p,
[O]).length>0){aa=O;break}}O=O[k]}x[y]=aa}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,j=Object.prototype.toString,l=false,t=true;[0,0].sort(function(){t=false;return 0});var s=function(k,p,v,x){v=v||[];var y=p=p||B;if(p.nodeType!==1&&p.nodeType!==9)return[];if(!k||typeof k!=="string")return v;var D,M,O,aa,la,oa=true,pa=s.isXML(p),X=[],sa=k;do{f.exec("");if(D=f.exec(sa)){sa=D[3];X.push(D[1]);if(D[2]){aa=
D[3];break}}}while(D);if(X.length>1&&K.exec(k))if(X.length===2&&w.relative[X[0]])M=na(X[0]+X[1],p);else for(M=w.relative[X[0]]?[p]:s(X.shift(),p);X.length;){k=X.shift();if(w.relative[k])k+=X.shift();M=na(k,M)}else{if(!x&&X.length>1&&p.nodeType===9&&!pa&&w.match.ID.test(X[0])&&!w.match.ID.test(X[X.length-1])){D=s.find(X.shift(),p,pa);p=D.expr?s.filter(D.expr,D.set)[0]:D.set[0]}if(p){D=x?{expr:X.pop(),set:U(x)}:s.find(X.pop(),X.length===1&&(X[0]==="~"||X[0]==="+")&&p.parentNode?p.parentNode:p,pa);M=
D.expr?s.filter(D.expr,D.set):D.set;if(X.length>0)O=U(M);else oa=false;for(;X.length;){D=la=X.pop();if(w.relative[la])D=X.pop();else la="";if(D==null)D=p;w.relative[la](O,D,pa)}}else O=[]}O||(O=M);O||s.error(la||k);if(j.call(O)==="[object Array]")if(oa)if(p&&p.nodeType===1)for(k=0;O[k]!=null;k++){if(O[k]&&(O[k]===true||O[k].nodeType===1&&s.contains(p,O[k])))v.push(M[k])}else for(k=0;O[k]!=null;k++)O[k]&&O[k].nodeType===1&&v.push(M[k]);else v.push.apply(v,O);else U(O,v);if(aa){s(aa,y,v,x);s.uniqueSort(v)}return v};
s.uniqueSort=function(k){if(L){l=t;k.sort(L);if(l)for(var p=1;p<k.length;p++)k[p]===k[p-1]&&k.splice(p--,1)}return k};s.matches=function(k,p){return s(k,null,null,p)};s.matchesSelector=function(k,p){return s(p,null,null,[k]).length>0};s.find=function(k,p,v){var x;if(!k)return[];for(var y=0,D=w.order.length;y<D;y++){var M,O=w.order[y];if(M=w.leftMatch[O].exec(k)){var aa=M[1];M.splice(1,1);if(aa.substr(aa.length-1)!=="\\"){M[1]=(M[1]||"").replace(/\\/g,"");x=w.find[O](M,p,v);if(x!=null){k=k.replace(w.match[O],
"");break}}}}x||(x=p.getElementsByTagName("*"));return{set:x,expr:k}};s.filter=function(k,p,v,x){for(var y,D,M=k,O=[],aa=p,la=p&&p[0]&&s.isXML(p[0]);k&&p.length;){for(var oa in w.filter)if((y=w.leftMatch[oa].exec(k))!=null&&y[2]){var pa,X,sa=w.filter[oa];X=y[1];D=false;y.splice(1,1);if(X.substr(X.length-1)!=="\\"){if(aa===O)O=[];if(w.preFilter[oa])if(y=w.preFilter[oa](y,aa,v,O,x,la)){if(y===true)continue}else D=pa=true;if(y)for(var q=0;(X=aa[q])!=null;q++)if(X){pa=sa(X,y,q,aa);var C=x^!!pa;if(v&&
pa!=null)if(C)D=true;else aa[q]=false;else if(C){O.push(X);D=true}}if(pa!==c){v||(aa=O);k=k.replace(w.match[oa],"");if(!D)return[];break}}}if(k===M)if(D==null)s.error(k);else break;M=k}return aa};s.error=function(k){throw"Syntax error, unrecognized expression: "+k;};var w=s.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(k){return k.getAttribute("href")}},relative:{"+":function(k,p){var v=typeof p==="string",x=v&&!/\W/.test(p);v=v&&!x;if(x)p=p.toLowerCase();x=0;for(var y=k.length,
D;x<y;x++)if(D=k[x]){for(;(D=D.previousSibling)&&D.nodeType!==1;);k[x]=v||D&&D.nodeName.toLowerCase()===p?D||false:D===p}v&&s.filter(p,k,true)},">":function(k,p){var v,x=typeof p==="string",y=0,D=k.length;if(x&&!/\W/.test(p))for(p=p.toLowerCase();y<D;y++){if(v=k[y]){v=v.parentNode;k[y]=v.nodeName.toLowerCase()===p?v:false}}else{for(;y<D;y++)if(v=k[y])k[y]=x?v.parentNode:v.parentNode===p;x&&s.filter(p,k,true)}},"":function(k,p,v){var x,y=h++,D=b;if(typeof p==="string"&&!/\W/.test(p)){x=p=p.toLowerCase();
D=a}D("parentNode",p,y,k,x,v)},"~":function(k,p,v){var x,y=h++,D=b;if(typeof p==="string"&&!/\W/.test(p)){x=p=p.toLowerCase();D=a}D("previousSibling",p,y,k,x,v)}},find:{ID:function(k,p,v){if(typeof p.getElementById!=="undefined"&&!v)return(k=p.getElementById(k[1]))&&k.parentNode?[k]:[]},NAME:function(k,p){if(typeof p.getElementsByName!=="undefined"){var v=[];p=p.getElementsByName(k[1]);for(var x=0,y=p.length;x<y;x++)p[x].getAttribute("name")===k[1]&&v.push(p[x]);return v.length===0?null:v}},TAG:function(k,
p){return p.getElementsByTagName(k[1])}},preFilter:{CLASS:function(k,p,v,x,y,D){k=" "+k[1].replace(/\\/g,"")+" ";if(D)return k;D=0;for(var M;(M=p[D])!=null;D++)if(M)if(y^(M.className&&(" "+M.className+" ").replace(/[\t\n]/g," ").indexOf(k)>=0))v||x.push(M);else if(v)p[D]=false;return false},ID:function(k){return k[1].replace(/\\/g,"")},TAG:function(k){return k[1].toLowerCase()},CHILD:function(k){if(k[1]==="nth"){var p=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(k[2]==="even"&&"2n"||k[2]==="odd"&&"2n+1"||!/\D/.test(k[2])&&
"0n+"+k[2]||k[2]);k[2]=p[1]+(p[2]||1)-0;k[3]=p[3]-0}k[0]=h++;return k},ATTR:function(k,p,v,x,y,D){p=k[1].replace(/\\/g,"");if(!D&&w.attrMap[p])k[1]=w.attrMap[p];if(k[2]==="~=")k[4]=" "+k[4]+" ";return k},PSEUDO:function(k,p,v,x,y){if(k[1]==="not")if((f.exec(k[3])||"").length>1||/^\w/.test(k[3]))k[3]=s(k[3],null,null,p);else{k=s.filter(k[3],p,v,true^y);v||x.push.apply(x,k);return false}else if(w.match.POS.test(k[0])||w.match.CHILD.test(k[0]))return true;return k},POS:function(k){k.unshift(true);return k}},
filters:{enabled:function(k){return k.disabled===false&&k.type!=="hidden"},disabled:function(k){return k.disabled===true},checked:function(k){return k.checked===true},selected:function(k){return k.selected===true},parent:function(k){return!!k.firstChild},empty:function(k){return!k.firstChild},has:function(k,p,v){return!!s(v[3],k).length},header:function(k){return/h\d/i.test(k.nodeName)},text:function(k){return"text"===k.type},radio:function(k){return"radio"===k.type},checkbox:function(k){return"checkbox"===
k.type},file:function(k){return"file"===k.type},password:function(k){return"password"===k.type},submit:function(k){return"submit"===k.type},image:function(k){return"image"===k.type},reset:function(k){return"reset"===k.type},button:function(k){return"button"===k.type||k.nodeName.toLowerCase()==="button"},input:function(k){return/input|select|textarea|button/i.test(k.nodeName)}},setFilters:{first:function(k,p){return p===0},last:function(k,p,v,x){return p===x.length-1},even:function(k,p){return p%2===
0},odd:function(k,p){return p%2===1},lt:function(k,p,v){return p<v[3]-0},gt:function(k,p,v){return p>v[3]-0},nth:function(k,p,v){return v[3]-0===p},eq:function(k,p,v){return v[3]-0===p}},filter:{PSEUDO:function(k,p,v,x){var y=p[1],D=w.filters[y];if(D)return D(k,v,p,x);else if(y==="contains")return(k.textContent||k.innerText||s.getText([k])||"").indexOf(p[3])>=0;else if(y==="not"){p=p[3];v=0;for(x=p.length;v<x;v++)if(p[v]===k)return false;return true}else s.error("Syntax error, unrecognized expression: "+
y)},CHILD:function(k,p){var v=p[1],x=k;switch(v){case "only":case "first":for(;x=x.previousSibling;)if(x.nodeType===1)return false;if(v==="first")return true;x=k;case "last":for(;x=x.nextSibling;)if(x.nodeType===1)return false;return true;case "nth":v=p[2];var y=p[3];if(v===1&&y===0)return true;p=p[0];var D=k.parentNode;if(D&&(D.sizcache!==p||!k.nodeIndex)){var M=0;for(x=D.firstChild;x;x=x.nextSibling)if(x.nodeType===1)x.nodeIndex=++M;D.sizcache=p}k=k.nodeIndex-y;return v===0?k===0:k%v===0&&k/v>=
0}},ID:function(k,p){return k.nodeType===1&&k.getAttribute("id")===p},TAG:function(k,p){return p==="*"&&k.nodeType===1||k.nodeName.toLowerCase()===p},CLASS:function(k,p){return(" "+(k.className||k.getAttribute("class"))+" ").indexOf(p)>-1},ATTR:function(k,p){var v=p[1];k=w.attrHandle[v]?w.attrHandle[v](k):k[v]!=null?k[v]:k.getAttribute(v);v=k+"";var x=p[2];p=p[4];return k==null?x==="!=":x==="="?v===p:x==="*="?v.indexOf(p)>=0:x==="~="?(" "+v+" ").indexOf(p)>=0:!p?v&&k!==false:x==="!="?v!==p:x==="^="?
v.indexOf(p)===0:x==="$="?v.substr(v.length-p.length)===p:x==="|="?v===p||v.substr(0,p.length+1)===p+"-":false},POS:function(k,p,v,x){var y=w.setFilters[p[2]];if(y)return y(k,v,p,x)}}},K=w.match.POS,F=function(k,p){return"\\"+(p-0+1)};for(var N in w.match){w.match[N]=new RegExp(w.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source);w.leftMatch[N]=new RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[N].source.replace(/\\(\d+)/g,F))}var U=function(k,p){k=Array.prototype.slice.call(k,0);if(p){p.push.apply(p,k);
return p}return k};try{Array.prototype.slice.call(B.documentElement.childNodes,0)}catch(ea){U=function(k,p){var v=0;p=p||[];if(j.call(k)==="[object Array]")Array.prototype.push.apply(p,k);else if(typeof k.length==="number")for(var x=k.length;v<x;v++)p.push(k[v]);else for(;k[v];v++)p.push(k[v]);return p}}var L,da;if(B.documentElement.compareDocumentPosition)L=function(k,p){if(k===p){l=true;return 0}if(!k.compareDocumentPosition||!p.compareDocumentPosition)return k.compareDocumentPosition?-1:1;return k.compareDocumentPosition(p)&
4?-1:1};else{L=function(k,p){var v,x,y=[],D=[];v=k.parentNode;x=p.parentNode;var M=v;if(k===p){l=true;return 0}else if(v===x)return da(k,p);else if(v){if(!x)return 1}else return-1;for(;M;){y.unshift(M);M=M.parentNode}for(M=x;M;){D.unshift(M);M=M.parentNode}v=y.length;x=D.length;for(M=0;M<v&&M<x;M++)if(y[M]!==D[M])return da(y[M],D[M]);return M===v?da(k,D[M],-1):da(y[M],p,1)};da=function(k,p,v){if(k===p)return v;for(k=k.nextSibling;k;){if(k===p)return-1;k=k.nextSibling}return 1}}s.getText=function(k){for(var p=
"",v,x=0;k[x];x++){v=k[x];if(v.nodeType===3||v.nodeType===4)p+=v.nodeValue;else if(v.nodeType!==8)p+=s.getText(v.childNodes)}return p};(function(){var k=B.createElement("div"),p="script"+(new Date).getTime(),v=B.documentElement;k.innerHTML="<a name='"+p+"'/>";v.insertBefore(k,v.firstChild);if(B.getElementById(p)){w.find.ID=function(x,y,D){if(typeof y.getElementById!=="undefined"&&!D)return(y=y.getElementById(x[1]))?y.id===x[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===
x[1]?[y]:c:[]};w.filter.ID=function(x,y){var D=typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id");return x.nodeType===1&&D&&D.nodeValue===y}}v.removeChild(k);v=k=null})();(function(){var k=B.createElement("div");k.appendChild(B.createComment(""));if(k.getElementsByTagName("*").length>0)w.find.TAG=function(p,v){v=v.getElementsByTagName(p[1]);if(p[1]==="*"){p=[];for(var x=0;v[x];x++)v[x].nodeType===1&&p.push(v[x]);v=p}return v};k.innerHTML="<a href='#'></a>";if(k.firstChild&&typeof k.firstChild.getAttribute!==
"undefined"&&k.firstChild.getAttribute("href")!=="#")w.attrHandle.href=function(p){return p.getAttribute("href",2)};k=null})();B.querySelectorAll&&function(){var k=s,p=B.createElement("div");p.innerHTML="<p class='TEST'></p>";if(!(p.querySelectorAll&&p.querySelectorAll(".TEST").length===0)){s=function(x,y,D,M){y=y||B;x=x.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!M&&!s.isXML(y))if(y.nodeType===9)try{return U(y.querySelectorAll(x),D)}catch(O){}else if(y.nodeType===1&&y.nodeName.toLowerCase()!==
"object"){var aa=y.getAttribute("id"),la=aa||"__sizzle__";aa||y.setAttribute("id",la);try{return U(y.querySelectorAll("#"+la+" "+x),D)}catch(oa){}finally{aa||y.removeAttribute("id")}}return k(x,y,D,M)};for(var v in k)s[v]=k[v];p=null}}();(function(){var k=B.documentElement,p=k.matchesSelector||k.mozMatchesSelector||k.webkitMatchesSelector||k.msMatchesSelector,v=false;try{p.call(B.documentElement,"[test!='']:sizzle")}catch(x){v=true}if(p)s.matchesSelector=function(y,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,
"='$1']");if(!s.isXML(y))try{if(v||!w.match.PSEUDO.test(D)&&!/!=/.test(D))return p.call(y,D)}catch(M){}return s(D,null,null,[y]).length>0}})();(function(){var k=B.createElement("div");k.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!k.getElementsByClassName||k.getElementsByClassName("e").length===0)){k.lastChild.className="e";if(k.getElementsByClassName("e").length!==1){w.order.splice(1,0,"CLASS");w.find.CLASS=function(p,v,x){if(typeof v.getElementsByClassName!=="undefined"&&
!x)return v.getElementsByClassName(p[1])};k=null}}})();s.contains=B.documentElement.contains?function(k,p){return k!==p&&(k.contains?k.contains(p):true)}:B.documentElement.compareDocumentPosition?function(k,p){return!!(k.compareDocumentPosition(p)&16)}:function(){return false};s.isXML=function(k){return(k=(k?k.ownerDocument||k:0).documentElement)?k.nodeName!=="HTML":false};var na=function(k,p){var v,x=[],y="";for(p=p.nodeType?[p]:p;v=w.match.PSEUDO.exec(k);){y+=v[0];k=k.replace(w.match.PSEUDO,"")}k=
w.relative[k]?k+"*":k;v=0;for(var D=p.length;v<D;v++)s(k,p[v],x);return s.filter(y,x)};d.find=s;d.expr=s.selectors;d.expr[":"]=d.expr.filters;d.unique=s.uniqueSort;d.text=s.getText;d.isXMLDoc=s.isXML;d.contains=s.contains})();var cb=/Until$/,db=/^(?:parents|prevUntil|prevAll)/,eb=/,/,Xa=/^.[^:#\[\.,]*$/,fb=Array.prototype.slice,gb=d.expr.match.POS;d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),f=0,h=0,j=this.length;h<j;h++){f=b.length;d.find(a,this[h],b);if(h>0)for(var l=f;l<
b.length;l++)for(var t=0;t<f;t++)if(b[t]===b[l]){b.splice(l--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var f=0,h=b.length;f<h;f++)if(d.contains(this,b[f]))return true})},not:function(a){return this.pushStack(u(this,a,false),"not",a)},filter:function(a){return this.pushStack(u(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var f=[],h,j,l=this[0];if(d.isArray(a)){var t,s={},w=1;if(l&&a.length){h=0;for(j=a.length;h<
j;h++){t=a[h];s[t]||(s[t]=d.expr.match.POS.test(t)?d(t,b||this.context):t)}for(;l&&l.ownerDocument&&l!==b;){for(t in s){a=s[t];if(a.jquery?a.index(l)>-1:d(l).is(a))f.push({selector:t,elem:l,level:w})}l=l.parentNode;w++}}return f}t=gb.test(a)?d(a,b||this.context):null;h=0;for(j=this.length;h<j;h++)for(l=this[h];l;)if(t?t.index(l)>-1:d.find.matchesSelector(l,a)){f.push(l);break}else{l=l.parentNode;if(!l||!l.ownerDocument||l===b)break}f=f.length>1?d.unique(f):f;return this.pushStack(f,"closest",a)},
index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.merge(this.get(),a);return this.pushStack(I(a[0])||I(b[0])?b:d.unique(b))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,
b,f){return d.dir(a,"parentNode",f)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,f){return d.dir(a,"nextSibling",f)},prevUntil:function(a,b,f){return d.dir(a,"previousSibling",f)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,
"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(f,h){var j=d.map(this,b,f);cb.test(a)||(h=f);if(h&&typeof h==="string")j=d.filter(h,j);j=this.length>1?d.unique(j):j;if((this.length>1||eb.test(h))&&db.test(a))j=j.reverse();return this.pushStack(j,a,fb.call(arguments).join(","))}});d.extend({filter:function(a,b,f){if(f)a=":not("+a+")";return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,f){var h=
[];for(a=a[b];a&&a.nodeType!==9&&(f===c||a.nodeType!==1||!d(a).is(f));){a.nodeType===1&&h.push(a);a=a[b]}return h},nth:function(a,b,f){b=b||1;for(var h=0;a;a=a[f])if(a.nodeType===1&&++h===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 Ma=/ jQuery\d+="(?:\d+|null)"/g,za=/^\s+/,Na=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Oa=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,Pa=/<(?:script|object|embed|option|style)/i,
Qa=/checked\s*(?:[^=]|=\s*.checked.)/i,jb=/\=([^="'>\s]+\/)>/g,qa={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,"",""]};qa.optgroup=qa.option;qa.tbody=qa.tfoot=qa.colgroup=qa.caption=qa.thead;qa.th=qa.td;if(!d.support.htmlSerialize)qa._default=
[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var f=d(this);f.text(a.call(this,b,f.text()))});if(typeof a!=="object"&&a!==c)return this.empty().append((this[0]&&this[0].ownerDocument||B).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(f){d(this).wrapAll(a.call(this,f))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var f=
this;f.firstChild&&f.firstChild.nodeType===1;)f=f.firstChild;return f}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),f=b.contents();f.length?f.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var f=0,h;(h=this[f])!=null;f++)if(!a||d.filter(a,[h]).length){if(!b&&h.nodeType===1){d.cleanData(h.getElementsByTagName("*"));d.cleanData([h])}h.parentNode&&h.parentNode.removeChild(h)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var f=this.outerHTML,h=this.ownerDocument;if(!f){f=h.createElement("div");f.appendChild(this.cloneNode(true));f=f.innerHTML}return d.clean([f.replace(Ma,"").replace(jb,'="$1">').replace(za,"")],h)[0]}else return this.cloneNode(true)});if(a===true){Q(this,b);Q(this.find("*"),b.find("*"))}return b},html:function(a){if(a===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ma,""):null;
else if(typeof a==="string"&&!Pa.test(a)&&(d.support.leadingWhitespace||!za.test(a))&&!qa[(Oa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Na,"<$1></$2>");try{for(var b=0,f=this.length;b<f;b++)if(this[b].nodeType===1){d.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(h){this.empty().append(a)}}else d.isFunction(a)?this.each(function(j){var l=d(this);l.html(a.call(this,j,l.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var f=
d(this),h=f.html();f.replaceWith(a.call(this,b,h))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var b=this.nextSibling,f=this.parentNode;d(this).remove();b?d(b).before(a):d(f).append(a)})}else return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,f){var h,j,l,t=a[0],s=[];if(!d.support.checkClone&&arguments.length===3&&typeof t==="string"&&Qa.test(t))return this.each(function(){d(this).domManip(a,
b,f,true)});if(d.isFunction(t))return this.each(function(F){var N=d(this);a[0]=t.call(this,F,b?N.html():c);N.domManip(a,b,f)});if(this[0]){h=t&&t.parentNode;h=d.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:d.buildFragment(a,this,s);l=h.fragment;if(j=l.childNodes.length===1?(l=l.firstChild):l.firstChild){b=b&&d.nodeName(j,"tr");for(var w=0,K=this.length;w<K;w++)f.call(b?E(this[w],j):this[w],w>0||h.cacheable||this.length>1?l.cloneNode(true):l)}s.length&&d.each(s,
A)}return this}});d.buildFragment=function(a,b,f){var h,j,l;b=b&&b[0]?b[0].ownerDocument||b[0]:B;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===B&&!Pa.test(a[0])&&(d.support.checkClone||!Qa.test(a[0]))){j=true;if(l=d.fragments[a[0]])if(l!==1)h=l}if(!h){h=b.createDocumentFragment();d.clean(a,b,h,f)}if(j)d.fragments[a[0]]=l?h:1;return{fragment:h,cacheable:j}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){d.fn[a]=function(f){var h=[];f=d(f);var j=this.length===1&&this[0].parentNode;if(j&&j.nodeType===11&&j.childNodes.length===1&&f.length===1){f[b](this[0]);return this}else{j=0;for(var l=f.length;j<l;j++){var t=(j>0?this.clone(true):this).get();d(f[j])[b](t);h=h.concat(t)}return this.pushStack(h,a,f.selector)}}});d.extend({clean:function(a,b,f,h){b=b||B;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||B;for(var j=[],l=0,t;(t=a[l])!=null;l++){if(typeof t===
"number")t+="";if(t){if(typeof t==="string"&&!ib.test(t))t=b.createTextNode(t);else if(typeof t==="string"){t=t.replace(Na,"<$1></$2>");var s=(Oa.exec(t)||["",""])[1].toLowerCase(),w=qa[s]||qa._default,K=w[0],F=b.createElement("div");for(F.innerHTML=w[1]+t+w[2];K--;)F=F.lastChild;if(!d.support.tbody){K=hb.test(t);s=s==="table"&&!K?F.firstChild&&F.firstChild.childNodes:w[1]==="<table>"&&!K?F.childNodes:[];for(w=s.length-1;w>=0;--w)d.nodeName(s[w],"tbody")&&!s[w].childNodes.length&&s[w].parentNode.removeChild(s[w])}!d.support.leadingWhitespace&&
za.test(t)&&F.insertBefore(b.createTextNode(za.exec(t)[0]),F.firstChild);t=F.childNodes}if(t.nodeType)j.push(t);else j=d.merge(j,t)}}if(f)for(l=0;j[l];l++)if(h&&d.nodeName(j[l],"script")&&(!j[l].type||j[l].type.toLowerCase()==="text/javascript"))h.push(j[l].parentNode?j[l].parentNode.removeChild(j[l]):j[l]);else{j[l].nodeType===1&&j.splice.apply(j,[l+1,0].concat(d.makeArray(j[l].getElementsByTagName("script"))));f.appendChild(j[l])}return j},cleanData:function(a){for(var b,f,h=d.cache,j=d.event.special,
l=d.support.deleteExpando,t=0,s;(s=a[t])!=null;t++)if(!(s.nodeName&&d.noData[s.nodeName.toLowerCase()]))if(f=s[d.expando]){if((b=h[f])&&b.events)for(var w in b.events)j[w]?d.event.remove(s,w):d.removeEvent(s,w,b.handle);if(l)delete s[d.expando];else s.removeAttribute&&s.removeAttribute(d.expando);delete h[f]}}});var Ra=/alpha\([^)]*\)/i,kb=/opacity=([^)]*)/,lb=/-([a-z])/ig,mb=/([A-Z])/g,Sa=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},Ya=["Left","Right"],
Za=["Top","Bottom"],wa,Ta,Aa,pb=function(a,b){return b.toUpperCase()};d.fn.css=function(a,b){if(arguments.length===2&&b===c)return this;return d.access(this,a,b,true,function(f,h,j){return j!==c?d.style(f,h,j):d.css(f,h)})};d.extend({cssHooks:{opacity:{get:function(a,b){if(b){a=wa(a,"opacity","opacity");return a===""?"1":a}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,
b,f,h){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var j,l=d.camelCase(b),t=a.style,s=d.cssHooks[l];b=d.cssProps[l]||l;if(f!==c){if(!(typeof f==="number"&&isNaN(f)||f==null)){if(typeof f==="number"&&!d.cssNumber[l])f+="px";if(!s||!("set"in s)||(f=s.set(a,f))!==c)try{t[b]=f}catch(w){}}}else{if(s&&"get"in s&&(j=s.get(a,false,h))!==c)return j;return t[b]}}},css:function(a,b,f){var h,j=d.camelCase(b),l=d.cssHooks[j];b=d.cssProps[j]||j;if(l&&"get"in l&&(h=l.get(a,true,f))!==c)return h;else if(wa)return wa(a,
b,j)},swap:function(a,b,f){var h={};for(var j in b){h[j]=a.style[j];a.style[j]=b[j]}f.call(a);for(j in b)a.style[j]=h[j]},camelCase:function(a){return a.replace(lb,pb)}});d.curCSS=d.css;d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(f,h,j){var l;if(h){if(f.offsetWidth!==0)l=P(f,b,j);else d.swap(f,ob,function(){l=P(f,b,j)});if(l<=0){l=wa(f,b,b);if(l==="0px"&&Aa)l=Aa(f,b,b);if(l!=null)return l===""||l==="auto"?"0px":l}if(l<0||l==null){l=f.style[b];return l===""||l==="auto"?"0px":
l}return typeof l==="string"?l:l+"px"}},set:function(f,h){if(Sa.test(h)){h=parseFloat(h);if(h>=0)return h+"px"}else return h}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(a,b){return kb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){a=a.style;a.zoom=1;b=d.isNaN(b)?"":"alpha(opacity="+b*100+")";var f=a.filter||"";a.filter=Ra.test(f)?f.replace(Ra,b):a.filter+" "+b}};if(B.defaultView&&B.defaultView.getComputedStyle)Ta=
function(a,b,f){var h;f=f.replace(mb,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return c;if(b=b.getComputedStyle(a,null)){h=b.getPropertyValue(f);if(h===""&&!d.contains(a.ownerDocument.documentElement,a))h=d.style(a,f)}return h};if(B.documentElement.currentStyle)Aa=function(a,b){var f,h,j=a.currentStyle&&a.currentStyle[b],l=a.style;if(!Sa.test(j)&&nb.test(j)){f=l.left;h=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;l.left=b==="fontSize"?"1em":j||0;j=l.pixelLeft+"px";l.left=
f;a.runtimeStyle.left=h}return j===""?"auto":j};wa=Ta||Aa;if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var qb=d.now(),rb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,sb=/^(?:select|textarea)/i,tb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
ub=/^(?:GET|HEAD)$/,$a=/\[\]$/,ta=/\=\?(&|$)/,Fa=/\?/,vb=/([?&])_=[^&]*/,wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%20/g,yb=/#.*$/,Ua=d.fn.load;d.fn.extend({load:function(a,b,f){if(typeof a!=="string"&&Ua)return Ua.apply(this,arguments);else if(!this.length)return this;var h=a.indexOf(" ");if(h>=0){var j=a.slice(h,a.length);a=a.slice(0,h)}h="GET";if(b)if(d.isFunction(b)){f=b;b=null}else if(typeof b==="object"){b=d.param(b,d.ajaxSettings.traditional);h="POST"}var l=this;d.ajax({url:a,type:h,dataType:"html",
data:b,complete:function(t,s){if(s==="success"||s==="notmodified")l.html(j?d("<div>").append(t.responseText.replace(rb,"")).find(j):t.responseText);f&&l.each(f,[t.responseText,s,t])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||sb.test(this.nodeName)||tb.test(this.type))}).map(function(a,b){a=d(this).val();
return a==null?null:d.isArray(a)?d.map(a,function(f){return{name:b.name,value:f}}):{name:b.name,value:a}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(f){return this.bind(b,f)}});d.extend({get:function(a,b,f,h){if(d.isFunction(b)){h=h||f;f=b;b=null}return d.ajax({type:"GET",url:a,data:b,success:f,dataType:h})},getScript:function(a,b){return d.get(a,null,b,"script")},getJSON:function(a,b,f){return d.get(a,b,f,"json")},post:function(a,
b,f,h){if(d.isFunction(b)){h=h||f;f=b;b={}}return d.ajax({type:"POST",url:a,data:b,success:f,dataType:h})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new e.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},
ajax:function(a){var b=d.extend(true,{},d.ajaxSettings,a),f,h,j,l=b.type.toUpperCase(),t=ub.test(l);b.url=b.url.replace(yb,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=d.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(l==="GET")ta.test(b.url)||(b.url+=(Fa.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!ta.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&
(b.data&&ta.test(b.data)||ta.test(b.url))){f=b.jsonpCallback||"jsonp"+qb++;if(b.data)b.data=(b.data+"").replace(ta,"="+f+"$1");b.url=b.url.replace(ta,"="+f+"$1");b.dataType="script";var s=e[f];e[f]=function(x){if(d.isFunction(s))s(x);else{e[f]=c;try{delete e[f]}catch(y){}}j=x;d.handleSuccess(b,L,h,j);d.handleComplete(b,L,h,j);F&&F.removeChild(N)}}if(b.dataType==="script"&&b.cache===null)b.cache=false;if(b.cache===false&&t){var w=d.now(),K=b.url.replace(vb,"$1_="+w);b.url=K+(K===b.url?(Fa.test(b.url)?
"&":"?")+"_="+w:"")}if(b.data&&t)b.url+=(Fa.test(b.url)?"&":"?")+b.data;b.global&&d.active++===0&&d.event.trigger("ajaxStart");w=(w=wb.exec(b.url))&&(w[1]&&w[1].toLowerCase()!==location.protocol||w[2].toLowerCase()!==location.host);if(b.dataType==="script"&&l==="GET"&&w){var F=B.getElementsByTagName("head")[0]||B.documentElement,N=B.createElement("script");if(b.scriptCharset)N.charset=b.scriptCharset;N.src=b.url;if(!f){var U=false;N.onload=N.onreadystatechange=function(){if(!U&&(!this.readyState||
this.readyState==="loaded"||this.readyState==="complete")){U=true;d.handleSuccess(b,L,h,j);d.handleComplete(b,L,h,j);N.onload=N.onreadystatechange=null;F&&N.parentNode&&F.removeChild(N)}}}F.insertBefore(N,F.firstChild);return c}var ea=false,L=b.xhr();if(L){b.username?L.open(l,b.url,b.async,b.username,b.password):L.open(l,b.url,b.async);try{if(b.data!=null&&!t||a&&a.contentType)L.setRequestHeader("Content-Type",b.contentType);if(b.ifModified){d.lastModified[b.url]&&L.setRequestHeader("If-Modified-Since",
d.lastModified[b.url]);d.etag[b.url]&&L.setRequestHeader("If-None-Match",d.etag[b.url])}w||L.setRequestHeader("X-Requested-With","XMLHttpRequest");L.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(da){}if(b.beforeSend&&b.beforeSend.call(b.context,L,b)===false){b.global&&d.active--===1&&d.event.trigger("ajaxStop");L.abort();return false}b.global&&d.triggerGlobal(b,"ajaxSend",[L,b]);var na=L.onreadystatechange=function(x){if(!L||
L.readyState===0||x==="abort"){ea||d.handleComplete(b,L,h,j);ea=true;if(L)L.onreadystatechange=d.noop}else if(!ea&&L&&(L.readyState===4||x==="timeout")){ea=true;L.onreadystatechange=d.noop;h=x==="timeout"?"timeout":!d.httpSuccess(L)?"error":b.ifModified&&d.httpNotModified(L,b.url)?"notmodified":"success";var y;if(h==="success")try{j=d.httpData(L,b.dataType,b)}catch(D){h="parsererror";y=D}if(h==="success"||h==="notmodified")f||d.handleSuccess(b,L,h,j);else d.handleError(b,L,h,y);f||d.handleComplete(b,
L,h,j);x==="timeout"&&L.abort();if(b.async)L=null}};try{var k=L.abort;L.abort=function(){L&&Function.prototype.call.call(k,L);na("abort")}}catch(p){}b.async&&b.timeout>0&&setTimeout(function(){L&&!ea&&na("timeout")},b.timeout);try{L.send(t||b.data==null?null:b.data)}catch(v){d.handleError(b,L,null,v);d.handleComplete(b,L,h,j)}b.async||na();return L}},param:function(a,b){var f=[],h=function(l,t){t=d.isFunction(t)?t():t;f[f.length]=encodeURIComponent(l)+"="+encodeURIComponent(t)};if(b===c)b=d.ajaxSettings.traditional;
if(d.isArray(a)||a.jquery)d.each(a,function(){h(this.name,this.value)});else for(var j in a)R(j,a[j],b,h);return f.join("&").replace(xb,"+")}});d.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,f,h){a.error&&a.error.call(a.context,b,f,h);a.global&&d.triggerGlobal(a,"ajaxError",[b,a,h])},handleSuccess:function(a,b,f,h){a.success&&a.success.call(a.context,h,f,b);a.global&&d.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,f){a.complete&&a.complete.call(a.context,b,
f);a.global&&d.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&d.active--===1&&d.event.trigger("ajaxStop")},triggerGlobal:function(a,b,f){(a.context&&a.context.url==null?d(a.context):d.event).trigger(b,f)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var f=a.getResponseHeader("Last-Modified"),h=a.getResponseHeader("Etag");if(f)d.lastModified[b]=f;if(h)d.etag[b]=
h;return a.status===304},httpData:function(a,b,f){var h=a.getResponseHeader("content-type")||"",j=b==="xml"||!b&&h.indexOf("xml")>=0;a=j?a.responseXML:a.responseText;j&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(f&&f.dataFilter)a=f.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&h.indexOf("json")>=0)a=d.parseJSON(a);else if(b==="script"||!b&&h.indexOf("javascript")>=0)d.globalEval(a);return a}});if(e.ActiveXObject)d.ajaxSettings.xhr=function(){if(e.location.protocol!==
"file:")try{return new e.XMLHttpRequest}catch(a){}try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};d.support.ajax=!!d.ajaxSettings.xhr();var Ca={},zb=/^(?:toggle|show|hide)$/,Ab=/^([+\-]=)?([\d+.\-]+)(.*)$/,Ba,Ga=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,f){if(a||a===0)return this.animate(H("show",3),a,b,f);else{f=0;for(var h=this.length;f<h;f++){a=
this[f];b=a.style.display;if(!d.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&d.css(a,"display")==="none"&&d.data(a,"olddisplay",W(a.nodeName))}for(f=0;f<h;f++){a=this[f];b=a.style.display;if(b===""||b==="none")a.style.display=d.data(a,"olddisplay")||""}return this}},hide:function(a,b,f){if(a||a===0)return this.animate(H("hide",3),a,b,f);else{a=0;for(b=this.length;a<b;a++){f=d.css(this[a],"display");f!=="none"&&d.data(this[a],"olddisplay",f)}for(a=0;a<b;a++)this[a].style.display="none";
return this}},_toggle:d.fn.toggle,toggle:function(a,b,f){var h=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(b))this._toggle.apply(this,arguments);else a==null||h?this.each(function(){var j=h?a:d(this).is(":hidden");d(this)[j?"show":"hide"]()}):this.animate(H("toggle",3),a,b,f);return this},fadeTo:function(a,b,f,h){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,f,h)},animate:function(a,b,f,h){var j=d.speed(b,f,h);if(d.isEmptyObject(a))return this.each(j.complete);
return this[j.queue===false?"each":"queue"](function(){var l=d.extend({},j),t,s=this.nodeType===1,w=s&&d(this).is(":hidden"),K=this;for(t in a){var F=d.camelCase(t);if(t!==F){a[F]=a[t];delete a[t];t=F}if(a[t]==="hide"&&w||a[t]==="show"&&!w)return l.complete.call(this);if(s&&(t==="height"||t==="width")){l.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout)if(W(this.nodeName)===
"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(d.isArray(a[t])){(l.specialEasing=l.specialEasing||{})[t]=a[t][1];a[t]=a[t][0]}}if(l.overflow!=null)this.style.overflow="hidden";l.curAnim=d.extend({},a);d.each(a,function(N,U){var ea=new d.fx(K,l,N);if(zb.test(U))ea[U==="toggle"?w?"show":"hide":U](a);else{var L=Ab.exec(U),da=ea.cur()||0;if(L){U=parseFloat(L[2]);var na=L[3]||"px";if(na!=="px"){d.style(K,N,(U||1)+
na);da=(U||1)/ea.cur()*da;d.style(K,N,da+na)}if(L[1])U=(L[1]==="-="?-1:1)*U+da;ea.custom(da,U,na)}else ea.custom(da,U,"")}});return true})},stop:function(a,b){var f=d.timers;a&&this.queue([]);this.each(function(){for(var h=f.length-1;h>=0;h--)if(f[h].elem===this){b&&f[h](true);f.splice(h,1)}});b||this.dequeue();return this}});d.each({slideDown:H("show",1),slideUp:H("hide",1),slideToggle:H("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=
function(f,h,j){return this.animate(b,f,h,j)}});d.extend({speed:function(a,b,f){var h=a&&typeof a==="object"?d.extend({},a):{complete:f||!f&&b||d.isFunction(a)&&a,duration:a,easing:f&&b||b&&!d.isFunction(b)&&b};h.duration=d.fx.off?0:typeof h.duration==="number"?h.duration:h.duration in d.fx.speeds?d.fx.speeds[h.duration]:d.fx.speeds._default;h.old=h.complete;h.complete=function(){h.queue!==false&&d(this).dequeue();d.isFunction(h.old)&&h.old.call(this)};return h},easing:{linear:function(a,b,f,h){return f+
h*a},swing:function(a,b,f,h){return(-Math.cos(a*Math.PI)/2+0.5)*h+f}},timers:[],fx:function(a,b,f){this.options=b;this.elem=a;this.prop=f;if(!b.orig)b.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(d.css(this.elem,this.prop));return a&&a>-10000?
a:0},custom:function(a,b,f){function h(t){return j.step(t)}var j=this,l=d.fx;this.startTime=d.now();this.start=a;this.end=b;this.unit=f||this.unit||"px";this.now=this.start;this.pos=this.state=0;h.elem=this.elem;if(h()&&d.timers.push(h)&&!Ba)Ba=setInterval(l.tick,l.interval)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=
d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=d.now(),f=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var h in this.options.curAnim)if(this.options.curAnim[h]!==true)f=false;if(f){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var j=this.elem,l=this.options;d.each(["","X","Y"],function(s,w){j.style["overflow"+w]=l.overflow[s]})}this.options.hide&&
d(this.elem).hide();if(this.options.hide||this.options.show)for(var t in this.options.curAnim)d.style(this.elem,t,this.options.orig[t]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};
d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(Ba);Ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=
function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var Bb=/^t(?:able|d|h)$/i,Va=/^(?:body|html)$/i;d.fn.offset="getBoundingClientRect"in B.documentElement?function(a){var b=this[0],f;if(a)return this.each(function(w){d.offset.setOffset(this,a,w)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{f=b.getBoundingClientRect()}catch(h){}var j=b.ownerDocument,l=j.documentElement;if(!f||!d.contains(l,b))return f||{top:0,left:0};b=
j.body;j=Z(j);var t=(l.clientTop||b.clientTop||0)+(parseInt(d.css(b,"top"))||0),s=(l.clientLeft||b.clientLeft||0)+(parseInt(d.css(b,"left"))||0);return{top:f.top+(j.pageYOffset||d.support.boxModel&&l.scrollTop||b.scrollTop)-t,left:f.left+(j.pageXOffset||d.support.boxModel&&l.scrollLeft||b.scrollLeft)-s}}:function(a){var b=this[0];if(a)return this.each(function(F){d.offset.setOffset(this,a,F)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();
var f,h=b.offsetParent,j=b,l=b.ownerDocument,t=l.documentElement,s=l.body;f=(l=l.defaultView)?l.getComputedStyle(b,null):b.currentStyle;for(var w=b.offsetTop,K=b.offsetLeft;(b=b.parentNode)&&b!==s&&b!==t;){if(d.offset.supportsFixedPosition&&f.position==="fixed")break;f=l?l.getComputedStyle(b,null):b.currentStyle;w-=b.scrollTop;K-=b.scrollLeft;if(b===h){w+=b.offsetTop;K+=b.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&Bb.test(b.nodeName))){w+=parseFloat(f.borderTopWidth)||
0;K+=parseFloat(f.borderLeftWidth)||0}j=h;h=b.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){w+=parseFloat(f.borderTopWidth)||0;K+=parseFloat(f.borderLeftWidth)||0}f=f}if(f.position==="relative"||f.position==="static"){w+=s.offsetTop;K+=s.offsetLeft}if(d.offset.supportsFixedPosition&&f.position==="fixed"){w+=Math.max(t.scrollTop,s.scrollTop);K+=Math.max(t.scrollLeft,s.scrollLeft)}return{top:w,left:K}};d.offset={initialize:function(){var a=B.body,b=B.createElement("div"),
f,h,j,l=parseFloat(d.css(a,"marginTop"))||0;d.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);f=b.firstChild;
h=f.firstChild;j=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=h.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;h.style.position="fixed";h.style.top="20px";this.supportsFixedPosition=h.offsetTop===20||h.offsetTop===15;h.style.position=h.style.top="";f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=h.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==l;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=
a.offsetTop,f=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.css(a,"marginTop"))||0;f+=parseFloat(d.css(a,"marginLeft"))||0}return{top:b,left:f}},setOffset:function(a,b,f){var h=d.css(a,"position");if(h==="static")a.style.position="relative";var j=d(a),l=j.offset(),t=d.css(a,"top"),s=d.css(a,"left"),w=h==="absolute"&&d.inArray("auto",[t,s])>-1;h={};var K={};if(w)K=j.position();t=w?K.top:parseInt(t,10)||0;s=w?K.left:parseInt(s,10)||0;if(d.isFunction(b))b=
b.call(a,f,l);if(b.top!=null)h.top=b.top-l.top+t;if(b.left!=null)h.left=b.left-l.left+s;"using"in b?b.using.call(a,h):j.css(h)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),f=this.offset(),h=Va.test(b[0].nodeName)?{top:0,left:0}:b.offset();f.top-=parseFloat(d.css(a,"marginTop"))||0;f.left-=parseFloat(d.css(a,"marginLeft"))||0;h.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;h.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:f.top-h.top,
left:f.left-h.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||B.body;a&&!Va.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,b){var f="scroll"+b;d.fn[f]=function(h){var j=this[0],l;if(!j)return null;if(h!==c)return this.each(function(){if(l=Z(this))l.scrollTo(!a?h:d(l).scrollLeft(),a?h:d(l).scrollTop());else this[f]=h});else return(l=Z(j))?"pageXOffset"in l?l[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&
l.document.documentElement[f]||l.document.body[f]:j[f]}});d.each(["Height","Width"],function(a,b){var f=b.toLowerCase();d.fn["inner"+b]=function(){return this[0]?parseFloat(d.css(this[0],f,"padding")):null};d.fn["outer"+b]=function(h){return this[0]?parseFloat(d.css(this[0],f,h?"margin":"border")):null};d.fn[f]=function(h){var j=this[0];if(!j)return h==null?null:this;if(d.isFunction(h))return this.each(function(t){var s=d(this);s[f](h.call(this,t,s[f]()))});if(d.isWindow(j))return j.document.compatMode===
"CSS1Compat"&&j.document.documentElement["client"+b]||j.document.body["client"+b];else if(j.nodeType===9)return Math.max(j.documentElement["client"+b],j.body["scroll"+b],j.documentElement["scroll"+b],j.body["offset"+b],j.documentElement["offset"+b]);else if(h===c){j=d.css(j,f);var l=parseFloat(j);return d.isNaN(l)?j:l}else return this.css(f,typeof h==="string"?h:h+"px")}})})(window);
(function(e){e.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(c,g){this.defaults.type=c;this.defaults.name=g},get:function(c,g){g=e.extend({},this.defaults,g);if(!g.single.length)g.single="metadata";var i=e.data(c,g.single);if(i)return i;i="{}";if(g.type=="class"){var m=g.cre.exec(c.className);if(m)i=m[1]}else if(g.type=="elem"){if(!c.getElementsByTagName)return;m=c.getElementsByTagName(g.name);if(m.length)i=e.trim(m[0].innerHTML)}else if(c.getAttribute!=
undefined)if(m=c.getAttribute(g.name))i=m;if(i.indexOf("{")<0)i="{"+i+"}";i=eval("("+i+")");e.data(c,g.single,i);return i}}});e.fn.metadata=function(c){return e.metadata.get(this[0],c)}})(jQuery);
jQuery.cookie=function(e,c,g){if(arguments.length>1&&(c===null||typeof c!=="object")){g=jQuery.extend({},g);if(c===null)g.expires=-1;if(typeof g.expires==="number"){var i=g.expires,m=g.expires=new Date;m.setDate(m.getDate()+i)}return document.cookie=[encodeURIComponent(e),"=",g.raw?String(c):encodeURIComponent(String(c)),g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+g.domain:"",g.secure?"; secure":""].join("")}g=c||{};m=g.raw?function(o){return o}:
decodeURIComponent;return(i=(new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)")).exec(document.cookie))?m(i[1]):null};
(function(e){function c(g){return g&&g.constructor===Number?g+"px":g}e.fn.bgiframe=e.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(g){g=e.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},g);var i='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+g.src+'"style="display:block;position:absolute;z-index:-1;'+(g.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(g.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
c(g.top))+";left:"+(g.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":c(g.left))+";width:"+(g.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":c(g.width))+";height:"+(g.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":c(g.height))+';"/>';return this.each(function(){e(this).children("iframe.bgiframe").length===0&&this.insertBefore(document.createElement(i),this.firstChild)})}:function(){return this};e.fn.bgIframe=e.fn.bgiframe})(jQuery);
(function(e){e.extend(e.fn,{validate:function(c){if(this.length){var g=e.data(this[0],"validator");if(g)return g;g=new e.validator(c,this[0]);e.data(this[0],"validator",g);if(g.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){g.cancelSubmit=true});this.submit(function(i){function m(){if(g.settings.submitHandler){g.settings.submitHandler.call(g,g.currentForm);return false}return true}g.settings.debug&&i.preventDefault();if(g.cancelSubmit){g.cancelSubmit=false;return m()}if(g.form()){if(g.pendingRequest){g.formSubmitted=
true;return false}return m()}else{g.focusInvalid();return false}})}return g}else c&&c.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(e(this[0]).is("form"))return this.validate().form();else{var c=false,g=e(this[0].form).validate();this.each(function(){c|=g.element(this)});return c}},removeAttrs:function(c){var g={},i=this;e.each(c.split(/\s/),function(m,o){g[o]=i.attr(o);i.removeAttr(o)});return g},rules:function(c,g){var i=this[0];
if(c){var m=e.data(i.form,"validator").settings,o=m.rules,r=e.validator.staticRules(i);switch(c){case "add":e.extend(r,e.validator.normalizeRule(g));o[i.name]=r;if(g.messages)m.messages[i.name]=e.extend(m.messages[i.name],g.messages);break;case "remove":if(!g){delete o[i.name];return r}var z={};e.each(g.split(/\s/),function(I,u){z[u]=r[u];delete r[u]});return z}}c=e.validator.normalizeRules(e.extend({},e.validator.metadataRules(i),e.validator.classRules(i),e.validator.attributeRules(i),e.validator.staticRules(i)),
i);if(c.required){g=c.required;delete c.required;c=e.extend({required:g},c)}return c}});e.extend(e.expr[":"],{blank:function(c){return!e.trim(c.value)},filled:function(c){return!!e.trim(c.value)},unchecked:function(c){return!c.checked}});e.format=function(c,g){if(arguments.length==1)return function(){var i=e.makeArray(arguments);i.unshift(c);return e.format.apply(this,i)};if(arguments.length>2&&g.constructor!=Array)g=e.makeArray(arguments).slice(1);if(g.constructor!=Array)g=[g];e.each(g,function(i,
m){c=c.replace(new RegExp("\\{"+i+"\\}","g"),m)});return c};e.validator=function(c,g){this.settings=e.extend({},e.validator.defaults,c);this.currentForm=g;this.init()};e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(c){this.lastActive=c;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&
this.settings.unhighlight.call(this,c,this.settings.errorClass);this.errorsFor(c).hide()}},onfocusout:function(c){if(!this.checkable(c)&&(c.name in this.submitted||!this.optional(c)))this.element(c)},onkeyup:function(c){if(c.name in this.submitted||c==this.lastElement)this.element(c)},onclick:function(c){c.name in this.submitted&&this.element(c)},highlight:function(c,g){e(c).addClass(g)},unhighlight:function(c,g){e(c).removeClass(g)}},setDefaults:function(c){e.extend(e.validator.defaults,c)},messages:{required:"This field is required.",
remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein g??ltiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",
maxlength:e.format("Please enter no more than {0} characters."),minlength:e.format("Please enter at least {0} characters."),rangelength:e.format("Please enter a value between {0} and {1} characters long."),range:e.format("Please enter a value between {0} and {1}."),max:e.format("Please enter a value less than or equal to {0}."),min:e.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function c(m){var o=e.data(this[0].form,"validator");
o.settings["on"+m.type]&&o.settings["on"+m.type].call(o,this[0])}this.labelContainer=e(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm);this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var g=this.groups={};e.each(this.settings.groups,function(m,o){e.each(o.split(/\s/),function(r,z){g[z]=
m})});var i=this.settings.rules;e.each(i,function(m,o){i[m]=e.validator.normalizeRule(o)});e(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",c).delegate("click",":radio, :checkbox",c);this.settings.invalidHandler&&e(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();e.extend(this.submitted,this.errorMap);this.invalid=e.extend({},this.errorMap);this.valid()||e(this.currentForm).triggerHandler("invalid-form",
[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var c=0,g=this.currentElements=this.elements();g[c];c++)this.check(g[c]);return this.valid()},element:function(c){this.lastElement=c=this.clean(c);this.prepareElement(c);this.currentElements=e(c);var g=this.check(c);if(g)delete this.invalid[c.name];else this.invalid[c.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return g},showErrors:function(c){if(c){e.extend(this.errorMap,
c);this.errorList=[];for(var g in c)this.errorList.push({message:c[g],element:this.findByName(g)[0]});this.successList=e.grep(this.successList,function(i){return!(i.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},
objectLength:function(c){var g=0;for(var i in c)g++;return g},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(c){}},findLastActive:function(){var c=this.lastActive;return c&&e.grep(this.errorList,function(g){return g.element.name==c.name}).length==
1&&c},elements:function(){var c=this,g={};return e([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in g||!c.objectLength(e(this).rules()))return false;return g[this.name]=true})},clean:function(c){return e(c)[0]},errors:function(){return e(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},
reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=e([]);this.toHide=e([]);this.formSubmitted=false;this.currentElements=e([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(c){this.reset();this.toHide=this.errorsFor(c)},check:function(c){c=this.clean(c);if(this.checkable(c))c=this.findByName(c.name)[0];var g=e(c).rules(),i=false;for(method in g){var m={method:method,parameters:g[method]};try{var o=e.validator.methods[method].call(this,
c.value.replace(/\r/g,""),c,m.parameters);if(o=="dependency-mismatch")i=true;else{i=false;if(o=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!o){this.formatAndAdd(c,m);return false}}}catch(r){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+m.method+"' method");throw r;}}if(!i){this.objectLength(g)&&this.successList.push(c);return true}},customMetaMessage:function(c,g){if(e.metadata)return(c=this.settings.meta?
e(c).metadata()[this.settings.meta]:e(c).metadata())&&c.messages&&c.messages[g]},customMessage:function(c,g){return(c=this.settings.messages[c])&&(c.constructor==String?c:c[g])},findDefined:function(){for(var c=0;c<arguments.length;c++)if(arguments[c]!==undefined)return arguments[c]},defaultMessage:function(c,g){return this.findDefined(this.customMessage(c.name,g),this.customMetaMessage(c,g),!this.settings.ignoreTitle&&c.title||undefined,e.validator.messages[g],"<strong>Warning: No message defined for "+
c.name+"</strong>")},formatAndAdd:function(c,g){var i=this.defaultMessage(c,g.method);if(typeof i=="function")i=i.call(this,g.parameters,c);this.errorList.push({message:i,element:c});this.errorMap[c.name]=i;this.submitted[c.name]=i},addWrapper:function(c){if(this.settings.wrapper)c=c.add(c.parents(this.settings.wrapper));return c},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var g=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,g.element,this.settings.errorClass);
this.showLabel(g.element,g.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(c=0;this.successList[c];c++)this.showLabel(this.successList[c]);if(this.settings.unhighlight){c=0;for(g=this.validElements();g[c];c++)this.settings.unhighlight.call(this,g[c],this.settings.errorClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},
invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(c,g){var i=this.errorsFor(c);if(i.length){i.removeClass().addClass(this.settings.errorClass);i.attr("generated")&&i.html(g)}else{i=e("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(g||"");if(this.settings.wrapper)i=i.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(i).length||(this.settings.errorPlacement?
this.settings.errorPlacement(i,e(c)):i.insertAfter(c))}if(!g&&this.settings.success){i.text("");typeof this.settings.success=="string"?i.addClass(this.settings.success):this.settings.success(i)}this.toShow=this.toShow.add(i)},errorsFor:function(c){return this.errors().filter("[for='"+this.idOrName(c)+"']")},idOrName:function(c){return this.groups[c.name]||(this.checkable(c)?c.name:c.id||c.name)},checkable:function(c){return/radio|checkbox/i.test(c.type)},findByName:function(c){var g=this.currentForm;
return e(document.getElementsByName(c)).map(function(i,m){return m.form==g&&m.name==c&&m||null})},getLength:function(c,g){switch(g.nodeName.toLowerCase()){case "select":return e("option:selected",g).length;case "input":if(this.checkable(g))return this.findByName(g.name).filter(":checked").length}return c.length},depend:function(c,g){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,g):true},dependTypes:{"boolean":function(c){return c},string:function(c,g){return!!e(c,g.form).length},
"function":function(c,g){return c(g)}},optional:function(c){return!e.validator.methods.required.call(this,e.trim(c.value),c)&&"dependency-mismatch"},startRequest:function(c){if(!this.pending[c.name]){this.pendingRequest++;this.pending[c.name]=true}},stopRequest:function(c,g){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[c.name];if(g&&this.pendingRequest==0&&this.formSubmitted&&this.form())e(this.currentForm).submit();else!g&&this.pendingRequest==0&&this.formSubmitted&&
e(this.currentForm).triggerHandler("invalid-form",[this])},previousValue:function(c){return e.data(c,"previousValue")||e.data(c,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(c,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(c,g){c.constructor==String?
(this.classRuleSettings[c]=g):e.extend(this.classRuleSettings,c)},classRules:function(c){var g={};(c=e(c).attr("class"))&&e.each(c.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(g,e.validator.classRuleSettings[this])});return g},attributeRules:function(c){var g={};c=e(c);for(method in e.validator.methods){var i=c.attr(method);if(i)g[method]=i}g.maxlength&&/-1|2147483647|524288/.test(g.maxlength)&&delete g.maxlength;return g},metadataRules:function(c){if(!e.metadata)return{};
var g=e.data(c.form,"validator").settings.meta;return g?e(c).metadata()[g]:e(c).metadata()},staticRules:function(c){var g={},i=e.data(c.form,"validator");if(i.settings.rules)g=e.validator.normalizeRule(i.settings.rules[c.name])||{};return g},normalizeRules:function(c,g){e.each(c,function(i,m){if(m===false)delete c[i];else if(m.param||m.depends){var o=true;switch(typeof m.depends){case "string":o=!!e(m.depends,g.form).length;break;case "function":o=m.depends.call(g,g);break}if(o)c[i]=m.param!==undefined?
m.param:true;else delete c[i]}});e.each(c,function(i,m){c[i]=e.isFunction(m)?m(g):m});e.each(["minlength","maxlength","min","max"],function(){if(c[this])c[this]=Number(c[this])});e.each(["rangelength","range"],function(){if(c[this])c[this]=[Number(c[this][0]),Number(c[this][1])]});if(e.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}c.messages&&delete c.messages;
return c},normalizeRule:function(c){if(typeof c=="string"){var g={};e.each(c.split(/\s/),function(){g[this]=true});c=g}return c},addMethod:function(c,g,i){e.validator.methods[c]=g;e.validator.messages[c]=i;g.length<3&&e.validator.addClassRules(c,e.validator.normalizeRule(c))},methods:{required:function(c,g,i){if(!this.depend(i,g))return"dependency-mismatch";switch(g.nodeName.toLowerCase()){case "select":c=e("option:selected",g);return c.length>0&&(g.type=="select-multiple"||(e.browser.msie&&!c[0].attributes.value.specified?
c[0].text:c[0].value).length>0);case "input":if(this.checkable(g))return this.getLength(c,g)>0;default:return e.trim(c).length>0}},remote:function(c,g,i){if(this.optional(g))return"dependency-mismatch";var m=this.previousValue(g);this.settings.messages[g.name]||(this.settings.messages[g.name]={});this.settings.messages[g.name].remote=typeof m.message=="function"?m.message(c):m.message;i=typeof i=="string"&&{url:i}||i;if(m.old!==c){m.old=c;var o=this;this.startRequest(g);var r={};r[g.name]=c;e.ajax(e.extend(true,
{url:i,mode:"abort",port:"validate"+g.name,dataType:"json",data:r,success:function(z){if(z){var I=o.formSubmitted;o.prepareElement(g);o.formSubmitted=I;o.successList.push(g);o.showErrors()}else{I={};I[g.name]=z||o.defaultMessage(g,"remote");o.showErrors(I)}m.valid=z;o.stopRequest(g,z)}},i));return"pending"}else if(this.pending[g.name])return"pending";return m.valid},minlength:function(c,g,i){return this.optional(g)||this.getLength(e.trim(c),g)>=i},maxlength:function(c,g,i){return this.optional(g)||
this.getLength(e.trim(c),g)<=i},rangelength:function(c,g,i){c=this.getLength(e.trim(c),g);return this.optional(g)||c>=i[0]&&c<=i[1]},min:function(c,g,i){return this.optional(g)||c>=i},max:function(c,g,i){return this.optional(g)||c<=i},range:function(c,g,i){return this.optional(g)||c>=i[0]&&c<=i[1]},email:function(c,g){return this.optional(g)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},
url:function(c,g){return this.optional(g)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},
date:function(c,g){return this.optional(g)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,g){return this.optional(g)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},dateDE:function(c,g){return this.optional(g)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(c)},number:function(c,g){return this.optional(g)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},numberDE:function(c,g){return this.optional(g)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(c)},digits:function(c,g){return this.optional(g)||/^\d+$/.test(c)},
creditcard:function(c,g){if(this.optional(g))return"dependency-mismatch";if(/[^0-9-]+/.test(c))return false;var i=g=0,m=false;c=c.replace(/\D/g,"");for(n=c.length-1;n>=0;n--){i=c.charAt(n);i=parseInt(i,10);if(m)if((i*=2)>9)i-=9;g+=i;m=!m}return g%10==0},accept:function(c,g,i){i=typeof i=="string"?i:"png|jpe?g|gif";return this.optional(g)||c.match(new RegExp(".("+i+")$","i"))},equalTo:function(c,g,i){return c==e(i).val()}}})})(jQuery);
(function(e){var c=e.ajax,g={};e.ajax=function(i){i=e.extend(i,e.extend({},e.ajaxSettings,i));var m=i.port;if(i.mode=="abort"){g[m]&&g[m].abort();return g[m]=c.apply(this,arguments)}return c.apply(this,arguments)}})(jQuery);
(function(e){e.each({focus:"focusin",blur:"focusout"},function(c,g){e.event.special[g]={setup:function(){if(e.browser.msie)return false;this.addEventListener(c,e.event.special[g].handler,true)},teardown:function(){if(e.browser.msie)return false;this.removeEventListener(c,e.event.special[g].handler,true)},handler:function(i){arguments[0]=e.event.fix(i);arguments[0].type=g;return e.event.handle.apply(this,arguments)}}});e.extend(e.fn,{delegate:function(c,g,i){return this.bind(c,function(m){var o=e(m.target);
if(o.is(g))return i.apply(o,arguments)})},triggerEvent:function(c,g){return this.triggerHandler(c,[e.event.fix({type:c,target:g})])}})})(jQuery);jQuery.validator.addMethod("maxWords",function(e,c,g){return this.optional(c)||e.match(/\b\w+\b/g).length<g},$.format("Please enter {0} words or less."));jQuery.validator.addMethod("minWords",function(e,c,g){return this.optional(c)||e.match(/\b\w+\b/g).length>=g},$.format("Please enter at least {0} words."));
jQuery.validator.addMethod("rangeWords",function(e,c,g){return this.optional(c)||e.match(/\b\w+\b/g).length>=g[0]&&e.match(/bw+b/g).length<g[1]},$.format("Please enter between {0} and {1} words."));jQuery.validator.addMethod("letterswithbasicpunc",function(e,c){return this.optional(c)||/^[a-z-.,()'\"\s]+$/i.test(e)},"Letters or punctuation only please");jQuery.validator.addMethod("alphanumeric",function(e,c){return this.optional(c)||/^\w+$/i.test(e)},"Letters, numbers, spaces or underscores only please");
jQuery.validator.addMethod("lettersonly",function(e,c){return this.optional(c)||/^[a-z]+$/i.test(e)},"Letters only please");jQuery.validator.addMethod("nowhitespace",function(e,c){return this.optional(c)||/^\S+$/i.test(e)},"No white space please");jQuery.validator.addMethod("ziprange",function(e,c){return this.optional(c)||/^90[2-5]\d\{2}-\d{4}$/.test(e)},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx");
jQuery.validator.addMethod("vinUS",function(e){if(e.length!=17)return false;var c,g,i,m,o,r=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],z=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],I=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],u=0;for(c=0;c<17;c++){m=I[c];i=e.slice(c,c+1);if(c==8)o=i;if(isNaN(i))for(g=0;g<r.length;g++){if(i.toUpperCase()===r[g]){i=z[g];i*=m;if(isNaN(o)&&g==8)o=r[g];break}}else i*=m;u+=i}e=u%11;if(e==10)e="X";if(e==o)return true;return false},
"The specified vehicle identification number (VIN) is invalid.");jQuery.validator.addMethod("dateITA",function(e,c){var g=false;if(/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(e)){var i=e.split("/");e=parseInt(i[0],10);g=parseInt(i[1],10);i=parseInt(i[2],10);var m=new Date(i,g-1,e);g=m.getFullYear()==i&&m.getMonth()==g-1&&m.getDate()==e?true:false}else g=false;return this.optional(c)||g},"Please enter a correct date");
jQuery.validator.addMethod("phone",function(e,c){e=e.replace(/\s+/g,"");return this.optional(c)||e.length>9&&e.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number");jQuery.validator.addMethod("strippedminlength",function(e,c,g){return jQuery(e).text().length>=g},jQuery.format("Please enter at least {0} characters"));
jQuery.validator.addMethod("email2",function(e,c){return this.optional(c)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(e)},jQuery.validator.messages.email);
jQuery.validator.addMethod("url2",function(e,c){return this.optional(c)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},
jQuery.validator.messages.url);
(function(e){function c(H){if(!u.parent){u.parent=e('<div id="'+H.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();e.fn.bgiframe&&u.parent.bgiframe();u.title=e("h3",u.parent);u.body=e("div.body",u.parent);u.url=e("div.url",u.parent)}}function g(H){return e.data(H,"tooltip")}function i(H){if(g(this).delay)A=setTimeout(o,g(this).delay);else o();R=!!g(this).track;e(document.body).bind("mousemove",r);r(H)}function m(){if(!(e.tooltip.blocked||this==
E||!this.tooltipText&&!g(this).bodyHandler)){E=this;Q=this.tooltipText;if(g(this).bodyHandler){u.title.hide();var H=g(this).bodyHandler.call(this);H.nodeType||H.jquery?u.body.empty().append(H):u.body.html(H);u.body.show()}else if(g(this).showBody){H=Q.split(g(this).showBody);u.title.html(H.shift()).show();u.body.empty();for(var W=0,Z;Z=H[W];W++){W>0&&u.body.append("<br/>");u.body.append(Z)}u.body.hideWhenEmpty()}else{u.title.html(Q).show();u.body.hide()}g(this).showURL&&e(this).url()?u.url.html(e(this).url().replace("http://",
"")).show():u.url.hide();u.parent.addClass(g(this).extraClass);g(this).fixPNG&&u.parent.fixPNG();i.apply(this,arguments)}}function o(){A=null;if((!P||!e.fn.bgiframe)&&g(E).fade)if(u.parent.is(":animated"))u.parent.stop().show().fadeTo(g(E).fade,E.tOpacity);else u.parent.is(":visible")?u.parent.fadeTo(g(E).fade,E.tOpacity):u.parent.fadeIn(g(E).fade);else u.parent.show();r()}function r(H){if(!e.tooltip.blocked)if(!(H&&H.target.tagName=="OPTION")){!R&&u.parent.is(":visible")&&e(document.body).unbind("mousemove",
r);if(E==null)e(document.body).unbind("mousemove",r);else{u.parent.removeClass("viewport-right").removeClass("viewport-bottom");var W=u.parent[0].offsetLeft,Z=u.parent[0].offsetTop;if(H){W=H.pageX+g(E).left;Z=H.pageY+g(E).top;H="auto";if(g(E).positionLeft){H=e(window).width()-W;W="auto"}u.parent.css({left:W,right:H,top:Z})}H=z();var B=u.parent[0];if(H.x+H.cx<B.offsetLeft+B.offsetWidth){W-=B.offsetWidth+20+g(E).left;u.parent.css({left:W+"px"}).addClass("viewport-right")}if(H.y+H.cy<B.offsetTop+B.offsetHeight){Z-=
B.offsetHeight+20+g(E).top;u.parent.css({top:Z+"px"}).addClass("viewport-bottom")}}}}function z(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function I(){function H(){u.parent.removeClass(W.extraClass).hide().css("opacity","")}if(!e.tooltip.blocked){A&&clearTimeout(A);E=null;var W=g(this);if((!P||!e.fn.bgiframe)&&W.fade)u.parent.is(":animated")?u.parent.stop().fadeTo(W.fade,0,H):u.parent.stop().fadeOut(W.fade,H);else H();g(this).fixPNG&&u.parent.unfixPNG()}}
var u={},E,Q,A,P=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),R=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(H){H=e.extend({},e.tooltip.defaults,H);c(H);return this.each(function(){e.data(this,"tooltip",H);this.tOpacity=u.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(m).mouseout(I).click(I)},
fixPNG:P?function(){return this.each(function(){var H=e(this).css("backgroundImage");if(H.match(/^url\(["']?(.*\.png)["']?\)$/i)){H=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+H+"')"}).each(function(){var W=e(this).css("position");W!="absolute"&&W!="relative"&&e(this).css("position","relative")})}})}:function(){return this},unfixPNG:P?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:
function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);
(function(e){var c=1;e.fn.dropShadow=function(g){var i=e.extend({left:4,top:4,blur:2,opacity:0.5,color:"black",swap:false},g),m=e([]);this.not(".dropShadow").each(function(){var o=e(this),r=[],z=i.blur<=0?0:i.blur,I=z==0?i.opacity:i.opacity/(z*8),u=i.swap?c:c+1,E=i.swap?c+1:c,Q;Q=this.id?this.id+"_dropShadow":"ds"+(1+Math.floor(9999*Math.random()));e.data(this,"shadowId",Q);e.data(this,"shadowOptions",g);o.attr("shadowId",Q).css("zIndex",u);o.css("position")!="absolute"&&o.css({position:"relative",
zoom:1});bgColor=o.css("backgroundColor");if(bgColor=="rgba(0, 0, 0, 0)")bgColor="transparent";r[0]=bgColor!="transparent"||o.css("backgroundImage")!="none"||this.nodeName=="SELECT"||this.nodeName=="INPUT"||this.nodeName=="TEXTAREA"?e("<div></div>").css("background",i.color):o.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color",i.color);r[0].addClass("dropShadow").css({height:o.outerHeight(),left:z,opacity:I,position:"absolute",top:z,width:o.outerWidth(),zIndex:E});I=8*
z+1;for(u=1;u<I;u++)r[u]=r[0].clone();u=1;for(var A=z;A>0;){r[u].css({left:A*2,top:0});r[u+1].css({left:A*4,top:A*2});r[u+2].css({left:A*2,top:A*4});r[u+3].css({left:0,top:A*2});r[u+4].css({left:A*3,top:A});r[u+5].css({left:A*3,top:A*3});r[u+6].css({left:A,top:A*3});r[u+7].css({left:A,top:A});u+=8;A--}var P=e("<div></div>").attr("id",Q).addClass("dropShadow").css({left:o.position().left+i.left-z,marginTop:o.css("marginTop"),marginRight:o.css("marginRight"),marginBottom:o.css("marginBottom"),marginLeft:o.css("marginLeft"),
position:"absolute",top:o.position().top+i.top-z,zIndex:E});for(u=0;u<I;u++)P.append(r[u]);o.after(P);m=m.add(P);e(window).resize(function(){try{P.css({left:o.position().left+i.left-z,top:o.position().top+i.top-z})}catch(R){}});c+=2});return this.pushStack(m)};e.fn.redrawShadow=function(){this.removeShadow();return this.each(function(){var g=e.data(this,"shadowOptions");e(this).dropShadow(g)})};e.fn.removeShadow=function(){return this.each(function(){var g=e(this).shadowId();e("div#"+g).remove()})};
e.fn.shadowId=function(){return e.data(this[0],"shadowId")};e(function(){var g="<style type='text/css' media='print'>";g+=".dropShadow{visibility:hidden;}</style>";e("head").append(g)})})(jQuery);
(function(e){e.fn.jqm=function(A){var P={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:o,ajaxText:"",target:o,modal:o,toTop:o,onShow:o,onHide:o,onLoad:o};e("body").append(e(this));return this.each(function(){if(this._jqm)return g[this._jqm].c=e.extend({},g[this._jqm].c,A);c++;this._jqm=c;g[c]={c:e.extend(P,e.jqm.params,A),a:o,w:e(this).addClass("jqmID"+c),s:c};P.trigger&&e(this).jqmAddTrigger(P.trigger)})};e.fn.jqmAddClose=function(A){return Q(this,A,"jqmHide")};
e.fn.jqmAddTrigger=function(A){return Q(this,A,"jqmShow")};e.fn.jqmShow=function(A){return this.each(function(){A=A||window.event;e.jqm.open(this._jqm,A)})};e.fn.jqmHide=function(A){return this.each(function(){A=A||window.event;e.jqm.close(this._jqm,A)})};e.jqm={hash:{},open:function(A,P){var R=g[A],H=R.c,W="."+H.closeClass,Z=parseInt(R.w.css("z-index"));Z=Z>0?Z:3E3;var B=e("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":Z-1,opacity:H.overlay/100});if(R.a)return o;
R.t=P;R.a=true;R.w.css("z-index",Z);if(H.modal){i[0]||u("bind");i.push(A)}else if(H.overlay>0)R.w.jqmAddClose(B);else B=o;R.o=B?B.addClass(H.overlayClass).prependTo("body"):o;if(m){e("html,body").css({height:"100%",width:"100%"});if(B){B=B.css({position:"absolute"})[0];for(var d in{Top:1,Left:1})B.style.setExpression(d.toLowerCase(),"(_=(document.documentElement.scroll"+d+" || document.body.scroll"+d+"))+'px'")}}if(H.ajax){A=H.target||R.w;Z=H.ajax;A=typeof A=="string"?e(A,R.w):e(A);Z=Z.substr(0,1)==
"@"?e(P).attr(Z.substring(1)):Z;A.html(H.ajaxText).load(Z,function(){H.onLoad&&H.onLoad.call(this,R);W&&R.w.jqmAddClose(e(W,R.w));z(R)})}else W&&R.w.jqmAddClose(e(W,R.w));H.toTop&&R.o&&R.w.before('<span id="jqmP'+R.w[0]._jqm+'"></span>').insertAfter(R.o);H.onShow?H.onShow(R):R.w.show();z(R);return o},close:function(A){A=g[A];if(!A.a)return o;A.a=o;if(i[0]){i.pop();i[0]||u("unbind")}A.c.toTop&&A.o&&e("#jqmP"+A.w[0]._jqm).after(A.w).remove();if(A.c.onHide)A.c.onHide(A);else{A.w.hide();A.o&&A.o.remove()}return o},
params:{}};var c=0,g=e.jqm.hash,i=[],m=e.browser.msie&&(e.browser.version=="6.0"||e.browser.version=="7.0"),o=false,r=e('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),z=function(A){if(m)if(A.o)A.o.html('<p style="width:100%;height:100%;margin:0;padding:0;"/>').prepend(r);else e("iframe.jqm",A.w)[0]||A.w.prepend(r);I(A)},I=function(A){try{e(":input:visible",A.w)[0].focus()}catch(P){}},u=function(A){e()[A]("keypress",E)[A]("keydown",E)[A]("mousedown",
E)},E=function(A){var P=g[i[i.length-1]];(A=!e(A.target).parents(".jqmID"+P.s)[0])&&I(P);return!A},Q=function(A,P,R){return A.each(function(){var H=this._jqm;e(P).each(function(){if(!this[R]){this[R]=[];e(this).click(function(){for(var W in{jqmShow:1,jqmHide:1})for(var Z in this[W])g[this[W][Z]]&&g[this[W][Z]].w[W](this);return o})}this[R].push(H)})})}})(jQuery);
(function(e,c){function g(i){return!e(i).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};if(!e.ui.version){e.extend(e.ui,{version:"1.8.6",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}});e.fn.extend({_focus:e.fn.focus,focus:function(i,m){return typeof i==="number"?this.each(function(){var o=this;setTimeout(function(){e(o).focus();m&&m.call(o)},i)}):this._focus.apply(this,arguments)},scrollParent:function(){var i;i=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,
"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!i.length?e(document):i},zIndex:function(i){if(i!==c)return this.css("zIndex",i);if(this.length){i=e(this[0]);for(var m;i.length&&i[0]!==document;){m=i.css("position");
if(m==="absolute"||m==="relative"||m==="fixed"){m=parseInt(i.css("zIndex"),10);if(!isNaN(m)&&m!==0)return m}i=i.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(i){i.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.each(["Width","Height"],function(i,m){function o(u,E,Q,A){e.each(r,function(){E-=parseFloat(e.curCSS(u,"padding"+this,true))||0;if(Q)E-=parseFloat(e.curCSS(u,
"border"+this+"Width",true))||0;if(A)E-=parseFloat(e.curCSS(u,"margin"+this,true))||0});return E}var r=m==="Width"?["Left","Right"]:["Top","Bottom"],z=m.toLowerCase(),I={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+m]=function(u){if(u===c)return I["inner"+m].call(this);return this.each(function(){e(this).css(z,o(this,u)+"px")})};e.fn["outer"+m]=function(u,E){if(typeof u!=="number")return I["outer"+m].call(this,u);return this.each(function(){e(this).css(z,
o(this,u,true,E)+"px")})}});e.extend(e.expr[":"],{data:function(i,m,o){return!!e.data(i,o[3])},focusable:function(i){var m=i.nodeName.toLowerCase(),o=e.attr(i,"tabindex");if("area"===m){m=i.parentNode;o=m.name;if(!i.href||!o||m.nodeName.toLowerCase()!=="map")return false;i=e("img[usemap=#"+o+"]")[0];return!!i&&g(i)}return(/input|select|textarea|button|object/.test(m)?!i.disabled:"a"==m?i.href||!isNaN(o):!isNaN(o))&&g(i)},tabbable:function(i){var m=e.attr(i,"tabindex");return(isNaN(m)||m>=0)&&e(i).is(":focusable")}});
e(function(){var i=document.body,m=i.appendChild(m=document.createElement("div"));e.extend(m.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=m.offsetHeight===100;e.support.selectstart="onselectstart"in m;i.removeChild(m).style.display="none"});e.extend(e.ui,{plugin:{add:function(i,m,o){i=e.ui[i].prototype;for(var r in o){i.plugins[r]=i.plugins[r]||[];i.plugins[r].push([m,o[r]])}},call:function(i,m,o){if((m=i.plugins[m])&&i.element[0].parentNode)for(var r=0;r<m.length;r++)i.options[m[r][0]]&&
m[r][1].apply(i.element,o)}},contains:function(i,m){return document.compareDocumentPosition?i.compareDocumentPosition(m)&16:i!==m&&i.contains(m)},hasScroll:function(i,m){if(e(i).css("overflow")==="hidden")return false;m=m&&m==="left"?"scrollLeft":"scrollTop";var o=false;if(i[m]>0)return true;i[m]=1;o=i[m]>0;i[m]=0;return o},isOverAxis:function(i,m,o){return i>m&&i<m+o},isOver:function(i,m,o,r,z,I){return e.ui.isOverAxis(i,o,z)&&e.ui.isOverAxis(m,r,I)}})}})(jQuery);
(function(e,c){if(e.cleanData){var g=e.cleanData;e.cleanData=function(m){for(var o=0,r;(r=m[o])!=null;o++)e(r).triggerHandler("remove");g(m)}}else{var i=e.fn.remove;e.fn.remove=function(m,o){return this.each(function(){if(!o)if(!m||e.filter(m,[this]).length)e("*",this).add([this]).each(function(){e(this).triggerHandler("remove")});return i.call(e(this),m,o)})}}e.widget=function(m,o,r){var z=m.split(".")[0],I;m=m.split(".")[1];I=z+"-"+m;if(!r){r=o;o=e.Widget}e.expr[":"][I]=function(u){return!!e.data(u,
m)};e[z]=e[z]||{};e[z][m]=function(u,E){arguments.length&&this._createWidget(u,E)};o=new o;o.options=e.extend(true,{},o.options);e[z][m].prototype=e.extend(true,o,{namespace:z,widgetName:m,widgetEventPrefix:e[z][m].prototype.widgetEventPrefix||m,widgetBaseClass:I},r);e.widget.bridge(m,e[z][m])};e.widget.bridge=function(m,o){e.fn[m]=function(r){var z=typeof r==="string",I=Array.prototype.slice.call(arguments,1),u=this;r=!z&&I.length?e.extend.apply(null,[true,r].concat(I)):r;if(z&&r.charAt(0)==="_")return u;
z?this.each(function(){var E=e.data(this,m),Q=E&&e.isFunction(E[r])?E[r].apply(E,I):E;if(Q!==E&&Q!==c){u=Q;return false}}):this.each(function(){var E=e.data(this,m);E?E.option(r||{})._init():e.data(this,m,new o(r,this))});return u}};e.Widget=function(m,o){arguments.length&&this._createWidget(m,o)};e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(m,o){e.data(o,this.widgetName,this);this.element=e(o);this.options=e.extend(true,{},this.options,
this._getCreateOptions(),m);var r=this;this.element.bind("remove."+this.widgetName,function(){r.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return e.metadata&&e.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(m,o){var r=m;if(arguments.length===0)return e.extend({},this.options);if(typeof m==="string"){if(o===c)return this.options[m];r={};r[m]=o}this._setOptions(r);return this},_setOptions:function(m){var o=this;e.each(m,function(r,z){o._setOption(r,z)});return this},_setOption:function(m,o){this.options[m]=o;if(m==="disabled")this.widget()[o?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",o);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(m,o,r){var z=this.options[m];o=e.Event(o);o.type=(m===this.widgetEventPrefix?m:this.widgetEventPrefix+m).toLowerCase();r=r||{};if(o.originalEvent){m=e.event.props.length;for(var I;m;){I=e.event.props[--m];o[I]=o.originalEvent[I]}}this.element.trigger(o,r);return!(e.isFunction(z)&&z.call(this.element[0],o,r)===false||o.isDefaultPrevented())}}})(jQuery);
(function(e){e.ui=e.ui||{};var c=/left|center|right/,g=/top|center|bottom/,i=e.fn.position,m=e.fn.offset;e.fn.position=function(o){if(!o||!o.of)return i.apply(this,arguments);o=e.extend({},o);var r=e(o.of),z=r[0],I=(o.collision||"flip").split(" "),u=o.offset?o.offset.split(" "):[0,0],E,Q,A;if(z.nodeType===9){E=r.width();Q=r.height();A={top:0,left:0}}else if(z.setTimeout){E=r.width();Q=r.height();A={top:r.scrollTop(),left:r.scrollLeft()}}else if(z.preventDefault){o.at="left top";E=Q=0;A={top:o.of.pageY,
left:o.of.pageX}}else{E=r.outerWidth();Q=r.outerHeight();A=r.offset()}e.each(["my","at"],function(){var P=(o[this]||"").split(" ");if(P.length===1)P=c.test(P[0])?P.concat(["center"]):g.test(P[0])?["center"].concat(P):["center","center"];P[0]=c.test(P[0])?P[0]:"center";P[1]=g.test(P[1])?P[1]:"center";o[this]=P});if(I.length===1)I[1]=I[0];u[0]=parseInt(u[0],10)||0;if(u.length===1)u[1]=u[0];u[1]=parseInt(u[1],10)||0;if(o.at[0]==="right")A.left+=E;else if(o.at[0]==="center")A.left+=E/2;if(o.at[1]==="bottom")A.top+=
Q;else if(o.at[1]==="center")A.top+=Q/2;A.left+=u[0];A.top+=u[1];return this.each(function(){var P=e(this),R=P.outerWidth(),H=P.outerHeight(),W=parseInt(e.curCSS(this,"marginLeft",true))||0,Z=parseInt(e.curCSS(this,"marginTop",true))||0,B=R+W+parseInt(e.curCSS(this,"marginRight",true))||0,d=H+Z+parseInt(e.curCSS(this,"marginBottom",true))||0,G=e.extend({},A),T;if(o.my[0]==="right")G.left-=R;else if(o.my[0]==="center")G.left-=R/2;if(o.my[1]==="bottom")G.top-=H;else if(o.my[1]==="center")G.top-=H/2;
G.left=parseInt(G.left);G.top=parseInt(G.top);T={left:G.left-W,top:G.top-Z};e.each(["left","top"],function(V,Y){e.ui.position[I[V]]&&e.ui.position[I[V]][Y](G,{targetWidth:E,targetHeight:Q,elemWidth:R,elemHeight:H,collisionPosition:T,collisionWidth:B,collisionHeight:d,offset:u,my:o.my,at:o.at})});e.fn.bgiframe&&P.bgiframe();P.offset(e.extend(G,{using:o.using}))})};e.ui.position={fit:{left:function(o,r){var z=e(window);z=r.collisionPosition.left+r.collisionWidth-z.width()-z.scrollLeft();o.left=z>0?
o.left-z:Math.max(o.left-r.collisionPosition.left,o.left)},top:function(o,r){var z=e(window);z=r.collisionPosition.top+r.collisionHeight-z.height()-z.scrollTop();o.top=z>0?o.top-z:Math.max(o.top-r.collisionPosition.top,o.top)}},flip:{left:function(o,r){if(r.at[0]!=="center"){var z=e(window);z=r.collisionPosition.left+r.collisionWidth-z.width()-z.scrollLeft();var I=r.my[0]==="left"?-r.elemWidth:r.my[0]==="right"?r.elemWidth:0,u=r.at[0]==="left"?r.targetWidth:-r.targetWidth,E=-2*r.offset[0];o.left+=
r.collisionPosition.left<0?I+u+E:z>0?I+u+E:0}},top:function(o,r){if(r.at[1]!=="center"){var z=e(window);z=r.collisionPosition.top+r.collisionHeight-z.height()-z.scrollTop();var I=r.my[1]==="top"?-r.elemHeight:r.my[1]==="bottom"?r.elemHeight:0,u=r.at[1]==="top"?r.targetHeight:-r.targetHeight,E=-2*r.offset[1];o.top+=r.collisionPosition.top<0?I+u+E:z>0?I+u+E:0}}}};if(!e.offset.setOffset){e.offset.setOffset=function(o,r){if(/static/.test(e.curCSS(o,"position")))o.style.position="relative";var z=e(o),
I=z.offset(),u=parseInt(e.curCSS(o,"top",true),10)||0,E=parseInt(e.curCSS(o,"left",true),10)||0;I={top:r.top-I.top+u,left:r.left-I.left+E};"using"in r?r.using.call(o,I):z.css(I)};e.fn.offset=function(o){var r=this[0];if(!r||!r.ownerDocument)return null;if(o)return this.each(function(){e.offset.setOffset(this,o)});return m.call(this)}}})(jQuery);
(function(e){e.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,prefocus:false},_create:function(){var c=this,g=this.element[0].ownerDocument,i,m=true;if(this.options.prefocus){m=false;this.element.focus();setTimeout(function(){m=true},100)}this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",
function(o){if(!(c.options.disabled||c.element.attr("readonly"))){i=false;var r=e.ui.keyCode;switch(o.keyCode){case r.PAGE_UP:c._move("previousPage",o);break;case r.PAGE_DOWN:c._move("nextPage",o);break;case r.UP:c._move("previous",o);o.preventDefault();break;case r.DOWN:c._move("next",o);o.preventDefault();break;case r.ENTER:case r.NUMPAD_ENTER:if(c.menu.active){i=true;o.preventDefault()}case r.TAB:if(!c.menu.active)return;c.menu.select(o);break;case r.ESCAPE:c.element.val(c.term);c.close(o);break;
default:clearTimeout(c.searching);c.searching=setTimeout(function(){if(c.term!=c.element.val()){c.selectedItem=null;c.search(null,o)}},c.options.delay);break}}}).bind("keypress.autocomplete",function(o){if(i){i=false;o.preventDefault()}}).bind("focus.autocomplete",function(){if(!c.options.disabled){var o=m&&!c.selectedItem;c.selectedItem=null;c.previous=c.element.val();o&&c.search();m=true}}).bind("blur.autocomplete",function(o){if(!c.options.disabled){clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(o);
c._change(o)},150)}});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=e("<ul></ul>").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",g)[0]).mousedown(function(o){var r=c.menu.element[0];e(o.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(z){z.target!==c.element[0]&&z.target!==r&&!e.ui.contains(r,z.target)&&c.close()})},1);setTimeout(function(){clearTimeout(c.closing)},13)}).menu({focus:function(o,
r){r=r.item.data("item.autocomplete");false!==c._trigger("focus",o,{item:r})&&/^key/.test(o.originalEvent.type)&&c.element.val(r.value)},selected:function(o,r){r=r.item.data("item.autocomplete");var z=c.previous;if(c.element[0]!==g.activeElement){m=false;c.element.focus();c.previous=z;setTimeout(function(){m=false;c.previous=z},1)}false!==c._trigger("select",o,{item:r})&&c.element.val(r.value);c.term=c.element.val();c.close(o);c.selectedItem=r},blur:function(){c.menu.element.is(":visible")&&c.element.val()!==
c.term&&c.element.val(c.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();e.Widget.prototype.destroy.call(this)},_setOption:function(c,g){e.Widget.prototype._setOption.apply(this,arguments);c==="source"&&this._initSource();
if(c==="appendTo")this.menu.element.appendTo(e(g||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var c=this,g,i;if(e.isArray(this.options.source)){g=this.options.source;this.source=function(m,o){o(e.ui.autocomplete.filter(g,m.term))}}else if(typeof this.options.source==="string"){i=this.options.source;this.source=function(m,o){c.xhr&&c.xhr.abort();c.xhr=e.getJSON(i,m,function(r,z,I){I===c.xhr&&o(r);c.xhr=null})}}else this.source=this.options.source},search:function(c,g){c=c!=null?
c:this.element.val();this.term=this.element.val();if(c.length<this.options.minLength)return this.close(g);clearTimeout(this.closing);if(this._trigger("search",g)!==false)return this._search(c)},_search:function(c){this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this._trigger("close",c);this.menu.element.hide();this.menu.deactivate()}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value)return c;return e.map(c,function(g){if(typeof g==="string")return{label:g,value:g};return e.extend({label:g.label||g.value,value:g.value||g.label},g)})},_suggest:function(c){this._renderMenu(this.menu.element.empty().zIndex(this.element.zIndex()+
1),c);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position(e.extend({of:this.element},this.options.position));this._resizeMenu()},_resizeMenu:function(){var c=this.menu.element,g=this.element.outerWidth();c.outerWidth(Math.max(c.width("").outerWidth(),g));if(e.browser.msie){var i=e.browser.version.slice(0,1);if(i=="7"||i=="8")c.css("max-width",g)}},_renderMenu:function(c,g){var i=this;e.each(g,function(m,o){i._renderItem(c,o)})},_renderItem:function(c,g){return e("<li></li>").data("item.autocomplete",
g).append(e("<a></a>").text(g.label)).appendTo(c)},_move:function(c,g){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(c)||this.menu.last()&&/^next/.test(c)){this.element.val(this.term);this.menu.deactivate()}else this.menu[c](g);else this.search(null,g)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(c,g){var i=new RegExp(e.ui.autocomplete.escapeRegex(g),
"i");return e.grep(c,function(m){return i.test(m.label||m.value||m)})}})})(jQuery);
(function(e){e.widget("ui.menu",{_create:function(){var c=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(g){if(e(g.target).closest(".ui-menu-item a").length){g.preventDefault();c.select(g)}});this.refresh()},refresh:function(){var c=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(g){c.activate(g,e(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(c,g){this.deactivate();if(this.hasScroll()){var i=g.offset().top-this.element.offset().top,m=this.element.attr("scrollTop"),o=this.element.height();if(i<0)this.element.attr("scrollTop",m+i);else i>=o&&this.element.attr("scrollTop",m+i-o+g.height())}this.active=g.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",c,{item:g})},
deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(c){this.move("next",".ui-menu-item:first",c)},previous:function(c){this.move("prev",".ui-menu-item:last",c)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(c,g,i){if(this.active){c=this.active[c+"All"](".ui-menu-item").eq(0);
c.length?this.activate(i,c):this.activate(i,this.element.children(g))}else this.activate(i,this.element.children(g))},nextPage:function(c){if(this.hasScroll())if(!this.active||this.last())this.activate(c,this.element.children(".ui-menu-item:first"));else{var g=this.active.offset().top,i=this.element.height(),m=this.element.children(".ui-menu-item").filter(function(){var o=e(this).offset().top-g-i+e(this).height();return o<10&&o>-10});m.length||(m=this.element.children(".ui-menu-item:last"));this.activate(c,
m)}else this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(c){if(this.hasScroll())if(!this.active||this.first())this.activate(c,this.element.children(".ui-menu-item:last"));else{var g=this.active.offset().top,i=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var m=e(this).offset().top-g+i-e(this).height();return m<10&&m>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
this.activate(c,result)}else this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(c){this._trigger("selected",c,{item:this.active})}})})(jQuery);if(typeof contextPath=="undefined")window.contextPath="";function browserMajorVersion(){var e=$.browser.version.indexOf(".");return e>0?parseInt($.browser.version.substring(0,e)):-1}
function invertDisplay(arguments,e){for(var c=0;c<arguments.length;c++){var g=e==null?$(arguments[c]):$(e+arguments[c]);g.css("display")=="none"?g.css("display",""):g.css("display","none")}return false}function invertDisplayById(){return invertDisplay(arguments,"#")}function invertDisplayByClass(){return invertDisplay(arguments,".")}function expandAuthors(e){e=$(e).parent();e.find(".intmore").hide();e.find(".intless").show()}
function collapseAuthors(e){e=$(e).parent();e.find(".intless").hide();e.find(".intmore").show()}function expandTail(e){e=$(e);var c=e.next();e.hide();c.show();return false}function collapseTail(e){e=$(e).parent();e.prev().show();e.hide();return false}document.onkeyup=function(e){if(e==null)e=window.event!=null?window.event:Event;if(e.altKey&&e.ctrlKey&&e.keyCode==49)window.location=setParameter(""+window.location,"debug",!window.debug)};
function setParameter(e,c,g){var i=e.indexOf("?");if(i<0)return e+"?"+c+"="+g;var m=e.indexOf("?"+c+"=",i);if(m<0)m=e.indexOf("&"+c+"=",i);if(m<0)return e+"&"+c+"="+g;m+=c.length+2;if(m>=e.length)return e+g;c=e.indexOf("&",m);if(c<0)return e.substr(0,m)+g;return e.substr(0,m)+g+e.substr(c)}function htmlEscape(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function getTail(e,c){var g=e.lastIndexOf(c);return g<0?e:e.substring(g+c.length)}
function Selection(e,c,g,i){var m=null,o=c,r=function(u,E){u={action:u?"s":"d"};if(E!=null)u.id=E;u[window.vcParam]=window.vcId;$.ajax({url:e,cache:false,data:u,dataType:"text",success:function(Q,A,P){Q=Q.split("\n");if(Q.length>1)window.vcId=parseInt(Q[1]);if(Q.length>2)if(window.vcSid=="")window.vcSid=Q[2];else if(window.vcSid!=Q[2]){I();alert("Your session has expired. Previous selections (if any) have been reset.")}if(Q.length>3){I();alert(Q[3])}i&&i()}})},z=function(u){u.sel?$(u).attr("title",
"Deselect for export").addClass("check-on").removeClass("check-off"):$(u).attr("title","Select for export").addClass("check-off").removeClass("check-on")},I=function(){var u=[];m.each(function(E){u.push(this.hitId)});data={action:"i",id:u};data[window.vcParam]=window.vcId;$.ajax({url:e,type:"POST",cache:false,data:data,dataType:"text",success:function(E,Q,A){E=E.split("\n");if(E.length>1)window.vcId=parseInt(E[1]);if(E.length>2)window.vcSid=E[2];if(E.length>3){var P=E[3];m.each(function(R){this.sel=
P[R]=="1";z(this)})}i&&i()}})};return{init:function(u){m=u;u.each(function(E){E=$(this);var Q=E.attr("title").split(":");this.hitId=Q[0];this.sel=Q[1]=="true";z(this);E.css("visibility","visible")}).click(function(E){this.sel=!this.sel;z(this);o+=this.sel?1:-1;g();r(this.sel,[this.hitId])});$(".result-selection").css("visibility","visible")},selectAll:function(u){m.each(function(E){this.sel=u;z(this)});o=0;g();r(u)},selectPage:function(u){var E=[],Q=0;m.each(function(A){if(this.sel!=u){this.sel=u;
z(this);Q++}E.push(this.hitId)});o+=u?Q:-Q;g();r(u,E)},size:function(){return o},isPageSelected:function(){for(var u=0;u<m.length;u++)if(!m[u].sel)return false;return true}}}
function PopupDialog(e,c,g,i){var m=$(e),o=$(c),r=false,z=function(){if(r){m.removeShadow();m.hide();r=false;if(PopupDialog.prototype.shownInstance==this)PopupDialog.prototype.shownInstance=null}},I=function(u,E){E=E;do{if(E==u)return true;E=E.parentNode}while(E&&E.tagName.toLowerCase()!="body"&&E.tagName.toLowerCase()!="html");return false};$(document).click(function(u){if(r){var E=u.srcElement;if(!E)E=u.target;I(e,E)||z()}return true});return{show:function(){if(!r){PopupDialog.prototype.shownInstance!=
null&&PopupDialog.prototype.shownInstance.hide();var u=o.position();u.top+=o.outerHeight();m.css("top",u.top);g=="right"?m.css("left",u.left+o.outerWidth()-m.outerWidth()):m.css("left",u.left);m.show();m.dropShadow({left:2,top:2});r=true;PopupDialog.prototype.shownInstance=this}},hide:function(){z()},isShown:function(){return r}}}
function MainSearchForm(e,c){function g(d,G){G=G.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1");for(var T=G.split(/[^\w]+/),V="",Y=0;Y<T.length;Y++){G=T[Y];if(G.length>1){for(var ca=0;ca<G.length;ca++){V+=G.charAt(ca);if(ca<G.length-1)V+="[^\\s\\w]?"}V+="|";if(G.length==2){V+=G.charAt(0)+"\\w*[^\\w]+"+G.charAt(1);V+="|"}}else{V+=G;V+="|"}}V=V.substr(0,V.length-1);return d.replace(new RegExp("(^|[^\\w])("+V+")","gi"),"$1<span class='ac-hl'>$2</span>")}function i(d,G){if(G==null)return d;for(var T=
[],V=0,Y=0;Y<G.length;){var ca=G[Y++],ma=G[Y++];ca>V&&T.push(htmlEscape(d.substring(V,ca)));T.push("<span class='ac-hl'>",htmlEscape(d.substring(ca,ma)),"</span>");V=ma}V<d.length&&T.push(htmlEscape(d.substring(V)));return T.join("")}function m(d){d=d.replace(/,/g," ").replace(/\s\s/g," ");if(d.length>500){for(var G=500;G>200;G--)if(" \t.-!\"#$%&'()*+/:;<=>?@[\\]^_`{|}~".indexOf(d.charAt(G))>=0)return d.substring(0,G);return d.substring(0,500)}return d}function o(d){var G=d.replace(/,\s*/g,"\t"),
T=G.lastIndexOf("\t");return T<0?d:G.substring(T+1,G.length)}function r(d,G,T){if(T==null)return htmlEscape(d.substring(G));if(G==T)return"";return htmlEscape(d.substring(G,T))}function z(){if(e)u.autocomplete({source:function(d,G){$.ajax({url:contextPath+"/autocomplete/q",dataType:"json",data:{q:d.term},success:function(T){var V=[];if(T.groups!=null)for(var Y=true,ca=T.groups.length-1,ma=0;ma<=ca;ma++)for(var xa=T.groups[ma],Ea=xa.length-1,ua=0;ua<=Ea;ua++){var ha=xa[ua],ga=ha.text,ja=ha.entityStart,
ka="";if(ja>=0){ka=ha.entityEnd;ka=ha.tailPos>=ka?r(ga,0,ja)+"<span class='qs-entity'>"+r(ga,ja,ka)+"</span>"+r(ga,ka,ha.tailPos)+"<span class='qs-tail'>"+r(ga,ha.tailPos):ha.tailPos>ja?r(ga,0,ja)+"<span class='qs-entity'>"+r(ga,ja,ha.tailPos)+"</span><span class='qs-tail'><span class='qs-entity'>"+r(ga,ha.tailPos,ka)+"</span>"+r(ga,ka):r(ga,0,ha.tailPos)+"<span class='qs-tail'>"+r(ga,ha.tailPos,ja)+"<span class='qs-entity'>"+r(ga,ja,ka)+"</span>"+r(ga,ka)}else ka=r(ga,0,ha.tailPos)+"<span class='qs-tail'>"+
r(ga,ha.tailPos);ja=ha.id=="and";ha.label=ja?ka+" &hellip;</span>":ka+"</span>";ha.value=ja?ga+" ":ga;ha.odd=Y;V.push(ha);Y=!Y}G(V)}})},select:function(d,G){this.value=G.item.value;I.submit();return false},minLength:0,delay:150,prefocus:c}).data("autocomplete")._renderItem=function(d,G){var T=G.odd?"qs-odd":"qs-even",V=["<a>"];if(G.type>=0){var Y=Apollo.iconPath("p"+(""+G.freq).length+".png"),ca=Apollo.objectTypeByMillion(G.type),ma=Apollo.iconPath(ca.icon);V.push("<span class='qs-info' style='float:right'><img src='",
ma,"' title='",ca.name,"' width='16' height='16'>");G.freq>0&&V.push("<img src='",Y,"' title='Relative Frequency' width='16' height='16'>");V.push("</span>")}V.push("<span class='qs-text'>",G.label,"</span></a>");return $("<li class='"+T+"'></li>").data("item.autocomplete",G).append(V.join("")).appendTo(d)};E.autocomplete({source:function(d,G){var T=o(d.term),V=T.length==d.term.length?"":d.term.substring(0,d.term.length-T.length);$.ajax({url:contextPath+"/autocomplete/a",dataType:"json",data:{q:T},
success:function(Y){G($.map(Y.items,function(ca,ma){ca.label=i(ca.text,ca.ranges);ca.value=V+m(ca.text);ca.odd=ma%2==0;return ca}))}})},search:function(){if(o(this.value).length<3)return false},select:function(d,G){this.value=G.item.value+", ";return false}}).data("autocomplete")._renderItem=function(d,G){return $("<li class='"+(G.odd?"ac-odd":"ac-even")+"'></li>").data("item.autocomplete",G).append("<a><span class='ac-info' style='float:right'>("+G.freq+")</span><span class='ac-text'>"+G.label+"</span></a>").appendTo(d)};
Q.autocomplete({source:function(d,G){var T=o(d.term),V=T.length==d.term.length?"":d.term.substring(0,d.term.length-T.length);$.ajax({url:contextPath+"/autocomplete/j",dataType:"json",data:{q:T},success:function(Y){G($.map(Y.items,function(ca,ma){ca.label=g(ca.fullName,T);ca.value=V+m(ca.shortName);ca.odd=ma%2==0;return ca}))}})},search:function(){if(o(this.value).length<3)return false},select:function(d,G){this.value=G.item.value+", ";return false}}).data("autocomplete")._renderItem=function(d,G){return $("<li class='"+
(G.odd?"ac-odd":"ac-even")+"'></li>").data("item.autocomplete",G).append("<a><span class='ac-info' style='float:right'>("+G.freq+")</span><span class='ac-text'>"+G.label+"</span></a>").appendTo(d)}}var I=$("#searchForm"),u=I.find("input[name=query]"),E=I.find("input[name=so_a]"),Q=I.find("input[name=so_j]"),A=function(d){var G=d.attr("value"),T=d.attr("title");if($.trim(G)==""){d.attr("value",T);d.addClass("empty-input-field")}},P=function(d){var G=d.attr("value"),T=d.attr("title");if(G==T){d.attr("value",
"");d.removeClass("empty-input-field")}},R=function(d){A(d);d.blur(function(G){A($(this))}).focus(function(G){P($(this))})};I.submit(function(d){P(E);P(Q);return true});R(E);R(Q);var H=function(d){d.attr("value","");A(d)};R=I.find("a.clear-search-form");var W=R.attr("href");R.attr("href","javascript:void(0)");var Z=function(d){H(E);H(Q);H(u);u.focus();$.ajax({url:W,type:"GET",cache:false,dataType:"text"})};R.click(Z);R.show();u.trackSelection();!e&&c&&u.focus();var B=$.browser.msie&&browserMajorVersion()<=
7;B||z();return{initPopups:function(){B&&z();var d=function(G){P(u);var T=u.attr("value"),V=u.attr("selectionTrack"),Y;if(V.end==0)Y=0;else for(Y=V.end-1;Y<T.length;Y++)if(T.charAt(Y)==" "){Y++;break}T=T.substr(0,Y)+(Y>0&&T.charAt(Y-1).match(/\s/)==null?" ":"")+G+" "+T.substr(Y,T.length);u.attr("value",T);u.focus();V.start=V.end=Y+G.length+1;u.refreshSelection()};$("a.special-term").click(function(G){G=$(this).text();d(G)});$("a.view-example").click(function(G){Z();I.find("input[name=query]").attr("value",
$(this).text());I.submit()})}}}
function OpenurlOrgSelector(){var e=$("#openurlOrgValue"),c=$("#openurlOrgList");c.find("a").click(function(g){setTimeout(function(){$("#openurlOrgValue")[0].popup.hide()},200);return true});e.each(function(g){this.popup=new PopupDialog(c[0],this,"right")}).click(function(g){if(!this.popup.isShown()){this.popup.show();return false}return true}).hover(function(g){$(this).addClass("openurl-org-value-hov").removeClass("openurl-org-value")},function(g){$(this).addClass("openurl-org-value").removeClass("openurl-org-value-hov")})}
function attachViewerContext(){$(".paging-page-link,.sorting").click(function(){if(window.vcId>0)this.href+="&"+window.vcParam+"="+window.vcId;return true})}
function initHitExplanation(){$("a.hit-expl").click(function(e){var c=$(this).parent().find("div.hit-expl-content");if($(c)[0].style.display=="none"){e=$(this).attr("href");if(e!="javascript:void(0)"){$(this).attr("href","javascript:void(0)");c.load(e,null,function(g,i,m){i!="success"&&c.html('<span class="error">'+m.statusText+"</span>")})}$(c).show()}else $(c).hide();return false})}
function log(e,c){if(window.debug)if(window.console)window.console.log(e);else{window.dump&&window.dump(e);if(c==null)c="log";c=document.getElementById(c);if(c!=null){var g=document.createElement("DIV");g.className="log-item";e=document.createTextNode(e);g.appendChild(e);c.appendChild(g);c.appendChild(g)}}}
var Apollo=new function(){var e=contextPath+"/img/",c=e+"icons/",g={t:{name:"Entity",icon:"t.png"},t0:{name:"Protein",icon:"t0.png"},t1:{name:"Small Molecule",icon:"t1.png"},t2:{name:"Cell Object",icon:"t2.png"},t3:{name:"Complex",icon:"t3.png"},t4:{name:"Cell Process",icon:"t4.png"},t5:{name:"Virus",icon:"t.png"},t6:{name:"Tissue",icon:"t.png"},t7:{name:"Organism",icon:"t.png"},t8:{name:"Organ",icon:"t.png"},t9:{name:"Disease",icon:"t9.png"},t10:{name:"Cell Type",icon:"t.png"},t11:{name:"Cell Line",
icon:"t.png"},t12:{name:"Functional Class",icon:"t12.png"},t13:{name:"Treatment",icon:"t13.png"},t14:{name:"Enzyme",icon:"t.png"},t15:{name:"Compartment",icon:"t.png"}};return{imgPath:function(i){return e+i},iconPath:function(i){return c+i},setObjectTypes:function(i){g=i},objectTypeByMillion:function(i){i=g["t"+i];return i!=null?i:g.t}}};
new (function(e){e.fn.setSelectionRange=function(g,i){var m=e(this).get(0);if(m.setSelectionRange)m.setSelectionRange(g,i);else if(m.createTextRange){m=m.createTextRange();m.collapse(true);m.moveEnd("character",i);m.moveStart("character",g);m.select()}};e.fn.refreshSelection=function(){var g=e(this).get(0);e(this).setSelectionRange(g.selectionTrack.start,g.selectionTrack.end)};var c=function(){var g=e(this).get(0),i=g.value.length,m=i;if(g.selectionStart!=undefined){i=g.selectionStart;m=g.selectionEnd}else if(document.selection){m=
document.selection.createRange();if(m==null)return{start:0,end:g.value.length,length:0};i=g.createTextRange();var o=i.duplicate();i.moveToBookmark(m.getBookmark());o.setEndPoint("EndToStart",i);i=o.text.length;m=o.text.length+m.text.length}g.selectionTrack.start=i;g.selectionTrack.end=m};e.fn.trackSelection=function(){var g=e(this).get(0),i=g.value.length;g.selectionTrack={start:i,end:i};e.browser.msie||e.browser.opera?e(this).bind("keyup",c).bind("click",c).bind("change",c).bind("select",c):e(this).bind("blur",
c)}})(jQuery);
Apollo.setObjectTypes({t:{name:"Entity",icon:"t.png"},t0:{name:"Protein/Gene",icon:"t0.png"},t1:{name:"Small Molecule",icon:"t1.png"},t2:{name:"Cell Object",icon:"t2.png"},t3:{name:"Complex",icon:"t3.png"},t4:{name:"Cell Process",icon:"t4.png"},t5:{name:"Virus",icon:"t5.png"},t6:{name:"Tissue",icon:"t6.png"},t7:{name:"Organism",icon:"t7.png"},t8:{name:"Organ",icon:"t8.png"},t9:{name:"Disease",icon:"t9.png"},t10:{name:"Cell Type",icon:"t10.png"},t11:{name:"Cell Line",icon:"t11.png"},t12:{name:"Protein Functional Class",
icon:"t12.png"},t13:{name:"Treatment",icon:"t13.png"},t16:{name:"Power Term",icon:"t16.png"},t18:{name:"Method",icon:"t18.png"},t19:{name:"Chemical Functional Class",icon:"t19.png"},t20:{name:"Biologic",icon:"t20.png"},t21:{name:"Antibody",icon:"t21.png"},t23:{name:"Company",icon:"t23.png"}});
function initSelectionCommands(){$(".result-selection img").each(function(e){this.srcNorm=$(this).attr("src");var c=this.srcNorm.lastIndexOf(".");e=this.srcNorm.substring(0,c);c=this.srcNorm.substring(c);this.srcHov=e+"-hov"+c}).hover(function(e){$(this).attr("src",this.srcHov)},function(e){$(this).attr("src",this.srcNorm)})}function onSelectionChange(){var e=selection.size();$("#selection_count").html(e)}
function initExport(){$("#export").each(function(e){e=$("#exportDialog");this.popup=new PopupDialog(e[0],this);e=e.find("form");e[0].popup=this.popup;e[0].onsubmit=function(){this.elements[window.vcParam].value=window.vcId;var c=function(){$("#export")[0].popup.hide()};$.browser.mozilla?c():setTimeout(c,200);return true};e.find("input[type=button]").click(function(c){this.form.popup.hide()});e.find(".export-button").hover(function(c){$(this).addClass("export-button-hov").removeClass("export-button")},
function(c){$(this).addClass("export-button").removeClass("export-button-hov")})}).click(function(e){e=selection.size();var c=$("#exportSrcSel");c[0].disabled=e==0;var g=c.next();g[0].disabled=e==0;g.html(e==0?"Selected":e+" Selected");$("#exportSrcAll")[0].checked=e==0;c[0].checked=e>0;this.popup.show();return false})}
function initSearchResult(e){$("input.search-button,input.filter-submit").attr("value","");attachViewerContext();var c=$("#allRelationsTrigger");if(c.length>0){c[0].expand=function(){c.html("Collapse All Relationships");$.cookie("exp_rels","true");this.expanded=true;for(var g=0;g<e;g++){$("#v_f"+g+"M").hide();$("#v_f"+g+"C").show()}};c[0].collapse=function(){c.html("Expand All Relationships");$.cookie("exp_rels",null);this.expanded=false;for(var g=0;g<e;g++){$("#v_f"+g+"M").show();$("#v_f"+g+"C").hide()}};
c.click(function(g){this.expanded?this.collapse():this.expand()});$.cookie("exp_rels")=="true"?c[0].expand():c[0].collapse();c.show()}$("a.hit-content-text-tools").click(function(g){g=$(this).attr("href");var i=$(this).parent().parent().find("div.hit-content-abstract");if(g!="javascript:void(0)"){$(this).attr("href","javascript:void(0)");if(g.indexOf("#")>0)g=g.substring(0,g.indexOf("#"));i.load(g,null,function(m,o,r){o!="success"&&i.html('<span class="error">Full abstract is not reachable</span>')})}$(this).parent().parent().find("*[class^=hit-content-text]").hide();
$(this).parent().parent().find("*[class^=hit-content-abstract]").show();return false});$("a.hit-content-abstract-tools").click(function(g){$(this).parent().parent().find("*[class^=hit-content-text]").show();$(this).parent().parent().find("*[class^=hit-content-abstract]").hide()});initHitExplanation();$("a#highlightingTrigger").click(function(g){$("td.search-results-area").toggleClass("hl-off");g=$("td.search-results-area").hasClass("hl-off")?"true":null;$.cookie("highlightingTrigger",g)});initExport()}
;

