/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(Ap,y){function A1(){if(!AH.isReady){try{z.documentElement.doScroll("left")}catch(A){setTimeout(A1,1);return }AH.ready()}}function u(F,A){A.src?AH.ajax({url:A.src,async:false,dataType:"script"}):AH.globalEval(A.text||A.textContent||A.innerHTML||"");A.parentNode&&A.parentNode.removeChild(A)}function AP(F,A,O,K,L,G){var J=F.length;if(typeof A==="object"){for(var N in A){AP(F,N,A[N],K,L,O)}return F}if(O!==y){K=!G&&K&&AH.isFunction(O);for(N=0;N<J;N++){L(F[N],A,K?O.call(F[N],N,L(F[N],A)):O,G)}return F}return J?L(F[0],A):y}function Ag(){return(new Date).getTime()}function AO(){return false}function AM(){return true}function Al(F,A,G){G[0].type=F;return AH.event.handle.apply(A,G)}function AG(R){var Q,P=[],N=[],O=arguments,K,L,F,J,G,A;L=AH.data(this,"events");if(!(R.liveFired===this||!L||!L.live||R.button&&R.type==="click")){R.liveFired=this;var T=L.live.slice(0);for(J=0;J<T.length;J++){L=T[J];L.origType.replace(AY,"")===R.type?N.push(L.selector):T.splice(J--,1)}K=AH(R.target).closest(N,R.currentTarget);G=0;for(A=K.length;G<A;G++){for(J=0;J<T.length;J++){L=T[J];if(K[G].selector===L.selector){F=K[G].elem;N=null;if(L.preType==="mouseenter"||L.preType==="mouseleave"){N=AH(R.relatedTarget).closest(L.selector)[0]}if(!N||N!==F){P.push({elem:F,handleObj:L})}}}}G=0;for(A=P.length;G<A;G++){K=P[G];R.currentTarget=K.elem;R.data=K.handleObj.data;R.handleObj=K.handleObj;if(K.handleObj.origHandler.apply(K.elem,O)===false){Q=false;break}}return Q}}function p(F,A){return"live."+(F&&F!=="*"?F+".":"")+A.replace(/\./g,"`").replace(/ /g,"&")}function b(A){return !A||!A.parentNode||A.parentNode.nodeType===11}function BI(F,A){var G=0;A.each(function(){if(this.nodeName===(F[G]&&F[G].nodeName)){var L=AH.data(F[G++]),N=AH.data(this,L);if(L=L&&L.events){delete N.handle;N.events={};for(var J in L){for(var K in L[J]){AH.event.add(this,J,L[J][K],L[J][K].data)}}}}})}function A4(F,A,L){var J,K,G;A=A&&A[0]?A[0].ownerDocument||A[0]:z;if(F.length===1&&typeof F[0]==="string"&&F[0].length<512&&A===z&&!Aq.test(F[0])&&(AH.support.checkClone||!AK.test(F[0]))){K=true;if(G=AH.fragments[F[0]]){if(G!==1){J=G}}}if(!J){J=A.createDocumentFragment();AH.clean(F,A,J,L)}if(K){AH.fragments[F[0]]=G?J:1}return{fragment:J,cacheable:K}}function Ad(F,A){var G={};AH.each(t.concat.apply([],t.slice(0,A)),function(){G[this]=F});return G}function f(A){return"scrollTo" in A&&A.document?A:A.nodeType===9?A.defaultView||A.parentWindow:false}var AH=function(F,A){return new AH.fn.init(F,A)},g=Ap.jQuery,D=Ap.$,z=Ap.document,AS,A8=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Au=/^.[^:#\[\.,]*$/,AN=/\S/,v=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,h=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,AW=navigator.userAgent,C=false,AU=[],Ac,A2=Object.prototype.toString,Aw=Object.prototype.hasOwnProperty,AX=Array.prototype.push,AT=Array.prototype.slice,A7=Array.prototype.indexOf;AH.fn=AH.prototype={init:function(F,A){var J,G;if(!F){return this}if(F.nodeType){this.context=this[0]=F;this.length=1;return this}if(F==="body"&&!A){this.context=z;this[0]=z.body;this.selector="body";this.length=1;return this}if(typeof F==="string"){if((J=A8.exec(F))&&(J[1]||!A)){if(J[1]){G=A?A.ownerDocument||A:z;if(F=h.exec(F)){if(AH.isPlainObject(A)){F=[z.createElement(F[1])];AH.fn.attr.call(F,A,true)}else{F=[G.createElement(F[1])]}}else{F=A4([J[1]],[G]);F=(F.cacheable?F.fragment.cloneNode(true):F.fragment).childNodes}return AH.merge(this,F)}else{if(A=z.getElementById(J[2])){if(A.id!==J[2]){return AS.find(F)}this.length=1;this[0]=A}this.context=z;this.selector=F;return this}}else{if(!A&&/^\w+$/.test(F)){this.selector=F;this.context=z;F=z.getElementsByTagName(F);return AH.merge(this,F)}else{return !A||A.jquery?(A||AS).find(F):AH(A).find(F)}}}else{if(AH.isFunction(F)){return AS.ready(F)}}if(F.selector!==y){this.selector=F.selector;this.context=F.context}return AH.makeArray(F,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return AT.call(this,0)},get:function(A){return A==null?this.toArray():A<0?this.slice(A)[0]:this[A]},pushStack:function(F,A,J){var G=AH();AH.isArray(F)?AX.apply(G,F):AH.merge(G,F);G.prevObject=this;G.context=this.context;if(A==="find"){G.selector=this.selector+(this.selector?" ":"")+J}else{if(A){G.selector=this.selector+"."+A+"("+J+")"}}return G},each:function(F,A){return AH.each(this,F,A)},ready:function(A){AH.bindReady();if(AH.isReady){A.call(z,AH)}else{AU&&AU.push(A)}return this},eq:function(A){return A===-1?this.slice(A):this.slice(A,+A+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(AT.apply(this,arguments),"slice",AT.call(arguments).join(","))},map:function(A){return this.pushStack(AH.map(this,function(F,G){return A.call(F,G,F)}))},end:function(){return this.prevObject||AH(null)},push:AX,sort:[].sort,splice:[].splice};AH.fn.init.prototype=AH.fn;AH.extend=AH.fn.extend=function(){var F=arguments[0]||{},A=1,O=arguments.length,K=false,L,G,J,N;if(typeof F==="boolean"){K=F;F=arguments[1]||{};A=2}if(typeof F!=="object"&&!AH.isFunction(F)){F={}}if(O===A){F=this;--A}for(;A<O;A++){if((L=arguments[A])!=null){for(G in L){J=F[G];N=L[G];if(F!==N){if(K&&N&&(AH.isPlainObject(N)||AH.isArray(N))){J=J&&(AH.isPlainObject(J)||AH.isArray(J))?J:AH.isArray(N)?[]:{};F[G]=AH.extend(K,J,N)}else{if(N!==y){F[G]=N}}}}}}return F};AH.extend({noConflict:function(A){Ap.$=D;if(A){Ap.jQuery=g}return AH},isReady:false,ready:function(){if(!AH.isReady){if(!z.body){return setTimeout(AH.ready,13)}AH.isReady=true;if(AU){for(var F,A=0;F=AU[A++];){F.call(z,AH)}AU=null}AH.fn.triggerHandler&&AH(z).triggerHandler("ready")}},bindReady:function(){if(!C){C=true;if(z.readyState==="complete"){return AH.ready()}if(z.addEventListener){z.addEventListener("DOMContentLoaded",Ac,false);Ap.addEventListener("load",AH.ready,false)}else{if(z.attachEvent){z.attachEvent("onreadystatechange",Ac);Ap.attachEvent("onload",AH.ready);var F=false;try{F=Ap.frameElement==null}catch(A){}z.documentElement.doScroll&&F&&A1()}}}},isFunction:function(A){return A2.call(A)==="[object Function]"},isArray:function(A){return A2.call(A)==="[object Array]"},isPlainObject:function(F){if(!F||A2.call(F)!=="[object Object]"||F.nodeType||F.setInterval){return false}if(F.constructor&&!Aw.call(F,"constructor")&&!Aw.call(F.constructor.prototype,"isPrototypeOf")){return false}var A;for(A in F){}return A===y||Aw.call(F,A)},isEmptyObject:function(F){for(var A in F){return false}return true},error:function(A){throw A},parseJSON:function(A){if(typeof A!=="string"||!A){return null}A=AH.trim(A);if(/^[\],:{}\s]*$/.test(A.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return Ap.JSON&&Ap.JSON.parse?Ap.JSON.parse(A):(new Function("return "+A))()}else{AH.error("Invalid JSON: "+A)}},noop:function(){},globalEval:function(F){if(F&&AN.test(F)){var A=z.getElementsByTagName("head")[0]||z.documentElement,G=z.createElement("script");G.type="text/javascript";if(AH.support.scriptEval){G.appendChild(z.createTextNode(F))}else{G.text=F}A.insertBefore(G,A.firstChild);A.removeChild(G)}},nodeName:function(F,A){return F.nodeName&&F.nodeName.toUpperCase()===A.toUpperCase()},each:function(F,A,N){var K,L=0,G=F.length,J=G===y||AH.isFunction(F);if(N){if(J){for(K in F){if(A.apply(F[K],N)===false){break}}}else{for(;L<G;){if(A.apply(F[L++],N)===false){break}}}}else{if(J){for(K in F){if(A.call(F[K],K,F[K])===false){break}}}else{for(N=F[0];L<G&&A.call(N,L,N)!==false;N=F[++L]){}}}return F},trim:function(A){return(A||"").replace(v,"")},makeArray:function(F,A){A=A||[];if(F!=null){F.length==null||typeof F==="string"||AH.isFunction(F)||typeof F!=="function"&&F.setInterval?AX.call(A,F):AH.merge(A,F)}return A},inArray:function(F,A){if(A.indexOf){return A.indexOf(F)}for(var J=0,G=A.length;J<G;J++){if(A[J]===F){return J}}return -1},merge:function(F,A){var K=F.length,G=0;if(typeof A.length==="number"){for(var J=A.length;G<J;G++){F[K++]=A[G]}}else{for(;A[G]!==y;){F[K++]=A[G++]}}F.length=K;return F},grep:function(F,A,L){for(var J=[],K=0,G=F.length;K<G;K++){!L!==!A(F[K],K)&&J.push(F[K])}return J},map:function(F,A,N){for(var K=[],L,G=0,J=F.length;G<J;G++){L=A(F[G],G,N);if(L!=null){K[K.length]=L}}return K.concat.apply([],K)},guid:1,proxy:function(F,A,G){if(arguments.length===2){if(typeof A==="string"){G=F;F=G[A];A=y}else{if(A&&!AH.isFunction(A)){G=A;A=y}}}if(!A&&F){A=function(){return F.apply(G||this,arguments)}}if(F){A.guid=F.guid=F.guid||A.guid||AH.guid++}return A},uaMatch:function(A){A=A.toLowerCase();A=/(webkit)[ \/]([\w.]+)/.exec(A)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(A)||/(msie) ([\w.]+)/.exec(A)||!/compatible/.test(A)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(A)||[];return{browser:A[1]||"",version:A[2]||"0"}},browser:{}});AW=AH.uaMatch(AW);if(AW.browser){AH.browser[AW.browser]=true;AH.browser.version=AW.version}if(AH.browser.webkit){AH.browser.safari=true}if(A7){AH.inArray=function(F,A){return A7.call(A,F)}}AS=AH(z);if(z.addEventListener){Ac=function(){z.removeEventListener("DOMContentLoaded",Ac,false);AH.ready()}}else{if(z.attachEvent){Ac=function(){if(z.readyState==="complete"){z.detachEvent("onreadystatechange",Ac);AH.ready()}}}}(function(){AH.support={};var P=z.documentElement,O=z.createElement("script"),N=z.createElement("div"),K="script"+Ag();N.style.display="none";N.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var L=N.getElementsByTagName("*"),G=N.getElementsByTagName("a")[0];if(!(!L||!L.length||!G)){AH.support={leadingWhitespace:N.firstChild.nodeType===3,tbody:!N.getElementsByTagName("tbody").length,htmlSerialize:!!N.getElementsByTagName("link").length,style:/red/.test(G.getAttribute("style")),hrefNormalized:G.getAttribute("href")==="/a",opacity:/^0.55$/.test(G.style.opacity),cssFloat:!!G.style.cssFloat,checkOn:N.getElementsByTagName("input")[0].value==="on",optSelected:z.createElement("select").appendChild(z.createElement("option")).selected,parentNode:N.removeChild(N.appendChild(z.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};O.type="text/javascript";try{O.appendChild(z.createTextNode("window."+K+"=1;"))}catch(J){}P.insertBefore(O,P.firstChild);if(Ap[K]){AH.support.scriptEval=true;delete Ap[K]}try{delete O.test}catch(A){AH.support.deleteExpando=false}P.removeChild(O);if(N.attachEvent&&N.fireEvent){N.attachEvent("onclick",function F(){AH.support.noCloneEvent=false;N.detachEvent("onclick",F)});N.cloneNode(true).fireEvent("onclick")}N=z.createElement("div");N.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";P=z.createDocumentFragment();P.appendChild(N.firstChild);AH.support.checkClone=P.cloneNode(true).cloneNode(true).lastChild.checked;AH(function(){var Q=z.createElement("div");Q.style.width=Q.style.paddingLeft="1px";z.body.appendChild(Q);AH.boxModel=AH.support.boxModel=Q.offsetWidth===2;z.body.removeChild(Q).style.display="none"});P=function(Q){var T=z.createElement("div");Q="on"+Q;var R=Q in T;if(!R){T.setAttribute(Q,"return;");R=typeof T[Q]==="function"}return R};AH.support.submitBubbles=P("submit");AH.support.changeBubbles=P("change");P=O=N=L=G=null}})();AH.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var Ai="jQuery"+Ag(),E=0,At={};AH.extend({cache:{},expando:Ai,noData:{embed:true,object:true,applet:true},data:function(F,A,K){if(!(F.nodeName&&AH.noData[F.nodeName.toLowerCase()])){F=F==Ap?At:F;var G=F[Ai],J=AH.cache;if(!G&&typeof A==="string"&&K===y){return null}G||(G=++E);if(typeof A==="object"){F[Ai]=G;J[G]=AH.extend(true,{},A)}else{if(!J[G]){F[Ai]=G;J[G]={}}}F=J[G];if(K!==y){F[A]=K}return typeof A==="string"?F[A]:F}},removeData:function(F,A){if(!(F.nodeName&&AH.noData[F.nodeName.toLowerCase()])){F=F==Ap?At:F;var K=F[Ai],G=AH.cache,J=G[K];if(A){if(J){delete J[A];AH.isEmptyObject(J)&&AH.removeData(F)}}else{if(AH.support.deleteExpando){delete F[AH.expando]}else{F.removeAttribute&&F.removeAttribute(AH.expando)}delete G[K]}}}});AH.fn.extend({data:function(F,A){if(typeof F==="undefined"&&this.length){return AH.data(this[0])}else{if(typeof F==="object"){return this.each(function(){AH.data(this,F)})}}var J=F.split(".");J[1]=J[1]?"."+J[1]:"";if(A===y){var G=this.triggerHandler("getData"+J[1]+"!",[J[0]]);if(G===y&&this.length){G=AH.data(this[0],F)}return G===y&&J[1]?this.data(J[0]):G}else{return this.trigger("setData"+J[1]+"!",[J[0],A]).each(function(){AH.data(this,F,A)})}},removeData:function(A){return this.each(function(){AH.removeData(this,A)})}});AH.extend({queue:function(F,A,J){if(F){A=(A||"fx")+"queue";var G=AH.data(F,A);if(!J){return G||[]}if(!G||AH.isArray(J)){G=AH.data(F,A,AH.makeArray(J))}else{G.push(J)}return G}},dequeue:function(F,A){A=A||"fx";var J=AH.queue(F,A),G=J.shift();if(G==="inprogress"){G=J.shift()}if(G){A==="fx"&&J.unshift("inprogress");G.call(F,function(){AH.dequeue(F,A)})}}});AH.fn.extend({queue:function(F,A){if(typeof F!=="string"){A=F;F="fx"}if(A===y){return AH.queue(this[0],F)}return this.each(function(){var G=AH.queue(this,F,A);F==="fx"&&G[0]!=="inprogress"&&AH.dequeue(this,F)})},dequeue:function(A){return this.each(function(){AH.dequeue(this,A)})},delay:function(F,A){F=AH.fx?AH.fx.speeds[F]||F:F;A=A||"fx";return this.queue(A,function(){var G=this;setTimeout(function(){AH.dequeue(G,A)},F)})},clearQueue:function(A){return this.queue(A||"fx",[])}});var BD=/[\n\t]/g,AB=/\s+/,A9=/\r/g,An=/href|src|style/,Av=/(button|input)/i,AV=/(button|input|object|select|textarea)/i,AA=/^(a|area)$/i,Az=/radio|checkbox/;AH.fn.extend({attr:function(F,A){return AP(this,F,A,true,AH.attr)},removeAttr:function(A){return this.each(function(){AH.attr(this,A,"");this.nodeType===1&&this.removeAttribute(A)})},addClass:function(P){if(AH.isFunction(P)){return this.each(function(R){var Q=AH(this);Q.addClass(P.call(this,R,Q.attr("class")))})}if(P&&typeof P==="string"){for(var O=(P||"").split(AB),N=0,K=this.length;N<K;N++){var L=this[N];if(L.nodeType===1){if(L.className){for(var G=" "+L.className+" ",J=L.className,A=0,F=O.length;A<F;A++){if(G.indexOf(" "+O[A]+" ")<0){J+=" "+O[A]}}L.className=AH.trim(J)}else{L.className=P}}}}return this},removeClass:function(F){if(AH.isFunction(F)){return this.each(function(P){var Q=AH(this);Q.removeClass(F.call(this,P,Q.attr("class")))})}if(F&&typeof F==="string"||F===y){for(var A=(F||"").split(AB),O=0,K=this.length;O<K;O++){var L=this[O];if(L.nodeType===1&&L.className){if(F){for(var G=(" "+L.className+" ").replace(BD," "),J=0,N=A.length;J<N;J++){G=G.replace(" "+A[J]+" "," ")}L.className=AH.trim(G)}else{L.className=""}}}}return this},toggleClass:function(F,A){var J=typeof F,G=typeof A==="boolean";if(AH.isFunction(F)){return this.each(function(L){var K=AH(this);K.toggleClass(F.call(this,L,K.attr("class"),A),A)})}return this.each(function(){if(J==="string"){for(var O,L=0,N=AH(this),P=A,K=F.split(AB);O=K[L++];){P=G?P:!N.hasClass(O);N[P?"addClass":"removeClass"](O)}}else{if(J==="undefined"||J==="boolean"){this.className&&AH.data(this,"__className__",this.className);this.className=this.className||F===false?"":AH.data(this,"__className__")||""}}})},hasClass:function(F){F=" "+F+" ";for(var A=0,G=this.length;A<G;A++){if((" "+this[A].className+" ").replace(BD," ").indexOf(F)>-1){return true}}return false},val:function(F){if(F===y){var A=this[0];if(A){if(AH.nodeName(A,"option")){return(A.attributes.value||{}).specified?A.value:A.text}if(AH.nodeName(A,"select")){var O=A.selectedIndex,K=[],L=A.options;A=A.type==="select-one";if(O<0){return null}var G=A?O:0;for(O=A?O+1:L.length;G<O;G++){var J=L[G];if(J.selected){F=AH(J).val();if(A){return F}K.push(F)}}return K}if(Az.test(A.type)&&!AH.support.checkOn){return A.getAttribute("value")===null?"on":A.value}return(A.value||"").replace(A9,"")}return y}var N=AH.isFunction(F);return this.each(function(P){var T=AH(this),R=F;if(this.nodeType===1){if(N){R=F.call(this,P,T.val())}if(typeof R==="number"){R+=""}if(AH.isArray(R)&&Az.test(this.type)){this.checked=AH.inArray(T.val(),R)>=0}else{if(AH.nodeName(this,"select")){var Q=AH.makeArray(R);AH("option",this).each(function(){this.selected=AH.inArray(AH(this).val(),Q)>=0});if(!Q.length){this.selectedIndex=-1}}else{this.value=R}}}})}});AH.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(F,A,L,J){if(!F||F.nodeType===3||F.nodeType===8){return y}if(J&&A in AH.attrFn){return AH(F)[A](L)}J=F.nodeType!==1||!AH.isXMLDoc(F);var K=L!==y;A=J&&AH.props[A]||A;if(F.nodeType===1){var G=An.test(A);if(A in F&&J&&!G){if(K){A==="type"&&Av.test(F.nodeName)&&F.parentNode&&AH.error("type property can't be changed");F[A]=L}if(AH.nodeName(F,"form")&&F.getAttributeNode(A)){return F.getAttributeNode(A).nodeValue}if(A==="tabIndex"){return(A=F.getAttributeNode("tabIndex"))&&A.specified?A.value:AV.test(F.nodeName)||AA.test(F.nodeName)&&F.href?0:y}return F[A]}if(!AH.support.style&&J&&A==="style"){if(K){F.style.cssText=""+L}return F.style.cssText}K&&F.setAttribute(A,""+L);F=!AH.support.hrefNormalized&&J&&G?F.getAttribute(A,2):F.getAttribute(A);return F===null?y:F}return AH.style(F,A,L)}});var AY=/\.(.*)$/,j=function(A){return A.replace(/[^\w\s\.\|`]/g,function(F){return"\\"+F})};AH.event={add:function(T,R,P,N){if(!(T.nodeType===3||T.nodeType===8)){if(T.setInterval&&T!==Ap&&!T.frameElement){T=Ap}var O,K;if(P.handler){O=P;P=O.handler}if(!P.guid){P.guid=AH.guid++}if(K=AH.data(T)){var L=K.events=K.events||{},F=K.handle;if(!F){K.handle=F=function(){return typeof AH!=="undefined"&&!AH.event.triggered?AH.event.handle.apply(F.elem,arguments):y}}F.elem=T;R=R.split(" ");for(var J,G=0,A;J=R[G++];){K=O?AH.extend({},O):{handler:P,data:N};if(J.indexOf(".")>-1){A=J.split(".");J=A.shift();K.namespace=A.slice(0).sort().join(".")}else{A=[];K.namespace=""}K.type=J;K.guid=P.guid;var V=L[J],Q=AH.event.special[J]||{};if(!V){V=L[J]=[];if(!Q.setup||Q.setup.call(T,N,A,F)===false){if(T.addEventListener){T.addEventListener(J,F,false)}else{T.attachEvent&&T.attachEvent("on"+J,F)}}}if(Q.add){Q.add.call(T,K);if(!K.handler.guid){K.handler.guid=P.guid}}V.push(K);AH.event.global[J]=true}T=null}}},global:{},remove:function(W,V,R,P){if(!(W.nodeType===3||W.nodeType===8)){var Q,N=0,O,J,L,K,A,X,T=AH.data(W),F=T&&T.events;if(T&&F){if(V&&V.type){R=V.handler;V=V.type}if(!V||typeof V==="string"&&V.charAt(0)==="."){V=V||"";for(Q in F){AH.event.remove(W,Q+V)}}else{for(V=V.split(" ");Q=V[N++];){K=Q;O=Q.indexOf(".")<0;J=[];if(!O){J=Q.split(".");Q=J.shift();L=new RegExp("(^|\\.)"+AH.map(J.slice(0).sort(),j).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=F[Q]){if(R){K=AH.event.special[Q]||{};for(G=P||0;G<A.length;G++){X=A[G];if(R.guid===X.guid){if(O||L.test(X.namespace)){P==null&&A.splice(G--,1);K.remove&&K.remove.call(W,X)}if(P!=null){break}}}if(A.length===0||P!=null&&A.length===1){if(!K.teardown||K.teardown.call(W,J)===false){Ah(W,Q,T.handle)}delete F[Q]}}else{for(var G=0;G<A.length;G++){X=A[G];if(O||L.test(X.namespace)){AH.event.remove(W,K,X.handler,G);A.splice(G--,1)}}}}}if(AH.isEmptyObject(F)){if(V=T.handle){V.elem=null}delete T.events;delete T.handle;AH.isEmptyObject(T)&&AH.removeData(W)}}}}},trigger:function(Q,P,O,L){var N=Q.type||Q;if(!L){Q=typeof Q==="object"?Q[Ai]?Q:AH.extend(AH.Event(N),Q):AH.Event(N);if(N.indexOf("!")>=0){Q.type=N=N.slice(0,-1);Q.exclusive=true}if(!O){Q.stopPropagation();AH.event.global[N]&&AH.each(AH.cache,function(){this.events&&this.events[N]&&AH.event.trigger(Q,P,this.handle.elem)})}if(!O||O.nodeType===3||O.nodeType===8){return y}Q.result=y;Q.target=O;P=AH.makeArray(P);P.unshift(Q)}Q.currentTarget=O;(L=AH.data(O,"handle"))&&L.apply(O,P);L=O.parentNode||O.ownerDocument;try{if(!(O&&O.nodeName&&AH.noData[O.nodeName.toLowerCase()])){if(O["on"+N]&&O["on"+N].apply(O,P)===false){Q.result=false}}}catch(J){}if(!Q.isPropagationStopped()&&L){AH.event.trigger(Q,P,L,true)}else{if(!Q.isDefaultPrevented()){L=Q.target;var K,A=AH.nodeName(L,"a")&&N==="click",G=AH.event.special[N]||{};if((!G._default||G._default.call(O,Q)===false)&&!A&&!(L&&L.nodeName&&AH.noData[L.nodeName.toLowerCase()])){try{if(L[N]){if(K=L["on"+N]){L["on"+N]=null}AH.event.triggered=true;L[N]()}}catch(F){}if(K){L["on"+N]=K}AH.event.triggered=false}}}},handle:function(F){var A,N,K,L;F=arguments[0]=AH.event.fix(F||Ap.event);F.currentTarget=this;A=F.type.indexOf(".")<0&&!F.exclusive;if(!A){N=F.type.split(".");F.type=N.shift();K=new RegExp("(^|\\.)"+N.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}L=AH.data(this,"events");N=L[F.type];if(L&&N){N=N.slice(0);L=0;for(var G=N.length;L<G;L++){var J=N[L];if(A||K.test(J.namespace)){F.handler=J.handler;F.data=J.data;F.handleObj=J;J=J.handler.apply(this,arguments);if(J!==y){F.result=J;if(J===false){F.preventDefault();F.stopPropagation()}}if(F.isImmediatePropagationStopped()){break}}}}return F.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(F){if(F[Ai]){return F}var A=F;F=AH.Event(A);for(var J=this.props.length,G;J;){G=this.props[--J];F[G]=A[G]}if(!F.target){F.target=F.srcElement||z}if(F.target.nodeType===3){F.target=F.target.parentNode}if(!F.relatedTarget&&F.fromElement){F.relatedTarget=F.fromElement===F.target?F.toElement:F.fromElement}if(F.pageX==null&&F.clientX!=null){A=z.documentElement;J=z.body;F.pageX=F.clientX+(A&&A.scrollLeft||J&&J.scrollLeft||0)-(A&&A.clientLeft||J&&J.clientLeft||0);F.pageY=F.clientY+(A&&A.scrollTop||J&&J.scrollTop||0)-(A&&A.clientTop||J&&J.clientTop||0)}if(!F.which&&(F.charCode||F.charCode===0?F.charCode:F.keyCode)){F.which=F.charCode||F.keyCode}if(!F.metaKey&&F.ctrlKey){F.metaKey=F.ctrlKey}if(!F.which&&F.button!==y){F.which=F.button&1?1:F.button&2?3:F.button&4?2:0}return F},guid:100000000,proxy:AH.proxy,special:{ready:{setup:AH.bindReady,teardown:AH.noop},live:{add:function(A){AH.event.add(this,A.origType,AH.extend({},A,{handler:AG}))},remove:function(F){var A=true,G=F.origType.replace(AY,"");AH.each(AH.data(this,"events").live||[],function(){if(G===this.origType.replace(AY,"")){return A=false}});A&&AH.event.remove(this,F.origType,AG)}},beforeunload:{setup:function(F,A,G){if(this.setInterval){this.onbeforeunload=G}return false},teardown:function(F,A){if(this.onbeforeunload===A){this.onbeforeunload=null}}}}};var Ah=z.removeEventListener?function(F,A,G){F.removeEventListener(A,G,false)}:function(F,A,G){F.detachEvent("on"+A,G)};AH.Event=function(A){if(!this.preventDefault){return new AH.Event(A)}if(A&&A.type){this.originalEvent=A;this.type=A.type}else{this.type=A}this.timeStamp=Ag();this[Ai]=true};AH.Event.prototype={preventDefault:function(){this.isDefaultPrevented=AM;var A=this.originalEvent;if(A){A.preventDefault&&A.preventDefault();A.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=AM;var A=this.originalEvent;if(A){A.stopPropagation&&A.stopPropagation();A.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=AM;this.stopPropagation()},isDefaultPrevented:AO,isPropagationStopped:AO,isImmediatePropagationStopped:AO};var AE=function(F){var A=F.relatedTarget;try{for(;A&&A!==this;){A=A.parentNode}if(A!==this){F.type=F.data;AH.event.handle.apply(this,arguments)}}catch(G){}},n=function(A){A.type=A.data;AH.event.handle.apply(this,arguments)};AH.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(F,A){AH.event.special[F]={setup:function(G){AH.event.add(this,A,G&&G.selector?n:AE,F)},teardown:function(G){AH.event.remove(this,A,G&&G.selector?n:AE)}}});if(!AH.support.submitBubbles){AH.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){AH.event.add(this,"click.specialSubmit",function(F){var A=F.target,G=A.type;if((G==="submit"||G==="image")&&AH(A).closest("form").length){return Al("submit",this,arguments)}});AH.event.add(this,"keypress.specialSubmit",function(F){var A=F.target,G=A.type;if((G==="text"||G==="password")&&AH(A).closest("form").length&&F.keyCode===13){return Al("submit",this,arguments)}})}else{return false}},teardown:function(){AH.event.remove(this,".specialSubmit")}}}if(!AH.support.changeBubbles){var k=/textarea|input|select/i,I,U=function(F){var A=F.type,G=F.value;if(A==="radio"||A==="checkbox"){G=F.checked}else{if(A==="select-multiple"){G=F.selectedIndex>-1?AH.map(F.options,function(J){return J.selected}).join("-"):""}else{if(F.nodeName.toLowerCase()==="select"){G=F.selectedIndex}}}return G},BC=function(F,A){var K=F.target,G,J;if(!(!k.test(K.nodeName)||K.readOnly)){G=AH.data(K,"_change_data");J=U(K);if(F.type!=="focusout"||K.type!=="radio"){AH.data(K,"_change_data",J)}if(!(G===y||J===G)){if(G!=null||J){F.type="change";return AH.event.trigger(F,A,K)}}}};AH.event.special.change={filters:{focusout:BC,click:function(F){var A=F.target,G=A.type;if(G==="radio"||G==="checkbox"||A.nodeName.toLowerCase()==="select"){return BC.call(this,F)}},keydown:function(F){var A=F.target,G=A.type;if(F.keyCode===13&&A.nodeName.toLowerCase()!=="textarea"||F.keyCode===32&&(G==="checkbox"||G==="radio")||G==="select-multiple"){return BC.call(this,F)}},beforeactivate:function(A){A=A.target;AH.data(A,"_change_data",U(A))}},setup:function(){if(this.type==="file"){return false}for(var A in I){AH.event.add(this,A+".specialChange",I[A])}return k.test(this.nodeName)},teardown:function(){AH.event.remove(this,".specialChange");return k.test(this.nodeName)}};I=AH.event.special.change.filters}z.addEventListener&&AH.each({focus:"focusin",blur:"focusout"},function(F,A){function G(J){J=AH.event.fix(J);J.type=A;return AH.event.handle.call(this,J)}AH.event.special[A]={setup:function(){this.addEventListener(F,G,true)},teardown:function(){this.removeEventListener(F,G,true)}}});AH.each(["bind","one"],function(F,A){AH.fn[A]=function(O,K,L){if(typeof O==="object"){for(var G in O){this[A](G,K,O[G],L)}return this}if(AH.isFunction(K)){L=K;K=y}var J=A==="one"?AH.proxy(L,function(P){AH(this).unbind(P,J);return L.apply(this,arguments)}):L;if(O==="unload"&&A!=="one"){this.one(O,K,L)}else{G=0;for(var N=this.length;G<N;G++){AH.event.add(this[G],O,J,K)}}return this}});AH.fn.extend({unbind:function(F,A){if(typeof F==="object"&&!F.preventDefault){for(var J in F){this.unbind(J,F[J])}}else{J=0;for(var G=this.length;J<G;J++){AH.event.remove(this[J],F,A)}}return this},delegate:function(F,A,J,G){return this.live(A,J,G,F)},undelegate:function(F,A,G){return arguments.length===0?this.unbind("live"):this.die(A,null,G,F)},trigger:function(F,A){return this.each(function(){AH.event.trigger(F,A,this)})},triggerHandler:function(F,A){if(this[0]){F=AH.Event(F);F.preventDefault();F.stopPropagation();AH.event.trigger(F,A,this[0]);return F.result}},toggle:function(F){for(var A=arguments,G=1;G<A.length;){AH.proxy(F,A[G++])}return this.click(AH.proxy(F,function(J){var K=(AH.data(this,"lastToggle"+F.guid)||0)%G;AH.data(this,"lastToggle"+F.guid,K+1);J.preventDefault();return A[K].apply(this,arguments)||false}))},hover:function(F,A){return this.mouseenter(F).mouseleave(A||F)}});var BG={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};AH.each(["live","die"],function(F,A){AH.fn[A]=function(R,P,Q,N){var O,J=0,L,K,G=N||this.selector,T=N?this:AH(this.context);if(AH.isFunction(P)){Q=P;P=y}for(R=(R||"").split(" ");(O=R[J++])!=null;){N=AY.exec(O);L="";if(N){L=N[0];O=O.replace(AY,"")}if(O==="hover"){R.push("mouseenter"+L,"mouseleave"+L)}else{K=O;if(O==="focus"||O==="blur"){R.push(BG[O]+L);O+=L}else{O=(BG[O]||O)+L}A==="live"?T.each(function(){AH.event.add(this,p(O,G),{data:P,selector:G,handler:Q,origType:O,origHandler:Q,preType:K})}):T.unbind(p(O,G),Q)}}return this}});AH.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(F,A){AH.fn[A]=function(G){return G?this.bind(A,G):this.trigger(A)};if(AH.attrFn){AH.attrFn[A]=true}});Ap.attachEvent&&!Ap.addEventListener&&Ap.attachEvent("onunload",function(){for(var F in AH.cache){if(AH.cache[F].handle){try{AH.event.remove(AH.cache[F].handle.elem)}catch(A){}}}});(function(){function Z(Ab){for(var Aa="",w,s=0;Ab[s];s++){w=Ab[s];if(w.nodeType===3||w.nodeType===4){Aa+=w.nodeValue}else{if(w.nodeType!==8){Aa+=Z(w.childNodes)}}}return Aa}function Y(BL,BK,Ab,Aa,s,w){s=0;for(var BN=Aa.length;s<BN;s++){var BO=Aa[s];if(BO){BO=BO[BL];for(var BM=false;BO;){if(BO.sizcache===Ab){BM=Aa[BO.sizset];break}if(BO.nodeType===1&&!w){BO.sizcache=Ab;BO.sizset=s}if(BO.nodeName.toLowerCase()===BK){BM=BO;break}BO=BO[BL]}Aa[s]=BM}}}function X(BL,BK,Ab,Aa,s,w){s=0;for(var BN=Aa.length;s<BN;s++){var BO=Aa[s];if(BO){BO=BO[BL];for(var BM=false;BO;){if(BO.sizcache===Ab){BM=Aa[BO.sizset];break}if(BO.nodeType===1){if(!w){BO.sizcache=Ab;BO.sizset=s}if(typeof BK!=="string"){if(BO===BK){BM=true;break}}else{if(Q.filter(BK,[BO]).length>0){BM=BO;break}}}BO=BO[BL]}Aa[s]=BM}}}var V=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,W=0,R=Object.prototype.toString,T=false,O=true;[0,0].sort(function(){O=false;return 0});var Q=function(BN,BM,BK,Ab){BK=BK||[];var w=BM=BM||z;if(BM.nodeType!==1&&BM.nodeType!==9){return[]}if(!BN||typeof BN!=="string"){return BK}for(var Aa=[],BS,BT,BP,BL,BR=true,BO=F(BM),BQ=BN;(V.exec(""),BS=V.exec(BQ))!==null;){BQ=BS[3];Aa.push(BS[1]);if(BS[2]){BL=BS[3];break}}if(Aa.length>1&&L.exec(BN)){if(Aa.length===2&&P.relative[Aa[0]]){BT=c(Aa[0]+Aa[1],BM)}else{for(BT=P.relative[Aa[0]]?[BM]:Q(Aa.shift(),BM);Aa.length;){BN=Aa.shift();if(P.relative[BN]){BN+=Aa.shift()}BT=c(BN,BT)}}}else{if(!Ab&&Aa.length>1&&BM.nodeType===9&&!BO&&P.match.ID.test(Aa[0])&&!P.match.ID.test(Aa[Aa.length-1])){BS=Q.find(Aa.shift(),BM,BO);BM=BS.expr?Q.filter(BS.expr,BS.set)[0]:BS.set[0]}if(BM){BS=Ab?{expr:Aa.pop(),set:A(Ab)}:Q.find(Aa.pop(),Aa.length===1&&(Aa[0]==="~"||Aa[0]==="+")&&BM.parentNode?BM.parentNode:BM,BO);BT=BS.expr?Q.filter(BS.expr,BS.set):BS.set;if(Aa.length>0){BP=A(BT)}else{BR=false}for(;Aa.length;){var s=Aa.pop();BS=s;if(P.relative[s]){BS=Aa.pop()}else{s=""}if(BS==null){BS=BM}P.relative[s](BP,BS,BO)}}else{BP=[]}}BP||(BP=BT);BP||Q.error(s||BN);if(R.call(BP)==="[object Array]"){if(BR){if(BM&&BM.nodeType===1){for(BN=0;BP[BN]!=null;BN++){if(BP[BN]&&(BP[BN]===true||BP[BN].nodeType===1&&J(BM,BP[BN]))){BK.push(BT[BN])}}}else{for(BN=0;BP[BN]!=null;BN++){BP[BN]&&BP[BN].nodeType===1&&BK.push(BT[BN])}}}else{BK.push.apply(BK,BP)}}else{A(BP,BK)}if(BL){Q(BL,w,BK,Ab);Q.uniqueSort(BK)}return BK};Q.uniqueSort=function(w){if(N){T=O;w.sort(N);if(T){for(var s=1;s<w.length;s++){w[s]===w[s-1]&&w.splice(s--,1)}}}return w};Q.matches=function(w,s){return Q(w,null,null,s)};Q.find=function(BL,BK,Ab){var Aa,s;if(!BL){return[]}for(var w=0,BN=P.order.length;w<BN;w++){var BO=P.order[w];if(s=P.leftMatch[BO].exec(BL)){var BM=s[1];s.splice(1,1);if(BM.substr(BM.length-1)!=="\\"){s[1]=(s[1]||"").replace(/\\/g,"");Aa=P.find[BO](s,BK,Ab);if(Aa!=null){BL=BL.replace(P.match[BO],"");break}}}}Aa||(Aa=BK.getElementsByTagName("*"));return{set:Aa,expr:BL}};Q.filter=function(BO,BN,BL,Ab){for(var w=BO,Aa=[],BU=BN,BV,BR,BM=BN&&BN[0]&&F(BN[0]);BO&&BN.length;){for(var BT in P.filter){if((BV=P.leftMatch[BT].exec(BO))!=null&&BV[2]){var BP=P.filter[BT],BS,s;s=BV[1];BR=false;BV.splice(1,1);if(s.substr(s.length-1)!=="\\"){if(BU===Aa){Aa=[]}if(P.preFilter[BT]){if(BV=P.preFilter[BT](BV,BU,BL,Aa,Ab,BM)){if(BV===true){continue}}else{BR=BS=true}}if(BV){for(var BK=0;(s=BU[BK])!=null;BK++){if(s){BS=BP(s,BV,BK,BU);var BQ=Ab^!!BS;if(BL&&BS!=null){if(BQ){BR=true}else{BU[BK]=false}}else{if(BQ){Aa.push(s);BR=true}}}}}if(BS!==y){BL||(BU=Aa);BO=BO.replace(P.match[BT],"");if(!BR){return[]}break}}}}if(BO===w){if(BR==null){Q.error(BO)}else{break}}w=BO}return BU};Q.error=function(s){throw"Syntax error, unrecognized expression: "+s};var P=Q.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(s){return s.getAttribute("href")}},relative:{"+":function(Ab,Aa){var w=typeof Aa==="string",s=w&&!/\W/.test(Aa);w=w&&!s;if(s){Aa=Aa.toLowerCase()}s=0;for(var BK=Ab.length,BL;s<BK;s++){if(BL=Ab[s]){for(;(BL=BL.previousSibling)&&BL.nodeType!==1;){}Ab[s]=w||BL&&BL.nodeName.toLowerCase()===Aa?BL||false:BL===Aa}}w&&Q.filter(Aa,Ab,true)},">":function(Ab,Aa){var w=typeof Aa==="string";if(w&&!/\W/.test(Aa)){Aa=Aa.toLowerCase();for(var s=0,BK=Ab.length;s<BK;s++){var BL=Ab[s];if(BL){w=BL.parentNode;Ab[s]=w.nodeName.toLowerCase()===Aa?w:false}}}else{s=0;for(BK=Ab.length;s<BK;s++){if(BL=Ab[s]){Ab[s]=w?BL.parentNode:BL.parentNode===Aa}}w&&Q.filter(Aa,Ab,true)}},"":function(Ab,Aa,w){var s=W++,BK=X;if(typeof Aa==="string"&&!/\W/.test(Aa)){var BL=Aa=Aa.toLowerCase();BK=Y}BK("parentNode",Aa,s,Ab,BL,w)},"~":function(Ab,Aa,w){var s=W++,BK=X;if(typeof Aa==="string"&&!/\W/.test(Aa)){var BL=Aa=Aa.toLowerCase();BK=Y}BK("previousSibling",Aa,s,Ab,BL,w)}},find:{ID:function(Aa,w,s){if(typeof w.getElementById!=="undefined"&&!s){return(Aa=w.getElementById(Aa[1]))?[Aa]:[]}},NAME:function(Ab,Aa){if(typeof Aa.getElementsByName!=="undefined"){var w=[];Aa=Aa.getElementsByName(Ab[1]);for(var s=0,BK=Aa.length;s<BK;s++){Aa[s].getAttribute("name")===Ab[1]&&w.push(Aa[s])}return w.length===0?null:w}},TAG:function(w,s){return s.getElementsByTagName(w[1])}},preFilter:{CLASS:function(BK,Ab,w,s,BL,BM){BK=" "+BK[1].replace(/\\/g,"")+" ";if(BM){return BK}BM=0;for(var Aa;(Aa=Ab[BM])!=null;BM++){if(Aa){if(BL^(Aa.className&&(" "+Aa.className+" ").replace(/[\t\n]/g," ").indexOf(BK)>=0)){w||s.push(Aa)}else{if(w){Ab[BM]=false}}}}return false},ID:function(s){return s[1].replace(/\\/g,"")},TAG:function(s){return s[1].toLowerCase()},CHILD:function(w){if(w[1]==="nth"){var s=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(w[2]==="even"&&"2n"||w[2]==="odd"&&"2n+1"||!/\D/.test(w[2])&&"0n+"+w[2]||w[2]);w[2]=s[1]+(s[2]||1)-0;w[3]=s[3]-0}w[0]=W++;return w},ATTR:function(Ab,Aa,w,s,BK,BL){Aa=Ab[1].replace(/\\/g,"");if(!BL&&P.attrMap[Aa]){Ab[1]=P.attrMap[Aa]}if(Ab[2]==="~="){Ab[4]=" "+Ab[4]+" "}return Ab},PSEUDO:function(Ab,Aa,w,s,BK){if(Ab[1]==="not"){if((V.exec(Ab[3])||"").length>1||/^\w/.test(Ab[3])){Ab[3]=Q(Ab[3],null,null,Aa)}else{Ab=Q.filter(Ab[3],Aa,w,true^BK);w||s.push.apply(s,Ab);return false}}else{if(P.match.POS.test(Ab[0])||P.match.CHILD.test(Ab[0])){return true}}return Ab},POS:function(s){s.unshift(true);return s}},filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return !!s.firstChild},empty:function(s){return !s.firstChild},has:function(Aa,w,s){return !!Q(s[3],Aa).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){return"text"===s.type},radio:function(s){return"radio"===s.type},checkbox:function(s){return"checkbox"===s.type},file:function(s){return"file"===s.type},password:function(s){return"password"===s.type},submit:function(s){return"submit"===s.type},image:function(s){return"image"===s.type},reset:function(s){return"reset"===s.type},button:function(s){return"button"===s.type||s.nodeName.toLowerCase()==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)}},setFilters:{first:function(w,s){return s===0},last:function(Ab,Aa,w,s){return Aa===s.length-1},even:function(w,s){return s%2===0},odd:function(w,s){return s%2===1},lt:function(Aa,w,s){return w<s[3]-0},gt:function(Aa,w,s){return w>s[3]-0},nth:function(Aa,w,s){return s[3]-0===w},eq:function(Aa,w,s){return s[3]-0===w}},filter:{PSEUDO:function(Ab,Aa,w,s){var BK=Aa[1],BL=P.filters[BK];if(BL){return BL(Ab,w,Aa,s)}else{if(BK==="contains"){return(Ab.textContent||Ab.innerText||Z([Ab])||"").indexOf(Aa[3])>=0}else{if(BK==="not"){Aa=Aa[3];w=0;for(s=Aa.length;w<s;w++){if(Aa[w]===Ab){return false}}return true}else{Q.error("Syntax error, unrecognized expression: "+BK)}}}},CHILD:function(BK,Ab){var w=Ab[1],s=BK;switch(w){case"only":case"first":for(;s=s.previousSibling;){if(s.nodeType===1){return false}}if(w==="first"){return true}s=BK;case"last":for(;s=s.nextSibling;){if(s.nodeType===1){return false}}return true;case"nth":w=Ab[2];var BL=Ab[3];if(w===1&&BL===0){return true}Ab=Ab[0];var BM=BK.parentNode;if(BM&&(BM.sizcache!==Ab||!BK.nodeIndex)){var Aa=0;for(s=BM.firstChild;s;s=s.nextSibling){if(s.nodeType===1){s.nodeIndex=++Aa}}BM.sizcache=Ab}BK=BK.nodeIndex-BL;return w===0?BK===0:BK%w===0&&BK/w>=0}},ID:function(w,s){return w.nodeType===1&&w.getAttribute("id")===s},TAG:function(w,s){return s==="*"&&w.nodeType===1||w.nodeName.toLowerCase()===s},CLASS:function(w,s){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(Ab,Aa){var w=Aa[1];Ab=P.attrHandle[w]?P.attrHandle[w](Ab):Ab[w]!=null?Ab[w]:Ab.getAttribute(w);w=Ab+"";var s=Aa[2];Aa=Aa[4];return Ab==null?s==="!=":s==="="?w===Aa:s==="*="?w.indexOf(Aa)>=0:s==="~="?(" "+w+" ").indexOf(Aa)>=0:!Aa?w&&Ab!==false:s==="!="?w!==Aa:s==="^="?w.indexOf(Aa)===0:s==="$="?w.substr(w.length-Aa.length)===Aa:s==="|="?w===Aa||w.substr(0,Aa.length+1)===Aa+"-":false},POS:function(Ab,Aa,w,s){var BK=P.setFilters[Aa[2]];if(BK){return BK(Ab,w,Aa,s)}}}},L=P.match.POS;for(var G in P.match){P.match[G]=new RegExp(P.match[G].source+/(?![^\[]*\])(?![^\(]*\))/.source);P.leftMatch[G]=new RegExp(/(^(?:.|\r|\n)*?)/.source+P.match[G].source.replace(/\\(\d+)/g,function(w,s){return"\\"+(s-0+1)}))}var A=function(w,s){w=Array.prototype.slice.call(w,0);if(s){s.push.apply(s,w);return s}return w};try{Array.prototype.slice.call(z.documentElement.childNodes,0)}catch(K){A=function(Ab,Aa){Aa=Aa||[];if(R.call(Ab)==="[object Array]"){Array.prototype.push.apply(Aa,Ab)}else{if(typeof Ab.length==="number"){for(var w=0,s=Ab.length;w<s;w++){Aa.push(Ab[w])}}else{for(w=0;Ab[w];w++){Aa.push(Ab[w])}}}return Aa}}var N;if(z.documentElement.compareDocumentPosition){N=function(w,s){if(!w.compareDocumentPosition||!s.compareDocumentPosition){if(w==s){T=true}return w.compareDocumentPosition?-1:1}w=w.compareDocumentPosition(s)&4?-1:w===s?0:1;if(w===0){T=true}return w}}else{if("sourceIndex" in z.documentElement){N=function(w,s){if(!w.sourceIndex||!s.sourceIndex){if(w==s){T=true}return w.sourceIndex?-1:1}w=w.sourceIndex-s.sourceIndex;if(w===0){T=true}return w}}else{if(z.createRange){N=function(Ab,Aa){if(!Ab.ownerDocument||!Aa.ownerDocument){if(Ab==Aa){T=true}return Ab.ownerDocument?-1:1}var w=Ab.ownerDocument.createRange(),s=Aa.ownerDocument.createRange();w.setStart(Ab,0);w.setEnd(Ab,0);s.setStart(Aa,0);s.setEnd(Aa,0);Ab=w.compareBoundaryPoints(Range.START_TO_END,s);if(Ab===0){T=true}return Ab}}}}(function(){var Aa=z.createElement("div"),w="script"+(new Date).getTime();Aa.innerHTML="<a name='"+w+"'/>";var s=z.documentElement;s.insertBefore(Aa,s.firstChild);if(z.getElementById(w)){P.find.ID=function(Ab,BK,BL){if(typeof BK.getElementById!=="undefined"&&!BL){return(BK=BK.getElementById(Ab[1]))?BK.id===Ab[1]||typeof BK.getAttributeNode!=="undefined"&&BK.getAttributeNode("id").nodeValue===Ab[1]?[BK]:y:[]}};P.filter.ID=function(Ab,BK){var BL=typeof Ab.getAttributeNode!=="undefined"&&Ab.getAttributeNode("id");return Ab.nodeType===1&&BL&&BL.nodeValue===BK}}s.removeChild(Aa);s=Aa=null})();(function(){var s=z.createElement("div");s.appendChild(z.createComment(""));if(s.getElementsByTagName("*").length>0){P.find.TAG=function(Ab,Aa){Aa=Aa.getElementsByTagName(Ab[1]);if(Ab[1]==="*"){Ab=[];for(var w=0;Aa[w];w++){Aa[w].nodeType===1&&Ab.push(Aa[w])}Aa=Ab}return Aa}}s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#"){P.attrHandle.href=function(w){return w.getAttribute("href",2)}}s=null})();z.querySelectorAll&&function(){var Aa=Q,w=z.createElement("div");w.innerHTML="<p class='TEST'></p>";if(!(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0)){Q=function(Ab,BM,BN,BK){BM=BM||z;if(!BK&&BM.nodeType===9&&!F(BM)){try{return A(BM.querySelectorAll(Ab),BN)}catch(BL){}}return Aa(Ab,BM,BN,BK)};for(var s in Aa){Q[s]=Aa[s]}w=null}}();(function(){var s=z.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){P.order.splice(1,0,"CLASS");P.find.CLASS=function(Ab,Aa,w){if(typeof Aa.getElementsByClassName!=="undefined"&&!w){return Aa.getElementsByClassName(Ab[1])}};s=null}}})();var J=z.compareDocumentPosition?function(w,s){return !!(w.compareDocumentPosition(s)&16)}:function(w,s){return w!==s&&(w.contains?w.contains(s):true)},F=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false},c=function(Ab,Aa){var w=[],s="",BK;for(Aa=Aa.nodeType?[Aa]:Aa;BK=P.match.PSEUDO.exec(Ab);){s+=BK[0];Ab=Ab.replace(P.match.PSEUDO,"")}Ab=P.relative[Ab]?Ab+"*":Ab;BK=0;for(var BL=Aa.length;BK<BL;BK++){Q(Ab,Aa[BK],w)}return Q.filter(s,w)};AH.find=Q;AH.expr=Q.selectors;AH.expr[":"]=AH.expr.filters;AH.unique=Q.uniqueSort;AH.text=Z;AH.isXMLDoc=F;AH.contains=J})();var H=/Until$/,BA=/^(?:parents|prevUntil|prevAll)/,Ax=/,/;AT=Array.prototype.slice;var Am=function(F,A,J){if(AH.isFunction(A)){return AH.grep(F,function(L,K){return !!A.call(L,K,L)===J})}else{if(A.nodeType){return AH.grep(F,function(K){return K===A===J})}else{if(typeof A==="string"){var G=AH.grep(F,function(K){return K.nodeType===1});if(Au.test(A)){return AH.filter(A,G,!J)}else{A=AH.filter(A,G)}}}}return AH.grep(F,function(K){return AH.inArray(K,A)>=0===J})};AH.fn.extend({find:function(F){for(var A=this.pushStack("","find",F),N=0,K=0,L=this.length;K<L;K++){N=A.length;AH.find(F,this[K],A);if(K>0){for(var G=N;G<A.length;G++){for(var J=0;J<N;J++){if(A[J]===A[G]){A.splice(G--,1);break}}}}}return A},has:function(F){var A=AH(F);return this.filter(function(){for(var J=0,G=A.length;J<G;J++){if(AH.contains(this,A[J])){return true}}})},not:function(A){return this.pushStack(Am(this,A,false),"not",A)},filter:function(A){return this.pushStack(Am(this,A,true),"filter",A)},is:function(A){return !!A&&AH.filter(A,this).length>0},closest:function(P,O){if(AH.isArray(P)){var N=[],K=this[0],L,G={},J;if(K&&P.length){L=0;for(var A=P.length;L<A;L++){J=P[L];G[J]||(G[J]=AH.expr.match.POS.test(J)?AH(J,O||this.context):J)}for(;K&&K.ownerDocument&&K!==O;){for(J in G){L=G[J];if(L.jquery?L.index(K)>-1:AH(K).is(L)){N.push({selector:J,elem:K});delete G[J]}}K=K.parentNode}}return N}var F=AH.expr.match.POS.test(P)?AH(P,O||this.context):null;return this.map(function(R,Q){for(;Q&&Q.ownerDocument&&Q!==O;){if(F?F.index(Q)>-1:AH(Q).is(P)){return Q}Q=Q.parentNode}return null})},index:function(A){if(!A||typeof A==="string"){return AH.inArray(this[0],A?AH(A):this.parent().children())}return AH.inArray(A.jquery?A[0]:A,this)},add:function(F,A){F=typeof F==="string"?AH(F,A||this.context):AH.makeArray(F);A=AH.merge(this.get(),F);return this.pushStack(b(F[0])||b(A[0])?A:AH.unique(A))},andSelf:function(){return this.add(this.prevObject)}});AH.each({parent:function(A){return(A=A.parentNode)&&A.nodeType!==11?A:null},parents:function(A){return AH.dir(A,"parentNode")},parentsUntil:function(F,A,G){return AH.dir(F,"parentNode",G)},next:function(A){return AH.nth(A,2,"nextSibling")},prev:function(A){return AH.nth(A,2,"previousSibling")},nextAll:function(A){return AH.dir(A,"nextSibling")},prevAll:function(A){return AH.dir(A,"previousSibling")},nextUntil:function(F,A,G){return AH.dir(F,"nextSibling",G)},prevUntil:function(F,A,G){return AH.dir(F,"previousSibling",G)},siblings:function(A){return AH.sibling(A.parentNode.firstChild,A)},children:function(A){return AH.sibling(A.firstChild)},contents:function(A){return AH.nodeName(A,"iframe")?A.contentDocument||A.contentWindow.document:AH.makeArray(A.childNodes)}},function(F,A){AH.fn[F]=function(K,G){var J=AH.map(this,A,K);H.test(F)||(G=K);if(G&&typeof G==="string"){J=AH.filter(G,J)}J=this.length>1?AH.unique(J):J;if((this.length>1||Ax.test(G))&&BA.test(F)){J=J.reverse()}return this.pushStack(J,F,AT.call(arguments).join(","))}});AH.extend({filter:function(F,A,G){if(G){F=":not("+F+")"}return AH.find.matches(F,A)},dir:function(F,A,J){var G=[];for(F=F[A];F&&F.nodeType!==9&&(J===y||F.nodeType!==1||!AH(F).is(J));){F.nodeType===1&&G.push(F);F=F[A]}return G},nth:function(F,A,J){A=A||1;for(var G=0;F;F=F[J]){if(F.nodeType===1&&++G===A){break}}return F},sibling:function(F,A){for(var G=[];F;F=F.nextSibling){F.nodeType===1&&F!==A&&G.push(F)}return G}});var AI=/ jQuery\d+="(?:\d+|null)"/g,AR=/^\s+/,q=/(<([\w:]+)[^>]*?)\/>/g,Ae=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,d=/<([\w:]+)/,AC=/<tbody/i,l=/<|&#?\w+;/,Aq=/<script|<object|<embed|<option|<style/i,AK=/checked\s*(?:[^=]|=\s*.checked.)/i,BJ=function(F,A,G){return Ae.test(G)?F:A+"></"+G+">"},Ak={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,"",""]};Ak.optgroup=Ak.option;Ak.tbody=Ak.tfoot=Ak.colgroup=Ak.caption=Ak.thead;Ak.th=Ak.td;if(!AH.support.htmlSerialize){Ak._default=[1,"div<div>","</div>"]}AH.fn.extend({text:function(A){if(AH.isFunction(A)){return this.each(function(F){var G=AH(this);G.text(A.call(this,F,G.text()))})}if(typeof A!=="object"&&A!==y){return this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(A))}return AH.text(this)},wrapAll:function(F){if(AH.isFunction(F)){return this.each(function(G){AH(this).wrapAll(F.call(this,G))})}if(this[0]){var A=AH(F,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&A.insertBefore(this[0]);A.map(function(){for(var G=this;G.firstChild&&G.firstChild.nodeType===1;){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(A){if(AH.isFunction(A)){return this.each(function(F){AH(this).wrapInner(A.call(this,F))})}return this.each(function(){var F=AH(this),G=F.contents();G.length?G.wrapAll(A):F.append(A)})},wrap:function(A){return this.each(function(){AH(this).wrapAll(A)})},unwrap:function(){return this.parent().each(function(){AH.nodeName(this,"body")||AH(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.appendChild(A)})},prepend:function(){return this.domManip(arguments,true,function(A){this.nodeType===1&&this.insertBefore(A,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this)})}else{if(arguments.length){var A=AH(arguments[0]);A.push.apply(A,this.toArray());return this.pushStack(A,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling)})}else{if(arguments.length){var A=this.pushStack(this,"after",arguments);A.push.apply(A,AH(arguments[0]).toArray());return A}}},remove:function(F,A){for(var J=0,G;(G=this[J])!=null;J++){if(!F||AH.filter(F,[G]).length){if(!A&&G.nodeType===1){AH.cleanData(G.getElementsByTagName("*"));AH.cleanData([G])}G.parentNode&&G.parentNode.removeChild(G)}}return this},empty:function(){for(var F=0,A;(A=this[F])!=null;F++){for(A.nodeType===1&&AH.cleanData(A.getElementsByTagName("*"));A.firstChild;){A.removeChild(A.firstChild)}}return this},clone:function(F){var A=this.map(function(){if(!AH.support.noCloneEvent&&!AH.isXMLDoc(this)){var J=this.outerHTML,G=this.ownerDocument;if(!J){J=G.createElement("div");J.appendChild(this.cloneNode(true));J=J.innerHTML}return AH.clean([J.replace(AI,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(AR,"")],G)[0]}else{return this.cloneNode(true)}});if(F===true){BI(this,A);BI(this.find("*"),A.find("*"))}return A},html:function(F){if(F===y){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(AI,""):null}else{if(typeof F==="string"&&!Aq.test(F)&&(AH.support.leadingWhitespace||!AR.test(F))&&!Ak[(d.exec(F)||["",""])[1].toLowerCase()]){F=F.replace(q,BJ);try{for(var A=0,J=this.length;A<J;A++){if(this[A].nodeType===1){AH.cleanData(this[A].getElementsByTagName("*"));this[A].innerHTML=F}}}catch(G){this.empty().append(F)}}else{AH.isFunction(F)?this.each(function(N){var K=AH(this),L=K.html();K.empty().append(function(){return F.call(this,N,L)})}):this.empty().append(F)}}return this},replaceWith:function(A){if(this[0]&&this[0].parentNode){if(AH.isFunction(A)){return this.each(function(F){var J=AH(this),G=J.html();J.replaceWith(A.call(this,F,G))})}if(typeof A!=="string"){A=AH(A).detach()}return this.each(function(){var F=this.nextSibling,G=this.parentNode;AH(this).remove();F?AH(F).before(A):AH(G).append(A)})}else{return this.pushStack(AH(AH.isFunction(A)?A():A),"replaceWith",A)}},detach:function(A){return this.remove(A,true)},domManip:function(R,Q,P){function N(T){return AH.nodeName(T,"table")?T.getElementsByTagName("tbody")[0]||T.appendChild(T.ownerDocument.createElement("tbody")):T}var O,K,L=R[0],F=[],J;if(!AH.support.checkClone&&arguments.length===3&&typeof L==="string"&&AK.test(L)){return this.each(function(){AH(this).domManip(R,Q,P,true)})}if(AH.isFunction(L)){return this.each(function(T){var V=AH(this);R[0]=L.call(this,T,Q?V.html():y);V.domManip(R,Q,P)})}if(this[0]){O=L&&L.parentNode;O=AH.support.parentNode&&O&&O.nodeType===11&&O.childNodes.length===this.length?{fragment:O}:A4(R,this,F);J=O.fragment;if(K=J.childNodes.length===1?(J=J.firstChild):J.firstChild){Q=Q&&AH.nodeName(K,"tr");for(var G=0,A=this.length;G<A;G++){P.call(Q?N(this[G],K):this[G],G>0||O.cacheable||this.length>1?J.cloneNode(true):J)}}F.length&&AH.each(F,u)}return this}});AH.fragments={};AH.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,A){AH.fn[F]=function(N){var K=[];N=AH(N);var L=this.length===1&&this[0].parentNode;if(L&&L.nodeType===11&&L.childNodes.length===1&&N.length===1){N[A](this[0]);return this}else{L=0;for(var G=N.length;L<G;L++){var J=(L>0?this.clone(true):this).get();AH.fn[A].apply(AH(N[L]),J);K=K.concat(J)}return this.pushStack(K,F,N.selector)}}});AH.extend({clean:function(R,Q,P,N){Q=Q||z;if(typeof Q.createElement==="undefined"){Q=Q.ownerDocument||Q[0]&&Q[0].ownerDocument||z}for(var O=[],K=0,L;(L=R[K])!=null;K++){if(typeof L==="number"){L+=""}if(L){if(typeof L==="string"&&!l.test(L)){L=Q.createTextNode(L)}else{if(typeof L==="string"){L=L.replace(q,BJ);var F=(d.exec(L)||["",""])[1].toLowerCase(),J=Ak[F]||Ak._default,G=J[0],A=Q.createElement("div");for(A.innerHTML=J[1]+L+J[2];G--;){A=A.lastChild}if(!AH.support.tbody){G=AC.test(L);F=F==="table"&&!G?A.firstChild&&A.firstChild.childNodes:J[1]==="<table>"&&!G?A.childNodes:[];for(J=F.length-1;J>=0;--J){AH.nodeName(F[J],"tbody")&&!F[J].childNodes.length&&F[J].parentNode.removeChild(F[J])}}!AH.support.leadingWhitespace&&AR.test(L)&&A.insertBefore(Q.createTextNode(AR.exec(L)[0]),A.firstChild);L=A.childNodes}}if(L.nodeType){O.push(L)}else{O=AH.merge(O,L)}}}if(P){for(K=0;O[K];K++){if(N&&AH.nodeName(O[K],"script")&&(!O[K].type||O[K].type.toLowerCase()==="text/javascript")){N.push(O[K].parentNode?O[K].parentNode.removeChild(O[K]):O[K])}else{O[K].nodeType===1&&O.splice.apply(O,[K+1,0].concat(AH.makeArray(O[K].getElementsByTagName("script"))));P.appendChild(O[K])}}}return O},cleanData:function(P){for(var O,N,K=AH.cache,L=AH.event.special,G=AH.support.deleteExpando,J=0,A;(A=P[J])!=null;J++){if(N=A[AH.expando]){O=K[N];if(O.events){for(var F in O.events){L[F]?AH.event.remove(A,F):Ah(A,F,O.handle)}}if(G){delete A[AH.expando]}else{A.removeAttribute&&A.removeAttribute(AH.expando)}delete K[N]}}}});var M=/z-?index|font-?weight|opacity|zoom|line-?height/i,A5=/alpha\([^)]*\)/,Ar=/opacity=([^)]*)/,Af=/float/i,AD=/-([a-z])/ig,BE=/([A-Z])/g,A0=/^-?\d+(?:px)?$/i,Aj=/^-?\d/,AF={position:"absolute",visibility:"hidden",display:"block"},o=["Left","Right"],a=["Top","Bottom"],BH=z.defaultView&&z.defaultView.getComputedStyle,AL=AH.support.cssFloat?"cssFloat":"styleFloat",m=function(F,A){return A.toUpperCase()};AH.fn.css=function(F,A){return AP(this,F,A,true,function(K,G,J){if(J===y){return AH.curCSS(K,G)}if(typeof J==="number"&&!M.test(G)){J+="px"}AH.style(K,G,J)})};AH.extend({style:function(F,A,K){if(!F||F.nodeType===3||F.nodeType===8){return y}if((A==="width"||A==="height")&&parseFloat(K)<0){K=y}var G=F.style||F,J=K!==y;if(!AH.support.opacity&&A==="opacity"){if(J){G.zoom=1;A=parseInt(K,10)+""==="NaN"?"":"alpha(opacity="+K*100+")";F=G.filter||AH.curCSS(F,"filter")||"";G.filter=A5.test(F)?F.replace(A5,A):A}return G.filter&&G.filter.indexOf("opacity=")>=0?parseFloat(Ar.exec(G.filter)[1])/100+"":""}if(Af.test(A)){A=AL}A=A.replace(AD,m);if(J){G[A]=K}return G[A]},css:function(F,A,N,K){if(A==="width"||A==="height"){var L,G=A==="width"?o:a;function J(){L=A==="width"?F.offsetWidth:F.offsetHeight;K!=="border"&&AH.each(G,function(){K||(L-=parseFloat(AH.curCSS(F,"padding"+this,true))||0);if(K==="margin"){L+=parseFloat(AH.curCSS(F,"margin"+this,true))||0}else{L-=parseFloat(AH.curCSS(F,"border"+this+"Width",true))||0}})}F.offsetWidth!==0?J():AH.swap(F,AF,J);return Math.max(0,Math.round(L))}return AH.curCSS(F,A,N)},curCSS:function(F,A,L){var J,K=F.style;if(!AH.support.opacity&&A==="opacity"&&F.currentStyle){J=Ar.test(F.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return J===""?"1":J}if(Af.test(A)){A=AL}if(!L&&K&&K[A]){J=K[A]}else{if(BH){if(Af.test(A)){A="float"}A=A.replace(BE,"-$1").toLowerCase();K=F.ownerDocument.defaultView;if(!K){return null}if(F=K.getComputedStyle(F,null)){J=F.getPropertyValue(A)}if(A==="opacity"&&J===""){J="1"}}else{if(F.currentStyle){L=A.replace(AD,m);J=F.currentStyle[A]||F.currentStyle[L];if(!A0.test(J)&&Aj.test(J)){A=K.left;var G=F.runtimeStyle.left;F.runtimeStyle.left=F.currentStyle.left;K.left=L==="fontSize"?"1em":J||0;J=K.pixelLeft+"px";K.left=A;F.runtimeStyle.left=G}}}}return J},swap:function(F,A,K){var G={};for(var J in A){G[J]=F.style[J];F.style[J]=A[J]}K.call(F);for(J in A){F.style[J]=G[J]}}});if(AH.expr&&AH.expr.filters){AH.expr.filters.hidden=function(F){var A=F.offsetWidth,J=F.offsetHeight,G=F.nodeName.toLowerCase()==="tr";return A===0&&J===0&&!G?true:A>0&&J>0&&!G?false:AH.curCSS(F,"display")==="none"};AH.expr.filters.visible=function(A){return !AH.expr.filters.hidden(A)}}var A3=Ag(),Ao=/<script(.|\s)*?\/script>/gi,AJ=/select|textarea/i,r=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,AZ=/=\?(&|$)/,S=/\?/,e=/(\?|&)_=.*?(&|$)/,B=/^(\w+:)?\/\/([^\/?#]+)/,A6=/%20/g,As=AH.fn.load;AH.fn.extend({load:function(F,A,L){if(typeof F!=="string"){return As.call(this,F)}else{if(!this.length){return this}}var J=F.indexOf(" ");if(J>=0){var K=F.slice(J,F.length);F=F.slice(0,J)}J="GET";if(A){if(AH.isFunction(A)){L=A;A=null}else{if(typeof A==="object"){A=AH.param(A,AH.ajaxSettings.traditional);J="POST"}}}var G=this;AH.ajax({url:F,type:J,dataType:"html",data:A,complete:function(N,O){if(O==="success"||O==="notmodified"){G.html(K?AH("<div />").append(N.responseText.replace(Ao,"")).find(K):N.responseText)}L&&G.each(L,[N.responseText,O,N])}});return this},serialize:function(){return AH.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?AH.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||AJ.test(this.nodeName)||r.test(this.type))}).map(function(F,A){F=AH(this).val();return F==null?null:AH.isArray(F)?AH.map(F,function(G){return{name:A.name,value:G}}):{name:A.name,value:F}}).get()}});AH.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(F,A){AH.fn[A]=function(G){return this.bind(A,G)}});AH.extend({get:function(F,A,J,G){if(AH.isFunction(A)){G=G||J;J=A;A=null}return AH.ajax({type:"GET",url:F,data:A,success:J,dataType:G})},getScript:function(F,A){return AH.get(F,null,A,"script")},getJSON:function(F,A,G){return AH.get(F,A,G,"json")},post:function(F,A,J,G){if(AH.isFunction(A)){G=G||J;J=A;A={}}return AH.ajax({type:"POST",url:F,data:A,success:J,dataType:G})},ajaxSetup:function(A){AH.extend(AH.ajaxSettings,A)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:Ap.XMLHttpRequest&&(Ap.location.protocol!=="file:"||!Ap.ActiveXObject)?function(){return new Ap.XMLHttpRequest}:function(){try{return new Ap.ActiveXObject("Microsoft.XMLHTTP")}catch(A){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(Aa){function w(){c.success&&c.success.call(T,O,W,F);c.global&&Z("ajaxSuccess",[F,c])}function s(){c.complete&&c.complete.call(T,F,W);c.global&&Z("ajaxComplete",[F,c]);c.global&&!--AH.active&&AH.event.trigger("ajaxStop")}function Z(BK,BL){(c.context?AH(c.context):AH.event).trigger(BK,BL)}var c=AH.extend(true,{},AH.ajaxSettings,Aa),V,W,O,T=Aa&&Aa.context||c,P=c.type.toUpperCase();if(c.data&&c.processData&&typeof c.data!=="string"){c.data=AH.param(c.data,c.traditional)}if(c.dataType==="jsonp"){if(P==="GET"){AZ.test(c.url)||(c.url+=(S.test(c.url)?"&":"?")+(c.jsonp||"callback")+"=?")}else{if(!c.data||!AZ.test(c.data)){c.data=(c.data?c.data+"&":"")+(c.jsonp||"callback")+"=?"}}c.dataType="json"}if(c.dataType==="json"&&(c.data&&AZ.test(c.data)||AZ.test(c.url))){V=c.jsonpCallback||"jsonp"+A3++;if(c.data){c.data=(c.data+"").replace(AZ,"="+V+"$1")}c.url=c.url.replace(AZ,"="+V+"$1");c.dataType="script";Ap[V]=Ap[V]||function(BK){O=BK;w();s();Ap[V]=y;try{delete Ap[V]}catch(BL){}A&&A.removeChild(K)}}if(c.dataType==="script"&&c.cache===null){c.cache=false}if(c.cache===false&&P==="GET"){var L=Ag(),G=c.url.replace(e,"$1_="+L+"$2");c.url=G+(G===c.url?(S.test(c.url)?"&":"?")+"_="+L:"")}if(c.data&&P==="GET"){c.url+=(S.test(c.url)?"&":"?")+c.data}c.global&&!AH.active++&&AH.event.trigger("ajaxStart");L=(L=B.exec(c.url))&&(L[1]&&L[1]!==location.protocol||L[2]!==location.host);if(c.dataType==="script"&&P==="GET"&&L){var A=z.getElementsByTagName("head")[0]||z.documentElement,K=z.createElement("script");K.src=c.url;if(c.scriptCharset){K.charset=c.scriptCharset}if(!V){var N=false;K.onload=K.onreadystatechange=function(){if(!N&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){N=true;w();s();K.onload=K.onreadystatechange=null;A&&K.parentNode&&A.removeChild(K)}}}A.insertBefore(K,A.firstChild);return y}var J=false,F=c.xhr();if(F){c.username?F.open(P,c.url,c.async,c.username,c.password):F.open(P,c.url,c.async);try{if(c.data||Aa&&Aa.contentType){F.setRequestHeader("Content-Type",c.contentType)}if(c.ifModified){AH.lastModified[c.url]&&F.setRequestHeader("If-Modified-Since",AH.lastModified[c.url]);AH.etag[c.url]&&F.setRequestHeader("If-None-Match",AH.etag[c.url])}L||F.setRequestHeader("X-Requested-With","XMLHttpRequest");F.setRequestHeader("Accept",c.dataType&&c.accepts[c.dataType]?c.accepts[c.dataType]+", */*":c.accepts._default)}catch(Ab){}if(c.beforeSend&&c.beforeSend.call(T,F,c)===false){c.global&&!--AH.active&&AH.event.trigger("ajaxStop");F.abort();return false}c.global&&Z("ajaxSend",[F,c]);var Y=F.onreadystatechange=function(BL){if(!F||F.readyState===0||BL==="abort"){J||s();J=true;if(F){F.onreadystatechange=AH.noop}}else{if(!J&&F&&(F.readyState===4||BL==="timeout")){J=true;F.onreadystatechange=AH.noop;W=BL==="timeout"?"timeout":!AH.httpSuccess(F)?"error":c.ifModified&&AH.httpNotModified(F,c.url)?"notmodified":"success";var BM;if(W==="success"){try{O=AH.httpData(F,c.dataType,c)}catch(BK){W="parsererror";BM=BK}}if(W==="success"||W==="notmodified"){V||w()}else{AH.handleError(c,F,W,BM)}s();BL==="timeout"&&F.abort();if(c.async){F=null}}}};try{var X=F.abort;F.abort=function(){F&&X.call(F);Y("abort")}}catch(R){}c.async&&c.timeout>0&&setTimeout(function(){F&&!J&&Y("timeout")},c.timeout);try{F.send(P==="POST"||P==="PUT"||P==="DELETE"?c.data:null)}catch(Q){AH.handleError(c,F,null,Q);s()}c.async||Y();return F}},handleError:function(F,A,J,G){if(F.error){F.error.call(F.context||F,A,J,G)}if(F.global){(F.context?AH(F.context):AH.event).trigger("ajaxError",[A,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol==="file:"||F.status>=200&&F.status<300||F.status===304||F.status===1223||F.status===0}catch(A){}return false},httpNotModified:function(F,A){var J=F.getResponseHeader("Last-Modified"),G=F.getResponseHeader("Etag");if(J){AH.lastModified[A]=J}if(G){AH.etag[A]=G}return F.status===304||F.status===0},httpData:function(F,A,K){var G=F.getResponseHeader("content-type")||"",J=A==="xml"||!A&&G.indexOf("xml")>=0;F=J?F.responseXML:F.responseText;J&&F.documentElement.nodeName==="parsererror"&&AH.error("parsererror");if(K&&K.dataFilter){F=K.dataFilter(F,A)}if(typeof F==="string"){if(A==="json"||!A&&G.indexOf("json")>=0){F=AH.parseJSON(F)}else{if(A==="script"||!A&&G.indexOf("javascript")>=0){AH.globalEval(F)}}}return F},param:function(F,A){function L(N,O){if(AH.isArray(O)){AH.each(O,function(P,Q){A||/\[\]$/.test(N)?J(N,Q):L(N+"["+(typeof Q==="object"||AH.isArray(Q)?P:"")+"]",Q)})}else{!A&&O!=null&&typeof O==="object"?AH.each(O,function(P,Q){L(N+"["+P+"]",Q)}):J(N,O)}}function J(N,O){O=AH.isFunction(O)?O():O;K[K.length]=encodeURIComponent(N)+"="+encodeURIComponent(O)}var K=[];if(A===y){A=AH.ajaxSettings.traditional}if(AH.isArray(F)||F.jquery){AH.each(F,function(){J(this.name,this.value)})}else{for(var G in F){L(G,F[G])}}return K.join("&").replace(A6,"+")}});var BF={},BB=/toggle|show|hide/,Ay=/^([+-]=)?([\d+-.]+)(.*)$/,AQ,t=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];AH.fn.extend({show:function(F,A){if(F||F===0){return this.animate(Ad("show",3),F,A)}else{F=0;for(A=this.length;F<A;F++){var K=AH.data(this[F],"olddisplay");this[F].style.display=K||"";if(AH.css(this[F],"display")==="none"){K=this[F].nodeName;var G;if(BF[K]){G=BF[K]}else{var J=AH("<"+K+" />").appendTo("body");G=J.css("display");if(G==="none"){G="block"}J.remove();BF[K]=G}AH.data(this[F],"olddisplay",G)}}F=0;for(A=this.length;F<A;F++){this[F].style.display=AH.data(this[F],"olddisplay")||""}return this}},hide:function(F,A){if(F||F===0){return this.animate(Ad("hide",3),F,A)}else{F=0;for(A=this.length;F<A;F++){var G=AH.data(this[F],"olddisplay");!G&&G!=="none"&&AH.data(this[F],"olddisplay",AH.css(this[F],"display"))}F=0;for(A=this.length;F<A;F++){this[F].style.display="none"}return this}},_toggle:AH.fn.toggle,toggle:function(F,A){var G=typeof F==="boolean";if(AH.isFunction(F)&&AH.isFunction(A)){this._toggle.apply(this,arguments)}else{F==null||G?this.each(function(){var J=G?F:AH(this).is(":hidden");AH(this)[J?"show":"hide"]()}):this.animate(Ad("toggle",3),F,A)}return this},fadeTo:function(F,A,G){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:A},F,G)},animate:function(F,A,K,G){var J=AH.speed(A,K,G);if(AH.isEmptyObject(F)){return this.each(J.complete)}return this[J.queue===false?"each":"queue"](function(){var N=AH.extend({},J),O,P=this.nodeType===1&&AH(this).is(":hidden"),L=this;for(O in F){var Q=O.replace(AD,m);if(O!==Q){F[Q]=F[O];delete F[O];O=Q}if(F[O]==="hide"&&P||F[O]==="show"&&!P){return N.complete.call(this)}if((O==="height"||O==="width")&&this.style){N.display=AH.css(this,"display");N.overflow=this.style.overflow}if(AH.isArray(F[O])){(N.specialEasing=N.specialEasing||{})[O]=F[O][1];F[O]=F[O][0]}}if(N.overflow!=null){this.style.overflow="hidden"}N.curAnim=AH.extend({},F);AH.each(F,function(T,R){var X=new AH.fx(L,N,T);if(BB.test(R)){X[R==="toggle"?P?"show":"hide":R](F)}else{var W=Ay.exec(R),Y=X.cur(true)||0;if(W){R=parseFloat(W[2]);var V=W[3]||"px";if(V!=="px"){L.style[T]=(R||1)+V;Y=(R||1)/X.cur(true)*Y;L.style[T]=Y+V}if(W[1]){R=(W[1]==="-="?-1:1)*R+Y}X.custom(Y,R,V)}else{X.custom(Y,R,"")}}});return true})},stop:function(F,A){var G=AH.timers;F&&this.queue([]);this.each(function(){for(var J=G.length-1;J>=0;J--){if(G[J].elem===this){A&&G[J](true);G.splice(J,1)}}});A||this.dequeue();return this}});AH.each({slideDown:Ad("show",1),slideUp:Ad("hide",1),slideToggle:Ad("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,A){AH.fn[F]=function(J,G){return this.animate(A,J,G)}});AH.extend({speed:function(F,A,J){var G=F&&typeof F==="object"?F:{complete:J||!J&&A||AH.isFunction(F)&&F,duration:F,easing:J&&A||A&&!AH.isFunction(A)&&A};G.duration=AH.fx.off?0:typeof G.duration==="number"?G.duration:AH.fx.speeds[G.duration]||AH.fx.speeds._default;G.old=G.complete;G.complete=function(){G.queue!==false&&AH(this).dequeue();AH.isFunction(G.old)&&G.old.call(this)};return G},easing:{linear:function(F,A,J,G){return J+G*F},swing:function(F,A,J,G){return(-Math.cos(F*Math.PI)/2+0.5)*G+J}},timers:[],fx:function(F,A,G){this.options=A;this.elem=F;this.prop=G;if(!A.orig){A.orig={}}}});AH.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(AH.fx.step[this.prop]||AH.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(A){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(A=parseFloat(AH.css(this.elem,this.prop,A)))&&A>-10000?A:parseFloat(AH.curCSS(this.elem,this.prop))||0},custom:function(F,A,K){function G(L){return J.step(L)}this.startTime=Ag();this.start=F;this.end=A;this.unit=K||this.unit||"px";this.now=this.start;this.pos=this.state=0;var J=this;G.elem=this.elem;if(G()&&AH.timers.push(G)&&!AQ){AQ=setInterval(AH.fx.tick,13)}},show:function(){this.options.orig[this.prop]=AH.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());AH(this.elem).show()},hide:function(){this.options.orig[this.prop]=AH.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(F){var A=Ag(),K=true;if(F||A>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){K=false}}if(K){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;F=AH.data(this.elem,"olddisplay");this.elem.style.display=F?F:this.options.display;if(AH.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&AH(this.elem).hide();if(this.options.hide||this.options.show){for(var J in this.options.curAnim){AH.style(this.elem,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{J=A-this.startTime;this.state=J/this.options.duration;F=this.options.easing||(AH.easing.swing?"swing":"linear");this.pos=AH.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||F](this.state,J,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};AH.extend(AH.fx,{tick:function(){for(var F=AH.timers,A=0;A<F.length;A++){F[A]()||F.splice(A--,1)}F.length||AH.fx.stop()},stop:function(){clearInterval(AQ);AQ=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(A){AH.style(A.elem,"opacity",A.now)},_default:function(A){if(A.elem.style&&A.elem.style[A.prop]!=null){A.elem.style[A.prop]=(A.prop==="width"||A.prop==="height"?Math.max(0,A.now):A.now)+A.unit}else{A.elem[A.prop]=A.now}}}});if(AH.expr&&AH.expr.filters){AH.expr.filters.animated=function(A){return AH.grep(AH.timers,function(F){return A===F.elem}).length}}AH.fn.offset="getBoundingClientRect" in z.documentElement?function(F){var A=this[0];if(F){return this.each(function(K){AH.offset.setOffset(this,F,K)})}if(!A||!A.ownerDocument){return null}if(A===A.ownerDocument.body){return AH.offset.bodyOffset(A)}var J=A.getBoundingClientRect(),G=A.ownerDocument;A=G.body;G=G.documentElement;return{top:J.top+(self.pageYOffset||AH.support.boxModel&&G.scrollTop||A.scrollTop)-(G.clientTop||A.clientTop||0),left:J.left+(self.pageXOffset||AH.support.boxModel&&G.scrollLeft||A.scrollLeft)-(G.clientLeft||A.clientLeft||0)}}:function(Q){var P=this[0];if(Q){return this.each(function(R){AH.offset.setOffset(this,Q,R)})}if(!P||!P.ownerDocument){return null}if(P===P.ownerDocument.body){return AH.offset.bodyOffset(P)}AH.offset.initialize();var O=P.offsetParent,L=P,N=P.ownerDocument,J,K=N.documentElement,A=N.body;L=(N=N.defaultView)?N.getComputedStyle(P,null):P.currentStyle;for(var G=P.offsetTop,F=P.offsetLeft;(P=P.parentNode)&&P!==A&&P!==K;){if(AH.offset.supportsFixedPosition&&L.position==="fixed"){break}J=N?N.getComputedStyle(P,null):P.currentStyle;G-=P.scrollTop;F-=P.scrollLeft;if(P===O){G+=P.offsetTop;F+=P.offsetLeft;if(AH.offset.doesNotAddBorder&&!(AH.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(P.nodeName))){G+=parseFloat(J.borderTopWidth)||0;F+=parseFloat(J.borderLeftWidth)||0}L=O;O=P.offsetParent}if(AH.offset.subtractsBorderForOverflowNotVisible&&J.overflow!=="visible"){G+=parseFloat(J.borderTopWidth)||0;F+=parseFloat(J.borderLeftWidth)||0}L=J}if(L.position==="relative"||L.position==="static"){G+=A.offsetTop;F+=A.offsetLeft}if(AH.offset.supportsFixedPosition&&L.position==="fixed"){G+=Math.max(K.scrollTop,A.scrollTop);F+=Math.max(K.scrollLeft,A.scrollLeft)}return{top:G,left:F}};AH.offset={initialize:function(){var F=z.body,A=z.createElement("div"),L,J,K,G=parseFloat(AH.curCSS(F,"marginTop",true))||0;AH.extend(A.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});A.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";F.insertBefore(A,F.firstChild);L=A.firstChild;J=L.firstChild;K=L.nextSibling.firstChild.firstChild;this.doesNotAddBorder=J.offsetTop!==5;this.doesAddBorderForTableAndCells=K.offsetTop===5;J.style.position="fixed";J.style.top="20px";this.supportsFixedPosition=J.offsetTop===20||J.offsetTop===15;J.style.position=J.style.top="";L.style.overflow="hidden";L.style.position="relative";this.subtractsBorderForOverflowNotVisible=J.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=F.offsetTop!==G;F.removeChild(A);AH.offset.initialize=AH.noop},bodyOffset:function(F){var A=F.offsetTop,G=F.offsetLeft;AH.offset.initialize();if(AH.offset.doesNotIncludeMarginInBodyOffset){A+=parseFloat(AH.curCSS(F,"marginTop",true))||0;G+=parseFloat(AH.curCSS(F,"marginLeft",true))||0}return{top:A,left:G}},setOffset:function(F,A,N){if(/static/.test(AH.curCSS(F,"position"))){F.style.position="relative"}var K=AH(F),L=K.offset(),G=parseInt(AH.curCSS(F,"top",true),10)||0,J=parseInt(AH.curCSS(F,"left",true),10)||0;if(AH.isFunction(A)){A=A.call(F,N,L)}N={top:A.top-L.top+G,left:A.left-L.left+J};"using" in A?A.using.call(F,N):K.css(N)}};AH.fn.extend({position:function(){if(!this[0]){return null}var F=this[0],A=this.offsetParent(),J=this.offset(),G=/^body|html$/i.test(A[0].nodeName)?{top:0,left:0}:A.offset();J.top-=parseFloat(AH.curCSS(F,"marginTop",true))||0;J.left-=parseFloat(AH.curCSS(F,"marginLeft",true))||0;G.top+=parseFloat(AH.curCSS(A[0],"borderTopWidth",true))||0;G.left+=parseFloat(AH.curCSS(A[0],"borderLeftWidth",true))||0;return{top:J.top-G.top,left:J.left-G.left}},offsetParent:function(){return this.map(function(){for(var A=this.offsetParent||z.body;A&&!/^body|html$/i.test(A.nodeName)&&AH.css(A,"position")==="static";){A=A.offsetParent}return A})}});AH.each(["Left","Top"],function(F,A){var G="scroll"+A;AH.fn[G]=function(K){var L=this[0],J;if(!L){return null}if(K!==y){return this.each(function(){if(J=f(this)){J.scrollTo(!F?K:AH(J).scrollLeft(),F?K:AH(J).scrollTop())}else{this[G]=K}})}else{return(J=f(L))?"pageXOffset" in J?J[F?"pageYOffset":"pageXOffset"]:AH.support.boxModel&&J.document.documentElement[G]||J.document.body[G]:L[G]}}});AH.each(["Height","Width"],function(F,A){var G=A.toLowerCase();AH.fn["inner"+A]=function(){return this[0]?AH.css(this[0],G,false,"padding"):null};AH.fn["outer"+A]=function(J){return this[0]?AH.css(this[0],G,false,J?"margin":"border"):null};AH.fn[G]=function(J){var K=this[0];if(!K){return J==null?null:this}if(AH.isFunction(J)){return this.each(function(L){var N=AH(this);N[G](J.call(this,L,N[G]()))})}return"scrollTo" in K&&K.document?K.document.compatMode==="CSS1Compat"&&K.document.documentElement["client"+A]||K.document.body["client"+A]:K.nodeType===9?Math.max(K.documentElement["client"+A],K.body["scroll"+A],K.documentElement["scroll"+A],K.body["offset"+A],K.documentElement["offset"+A]):J===y?AH.css(K,G):this.css(G,typeof J==="string"?J:J+"px")}});Ap.jQuery=Ap.$=AH})(window);(function(C){var A=C.scrollTo=function(D,E,F){C(window).scrollTo(D,E,F)};A.defaults={axis:"xy",duration:parseFloat(C.fn.jquery)>=1.3?0:1};A.window=function(D){return C(window)._scrollable()};C.fn._scrollable=function(){return this.map(function(){var D=this,E=!D.nodeName||C.inArray(D.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!E){return D}var F=(D.contentWindow||D).document||D.ownerDocument||D;return C.browser.safari||F.compatMode=="BackCompat"?F.body:F.documentElement})};C.fn.scrollTo=function(F,E,D){if(typeof E=="object"){D=E;E=0}if(typeof D=="function"){D={onAfter:D}}if(F=="max"){F=9000000000}D=C.extend({},A.defaults,D);E=E||D.speed||D.duration;D.queue=D.queue&&D.axis.length>1;if(D.queue){E/=2}D.offset=B(D.offset);D.over=B(D.over);return this._scrollable().each(function(){var M=this,K=C(M),L=F,I,J={},G=K.is("html,body");switch(typeof L){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(L)){L=B(L);break}L=C(L,this);case"object":if(L.is||L.style){I=(L=C(L)).offset()}}C.each(D.axis.split(""),function(P,Q){var S=Q=="x"?"Left":"Top",R=S.toLowerCase(),U="scroll"+S,O=M[U],N=A.max(M,Q);if(I){J[U]=I[R]+(G?0:O-K.offset()[R]);if(D.margin){J[U]-=parseInt(L.css("margin"+S))||0;J[U]-=parseInt(L.css("border"+S+"Width"))||0}J[U]+=D.offset[R]||0;if(D.over[R]){J[U]+=L[Q=="x"?"width":"height"]()*D.over[R]}}else{var T=L[R];J[U]=T.slice&&T.slice(-1)=="%"?parseFloat(T)/100*N:T}if(/^\d+$/.test(J[U])){J[U]=J[U]<=0?0:Math.min(J[U],N)}if(!P&&D.queue){if(O!=J[U]){H(D.onAfterFirst)}delete J[U]}});H(D.onAfter);function H(N){K.animate(J,E,D.easing,N&&function(){N.call(this,F,D)})}}).end()};A.max=function(F,G){var I=G=="x"?"Width":"Height",H="scroll"+I;if(!C(F).is("html,body")){return F[H]-C(F)[I.toLowerCase()]()}var J="client"+I,E=F.ownerDocument.documentElement,D=F.ownerDocument.body;return Math.max(E[H],D[H])-Math.min(E[J],D[J])};function B(D){return typeof D=="object"?D:{top:D,left:D}}})(jQuery);(function(B){var A=B.serialScroll=function(C){return B(window).serialScroll(C)};A.defaults={duration:1000,axis:"x",event:"click",start:0,step:1,lock:!0,cycle:!0,constant:!0};B.fn.serialScroll=function(C){return this.each(function(){var E=B.extend({},A.defaults,C),F=E.event,P=E.step,G=E.lazy,T=E.target?this:document,D=B(E.target||this,T),I=D[0],L=E.items,Q=E.start,R=E.interval,N=E.navigation,M;if(!G){L=U()}if(E.force){S({},Q)}B(E.prev||[],T).bind(F,-P,H);B(E.next||[],T).bind(F,P,H);if(!I.ssbound){D.bind("prev.serialScroll",-P,H).bind("next.serialScroll",P,H).bind("goto.serialScroll",S)}if(R){D.bind("start.serialScroll",function(V){if(!R){J();R=!0;K()}}).bind("stop.serialScroll",function(){J();R=!1})}D.bind("notify.serialScroll",function(V,W){var X=O(W);if(X>-1){Q=X}});I.ssbound=!0;if(E.jump){(G?D:U()).bind(F,function(V){S(V,O(V.target))})}if(N){N=B(N,T).bind(F,function(V){V.data=Math.round(U().length/N.length)*N.index(this);S(V,this)})}function H(V){V.data+=Q;S(V,this)}function S(X,Z){if(!isNaN(Z)){X.data=Z;Z=I}var W=X.data,d,V=X.type,Y=E.exclude?U().slice(0,-E.exclude):U(),a=Y.length,c=Y[W],b=E.duration;if(V){X.preventDefault()}if(R){J();M=setTimeout(K,E.interval)}if(!c){d=W<0?0:a-1;if(Q!=d){W=d}else{if(!E.cycle){return }else{W=a-d-1}}c=Y[W]}if(!c||E.lock&&D.is(":animated")||V&&E.onBefore&&E.onBefore(X,c,D,U(),W)===!1){return }if(E.stop){D.queue("fx",[]).stop()}if(E.constant){b=Math.abs(b/P*(Q-W))}D.scrollTo(c,b,E).trigger("notify.serialScroll",[W])}function K(){D.trigger("next.serialScroll")}function J(){clearTimeout(M)}function U(){return B(L,I)}function O(W){if(!isNaN(W)){return W}var V=U(),X;while((X=V.index(W))==-1&&W!=I){W=W.parentNode}return X}})}})(jQuery);(function(D){var A=location.href.replace(/#.*/,"");var C=D.localScroll=function(E){D("body").localScroll(E)};C.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};C.hash=function(E){if(location.hash){E=D.extend({},C.defaults,E);E.hash=false;if(E.reset){var F=E.duration;delete E.duration;D(E.target).scrollTo(0,E);E.duration=F}B(0,location,E)}};D.fn.localScroll=function(E){E=D.extend({},C.defaults,E);return E.lazy?this.bind(E.event,function(G){var H=D([G.target,G.target.parentNode]).filter(F)[0];if(H){B(G,H,E)}}):this.find("a,area").filter(F).bind(E.event,function(G){B(G,this,E)}).end().end();function F(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==A&&(!E.filter||D(this).is(E.filter))}};function B(F,K,E){var L=K.hash.slice(1),J=document.getElementById(L)||document.getElementsByName(L)[0];if(!J){return }if(F){F.preventDefault()}var I=D(E.target);if(E.lock&&I.is(":animated")||E.onBefore&&E.onBefore.call(E,F,J,I)===false){return }if(E.stop){I.stop(true)}if(E.hash){var H=J.id==L?"id":"name",G=D("<a> </a>").attr(H,L).css({position:"absolute",top:D(window).scrollTop(),left:D(window).scrollLeft()});J[H]="";D("body").prepend(G);location=K.hash;G.remove();J[H]=L}I.scrollTo(J,E).trigger("notify.serialScroll",[J])}})(jQuery);$(document).ready(function(){var E=$("#slider .scrollContainer > div");var H=$("#slider .scrollContainer");var B=true;if(B){E.css({"float":"left",position:"relative"});if(E.length){H.css("width",E[0].offsetWidth*E.length)}}var D=$("#slider .scroll").css("overflow","hidden");D.before('<img class="scrollButtons left" src="http://static.twingly.com/content/images/channel/scroll_left.gif" width="25" height="40" />').after('<img class="scrollButtons right" src="http://static.twingly.com/content/images/channel/scroll_right.gif" width="25" height="40" />');function A(){$(this).parents("ul:first").find("a").removeClass("selected").end().end().addClass("selected")}$("#slider .navigation").find("a").click(A);function C(J){var I=$("#slider .navigation").find('a[href$="'+J.id+'"]').get(0);A.call(I)}if(window.location.hash){C({id:window.location.hash.substr(1)})}else{$("ul.navigation a:first").click()}var G=parseInt((B?H.css("paddingTop"):H.css("paddingLeft"))||0)*-1;var F={target:D,items:E,navigation:".navigation a",prev:"img.left",next:"img.right",axis:"xy",onAfter:C,offset:G,duration:200,easing:"swing"};$("#slider").serialScroll(F);$.localScroll(F);F.duration=1;$.localScroll.hash(F)});(function(A){A.fn.autoResize=function(B){var C=A.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},B);this.filter("textarea").each(function(){var E=A(this).css({resize:"none","overflow-y":"hidden"}),G=E.height(),H=(function(){var I=["height","width","lineHeight","textDecoration","letterSpacing"],J={};A.each(I,function(K,L){J[L]=E.css(L)});return E.clone().removeAttr("id").removeAttr("name").css({position:"absolute",top:0,left:-9999}).css(J).attr("tabIndex","-1").insertBefore(E)})(),F=null,D=function(){H.height(0).val(A(this).val()).scrollTop(10000);var J=Math.max(H.scrollTop(),G)+C.extraSpace,I=A(this).add(H);if(F===J){return }F=J;if(J>=C.limit){A(this).css("overflow-y","");return }C.onResize.call(this);C.animate&&E.css("display")==="block"?I.stop().animate({height:J},C.animateDuration,C.animateCallback):I.height(J)};E.unbind(".dynSiz").bind("keyup.dynSiz",D).bind("keydown.dynSiz",D).bind("change.dynSiz",D)});return this}})(jQuery);$.fn.reverse=[].reverse;jQuery.fn.countdown=function(B){var A=this;A.display=$(this);A.target=new Date(B.target);A.message=B.message?B.message:"It's Here!!";A.addZeros=B.addZeros?B.addZeros:false;A.onTick=B.onTick?B.onTick:function(){return true};A.onFinish=B.onFinish?B.onFinish:function(){return true};A._tick=function(){var D=(A.target-new Date());if(D.valueOf()<0){window.clearInterval(A._interval);if(!A.onFinish(A.display)){return }A.display.html(A.message);return }var H=D.valueOf()/1000;var C=(Math.floor(H/86400))%86400;var F=(Math.floor(H/3600))%24;var E=(Math.floor(H/60))%60;var G=(Math.floor(H/1))%60;if(!A.onTick(A.display,C,F,E,G)){return }if(A.addZeros){F=(F+"").length<2?"0"+F:F;E=(E+"").length<2?"0"+E:E;G=(G+"").length<2?"0"+G:G}A.display.html(C+"<span>days</span>"+F+"<span>hrs</span>"+E+"<span>min</span>"+G+"<span>sec</span>")};A._interval=window.setInterval(A._tick,B.interval?B.interval:1000);A._tick();return this};(function(Ak){function AZ(B,C){C=C==="x"?Ad.width():Ad.height();return typeof B==="string"?Math.round(B.match(/%/)?C/100*parseInt(B,10):parseInt(B,10)):B}function AF(B){B=Ak.isFunction(B)?B.call(Ah):B;return Al.photo||B.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function G(){for(var B in Al){if(Ak.isFunction(Al[B])&&B.substring(0,2)!=="on"){Al[B]=Al[B].call(Ah)}}Al.rel=Al.rel||Ah.rel;Al.href=Al.href||Ah.href;Al.title=Al.title||Ah.title}function A(B){Ah=B;Al=Ak.extend({},Ak(Ah).data(Aa));G();if(Al.rel&&Al.rel!=="nofollow"){Ai=Ak(".cboxElement").filter(function(){return(Ak(this).data(Aa).rel||this.rel)===Al.rel});Ag=Ai.index(Ah);if(Ag<0){Ai=Ai.add(Ah);Ag=Ai.length-1}}else{Ai=Ak(Ah);Ag=0}if(!AO){AN=AO=Ac;AE=Ah;AE.blur();Ak(document).bind("keydown.cbox_close",function(C){if(C.keyCode===27){C.preventDefault();Aj.close()}}).bind("keydown.cbox_arrows",function(C){if(Ai.length>1){if(C.keyCode===37){C.preventDefault();AM.click()}else{if(C.keyCode===39){C.preventDefault();AL.click()}}}});Al.overlayClose&&AY.css({cursor:"pointer"}).one("click",Aj.close);Ak.event.trigger(AP);Al.onOpen&&Al.onOpen.call(Ah);AY.css({opacity:Al.opacity}).show();Al.w=AZ(Al.initialWidth,"x");Al.h=AZ(Al.initialHeight,"y");Aj.position(0);AD&&Ad.bind("resize.cboxie6 scroll.cboxie6",function(){AY.css({width:Ad.width(),height:Ad.height(),top:Ad.scrollTop(),left:Ad.scrollLeft()})}).trigger("scroll.cboxie6")}AC.add(AM).add(AL).add(AX).add(AB).hide();AA.html(Al.close).show();Aj.slideshow();Aj.load()}var Aa="colorbox",AK="hover",Ac=true,Aj,AT=Ak.browser.msie&&!Ak.support.opacity,AD=AT&&Ak.browser.version<7,AP="cbox_open",AJ="cbox_load",o="cbox_complete",h="resize.cbox_resize",AY,Af,AW,Ab,f,d,b,L,Ai,Ad,Ae,AI,AH,AG,AB,AC,AX,AL,AM,AA,AS,AR,AV,AU,Ah,AE,Ag,Al,AO,AN,AQ={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:Ac,scrolling:Ac,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:Ac,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:Ac,slideshow:false,slideshowAuto:Ac,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};Aj=Ak.fn.colorbox=function(B,D){var C=this;if(!C.length){if(C.selector===""){C=Ak("<a/>");B.open=Ac}else{return this}}C.each(function(){var E=Ak.extend({},Ak(this).data(Aa)?Ak(this).data(Aa):AQ,B);Ak(this).data(Aa,E).addClass("cboxElement");if(D){Ak(this).data(Aa).onComplete=D}});B&&B.open&&A(C);return this};Aj.init=function(){function B(C){return Ak('<div id="cbox'+C+'"/>')}Ad=Ak(window);Af=Ak('<div id="colorbox"/>');AY=B("Overlay").hide();AW=B("Wrapper");Ab=B("Content").append(Ae=B("LoadedContent").css({width:0,height:0}),AH=B("LoadingOverlay"),AG=B("LoadingGraphic"),AB=B("Title"),AC=B("Current"),AX=B("Slideshow"),AL=B("Next"),AM=B("Previous"),AA=B("Close"));AW.append(Ak("<div/>").append(B("TopLeft"),f=B("TopCenter"),B("TopRight")),Ak("<div/>").append(d=B("MiddleLeft"),Ab,b=B("MiddleRight")),Ak("<div/>").append(B("BottomLeft"),L=B("BottomCenter"),B("BottomRight"))).children().children().css({"float":"left"});AI=Ak("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");Ak("body").prepend(AY,Af.append(AW,AI));if(AT){Af.addClass("cboxIE");AD&&AY.css("position","absolute")}Ab.children().bind("mouseover mouseout",function(){Ak(this).toggleClass(AK)}).addClass(AK);AS=f.height()+L.height()+Ab.outerHeight(Ac)-Ab.height();AR=d.width()+b.width()+Ab.outerWidth(Ac)-Ab.width();AV=Ae.outerHeight(Ac);AU=Ae.outerWidth(Ac);Af.css({"padding-bottom":AS,"padding-right":AR}).hide();AL.click(Aj.next);AM.click(Aj.prev);AA.click(Aj.close);Ab.children().removeClass(AK);Ak(".cboxElement").live("click",function(C){if(C.button!==0&&typeof C.button!=="undefined"){return Ac}else{A(this);return false}})};Aj.position=function(B,F){function C(H){f[0].style.width=L[0].style.width=Ab[0].style.width=H.style.width;AG[0].style.height=AH[0].style.height=Ab[0].style.height=d[0].style.height=b[0].style.height=H.style.height}var D=Ad.height();D=Math.max(D-Al.h-AV-AS,0)/2+Ad.scrollTop();var E=Math.max(document.documentElement.clientWidth-Al.w-AU-AR,0)/2+Ad.scrollLeft();B=Af.width()===Al.w+AU&&Af.height()===Al.h+AV?0:B;AW[0].style.width=AW[0].style.height="9999px";Af.dequeue().animate({width:Al.w+AU,height:Al.h+AV,top:D,left:E},{duration:B,complete:function(){C(this);AN=false;AW[0].style.width=Al.w+AU+AR+"px";AW[0].style.height=Al.h+AV+AS+"px";F&&F()},step:function(){C(this)}})};Aj.resize=function(D){function I(){Al.w=Al.w||Ae.width();Al.w=Al.mw&&Al.mw<Al.w?Al.mw:Al.w;return Al.w}function E(){Al.h=Al.h||Ae.height();Al.h=Al.mh&&Al.mh<Al.h?Al.mh:Al.h;return Al.h}function F(J){Aj.position(J,function(){if(AO){if(AT){C&&Ae.fadeIn(100);Af[0].style.removeAttribute("filter")}if(Al.iframe){Ae.append("<iframe id='cboxIframe'"+(Al.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+Al.href+"' "+(AT?"allowtransparency='true'":"")+" />")}Ae.show();AB.show().html(Al.title);if(Ai.length>1){AC.html(Al.current.replace(/\{current\}/,Ag+1).replace(/\{total\}/,Ai.length)).show();AL.html(Al.next).show();AM.html(Al.previous).show();Al.slideshow&&AX.show()}AH.hide();AG.hide();Ak.event.trigger(o);Al.onComplete&&Al.onComplete.call(Ah);Al.transition==="fade"&&Af.fadeTo(B,1,function(){AT&&Af[0].style.removeAttribute("filter")});Ad.bind(h,function(){Aj.position(0)})}})}if(AO){var H,C,B=Al.transition==="none"?0:Al.speed;Ad.unbind(h);if(D){Ae.remove();Ae=Ak('<div id="cboxLoadedContent"/>').html(D);Ae.hide().appendTo(AI).css({width:I(),overflow:Al.scrolling?"auto":"hidden"}).css({height:E()}).prependTo(Ab);Ak("#cboxPhoto").css({cssFloat:"none"});AD&&Ak("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});Al.transition==="fade"&&Af.fadeTo(B,0,function(){F(0)})||F(B);if(Al.preloading&&Ai.length>1){D=Ag>0?Ai[Ag-1]:Ai[Ai.length-1];H=Ag<Ai.length-1?Ai[Ag+1]:Ai[0];H=Ak(H).data(Aa).href||H.href;D=Ak(D).data(Aa).href||D.href;AF(H)&&Ak("<img />").attr("src",H);AF(D)&&Ak("<img />").attr("src",D)}}else{setTimeout(function(){var J=Ae.wrapInner("<div style='overflow:auto'></div>").children();Al.h=J.height();Ae.css({height:Al.h});J.replaceWith(J.children());Aj.position(B)},1)}}};Aj.load=function(){var B,E,C,D=Aj.resize;AN=Ac;Ah=Ai[Ag];Al=Ak.extend({},Ak(Ah).data(Aa));G();Ak.event.trigger(AJ);Al.onLoad&&Al.onLoad.call(Ah);Al.h=Al.height?AZ(Al.height,"y")-AV-AS:Al.innerHeight?AZ(Al.innerHeight,"y"):false;Al.w=Al.width?AZ(Al.width,"x")-AU-AR:Al.innerWidth?AZ(Al.innerWidth,"x"):false;Al.mw=Al.w;Al.mh=Al.h;if(Al.maxWidth){Al.mw=AZ(Al.maxWidth,"x")-AU-AR;Al.mw=Al.w&&Al.w<Al.mw?Al.w:Al.mw}if(Al.maxHeight){Al.mh=AZ(Al.maxHeight,"y")-AV-AS;Al.mh=Al.h&&Al.h<Al.mh?Al.h:Al.mh}B=Al.href;AH.show();AG.show();if(Al.inline){Ak('<div id="cboxInlineTemp" />').hide().insertBefore(Ak(B)[0]).bind(AJ+" cbox_cleanup",function(){Ak(this).replaceWith(Ae.children())});D(Ak(B))}else{if(Al.iframe){D(" ")}else{if(Al.html){D(Al.html)}else{if(AF(B)){E=new Image;E.onload=function(){var F;E.onload=null;E.id="cboxPhoto";Ak(E).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(Al.scalePhotos){C=function(){E.height-=E.height*F;E.width-=E.width*F};if(Al.mw&&E.width>Al.mw){F=(E.width-Al.mw)/E.width;C()}if(Al.mh&&E.height>Al.mh){F=(E.height-Al.mh)/E.height;C()}}if(Al.h){E.style.marginTop=Math.max(Al.h-E.height,0)/2+"px"}D(E);Ai.length>1&&Ak(E).css({cursor:"pointer"}).click(Aj.next);if(AT){E.style.msInterpolationMode="bicubic"}};E.src=B}else{Ak("<div />").appendTo(AI).load(B,function(H,F){F==="success"?D(this):D(Ak("<p>Request unsuccessful.</p>"))})}}}}};Aj.next=function(){if(!AN){Ag=Ag<Ai.length-1?Ag+1:0;Aj.load()}};Aj.prev=function(){if(!AN){Ag=Ag>0?Ag-1:Ai.length-1;Aj.load()}};Aj.slideshow=function(){function B(){AX.text(Al.slideshowStop).bind(o,function(){C=setTimeout(Aj.next,Al.slideshowSpeed)}).bind(AJ,function(){clearTimeout(C)}).one("click",function(){E();Ak(this).removeClass(AK)});Af.removeClass(D+"off").addClass(D+"on")}var E,C,D="cboxSlideshow_";AX.bind("cbox_closed",function(){AX.unbind();clearTimeout(C);Af.removeClass(D+"off "+D+"on")});E=function(){clearTimeout(C);AX.text(Al.slideshowStart).unbind(o+" "+AJ).one("click",function(){B();C=setTimeout(Aj.next,Al.slideshowSpeed);Ak(this).removeClass(AK)});Af.removeClass(D+"on").addClass(D+"off")};if(Al.slideshow&&Ai.length>1){Al.slideshowAuto?B():E()}};Aj.close=function(){Ak.event.trigger("cbox_cleanup");Al.onCleanup&&Al.onCleanup.call(Ah);AO=false;Ak(document).unbind("keydown.cbox_close keydown.cbox_arrows");Ad.unbind(h+" resize.cboxie6 scroll.cboxie6");AY.css({cursor:"auto"}).fadeOut("fast");Af.stop(Ac,false).fadeOut("fast",function(){Ak("#colorbox iframe").attr("src","about:blank");Ae.remove();Af.css({opacity:1});try{AE.focus()}catch(B){}Ak.event.trigger("cbox_closed");Al.onClosed&&Al.onClosed.call(Ah)})};Aj.element=function(){return Ak(Ah)};Aj.settings=AQ;Ak(Aj.init)})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof (config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof (v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return }var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);(function(A){A.extend({tablesorterPager:new function(){function J(L){var K=A(L.cssPageDisplay,L.container).val((L.page+1)+L.seperator+L.totalPages)}function B(L,K){var M=L.config;M.size=K;M.totalPages=Math.ceil(M.totalRows/M.size);M.pagerPositionSet=false;D(L);E(L)}function E(K){var M=K.config;if(!M.pagerPositionSet&&M.positionFixed){var M=K.config,L=A(K);if(L.offset){M.container.css({top:L.offset().top+L.height()+"px",position:"absolute"})}M.pagerPositionSet=true}}function F(K){var L=K.config;L.page=0;D(K)}function C(K){var L=K.config;L.page=(L.totalPages-1);D(K)}function I(K){var L=K.config;L.page++;if(L.page>=(L.totalPages-1)){L.page=(L.totalPages-1)}D(K)}function G(K){var L=K.config;L.page--;if(L.page<=0){L.page=0}D(K)}function D(K){var L=K.config;if(L.page<0||L.page>(L.totalPages-1)){L.page=0}H(K,L.rowsCopy)}function H(R,S){var Q=R.config;var M=S.length;var T=(Q.page*Q.size);var P=(T+Q.size);if(P>S.length){P=S.length}var L=A(R.tBodies[0]);A.tablesorter.clearTableBody(R);for(var O=T;O<P;O++){var K=S[O];var M=K.length;for(var N=0;N<M;N++){L[0].appendChild(K[N])}}E(R,L);A(R).trigger("applyWidgets");if(Q.page>=Q.totalPages){C(R)}J(Q)}this.appender=function(K,L){var M=K.config;M.rowsCopy=L;M.totalRows=L.length;M.totalPages=Math.ceil(M.totalRows/M.size);H(K,L)};this.defaults={size:10,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:".next",cssPrev:".prev",cssFirst:".first",cssLast:".last",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",seperator:"/",positionFixed:true,appender:this.appender};this.construct=function(K){return this.each(function(){config=A.extend(this.config,A.tablesorterPager.defaults,K);var M=this,L=config.container;A(this).trigger("appendCache");config.size=parseInt(A(".pagesize",L).val());A(config.cssFirst,L).click(function(){F(M);return false});A(config.cssNext,L).click(function(){I(M);return false});A(config.cssPrev,L).click(function(){G(M);return false});A(config.cssLast,L).click(function(){C(M);return false});A(config.cssPageSize,L).change(function(){B(M,parseInt(A(this).val()));return false})})}}});A.fn.extend({tablesorterPager:A.tablesorterPager.construct})})(jQuery);(function(E){E.fn.jqm=function(F){var A={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:O,ajaxText:"",target:O,modal:O,toTop:O,onShow:O,onHide:O,onLoad:O};return this.each(function(){if(this._jqm){return N[this._jqm].c=E.extend({},N[this._jqm].c,F)}P++;this._jqm=P;N[P]={c:E.extend(A,E.jqm.params,F),a:O,w:E(this).addClass("jqmID"+P),s:P};if(A.trigger){E(this).jqmAddTrigger(A.trigger)}})};E.fn.jqmAddClose=function(A){return M(this,A,"jqmHide")};E.fn.jqmAddTrigger=function(A){return M(this,A,"jqmShow")};E.fn.jqmShow=function(A){return this.each(function(){A=A||window.event;E.jqm.open(this._jqm,A)})};E.fn.jqmHide=function(A){return this.each(function(){A=A||window.event;E.jqm.close(this._jqm,A)})};E.jqm={hash:{},open:function(V,U){var L=N[V],Q=L.c,H="."+Q.closeClass,R=(parseInt(L.w.css("z-index"))),R=(R>0)?R:3000,F=E("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":R-1,opacity:Q.overlay/100});if(L.a){return O}L.t=U;L.a=true;L.w.css("z-index",R);if(Q.modal){if(!B[0]){K("bind")}B.push(V)}else{if(Q.overlay>0){L.w.jqmAddClose(F)}else{F=O}}L.o=(F)?F.addClass(Q.overlayClass).prependTo("body"):O;if(D){E("html,body").css({height:"100%",width:"100%"});if(F){F=F.css({position:"absolute"})[0];for(var S in {Top:1,Left:1}){F.style.setExpression(S.toLowerCase(),"(_=(document.documentElement.scroll"+S+" || document.body.scroll"+S+"))+'px'")}}}if(Q.ajax){var A=Q.target||L.w,T=Q.ajax,A=(typeof A=="string")?E(A,L.w):E(A),T=(T.substr(0,1)=="@")?E(U).attr(T.substring(1)):T;A.html(Q.ajaxText).load(T,function(){if(Q.onLoad){Q.onLoad.call(this,L)}if(H){L.w.jqmAddClose(E(H,L.w))}J(L)})}else{if(H){L.w.jqmAddClose(E(H,L.w))}}if(Q.toTop&&L.o){L.w.before('<span id="jqmP'+L.w[0]._jqm+'"></span>').insertAfter(L.o)}(Q.onShow)?Q.onShow(L):L.w.show();J(L);return O},close:function(F){var A=N[F];if(!A.a){return O}A.a=O;if(B[0]){B.pop();if(!B[0]){K("unbind")}}if(A.c.toTop&&A.o){E("#jqmP"+A.w[0]._jqm).after(A.w).remove()}if(A.c.onHide){A.c.onHide(A)}else{A.w.hide();if(A.o){A.o.remove()}}return O},params:{}};var P=0,N=E.jqm.hash,B=[],D=E.browser.msie&&(E.browser.version=="6.0"),O=false,G=E('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),J=function(A){if(D){if(A.o){A.o.html('<p style="width:100%;height:100%"/>').prepend(G)}else{if(!E("iframe.jqm",A.w)[0]){A.w.prepend(G)}}}I(A)},I=function(F){try{E(":input:visible",F.w)[0].focus()}catch(A){}},K=function(A){E()[A]("keypress",C)[A]("keydown",C)[A]("mousedown",C)},C=function(H){var A=N[B[B.length-1]],F=(!E(H.target).parents(".jqmID"+A.s)[0]);if(F){I(A)}return !F},M=function(A,F,H){return A.each(function(){var L=this._jqm;E(F).each(function(){if(!this[H]){this[H]=[];E(this).click(function(){for(var Q in {jqmShow:1,jqmHide:1}){for(var R in this[Q]){if(N[this[Q][R]]){N[this[Q][R]].w[Q](this)}}}return O})}this[H].push(L)})})}})(jQuery);(function($){$.fn.validationEngine=function(settings){if($.validationEngineLanguage){allRules=$.validationEngineLanguage.allRules}else{$.validationEngine.debug("Validation engine rules are not loaded check your external file")}settings=jQuery.extend({allrules:allRules,validationEventTriggers:"focusout",inlineValidation:true,returnIsValid:false,liveEvent:true,unbindEngine:true,ajaxSubmit:false,scroll:true,promptPosition:"topRight",success:false,beforeSuccess:function(){},failure:function(){}},settings);$.validationEngine.settings=settings;$.validationEngine.ajaxValidArray=new Array();if(settings.inlineValidation==true){if(!settings.returnIsValid){allowReturnIsvalid=false;if(settings.liveEvent){$(this).find("[class*=validate][type!=checkbox]").live(settings.validationEventTriggers,function(caller){_inlinEvent(this)});$(this).find("[class*=validate][type=checkbox]").live("click",function(caller){_inlinEvent(this)})}else{$(this).find("[class*=validate]").not("[type=checkbox]").bind(settings.validationEventTriggers,function(caller){_inlinEvent(this)});$(this).find("[class*=validate][type=checkbox]").bind("click",function(caller){_inlinEvent(this)})}firstvalid=false}function _inlinEvent(caller){$.validationEngine.settings=settings;if($.validationEngine.intercept==false||!$.validationEngine.intercept){$.validationEngine.onSubmitValid=false;$.validationEngine.loadValidation(caller)}else{$.validationEngine.intercept=false}}}if(settings.returnIsValid){if($.validationEngine.submitValidation(this,settings)){return false}else{return true}}$(this).bind("submit",function(caller){$.validationEngine.onSubmitValid=true;$.validationEngine.settings=settings;if($.validationEngine.submitValidation(this,settings)==false){if($.validationEngine.submitForm(this,settings)==true){return false}}else{settings.failure&&settings.failure();return false}});$(".formError").live("click",function(){$(this).fadeOut(150,function(){$(this).remove()})})};$.validationEngine={defaultSetting:function(caller){if($.validationEngineLanguage){allRules=$.validationEngineLanguage.allRules}else{$.validationEngine.debug("Validation engine rules are not loaded check your external file")}settings={allrules:allRules,validationEventTriggers:"blur",inlineValidation:true,returnIsValid:false,scroll:true,unbindEngine:true,ajaxSubmit:false,promptPosition:"topRight",success:false,failure:function(){}};$.validationEngine.settings=settings},loadValidation:function(caller){if(!$.validationEngine.settings){$.validationEngine.defaultSetting()}rulesParsing=$(caller).attr("class");rulesRegExp=/\[(.*)\]/;getRules=rulesRegExp.exec(rulesParsing);str=getRules[1];pattern=/\[|,|\]/;result=str.split(pattern);var validateCalll=$.validationEngine.validateCall(caller,result);return validateCalll},validateCall:function(caller,rules){var promptText="";if(!$(caller).attr("id")){$.validationEngine.debug("This field have no ID attribut( name & class displayed): "+$(caller).attr("name")+" "+$(caller).attr("class"))}caller=caller;ajaxValidate=false;var callerName=$(caller).attr("name");$.validationEngine.isError=false;$.validationEngine.showTriangle=true;callerType=$(caller).attr("type");for(i=0;i<rules.length;i++){switch(rules[i]){case"optional":if(!$(caller).val()){$.validationEngine.closePrompt(caller);return $.validationEngine.isError}break;case"required":_required(caller,rules);break;case"custom":_customRegex(caller,rules,i);break;case"exemptString":_exemptString(caller,rules,i);break;case"ajax":if(!$.validationEngine.onSubmitValid){_ajax(caller,rules,i)}break;case"length":_length(caller,rules,i);break;case"maxCheckbox":_maxCheckbox(caller,rules,i);groupname=$(caller).attr("name");caller=$("input[name='"+groupname+"']");break;case"minCheckbox":_minCheckbox(caller,rules,i);groupname=$(caller).attr("name");caller=$("input[name='"+groupname+"']");break;case"confirm":_confirm(caller,rules,i);break;case"funcCall":_funcCall(caller,rules,i);break;default:}}radioHack();if($.validationEngine.isError==true){linkTofield=$.validationEngine.linkTofield(caller);($("div."+linkTofield).size()==0)?$.validationEngine.buildPrompt(caller,promptText,"error"):$.validationEngine.updatePromptText(caller,promptText)}else{$.validationEngine.closePrompt(caller)}function radioHack(){if($("input[name='"+callerName+"']").size()>1&&(callerType=="radio"||callerType=="checkbox")){caller=$("input[name='"+callerName+"'][type!=hidden]:first");$.validationEngine.showTriangle=false}}function _required(caller,rules){callerType=$(caller).attr("type");if(callerType=="text"||callerType=="password"||callerType=="textarea"){if(!$(caller).val()){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules[rules[i]].alertText+"<br />"}}if(callerType=="radio"||callerType=="checkbox"){callerName=$(caller).attr("name");if($("input[name='"+callerName+"']:checked").size()==0){$.validationEngine.isError=true;if($("input[name='"+callerName+"']").size()==1){promptText+=$.validationEngine.settings.allrules[rules[i]].alertTextCheckboxe+"<br />"}else{promptText+=$.validationEngine.settings.allrules[rules[i]].alertTextCheckboxMultiple+"<br />"}}}if(callerType=="select-one"){if(!$(caller).val()){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules[rules[i]].alertText+"<br />"}}if(callerType=="select-multiple"){if(!$(caller).find("option:selected").val()){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules[rules[i]].alertText+"<br />"}}}function _customRegex(caller,rules,position){customRule=rules[position+1];pattern=eval($.validationEngine.settings.allrules[customRule].regex);if(!pattern.test($(caller).attr("value"))){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules[customRule].alertText+"<br />"}}function _exemptString(caller,rules,position){customString=rules[position+1];if(customString==$(caller).attr("value")){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules.required.alertText+"<br />"}}function _funcCall(caller,rules,position){customRule=rules[position+1];funce=$.validationEngine.settings.allrules[customRule].nname;var fn=window[funce];if(typeof (fn)==="function"){var fn_result=fn();$.validationEngine.isError=fn_result;promptText+=$.validationEngine.settings.allrules[customRule].alertText+"<br />"}}function _ajax(caller,rules,position){customAjaxRule=rules[position+1];postfile=$.validationEngine.settings.allrules[customAjaxRule].file;fieldValue=$(caller).val();ajaxCaller=caller;fieldId=$(caller).attr("id");ajaxValidate=true;ajaxisError=$.validationEngine.isError;if($.validationEngine.settings.allrules[customAjaxRule].extraData){extraData=$.validationEngine.settings.allrules[customAjaxRule].extraData}else{extraData=""}if(!ajaxisError){$.ajax({type:"POST",url:postfile,async:true,data:"validateValue="+fieldValue+"&validateId="+fieldId+"&validateError="+customAjaxRule+extraData,beforeSend:function(){if($.validationEngine.settings.allrules[customAjaxRule].alertTextLoad){if(!$("div."+fieldId+"formError")[0]){return $.validationEngine.buildPrompt(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextLoad,"load")}else{$.validationEngine.updatePromptText(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextLoad,"load")}}},error:function(data,transport){$.validationEngine.debug("error in the ajax: "+data.status+" "+transport)},success:function(data){data=eval("("+data+")");ajaxisError=data.jsonValidateReturn[2];customAjaxRule=data.jsonValidateReturn[1];ajaxCaller=$("#"+data.jsonValidateReturn[0])[0];fieldId=ajaxCaller;ajaxErrorLength=$.validationEngine.ajaxValidArray.length;existInarray=false;if(ajaxisError=="false"){_checkInArray(false);if(!existInarray){$.validationEngine.ajaxValidArray[ajaxErrorLength]=new Array(2);$.validationEngine.ajaxValidArray[ajaxErrorLength][0]=fieldId;$.validationEngine.ajaxValidArray[ajaxErrorLength][1]=false;existInarray=false}$.validationEngine.ajaxValid=false;promptText+=$.validationEngine.settings.allrules[customAjaxRule].alertText+"<br />";$.validationEngine.updatePromptText(ajaxCaller,promptText,"",true)}else{_checkInArray(true);$.validationEngine.ajaxValid=true;if(!customAjaxRule){$.validationEngine.debug("wrong ajax response, are you on a server or in xampp? if not delete de ajax[ajaxUser] validating rule from your form ")}if($.validationEngine.settings.allrules[customAjaxRule].alertTextOk){$.validationEngine.updatePromptText(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextOk,"pass",true)}else{ajaxValidate=false;$.validationEngine.closePrompt(ajaxCaller)}}function _checkInArray(validate){for(x=0;x<ajaxErrorLength;x++){if($.validationEngine.ajaxValidArray[x][0]==fieldId){$.validationEngine.ajaxValidArray[x][1]=validate;existInarray=true}}}}})}}function _confirm(caller,rules,position){confirmField=rules[position+1];if($(caller).attr("value")!=$("#"+confirmField).attr("value")){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules.confirm.alertText+"<br />"}}function _length(caller,rules,position){startLength=eval(rules[position+1]);endLength=eval(rules[position+2]);feildLength=$(caller).attr("value").length;if(feildLength<startLength||feildLength>endLength){$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules.length.alertText+startLength+$.validationEngine.settings.allrules.length.alertText2+endLength+$.validationEngine.settings.allrules.length.alertText3+"<br />"}}function _maxCheckbox(caller,rules,position){nbCheck=eval(rules[position+1]);groupname=$(caller).attr("name");groupSize=$("input[name='"+groupname+"']:checked").size();if(groupSize>nbCheck){$.validationEngine.showTriangle=false;$.validationEngine.isError=true;promptText+=$.validationEngine.settings.allrules.maxCheckbox.alertText+"<br />"}}function _minCheckbox(caller,rules,position){nbCheck=eval(rules[position+1]);groupname=$(caller).attr("name");groupSize=$("input[name='"+groupname+"']:checked").size();if(groupSize<nbCheck){$.validationEngine.isError=true;$.validationEngine.showTriangle=false;promptText+=$.validationEngine.settings.allrules.minCheckbox.alertText+" "+nbCheck+" "+$.validationEngine.settings.allrules.minCheckbox.alertText2+"<br />"}}return($.validationEngine.isError)?$.validationEngine.isError:false},submitForm:function(caller){if($.validationEngine.settings.ajaxSubmit){if($.validationEngine.settings.ajaxSubmitExtraData){extraData=$.validationEngine.settings.ajaxSubmitExtraData}else{extraData=""}$.ajax({type:"POST",url:$.validationEngine.settings.ajaxSubmitFile,async:true,data:$(caller).serialize()+"&"+extraData,error:function(data,transport){$.validationEngine.debug("error in the ajax: "+data.status+" "+transport)},success:function(data){if(data=="true"){$(caller).css("opacity",1);$(caller).animate({opacity:0,height:0},function(){$(caller).css("display","none");$(caller).before("<div class='ajaxSubmit'>"+$.validationEngine.settings.ajaxSubmitMessage+"</div>");$.validationEngine.closePrompt(".formError",true);$(".ajaxSubmit").show("slow");if($.validationEngine.settings.success){$.validationEngine.settings.success&&$.validationEngine.settings.success();return false}})}else{data=eval("("+data+")");if(!data.jsonValidateReturn){$.validationEngine.debug("you are not going into the success fonction and jsonValidateReturn return nothing")}errorNumber=data.jsonValidateReturn.length;for(index=0;index<errorNumber;index++){fieldId=data.jsonValidateReturn[index][0];promptError=data.jsonValidateReturn[index][1];type=data.jsonValidateReturn[index][2];$.validationEngine.buildPrompt(fieldId,promptError,type)}}}});return true}if(!$.validationEngine.settings.beforeSuccess()){if($.validationEngine.settings.success){if($.validationEngine.settings.unbindEngine){$(caller).unbind("submit")}$.validationEngine.settings.success&&$.validationEngine.settings.success();return true}}else{return true}return false},buildPrompt:function(caller,promptText,type,ajaxed){if(!$.validationEngine.settings){$.validationEngine.defaultSetting()}deleteItself="."+$(caller).attr("id")+"formError";if($(deleteItself)[0]){$(deleteItself).stop();$(deleteItself).remove()}var divFormError=document.createElement("div");var formErrorContent=document.createElement("div");linkTofield=$.validationEngine.linkTofield(caller);$(divFormError).addClass("formError");if(type=="pass"){$(divFormError).addClass("greenPopup")}if(type=="load"){$(divFormError).addClass("blackPopup")}if(ajaxed){$(divFormError).addClass("ajaxed")}$(divFormError).addClass(linkTofield);$(formErrorContent).addClass("formErrorContent");$("body").append(divFormError);$(divFormError).append(formErrorContent);if($.validationEngine.showTriangle!=false){var arrow=document.createElement("div");$(arrow).addClass("formErrorArrow");$(divFormError).append(arrow);if($.validationEngine.settings.promptPosition=="bottomLeft"||$.validationEngine.settings.promptPosition=="bottomRight"){$(arrow).addClass("formErrorArrowBottom");$(arrow).html('<div class="line1"><!-- --></div><div class="line2"><!-- --></div><div class="line3"><!-- --></div><div class="line4"><!-- --></div><div class="line5"><!-- --></div><div class="line6"><!-- --></div><div class="line7"><!-- --></div><div class="line8"><!-- --></div><div class="line9"><!-- --></div><div class="line10"><!-- --></div>')}if($.validationEngine.settings.promptPosition=="topLeft"||$.validationEngine.settings.promptPosition=="topRight"){$(divFormError).append(arrow);$(arrow).html('<div class="line10"><!-- --></div><div class="line9"><!-- --></div><div class="line8"><!-- --></div><div class="line7"><!-- --></div><div class="line6"><!-- --></div><div class="line5"><!-- --></div><div class="line4"><!-- --></div><div class="line3"><!-- --></div><div class="line2"><!-- --></div><div class="line1"><!-- --></div>')}}$(formErrorContent).html(promptText);callerTopPosition=$(caller).offset().top;callerleftPosition=$(caller).offset().left;callerWidth=$(caller).width();inputHeight=$(divFormError).height();if($.validationEngine.settings.promptPosition=="topRight"){callerleftPosition+=callerWidth-30;callerTopPosition+=-inputHeight-10}if($.validationEngine.settings.promptPosition=="topLeft"){callerTopPosition+=-inputHeight-10}if($.validationEngine.settings.promptPosition=="centerRight"){callerleftPosition+=callerWidth+13}if($.validationEngine.settings.promptPosition=="bottomLeft"){callerHeight=$(caller).height();callerleftPosition=callerleftPosition;callerTopPosition=callerTopPosition+callerHeight+15}if($.validationEngine.settings.promptPosition=="bottomRight"){callerHeight=$(caller).height();callerleftPosition+=callerWidth-30;callerTopPosition+=callerHeight+15}$(divFormError).css({top:callerTopPosition,left:callerleftPosition,opacity:0});return $(divFormError).animate({opacity:0.87},function(){return true})},updatePromptText:function(caller,promptText,type,ajaxed){linkTofield=$.validationEngine.linkTofield(caller);var updateThisPrompt="."+linkTofield;if(type=="pass"){$(updateThisPrompt).addClass("greenPopup")}else{$(updateThisPrompt).removeClass("greenPopup")}if(type=="load"){$(updateThisPrompt).addClass("blackPopup")}else{$(updateThisPrompt).removeClass("blackPopup")}if(ajaxed){$(updateThisPrompt).addClass("ajaxed")}else{$(updateThisPrompt).removeClass("ajaxed")}$(updateThisPrompt).find(".formErrorContent").html(promptText);callerTopPosition=$(caller).offset().top;inputHeight=$(updateThisPrompt).height();if($.validationEngine.settings.promptPosition=="bottomLeft"||$.validationEngine.settings.promptPosition=="bottomRight"){callerHeight=$(caller).height();callerTopPosition=callerTopPosition+callerHeight+15}if($.validationEngine.settings.promptPosition=="centerRight"){callerleftPosition+=callerWidth+13}if($.validationEngine.settings.promptPosition=="topLeft"||$.validationEngine.settings.promptPosition=="topRight"){callerTopPosition=callerTopPosition-inputHeight-10}$(updateThisPrompt).animate({top:callerTopPosition})},linkTofield:function(caller){linkTofield=$(caller).attr("id")+"formError";linkTofield=linkTofield.replace(/\[/g,"");linkTofield=linkTofield.replace(/\]/g,"");return linkTofield},closePrompt:function(caller,outside){if(!$.validationEngine.settings){$.validationEngine.defaultSetting()}if(outside){$(caller).fadeTo("fast",0,function(){$(caller).remove()});return false}if(typeof (ajaxValidate)=="undefined"){ajaxValidate=false}if(!ajaxValidate){linkTofield=$.validationEngine.linkTofield(caller);closingPrompt="."+linkTofield;$(closingPrompt).fadeTo("fast",0,function(){$(closingPrompt).remove()})}},debug:function(error){if(!$("#debugMode")[0]){$("body").append("<div id='debugMode'><div class='debugError'><strong>This is a debug mode, you got a problem with your form, it will try to help you, refresh when you think you nailed down the problem</strong></div></div>")}$(".debugError").append("<div class='debugerror'>"+error+"</div>")},submitValidation:function(caller){var stopForm=false;$.validationEngine.ajaxValid=true;$(caller).find(".formError").remove();var toValidateSize=$(caller).find("[class*=validate]").size();$(caller).find("[class*=validate]").each(function(){linkTofield=$.validationEngine.linkTofield(this);if(!$("."+linkTofield).hasClass("ajaxed")){var validationPass=$.validationEngine.loadValidation(this);return(validationPass)?stopForm=true:""}});ajaxErrorLength=$.validationEngine.ajaxValidArray.length;for(x=0;x<ajaxErrorLength;x++){if($.validationEngine.ajaxValidArray[x][1]==false){$.validationEngine.ajaxValid=false}}if(stopForm||!$.validationEngine.ajaxValid){if($.validationEngine.settings.scroll){destination=$(".formError:not('.greenPopup'):first").offset().top;$(".formError:not('.greenPopup')").each(function(){testDestination=$(this).offset().top;if(destination>testDestination){destination=$(this).offset().top}});$("html:not(:animated),body:not(:animated)").animate({scrollTop:destination},1100)}return true}else{return false}}}})(jQuery);(function(A){A.fn.validationEngineLanguage=function(){};A.validationEngineLanguage={newLang:function(){A.validationEngineLanguage.allRules={required:{regex:"none",alertText:"* This field is required",alertTextCheckboxMultiple:"* Please select an option",alertTextCheckboxe:"* This checkbox is required"},length:{regex:"none",alertText:"* Between ",alertText2:" and ",alertText3:" characters allowed"},maxCheckbox:{regex:"none",alertText:"* Checks allowed Exceeded"},minCheckbox:{regex:"none",alertText:"* Please select ",alertText2:" options"},confirm:{regex:"none",alertText:"* Your field is not matching"},telephone:{regex:"/^[0-9-() ]+$/",alertText:"* Invalid phone number"},email:{regex:"/^[a-zA-Z0-9_.-]+@([a-zA-Z0-9-]+.)+[a-zA-Z0-9]{2,4}$/",alertText:"* Invalid email address"},date:{regex:"/^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}$/",alertText:"* Invalid date, must be in YYYY-MM-DD format"},onlyNumber:{regex:"/^[0-9 ]+$/",alertText:"* Numbers only"},noSpecialCaracters:{regex:"/^[0-9a-z-]*$/",alertText:"* No special caracters allowed. Only a-z, 0-9 and hyphen allowed"},ajaxUser:{file:"validateUser.php",extraData:"name=eric",alertTextOk:"* This user is available",alertTextLoad:"* Loading, please wait",alertText:"* This user is already taken"},ajaxName:{file:"validateUser.php",alertText:"* This name is already taken",alertTextOk:"* This name is available",alertTextLoad:"* Loading, please wait"},onlyLetter:{regex:"/^[a-zA-Z ']+$/",alertText:"* Letters only"},validate2fields:{nname:"validate2fields",alertText:"* You must have a firstname and a lastname"}}}}})(jQuery);$(document).ready(function(){$.validationEngineLanguage.newLang()});
