/*compressed*/




(function(aR,aP){function af(b){return aL.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1;}function al(e){if(!cn[e]){var d=aL("<"+e+">").appendTo("body"),g=d.css("display");d.remove();if(g==="none"||g===""){g="block";}cn[e]=g;}return cn[e];}function an(e,d){var g={};aL.each(ao.concat.apply([],ao.slice(0,d)),function(){g[this]=e;});return g;}function c2(){try{return new aR.ActiveXObject("Microsoft.XMLHTTP");}catch(a){}}function cu(){try{return new aR.XMLHttpRequest;}catch(a){}}function cw(){aL(aR).unload(function(){for(var b in cz){cz[b](0,1);}});}function cI(C,B){C.dataFilter&&(B=C.dataFilter(B,C.dataType));var A=C.dataTypes,z={},y,x,w=A.length,v,u=A[0],s,r,q,d,b;for(y=1;y<w;y++){if(y===1){for(x in C.converters){typeof x==="string"&&(z[x.toLowerCase()]=C.converters[x]);}}s=u,u=A[y];if(u==="*"){u=s;}else{if(s!=="*"&&s!==u){r=s+" "+u,q=z[r]||z["* "+u];if(!q){b=aP;for(d in z){v=d.split(" ");if(v[0]===s||v[0]==="*"){b=z[v[1]+" "+u];if(b){d=z[d],d===!0?q=b:b===!0&&(q=d);break;}}}}!q&&!b&&aL.error("No conversion from "+r.replace(" "," to ")),q!==!0&&(B=q?q(B):b(d(B)));}}}return B;}function cJ(v,u,s){var r=v.contents,q=v.dataTypes,p=v.responseFields,o,n,m,b;for(n in p){n in s&&(u[p[n]]=s[n]);}while(q[0]==="*"){q.shift(),o===aP&&(o=v.mimeType||u.getResponseHeader("content-type"));}if(o){for(n in r){if(r[n]&&r[n].test(o)){q.unshift(n);break;}}}if(q[0] in s){m=q[0];}else{for(n in s){if(!q[0]||v.converters[n+" "+q[0]]){m=n;break;}b||(b=n);}m=m||b;}if(m){m!==q[0]&&q.unshift(m);return s[m];}}function cK(g,d,j,i){if(aL.isArray(d)&&d.length){aL.each(d,function(a,c){j||aQ.test(g)?i(g,c):cK(g+"["+(typeof c==="object"||aL.isArray(c)?a:"")+"]",c,j,i);});}else{if(j||d==null||typeof d!=="object"){i(g,d);}else{if(aL.isArray(d)||aL.isEmptyObject(d)){i(g,"");}else{for(var h in d){cK(g+"["+h+"]",d[h],j,i);}}}}}function cL(w,v,u,s,r,q){r=r||v.dataTypes[0],q=q||{},q[r]=!0;var p=w[r],o=0,n=p?p.length:0,m=w===cR,b;for(;o<n&&(m||!b);o++){b=p[o](v,u,s),typeof b==="string"&&(!m||q[b]?b=aP:(v.dataTypes.unshift(b),b=cL(w,v,u,s,b,q)));}(m||!b)&&!q["*"]&&(b=cL(w,v,u,s,"*",q));return b;}function cM(b){return function(a,r){typeof a!=="string"&&(r=a,a="*");if(aL.isFunction(r)){var q=a.toLowerCase().split(cX),p=0,o=q.length,n,m,d;for(;p<o;p++){n=q[p],d=/^\+/.test(n),d&&(n=n.substr(1)||"*"),m=b[n]=b[n]||[],m[d?"unshift":"push"](r);}}};}function aU(g,d,j){var i=d==="width"?a1:aZ,h=d==="width"?g.offsetWidth:g.offsetHeight;if(j==="border"){return h;}aL.each(i,function(){j||(h-=parseFloat(aL.css(g,"padding"+this))||0),j==="margin"?h+=parseFloat(aL.css(g,"margin"+this))||0:h-=parseFloat(aL.css(g,"border"+this+"Width"))||0;});return h;}function b7(d,c){c.src?aL.ajax({url:c.src,async:!1,dataType:"script"}):aL.globalEval(c.text||c.textContent||c.innerHTML||""),c.parentNode&&c.parentNode.removeChild(c);}function b9(b){return"getElementsByTagName" in b?b.getElementsByTagName("*"):"querySelectorAll" in b?b.querySelectorAll("*"):[];}function ck(e,d){if(d.nodeType===1){var g=d.nodeName.toLowerCase();d.clearAttributes(),d.mergeAttributes(e);if(g==="object"){d.outerHTML=e.outerHTML;}else{if(g!=="input"||e.type!=="checkbox"&&e.type!=="radio"){if(g==="option"){d.selected=e.defaultSelected;}else{if(g==="input"||g==="textarea"){d.defaultValue=e.defaultValue;}}}else{e.checked&&(d.defaultChecked=d.checked=e.checked),d.value!==e.value&&(d.value=e.value);}}d.removeAttribute(aL.expando);}}function aT(u,s){if(s.nodeType===1&&aL.hasData(u)){var r=aL.expando,q=aL.data(u),p=aL.data(s,q);if(q=q[r]){var o=q.events;p=p[r]=aL.extend({},q);if(o){delete p.handle,p.events={};for(var n in o){for(var m=0,d=o[n].length;m<d;m++){aL.event.add(s,n+(o[n][m].namespace?".":"")+o[n][m].namespace,o[n][m],o[n][m].data);}}}}}}function c1(d,c){return aL.nodeName(d,"table")?d.getElementsByTagName("tbody")[0]||d.appendChild(d.ownerDocument.createElement("tbody")):d;}function b8(g,d,i){if(aL.isFunction(d)){return aL.grep(g,function(b,j){var c=!!d.call(b,j,b);return c===i;});}if(d.nodeType){return aL.grep(g,function(b,c){return b===d===i;});}if(typeof d==="string"){var h=aL.grep(g,function(b){return b.nodeType===1;});if(cp.test(d)){return aL.filter(d,h,!i);}d=aL.filter(d,h);}return aL.grep(g,function(b,c){return aL.inArray(b,d)>=0===i;});}function cj(b){return !b||!b.parentNode||b.parentNode.nodeType===11;}function ct(d,c){return(d&&d!=="*"?d+".":"")+c.replace(aj,"`").replace(ah,"&");}function cv(J){var I,H,G,F,E,D,C,B,A,z,y,x,w,v=[],u=[],r=aL._data(this,"events");if(J.liveFired!==this&&r&&r.live&&!J.target.disabled&&(!J.button||J.type!=="click")){J.namespace&&(x=new RegExp("(^|\\.)"+J.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),J.liveFired=this;var d=r.live.slice(0);for(C=0;C<d.length;C++){E=d[C],E.origType.replace(am,"")===J.type?u.push(E.selector):d.splice(C--,1);}F=aL(J.target).closest(u,J.currentTarget);for(B=0,A=F.length;B<A;B++){y=F[B];for(C=0;C<d.length;C++){E=d[C];if(y.selector===E.selector&&(!x||x.test(E.namespace))&&!y.elem.disabled){D=y.elem,G=null;if(E.preType==="mouseenter"||E.preType==="mouseleave"){J.type=E.preType,G=aL(J.relatedTarget).closest(E.selector)[0];}(!G||G!==D)&&v.push({elem:D,handleObj:E,level:y.level});}}}for(B=0,A=v.length;B<A;B++){F=v[B];if(H&&F.level>H){break;}J.currentTarget=F.elem,J.data=F.handleObj.data,J.handleObj=F.handleObj,w=F.handleObj.origHandler.apply(F.elem,arguments);if(w===!1||J.isPropagationStopped()){H=F.level,w===!1&&(I=!1);if(J.isImmediatePropagationStopped()){break;}}}return I;}}function cA(b,h,g){var d=aL.extend({},g[0]);d.type=b,d.originalEvent={},d.liveFired=aP,aL.event.handle.call(h,d),d.isDefaultPrevented()&&g[0].preventDefault();}function ab(){return !0;}function ac(){return !1;}function aB(d){for(var c in d){if(c!=="toJSON"){return !1;}}return !0;}function aD(b,h,g){if(g===aP&&b.nodeType===1){g=b.getAttribute("data-"+h);if(typeof g==="string"){try{g=g==="true"?!0:g==="false"?!1:g==="null"?null:aL.isNaN(g)?aF.test(g)?aL.parseJSON(g):g:parseFloat(g);}catch(d){}aL.data(b,h,g);}else{g=aP;}}return g;}var aN=aR.document,aL=function(){function J(){if(!bh.isReady){try{aN.documentElement.doScroll("left");}catch(d){setTimeout(J,1);return;}bh.ready();}}var bh=function(e,d){return new bh.fn.init(e,d,be);},bg=aR.jQuery,bf=aR.$,be,bd=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bc=/\S/,bb=/^\s+/,ba=/\s+$/,Z=/\d/,Y=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,X=/^[\],:{}\s]*$/,W=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,V=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,T=/(?:^|:|,)(?:\s*\[)+/g,R=/(webkit)[ \/]([\w.]+)/,P=/(opera)(?:.*version)?[ \/]([\w.]+)/,N=/(msie) ([\w.]+)/,L=/(mozilla)(?:.*? rv:([\w.]+))?/,I=navigator.userAgent,H,c,b,a=Object.prototype.toString,U=Object.prototype.hasOwnProperty,S=Array.prototype.push,Q=Array.prototype.slice,O=String.prototype.trim,M=Array.prototype.indexOf,K={};bh.fn=bh.prototype={constructor:bh,init:function(d,q,p){var o,n,m,h;if(!d){return this;}if(d.nodeType){this.context=this[0]=d,this.length=1;return this;}if(d==="body"&&!q&&aN.body){this.context=aN,this[0]=aN.body,this.selector="body",this.length=1;return this;}if(typeof d==="string"){o=bd.exec(d);if(!o||!o[1]&&q){return !q||q.jquery?(q||p).find(d):this.constructor(q).find(d);}if(o[1]){q=q instanceof bh?q[0]:q,h=q?q.ownerDocument||q:aN,m=Y.exec(d),m?bh.isPlainObject(q)?(d=[aN.createElement(m[1])],bh.fn.attr.call(d,q,!0)):d=[h.createElement(m[1])]:(m=bh.buildFragment([o[1]],[h]),d=(m.cacheable?bh.clone(m.fragment):m.fragment).childNodes);return bh.merge(this,d);}n=aN.getElementById(o[2]);if(n&&n.parentNode){if(n.id!==o[2]){return p.find(d);}this.length=1,this[0]=n;}this.context=aN,this.selector=d;return this;}if(bh.isFunction(d)){return p.ready(d);}d.selector!==aP&&(this.selector=d.selector,this.context=d.context);return bh.makeArray(d,this);},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length;},toArray:function(){return Q.call(this,0);},get:function(d){return d==null?this.toArray():d<0?this[this.length+d]:this[d];},pushStack:function(g,d,i){var h=this.constructor();bh.isArray(g)?S.apply(h,g):bh.merge(h,g),h.prevObject=this,h.context=this.context,d==="find"?h.selector=this.selector+(this.selector?" ":"")+i:d&&(h.selector=this.selector+"."+d+"("+i+")");return h;},each:function(e,d){return bh.each(this,e,d);},ready:function(d){bh.bindReady(),c.done(d);return this;},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","));},map:function(d){return this.pushStack(bh.map(this,function(e,g){return d.call(e,g,e);}));},end:function(){return this.prevObject||this.constructor(null);},push:S,sort:[].sort,splice:[].splice},bh.fn.init.prototype=bh.fn,bh.extend=bh.fn.extend=function(){var v,u,s,r,q,p,o=arguments[0]||{},n=1,m=arguments.length,d=!1;typeof o==="boolean"&&(d=o,o=arguments[1]||{},n=2),typeof o!=="object"&&!bh.isFunction(o)&&(o={}),m===n&&(o=this,--n);for(;n<m;n++){if((v=arguments[n])!=null){for(u in v){s=o[u],r=v[u];if(o===r){continue;}d&&r&&(bh.isPlainObject(r)||(q=bh.isArray(r)))?(q?(q=!1,p=s&&bh.isArray(s)?s:[]):p=s&&bh.isPlainObject(s)?s:{},o[u]=bh.extend(d,p,r)):r!==aP&&(o[u]=r);}}}return o;},bh.extend({noConflict:function(d){aR.$=bf,d&&(aR.jQuery=bg);return bh;},isReady:!1,readyWait:1,ready:function(d){d===!0&&bh.readyWait--;if(!bh.readyWait||d!==!0&&!bh.isReady){if(!aN.body){return setTimeout(bh.ready,1);}bh.isReady=!0;if(d!==!0&&--bh.readyWait>0){return;}c.resolveWith(aN,[bh]),bh.fn.trigger&&bh(aN).trigger("ready").unbind("ready");}},bindReady:function(){if(!c){c=bh._Deferred();if(aN.readyState==="complete"){return setTimeout(bh.ready,1);}if(aN.addEventListener){aN.addEventListener("DOMContentLoaded",b,!1),aR.addEventListener("load",bh.ready,!1);}else{if(aN.attachEvent){aN.attachEvent("onreadystatechange",b),aR.attachEvent("onload",bh.ready);var d=!1;try{d=aR.frameElement==null;}catch(g){}aN.documentElement.doScroll&&d&&J();}}}},isFunction:function(d){return bh.type(d)==="function";},isArray:Array.isArray||function(d){return bh.type(d)==="array";},isWindow:function(d){return d&&typeof d==="object"&&"setInterval" in d;},isNaN:function(d){return d==null||!Z.test(d)||isNaN(d);},type:function(d){return d==null?String(d):K[a.call(d)]||"object";},isPlainObject:function(d){if(!d||bh.type(d)!=="object"||d.nodeType||bh.isWindow(d)){return !1;}if(d.constructor&&!U.call(d,"constructor")&&!U.call(d.constructor.prototype,"isPrototypeOf")){return !1;}var e;for(e in d){}return e===aP||U.call(d,e);},isEmptyObject:function(e){for(var d in e){return !1;}return !0;},error:function(d){throw d;},parseJSON:function(d){if(typeof d!=="string"||!d){return null;}d=bh.trim(d);if(X.test(d.replace(W,"@").replace(V,"]").replace(T,""))){return aR.JSON&&aR.JSON.parse?aR.JSON.parse(d):(new Function("return "+d))();}bh.error("Invalid JSON: "+d);},parseXML:function(d,h,g){aR.DOMParser?(g=new DOMParser,h=g.parseFromString(d,"text/xml")):(h=new ActiveXObject("Microsoft.XMLDOM"),h.async="false",h.loadXML(d)),g=h.documentElement,(!g||!g.nodeName||g.nodeName==="parsererror")&&bh.error("Invalid XML: "+d);return h;},noop:function(){},globalEval:function(g){if(g&&bc.test(g)){var d=aN.head||aN.getElementsByTagName("head")[0]||aN.documentElement,h=aN.createElement("script");bh.support.scriptEval()?h.appendChild(aN.createTextNode(g)):h.text=g,d.insertBefore(h,d.firstChild),d.removeChild(h);}},nodeName:function(e,d){return e.nodeName&&e.nodeName.toUpperCase()===d.toUpperCase();},each:function(d,s,r){var q,p=0,o=d.length,n=o===aP||bh.isFunction(d);if(r){if(n){for(q in d){if(s.apply(d[q],r)===!1){break;}}}else{for(;p<o;){if(s.apply(d[p++],r)===!1){break;}}}}else{if(n){for(q in d){if(s.call(d[q],q,d[q])===!1){break;}}}else{for(var m=d[0];p<o&&s.call(m,p,m)!==!1;m=d[++p]){}}}return d;},trim:O?function(d){return d==null?"":O.call(d);}:function(d){return d==null?"":(d+"").replace(bb,"").replace(ba,"");},makeArray:function(g,d){var i=d||[];if(g!=null){var h=bh.type(g);g.length==null||h==="string"||h==="function"||h==="regexp"||bh.isWindow(g)?S.call(i,g):bh.merge(i,g);}return i;},inArray:function(g,e){if(e.indexOf){return e.indexOf(g);}for(var i=0,h=e.length;i<h;i++){if(e[i]===g){return i;}}return -1;},merge:function(g,m){var j=g.length,i=0;if(typeof m.length==="number"){for(var h=m.length;i<h;i++){g[j++]=m[i];}}else{while(m[i]!==aP){g[j++]=m[i++];}}g.length=j;return g;},grep:function(i,h,p){var o=[],n;p=!!p;for(var m=0,j=i.length;m<j;m++){n=!!h(i[m],m),p!==n&&o.push(i[m]);}return o;},map:function(i,h,p){var o=[],n;for(var m=0,j=i.length;m<j;m++){n=h(i[m],m,p),n!=null&&(o[o.length]=n);}return o.concat.apply([],o);},guid:1,proxy:function(d,h,g){arguments.length===2&&(typeof h==="string"?(g=d,d=g[h],h=aP):h&&!bh.isFunction(h)&&(g=h,h=aP)),!h&&d&&(h=function(){return d.apply(g||this,arguments);}),d&&(h.guid=d.guid=d.guid||h.guid||bh.guid++);return h;},access:function(u,s,r,q,p,o){var n=u.length;if(typeof s==="object"){for(var m in s){bh.access(u,m,s[m],q,p,r);}return u;}if(r!==aP){q=!o&&q&&bh.isFunction(r);for(var d=0;d<n;d++){p(u[d],s,q?r.call(u[d],d,p(u[d],s)):r,o);}return u;}return n?p(u[0],s):aP;},now:function(){return(new Date).getTime();},uaMatch:function(e){e=e.toLowerCase();var d=R.exec(e)||P.exec(e)||N.exec(e)||e.indexOf("compatible")<0&&L.exec(e)||[];return{browser:d[1]||"",version:d[2]||"0"};},sub:function(){function g(e,i){return new g.fn.init(e,i);}bh.extend(!0,g,this),g.superclass=this,g.fn=g.prototype=this(),g.fn.constructor=g,g.subclass=this.subclass,g.fn.init=function d(e,i){i&&i instanceof bh&&!(i instanceof g)&&(i=g(i));return bh.fn.init.call(this,e,i,h);},g.fn.init.prototype=g.fn;var h=g(aN);return g;},browser:{}}),bh.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,d){K["[object "+d+"]"]=d.toLowerCase();}),H=bh.uaMatch(I),H.browser&&(bh.browser[H.browser]=!0,bh.browser.version=H.version),bh.browser.webkit&&(bh.browser.safari=!0),M&&(bh.inArray=function(e,d){return M.call(d,e);}),bc.test(" ")&&(bb=/^[\s\xA0]+/,ba=/[\s\xA0]+$/),be=bh(aN),aN.addEventListener?b=function(){aN.removeEventListener("DOMContentLoaded",b,!1),bh.ready();}:aN.attachEvent&&(b=function(){aN.readyState==="complete"&&(aN.detachEvent("onreadystatechange",b),bh.ready());});return bh;}(),aJ="then done fail isResolved isRejected promise".split(" "),aH=[].slice;aL.extend({_Deferred:function(){var g=[],d,j,i,h={done:function(){if(!i){var o=arguments,n,m,e,b,a;d&&(a=d,d=0);for(n=0,m=o.length;n<m;n++){e=o[n],b=aL.type(e),b==="array"?h.done.apply(h,e):b==="function"&&g.push(e);}a&&h.resolveWith(a[0],a[1]);}return this;},resolveWith:function(b,a){if(!i&&!d&&!j){a=a||[],j=1;try{while(g[0]){g.shift().apply(b,a);}}finally{d=[b,a],j=0;}}return this;},resolve:function(){h.resolveWith(this,arguments);return this;},isResolved:function(){return j||d;},cancel:function(){i=1,g=[];return this;}};return h;},Deferred:function(e){var d=aL._Deferred(),h=aL._Deferred(),g;aL.extend(d,{then:function(b,i){d.done(b).fail(i);return this;},fail:h.done,rejectWith:h.resolveWith,reject:h.resolve,isRejected:h.isResolved,promise:function(b){if(b==null){if(g){return g;}g=b={};}var i=aJ.length;while(i--){b[aJ[i]]=d[aJ[i]];}return b;}}),d.done(h.cancel).fail(d.cancel),delete d.cancel,e&&e.call(d,d);return d;},when:function(j){function m(b){return function(a){d[b]=arguments.length>1?aH.call(arguments,0):a,--o||n.resolveWith(n,aH.call(d,0));};}var d=arguments,q=0,p=d.length,o=p,n=p<=1&&j&&aL.isFunction(j.promise)?j:aL.Deferred();if(p>1){for(;q<p;q++){d[q]&&aL.isFunction(d[q].promise)?d[q].promise().then(m(q),n.reject):--o;}o||n.resolveWith(n,d);}else{n!==j&&n.resolveWith(n,p?[j]:[]);}return n.promise();}}),function(){aL.support={};var w=aN.createElement("div");w.style.display="none",w.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var v=w.getElementsByTagName("*"),u=w.getElementsByTagName("a")[0],s=aN.createElement("select"),r=s.appendChild(aN.createElement("option")),q=w.getElementsByTagName("input")[0];if(v&&v.length&&u){aL.support={leadingWhitespace:w.firstChild.nodeType===3,tbody:!w.getElementsByTagName("tbody").length,htmlSerialize:!!w.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:q.value==="on",optSelected:r.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},q.checked=!0,aL.support.noCloneChecked=q.cloneNode(!0).checked,s.disabled=!0,aL.support.optDisabled=!r.disabled;var p=null;aL.support.scriptEval=function(){if(p===null){var h=aN.documentElement,m=aN.createElement("script"),j="script"+aL.now();try{m.appendChild(aN.createTextNode("window."+j+"=1;"));}catch(i){}h.insertBefore(m,h.firstChild),aR[j]?(p=!0,delete aR[j]):p=!1,h.removeChild(m);}return p;};try{delete w.test;}catch(o){aL.support.deleteExpando=!1;}!w.addEventListener&&w.attachEvent&&w.fireEvent&&(w.attachEvent("onclick",function d(){aL.support.noCloneEvent=!1,w.detachEvent("onclick",d);}),w.cloneNode(!0).fireEvent("onclick")),w=aN.createElement("div"),w.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var c=aN.createDocumentFragment();c.appendChild(w.firstChild),aL.support.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,aL(function(){var h=aN.createElement("div"),g=aN.getElementsByTagName("body")[0];if(g){h.style.width=h.style.paddingLeft="1px",g.appendChild(h),aL.boxModel=aL.support.boxModel=h.offsetWidth===2,"zoom" in h.style&&(h.style.display="inline",h.style.zoom=1,aL.support.inlineBlockNeedsLayout=h.offsetWidth===2,h.style.display="",h.innerHTML="<div style='width:4px;'></div>",aL.support.shrinkWrapBlocks=h.offsetWidth!==2),h.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var i=h.getElementsByTagName("td");aL.support.reliableHiddenOffsets=i[0].offsetHeight===0,i[0].style.display="",i[1].style.display="none",aL.support.reliableHiddenOffsets=aL.support.reliableHiddenOffsets&&i[0].offsetHeight===0,h.innerHTML="",aN.defaultView&&aN.defaultView.getComputedStyle&&(h.style.width="1px",h.style.marginRight="0",aL.support.reliableMarginRight=(parseInt(aN.defaultView.getComputedStyle(h,null).marginRight,10)||0)===0),g.removeChild(h).style.display="none",h=i=null;}});var a=function(g){var e=aN.createElement("div");g="on"+g;if(!e.attachEvent){return !0;}var h=g in e;h||(e.setAttribute(g,"return;"),h=typeof e[g]==="function");return h;};aL.support.submitBubbles=a("submit"),aL.support.changeBubbles=a("change"),w=v=u=null;}}();var aF=/^(?:\{.*\}|\[.*\])$/;aL.extend({cache:{},uuid:0,expando:"jQuery"+(aL.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?aL.cache[b[aL.expando]]:b[aL.expando];return !!b&&!aB(b);},data:function(u,s,r,q){if(aL.acceptData(u)){var p=aL.expando,o=typeof s==="string",n,m=u.nodeType,d=m?aL.cache:u,b=m?u[aL.expando]:u[aL.expando]&&aL.expando;if((!b||q&&b&&!d[b][p])&&o&&r===aP){return;}b||(m?u[aL.expando]=b=++aL.uuid:b=aL.expando),d[b]||(d[b]={},m||(d[b].toJSON=aL.noop));if(typeof s==="object"||typeof s==="function"){q?d[b][p]=aL.extend(d[b][p],s):d[b]=aL.extend(d[b],s);}n=d[b],q&&(n[p]||(n[p]={}),n=n[p]),r!==aP&&(n[s]=r);if(s==="events"&&!n[s]){return n[p]&&n[p].events;}return o?n[s]:n;}},removeData:function(r,q,p){if(aL.acceptData(r)){var o=aL.expando,n=r.nodeType,m=n?aL.cache:r,i=n?r[aL.expando]:aL.expando;if(!m[i]){return;}if(q){var d=p?m[i][o]:m[i];if(d){delete d[q];if(!aB(d)){return;}}}if(p){delete m[i][o];if(!aB(m[i])){return;}}var a=m[i][o];aL.support.deleteExpando||m!=aR?delete m[i]:m[i]=null,a?(m[i]={},n||(m[i].toJSON=aL.noop),m[i][o]=a):n&&(aL.support.deleteExpando?delete r[aL.expando]:r.removeAttribute?r.removeAttribute(aL.expando):r[aL.expando]=null);}},_data:function(e,d,g){return aL.data(e,d,g,!0);},acceptData:function(d){if(d.nodeName){var c=aL.noData[d.nodeName.toLowerCase()];if(c){return c!==!0&&d.getAttribute("classid")===c;}}return !0;}}),aL.fn.extend({data:function(b,q){var p=null;if(typeof b==="undefined"){if(this.length){p=aL.data(this[0]);if(this[0].nodeType===1){var o=this[0].attributes,n;for(var m=0,h=o.length;m<h;m++){n=o[m].name,n.indexOf("data-")===0&&(n=n.substr(5),aD(this[0],n,p[n]));}}}return p;}if(typeof b==="object"){return this.each(function(){aL.data(this,b);});}var d=b.split(".");d[1]=d[1]?"."+d[1]:"";if(q===aP){p=this.triggerHandler("getData"+d[1]+"!",[d[0]]),p===aP&&this.length&&(p=aL.data(this[0],b),p=aD(this[0],b,p));return p===aP&&d[1]?this.data(d[0]):p;}return this.each(function(){var a=aL(this),c=[d[0],q];a.triggerHandler("setData"+d[1]+"!",c),aL.data(this,b,q),a.triggerHandler("changeData"+d[1]+"!",c);});},removeData:function(b){return this.each(function(){aL.removeData(this,b);});}}),aL.extend({queue:function(g,d,i){if(g){d=(d||"fx")+"queue";var h=aL._data(g,d);if(!i){return h||[];}!h||aL.isArray(i)?h=aL._data(g,d,aL.makeArray(i)):h.push(i);return h;}},dequeue:function(g,d){d=d||"fx";var i=aL.queue(g,d),h=i.shift();h==="inprogress"&&(h=i.shift()),h&&(d==="fx"&&i.unshift("inprogress"),h.call(g,function(){aL.dequeue(g,d);})),i.length||aL.removeData(g,d+"queue",!0);}}),aL.fn.extend({queue:function(b,d){typeof b!=="string"&&(d=b,b="fx");if(d===aP){return aL.queue(this[0],b);}return this.each(function(a){var c=aL.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&aL.dequeue(this,b);});},dequeue:function(b){return this.each(function(){aL.dequeue(this,b);});},delay:function(d,c){d=aL.fx?aL.fx.speeds[d]||d:d,c=c||"fx";return this.queue(c,function(){var a=this;setTimeout(function(){aL.dequeue(a,c);},d);});},clearQueue:function(b){return this.queue(b||"fx",[]);}});var aA=/[\n\t\r]/g,az=/\s+/,ay=/\r/g,ax=/^(?:href|src|style)$/,aw=/^(?:button|input)$/i,au=/^(?:button|input|object|select|textarea)$/i,ar=/^a(?:rea)?$/i,ap=/^(?:radio|checkbox)$/i;aL.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},aL.fn.extend({attr:function(d,c){return aL.access(this,d,c,!0,aL.attr);},removeAttr:function(d,c){return this.each(function(){aL.attr(this,d,""),this.nodeType===1&&this.removeAttribute(d);});},addClass:function(u){if(aL.isFunction(u)){return this.each(function(a){var e=aL(this);e.addClass(u.call(this,a,e.attr("class")));});}if(u&&typeof u==="string"){var s=(u||"").split(az);for(var r=0,q=this.length;r<q;r++){var p=this[r];if(p.nodeType===1){if(p.className){var o=" "+p.className+" ",n=p.className;for(var m=0,d=s.length;m<d;m++){o.indexOf(" "+s[m]+" ")<0&&(n+=" "+s[m]);}p.className=aL.trim(n);}else{p.className=u;}}}}return this;},removeClass:function(d){if(aL.isFunction(d)){return this.each(function(a){var e=aL(this);e.removeClass(d.call(this,a,e.attr("class")));});}if(d&&typeof d==="string"||d===aP){var q=(d||"").split(az);for(var p=0,o=this.length;p<o;p++){var n=this[p];if(n.nodeType===1&&n.className){if(d){var m=(" "+n.className+" ").replace(aA," ");for(var j=0,b=q.length;j<b;j++){m=m.replace(" "+q[j]+" "," ");}n.className=aL.trim(m);}else{n.className="";}}}}return this;},toggleClass:function(g,d){var i=typeof g,h=typeof d==="boolean";if(aL.isFunction(g)){return this.each(function(b){var a=aL(this);a.toggleClass(g.call(this,b,a.attr("class"),d),d);});}return this.each(function(){if(i==="string"){var m,e=0,c=aL(this),b=d,a=g.split(az);while(m=a[e++]){b=h?b:!c.hasClass(m),c[b?"addClass":"removeClass"](m);}}else{if(i==="undefined"||i==="boolean"){this.className&&aL._data(this,"__className__",this.className),this.className=this.className||g===!1?"":aL._data(this,"__className__")||"";}}});},hasClass:function(g){var e=" "+g+" ";for(var i=0,h=this.length;i<h;i++){if((" "+this[i].className+" ").replace(aA," ").indexOf(e)>-1){return !0;}}return !1;},val:function(x){if(!arguments.length){var w=this[0];if(w){if(aL.nodeName(w,"option")){var v=w.attributes.value;return !v||v.specified?w.value:w.text;}if(aL.nodeName(w,"select")){var u=w.selectedIndex,s=[],r=w.options,q=w.type==="select-one";if(u<0){return null;}for(var p=q?u:0,o=q?u+1:r.length;p<o;p++){var d=r[p];if(d.selected&&(aL.support.optDisabled?!d.disabled:d.getAttribute("disabled")===null)&&(!d.parentNode.disabled||!aL.nodeName(d.parentNode,"optgroup"))){x=aL(d).val();if(q){return x;}s.push(x);}}if(q&&!s.length&&r.length){return aL(r[u]).val();}return s;}if(ap.test(w.type)&&!aL.support.checkOn){return w.getAttribute("value")===null?"on":w.value;}return(w.value||"").replace(ay,"");}return aP;}var b=aL.isFunction(x);return this.each(function(a){var i=aL(this),h=x;if(this.nodeType===1){b&&(h=x.call(this,a,i.val())),h==null?h="":typeof h==="number"?h+="":aL.isArray(h)&&(h=aL.map(h,function(c){return c==null?"":c+"";}));if(aL.isArray(h)&&ap.test(this.type)){this.checked=aL.inArray(i.val(),h)>=0;}else{if(aL.nodeName(this,"select")){var g=aL.makeArray(h);aL("option",this).each(function(){this.selected=aL.inArray(aL(this).val(),g)>=0;}),g.length||(this.selectedIndex=-1);}else{this.value=h;}}}});}}),aL.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(u,s,r,q){if(!u||u.nodeType===3||u.nodeType===8||u.nodeType===2){return aP;}if(q&&s in aL.attrFn){return aL(u)[s](r);}var p=u.nodeType!==1||!aL.isXMLDoc(u),o=r!==aP;s=p&&aL.props[s]||s;if(u.nodeType===1){var n=ax.test(s);if(s==="selected"&&!aL.support.optSelected){var m=u.parentNode;m&&(m.selectedIndex,m.parentNode&&m.parentNode.selectedIndex);}if((s in u||u[s]!==aP)&&p&&!n){o&&(s==="type"&&aw.test(u.nodeName)&&u.parentNode&&aL.error("type property can't be changed"),r===null?u.nodeType===1&&u.removeAttribute(s):u[s]=r);if(aL.nodeName(u,"form")&&u.getAttributeNode(s)){return u.getAttributeNode(s).nodeValue;}if(s==="tabIndex"){var d=u.getAttributeNode("tabIndex");return d&&d.specified?d.value:au.test(u.nodeName)||ar.test(u.nodeName)&&u.href?0:aP;}return u[s];}if(!aL.support.style&&p&&s==="style"){o&&(u.style.cssText=""+r);return u.style.cssText;}o&&u.setAttribute(s,""+r);if(!u.attributes[s]&&(u.hasAttribute&&!u.hasAttribute(s))){return aP;}var b=!aL.support.hrefNormalized&&p&&n?u.getAttribute(s,2):u.getAttribute(s);return b===null?aP:b;}o&&(u[s]=r);return u[s];}});var am=/\.(.*)$/,ak=/^(?:textarea|input|select)$/i,aj=/\./g,ah=/ /g,ae=/[^\w\s.|`]/g,ad=function(b){return b.replace(ae,"\\$&");};aL.event={add:function(E,D,C,B){if(E.nodeType!==3&&E.nodeType!==8){try{aL.isWindow(E)&&(E!==aR&&!E.frameElement)&&(E=aR);}catch(A){}if(C===!1){C=ac;}else{if(!C){return;}}var z,y;C.handler&&(z=C,C=z.handler),C.guid||(C.guid=aL.guid++);var x=aL._data(E);if(!x){return;}var w=x.events,v=x.handle;w||(x.events=w={}),v||(x.handle=v=function(c){return typeof aL!=="undefined"&&aL.event.triggered!==c.type?aL.event.handle.apply(v.elem,arguments):aP;}),v.elem=E,D=D.split(" ");var u,s=0,d;while(u=D[s++]){y=z?aL.extend({},z):{handler:C,data:B},u.indexOf(".")>-1?(d=u.split("."),u=d.shift(),y.namespace=d.slice(0).sort().join(".")):(d=[],y.namespace=""),y.type=u,y.guid||(y.guid=C.guid);var b=w[u],a=aL.event.special[u]||{};if(!b){b=w[u]=[];if(!a.setup||a.setup.call(E,B,d,v)===!1){E.addEventListener?E.addEventListener(u,v,!1):E.attachEvent&&E.attachEvent("on"+u,v);}}a.add&&(a.add.call(E,y),y.handler.guid||(y.handler.guid=C.guid)),b.push(y),aL.event.global[u]=!0;}E=null;}},global:{},remove:function(L,K,J,I){if(L.nodeType!==3&&L.nodeType!==8){J===!1&&(J=ac);var H,G,F,E,D=0,C,B,A,z,y,x,w,v=aL.hasData(L)&&aL._data(L),d=v&&v.events;if(!v||!d){return;}K&&K.type&&(J=K.handler,K=K.type);if(!K||typeof K==="string"&&K.charAt(0)==="."){K=K||"";for(G in d){aL.event.remove(L,G+K);}return;}K=K.split(" ");while(G=K[D++]){w=G,x=null,C=G.indexOf(".")<0,B=[],C||(B=G.split("."),G=B.shift(),A=new RegExp("(^|\\.)"+aL.map(B.slice(0).sort(),ad).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=d[G];if(!y){continue;}if(!J){for(E=0;E<y.length;E++){x=y[E];if(C||A.test(x.namespace)){aL.event.remove(L,w,x.handler,E),y.splice(E--,1);}}continue;}z=aL.event.special[G]||{};for(E=I||0;E<y.length;E++){x=y[E];if(J.guid===x.guid){if(C||A.test(x.namespace)){I==null&&y.splice(E--,1),z.remove&&z.remove.call(L,x);}if(I!=null){break;}}}if(y.length===0||I!=null&&y.length===1){(!z.teardown||z.teardown.call(L,B)===!1)&&aL.removeEvent(L,G,v.handle),H=null,delete d[G];}}if(aL.isEmptyObject(d)){var b=v.handle;b&&(b.elem=null),delete v.events,delete v.handle,aL.isEmptyObject(v)&&aL.removeData(L,aP,!0);}}},trigger:function(C,B,A){var z=C.type||C,y=arguments[3];if(!y){C=typeof C==="object"?C[aL.expando]?C:aL.extend(aL.Event(z),C):aL.Event(z),z.indexOf("!")>=0&&(C.type=z=z.slice(0,-1),C.exclusive=!0),A||(C.stopPropagation(),aL.event.global[z]&&aL.each(aL.cache,function(){var a=aL.expando,c=this[a];c&&c.events&&c.events[z]&&aL.event.trigger(C,B,c.handle.elem);}));if(!A||A.nodeType===3||A.nodeType===8){return aP;}C.result=aP,C.target=A,B=aL.makeArray(B),B.unshift(C);}C.currentTarget=A;var x=aL._data(A,"handle");x&&x.apply(A,B);var w=A.parentNode||A.ownerDocument;try{A&&A.nodeName&&aL.noData[A.nodeName.toLowerCase()]||A["on"+z]&&A["on"+z].apply(A,B)===!1&&(C.result=!1,C.preventDefault());}catch(v){}if(!C.isPropagationStopped()&&w){aL.event.trigger(C,B,w,!0);}else{if(!C.isDefaultPrevented()){var u,s=C.target,r=z.replace(am,""),q=aL.nodeName(s,"a")&&r==="click",d=aL.event.special[r]||{};if((!d._default||d._default.call(A,C)===!1)&&!q&&!(s&&s.nodeName&&aL.noData[s.nodeName.toLowerCase()])){try{s[r]&&(u=s["on"+r],u&&(s["on"+r]=null),aL.event.triggered=C.type,s[r]());}catch(b){}u&&(s["on"+r]=u),aL.event.triggered=aP;}}}},handle:function(y){var x,w,v,u,s,r=[],q=aL.makeArray(arguments);y=q[0]=aL.event.fix(y||aR.event),y.currentTarget=this,x=y.type.indexOf(".")<0&&!y.exclusive,x||(v=y.type.split("."),y.type=v.shift(),r=v.slice(0).sort(),u=new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+"(\\.|$)")),y.namespace=y.namespace||r.join("."),s=aL._data(this,"events"),w=(s||{})[y.type];if(s&&w){w=w.slice(0);for(var p=0,d=w.length;p<d;p++){var b=w[p];if(x||u.test(b.namespace)){y.handler=b.handler,y.data=b.data,y.handleObj=b;var a=b.handler.apply(this,q);a!==aP&&(y.result=a,a===!1&&(y.preventDefault(),y.stopPropagation()));if(y.isImmediatePropagationStopped()){break;}}}}return y.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(b){if(b[aL.expando]){return b;}var n=b;b=aL.Event(n);for(var m=this.props.length,j;m;){j=this.props[--m],b[j]=n[j];}b.target||(b.target=b.srcElement||aN),b.target.nodeType===3&&(b.target=b.target.parentNode),!b.relatedTarget&&b.fromElement&&(b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement);if(b.pageX==null&&b.clientX!=null){var d=aN.documentElement,c=aN.body;b.pageX=b.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),b.pageY=b.clientY+(d&&d.scrollTop||c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0);}b.which==null&&(b.charCode!=null||b.keyCode!=null)&&(b.which=b.charCode!=null?b.charCode:b.keyCode),!b.metaKey&&b.ctrlKey&&(b.metaKey=b.ctrlKey),!b.which&&b.button!==aP&&(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);return b;},guid:100000000,proxy:aL.proxy,special:{ready:{setup:aL.bindReady,teardown:aL.noop},live:{add:function(b){aL.event.add(this,ct(b.origType,b.selector),aL.extend({},b,{handler:cv,guid:b.handler.guid}));},remove:function(b){aL.event.remove(this,ct(b.origType,b.selector),b);}},beforeunload:{setup:function(e,d,g){aL.isWindow(this)&&(this.onbeforeunload=g);},teardown:function(d,c){this.onbeforeunload===c&&(this.onbeforeunload=null);}}}},aL.removeEvent=aN.removeEventListener?function(e,d,g){e.removeEventListener&&e.removeEventListener(d,g,!1);}:function(e,d,g){e.detachEvent&&e.detachEvent("on"+d,g);},aL.Event=function(b){if(!this.preventDefault){return new aL.Event(b);}b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||b.returnValue===!1||b.getPreventDefault&&b.getPreventDefault()?ab:ac):this.type=b,this.timeStamp=aL.now(),this[aL.expando]=!0;},aL.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ab;var b=this.originalEvent;b&&(b.preventDefault?b.preventDefault():b.returnValue=!1);},stopPropagation:function(){this.isPropagationStopped=ab;var b=this.originalEvent;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0);},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ab,this.stopPropagation();},isDefaultPrevented:ac,isPropagationStopped:ac,isImmediatePropagationStopped:ac};var aa=function(d){var c=d.relatedTarget;try{if(c&&c!==aN&&!c.parentNode){return;}while(c&&c!==this){c=c.parentNode;}c!==this&&(d.type=d.data,aL.event.handle.apply(this,arguments));}catch(g){}},cH=function(b){b.type=b.data,aL.event.handle.apply(this,arguments);};aL.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,c){aL.event.special[d]={setup:function(a){aL.event.add(this,c,a&&a.selector?cH:aa,d);},teardown:function(b){aL.event.remove(this,c,b&&b.selector?cH:aa);}};}),aL.support.submitBubbles||(aL.event.special.submit={setup:function(d,c){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){aL.event.add(this,"click.specialSubmit",function(g){var e=g.target,h=e.type;(h==="submit"||h==="image")&&aL(e).closest("form").length&&cA("submit",this,arguments);}),aL.event.add(this,"keypress.specialSubmit",function(g){var e=g.target,h=e.type;(h==="text"||h==="password")&&aL(e).closest("form").length&&g.keyCode===13&&cA("submit",this,arguments);});}else{return !1;}},teardown:function(b){aL.event.remove(this,".specialSubmit");}});if(!aL.support.changeBubbles){var cG,cE=function(e){var d=e.type,g=e.value;d==="radio"||d==="checkbox"?g=e.checked:d==="select-multiple"?g=e.selectedIndex>-1?aL.map(e.options,function(b){return b.selected;}).join("-"):"":e.nodeName.toLowerCase()==="select"&&(g=e.selectedIndex);return g;},cC=function cC(b){var h=b.target,g,d;if(ak.test(h.nodeName)&&!h.readOnly){g=aL._data(h,"_change_data"),d=cE(h),(b.type!=="focusout"||h.type!=="radio")&&aL._data(h,"_change_data",d);if(g===aP||d===g){return;}if(g!=null||d){b.type="change",b.liveFired=aP,aL.event.trigger(b,arguments[1],h);}}};aL.event.special.change={filters:{focusout:cC,beforedeactivate:cC,click:function(e){var d=e.target,g=d.type;(g==="radio"||g==="checkbox"||d.nodeName.toLowerCase()==="select")&&cC.call(this,e);},keydown:function(e){var d=e.target,g=d.type;(e.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(g==="checkbox"||g==="radio")||g==="select-multiple")&&cC.call(this,e);},beforeactivate:function(d){var c=d.target;aL._data(c,"_change_data",cE(c));}},setup:function(e,d){if(this.type==="file"){return !1;}for(var g in cG){aL.event.add(this,g+".specialChange",cG[g]);}return ak.test(this.nodeName);},teardown:function(b){aL.event.remove(this,".specialChange");return ak.test(this.nodeName);}},cG=aL.event.special.change.filters,cG.focus=cG.beforeactivate;}aN.addEventListener&&aL.each({focus:"focusin",blur:"focusout"},function(d,c){function g(b){var e=aL.event.fix(b);e.type=c,e.originalEvent={},aL.event.trigger(e,null,e.target),e.isDefaultPrevented()&&b.preventDefault();}var h=0;aL.event.special[c]={setup:function(){h++===0&&aN.addEventListener(d,g,!0);},teardown:function(){--h===0&&aN.removeEventListener(d,g,!0);}};}),aL.each(["bind","one"],function(b,d){aL.fn[d]=function(c,r,q){if(typeof c==="object"){for(var p in c){this[d](p,r,c[p],q);}return this;}if(aL.isFunction(r)||r===!1){q=r,r=aP;}var o=d==="one"?aL.proxy(q,function(e){aL(this).unbind(e,o);return q.apply(this,arguments);}):q;if(c==="unload"&&d!=="one"){this.one(c,r,q);}else{for(var n=0,m=this.length;n<m;n++){aL.event.add(this[n],c,o,r);}}return this;};}),aL.fn.extend({unbind:function(g,d){if(typeof g!=="object"||g.preventDefault){for(var i=0,h=this.length;i<h;i++){aL.event.remove(this[i],g,d);}}else{for(var j in g){this.unbind(j,g[j]);}}return this;},delegate:function(g,e,i,h){return this.live(e,i,h,g);},undelegate:function(e,d,g){return arguments.length===0?this.unbind("live"):this.die(d,null,g,e);},trigger:function(d,c){return this.each(function(){aL.event.trigger(d,c,this);});},triggerHandler:function(e,d){if(this[0]){var g=aL.Event(e);g.preventDefault(),g.stopPropagation(),aL.event.trigger(g,d,this[0]);return g.result;}},toggle:function(e){var d=arguments,g=1;while(g<d.length){aL.proxy(e,d[g++]);}return this.click(aL.proxy(e,function(b){var a=(aL._data(this,"lastToggle"+e.guid)||0)%g;aL._data(this,"lastToggle"+e.guid,a+1),b.preventDefault();return d[a].apply(this,arguments)||!1;}));},hover:function(d,c){return this.mouseenter(d).mouseleave(c||d);}});var cy={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};aL.each(["live","die"],function(b,d){aL.fn[d]=function(E,D,C,B){var A,z=0,y,x,w,v=B||this.selector,u=B?this:aL(this.context);if(typeof E==="object"&&!E.preventDefault){for(var s in E){u[d](s,D,E[s],v);}return this;}aL.isFunction(D)&&(C=D,D=aP),E=(E||"").split(" ");while((A=E[z++])!=null){y=am.exec(A),x="",y&&(x=y[0],A=A.replace(am,""));if(A==="hover"){E.push("mouseenter"+x,"mouseleave"+x);continue;}w=A,A==="focus"||A==="blur"?(E.push(cy[A]+x),A=A+x):A=(cy[A]||A)+x;if(d==="live"){for(var r=0,c=u.length;r<c;r++){aL.event.add(u[r],"live."+ct(A,v),{data:D,selector:v,handler:C,origType:A,origHandler:C,preType:w});}}else{u.unbind("live."+ct(A,v),C);}}return this;};}),aL.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(d,c){aL.fn[c]=function(b,e){e==null&&(e=b,b=null);return arguments.length>0?this.bind(c,b,e):this.trigger(c);},aL.attrFn&&(aL.attrFn[c]=!0);}),function(){function c(M,v,u,s,r,q){for(var p=0,o=s.length;p<o;p++){var n=s[p];if(n){var m=!1;n=n[M];while(n){if(n.sizcache===u){m=s[n.sizset];break;}if(n.nodeType===1){q||(n.sizcache=u,n.sizset=p);if(typeof v!=="string"){if(n===v){m=!0;break;}}else{if(E.filter(v,[n]).length>0){m=n;break;}}}n=n[M];}s[p]=m;}}}function d(M,v,u,s,r,q){for(var p=0,o=s.length;p<o;p++){var n=s[p];if(n){var m=!1;n=n[M];while(n){if(n.sizcache===u){m=s[n.sizset];break;}n.nodeType===1&&!q&&(n.sizcache=u,n.sizset=p);if(n.nodeName.toLowerCase()===v){m=n;break;}n=n[M];}s[p]=m;}}}var L=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,K=0,J=Object.prototype.toString,I=!1,H=!0,G=/\\/g,F=/\W/;[0,0].sort(function(){H=!1;return 0;});var E=function(T,R,Q,P){Q=Q||[],R=R||aN;var O=R;if(R.nodeType!==1&&R.nodeType!==9){return[];}if(!T||typeof T!=="string"){return Q;}var N,M,v,p,m,a,Y,X,W=!0,V=E.isXML(R),U=[],S=T;do{L.exec(""),N=L.exec(S);if(N){S=N[3],U.push(N[1]);if(N[2]){p=N[3];break;}}}while(N);if(U.length>1&&C.exec(T)){if(U.length===2&&D.relative[U[0]]){M=b(U[0]+U[1],R);}else{M=D.relative[U[0]]?[R]:E(U.shift(),R);while(U.length){T=U.shift(),D.relative[T]&&(T+=U.shift()),M=b(T,M);}}}else{!P&&U.length>1&&R.nodeType===9&&!V&&D.match.ID.test(U[0])&&!D.match.ID.test(U[U.length-1])&&(m=E.find(U.shift(),R,V),R=m.expr?E.filter(m.expr,m.set)[0]:m.set[0]);if(R){m=P?{expr:U.pop(),set:z(P)}:E.find(U.pop(),U.length===1&&(U[0]==="~"||U[0]==="+")&&R.parentNode?R.parentNode:R,V),M=m.expr?E.filter(m.expr,m.set):m.set,U.length>0?v=z(M):W=!1;while(U.length){a=U.pop(),Y=a,D.relative[a]?Y=U.pop():a="",Y==null&&(Y=R),D.relative[a](v,Y,V);}}else{v=U=[];}}v||(v=M),v||E.error(a||T);if(J.call(v)==="[object Array]"){if(W){if(R&&R.nodeType===1){for(X=0;v[X]!=null;X++){v[X]&&(v[X]===!0||v[X].nodeType===1&&E.contains(R,v[X]))&&Q.push(M[X]);}}else{for(X=0;v[X]!=null;X++){v[X]&&v[X].nodeType===1&&Q.push(M[X]);}}}else{Q.push.apply(Q,v);}}else{z(v,Q);}p&&(E(p,O,Q,P),E.uniqueSort(Q));return Q;};E.uniqueSort=function(g){if(x){I=H,g.sort(x);if(I){for(var e=1;e<g.length;e++){g[e]===g[e-1]&&g.splice(e--,1);}}}return g;},E.matches=function(g,e){return E(g,null,null,e);},E.matchesSelector=function(g,e){return E(e,null,null,[g]).length>0;},E.find=function(u,s,r){var q;if(!u){return[];}for(var p=0,o=D.order.length;p<o;p++){var n,m=D.order[p];if(n=D.leftMatch[m].exec(u)){var i=n[1];n.splice(1,1);if(i.substr(i.length-1)!=="\\"){n[1]=(n[1]||"").replace(G,""),q=D.find[m](n,s,r);if(q!=null){u=u.replace(D.match[m],"");break;}}}}q||(q=typeof s.getElementsByTagName!=="undefined"?s.getElementsByTagName("*"):[]);return{set:q,expr:u};},E.filter=function(Y,X,W,V){var U,T,S=Y,R=[],Q=X,P=X&&X[0]&&E.isXML(X[0]);while(Y&&X.length){for(var O in D.filter){if((U=D.leftMatch[O].exec(Y))!=null&&U[2]){var N,M,v=D.filter[O],u=U[1];T=!1,U.splice(1,1);if(u.substr(u.length-1)==="\\"){continue;}Q===R&&(R=[]);if(D.preFilter[O]){U=D.preFilter[O](U,Q,W,R,V,P);if(U){if(U===!0){continue;}}else{T=N=!0;}}if(U){for(var ba=0;(M=Q[ba])!=null;ba++){if(M){N=v(M,U,ba,Q);var Z=V^!!N;W&&N!=null?Z?T=!0:Q[ba]=!1:Z&&(R.push(M),T=!0);}}}if(N!==aP){W||(Q=R),Y=Y.replace(D.match[O],"");if(!T){return[];}break;}}}if(Y===S){if(T==null){E.error(Y);}else{break;}}S=Y;}return Q;},E.error=function(e){throw"Syntax error, unrecognized expression: "+e;};var D=E.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href");},type:function(e){return e.getAttribute("type");}},relative:{"+":function(j,i){var r=typeof i==="string",q=r&&!F.test(i),p=r&&!q;q&&(i=i.toLowerCase());for(var o=0,n=j.length,m;o<n;o++){if(m=j[o]){while((m=m.previousSibling)&&m.nodeType!==1){}j[o]=p||m&&m.nodeName.toLowerCase()===i?m||!1:m===i;}}p&&E.filter(i,j,!0);},">":function(i,h){var p,o=typeof h==="string",n=0,m=i.length;if(o&&!F.test(h)){h=h.toLowerCase();for(;n<m;n++){p=i[n];if(p){var j=p.parentNode;i[n]=j.nodeName.toLowerCase()===h?j:!1;}}}else{for(;n<m;n++){p=i[n],p&&(i[n]=o?p.parentNode:p.parentNode===h);}o&&E.filter(h,i,!0);}},"":function(h,e,n){var m,j=K++,i=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),m=e,i=d),i("parentNode",e,j,h,m,n);},"~":function(h,e,n){var m,j=K++,i=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),m=e,i=d),i("previousSibling",e,j,h,m,n);}},find:{ID:function(g,e,i){if(typeof e.getElementById!=="undefined"&&!i){var h=e.getElementById(g[1]);return h&&h.parentNode?[h]:[];}},NAME:function(h,g){if(typeof g.getElementsByName!=="undefined"){var n=[],m=g.getElementsByName(h[1]);for(var j=0,i=m.length;j<i;j++){m[j].getAttribute("name")===h[1]&&n.push(m[j]);}return n.length===0?null:n;}},TAG:function(g,e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName(g[1]);}}},preFilter:{CLASS:function(j,i,r,q,p,o){j=" "+j[1].replace(G,"")+" ";if(o){return j;}for(var n=0,m;(m=i[n])!=null;n++){m&&(p^(m.className&&(" "+m.className+" ").replace(/[\t\n\r]/g," ").indexOf(j)>=0)?r||q.push(m):r&&(i[n]=!1));}return !1;},ID:function(e){return e[1].replace(G,"");},TAG:function(g,e){return g[1].replace(G,"").toLowerCase();},CHILD:function(g){if(g[1]==="nth"){g[2]||E.error(g[0]),g[2]=g[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=e[1]+(e[2]||1)-0,g[3]=e[3]-0;}else{g[2]&&E.error(g[0]);}g[0]=K++;return g;},ATTR:function(i,h,p,o,n,m){var j=i[1]=i[1].replace(G,"");!m&&D.attrMap[j]&&(i[1]=D.attrMap[j]),i[4]=(i[4]||i[5]||"").replace(G,""),i[2]==="~="&&(i[4]=" "+i[4]+" ");return i;},PSEUDO:function(a,n,m,j,i){if(a[1]==="not"){if((L.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=E(a[3],null,null,n);}else{var h=E.filter(a[3],n,m,!0^i);m||j.push.apply(j,h);return !1;}}else{if(D.match.POS.test(a[0])||D.match.CHILD.test(a[0])){return !0;}}return a;},POS:function(e){e.unshift(!0);return e;}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden";},disabled:function(e){return e.disabled===!0;},checked:function(e){return e.checked===!0;},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0;},parent:function(e){return !!e.firstChild;},empty:function(e){return !e.firstChild;},has:function(g,e,h){return !!E(h[3],g).length;},header:function(e){return/h\d/i.test(e.nodeName);},text:function(g){var e=g.getAttribute("type"),h=g.type;return"text"===h&&(e===h||e===null);},radio:function(e){return"radio"===e.type;},checkbox:function(e){return"checkbox"===e.type;},file:function(e){return"file"===e.type;},password:function(e){return"password"===e.type;},submit:function(e){return"submit"===e.type;},image:function(e){return"image"===e.type;},reset:function(e){return"reset"===e.type;},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button";},input:function(e){return/input|select|textarea|button/i.test(e.nodeName);}},setFilters:{first:function(g,e){return e===0;},last:function(g,e,i,h){return e===h.length-1;},even:function(g,e){return e%2===0;},odd:function(g,e){return e%2===1;},lt:function(g,e,h){return e<h[3]-0;},gt:function(g,e,h){return e>h[3]-0;},nth:function(g,e,h){return h[3]-0===e;},eq:function(g,e,h){return h[3]-0===e;}},filter:{PSEUDO:function(u,s,r,q){var p=s[1],o=D.filters[p];if(o){return o(u,r,s,q);}if(p==="contains"){return(u.textContent||u.innerText||E.getText([u])||"").indexOf(s[3])>=0;}if(p==="not"){var n=s[3];for(var m=0,j=n.length;m<j;m++){if(n[m]===u){return !1;}}return !0;}E.error(p);},CHILD:function(M,v){var u=v[1],s=M;switch(u){case"only":case"first":while(s=s.previousSibling){if(s.nodeType===1){return !1;}}if(u==="first"){return !0;}s=M;case"last":while(s=s.nextSibling){if(s.nodeType===1){return !1;}}return !0;case"nth":var r=v[2],q=v[3];if(r===1&&q===0){return !0;}var p=v[0],o=M.parentNode;if(o&&(o.sizcache!==p||!M.nodeIndex)){var n=0;for(s=o.firstChild;s;s=s.nextSibling){s.nodeType===1&&(s.nodeIndex=++n);}o.sizcache=p;}var m=M.nodeIndex-q;return r===0?m===0:m%r===0&&m/r>=0;}},ID:function(g,e){return g.nodeType===1&&g.getAttribute("id")===e;},TAG:function(g,e){return e==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===e;},CLASS:function(g,e){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(e)>-1;},ATTR:function(i,h){var p=h[1],o=D.attrHandle[p]?D.attrHandle[p](i):i[p]!=null?i[p]:i.getAttribute(p),n=o+"",m=h[2],j=h[4];return o==null?m==="!=":m==="="?n===j:m==="*="?n.indexOf(j)>=0:m==="~="?(" "+n+" ").indexOf(j)>=0:j?m==="!="?n!==j:m==="^="?n.indexOf(j)===0:m==="$="?n.substr(n.length-j.length)===j:m==="|="?n===j||n.substr(0,j.length+1)===j+"-":!1:n&&o!==!1;},POS:function(h,g,n,m){var j=g[2],i=D.setFilters[j];if(i){return i(h,n,g,m);}}}},C=D.match.POS,B=function(g,e){return"\\"+(e-0+1);};for(var A in D.match){D.match[A]=new RegExp(D.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source),D.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[A].source.replace(/\\(\d+)/g,B));}var z=function(g,e){g=Array.prototype.slice.call(g,0);if(e){e.push.apply(e,g);return e;}return g;};try{Array.prototype.slice.call(aN.documentElement.childNodes,0)[0].nodeType;}catch(y){z=function(h,g){var m=0,j=g||[];if(J.call(h)==="[object Array]"){Array.prototype.push.apply(j,h);}else{if(typeof h.length==="number"){for(var i=h.length;m<i;m++){j.push(h[m]);}}else{for(;h[m];m++){j.push(h[m]);}}}return j;};}var x,w;aN.documentElement.compareDocumentPosition?x=function(g,e){if(g===e){I=!0;return 0;}if(!g.compareDocumentPosition||!e.compareDocumentPosition){return g.compareDocumentPosition?-1:1;}return g.compareDocumentPosition(e)&4?-1:1;}:(x=function(v,u){var s,r,q=[],p=[],o=v.parentNode,n=u.parentNode,m=o;if(v===u){I=!0;return 0;}if(o===n){return w(v,u);}if(!o){return -1;}if(!n){return 1;}while(m){q.unshift(m),m=m.parentNode;}m=n;while(m){p.unshift(m),m=m.parentNode;}s=q.length,r=p.length;for(var g=0;g<s&&g<r;g++){if(q[g]!==p[g]){return w(q[g],p[g]);}}return g===s?w(v,p[g],-1):w(q[g],u,1);},w=function(g,e,i){if(g===e){return i;}var h=g.nextSibling;while(h){if(h===e){return -1;}h=h.nextSibling;}return 1;}),E.getText=function(g){var e="",i;for(var h=0;g[h];h++){i=g[h],i.nodeType===3||i.nodeType===4?e+=i.nodeValue:i.nodeType!==8&&(e+=E.getText(i.childNodes));}return e;},function(){var g=aN.createElement("div"),i="script"+(new Date).getTime(),h=aN.documentElement;g.innerHTML="<a name='"+i+"'/>",h.insertBefore(g,h.firstChild),aN.getElementById(i)&&(D.find.ID=function(j,o,n){if(typeof o.getElementById!=="undefined"&&!n){var m=o.getElementById(j[1]);return m?m.id===j[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===j[1]?[m]:aP:[];}},D.filter.ID=function(j,e){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&m&&m.nodeValue===e;}),h.removeChild(g),h=g=null;}(),function(){var e=aN.createElement("div");e.appendChild(aN.createComment("")),e.getElementsByTagName("*").length>0&&(D.find.TAG=function(h,g){var m=g.getElementsByTagName(h[1]);if(h[1]==="*"){var j=[];for(var i=0;m[i];i++){m[i].nodeType===1&&j.push(m[i]);}m=j;}return m;}),e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(D.attrHandle.href=function(g){return g.getAttribute("href",2);}),e=null;}(),aN.querySelectorAll&&function(){var h=E,g=aN.createElement("div"),j="__sizzle__";g.innerHTML="<p class='TEST'></p>";if(!g.querySelectorAll||g.querySelectorAll(".TEST").length!==0){E=function(T,S,R,Q){S=S||aN;if(!Q&&!E.isXML(S)){var P=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(T);if(P&&(S.nodeType===1||S.nodeType===9)){if(P[1]){return z(S.getElementsByTagName(T),R);}if(P[2]&&D.find.CLASS&&S.getElementsByClassName){return z(S.getElementsByClassName(P[2]),R);}}if(S.nodeType===9){if(T==="body"&&S.body){return z([S.body],R);}if(P&&P[3]){var O=S.getElementById(P[3]);if(!O||!O.parentNode){return z([],R);}if(O.id===P[3]){return z([O],R);}}try{return z(S.querySelectorAll(T),R);}catch(N){}}else{if(S.nodeType===1&&S.nodeName.toLowerCase()!=="object"){var M=S,v=S.getAttribute("id"),u=v||j,p=S.parentNode,a=/^\s*[+~]/.test(T);v?u=u.replace(/'/g,"\\$&"):S.setAttribute("id",u),a&&p&&(S=S.parentNode);try{if(!a||p){return z(S.querySelectorAll("[id='"+u+"'] "+T),R);}}catch(U){}finally{v||M.removeAttribute("id");}}}}return h(T,S,R,Q);};for(var i in h){E[i]=h[i];}g=null;}}(),function(){var h=aN.documentElement,g=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(g){var m=!g.call(aN.createElement("div"),"div"),j=!1;try{g.call(aN.documentElement,"[test!='']:sizzle");}catch(i){j=!0;}E.matchesSelector=function(e,p){p=p.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!E.isXML(e)){try{if(j||!D.match.PSEUDO.test(p)&&!/!=/.test(p)){var o=g.call(e,p);if(o||!m||e.document&&e.document.nodeType!==11){return o;}}}catch(n){}}return E(p,null,null,[e]).length>0;};}}(),function(){var e=aN.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return;}D.order.splice(1,0,"CLASS"),D.find.CLASS=function(h,g,i){if(typeof g.getElementsByClassName!=="undefined"&&!i){return g.getElementsByClassName(h[1]);}},e=null;}}(),aN.documentElement.contains?E.contains=function(g,e){return g!==e&&(g.contains?g.contains(e):!0);}:aN.documentElement.compareDocumentPosition?E.contains=function(g,e){return !!(g.compareDocumentPosition(e)&16);}:E.contains=function(){return !1;},E.isXML=function(g){var e=(g?g.ownerDocument||g:0).documentElement;return e?e.nodeName!=="HTML":!1;};var b=function(j,i){var r,q=[],p="",o=i.nodeType?[i]:i;while(r=D.match.PSEUDO.exec(j)){p+=r[0],j=j.replace(D.match.PSEUDO,"");}j=D.relative[j]?j+"*":j;for(var n=0,m=o.length;n<m;n++){E(j,o[n],q);}return E.filter(p,q);};aL.find=E,aL.expr=E.selectors,aL.expr[":"]=aL.expr.filters,aL.unique=E.uniqueSort,aL.text=E.getText,aL.isXMLDoc=E.isXML,aL.contains=E.contains;}();var cs=/Until$/,cr=/^(?:parents|prevUntil|prevAll)/,cq=/,/,cp=/^.[^:#\[\.,]*$/,co=Array.prototype.slice,cm=aL.expr.match.POS,cl={children:!0,contents:!0,next:!0,prev:!0};aL.fn.extend({find:function(i){var d=this.pushStack("","find",i),p=0;for(var o=0,n=this.length;o<n;o++){p=d.length,aL.find(i,this[o],d);if(o>0){for(var m=p;m<d.length;m++){for(var j=0;j<p;j++){if(d[j]===d[m]){d.splice(m--,1);break;}}}}}return d;},has:function(d){var c=aL(d);return this.filter(function(){for(var b=0,e=c.length;b<e;b++){if(aL.contains(this,c[b])){return !0;}}});},not:function(b){return this.pushStack(b8(this,b,!1),"not",b);},filter:function(b){return this.pushStack(b8(this,b,!0),"filter",b);},is:function(b){return !!b&&aL.filter(b,this).length>0;},closest:function(w,v){var u=[],s,r,q=this[0];if(aL.isArray(w)){var p,o,n={},m=1;if(q&&w.length){for(s=0,r=w.length;s<r;s++){o=w[s],n[o]||(n[o]=aL.expr.match.POS.test(o)?aL(o,v||this.context):o);}while(q&&q.ownerDocument&&q!==v){for(o in n){p=n[o],(p.jquery?p.index(q)>-1:aL(q).is(p))&&u.push({selector:o,elem:q,level:m});}q=q.parentNode,m++;}}return u;}var d=cm.test(w)?aL(w,v||this.context):null;for(s=0,r=this.length;s<r;s++){q=this[s];while(q){if(d?d.index(q)>-1:aL.find.matchesSelector(q,w)){u.push(q);break;}q=q.parentNode;if(!q||!q.ownerDocument||q===v){break;}}}u=u.length>1?aL.unique(u):u;return this.pushStack(u,"closest",w);},index:function(b){if(!b||typeof b==="string"){return aL.inArray(this[0],b?aL(b):this.parent().children());}return aL.inArray(b.jquery?b[0]:b,this);},add:function(g,d){var i=typeof g==="string"?aL(g,d):aL.makeArray(g),h=aL.merge(this.get(),i);return this.pushStack(cj(i[0])||cj(h[0])?h:aL.unique(h));},andSelf:function(){return this.add(this.prevObject);}}),aL.each({parent:function(d){var c=d.parentNode;return c&&c.nodeType!==11?c:null;},parents:function(b){return aL.dir(b,"parentNode");},parentsUntil:function(e,d,g){return aL.dir(e,"parentNode",g);},next:function(b){return aL.nth(b,2,"nextSibling");},prev:function(b){return aL.nth(b,2,"previousSibling");},nextAll:function(b){return aL.dir(b,"nextSibling");},prevAll:function(b){return aL.dir(b,"previousSibling");},nextUntil:function(e,d,g){return aL.dir(e,"nextSibling",g);},prevUntil:function(e,d,g){return aL.dir(e,"previousSibling",g);},siblings:function(b){return aL.sibling(b.parentNode.firstChild,b);},children:function(b){return aL.sibling(b.firstChild);},contents:function(b){return aL.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:aL.makeArray(b.childNodes);}},function(d,c){aL.fn[d]=function(i,h){var b=aL.map(this,c,i),a=co.call(arguments);cs.test(d)||(h=i),h&&typeof h==="string"&&(b=aL.filter(h,b)),b=this.length>1&&!cl[d]?aL.unique(b):b,(this.length>1||cq.test(h))&&cr.test(d)&&(b=b.reverse());return this.pushStack(b,d,a.join(","));};}),aL.extend({filter:function(e,d,g){g&&(e=":not("+e+")");return d.length===1?aL.find.matchesSelector(d[0],e)?[d[0]]:[]:aL.find.matches(e,d);},dir:function(b,j,i){var h=[],d=b[j];while(d&&d.nodeType!==9&&(i===aP||d.nodeType!==1||!aL(d).is(i))){d.nodeType===1&&h.push(d),d=d[j];}return h;},nth:function(h,g,m,j){g=g||1;var i=0;for(;h;h=h[m]){if(h.nodeType===1&&++i===g){break;}}return h;},sibling:function(e,d){var g=[];for(;e;e=e.nextSibling){e.nodeType===1&&e!==d&&g.push(e);}return g;}});var b6=/ jQuery\d+="(?:\d+|null)"/g,b4=/^\s+/,b2=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,b0=/<([\w:]+)/,a8=/<tbody/i,a6=/<|&#?\w+;/,a4=/<(?:script|object|embed|option|style)/i,a2=/checked\s*(?:[^=]|=\s*.checked.)/i,a0={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,"",""]};a0.optgroup=a0.option,a0.tbody=a0.tfoot=a0.colgroup=a0.caption=a0.thead,a0.th=a0.td,aL.support.htmlSerialize||(a0._default=[1,"div<div>","</div>"]),aL.fn.extend({text:function(b){if(aL.isFunction(b)){return this.each(function(a){var d=aL(this);d.text(b.call(this,a,d.text()));});}if(typeof b!=="object"&&b!==aP){return this.empty().append((this[0]&&this[0].ownerDocument||aN).createTextNode(b));}return aL.text(this);},wrapAll:function(d){if(aL.isFunction(d)){return this.each(function(a){aL(this).wrapAll(d.call(this,a));});}if(this[0]){var c=aL(d,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var b=this;while(b.firstChild&&b.firstChild.nodeType===1){b=b.firstChild;}return b;}).append(this);}return this;},wrapInner:function(b){if(aL.isFunction(b)){return this.each(function(a){aL(this).wrapInner(b.call(this,a));});}return this.each(function(){var a=aL(this),d=a.contents();d.length?d.wrapAll(b):a.append(b);});},wrap:function(b){return this.each(function(){aL(this).wrapAll(b);});},unwrap:function(){return this.parent().each(function(){aL.nodeName(this,"body")||aL(this).replaceWith(this.childNodes);}).end();},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b);});},prepend:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild);});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this);});}if(arguments.length){var b=aL(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments);}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling);});}if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,aL(arguments[0]).toArray());return b;}},remove:function(g,d){for(var i=0,h;(h=this[i])!=null;i++){if(!g||aL.filter(g,[h]).length){!d&&h.nodeType===1&&(aL.cleanData(h.getElementsByTagName("*")),aL.cleanData([h])),h.parentNode&&h.parentNode.removeChild(h);}}return this;},empty:function(){for(var d=0,c;(c=this[d])!=null;d++){c.nodeType===1&&aL.cleanData(c.getElementsByTagName("*"));while(c.firstChild){c.removeChild(c.firstChild);}}return this;},clone:function(d,c){d=d==null?!1:d,c=c==null?d:c;return this.map(function(){return aL.clone(this,d,c);});},html:function(b){if(b===aP){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(b6,""):null;}if(typeof b!=="string"||a4.test(b)||!aL.support.leadingWhitespace&&b4.test(b)||a0[(b0.exec(b)||["",""])[1].toLowerCase()]){aL.isFunction(b)?this.each(function(a){var e=aL(this);e.html(b.call(this,a,e.html()));}):this.empty().append(b);}else{b=b.replace(b2,"<$1></$2>");try{for(var h=0,g=this.length;h<g;h++){this[h].nodeType===1&&(aL.cleanData(this[h].getElementsByTagName("*")),this[h].innerHTML=b);}}catch(d){this.empty().append(b);}}return this;},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(aL.isFunction(b)){return this.each(function(a){var g=aL(this),d=g.html();g.replaceWith(b.call(this,a,d));});}typeof b!=="string"&&(b=aL(b).detach());return this.each(function(){var a=this.nextSibling,d=this.parentNode;aL(this).remove(),a?aL(a).before(b):aL(d).append(b);});}return this.length?this.pushStack(aL(aL.isFunction(b)?b():b),"replaceWith",b):this;},detach:function(b){return this.remove(b,!0);},domManip:function(y,x,w){var v,u,s,r,q=y[0],p=[];if(!aL.support.checkClone&&arguments.length===3&&typeof q==="string"&&a2.test(q)){return this.each(function(){aL(this).domManip(y,x,w,!0);});}if(aL.isFunction(q)){return this.each(function(c){var a=aL(this);y[0]=q.call(this,c,x?a.html():aP),a.domManip(y,x,w);});}if(this[0]){r=q&&q.parentNode,aL.support.parentNode&&r&&r.nodeType===11&&r.childNodes.length===this.length?v={fragment:r}:v=aL.buildFragment(y,this,p),s=v.fragment,s.childNodes.length===1?u=s=s.firstChild:u=s.firstChild;if(u){x=x&&aL.nodeName(u,"tr");for(var o=0,d=this.length,b=d-1;o<d;o++){w.call(x?c1(this[o],u):this[o],v.cacheable||d>1&&o<b?aL.clone(s,!0,!0):s);}}p.length&&aL.each(p,b7);}return this;}}),aL.buildFragment=function(d,c,p){var o,n,m,j=c&&c[0]?c[0].ownerDocument||c[0]:aN;d.length===1&&typeof d[0]==="string"&&d[0].length<512&&j===aN&&d[0].charAt(0)==="<"&&!a4.test(d[0])&&(aL.support.checkClone||!a2.test(d[0]))&&(n=!0,m=aL.fragments[d[0]],m&&(m!==1&&(o=m))),o||(o=j.createDocumentFragment(),aL.clean(d,j,o,p)),n&&(aL.fragments[d[0]]=m?o:1);return{fragment:o,cacheable:n};},aL.fragments={},aL.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,c){aL.fn[d]=function(q){var p=[],o=aL(q),n=this.length===1&&this[0].parentNode;if(n&&n.nodeType===11&&n.childNodes.length===1&&o.length===1){o[c](this[0]);return this;}for(var m=0,b=o.length;m<b;m++){var a=(m>0?this.clone(!0):this).get();aL(o[m])[c](a),p=p.concat(a);}return this.pushStack(p,d,o.selector);};}),aL.extend({clone:function(i,d,p){var o=i.cloneNode(!0),n,m,j;if((!aL.support.noCloneEvent||!aL.support.noCloneChecked)&&(i.nodeType===1||i.nodeType===11)&&!aL.isXMLDoc(i)){ck(i,o),n=b9(i),m=b9(o);for(j=0;n[j];++j){ck(n[j],m[j]);}}if(d){aT(i,o);if(p){n=b9(i),m=b9(o);for(j=0;n[j];++j){aT(n[j],m[j]);}}}return o;},clean:function(C,B,A,z){B=B||aN,typeof B.createElement==="undefined"&&(B=B.ownerDocument||B[0]&&B[0].ownerDocument||aN);var y=[];for(var x=0,w;(w=C[x])!=null;x++){typeof w==="number"&&(w+="");if(!w){continue;}if(typeof w!=="string"||a6.test(w)){if(typeof w==="string"){w=w.replace(b2,"<$1></$2>");var v=(b0.exec(w)||["",""])[1].toLowerCase(),u=a0[v]||a0._default,s=u[0],r=B.createElement("div");r.innerHTML=u[1]+w+u[2];while(s--){r=r.lastChild;}if(!aL.support.tbody){var q=a8.test(w),d=v==="table"&&!q?r.firstChild&&r.firstChild.childNodes:u[1]==="<table>"&&!q?r.childNodes:[];for(var c=d.length-1;c>=0;--c){aL.nodeName(d[c],"tbody")&&!d[c].childNodes.length&&d[c].parentNode.removeChild(d[c]);}}!aL.support.leadingWhitespace&&b4.test(w)&&r.insertBefore(B.createTextNode(b4.exec(w)[0]),r.firstChild),w=r.childNodes;}}else{w=B.createTextNode(w);}w.nodeType?y.push(w):y=aL.merge(y,w);}if(A){for(x=0;y[x];x++){!z||!aL.nodeName(y[x],"script")||y[x].type&&y[x].type.toLowerCase()!=="text/javascript"?(y[x].nodeType===1&&y.splice.apply(y,[x+1,0].concat(aL.makeArray(y[x].getElementsByTagName("script")))),A.appendChild(y[x])):z.push(y[x].parentNode?y[x].parentNode.removeChild(y[x]):y[x]);}}return y;},cleanData:function(v){var u,s,r=aL.cache,q=aL.expando,p=aL.event.special,o=aL.support.deleteExpando;for(var n=0,m;(m=v[n])!=null;n++){if(m.nodeName&&aL.noData[m.nodeName.toLowerCase()]){continue;}s=m[aL.expando];if(s){u=r[s]&&r[s][q];if(u&&u.events){for(var d in u.events){p[d]?aL.event.remove(m,d):aL.removeEvent(m,d,u.handle);}u.handle&&(u.handle.elem=null);}o?delete m[aL.expando]:m.removeAttribute&&m.removeAttribute(aL.expando),delete r[s];}}}});var b5=/alpha\([^)]*\)/i,b3=/opacity=([^)]*)/,b1=/-([a-z])/ig,a9=/([A-Z]|^ms)/g,a7=/^-?\d+(?:px)?$/i,a5=/^-?\d/,a3={position:"absolute",visibility:"hidden",display:"block"},a1=["Left","Right"],aZ=["Top","Bottom"],aY,aX,aW,aV=function(d,c){return c.toUpperCase();};aL.fn.css=function(b,d){if(arguments.length===2&&d===aP){return this;}return aL.access(this,b,d,!0,function(g,i,h){return h!==aP?aL.style(g,i,h):aL.css(g,i);});},aL.extend({cssHooks:{opacity:{get:function(e,d){if(d){var g=aY(e,"opacity","opacity");return g===""?"1":g;}return e.style.opacity;}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":aL.support.cssFloat?"cssFloat":"styleFloat"},style:function(s,r,q,p){if(s&&s.nodeType!==3&&s.nodeType!==8&&s.style){var o,n=aL.camelCase(r),m=s.style,d=aL.cssHooks[n];r=aL.cssProps[n]||n;if(q===aP){if(d&&"get" in d&&(o=d.get(s,!1,p))!==aP){return o;}return m[r];}if(typeof q==="number"&&isNaN(q)||q==null){return;}typeof q==="number"&&!aL.cssNumber[n]&&(q+="px");if(!d||!("set" in d)||(q=d.set(s,q))!==aP){try{m[r]=q;}catch(b){}}}},css:function(b,n,m){var j,i=aL.camelCase(n),d=aL.cssHooks[i];n=aL.cssProps[i]||i;if(d&&"get" in d&&(j=d.get(b,!0,m))!==aP){return j;}if(aY){return aY(b,n,i);}},swap:function(h,g,m){var j={};for(var i in g){j[i]=h.style[i],h.style[i]=g[i];}m.call(h);for(i in g){h.style[i]=j[i];}},camelCase:function(b){return b.replace(b1,aV);}}),aL.curCSS=aL.css,aL.each(["height","width"],function(d,c){aL.cssHooks[c]={get:function(b,i,h){var g;if(i){b.offsetWidth!==0?g=aU(b,c,h):aL.swap(b,a3,function(){g=aU(b,c,h);});if(g<=0){g=aY(b,c,c),g==="0px"&&aW&&(g=aW(b,c,c));if(g!=null){return g===""||g==="auto"?"0px":g;}}if(g<0||g==null){g=b.style[c];return g===""||g==="auto"?"0px":g;}return typeof g==="string"?g:g+"px";}},set:function(g,e){if(!a7.test(e)){return e;}e=parseFloat(e);if(e>=0){return e+"px";}}};}),aL.support.opacity||(aL.cssHooks.opacity={get:function(d,c){return b3.test((c&&d.currentStyle?d.currentStyle.filter:d.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":"";},set:function(g,d){var j=g.style;j.zoom=1;var i=aL.isNaN(d)?"":"alpha(opacity="+d*100+")",h=j.filter||"";j.filter=b5.test(h)?h.replace(b5,i):j.filter+" "+i;}}),aL(function(){aL.support.reliableMarginRight||(aL.cssHooks.marginRight={get:function(e,d){var g;aL.swap(e,{display:"inline-block"},function(){d?g=aY(e,"margin-right","marginRight"):g=e.style.marginRight;});return g;}});}),aN.defaultView&&aN.defaultView.getComputedStyle&&(aX=function(b,n,m){var j,i,d;m=m.replace(a9,"-$1").toLowerCase();if(!(i=b.ownerDocument.defaultView)){return aP;}if(d=i.getComputedStyle(b,null)){j=d.getPropertyValue(m),j===""&&!aL.contains(b.ownerDocument.documentElement,b)&&(j=aL.style(b,m));}return j;}),aN.documentElement.currentStyle&&(aW=function(h,g){var n,m=h.currentStyle&&h.currentStyle[g],j=h.runtimeStyle&&h.runtimeStyle[g],i=h.style;!a7.test(m)&&a5.test(m)&&(n=i.left,j&&(h.runtimeStyle.left=h.currentStyle.left),i.left=g==="fontSize"?"1em":m||0,m=i.pixelLeft+"px",i.left=n,j&&(h.runtimeStyle.left=j));return m===""?"auto":m;}),aY=aX||aW,aL.expr&&aL.expr.filters&&(aL.expr.filters.hidden=function(e){var d=e.offsetWidth,g=e.offsetHeight;return d===0&&g===0||!aL.support.reliableHiddenOffsets&&(e.style.display||aL.css(e,"display"))==="none";},aL.expr.filters.visible=function(b){return !aL.expr.filters.hidden(b);});var aS=/%20/g,aQ=/\[\]$/,aO=/\r?\n/g,aM=/#.*$/,aK=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aI=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aG=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aE=/^(?:GET|HEAD)$/,aC=/^\/\//,c0=/\?/,cZ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cY=/^(?:select|textarea)/i,cX=/\s+/,cW=/([?&])_=[^&]*/,cV=/(^|\-)([a-z])/g,cU=function(e,d,g){return d+g.toUpperCase();},cT=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,cS=aL.fn.load,cR={},cQ={},cP,cO;try{cP=aN.location.href;}catch(cN){cP=aN.createElement("a"),cP.href="",cP=cP.href;}cO=cT.exec(cP.toLowerCase())||[],aL.fn.extend({load:function(b,p,o){if(typeof b!=="string"&&cS){return cS.apply(this,arguments);}if(!this.length){return this;}var n=b.indexOf(" ");if(n>=0){var m=b.slice(n,b.length);b=b.slice(0,n);}var j="GET";p&&(aL.isFunction(p)?(o=p,p=aP):typeof p==="object"&&(p=aL.param(p,aL.ajaxSettings.traditional),j="POST"));var d=this;aL.ajax({url:b,type:j,dataType:"html",data:p,complete:function(g,e,h){h=g.responseText,g.isResolved()&&(g.done(function(c){h=c;}),d.html(m?aL("<div>").append(h.replace(cZ,"")).find(m):h)),o&&d.each(o,[h,e,g]);}});return this;},serialize:function(){return aL.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?aL.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||cY.test(this.nodeName)||aI.test(this.type));}).map(function(e,d){var g=aL(this).val();return g==null?null:aL.isArray(g)?aL.map(g,function(b,h){return{name:d.name,value:b.replace(aO,"\r\n")};}):{name:d.name,value:g.replace(aO,"\r\n")};}).get();}}),aL.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,c){aL.fn[c]=function(b){return this.bind(c,b);};}),aL.each(["get","post"],function(b,d){aL[d]=function(c,j,i,h){aL.isFunction(j)&&(h=h||i,i=j,j=aP);return aL.ajax({type:d,url:c,data:j,success:i,dataType:h});};}),aL.extend({getScript:function(b,d){return aL.get(b,aP,d,"script");},getJSON:function(e,d,g){return aL.get(e,d,g,"json");},ajaxSetup:function(e,d){d?aL.extend(!0,e,aL.ajaxSettings,d):(d=e,e=aL.extend(!0,aL.ajaxSettings,d));for(var g in {context:1,url:1}){g in d?e[g]=d[g]:g in aL.ajaxSettings&&(e[g]=aL.ajaxSettings[g]);}return e;},ajaxSettings:{url:cP,isLocal:aG.test(cO[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":aR.String,"text html":!0,"text json":aL.parseJSON,"text xml":aL.parseXML}},ajaxPrefilter:cM(cR),ajaxTransport:cM(cQ),ajax:function(T,S){function A(p,j,h,g){if(E!==2){E=2,G&&clearTimeout(G),H=aP,J=g||"",B.readyState=p?4:0;var e,u,s,r=h?cJ(R,B,h):aP,o,m;if(p>=200&&p<300||p===304){if(R.ifModified){if(o=B.getResponseHeader("Last-Modified")){aL.lastModified[L]=o;}if(m=B.getResponseHeader("Etag")){aL.etag[L]=m;}}if(p===304){j="notmodified",e=!0;}else{try{u=cI(R,r),j="success",e=!0;}catch(i){j="parsererror",s=i;}}}else{s=j;if(!j||p){j="error",p<0&&(p=0);}}B.status=p,B.statusText=j,e?O.resolveWith(Q,[u,j,B]):O.rejectWith(Q,[B,j,s]),B.statusCode(M),M=aP,D&&P.trigger("ajax"+(e?"Success":"Error"),[B,R,e?u:s]),N.resolveWith(Q,[B,j]),D&&(P.trigger("ajaxComplete",[B,R]),--aL.active||aL.event.trigger("ajaxStop"));}}typeof T==="object"&&(S=T,T=aP),S=S||{};var R=aL.ajaxSetup({},S),Q=R.context||R,P=Q!==R&&(Q.nodeType||Q instanceof aL)?aL(Q):aL.event,O=aL.Deferred(),N=aL._Deferred(),M=R.statusCode||{},L,K={},J,I,H,G,F,E=0,D,C,B={readyState:0,setRequestHeader:function(e,c){E||(K[e.toLowerCase().replace(cV,cU)]=c);return this;},getAllResponseHeaders:function(){return E===2?J:null;},getResponseHeader:function(e){var g;if(E===2){if(!I){I={};while(g=aK.exec(J)){I[g[1].toLowerCase()]=g[2];}}g=I[e.toLowerCase()];}return g===aP?null:g;},overrideMimeType:function(c){E||(R.mimeType=c);return this;},abort:function(c){c=c||"abort",H&&H.abort(c),A(0,c);return this;}};O.promise(B),B.success=B.done,B.error=B.fail,B.complete=N.done,B.statusCode=function(e){if(e){var c;if(E<2){for(c in e){M[c]=[M[c],e[c]];}}else{c=e[B.status],B.then(c,c);}}return this;},R.url=((T||R.url)+"").replace(aM,"").replace(aC,cO[1]+"//"),R.dataTypes=aL.trim(R.dataType||"*").toLowerCase().split(cX),R.crossDomain==null&&(F=cT.exec(R.url.toLowerCase()),R.crossDomain=F&&(F[1]!=cO[1]||F[2]!=cO[2]||(F[3]||(F[1]==="http:"?80:443))!=(cO[3]||(cO[1]==="http:"?80:443)))),R.data&&R.processData&&typeof R.data!=="string"&&(R.data=aL.param(R.data,R.traditional)),cL(cR,R,S,B);if(E===2){return !1;}D=R.global,R.type=R.type.toUpperCase(),R.hasContent=!aE.test(R.type),D&&aL.active++===0&&aL.event.trigger("ajaxStart");if(!R.hasContent){R.data&&(R.url+=(c0.test(R.url)?"&":"?")+R.data),L=R.url;if(R.cache===!1){var z=aL.now(),d=R.url.replace(cW,"$1_="+z);R.url=d+(d===R.url?(c0.test(R.url)?"&":"?")+"_="+z:"");}}if(R.data&&R.hasContent&&R.contentType!==!1||S.contentType){K["Content-Type"]=R.contentType;}R.ifModified&&(L=L||R.url,aL.lastModified[L]&&(K["If-Modified-Since"]=aL.lastModified[L]),aL.etag[L]&&(K["If-None-Match"]=aL.etag[L])),K.Accept=R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", */*; q=0.01":""):R.accepts["*"];for(C in R.headers){B.setRequestHeader(C,R.headers[C]);}if(R.beforeSend&&(R.beforeSend.call(Q,B,R)===!1||E===2)){B.abort();return !1;}for(C in {success:1,error:1,complete:1}){B[C](R[C]);}H=cL(cQ,R,S,B);if(H){B.readyState=1,D&&P.trigger("ajaxSend",[B,R]),R.async&&R.timeout>0&&(G=setTimeout(function(){B.abort("timeout");},R.timeout));try{E=1,H.send(K,A);}catch(b){status<2?A(-1,b):aL.error(b);}}else{A(-1,"No Transport");}return B;},param:function(b,j){var i=[],h=function(e,c){c=aL.isFunction(c)?c():c,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(c);};j===aP&&(j=aL.ajaxSettings.traditional);if(aL.isArray(b)||b.jquery&&!aL.isPlainObject(b)){aL.each(b,function(){h(this.name,this.value);});}else{for(var d in b){cK(d,b[d],j,h);}}return i.join("&").replace(aS,"+");}}),aL.extend({active:0,lastModified:{},etag:{}});var cF=aL.now(),cD=/(\=)\?(&|$)|\?\?/i;aL.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return aL.expando+"_"+cF++;}}),aL.ajaxPrefilter("json jsonp",function(w,v,u){var s=typeof w.data==="string";if(w.dataTypes[0]==="jsonp"||v.jsonpCallback||v.jsonp!=null||w.jsonp!==!1&&(cD.test(w.url)||s&&cD.test(w.data))){var r,q=w.jsonpCallback=aL.isFunction(w.jsonpCallback)?w.jsonpCallback():w.jsonpCallback,p=aR[q],o=w.url,n=w.data,d="$1"+q+"$2",a=function(){aR[q]=p,r&&aL.isFunction(p)&&aR[q](r[0]);};w.jsonp!==!1&&(o=o.replace(cD,d),w.url===o&&(s&&(n=n.replace(cD,d)),w.data===n&&(o+=(/\?/.test(o)?"&":"?")+w.jsonp+"="+q))),w.url=o,w.data=n,aR[q]=function(b){r=[b];},u.then(a,a),w.converters["script json"]=function(){r||aL.error(q+" was not called");return r[0];},w.dataTypes[0]="json";return"script";}}),aL.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){aL.globalEval(b);return b;}}}),aL.ajaxPrefilter("script",function(b){b.cache===aP&&(b.cache=!1),b.crossDomain&&(b.type="GET",b.global=!1);}),aL.ajaxTransport("script",function(b){if(b.crossDomain){var g,c=aN.head||aN.getElementsByTagName("head")[0]||aN.documentElement;return{send:function(d,a){g=aN.createElement("script"),g.async="async",b.scriptCharset&&(g.charset=b.scriptCharset),g.src=b.url,g.onload=g.onreadystatechange=function(e,h){if(!g.readyState||/loaded|complete/.test(g.readyState)){g.onload=g.onreadystatechange=null,c&&g.parentNode&&c.removeChild(g),g=aP,h||a(200,"success");}},c.insertBefore(g,c.firstChild);},abort:function(){g&&g.onload(0,1);}};}});var cB=aL.now(),cz,cx;aL.ajaxSettings.xhr=aR.ActiveXObject?function(){return !this.isLocal&&cu()||c2();}:cu,cx=aL.ajaxSettings.xhr(),aL.support.ajax=!!cx,aL.support.cors=cx&&"withCredentials" in cx,cx=aP,aL.support.ajax&&aL.ajaxTransport(function(b){if(!b.crossDomain||aL.support.cors){var d;return{send:function(p,o){var n=b.xhr(),m,c;b.username?n.open(b.type,b.url,b.async,b.username,b.password):n.open(b.type,b.url,b.async);if(b.xhrFields){for(c in b.xhrFields){n[c]=b.xhrFields[c];}}b.mimeType&&n.overrideMimeType&&n.overrideMimeType(b.mimeType),!b.crossDomain&&!p["X-Requested-With"]&&(p["X-Requested-With"]="XMLHttpRequest");try{for(c in p){n.setRequestHeader(c,p[c]);}}catch(a){}n.send(b.hasContent&&b.data||null),d=function(x,w){var v,u,s,r,q;try{if(d&&(w||n.readyState===4)){d=aP,m&&(n.onreadystatechange=aL.noop,delete cz[m]);if(w){n.readyState!==4&&n.abort();}else{v=n.status,s=n.getAllResponseHeaders(),r={},q=n.responseXML,q&&q.documentElement&&(r.xml=q),r.text=n.responseText;try{u=n.statusText;}catch(h){u="";}v||!b.isLocal||b.crossDomain?v===1223&&(v=204):v=r.text?200:404;}}}catch(g){w||o(-1,g);}r&&o(v,u,r,s);},b.async&&n.readyState!==4?(cz||(cz={},cw()),m=cB++,n.onreadystatechange=cz[m]=d):d();},abort:function(){d&&d(0,1);}};}});var cn={},av=/^(?:toggle|show|hide)$/,at=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,aq,ao=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];aL.fn.extend({show:function(i,d,p){var o,n;if(i||i===0){return this.animate(an("show",3),i,d,p);}for(var m=0,j=this.length;m<j;m++){o=this[m],n=o.style.display,!aL._data(o,"olddisplay")&&n==="none"&&(n=o.style.display=""),n===""&&aL.css(o,"display")==="none"&&aL._data(o,"olddisplay",al(o.nodeName));}for(m=0;m<j;m++){o=this[m],n=o.style.display;if(n===""||n==="none"){o.style.display=aL._data(o,"olddisplay")||"";}}return this;},hide:function(h,d,n){if(h||h===0){return this.animate(an("hide",3),h,d,n);}for(var m=0,j=this.length;m<j;m++){var i=aL.css(this[m],"display");i!=="none"&&!aL._data(this[m],"olddisplay")&&aL._data(this[m],"olddisplay",i);}for(m=0;m<j;m++){this[m].style.display="none";}return this;},_toggle:aL.fn.toggle,toggle:function(g,d,i){var h=typeof g==="boolean";aL.isFunction(g)&&aL.isFunction(d)?this._toggle.apply(this,arguments):g==null||h?this.each(function(){var a=h?g:aL(this).is(":hidden");aL(this)[a?"show":"hide"]();}):this.animate(an("toggle",3),g,d,i);return this;},fadeTo:function(g,e,i,h){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},g,i,h);},animate:function(g,d,j,i){var h=aL.speed(d,j,i);if(aL.isEmptyObject(g)){return this.each(h.complete);}return this[h.queue===!1?"each":"queue"](function(){var a=aL.extend({},h),r,q=this.nodeType===1,p=q&&aL(this).is(":hidden"),o=this;for(r in g){var n=aL.camelCase(r);r!==n&&(g[n]=g[r],delete g[r],r=n);if(g[r]==="hide"&&p||g[r]==="show"&&!p){return a.complete.call(this);}if(q&&(r==="height"||r==="width")){a.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(aL.css(this,"display")==="inline"&&aL.css(this,"float")==="none"){if(aL.support.inlineBlockNeedsLayout){var m=al(this.nodeName);m==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1);}else{this.style.display="inline-block";}}}aL.isArray(g[r])&&((a.specialEasing=a.specialEasing||{})[r]=g[r][1],g[r]=g[r][0]);}a.overflow!=null&&(this.style.overflow="hidden"),a.curAnim=aL.extend({},g),aL.each(g,function(y,x){var w=new aL.fx(o,a,y);if(av.test(x)){w[x==="toggle"?p?"show":"hide":x](g);}else{var v=at.exec(x),u=w.cur();if(v){var s=parseFloat(v[2]),b=v[3]||(aL.cssNumber[y]?"":"px");b!=="px"&&(aL.style(o,y,(s||1)+b),u=(s||1)/w.cur()*u,aL.style(o,y,u+b)),v[1]&&(s=(v[1]==="-="?-1:1)*s+u),w.custom(u,s,b);}else{w.custom(u,x,"");}}});return !0;});},stop:function(e,d){var g=aL.timers;e&&this.queue([]),this.each(function(){for(var b=g.length-1;b>=0;b--){g[b].elem===this&&(d&&g[b](!0),g.splice(b,1));}}),d||this.dequeue();return this;}}),aL.each({slideDown:an("show",1),slideUp:an("hide",1),slideToggle:an("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,c){aL.fn[d]=function(b,g,e){return this.animate(c,b,g,e);};}),aL.extend({speed:function(g,d,i){var h=g&&typeof g==="object"?aL.extend({},g):{complete:i||!i&&d||aL.isFunction(g)&&g,duration:g,easing:i&&d||d&&!aL.isFunction(d)&&d};h.duration=aL.fx.off?0:typeof h.duration==="number"?h.duration:h.duration in aL.fx.speeds?aL.fx.speeds[h.duration]:aL.fx.speeds._default,h.old=h.complete,h.complete=function(){h.queue!==!1&&aL(this).dequeue(),aL.isFunction(h.old)&&h.old.call(this);};return h;},easing:{linear:function(g,e,i,h){return i+h*g;},swing:function(g,e,i,h){return(-Math.cos(g*Math.PI)/2+0.5)*h+i;}},timers:[],fx:function(e,d,g){this.options=d,this.elem=e,this.prop=g,d.orig||(d.orig={});}}),aL.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(aL.fx.step[this.prop]||aL.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 d,c=aL.css(this.elem,this.prop);return isNaN(d=parseFloat(c))?!c||c==="auto"?0:c:d;},custom:function(h,d,n){function i(b){return m.step(b);}var m=this,j=aL.fx;this.startTime=aL.now(),this.start=h,this.end=d,this.unit=n||this.unit||(aL.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,i.elem=this.elem,i()&&aL.timers.push(i)&&!aq&&(aq=setInterval(j.tick,j.interval));},show:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),aL(this.elem).show();},hide:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0);},step:function(v){var u=aL.now(),s=!0;if(v||u>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var r in this.options.curAnim){this.options.curAnim[r]!==!0&&(s=!1);}if(s){if(this.options.overflow!=null&&!aL.support.shrinkWrapBlocks){var q=this.elem,p=this.options;aL.each(["","X","Y"],function(e,c){q.style["overflow"+c]=p.overflow[e];});}this.options.hide&&aL(this.elem).hide();if(this.options.hide||this.options.show){for(var o in this.options.curAnim){aL.style(this.elem,o,this.options.orig[o]);}}this.options.complete.call(this.elem);}return !1;}var n=u-this.startTime;this.state=n/this.options.duration;var m=this.options.specialEasing&&this.options.specialEasing[this.prop],d=this.options.easing||(aL.easing.swing?"swing":"linear");this.pos=aL.easing[m||d](this.state,n,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return !0;}},aL.extend(aL.fx,{tick:function(){var d=aL.timers;for(var c=0;c<d.length;c++){d[c]()||d.splice(c--,1);}d.length||aL.fx.stop();},interval:13,stop:function(){clearInterval(aq),aq=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){aL.style(b.elem,"opacity",b.now);},_default:function(b){b.elem.style&&b.elem.style[b.prop]!=null?b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit:b.elem[b.prop]=b.now;}}}),aL.expr&&aL.expr.filters&&(aL.expr.filters.animated=function(b){return aL.grep(aL.timers,function(a){return b===a.elem;}).length;});var ai=/^t(?:able|d|h)$/i,ag=/^(?:body|html)$/i;"getBoundingClientRect" in aN.documentElement?aL.fn.offset=function(C){var B=this[0],A;if(C){return this.each(function(a){aL.offset.setOffset(this,C,a);});}if(!B||!B.ownerDocument){return null;}if(B===B.ownerDocument.body){return aL.offset.bodyOffset(B);}try{A=B.getBoundingClientRect();}catch(z){}var y=B.ownerDocument,x=y.documentElement;if(!A||!aL.contains(x,B)){return A?{top:A.top,left:A.left}:{top:0,left:0};}var w=y.body,v=af(y),u=x.clientTop||w.clientTop||0,s=x.clientLeft||w.clientLeft||0,r=v.pageYOffset||aL.support.boxModel&&x.scrollTop||w.scrollTop,q=v.pageXOffset||aL.support.boxModel&&x.scrollLeft||w.scrollLeft,p=A.top+r-u,d=A.left+q-s;return{top:p,left:d};}:aL.fn.offset=function(y){var x=this[0];if(y){return this.each(function(a){aL.offset.setOffset(this,y,a);});}if(!x||!x.ownerDocument){return null;}if(x===x.ownerDocument.body){return aL.offset.bodyOffset(x);}aL.offset.initialize();var w,v=x.offsetParent,u=x,s=x.ownerDocument,r=s.documentElement,q=s.body,p=s.defaultView,o=p?p.getComputedStyle(x,null):x.currentStyle,n=x.offsetTop,d=x.offsetLeft;while((x=x.parentNode)&&x!==q&&x!==r){if(aL.offset.supportsFixedPosition&&o.position==="fixed"){break;}w=p?p.getComputedStyle(x,null):x.currentStyle,n-=x.scrollTop,d-=x.scrollLeft,x===v&&(n+=x.offsetTop,d+=x.offsetLeft,aL.offset.doesNotAddBorder&&(!aL.offset.doesAddBorderForTableAndCells||!ai.test(x.nodeName))&&(n+=parseFloat(w.borderTopWidth)||0,d+=parseFloat(w.borderLeftWidth)||0),u=v,v=x.offsetParent),aL.offset.subtractsBorderForOverflowNotVisible&&w.overflow!=="visible"&&(n+=parseFloat(w.borderTopWidth)||0,d+=parseFloat(w.borderLeftWidth)||0),o=w;}if(o.position==="relative"||o.position==="static"){n+=q.offsetTop,d+=q.offsetLeft;}aL.offset.supportsFixedPosition&&o.position==="fixed"&&(n+=Math.max(r.scrollTop,q.scrollTop),d+=Math.max(r.scrollLeft,q.scrollLeft));return{top:n,left:d};},aL.offset={initialize:function(){var d=aN.body,c=aN.createElement("div"),r,q,p,o,n=parseFloat(aL.css(d,"marginTop"))||0,m="<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>";aL.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),c.innerHTML=m,d.insertBefore(c,d.firstChild),r=c.firstChild,q=r.firstChild,o=r.nextSibling.firstChild.firstChild,this.doesNotAddBorder=q.offsetTop!==5,this.doesAddBorderForTableAndCells=o.offsetTop===5,q.style.position="fixed",q.style.top="20px",this.supportsFixedPosition=q.offsetTop===20||q.offsetTop===15,q.style.position=q.style.top="",r.style.overflow="hidden",r.style.position="relative",this.subtractsBorderForOverflowNotVisible=q.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==n,d.removeChild(c),aL.offset.initialize=aL.noop;},bodyOffset:function(e){var d=e.offsetTop,g=e.offsetLeft;aL.offset.initialize(),aL.offset.doesNotIncludeMarginInBodyOffset&&(d+=parseFloat(aL.css(e,"marginTop"))||0,g+=parseFloat(aL.css(e,"marginLeft"))||0);return{top:d,left:g};},setOffset:function(A,z,y){var x=aL.css(A,"position");x==="static"&&(A.style.position="relative");var w=aL(A),v=w.offset(),u=aL.css(A,"top"),s=aL.css(A,"left"),r=(x==="absolute"||x==="fixed")&&aL.inArray("auto",[u,s])>-1,q={},p={},o,d;r&&(p=w.position()),o=r?p.top:parseInt(u,10)||0,d=r?p.left:parseInt(s,10)||0,aL.isFunction(z)&&(z=z.call(A,y,v)),z.top!=null&&(q.top=z.top-v.top+o),z.left!=null&&(q.left=z.left-v.left+d),"using" in z?z.using.call(A,q):w.css(q);}},aL.fn.extend({position:function(){if(!this[0]){return null;}var g=this[0],d=this.offsetParent(),i=this.offset(),h=ag.test(d[0].nodeName)?{top:0,left:0}:d.offset();i.top-=parseFloat(aL.css(g,"marginTop"))||0,i.left-=parseFloat(aL.css(g,"marginLeft"))||0,h.top+=parseFloat(aL.css(d[0],"borderTopWidth"))||0,h.left+=parseFloat(aL.css(d[0],"borderLeftWidth"))||0;return{top:i.top-h.top,left:i.left-h.left};},offsetParent:function(){return this.map(function(){var b=this.offsetParent||aN.body;while(b&&(!ag.test(b.nodeName)&&aL.css(b,"position")==="static")){b=b.offsetParent;}return b;});}}),aL.each(["Left","Top"],function(b,g){var d="scroll"+g;aL.fn[d]=function(h){var e=this[0],a;if(!e){return null;}if(h!==aP){return this.each(function(){a=af(this),a?a.scrollTo(b?aL(a).scrollLeft():h,b?h:aL(a).scrollTop()):this[d]=h;});}a=af(e);return a?"pageXOffset" in a?a[b?"pageYOffset":"pageXOffset"]:aL.support.boxModel&&a.document.documentElement[d]||a.document.body[d]:e[d];};}),aL.each(["Height","Width"],function(b,g){var d=g.toLowerCase();aL.fn["inner"+g]=function(){return this[0]?parseFloat(aL.css(this[0],d,"padding")):null;},aL.fn["outer"+g]=function(c){return this[0]?parseFloat(aL.css(this[0],d,c?"margin":"border")):null;},aL.fn[d]=function(c){var n=this[0];if(!n){return c==null?null:this;}if(aL.isFunction(c)){return this.each(function(a){var h=aL(this);h[d](c.call(this,a,h[d]()));});}if(aL.isWindow(n)){var m=n.document.documentElement["client"+g];return n.document.compatMode==="CSS1Compat"&&m||n.document.body["client"+g]||m;}if(n.nodeType===9){return Math.max(n.documentElement["client"+g],n.body["scroll"+g],n.documentElement["scroll"+g],n.body["offset"+g],n.documentElement["offset"+g]);}if(c===aP){var j=aL.css(n,d),e=parseFloat(j);return aL.isNaN(e)?j:e;}return this.css(d,typeof c==="string"?c:c+"px");};}),aR.jQuery=aR.$=aL;})(window);(function(h){var a="2.28";var b=h.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function d(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""));}}h.fn.cycle=function(j){var m=arguments[1];return this.each(function(){if(j===undefined||j===null){j={};}if(j.constructor==String){switch(j){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=0;h(this).data("cycle.opts","");return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;if(m===true){j=h(this).data("cycle.opts");if(!j){d("options not found, can not resume");return;}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0;}e(j.elements,j,1,1);}return;default:j={fx:j};}}else{if(j.constructor==Number){var r=j;j=h(this).data("cycle.opts");if(!j){d("options not found, can not advance slide");return;}if(r<0||r>=j.elements.length){d("invalid slide index: "+r);return;}j.nextSlide=r;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0;}e(j.elements,j,1,r>=j.currSlide);return;}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=0;this.cyclePause=0;var v=h(this);var s=j.slideExpr?h(j.slideExpr,this):v.children();var o=s.get();if(o.length<2){d("terminating; too few slides: "+o.length);return;}var n=h.extend({},h.fn.cycle.defaults,j||{},h.metadata?v.metadata():h.meta?v.data():{});if(n.autostop){n.countdown=n.autostopCount||o.length;}v.data("cycle.opts",n);n.container=this;n.elements=o;n.before=n.before?[n.before]:[];n.after=n.after?[n.after]:[];n.after.unshift(function(){n.busy=0;});if(n.continuous){n.after.push(function(){e(o,n,0,!n.rev);});}if(b&&n.cleartype&&!n.cleartypeNoBg){c(s);}var x=this.className;n.width=parseInt((x.match(/w:(\d+)/)||[])[1])||n.width;n.height=parseInt((x.match(/h:(\d+)/)||[])[1])||n.height;n.timeout=parseInt((x.match(/t:(\d+)/)||[])[1])||n.timeout;if(v.css("position")=="static"){v.css("position","relative");}if(n.width){v.width(n.width);}if(n.height&&n.height!="auto"){v.height(n.height);}if(n.startingSlide){n.startingSlide=parseInt(n.startingSlide);}if(n.random){n.randomMap=[];for(var p=0;p<o.length;p++){n.randomMap.push(p);}n.randomMap.sort(function(z,y){return Math.random()-0.5;});n.randomIndex=0;n.startingSlide=n.randomMap[0];}else{if(n.startingSlide>=o.length){n.startingSlide=0;}}var q=n.startingSlide||0;s.css({position:"absolute",top:0,left:0}).hide().each(function(y){var A=q?y>=q?o.length-(y-q):q-y:o.length-y;h(this).css("z-index",A);});h(o[q]).css("opacity",1).show();if(h.browser.msie){o[q].style.removeAttribute("filter");}if(n.fit&&n.width){s.width(n.width);}if(n.fit&&n.height&&n.height!="auto"){s.height(n.height);}if(n.pause){v.hover(function(){this.cyclePause=1;},function(){this.cyclePause=0;});}var w=h.fn.cycle.transitions[n.fx];if(h.isFunction(w)){w(v,s,n);}else{if(n.fx!="custom"){d("unknown transition: "+n.fx);}}s.each(function(){var y=h(this);this.cycleH=(n.fit&&n.height)?n.height:y.height();this.cycleW=(n.fit&&n.width)?n.width:y.width();});n.cssBefore=n.cssBefore||{};n.animIn=n.animIn||{};n.animOut=n.animOut||{};s.not(":eq("+q+")").css(n.cssBefore);if(n.cssFirst){h(s[q]).css(n.cssFirst);}if(n.timeout){n.timeout=parseInt(n.timeout);if(n.speed.constructor==String){n.speed=h.fx.speeds[n.speed]||parseInt(n.speed);}if(!n.sync){n.speed=n.speed/2;}while((n.timeout-n.speed)<250){n.timeout+=n.speed;}}if(n.easing){n.easeIn=n.easeOut=n.easing;}if(!n.speedIn){n.speedIn=n.speed;}if(!n.speedOut){n.speedOut=n.speed;}n.slideCount=o.length;n.currSlide=q;if(n.random){n.nextSlide=n.currSlide;if(++n.randomIndex==o.length){n.randomIndex=0;}n.nextSlide=n.randomMap[n.randomIndex];}else{n.nextSlide=n.startingSlide>=(o.length-1)?0:n.startingSlide+1;}var u=s[q];if(n.before.length){n.before[0].apply(u,[u,u,n,true]);}if(n.after.length>1){n.after[1].apply(u,[u,u,n,true]);}if(n.click&&!n.next){n.next=n.click;}if(n.next){h(n.next).bind("click",function(){return g(o,n,n.rev?-1:1);});}if(n.prev){h(n.prev).bind("click",function(){return g(o,n,n.rev?1:-1);});}if(n.pager){i(o,n);}n.addSlide=function(z){var y=h(z),A=y[0];if(!n.autostopCount){n.countdown++;}o.push(A);if(n.els){n.els.push(A);}n.slideCount=o.length;y.css("position","absolute").appendTo(v);if(b&&n.cleartype&&!n.cleartypeNoBg){c(y);}if(n.fit&&n.width){y.width(n.width);}if(n.fit&&n.height&&n.height!="auto"){s.height(n.height);}A.cycleH=(n.fit&&n.height)?n.height:y.height();A.cycleW=(n.fit&&n.width)?n.width:y.width();y.css(n.cssBefore);if(n.pager){h.fn.cycle.createPagerAnchor(o.length-1,A,h(n.pager),o,n);}if(typeof n.onAddSlide=="function"){n.onAddSlide(y);}};if(n.timeout||n.continuous){this.cycleTimeout=setTimeout(function(){e(o,n,0,!n.rev);},n.continuous?10:n.timeout+(n.delay||0));}});};function e(r,j,q,s){if(j.busy){return;}var o=j.container,v=r[j.currSlide],u=r[j.nextSlide];if(o.cycleTimeout===0&&!q){return;}if(!q&&!o.cyclePause&&((j.autostop&&(--j.countdown<=0))||(j.nowrap&&!j.random&&j.nextSlide<j.currSlide))){if(j.end){j.end(j);}return;}if(q||!o.cyclePause){if(j.before.length){h.each(j.before,function(p,w){w.apply(u,[v,u,j,s]);});}var m=function(){if(h.browser.msie&&j.cleartype){this.style.removeAttribute("filter");}h.each(j.after,function(p,w){w.apply(u,[v,u,j,s]);});};if(j.nextSlide!=j.currSlide){j.busy=1;if(j.fxFn){j.fxFn(v,u,j,m,s);}else{if(h.isFunction(h.fn.cycle[j.fx])){h.fn.cycle[j.fx](v,u,j,m);}else{h.fn.cycle.custom(v,u,j,m,q&&j.fastOnEvent);}}}if(j.random){j.currSlide=j.nextSlide;if(++j.randomIndex==r.length){j.randomIndex=0;}j.nextSlide=j.randomMap[j.randomIndex];}else{var n=(j.nextSlide+1)==r.length;j.nextSlide=n?0:j.nextSlide+1;j.currSlide=n?r.length-1:j.nextSlide-1;}if(j.pager){h.fn.cycle.updateActivePagerLink(j.pager,j.currSlide);}}if(j.timeout&&!j.continuous){o.cycleTimeout=setTimeout(function(){e(r,j,0,!j.rev);},j.timeout);}else{if(j.continuous&&o.cyclePause){o.cycleTimeout=setTimeout(function(){e(r,j,0,!j.rev);},10);}}}h.fn.cycle.updateActivePagerLink=function(j,m){h(j).find("a").removeClass("activeSlide").filter("a:eq("+m+")").addClass("activeSlide");};function g(j,m,q){var o=m.container,n=o.cycleTimeout;if(n){clearTimeout(n);o.cycleTimeout=0;}if(m.random&&q<0){m.randomIndex--;if(--m.randomIndex==-2){m.randomIndex=j.length-2;}else{if(m.randomIndex==-1){m.randomIndex=j.length-1;}}m.nextSlide=m.randomMap[m.randomIndex];}else{if(m.random){if(++m.randomIndex==j.length){m.randomIndex=0;}m.nextSlide=m.randomMap[m.randomIndex];}else{m.nextSlide=m.currSlide+q;if(m.nextSlide<0){if(m.nowrap){return false;}m.nextSlide=j.length-1;}else{if(m.nextSlide>=j.length){if(m.nowrap){return false;}m.nextSlide=0;}}}}if(m.prevNextClick&&typeof m.prevNextClick=="function"){m.prevNextClick(q>0,m.nextSlide,j[m.nextSlide]);}e(j,m,1,q>=0);return false;}function i(m,n){var j=h(n.pager);h.each(m,function(p,q){h.fn.cycle.createPagerAnchor(p,q,j,m,n);});h.fn.cycle.updateActivePagerLink(n.pager,n.startingSlide);}h.fn.cycle.createPagerAnchor=function(n,o,j,m,p){var q=(typeof p.pagerAnchorBuilder=="function")?h(p.pagerAnchorBuilder(n,o)):h('<a href="#">'+(n+1)+"</a>");if(q.parents("body").length==0){q.appendTo(j);}q.bind(p.pagerEvent,function(){p.nextSlide=n;var s=p.container,r=s.cycleTimeout;if(r){clearTimeout(r);s.cycleTimeout=0;}if(typeof p.pagerClick=="function"){p.pagerClick(p.nextSlide,m[p.nextSlide]);}e(m,p,1,p.currSlide<n);return false;});if(p.pauseOnPagerHover){q.hover(function(){p.container.cyclePause=1;},function(){p.container.cyclePause=0;});}};function c(n){function m(o){var o=parseInt(o).toString(16);return o.length<2?"0"+o:o;}function j(q){for(;q&&q.nodeName.toLowerCase()!="html";q=q.parentNode){var o=h.css(q,"background-color");if(o.indexOf("rgb")>=0){var p=o.match(/\d+/g);return"#"+m(p[0])+m(p[1])+m(p[2]);}if(o&&o!="transparent"){return o;}}return"#ffffff";}n.each(function(){h(this).css("background-color",j(this));});}h.fn.cycle.custom=function(x,q,j,n,m){var w=h(x),r=h(q);r.css(j.cssBefore);var o=m?1:j.speedIn;var v=m?1:j.speedOut;var p=m?null:j.easeIn;var u=m?null:j.easeOut;var s=function(){r.animate(j.animIn,o,p,n);};w.animate(j.animOut,v,u,function(){if(j.cssAfter){w.css(j.cssAfter);}if(!j.sync){s();}});if(j.sync){s();}};h.fn.cycle.transitions={fade:function(m,n,j){n.not(":eq("+j.startingSlide+")").css("opacity",0);j.before.push(function(){h(this).show();});j.animIn={opacity:1};j.animOut={opacity:0};j.cssBefore={opacity:0};j.cssAfter={display:"none"};}};h.fn.cycle.ver=function(){return a;};h.fn.cycle.defaults={fx:"fade",timeout:4000,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0,fastOnEvent:0};})(jQuery);(function(a){a.fn.cycle.transitions.scrollUp=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,e,g){a(this).show();g.cssBefore.top=e.offsetHeight;g.animOut.top=0-h.offsetHeight;});b.cssFirst={top:0};b.animIn={top:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.scrollDown=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,e,g){a(this).show();g.cssBefore.top=0-e.offsetHeight;g.animOut.top=h.offsetHeight;});b.cssFirst={top:0};b.animIn={top:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.scrollLeft=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,e,g){a(this).show();g.cssBefore.left=e.offsetWidth;g.animOut.left=0-h.offsetWidth;});b.cssFirst={left:0};b.animIn={left:0};};a.fn.cycle.transitions.scrollRight=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,e,g){a(this).show();g.cssBefore.left=0-e.offsetWidth;g.animOut.left=h.offsetWidth;});b.cssFirst={left:0};b.animIn={left:0};};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(j,h,i,g){a(this).show();var e=j.offsetWidth,m=h.offsetWidth;i.cssBefore=g?{left:m}:{left:-m};i.animIn.left=0;i.animOut.left=g?-e:e;d.not(j).css(i.cssBefore);});b.cssFirst={left:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(m,h,i,g){a(this).show();var j=m.offsetHeight,e=h.offsetHeight;i.cssBefore=g?{top:-e}:{top:e};i.animIn.top=0;i.animOut.top=g?j:-j;d.not(m).css(i.cssBefore);});b.cssFirst={top:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(h,e,g){a(h).css("zIndex",1);});b.onAddSlide=function(e){e.hide();};b.cssBefore={zIndex:2};b.animIn={width:"show"};b.animOut={width:"hide"};};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(h,e,g){a(h).css("zIndex",1);});b.onAddSlide=function(e){e.hide();};b.cssBefore={zIndex:2};b.animIn={height:"show"};b.animOut={height:"hide"};};a.fn.cycle.transitions.shuffle=function(e,g,d){var b=e.css("overflow","visible").width();g.css({left:0,top:0});d.before.push(function(){a(this).show();});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<g.length;c++){d.els.push(g[c]);}for(var c=0;c<d.startingSlide;c++){d.els.push(d.els.shift());}d.fxFn=function(o,m,n,h,j){var i=j?a(o):a(m);i.animate(n.shuffle,n.speedIn,n.easeIn,function(){j?n.els.push(n.els.shift()):n.els.unshift(n.els.pop());if(j){for(var q=0,p=n.els.length;q<p;q++){a(n.els[q]).css("z-index",p-q);}}else{var r=a(o).css("z-index");i.css("z-index",parseInt(r)+1);}i.animate({left:0,top:0},n.speedOut,n.easeOut,function(){a(j?this:o).hide();if(h){h();}});});};d.onAddSlide=function(h){h.hide();};};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(h,e,g){a(this).show();g.cssBefore.top=e.cycleH;g.animIn.height=e.cycleH;});b.onAddSlide=function(e){e.hide();};b.cssFirst={top:0};b.cssBefore={height:0};b.animIn={top:0};b.animOut={height:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(h,e,g){a(this).show();g.animIn.height=e.cycleH;g.animOut.top=h.cycleH;});b.onAddSlide=function(e){e.hide();};b.cssFirst={top:0};b.cssBefore={top:0,height:0};b.animOut={height:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(h,e,g){a(this).show();g.cssBefore.left=e.cycleW;g.animIn.width=e.cycleW;});b.onAddSlide=function(e){e.hide();};b.cssBefore={width:0};b.animIn={left:0};b.animOut={width:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(h,e,g){a(this).show();g.animIn.width=e.cycleW;g.animOut.left=h.cycleW;});b.onAddSlide=function(e){e.hide();};b.cssBefore={left:0,width:0};b.animIn={left:0};b.animOut={width:0};b.cssAfter={display:"none"};};a.fn.cycle.transitions.zoom=function(c,d,b){b.cssFirst={top:0,left:0};b.cssAfter={display:"none"};b.before.push(function(h,e,g){a(this).show();g.cssBefore={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2};g.cssAfter={display:"none"};g.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};g.animOut={width:0,height:0,top:h.cycleH/2,left:h.cycleW/2};a(h).css("zIndex",2);a(e).css("zIndex",1);});b.onAddSlide=function(e){e.hide();};};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(h,e,g){g.cssBefore={width:0,height:0,opacity:1,left:e.cycleW/2,top:e.cycleH/2,zIndex:1};g.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};});b.animOut={opacity:0};b.cssAfter={zIndex:0};};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();e.show();c.before.push(function(i,g,h){a(i).css("zIndex",1);});c.cssBefore={left:b,zIndex:2};c.cssAfter={zIndex:1};c.animIn={left:0};c.animOut={left:b};};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();e.show();c.before.push(function(i,g,h){a(i).css("zIndex",1);});c.cssBefore={top:b,zIndex:2};c.cssAfter={zIndex:1};c.animIn={top:0};c.animOut={top:b};};a.fn.cycle.transitions.blindZ=function(e,g,d){var c=e.css("overflow","hidden").height();var b=e.width();g.show();d.before.push(function(j,h,i){a(j).css("zIndex",1);});d.cssBefore={top:c,left:b,zIndex:2};d.cssAfter={zIndex:1};d.animIn={top:0,left:0};d.animOut={top:c,left:b};};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(h,e,g){g.cssBefore={left:this.cycleW/2,width:0,zIndex:2};g.animIn={left:0,width:this.cycleW};g.animOut={left:0};a(h).css("zIndex",1);});b.onAddSlide=function(e){e.hide().css("zIndex",1);};};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(h,e,g){g.cssBefore={top:this.cycleH/2,height:0,zIndex:2};g.animIn={top:0,height:this.cycleH};g.animOut={top:0};a(h).css("zIndex",1);});b.onAddSlide=function(e){e.hide().css("zIndex",1);};};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(h,e,g){g.cssBefore={left:e.cycleW/2,width:0,zIndex:1,display:"block"};g.animIn={left:0,width:this.cycleW};g.animOut={left:h.cycleW/2,width:0};a(h).css("zIndex",2);});b.onAddSlide=function(e){e.hide();};b.cssAfter={zIndex:1,display:"none"};};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(h,e,g){g.cssBefore={top:e.cycleH/2,height:0,zIndex:1,display:"block"};g.animIn={top:0,height:this.cycleH};g.animOut={top:h.cycleH/2,height:0};a(h).css("zIndex",2);});b.onAddSlide=function(e){e.hide();};b.cssAfter={zIndex:1,display:"none"};};a.fn.cycle.transitions.cover=function(g,i,e){var j=e.direction||"left";var b=g.css("overflow","hidden").width();var c=g.height();e.before.push(function(m,d,h){h.cssBefore=h.cssBefore||{};h.cssBefore.zIndex=2;h.cssBefore.display="block";if(j=="right"){h.cssBefore.left=-b;}else{if(j=="up"){h.cssBefore.top=c;}else{if(j=="down"){h.cssBefore.top=-c;}else{h.cssBefore.left=b;}}}a(m).css("zIndex",1);});if(!e.animIn){e.animIn={left:0,top:0};}if(!e.animOut){e.animOut={left:0,top:0};}e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=2;e.cssAfter.display="none";};a.fn.cycle.transitions.uncover=function(g,i,e){var j=e.direction||"left";var b=g.css("overflow","hidden").width();var c=g.height();e.before.push(function(m,d,h){h.cssBefore.display="block";if(j=="right"){h.animOut.left=b;}else{if(j=="up"){h.animOut.top=-c;}else{if(j=="down"){h.animOut.top=c;}else{h.animOut.left=-b;}}}a(m).css("zIndex",2);a(d).css("zIndex",1);});e.onAddSlide=function(d){d.hide();};if(!e.animIn){e.animIn={left:0,top:0};}e.cssBefore=e.cssBefore||{};e.cssBefore.top=0;e.cssBefore.left=0;e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=1;e.cssAfter.display="none";};a.fn.cycle.transitions.toss=function(e,g,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(j,h,i){a(j).css("zIndex",2);i.cssBefore.display="block";if(!i.animOut.left&&!i.animOut.top){i.animOut={left:b*2,top:-c/2,opacity:0};}else{i.animOut.opacity=0;}});d.onAddSlide=function(h){h.hide();};d.cssBefore={left:0,top:0,zIndex:1,opacity:1};d.animIn={left:0};d.cssAfter={zIndex:2,display:"none"};};a.fn.cycle.transitions.wipe=function(q,n,e){var p=q.css("overflow","hidden").width();var j=q.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+j+"px 0px)";}else{if(/r2l/.test(e.clip)){g="rect(0px "+p+"px "+j+"px "+p+"px)";}else{if(/t2b/.test(e.clip)){g="rect(0px "+p+"px 0px 0px)";}else{if(/b2t/.test(e.clip)){g="rect("+j+"px "+p+"px "+j+"px 0px)";}else{if(/zoom/.test(e.clip)){var s=parseInt(j/2);var i=parseInt(p/2);g="rect("+s+"px "+i+"px "+s+"px "+i+"px)";}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var m=e.cssBefore.clip.match(/(\d+)/g);var s=parseInt(m[0]),c=parseInt(m[1]),o=parseInt(m[2]),i=parseInt(m[3]);e.before.push(function(x,h,v){if(x==h){return;}var d=a(x).css("zIndex",2);var b=a(h).css({zIndex:3,display:"block"});var u=1,r=parseInt((v.speedIn/13))-1;function w(){var z=s?s-parseInt(u*(s/r)):0;var A=i?i-parseInt(u*(i/r)):0;var B=o<j?o+parseInt(u*((j-o)/r||1)):j;var y=c<p?c+parseInt(u*((p-c)/r||1)):p;b.css({clip:"rect("+z+"px "+y+"px "+B+"px "+A+"px)"});(u++<=r)?setTimeout(w,13):d.css("display","none");}w();});e.cssAfter={};e.animIn={left:0};e.animOut={left:0};};})(jQuery);$(document).ready(function(){MM_preloadImages("images/onEverything2.gif","images/navbg2.png","images/navbg3.png");$("#onEverything div.text").addClass("jstext");$("#slides").cycle({fx:"fade",speed:1000,timeout:4000,pager:"#pager",pagerEvent:"click",fastOnEvent:true,pagerAnchorBuilder:function(b,a){return"#pager li:eq("+b+") a";}});$(".one").click(function(){$("#slides").cycle(0);return false;});$(".two").click(function(){$("#slides").cycle(1);return false;});$(".three").click(function(){$("#slides").cycle(2);return false;});$(".four").click(function(){$("#slides").cycle(3);return false;});$(".five").click(function(){$("#slides").cycle(4);return false;});$("#myController").jFlow({slides:"#mySlides",controller:".jFlowControl",slideWrapper:"#jFlowSlide",selectedWrapper:"jFlowSelected",width:"187px",height:"232px",duration:400,prev:".jFlowPrev",next:".jFlowNext"});$("#myController2").jFlow({slides:"#mySlides2",controller:".jFlowControl2",slideWrapper:"#jFlowSlide2",selectedWrapper:"jFlowSelected2",width:"187px",height:"252px",duration:400,prev:".jFlowPrev2",next:".jFlowNext2"});$("#myController3").jFlow({slides:"#mySlides3",controller:".jFlowControl3",slideWrapper:"#jFlowSlide3",selectedWrapper:"jFlowSelected3",width:"187px",height:"232px",duration:400,prev:".jFlowPrev3",next:".jFlowNext3"});$("#myController4").jFlow({slides:"#mySlides4",controller:".jFlowControl4",slideWrapper:"#jFlowSlide4",selectedWrapper:"jFlowSelected4",width:"187px",height:"232px",duration:400,prev:".jFlowPrev4",next:".jFlowNext4"});});function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc;}}function MM_preloadImages(){var g=document;if(g.images){if(!g.MM_p){g.MM_p=new Array();}var e,c=g.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){g.MM_p[c]=new Image;g.MM_p[c++].src=b[e];}}}}function MM_findObj(g,e){var c,b,a;if(!e){e=document;}if((c=g.indexOf("?"))>0&&parent.frames.length){e=parent.frames[g.substring(c+1)].document;g=g.substring(0,c);}if(!(a=e[g])&&e.all){a=e.all[g];}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][g];}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(g,e.layers[b].document);}if(!a&&e.getElementById){a=e.getElementById(g);}return a;}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src;}b.src=c[e+2];}}}(function(a){a.fn.jFlow=function(n){var b=a.extend({},a.fn.jFlow.defaults,n);var h=Math.floor(Math.random()*11);var j=b.controller;var c=b.slideWrapper;var i=b.selectedWrapper;var m=0;var e=a(j).length;var g=function(p,o){a(b.slides).children().css({overflow:"hidden"});a(b.slides+" iframe").hide().addClass("temp_hide");a(b.slides).animate({marginLeft:"-"+(o*a(b.slides).find(":first-child").width()+"px")},b.duration*(p),b.easing,function(){a(b.slides).children().css({overflow:"auto"});a(".temp_hide").show();});};a(this).find(j).each(function(o){a(this).click(function(){if(a(b.slides).is(":not(:animated)")){a(j).removeClass(i);a(this).addClass(i);var p=Math.abs(m-o);g(p,o);m=o;}});});a(b.slides).before('<div id="'+c.substring(1,c.length)+'"></div>').appendTo(c);a(b.slides).find("div").each(function(){a(this).before('<div class="jFlowSlideContainer"></div>').appendTo(a(this).prev());});a(j).eq(m).addClass(i);var d=function(o){a(c).css({position:"relative",width:b.width,height:b.height,overflow:"hidden"});a(b.slides).css({position:"relative",width:a(c).width()*a(j).length+"px",height:a(c).height()+"px",overflow:"hidden"});a(b.slides).children().css({position:"relative",width:a(c).width()+"px",height:a(c).height()+"px","float":"left",overflow:"auto"});a(b.slides).css({marginLeft:"-"+(m*a(b.slides).find(":eq(0)").width()+"px")});};d();a(window).resize(function(){d();});a(b.prev).click(function(){if(a(b.slides).is(":not(:animated)")){var o=1;if(m>0){m--;}else{m=e-1;o=m;}a(j).removeClass(i);g(o,m);a(j).eq(m).addClass(i);}});a(b.next).click(function(){if(a(b.slides).is(":not(:animated)")){var o=1;if(m<e-1){m++;}else{m=0;o=e-1;}a(j).removeClass(i);g(o,m);a(j).eq(m).addClass(i);}});};a.fn.jFlow.defaults={controller:".jFlowControl",slideWrapper:"#jFlowSlide",selectedWrapper:"jFlowSelected",easing:"swing",duration:400,width:"100%",prev:".jFlowPrev",next:".jFlowNext"};})(jQuery);jQuery.cookie=function(b,m,p){if(typeof m!="undefined"){p=p||{};if(m===null){m="";p.expires=-1;}var e="";if(p.expires&&(typeof p.expires=="number"||p.expires.toUTCString)){var g;if(typeof p.expires=="number"){g=new Date();g.setTime(g.getTime()+(p.expires*24*60*60*1000));}else{g=p.expires;}e="; expires="+g.toUTCString();}var o=p.path?"; path="+(p.path):"";var h=p.domain?"; domain="+(p.domain):"";var a=p.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(m),e,o,h,a].join("");}else{var d=null;if(document.cookie&&document.cookie!=""){var n=document.cookie.split(";");for(var j=0;j<n.length;j++){var c=jQuery.trim(n[j]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break;}}}return d;}};$(document).ready(function(){$("#showtext2").click(function(){showText2();});searchBox();betterStartList();if(Modernizr.fontface){alignBottom();setTimeout("alignBottom();",3000);}else{alignBottom();}fixAlphaPng();});function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,true);return true;}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b;}else{return false;}}}function fixAlphaPng(){var j="";var c="";var e="";var a="";var g=new RegExp(".png$");var d=new RegExp("msie");var h=new RegExp("mac");for(var b=0;b<document.getElementsByTagName("IMG").length;b++){j=document.getElementsByTagName("IMG")[b].getAttribute("src").toLowerCase();c=navigator.userAgent.toLowerCase();e=document.getElementsByTagName("IMG")[b].getAttribute("width");a=document.getElementsByTagName("IMG")[b].getAttribute("height");if(j.match(g)&&c.match(d)&&!c.match(h)){document.getElementsByTagName("IMG")[b].setAttribute("src","/images/spacer.png");document.getElementsByTagName("IMG")[b].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+j+"', sizingMethod=scale)";document.getElementsByTagName("IMG")[b].style.width=e+"px";document.getElementsByTagName("IMG")[b].style.height=a+"px";}}}function betterStartList(){$("#nav1 li ul li").hover(function(){$(this).addClass("over");},function(){$(this).removeClass("over");});$("#nav1 li").hover(function(){$(this).addClass("over");},function(){$(this).removeClass("over");});}function alignBottom(){if(document.getElementById("main")){var a=document.getElementById("main").offsetHeight;}if(document.getElementById("sidebar")){var b=document.getElementById("sidebar").offsetHeight;}if(a&&b){if(document.getElementById("sponsors")&&a>b){document.getElementById("sponsors").style.top=a-b+"px";}if(document.getElementById("links")&&a<b){document.getElementById("links").style.top=b-a+"px";}if(document.getElementById("sponsors")){document.getElementById("sponsors").style.visibility="visible";}if(document.getElementById("links")){document.getElementById("links").style.visibility="visible";}}}var prevk=1;function featureswap(a,b){document.getElementById("featuretrans"+prevk).style.visibility="visible";document.getElementById("featuretrans"+a).style.visibility="hidden";document.getElementById("featureinfo"+prevk).style.display="none";document.getElementById("featureinfo"+a).style.display="inline";if(document.getElementById("featureimage"+a)){document.getElementById("featureimage"+prevk).style.display="none";document.getElementById("featureimage"+a).style.display="inline";}prevRow=document.getElementById("erow"+preveventid);thisRow=document.getElementById("erow"+b);if(prevRow){prevRow.className=prevRow.className.replace("hot ","");}if(thisRow){thisRow.className="hot "+thisRow.className;}preveventid=b;prevk=a;}var prevj=1;var start=0;var prevstart=0;function feature2swap(a,b){document.getElementById("feature2trans"+prevj).style.visibility="visible";document.getElementById("feature2trans"+a).style.visibility="hidden";document.getElementById("feature2info"+prevj).style.display="none";document.getElementById("feature2info"+a).style.display="block";if(b>0){for(k=b;k<b+10;k++){(b<=prevstart)?l=k+10:l=k-10;if(document.getElementById("feature2thumb"+l)){document.getElementById("feature2thumb"+l).style.display="none";document.getElementById("feature2trans"+l).style.display="none";}if(document.getElementById("feature2thumb"+k)){document.getElementById("feature2thumb"+k).style.display="inline";document.getElementById("feature2trans"+k).style.display="inline";}}prevstart=b;}prevj=a;}function noCookies(b){var a=new Date();chkcookie=(a.getTime()+"");document.cookie="chkcookie="+chkcookie+"; path=/";if(document.cookie.indexOf(chkcookie,0)<0){window.location=b;}else{return("true");}}function clearField(a){if(a.defaultValue==a.value){a.value="";}f=setTimeout("refillField('"+a.id+"')",3000);}function refillField(a){a=document.getElementById(a);if(a.value==""){a.value=a.defaultValue;a.blur();}clearTimeout(f);}function popup(b,a,c){if(!a){a="270";}if(!c){c="270";}newPopup=window.open(b,"wexnerpop","resizable,scrollbars,width="+a+",height="+c);newPopup.focus();}function kiosk(b,a,c){if(b.indexOf("/ex/2002/moodriver/")!=-1){a=720;}newKiosk=window.open(b,"wexnerkiosk","width="+a+",height="+c);newKiosk.focus();}function formpop(b,a,c){newFormpop=window.open(b,"wexnerform","resizable,menubar,toolbar,width="+a+",height="+c);newFormpop.focus();}var thistickeritem=0;var tickeritems=new Array();var tickeradv;function scrollTicker(a){if(a){if(a<0){if(thistickeritem==0){thistickeritem=tickeritems.length-2;}else{if(thistickeritem<=1){thistickeritem=tickeritems.length-1;}else{thistickeritem=thistickeritem-2;}}}clearTimeout(t);}thistickernum=thistickeritem+1;objTicker.innerHTML=tickeritems[thistickeritem];if(thistickeritem>=tickeritems.length-1){thistickeritem=0;}else{thistickeritem++;}t=setTimeout("scrollTicker()",10000);}function initTicker(){objTicker=document.getElementById?document.getElementById("tickerfeed"):document.all.tickerfeed;if(objTicker){scrollTicker();}}addEvent(window,"load",initTicker);var rail=1;var prevrail=1;function showRail(a){$("#railnav"+prevrail).removeClass("on");$("#railnav"+a).addClass("on");$("#rail"+prevrail).fadeOut(250,function(){$("#rail"+a).fadeIn(250);});prevrail=a;return false;}function searchBox(){var g=document.getElementById("cse-search-box-refresh");if(!g){g=document.getElementById("cse-search-box");}if(!g){g=document.getElementById("searchbox_demo");}if(g&&g.q){var e=g.q;var h=navigator;var c=location;if(h.platform=="Win32"){e.style.cssText="border: 1px solid #7e9db9; padding: 2px;";}var a=function(){if(e.value==""){e.style.background="#ffffff url(http:\x2F\x2Fwww.google.com\x2Fcoop\x2Fintl\x2Fen\x2Fimages\x2Fgoogle_custom_search_watermark.gif) left no-repeat";}};var g=function(){e.style.background="#ffffff";t=setTimeout(d,3000);};var d=function(){if(e.value==""){e.style.background="#ffffff url(http:\x2F\x2Fwww.google.com\x2Fcoop\x2Fintl\x2Fen\x2Fimages\x2Fgoogle_custom_search_watermark.gif) left no-repeat";e.blur();}clearTimeout(t);};e.onfocus=g;e.onblur=a;if(!/[&?]q=[^&]/.test(c.search)){a();}}}function setupPresale(){$("input").livequery("focus",clearDefaultText);$("input").livequery("blur",replaceDefaultText);}function handleVerify(){$.post("/presaleajax/membercheck.php",{memberid:$("#memberid").val(),lastname:$("#lastname").val()},function(a){if(a=="NOMEMBER"){_gaq.push(["_trackEvent","presale","wronginfo",$("#lastname").val()]);$("#popup p.prompt").replaceWith("<p class='prompt'>Incorrect member info, try again</p>");$("#popup").effect("shake",{times:2},50);}else{_gaq.push(["_trackEvent","presale","memberconfirmed",$("#lastname").val()]);window.location=a;}});return false;}function showText2(){$("#text2").slideDown(250);}function clearDefaultText(a){if($(this).val()==$(this).attr("rel")){$(this).val("");}}function replaceDefaultText(a){if($(this).val()==""){$(this).val($(this).attr("rel"));}}function showPopUp(){$("#dimmer").fadeIn(250);$("#popup").fadeIn(500);$("input#q").attr("disabled","disabled");$("input#email").attr("disabled","disabled");}function hidePopup(){$("#popup").fadeOut(250);$("#dimmer").fadeOut(500);$("input#q").removeAttr("disabled","disabled");$("input#email").removeAttr("disabled","disabled");return;}function closePopup(){hidePopup();}function popUpRequest(b){var h,e;if(self.pageYOffset){h=self.pageXOffset;e=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){h=document.documentElement.scrollLeft;e=document.documentElement.scrollTop;}else{if(document.body){h=document.body.scrollLeft;e=document.body.scrollTop;}}}var g,d;if(self.innerHeight){g=self.innerWidth;d=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){g=document.documentElement.clientWidth;d=document.documentElement.clientHeight;}else{if(document.body){g=document.body.clientWidth;d=document.body.clientHeight;}}}var c=h+(g-575)/2;var a=e+(d-360)/2;document.getElementById("popup").style.top=a+"px";document.getElementById("popup").style.left=c+"px";showPopUp();$("#popup").html("<p>loading...</p>");$("#popup").load(b);}window.Modernizr=function(ap,ao,an){function O(){al.input=function(e){for(var d=0,g=e.length;d<g;d++){R[e[d]]=!!(e[d] in ae);}return R;}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),al.inputtypes=function(b){for(var n=0,m,j,g,c=b.length;n<c;n++){ae.setAttribute("type",j=b[n]),m=ae.type!=="text",m&&(ae.value=ad,ae.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(j)&&ae.style.WebkitAppearance!==an?(aj.appendChild(ae),g=ao.defaultView,m=g.getComputedStyle&&g.getComputedStyle(ae,null).WebkitAppearance!=="textfield"&&ae.offsetHeight!==0,aj.removeChild(ae)):/^(search|tel)$/.test(j)||(/^(url|email)$/.test(j)?m=ae.checkValidity&&ae.checkValidity()===!1:/^color$/.test(j)?(aj.appendChild(ae),aj.offsetWidth,m=ae.value!=ad,aj.removeChild(ae)):m=ae.value!=ad)),T[b[n]]=!!m;}return T;}("search tel url email datetime date month week time datetime-local number range color".split(" "));}function Q(g,e){var i=g.charAt(0).toUpperCase()+g.substr(1),h=(g+" "+Z.join(i+" ")+i).split(" ");return !!S(h,e);}function S(e,c){for(var g in e){if(af[e[g]]!==an&&(!c||c(e[g],ag))){return !0;}}}function U(d,c){return(""+d).indexOf(c)!==-1;}function W(d,c){return typeof d===c;}function Y(d,c){return aa(ab.join(d+";")+(c||""));}function aa(b){af.cssText=b;}var am="1.7",al={},ak=!0,aj=ao.documentElement,ai=ao.head||ao.getElementsByTagName("head")[0],ah="modernizr",ag=ao.createElement(ah),af=ag.style,ae=ao.createElement("input"),ad=":)",ac=Object.prototype.toString,ab=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),Z="Webkit Moz O ms Khtml".split(" "),X={svg:"http://www.w3.org/2000/svg"},V={},T={},R={},P=[],N,M=function(b){var i=ao.createElement("style"),h=ao.createElement("div"),g;i.textContent=b+"{#modernizr{height:3px}}",ai.appendChild(i),h.id="modernizr",aj.appendChild(h),g=h.offsetHeight===3,i.parentNode.removeChild(i),h.parentNode.removeChild(h);return !!g;},K=function(){function c(h,g){g=g||ao.createElement(b[h]||"div");var a=(h="on"+h) in g;a||(g.setAttribute||(g=ao.createElement("div")),g.setAttribute&&g.removeAttribute&&(g.setAttribute(h,""),a=W(g[h],"function"),W(g[h],an)||(g[h]=an),g.removeAttribute(h))),g=null;return a;}var b={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c;}(),J=({}).hasOwnProperty,I;W(J,an)||W(J.call,an)?I=function(d,c){return c in d&&W(d.constructor.prototype[c],an);}:I=function(d,c){return J.call(d,c);},V.flexbox=function(){function j(m,e,o,n){m.style.cssText=ab.join(e+":"+o+";")+(n||"");}function b(m,e,o,n){e+=":",m.style.cssText=(e+ab.join(o+";"+e)).slice(0,-e.length)+(n||"");}var i=ao.createElement("div"),h=ao.createElement("div");b(i,"display","box","width:42px;padding:0;"),j(h,"box-flex","1","width:10px;"),i.appendChild(h),aj.appendChild(i);var g=h.offsetWidth===42;i.removeChild(h),aj.removeChild(i);return g;},V.canvas=function(){var b=ao.createElement("canvas");return b.getContext&&b.getContext("2d");},V.canvastext=function(){return al.canvas&&W(ao.createElement("canvas").getContext("2d").fillText,"function");},V.webgl=function(){return !!ap.WebGLRenderingContext;},V.touch=function(){return"ontouchstart" in ap||M("@media ("+ab.join("touch-enabled),(")+"modernizr)");},V.geolocation=function(){return !!navigator.geolocation;},V.postmessage=function(){return !!ap.postMessage;},V.websqldatabase=function(){var a=!!ap.openDatabase;return a;},V.indexedDB=function(){for(var a=-1,g=Z.length;++a<g;){var e=Z[a].toLowerCase();if(ap[e+"_indexedDB"]||ap[e+"IndexedDB"]){return !0;}}return !1;},V.hashchange=function(){return K("hashchange",ap)&&(ao.documentMode===an||ao.documentMode>7);},V.history=function(){return !!(ap.history&&history.pushState);},V.draganddrop=function(){return K("dragstart")&&K("drop");},V.websockets=function(){return"WebSocket" in ap;},V.rgba=function(){aa("background-color:rgba(150,255,150,.5)");return U(af.backgroundColor,"rgba");},V.hsla=function(){aa("background-color:hsla(120,40%,100%,.5)");return U(af.backgroundColor,"rgba")||U(af.backgroundColor,"hsla");},V.multiplebgs=function(){aa("background:url(//:),url(//:),red url(//:)");return(new RegExp("(url\\s*\\(.*?){3}")).test(af.background);},V.backgroundsize=function(){return Q("backgroundSize");},V.borderimage=function(){return Q("borderImage");},V.borderradius=function(){return Q("borderRadius","",function(b){return U(b,"orderRadius");});},V.boxshadow=function(){return Q("boxShadow");},V.textshadow=function(){return ao.createElement("div").style.textShadow==="";},V.opacity=function(){Y("opacity:.55");return/^0.55$/.test(af.opacity);},V.cssanimations=function(){return Q("animationName");},V.csscolumns=function(){return Q("columnCount");},V.cssgradients=function(){var e="background-image:",d="gradient(linear,left top,right bottom,from(#9f9),to(white));",g="linear-gradient(left top,#9f9, white);";aa((e+ab.join(d+e)+ab.join(g+e)).slice(0,-e.length));return U(af.backgroundImage,"gradient");},V.cssreflections=function(){return Q("boxReflect");},V.csstransforms=function(){return !!S(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"]);},V.csstransforms3d=function(){var b=!!S(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);b&&"webkitPerspective" in aj.style&&(b=M("@media ("+ab.join("transform-3d),(")+"modernizr)"));return b;},V.csstransitions=function(){return Q("transitionProperty");},V.fontface=function(){var b,n,m=ai||aj,j=ao.createElement("style"),h=ao.implementation||{hasFeature:function(){return !1;}};j.type="text/css",m.insertBefore(j,m.firstChild),b=j.sheet||j.styleSheet;var g=h.hasFeature("CSS2","")?function(a){if(!b||!a){return !1;}var i=!1;try{b.insertRule(a,0),i=/src/i.test(b.cssRules[0].cssText),b.deleteRule(b.cssRules.length-1);}catch(e){}return i;}:function(a){if(!b||!a){return !1;}b.cssText=a;return b.cssText.length!==0&&/src/i.test(b.cssText)&&b.cssText.replace(/\r+|\n+/g,"").indexOf(a.split(" ")[0])===0;};n=g('@font-face { font-family: "font"; src: url(data:,); }'),m.removeChild(j);return n;},V.video=function(){var b=ao.createElement("video"),g=!!b.canPlayType;if(g){g=new Boolean(g),g.ogg=b.canPlayType('video/ogg; codecs="theora"');var e='video/mp4; codecs="avc1.42E01E';g.h264=b.canPlayType(e+'"')||b.canPlayType(e+', mp4a.40.2"'),g.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"');}return g;},V.audio=function(){var b=ao.createElement("audio"),d=!!b.canPlayType;d&&(d=new Boolean(d),d.ogg=b.canPlayType('audio/ogg; codecs="vorbis"'),d.mp3=b.canPlayType("audio/mpeg;"),d.wav=b.canPlayType('audio/wav; codecs="1"'),d.m4a=b.canPlayType("audio/x-m4a;")||b.canPlayType("audio/aac;"));return d;},V.localstorage=function(){try{return !!localStorage.getItem;}catch(b){return !1;}},V.sessionstorage=function(){try{return !!sessionStorage.getItem;}catch(b){return !1;}},V.webWorkers=function(){return !!ap.Worker;},V.applicationcache=function(){return !!ap.applicationCache;},V.svg=function(){return !!ao.createElementNS&&!!ao.createElementNS(X.svg,"svg").createSVGRect;},V.inlinesvg=function(){var b=ao.createElement("div");b.innerHTML="<svg/>";return(b.firstChild&&b.firstChild.namespaceURI)==X.svg;},V.smil=function(){return !!ao.createElementNS&&/SVG/.test(ac.call(ao.createElementNS(X.svg,"animate")));},V.svgclippaths=function(){return !!ao.createElementNS&&/SVG/.test(ac.call(ao.createElementNS(X.svg,"clipPath")));};for(var L in V){I(V,L)&&(N=L.toLowerCase(),al[N]=V[L](),P.push((al[N]?"":"no-")+N));}al.input||O(),al.crosswindowmessaging=al.postmessage,al.historymanagement=al.history,al.addTest=function(d,c){d=d.toLowerCase();if(!al[d]){c=!!c(),aj.className+=" "+(c?"":"no-")+d,al[d]=c;return al;}},aa(""),ag=ae=null,ak&&ap.attachEvent&&function(){var b=ao.createElement("div");b.innerHTML="<elem></elem>";return b.childNodes.length!==1;}()&&function(G,F){function q(h,g){var n=-1,m=h.length,j,i=[];while(++n<m){j=h[n],(g=j.media||g)!="screen"&&i.push(q(j.imports,g),j.cssText);}return i.join("");}function r(d){var c=-1;while(++c<C){d.createElement(D[c]);}}var E="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",D=E.split("|"),C=D.length,B=new RegExp("(^|\\s)("+E+")","gi"),A=new RegExp("<(/*)("+E+")","gi"),z=new RegExp("(^|[^\\n]*?\\s)("+E+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),y=F.createDocumentFragment(),x=F.documentElement,w=x.firstChild,v=F.createElement("body"),u=F.createElement("style"),s;r(F),r(y),w.insertBefore(u,w.firstChild),u.media="print",G.attachEvent("onbeforeprint",function(){var b=-1,j=q(F.styleSheets,"all"),d=[],i;s=s||F.body;while((i=z.exec(j))!=null){d.push((i[1]+i[2]+i[3]).replace(B,"$1.iepp_$2")+i[4]);}u.styleSheet.cssText=d.join("\n");while(++b<C){var h=F.getElementsByTagName(D[b]),g=h.length,e=-1;while(++e<g){h[e].className.indexOf("iepp_")<0&&(h[e].className+=" iepp_"+D[b]);}}y.appendChild(s),x.appendChild(v),v.className=s.className,v.innerHTML=s.innerHTML.replace(A,"<$1font");}),G.attachEvent("onafterprint",function(){v.innerHTML="",x.removeChild(v),x.appendChild(s),u.styleSheet.cssText="";});}(ap,ao),al._enableHTML5=ak,al._version=am,aj.className=aj.className.replace(/\bno-js\b/,"")+" js "+P.join(" ");return al;}(this,this.document);

/*! Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.0.3
 * Requires jQuery 1.1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */

(function($) {
	
$.extend($.fn, {
	livequery: function(type, fn, fn2) {
		var self = this, q;
		
		// Handle different call patterns
		if ($.isFunction(type))
			fn2 = fn, fn = type, type = undefined;
			
		// See if Live Query already exists
		$.each( $.livequery.queries, function(i, query) {
			if ( self.selector == query.selector && self.context == query.context &&
				type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
					// Found the query, exit the each loop
					return (q = query) && false;
		});
		
		// Create new Live Query if it wasn't found
		q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
		
		// Make sure it is running
		q.stopped = false;
		
		// Run it immediately for the first time
		q.run();
		
		// Contnue the chain
		return this;
	},
	
	expire: function(type, fn, fn2) {
		var self = this;
		
		// Handle different call patterns
		if ($.isFunction(type))
			fn2 = fn, fn = type, type = undefined;
			
		// Find the Live Query based on arguments and stop it
		$.each( $.livequery.queries, function(i, query) {
			if ( self.selector == query.selector && self.context == query.context && 
				(!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
					$.livequery.stop(query.id);
		});
		
		// Continue the chain
		return this;
	}
});

$.livequery = function(selector, context, type, fn, fn2) {
	this.selector = selector;
	this.context  = context || document;
	this.type     = type;
	this.fn       = fn;
	this.fn2      = fn2;
	this.elements = [];
	this.stopped  = false;
	
	// The id is the index of the Live Query in $.livequery.queries
	this.id = $.livequery.queries.push(this)-1;
	
	// Mark the functions for matching later on
	fn.$lqguid = fn.$lqguid || $.livequery.guid++;
	if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
	
	// Return the Live Query
	return this;
};

$.livequery.prototype = {
	stop: function() {
		var query = this;
		
		if ( this.type )
			// Unbind all bound events
			this.elements.unbind(this.type, this.fn);
		else if (this.fn2)
			// Call the second function for all matched elements
			this.elements.each(function(i, el) {
				query.fn2.apply(el);
			});
			
		// Clear out matched elements
		this.elements = [];
		
		// Stop the Live Query from running until restarted
		this.stopped = true;
	},
	
	run: function() {
		// Short-circuit if stopped
		if ( this.stopped ) return;
		var query = this;
		
		var oEls = this.elements,
			els  = $(this.selector, this.context),
			nEls = els.not(oEls);
		
		// Set elements to the latest set of matched elements
		this.elements = els;
		
		if (this.type) {
			// Bind events to newly matched elements
			nEls.bind(this.type, this.fn);
			
			// Unbind events to elements no longer matched
			if (oEls.length > 0)
				$.each(oEls, function(i, el) {
					if ( $.inArray(el, els) < 0 )
						$.event.remove(el, query.type, query.fn);
				});
		}
		else {
			// Call the first function for newly matched elements
			nEls.each(function() {
				query.fn.apply(this);
			});
			
			// Call the second function for elements no longer matched
			if ( this.fn2 && oEls.length > 0 )
				$.each(oEls, function(i, el) {
					if ( $.inArray(el, els) < 0 )
						query.fn2.apply(el);
				});
		}
	}
};

$.extend($.livequery, {
	guid: 0,
	queries: [],
	queue: [],
	running: false,
	timeout: null,
	
	checkQueue: function() {
		if ( $.livequery.running && $.livequery.queue.length ) {
			var length = $.livequery.queue.length;
			// Run each Live Query currently in the queue
			while ( length-- )
				$.livequery.queries[ $.livequery.queue.shift() ].run();
		}
	},
	
	pause: function() {
		// Don't run anymore Live Queries until restarted
		$.livequery.running = false;
	},
	
	play: function() {
		// Restart Live Queries
		$.livequery.running = true;
		// Request a run of the Live Queries
		$.livequery.run();
	},
	
	registerPlugin: function() {
		$.each( arguments, function(i,n) {
			// Short-circuit if the method doesn't exist
			if (!$.fn[n]) return;
			
			// Save a reference to the original method
			var old = $.fn[n];
			
			// Create a new method
			$.fn[n] = function() {
				// Call the original method
				var r = old.apply(this, arguments);
				
				// Request a run of the Live Queries
				$.livequery.run();
				
				// Return the original methods result
				return r;
			}
		});
	},
	
	run: function(id) {
		if (id != undefined) {
			// Put the particular Live Query in the queue if it doesn't already exist
			if ( $.inArray(id, $.livequery.queue) < 0 )
				$.livequery.queue.push( id );
		}
		else
			// Put each Live Query in the queue if it doesn't already exist
			$.each( $.livequery.queries, function(id) {
				if ( $.inArray(id, $.livequery.queue) < 0 )
					$.livequery.queue.push( id );
			});
		
		// Clear timeout if it already exists
		if ($.livequery.timeout) clearTimeout($.livequery.timeout);
		// Create a timeout to check the queue and actually run the Live Queries
		$.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
	},
	
	stop: function(id) {
		if (id != undefined)
			// Stop are particular Live Query
			$.livequery.queries[ id ].stop();
		else
			// Stop all Live Queries
			$.each( $.livequery.queries, function(id) {
				$.livequery.queries[ id ].stop();
			});
	}
});

// Register core DOM manipulation methods
$.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove');

// Run Live Queries when the Document is ready
$(function() { $.livequery.play(); });


// Save a reference to the original init method
var init = $.prototype.init;

// Create a new init method that exposes two new properties: selector and context
$.prototype.init = function(a,c) {
	// Call the original init and save the result
	var r = init.apply(this, arguments);
	
	// Copy over properties if they exist already
	if (a && a.selector)
		r.context = a.context, r.selector = a.selector;
		
	// Set properties
	if ( typeof a == 'string' )
		r.context = c || document, r.selector = a;
	
	// Return the result
	return r;
};

// Give the init function the jQuery prototype for later instantiation (needed after Rev 4091)
$.prototype.init.prototype = $.prototype;
	
})(jQuery);
