/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var p=this,k,G=p.jQuery,v=p.$,u=p.jQuery=p.$=function(M,N){return new u.fn.init(M,N)},L=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,i=/^.[^:#\[\.,]*$/;u.fn=u.prototype={init:function(M,P){M=M||document;if(M.nodeType){this[0]=M;this.length=1;this.context=M;return this}if(typeof M==="string"){var O=L.exec(M);if(O&&(O[1]||!P)){if(O[1]){M=u.clean([O[1]],P)}else{var Q=document.getElementById(O[3]);if(Q){if(Q.id!=O[3]){return u().find(M)}}var N=u(Q||[]);N.context=document;N.selector=M;return N}}else{return u(P).find(M)}}else{if(u.isFunction(M)){return u(document).ready(M)}}if(M.selector&&M.context){this.selector=M.selector;this.context=M.context}return this.setArray(u.isArray(M)?M:u.makeArray(M))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(M){return M===k?Array.prototype.slice.call(this):this[M]},pushStack:function(N,P,M){var O=u(N);O.prevObject=this;O.context=this.context;if(P==="find"){O.selector=this.selector+(this.selector?" ":"")+M}else{if(P){O.selector=this.selector+"."+P+"("+M+")"}}return O},setArray:function(M){this.length=0;Array.prototype.push.apply(this,M);return this},each:function(N,M){return u.each(this,N,M)},index:function(M){return u.inArray(M&&M.jquery?M[0]:M,this)},attr:function(N,P,O){var M=N;if(typeof N==="string"){if(P===k){return this[0]&&u[O||"attr"](this[0],N)}else{M={};M[N]=P}}return this.each(function(Q){for(N in M){u.attr(O?this.style:this,N,u.prop(this,M[N],O,Q,N))}})},css:function(M,N){if((M=="width"||M=="height")&&parseFloat(N)<0){N=k}return this.attr(M,N,"curCSS")},text:function(N){if(typeof N!=="object"&&N!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(N))}var M="";u.each(N||this,function(){u.each(this.childNodes,function(){if(this.nodeType!=8){M+=this.nodeType!=1?this.nodeValue:u.fn.text([this])}})});return M},wrapAll:function(M){if(this[0]){var N=u(M,this[0].ownerDocument).clone();if(this[0].parentNode){N.insertBefore(this[0])}N.map(function(){var O=this;while(O.firstChild){O=O.firstChild}return O}).append(this)}return this},wrapInner:function(M){return this.each(function(){u(this).contents().wrapAll(M)})},wrap:function(M){return this.each(function(){u(this).wrapAll(M)})},append:function(){return this.domManip(arguments,true,function(M){if(this.nodeType==1){this.appendChild(M)}})},prepend:function(){return this.domManip(arguments,true,function(M){if(this.nodeType==1){this.insertBefore(M,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(M){this.parentNode.insertBefore(M,this)})},after:function(){return this.domManip(arguments,false,function(M){this.parentNode.insertBefore(M,this.nextSibling)})},end:function(){return this.prevObject||u([])},push:[].push,sort:[].sort,splice:[].splice,find:function(M){if(this.length===1){var N=this.pushStack([],"find",M);N.length=0;u.find(M,this[0],N);return N}else{return this.pushStack(u.unique(u.map(this,function(O){return u.find(M,O)})),"find",M)}},clone:function(O){var M=this.map(function(){if(!u.support.noCloneEvent&&!u.isXMLDoc(this)){var Q=this.outerHTML;if(!Q){var R=this.ownerDocument.createElement("div");R.appendChild(this.cloneNode(true));Q=R.innerHTML}return u.clean([Q.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(O===true){var P=this.find("*").andSelf(),N=0;M.find("*").andSelf().each(function(){if(this.nodeName!==P[N].nodeName){return}var Q=u.data(P[N],"events");for(var S in Q){for(var R in Q[S]){u.event.add(this,S,Q[S][R],Q[S][R].data)}}N++})}return M},filter:function(M){return this.pushStack(u.isFunction(M)&&u.grep(this,function(O,N){return M.call(O,N)})||u.multiFilter(M,u.grep(this,function(N){return N.nodeType===1})),"filter",M)},closest:function(M){var O=u.expr.match.POS.test(M)?u(M):null,N=0;return this.map(function(){var P=this;while(P&&P.ownerDocument){if(O?O.index(P)>-1:u(P).is(M)){u.data(P,"closest",N);return P}P=P.parentNode;N++}})},not:function(M){if(typeof M==="string"){if(i.test(M)){return this.pushStack(u.multiFilter(M,this,true),"not",M)}else{M=u.multiFilter(M,this)}}var N=M.length&&M[M.length-1]!==k&&!M.nodeType;return this.filter(function(){return N?u.inArray(this,M)<0:this!=M})},add:function(M){return this.pushStack(u.unique(u.merge(this.get(),typeof M==="string"?u(M):u.makeArray(M))))},is:function(M){return !!M&&u.multiFilter(M,this).length>0},hasClass:function(M){return !!M&&this.is("."+M)},val:function(S){if(S===k){var M=this[0];if(M){if(u.nodeName(M,"option")){return(M.attributes.value||{}).specified?M.value:M.text}if(u.nodeName(M,"select")){var Q=M.selectedIndex,T=[],U=M.options,P=M.type=="select-one";if(Q<0){return null}for(var N=P?Q:0,R=P?Q+1:U.length;N<R;N++){var O=U[N];if(O.selected){S=u(O).val();if(P){return S}T.push(S)}}return T}return(M.value||"").replace(/\r/g,"")}return k}if(typeof S==="number"){S+=""}return this.each(function(){if(this.nodeType!=1){return}if(u.isArray(S)&&/radio|checkbox/.test(this.type)){this.checked=(u.inArray(this.value,S)>=0||u.inArray(this.name,S)>=0)}else{if(u.nodeName(this,"select")){var V=u.makeArray(S);u("option",this).each(function(){this.selected=(u.inArray(this.value,V)>=0||u.inArray(this.text,V)>=0)});if(!V.length){this.selectedIndex=-1}}else{this.value=S}}})},html:function(M){return M===k?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(M)},replaceWith:function(M){return this.after(M).remove()},eq:function(M){return this.slice(M,+M+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(M){return this.pushStack(u.map(this,function(O,N){return M.call(O,N,O)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(R,U,T){if(this[0]){var Q=(this[0].ownerDocument||this[0]).createDocumentFragment(),N=u.clean(R,(this[0].ownerDocument||this[0]),Q),P=Q.firstChild;if(P){for(var O=0,M=this.length;O<M;O++){T.call(S(this[O],P),this.length>1||O>0?Q.cloneNode(true):Q)}}if(N){u.each(N,H)}}return this;function S(V,W){return U&&u.nodeName(V,"table")&&u.nodeName(W,"tr")?(V.getElementsByTagName("tbody")[0]||V.appendChild(V.ownerDocument.createElement("tbody"))):V}}};u.fn.init.prototype=u.fn;function H(M,N){if(N.src){u.ajax({url:N.src,async:false,dataType:"script"})}else{u.globalEval(N.text||N.textContent||N.innerHTML||"")}if(N.parentNode){N.parentNode.removeChild(N)}}function g(){return +new Date}u.extend=u.fn.extend=function(){var R=arguments[0]||{},P=1,Q=arguments.length,M=false,O;if(typeof R==="boolean"){M=R;R=arguments[1]||{};P=2}if(typeof R!=="object"&&!u.isFunction(R)){R={}}if(Q==P){R=this;--P}for(;P<Q;P++){if((O=arguments[P])!=null){for(var N in O){var S=R[N],T=O[N];if(R===T){continue}if(M&&T&&typeof T==="object"&&!T.nodeType){R[N]=u.extend(M,S||(T.length!=null?[]:{}),T)}else{if(T!==k){R[N]=T}}}}}return R};var d=/z-?index|font-?weight|opacity|zoom|line-?height/i,y=document.defaultView||{},A=Object.prototype.toString;u.extend({noConflict:function(M){p.$=v;if(M){p.jQuery=G}return u},isFunction:function(M){return A.call(M)==="[object Function]"},isArray:function(M){return A.call(M)==="[object Array]"},isXMLDoc:function(M){return M.nodeType===9&&M.documentElement.nodeName!=="HTML"||!!M.ownerDocument&&u.isXMLDoc(M.ownerDocument)},globalEval:function(O){if(O&&/\S/.test(O)){var N=document.getElementsByTagName("head")[0]||document.documentElement,M=document.createElement("script");M.type="text/javascript";if(u.support.scriptEval){M.appendChild(document.createTextNode(O))}else{M.text=O}N.insertBefore(M,N.firstChild);N.removeChild(M)}},nodeName:function(N,M){return N.nodeName&&N.nodeName.toUpperCase()==M.toUpperCase()},each:function(O,S,N){var M,P=0,Q=O.length;if(N){if(Q===k){for(M in O){if(S.apply(O[M],N)===false){break}}}else{for(;P<Q;){if(S.apply(O[P++],N)===false){break}}}}else{if(Q===k){for(M in O){if(S.call(O[M],M,O[M])===false){break}}}else{for(var R=O[0];P<Q&&S.call(R,P,R)!==false;R=O[++P]){}}}return O},prop:function(P,Q,O,N,M){if(u.isFunction(Q)){Q=Q.call(P,N)}return typeof Q==="number"&&O=="curCSS"&&!d.test(M)?Q+"px":Q},className:{add:function(M,N){u.each((N||"").split(/\s+/),function(O,P){if(M.nodeType==1&&!u.className.has(M.className,P)){M.className+=(M.className?" ":"")+P}})},remove:function(M,N){if(M.nodeType==1){M.className=N!==k?u.grep(M.className.split(/\s+/),function(O){return !u.className.has(N,O)}).join(" "):""}},has:function(N,M){return N&&u.inArray(M,(N.className||N).toString().split(/\s+/))>-1}},swap:function(P,O,Q){var M={};for(var N in O){M[N]=P.style[N];P.style[N]=O[N]}Q.call(P);for(var N in O){P.style[N]=M[N]}},css:function(P,N,R,M){if(N=="width"||N=="height"){var T,O={position:"absolute",visibility:"hidden",display:"block"},S=N=="width"?["Left","Right"]:["Top","Bottom"];function Q(){T=N=="width"?P.offsetWidth:P.offsetHeight;if(M==="border"){return}u.each(S,function(){if(!M){T-=parseFloat(u.curCSS(P,"padding"+this,true))||0}if(M==="margin"){T+=parseFloat(u.curCSS(P,"margin"+this,true))||0}else{T-=parseFloat(u.curCSS(P,"border"+this+"Width",true))||0}})}if(P.offsetWidth!==0){Q()}else{u.swap(P,O,Q)}return Math.max(0,Math.round(T))}return u.curCSS(P,N,R)},curCSS:function(Q,N,O){var T,M=Q.style;if(N=="opacity"&&!u.support.opacity){T=u.attr(M,"opacity");return T==""?"1":T}if(N.match(/float/i)){N=E}if(!O&&M&&M[N]){T=M[N]}else{if(y.getComputedStyle){if(N.match(/float/i)){N="float"}N=N.replace(/([A-Z])/g,"-$1").toLowerCase();var U=y.getComputedStyle(Q,null);if(U){T=U.getPropertyValue(N)}if(N=="opacity"&&T==""){T="1"}}else{if(Q.currentStyle){var R=N.replace(/\-(\w)/g,function(V,W){return W.toUpperCase()});T=Q.currentStyle[N]||Q.currentStyle[R];if(!/^\d+(px)?$/i.test(T)&&/^\d/.test(T)){var P=M.left,S=Q.runtimeStyle.left;Q.runtimeStyle.left=Q.currentStyle.left;M.left=T||0;T=M.pixelLeft+"px";M.left=P;Q.runtimeStyle.left=S}}}}return T},clean:function(N,S,Q){S=S||document;if(typeof S.createElement==="undefined"){S=S.ownerDocument||S[0]&&S[0].ownerDocument||document}if(!Q&&N.length===1&&typeof N[0]==="string"){var P=/^<(\w+)\s*\/?>$/.exec(N[0]);if(P){return[S.createElement(P[1])]}}var O=[],M=[],T=S.createElement("div");u.each(N,function(X,aa){if(typeof aa==="number"){aa+=""}if(!aa){return}if(typeof aa==="string"){aa=aa.replace(/(<(\w+)[^>]*?)\/>/g,function(ac,ad,ab){return ab.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?ac:ad+"></"+ab+">"});var W=aa.replace(/^\s+/,"").substring(0,10).toLowerCase();var Y=!W.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!W.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||W.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!W.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!W.indexOf("<td")||!W.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!W.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!u.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];T.innerHTML=Y[1]+aa+Y[2];while(Y[0]--){T=T.lastChild}if(!u.support.tbody){var Z=/<tbody/i.test(aa),V=!W.indexOf("<table")&&!Z?T.firstChild&&T.firstChild.childNodes:Y[1]=="<table>"&&!Z?T.childNodes:[];for(var U=V.length-1;U>=0;--U){if(u.nodeName(V[U],"tbody")&&!V[U].childNodes.length){V[U].parentNode.removeChild(V[U])}}}if(!u.support.leadingWhitespace&&/^\s/.test(aa)){T.insertBefore(S.createTextNode(aa.match(/^\s*/)[0]),T.firstChild)}aa=u.makeArray(T.childNodes)}if(aa.nodeType){O.push(aa)}else{O=u.merge(O,aa)}});if(Q){for(var R=0;O[R];R++){if(u.nodeName(O[R],"script")&&(!O[R].type||O[R].type.toLowerCase()==="text/javascript")){M.push(O[R].parentNode?O[R].parentNode.removeChild(O[R]):O[R])}else{if(O[R].nodeType===1){O.splice.apply(O,[R+1,0].concat(u.makeArray(O[R].getElementsByTagName("script"))))}Q.appendChild(O[R])}}return M}return O},attr:function(R,O,S){if(!R||R.nodeType==3||R.nodeType==8){return k}var P=!u.isXMLDoc(R),T=S!==k;O=P&&u.props[O]||O;if(R.tagName){var N=/href|src|style/.test(O);if(O=="selected"&&R.parentNode){R.parentNode.selectedIndex}if(O in R&&P&&!N){if(T){if(O=="type"&&u.nodeName(R,"input")&&R.parentNode){throw"type property can't be changed"}R[O]=S}if(u.nodeName(R,"form")&&R.getAttributeNode(O)){return R.getAttributeNode(O).nodeValue}if(O=="tabIndex"){var Q=R.getAttributeNode("tabIndex");return Q&&Q.specified?Q.value:R.nodeName.match(/(button|input|object|select|textarea)/i)?0:R.nodeName.match(/^(a|area)$/i)&&R.href?0:k}return R[O]}if(!u.support.style&&P&&O=="style"){return u.attr(R.style,"cssText",S)}if(T){R.setAttribute(O,""+S)}var M=!u.support.hrefNormalized&&P&&N?R.getAttribute(O,2):R.getAttribute(O);return M===null?k:M}if(!u.support.opacity&&O=="opacity"){if(T){R.zoom=1;R.filter=(R.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(S)+""=="NaN"?"":"alpha(opacity="+S*100+")")}return R.filter&&R.filter.indexOf("opacity=")>=0?(parseFloat(R.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}O=O.replace(/-([a-z])/ig,function(U,V){return V.toUpperCase()});if(T){R[O]=S}return R[O]},trim:function(M){return(M||"").replace(/^\s+|\s+$/g,"")},makeArray:function(O){var M=[];if(O!=null){var N=O.length;if(N==null||typeof O==="string"||u.isFunction(O)||O.setInterval){M[0]=O}else{while(N){M[--N]=O[N]}}}return M},inArray:function(O,P){for(var M=0,N=P.length;M<N;M++){if(P[M]===O){return M}}return -1},merge:function(P,M){var N=0,O,Q=P.length;if(!u.support.getAll){while((O=M[N++])!=null){if(O.nodeType!=8){P[Q++]=O}}}else{while((O=M[N++])!=null){P[Q++]=O}}return P},unique:function(S){var N=[],M={};try{for(var O=0,P=S.length;O<P;O++){var R=u.data(S[O]);if(!M[R]){M[R]=true;N.push(S[O])}}}catch(Q){N=S}return N},grep:function(N,R,M){var O=[];for(var P=0,Q=N.length;P<Q;P++){if(!M!=!R(N[P],P)){O.push(N[P])}}return O},map:function(M,R){var N=[];for(var O=0,P=M.length;O<P;O++){var Q=R(M[O],O);if(Q!=null){N[N.length]=Q}}return N.concat.apply([],N)}});var K=navigator.userAgent.toLowerCase();u.browser={version:(K.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(K),opera:/opera/.test(K),msie:/msie/.test(K)&&!/opera/.test(K),mozilla:/mozilla/.test(K)&&!/(compatible|webkit)/.test(K)};u.each({parent:function(M){return M.parentNode},parents:function(M){return u.dir(M,"parentNode")},next:function(M){return u.nth(M,2,"nextSibling")},prev:function(M){return u.nth(M,2,"previousSibling")},nextAll:function(M){return u.dir(M,"nextSibling")},prevAll:function(M){return u.dir(M,"previousSibling")},siblings:function(M){if(M.parentNode!=null){return u.sibling(M.parentNode.firstChild,M)}},children:function(M){return u.sibling(M.firstChild)},contents:function(M){return u.nodeName(M,"iframe")?M.contentDocument||M.contentWindow.document:u.makeArray(M.childNodes)}},function(M,N){u.fn[M]=function(O){var P=u.map(this,N);if(O&&typeof O=="string"){P=u.multiFilter(O,P)}return this.pushStack(u.unique(P),M,O)}});u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(M,N){u.fn[M]=function(O){var R=[],T=u(O);for(var S=0,P=T.length;S<P;S++){var Q=(S>0?this.clone(true):this).get();u.fn[N].apply(u(T[S]),Q);R=R.concat(Q)}return this.pushStack(R,M,O)}});u.each({removeAttr:function(M){u.attr(this,M,"");if(this.nodeType==1){this.removeAttribute(M)}},addClass:function(M){u.className.add(this,M)},removeClass:function(M){u.className.remove(this,M)},toggleClass:function(N,M){if(typeof M!=="boolean"){M=!u.className.has(this,N)}u.className[M?"add":"remove"](this,N)},remove:function(M){if(!M||u.filter(M,[this]).length){u("*",this).add([this]).each(function(){u.event.remove(this);u.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){u(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(M,N){u.fn[M]=function(){return this.each(N,arguments)}});function n(M,N){return M[0]&&parseInt(u.curCSS(M[0],N,true),10)||0}var l="jQuery"+g(),D=0,I={};u.extend({cache:{},data:function(N,M,O){N=N==p?I:N;var P=N[l];if(!P){P=N[l]=++D}if(M&&!u.cache[P]){u.cache[P]={}}if(O!==k){u.cache[P][M]=O}return M?u.cache[P][M]:P},removeData:function(N,M){N=N==p?I:N;var P=N[l];if(M){if(u.cache[P]){delete u.cache[P][M];M="";for(M in u.cache[P]){break}if(!M){u.removeData(N)}}}else{try{delete N[l]}catch(O){if(N.removeAttribute){N.removeAttribute(l)}}delete u.cache[P]}},queue:function(N,M,P){if(N){M=(M||"fx")+"queue";var O=u.data(N,M);if(!O||u.isArray(P)){O=u.data(N,M,u.makeArray(P))}else{if(P){O.push(P)}}}return O},dequeue:function(P,O){var M=u.queue(P,O),N=M.shift();if(!O||O==="fx"){N=M[0]}if(N!==k){N.call(P)}}});u.fn.extend({data:function(M,O){var P=M.split(".");P[1]=P[1]?"."+P[1]:"";if(O===k){var N=this.triggerHandler("getData"+P[1]+"!",[P[0]]);if(N===k&&this.length){N=u.data(this[0],M)}return N===k&&P[1]?this.data(P[0]):N}else{return this.trigger("setData"+P[1]+"!",[P[0],O]).each(function(){u.data(this,M,O)})}},removeData:function(M){return this.each(function(){u.removeData(this,M)})},queue:function(M,N){if(typeof M!=="string"){N=M;M="fx"}if(N===k){return u.queue(this[0],M)}return this.each(function(){var O=u.queue(this,M,N);if(M=="fx"&&O.length==1){O[0].call(this)}})},dequeue:function(M){return this.each(function(){u.dequeue(this,M)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var Z=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,T=0,P=Object.prototype.toString;var N=function(ag,ac,aj,ak){aj=aj||[];ac=ac||document;if(ac.nodeType!==1&&ac.nodeType!==9){return[]}if(!ag||typeof ag!=="string"){return aj}var ah=[],ae,an,aq,ab,al,ad,af=true;Z.lastIndex=0;while((ae=Z.exec(ag))!==null){ah.push(ae[1]);if(ae[2]){ad=RegExp.rightContext;break}}if(ah.length>1&&U.exec(ag)){if(ah.length===2&&Q.relative[ah[0]]){an=R(ah[0]+ah[1],ac)}else{an=Q.relative[ah[0]]?[ac]:N(ah.shift(),ac);while(ah.length){ag=ah.shift();if(Q.relative[ag]){ag+=ah.shift()}an=R(ag,an)}}}else{var am=ak?{expr:ah.pop(),set:M(ak)}:N.find(ah.pop(),ah.length===1&&ac.parentNode?ac.parentNode:ac,Y(ac));an=N.filter(am.expr,am.set);if(ah.length>0){aq=M(an)}else{af=false}while(ah.length){var ap=ah.pop(),ao=ap;if(!Q.relative[ap]){ap=""}else{ao=ah.pop()}if(ao==null){ao=ac}Q.relative[ap](aq,ao,Y(ac))}}if(!aq){aq=an}if(!aq){throw"Syntax error, unrecognized expression: "+(ap||ag)}if(P.call(aq)==="[object Array]"){if(!af){aj.push.apply(aj,aq)}else{if(ac.nodeType===1){for(var ai=0;aq[ai]!=null;ai++){if(aq[ai]&&(aq[ai]===true||aq[ai].nodeType===1&&S(ac,aq[ai]))){aj.push(an[ai])}}}else{for(var ai=0;aq[ai]!=null;ai++){if(aq[ai]&&aq[ai].nodeType===1){aj.push(an[ai])}}}}}else{M(aq,aj)}if(ad){N(ad,ac,aj,ak);if(O){hasDuplicate=false;aj.sort(O);if(hasDuplicate){for(var ai=1;ai<aj.length;ai++){if(aj[ai]===aj[ai-1]){aj.splice(ai--,1)}}}}}return aj};N.matches=function(ab,ac){return N(ab,null,null,ac)};N.find=function(ai,ab,aj){var ah,af;if(!ai){return[]}for(var ae=0,ad=Q.order.length;ae<ad;ae++){var ag=Q.order[ae],af;if((af=Q.match[ag].exec(ai))){var ac=RegExp.leftContext;if(ac.substr(ac.length-1)!=="\\"){af[1]=(af[1]||"").replace(/\\/g,"");ah=Q.find[ag](af,ab,aj);if(ah!=null){ai=ai.replace(Q.match[ag],"");break}}}}if(!ah){ah=ab.getElementsByTagName("*")}return{set:ah,expr:ai}};N.filter=function(al,ak,ao,ae){var ad=al,aq=[],ai=ak,ag,ab,ah=ak&&ak[0]&&Y(ak[0]);while(al&&ak.length){for(var aj in Q.filter){if((ag=Q.match[aj].exec(al))!=null){var ac=Q.filter[aj],ap,an;ab=false;if(ai==aq){aq=[]}if(Q.preFilter[aj]){ag=Q.preFilter[aj](ag,ai,ao,aq,ae,ah);if(!ag){ab=ap=true}else{if(ag===true){continue}}}if(ag){for(var af=0;(an=ai[af])!=null;af++){if(an){ap=ac(an,ag,af,ai);var am=ae^!!ap;if(ao&&ap!=null){if(am){ab=true}else{ai[af]=false}}else{if(am){aq.push(an);ab=true}}}}}if(ap!==k){if(!ao){ai=aq}al=al.replace(Q.match[aj],"");if(!ab){return[]}break}}}if(al==ad){if(ab==null){throw"Syntax error, unrecognized expression: "+al}else{break}}ad=al}return ai};var Q=N.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(ab){return ab.getAttribute("href")}},relative:{"+":function(ai,ab,ah){var af=typeof ab==="string",aj=af&&!/\W/.test(ab),ag=af&&!aj;if(aj&&!ah){ab=ab.toUpperCase()}for(var ae=0,ad=ai.length,ac;ae<ad;ae++){if((ac=ai[ae])){while((ac=ac.previousSibling)&&ac.nodeType!==1){}ai[ae]=ag||ac&&ac.nodeName===ab?ac||false:ac===ab}}if(ag){N.filter(ab,ai,true)}},">":function(ah,ac,ai){var af=typeof ac==="string";if(af&&!/\W/.test(ac)){ac=ai?ac:ac.toUpperCase();for(var ad=0,ab=ah.length;ad<ab;ad++){var ag=ah[ad];if(ag){var ae=ag.parentNode;ah[ad]=ae.nodeName===ac?ae:false}}}else{for(var ad=0,ab=ah.length;ad<ab;ad++){var ag=ah[ad];if(ag){ah[ad]=af?ag.parentNode:ag.parentNode===ac}}if(af){N.filter(ac,ah,true)}}},"":function(ae,ac,ag){var ad=T++,ab=aa;if(!ac.match(/\W/)){var af=ac=ag?ac:ac.toUpperCase();ab=X}ab("parentNode",ac,ad,ae,af,ag)},"~":function(ae,ac,ag){var ad=T++,ab=aa;if(typeof ac==="string"&&!ac.match(/\W/)){var af=ac=ag?ac:ac.toUpperCase();ab=X}ab("previousSibling",ac,ad,ae,af,ag)}},find:{ID:function(ac,ad,ae){if(typeof ad.getElementById!=="undefined"&&!ae){var ab=ad.getElementById(ac[1]);return ab?[ab]:[]}},NAME:function(ad,ag,ah){if(typeof ag.getElementsByName!=="undefined"){var ac=[],af=ag.getElementsByName(ad[1]);for(var ae=0,ab=af.length;ae<ab;ae++){if(af[ae].getAttribute("name")===ad[1]){ac.push(af[ae])}}return ac.length===0?null:ac}},TAG:function(ab,ac){return ac.getElementsByTagName(ab[1])}},preFilter:{CLASS:function(ae,ac,ad,ab,ah,ai){ae=" "+ae[1].replace(/\\/g,"")+" ";if(ai){return ae}for(var af=0,ag;(ag=ac[af])!=null;af++){if(ag){if(ah^(ag.className&&(" "+ag.className+" ").indexOf(ae)>=0)){if(!ad){ab.push(ag)}}else{if(ad){ac[af]=false}}}}return false},ID:function(ab){return ab[1].replace(/\\/g,"")},TAG:function(ac,ab){for(var ad=0;ab[ad]===false;ad++){}return ab[ad]&&Y(ab[ad])?ac[1]:ac[1].toUpperCase()},CHILD:function(ab){if(ab[1]=="nth"){var ac=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(ab[2]=="even"&&"2n"||ab[2]=="odd"&&"2n+1"||!/\D/.test(ab[2])&&"0n+"+ab[2]||ab[2]);ab[2]=(ac[1]+(ac[2]||1))-0;ab[3]=ac[3]-0}ab[0]=T++;return ab},ATTR:function(af,ac,ad,ab,ag,ah){var ae=af[1].replace(/\\/g,"");if(!ah&&Q.attrMap[ae]){af[1]=Q.attrMap[ae]}if(af[2]==="~="){af[4]=" "+af[4]+" "}return af},PSEUDO:function(af,ac,ad,ab,ag){if(af[1]==="not"){if(af[3].match(Z).length>1||/^\w/.test(af[3])){af[3]=N(af[3],null,null,ac)}else{var ae=N.filter(af[3],ac,ad,true^ag);if(!ad){ab.push.apply(ab,ae)}return false}}else{if(Q.match.POS.test(af[0])||Q.match.CHILD.test(af[0])){return true}}return af},POS:function(ab){ab.unshift(true);return ab}},filters:{enabled:function(ab){return ab.disabled===false&&ab.type!=="hidden"},disabled:function(ab){return ab.disabled===true},checked:function(ab){return ab.checked===true},selected:function(ab){ab.parentNode.selectedIndex;return ab.selected===true},parent:function(ab){return !!ab.firstChild},empty:function(ab){return !ab.firstChild},has:function(ad,ac,ab){return !!N(ab[3],ad).length},header:function(ab){return/h\d/i.test(ab.nodeName)},text:function(ab){return"text"===ab.type},radio:function(ab){return"radio"===ab.type},checkbox:function(ab){return"checkbox"===ab.type},file:function(ab){return"file"===ab.type},password:function(ab){return"password"===ab.type},submit:function(ab){return"submit"===ab.type},image:function(ab){return"image"===ab.type},reset:function(ab){return"reset"===ab.type},button:function(ab){return"button"===ab.type||ab.nodeName.toUpperCase()==="BUTTON"},input:function(ab){return/input|select|textarea|button/i.test(ab.nodeName)}},setFilters:{first:function(ac,ab){return ab===0},last:function(ad,ac,ab,ae){return ac===ae.length-1},even:function(ac,ab){return ab%2===0},odd:function(ac,ab){return ab%2===1},lt:function(ad,ac,ab){return ac<ab[3]-0},gt:function(ad,ac,ab){return ac>ab[3]-0},nth:function(ad,ac,ab){return ab[3]-0==ac},eq:function(ad,ac,ab){return ab[3]-0==ac}},filter:{PSEUDO:function(ah,ad,ae,ai){var ac=ad[1],af=Q.filters[ac];if(af){return af(ah,ae,ad,ai)}else{if(ac==="contains"){return(ah.textContent||ah.innerText||"").indexOf(ad[3])>=0}else{if(ac==="not"){var ag=ad[3];for(var ae=0,ab=ag.length;ae<ab;ae++){if(ag[ae]===ah){return false}}return true}}}},CHILD:function(ab,ae){var ah=ae[1],ac=ab;switch(ah){case"only":case"first":while(ac=ac.previousSibling){if(ac.nodeType===1){return false}}if(ah=="first"){return true}ac=ab;case"last":while(ac=ac.nextSibling){if(ac.nodeType===1){return false}}return true;case"nth":var ad=ae[2],ak=ae[3];if(ad==1&&ak==0){return true}var ag=ae[0],aj=ab.parentNode;if(aj&&(aj.sizcache!==ag||!ab.nodeIndex)){var af=0;for(ac=aj.firstChild;ac;ac=ac.nextSibling){if(ac.nodeType===1){ac.nodeIndex=++af}}aj.sizcache=ag}var ai=ab.nodeIndex-ak;if(ad==0){return ai==0}else{return(ai%ad==0&&ai/ad>=0)}}},ID:function(ac,ab){return ac.nodeType===1&&ac.getAttribute("id")===ab},TAG:function(ac,ab){return(ab==="*"&&ac.nodeType===1)||ac.nodeName===ab},CLASS:function(ac,ab){return(" "+(ac.className||ac.getAttribute("class"))+" ").indexOf(ab)>-1},ATTR:function(ag,ae){var ad=ae[1],ab=Q.attrHandle[ad]?Q.attrHandle[ad](ag):ag[ad]!=null?ag[ad]:ag.getAttribute(ad),ah=ab+"",af=ae[2],ac=ae[4];return ab==null?af==="!=":af==="="?ah===ac:af==="*="?ah.indexOf(ac)>=0:af==="~="?(" "+ah+" ").indexOf(ac)>=0:!ac?ah&&ab!==false:af==="!="?ah!=ac:af==="^="?ah.indexOf(ac)===0:af==="$="?ah.substr(ah.length-ac.length)===ac:af==="|="?ah===ac||ah.substr(0,ac.length+1)===ac+"-":false},POS:function(af,ac,ad,ag){var ab=ac[2],ae=Q.setFilters[ab];if(ae){return ae(af,ad,ac,ag)}}}};var U=Q.match.POS;for(var W in Q.match){Q.match[W]=RegExp(Q.match[W].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var M=function(ac,ab){ac=Array.prototype.slice.call(ac);if(ab){ab.push.apply(ab,ac);return ab}return ac};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(V){M=function(af,ae){var ac=ae||[];if(P.call(af)==="[object Array]"){Array.prototype.push.apply(ac,af)}else{if(typeof af.length==="number"){for(var ad=0,ab=af.length;ad<ab;ad++){ac.push(af[ad])}}else{for(var ad=0;af[ad];ad++){ac.push(af[ad])}}}return ac}}var O;if(document.documentElement.compareDocumentPosition){O=function(ac,ab){var ad=ac.compareDocumentPosition(ab)&4?-1:ac===ab?0:1;if(ad===0){hasDuplicate=true}return ad}}else{if("sourceIndex" in document.documentElement){O=function(ac,ab){var ad=ac.sourceIndex-ab.sourceIndex;if(ad===0){hasDuplicate=true}return ad}}else{if(document.createRange){O=function(ae,ac){var ad=ae.ownerDocument.createRange(),ab=ac.ownerDocument.createRange();ad.selectNode(ae);ad.collapse(true);ab.selectNode(ac);ab.collapse(true);var af=ad.compareBoundaryPoints(Range.START_TO_END,ab);if(af===0){hasDuplicate=true}return af}}}}(function(){var ac=document.createElement("form"),ad="script"+(new Date).getTime();ac.innerHTML="<input name='"+ad+"'/>";var ab=document.documentElement;ab.insertBefore(ac,ab.firstChild);if(!!document.getElementById(ad)){Q.find.ID=function(af,ag,ah){if(typeof ag.getElementById!=="undefined"&&!ah){var ae=ag.getElementById(af[1]);return ae?ae.id===af[1]||typeof ae.getAttributeNode!=="undefined"&&ae.getAttributeNode("id").nodeValue===af[1]?[ae]:k:[]}};Q.filter.ID=function(ag,ae){var af=typeof ag.getAttributeNode!=="undefined"&&ag.getAttributeNode("id");return ag.nodeType===1&&af&&af.nodeValue===ae}}ab.removeChild(ac)})();(function(){var ab=document.createElement("div");ab.appendChild(document.createComment(""));if(ab.getElementsByTagName("*").length>0){Q.find.TAG=function(ac,ag){var af=ag.getElementsByTagName(ac[1]);if(ac[1]==="*"){var ae=[];for(var ad=0;af[ad];ad++){if(af[ad].nodeType===1){ae.push(af[ad])}}af=ae}return af}}ab.innerHTML="<a href='#'></a>";if(ab.firstChild&&typeof ab.firstChild.getAttribute!=="undefined"&&ab.firstChild.getAttribute("href")!=="#"){Q.attrHandle.href=function(ac){return ac.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var ab=N,ac=document.createElement("div");ac.innerHTML="<p class='TEST'></p>";if(ac.querySelectorAll&&ac.querySelectorAll(".TEST").length===0){return}N=function(ag,af,ad,ae){af=af||document;if(!ae&&af.nodeType===9&&!Y(af)){try{return M(af.querySelectorAll(ag),ad)}catch(ah){}}return ab(ag,af,ad,ae)};N.find=ab.find;N.filter=ab.filter;N.selectors=ab.selectors;N.matches=ab.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var ab=document.createElement("div");ab.innerHTML="<div class='test e'></div><div class='test'></div>";if(ab.getElementsByClassName("e").length===0){return}ab.lastChild.className="e";if(ab.getElementsByClassName("e").length===1){return}Q.order.splice(1,0,"CLASS");Q.find.CLASS=function(ac,ad,ae){if(typeof ad.getElementsByClassName!=="undefined"&&!ae){return ad.getElementsByClassName(ac[1])}}})()}function X(ac,ah,ag,al,ai,ak){var aj=ac=="previousSibling"&&!ak;for(var ae=0,ad=al.length;ae<ad;ae++){var ab=al[ae];if(ab){if(aj&&ab.nodeType===1){ab.sizcache=ag;ab.sizset=ae}ab=ab[ac];var af=false;while(ab){if(ab.sizcache===ag){af=al[ab.sizset];break}if(ab.nodeType===1&&!ak){ab.sizcache=ag;ab.sizset=ae}if(ab.nodeName===ah){af=ab;break}ab=ab[ac]}al[ae]=af}}}function aa(ac,ah,ag,al,ai,ak){var aj=ac=="previousSibling"&&!ak;for(var ae=0,ad=al.length;ae<ad;ae++){var ab=al[ae];if(ab){if(aj&&ab.nodeType===1){ab.sizcache=ag;ab.sizset=ae}ab=ab[ac];var af=false;while(ab){if(ab.sizcache===ag){af=al[ab.sizset];break}if(ab.nodeType===1){if(!ak){ab.sizcache=ag;ab.sizset=ae}if(typeof ah!=="string"){if(ab===ah){af=true;break}}else{if(N.filter(ah,[ab]).length>0){af=ab;break}}}ab=ab[ac]}al[ae]=af}}}var S=document.compareDocumentPosition?function(ac,ab){return ac.compareDocumentPosition(ab)&16}:function(ac,ab){return ac!==ab&&(ac.contains?ac.contains(ab):true)};var Y=function(ab){return ab.nodeType===9&&ab.documentElement.nodeName!=="HTML"||!!ab.ownerDocument&&Y(ab.ownerDocument)};var R=function(ab,ai){var ae=[],af="",ag,ad=ai.nodeType?[ai]:ai;while((ag=Q.match.PSEUDO.exec(ab))){af+=ag[0];ab=ab.replace(Q.match.PSEUDO,"")}ab=Q.relative[ab]?ab+"*":ab;for(var ah=0,ac=ad.length;ah<ac;ah++){N(ab,ad[ah],ae)}return N.filter(af,ae)};u.find=N;u.filter=N.filter;u.expr=N.selectors;u.expr[":"]=u.expr.filters;N.selectors.filters.hidden=function(ab){return ab.offsetWidth===0||ab.offsetHeight===0};N.selectors.filters.visible=function(ab){return ab.offsetWidth>0||ab.offsetHeight>0};N.selectors.filters.animated=function(ab){return u.grep(u.timers,function(ac){return ab===ac.elem}).length};u.multiFilter=function(ad,ab,ac){if(ac){ad=":not("+ad+")"}return N.matches(ad,ab)};u.dir=function(ad,ac){var ab=[],ae=ad[ac];while(ae&&ae!=document){if(ae.nodeType==1){ab.push(ae)}ae=ae[ac]}return ab};u.nth=function(af,ab,ad,ae){ab=ab||1;var ac=0;for(;af;af=af[ad]){if(af.nodeType==1&&++ac==ab){break}}return af};u.sibling=function(ad,ac){var ab=[];for(;ad;ad=ad.nextSibling){if(ad.nodeType==1&&ad!=ac){ab.push(ad)}}return ab};return;p.Sizzle=N})();u.event={add:function(Q,N,P,S){if(Q.nodeType==3||Q.nodeType==8){return}if(Q.setInterval&&Q!=p){Q=p}if(!P.guid){P.guid=this.guid++}if(S!==k){var O=P;P=this.proxy(O);P.data=S}var M=u.data(Q,"events")||u.data(Q,"events",{}),R=u.data(Q,"handle")||u.data(Q,"handle",function(){return typeof u!=="undefined"&&!u.event.triggered?u.event.handle.apply(arguments.callee.elem,arguments):k});R.elem=Q;u.each(N.split(/\s+/),function(U,V){var W=V.split(".");V=W.shift();P.type=W.slice().sort().join(".");var T=M[V];if(u.event.specialAll[V]){u.event.specialAll[V].setup.call(Q,S,W)}if(!T){T=M[V]={};if(!u.event.special[V]||u.event.special[V].setup.call(Q,S,W)===false){if(Q.addEventListener){Q.addEventListener(V,R,false)}else{if(Q.attachEvent){Q.attachEvent("on"+V,R)}}}}T[P.guid]=P;u.event.global[V]=true});Q=null},guid:1,global:{},remove:function(S,P,R){if(S.nodeType==3||S.nodeType==8){return}var O=u.data(S,"events"),N,M;if(O){if(P===k||(typeof P==="string"&&P.charAt(0)==".")){for(var Q in O){this.remove(S,Q+(P||""))}}else{if(P.type){R=P.handler;P=P.type}u.each(P.split(/\s+/),function(U,W){var Y=W.split(".");W=Y.shift();var V=RegExp("(^|\\.)"+Y.slice().sort().join(".*\\.")+"(\\.|$)");if(O[W]){if(R){delete O[W][R.guid]}else{for(var X in O[W]){if(V.test(O[W][X].type)){delete O[W][X]}}}if(u.event.specialAll[W]){u.event.specialAll[W].teardown.call(S,Y)}for(N in O[W]){break}if(!N){if(!u.event.special[W]||u.event.special[W].teardown.call(S,Y)===false){if(S.removeEventListener){S.removeEventListener(W,u.data(S,"handle"),false)}else{if(S.detachEvent){S.detachEvent("on"+W,u.data(S,"handle"))}}}N=null;delete O[W]}}})}for(N in O){break}if(!N){var T=u.data(S,"handle");if(T){T.elem=null}u.removeData(S,"events");u.removeData(S,"handle")}}},trigger:function(Q,S,P,M){var O=Q.type||Q;if(!M){Q=typeof Q==="object"?Q[l]?Q:u.extend(u.Event(O),Q):u.Event(O);if(O.indexOf("!")>=0){Q.type=O=O.slice(0,-1);Q.exclusive=true}if(!P){Q.stopPropagation();if(this.global[O]){u.each(u.cache,function(){if(this.events&&this.events[O]){u.event.trigger(Q,S,this.handle.elem)}})}}if(!P||P.nodeType==3||P.nodeType==8){return k}Q.result=k;Q.target=P;S=u.makeArray(S);S.unshift(Q)}Q.currentTarget=P;var R=u.data(P,"handle");if(R){R.apply(P,S)}if((!P[O]||(u.nodeName(P,"a")&&O=="click"))&&P["on"+O]&&P["on"+O].apply(P,S)===false){Q.result=false}if(!M&&P[O]&&!Q.isDefaultPrevented()&&!(u.nodeName(P,"a")&&O=="click")){this.triggered=true;try{P[O]()}catch(T){}}this.triggered=false;if(!Q.isPropagationStopped()){var N=P.parentNode||P.ownerDocument;if(N){u.event.trigger(Q,S,N,true)}}},handle:function(S){var R,M;S=arguments[0]=u.event.fix(S||p.event);S.currentTarget=this;var T=S.type.split(".");S.type=T.shift();R=!T.length&&!S.exclusive;var Q=RegExp("(^|\\.)"+T.slice().sort().join(".*\\.")+"(\\.|$)");M=(u.data(this,"events")||{})[S.type];for(var O in M){var P=M[O];if(R||Q.test(P.type)){S.handler=P;S.data=P.data;var N=P.apply(this,arguments);if(N!==k){S.result=N;if(N===false){S.preventDefault();S.stopPropagation()}}if(S.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(P){if(P[l]){return P}var N=P;P=u.Event(N);for(var O=this.props.length,R;O;){R=this.props[--O];P[R]=N[R]}if(!P.target){P.target=P.srcElement||document}if(P.target.nodeType==3){P.target=P.target.parentNode}if(!P.relatedTarget&&P.fromElement){P.relatedTarget=P.fromElement==P.target?P.toElement:P.fromElement}if(P.pageX==null&&P.clientX!=null){var Q=document.documentElement,M=document.body;P.pageX=P.clientX+(Q&&Q.scrollLeft||M&&M.scrollLeft||0)-(Q.clientLeft||0);P.pageY=P.clientY+(Q&&Q.scrollTop||M&&M.scrollTop||0)-(Q.clientTop||0)}if(!P.which&&((P.charCode||P.charCode===0)?P.charCode:P.keyCode)){P.which=P.charCode||P.keyCode}if(!P.metaKey&&P.ctrlKey){P.metaKey=P.ctrlKey}if(!P.which&&P.button){P.which=(P.button&1?1:(P.button&2?3:(P.button&4?2:0)))}return P},proxy:function(N,M){M=M||function(){return N.apply(this,arguments)};M.guid=N.guid=N.guid||M.guid||this.guid++;return M},special:{ready:{setup:J,teardown:function(){}}},specialAll:{live:{setup:function(M,N){u.event.add(this,N[0],e)},teardown:function(O){if(O.length){var M=0,N=RegExp("(^|\\.)"+O[0]+"(\\.|$)");u.each((u.data(this,"events").live||{}),function(){if(N.test(this.type)){M++}});if(M<1){u.event.remove(this,O[0],e)}}}}}};u.Event=function(M){if(!this.preventDefault){return new u.Event(M)}if(M&&M.type){this.originalEvent=M;this.type=M.type}else{this.type=M}this.timeStamp=g();this[l]=true};function o(){return false}function C(){return true}u.Event.prototype={preventDefault:function(){this.isDefaultPrevented=C;var M=this.originalEvent;if(!M){return}if(M.preventDefault){M.preventDefault()}M.returnValue=false},stopPropagation:function(){this.isPropagationStopped=C;var M=this.originalEvent;if(!M){return}if(M.stopPropagation){M.stopPropagation()}M.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=C;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o};var c=function(N){var M=N.relatedTarget;while(M&&M!=this){try{M=M.parentNode}catch(O){M=this}}if(M!=this){N.type=N.data;u.event.handle.apply(this,arguments)}};u.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(N,M){u.event.special[M]={setup:function(){u.event.add(this,N,c,M)},teardown:function(){u.event.remove(this,N,c)}}});u.fn.extend({bind:function(N,O,M){return N=="unload"?this.one(N,O,M):this.each(function(){u.event.add(this,N,M||O,M&&O)})},one:function(O,P,N){var M=u.event.proxy(N||P,function(Q){u(this).unbind(Q,M);return(N||P).apply(this,arguments)});return this.each(function(){u.event.add(this,O,M,N&&P)})},unbind:function(N,M){return this.each(function(){u.event.remove(this,N,M)})},trigger:function(M,N){return this.each(function(){u.event.trigger(M,N,this)})},triggerHandler:function(M,O){if(this[0]){var N=u.Event(M);N.preventDefault();N.stopPropagation();u.event.trigger(N,O,this[0]);return N.result}},toggle:function(O){var M=arguments,N=1;while(N<M.length){u.event.proxy(O,M[N++])}return this.click(u.event.proxy(O,function(P){this.lastToggle=(this.lastToggle||0)%N;P.preventDefault();return M[this.lastToggle++].apply(this,arguments)||false}))},hover:function(M,N){return this.mouseenter(M).mouseleave(N)},ready:function(M){J();if(u.isReady){M.call(document,u)}else{u.readyList.push(M)}return this},live:function(O,N){var M=u.event.proxy(N);M.guid+=this.selector+O;u(document).bind(m(O,this.selector),this.selector,M);return this},die:function(N,M){u(document).unbind(m(N,this.selector),M?{guid:M.guid+this.selector+N}:null);return this}});function e(P){var M=RegExp("(^|\\.)"+P.type+"(\\.|$)"),O=true,N=[];u.each(u.data(this,"events").live||[],function(Q,R){if(M.test(R.type)){var S=u(P.target).closest(R.data)[0];if(S){N.push({elem:S,fn:R})}}});N.sort(function(R,Q){return u.data(R.elem,"closest")-u.data(Q.elem,"closest")});u.each(N,function(){if(this.fn.call(this.elem,P,this.fn.data)===false){return(O=false)}});return O}function m(N,M){return["live",N,M.replace(/\./g,"`").replace(/ /g,"|")].join(".")}u.extend({isReady:false,readyList:[],ready:function(){if(!u.isReady){u.isReady=true;if(u.readyList){u.each(u.readyList,function(){this.call(document,u)});u.readyList=null}u(document).triggerHandler("ready")}}});var F=false;function J(){if(F){return}F=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);u.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);u.ready()}});if(document.documentElement.doScroll&&p==p.top){(function(){if(u.isReady){return}try{document.documentElement.doScroll("left")}catch(M){setTimeout(arguments.callee,0);return}u.ready()})()}}}u.event.add(p,"load",u.ready)}u.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(N,M){u.fn[M]=function(O){return O?this.bind(M,O):this.trigger(M)}});u(p).bind("unload",function(){for(var M in u.cache){if(M!=1&&u.cache[M].handle){u.event.remove(u.cache[M].handle.elem)}}});(function(){u.support={};var N=document.documentElement,O=document.createElement("script"),S=document.createElement("div"),R="script"+(new Date).getTime();S.style.display="none";S.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var P=S.getElementsByTagName("*"),M=S.getElementsByTagName("a")[0];if(!P||!P.length||!M){return}u.support={leadingWhitespace:S.firstChild.nodeType==3,tbody:!S.getElementsByTagName("tbody").length,objectAll:!!S.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!S.getElementsByTagName("link").length,style:/red/.test(M.getAttribute("style")),hrefNormalized:M.getAttribute("href")==="/a",opacity:M.style.opacity==="0.5",cssFloat:!!M.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};O.type="text/javascript";try{O.appendChild(document.createTextNode("window."+R+"=1;"))}catch(Q){}N.insertBefore(O,N.firstChild);if(p[R]){u.support.scriptEval=true;delete p[R]}N.removeChild(O);if(S.attachEvent&&S.fireEvent){S.attachEvent("onclick",function(){u.support.noCloneEvent=false;S.detachEvent("onclick",arguments.callee)});S.cloneNode(true).fireEvent("onclick")}u(function(){var T=document.createElement("div");T.style.width=T.style.paddingLeft="1px";document.body.appendChild(T);u.boxModel=u.support.boxModel=T.offsetWidth===2;document.body.removeChild(T).style.display="none"})})();var E=u.support.cssFloat?"cssFloat":"styleFloat";u.props={"for":"htmlFor","class":"className","float":E,cssFloat:E,styleFloat:E,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};u.fn.extend({_load:u.fn.load,load:function(O,R,S){if(typeof O!=="string"){return this._load(O)}var Q=O.indexOf(" ");if(Q>=0){var M=O.slice(Q,O.length);O=O.slice(0,Q)}var P="GET";if(R){if(u.isFunction(R)){S=R;R=null}else{if(typeof R==="object"){R=u.param(R);P="POST"}}}var N=this;u.ajax({url:O,type:P,dataType:"html",data:R,complete:function(U,T){if(T=="success"||T=="notmodified"){N.html(M?u("<div/>").append(U.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(M):U.responseText)}if(S){N.each(S,[U.responseText,T,U])}}});return this},serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?u.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(M,N){var O=u(this).val();return O==null?null:u.isArray(O)?u.map(O,function(Q,P){return{name:N.name,value:Q}}):{name:N.name,value:O}}).get()}});u.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(M,N){u.fn[N]=function(O){return this.bind(N,O)}});var z=g();u.extend({get:function(M,O,P,N){if(u.isFunction(O)){P=O;O=null}return u.ajax({type:"GET",url:M,data:O,success:P,dataType:N})},getScript:function(M,N){return u.get(M,null,N,"script")},getJSON:function(M,N,O){return u.get(M,N,O,"json")},post:function(M,O,P,N){if(u.isFunction(O)){P=O;O={}}return u.ajax({type:"POST",url:M,data:O,success:P,dataType:N})},ajaxSetup:function(M){u.extend(u.ajaxSettings,M)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return p.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(U){U=u.extend(true,U,u.extend(true,{},u.ajaxSettings,U));var ae,N=/=\?(&|$)/g,Z,ad,O=U.type.toUpperCase();if(U.data&&U.processData&&typeof U.data!=="string"){U.data=u.param(U.data)}if(U.dataType=="jsonp"){if(O=="GET"){if(!U.url.match(N)){U.url+=(U.url.match(/\?/)?"&":"?")+(U.jsonp||"callback")+"=?"}}else{if(!U.data||!U.data.match(N)){U.data=(U.data?U.data+"&":"")+(U.jsonp||"callback")+"=?"}}U.dataType="json"}if(U.dataType=="json"&&(U.data&&U.data.match(N)||U.url.match(N))){ae="jsonp"+z++;if(U.data){U.data=(U.data+"").replace(N,"="+ae+"$1")}U.url=U.url.replace(N,"="+ae+"$1");U.dataType="script";p[ae]=function(af){ad=af;Q();T();p[ae]=k;try{delete p[ae]}catch(ag){}if(P){P.removeChild(ab)}}}if(U.dataType=="script"&&U.cache==null){U.cache=false}if(U.cache===false&&O=="GET"){var M=g();var ac=U.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+M+"$2");U.url=ac+((ac==U.url)?(U.url.match(/\?/)?"&":"?")+"_="+M:"")}if(U.data&&O=="GET"){U.url+=(U.url.match(/\?/)?"&":"?")+U.data;U.data=null}if(U.global&&!u.active++){u.event.trigger("ajaxStart")}var Y=/^(\w+:)?\/\/([^\/?#]+)/.exec(U.url);if(U.dataType=="script"&&O=="GET"&&Y&&(Y[1]&&Y[1]!=location.protocol||Y[2]!=location.host)){var P=document.getElementsByTagName("head")[0];var ab=document.createElement("script");ab.src=U.url;if(U.scriptCharset){ab.charset=U.scriptCharset}if(!ae){var W=false;ab.onload=ab.onreadystatechange=function(){if(!W&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){W=true;Q();T();ab.onload=ab.onreadystatechange=null;P.removeChild(ab)}}}P.appendChild(ab);return k}var S=false;var R=U.xhr();if(U.username){R.open(O,U.url,U.async,U.username,U.password)}else{R.open(O,U.url,U.async)}try{if(U.data){R.setRequestHeader("Content-Type",U.contentType)}if(U.ifModified){R.setRequestHeader("If-Modified-Since",u.lastModified[U.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}R.setRequestHeader("X-Requested-With","XMLHttpRequest");R.setRequestHeader("Accept",U.dataType&&U.accepts[U.dataType]?U.accepts[U.dataType]+", */*":U.accepts._default)}catch(aa){}if(U.beforeSend&&U.beforeSend(R,U)===false){if(U.global&&!--u.active){u.event.trigger("ajaxStop")}R.abort();return false}if(U.global){u.event.trigger("ajaxSend",[R,U])}var V=function(af){if(R.readyState==0){if(X){clearInterval(X);X=null;if(U.global&&!--u.active){u.event.trigger("ajaxStop")}}}else{if(!S&&R&&(R.readyState==4||af=="timeout")){S=true;if(X){clearInterval(X);X=null}Z=af=="timeout"?"timeout":!u.httpSuccess(R)?"error":U.ifModified&&u.httpNotModified(R,U.url)?"notmodified":"success";if(Z=="success"){try{ad=u.httpData(R,U.dataType,U)}catch(ah){Z="parsererror"}}if(Z=="success"){var ag;try{ag=R.getResponseHeader("Last-Modified")}catch(ah){}if(U.ifModified&&ag){u.lastModified[U.url]=ag}if(!ae){Q()}}else{u.handleError(U,R,Z)}T();if(af){R.abort()}if(U.async){R=null}}}};if(U.async){var X=setInterval(V,13);if(U.timeout>0){setTimeout(function(){if(R&&!S){V("timeout")}},U.timeout)}}try{R.send(U.data)}catch(aa){u.handleError(U,R,null,aa)}if(!U.async){V()}function Q(){if(U.success){U.success(ad,Z)}if(U.global){u.event.trigger("ajaxSuccess",[R,U])}}function T(){if(U.complete){U.complete(R,Z)}if(U.global){u.event.trigger("ajaxComplete",[R,U])}if(U.global&&!--u.active){u.event.trigger("ajaxStop")}}return R},handleError:function(N,P,M,O){if(N.error){N.error(P,M,O)}if(N.global){u.event.trigger("ajaxError",[P,N,O])}},active:0,httpSuccess:function(N){try{return !N.status&&location.protocol=="file:"||(N.status>=200&&N.status<300)||N.status==304||N.status==1223}catch(M){}return false},httpNotModified:function(O,M){try{var P=O.getResponseHeader("Last-Modified");return O.status==304||P==u.lastModified[M]}catch(N){}return false},httpData:function(R,P,O){var N=R.getResponseHeader("content-type"),M=P=="xml"||!P&&N&&N.indexOf("xml")>=0,Q=M?R.responseXML:R.responseText;if(M&&Q.documentElement.tagName=="parsererror"){throw"parsererror"}if(O&&O.dataFilter){Q=O.dataFilter(Q,P)}if(typeof Q==="string"){if(P=="script"){u.globalEval(Q)}if(P=="json"){Q=p["eval"]("("+Q+")")}}return Q},param:function(M){var O=[];function P(Q,R){O[O.length]=encodeURIComponent(Q)+"="+encodeURIComponent(R)}if(u.isArray(M)||M.jquery){u.each(M,function(){P(this.name,this.value)})}else{for(var N in M){if(u.isArray(M[N])){u.each(M[N],function(){P(N,this)})}else{P(N,u.isFunction(M[N])?M[N]():M[N])}}}return O.join("&").replace(/%20/g,"+")}});var q={},r,f=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function B(N,M){var O={};u.each(f.concat.apply([],f.slice(0,M)),function(){O[this]=N});return O}u.fn.extend({show:function(R,T){if(R){return this.animate(B("show",3),R,T)}else{for(var P=0,N=this.length;P<N;P++){var M=u.data(this[P],"olddisplay");this[P].style.display=M||"";if(u.css(this[P],"display")==="none"){var O=this[P].tagName,S;if(q[O]){S=q[O]}else{var Q=u("<"+O+" />").appendTo("body");S=Q.css("display");if(S==="none"){S="block"}Q.remove();q[O]=S}u.data(this[P],"olddisplay",S)}}for(var P=0,N=this.length;P<N;P++){this[P].style.display=u.data(this[P],"olddisplay")||""}return this}},hide:function(P,Q){if(P){return this.animate(B("hide",3),P,Q)}else{for(var O=0,N=this.length;O<N;O++){var M=u.data(this[O],"olddisplay");if(!M&&M!=="none"){u.data(this[O],"olddisplay",u.css(this[O],"display"))}}for(var O=0,N=this.length;O<N;O++){this[O].style.display="none"}return this}},_toggle:u.fn.toggle,toggle:function(O,N){var M=typeof O==="boolean";return u.isFunction(O)&&u.isFunction(N)?this._toggle.apply(this,arguments):O==null||M?this.each(function(){var P=M?O:u(this).is(":hidden");u(this)[P?"show":"hide"]()}):this.animate(B("toggle",3),O,N)},fadeTo:function(M,O,N){return this.animate({opacity:O},M,N)},animate:function(Q,N,P,O){var M=u.speed(N,P,O);return this[M.queue===false?"each":"queue"](function(){var S=u.extend({},M),U,T=this.nodeType==1&&u(this).is(":hidden"),R=this;for(U in Q){if(Q[U]=="hide"&&T||Q[U]=="show"&&!T){return S.complete.call(this)}if((U=="height"||U=="width")&&this.style){S.display=u.css(this,"display");S.overflow=this.style.overflow}}if(S.overflow!=null){this.style.overflow="hidden"}S.curAnim=u.extend({},Q);u.each(Q,function(W,aa){var Z=new u.fx(R,S,W);if(/toggle|show|hide/.test(aa)){Z[aa=="toggle"?T?"show":"hide":aa](Q)}else{var Y=aa.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),ab=Z.cur(true)||0;if(Y){var V=parseFloat(Y[2]),X=Y[3]||"px";if(X!="px"){R.style[W]=(V||1)+X;ab=((V||1)/Z.cur(true))*ab;R.style[W]=ab+X}if(Y[1]){V=((Y[1]=="-="?-1:1)*V)+ab}Z.custom(ab,V,X)}else{Z.custom(ab,aa,"")}}});return true})},stop:function(N,M){var O=u.timers;if(N){this.queue([])}this.each(function(){for(var P=O.length-1;P>=0;P--){if(O[P].elem==this){if(M){O[P](true)}O.splice(P,1)}}});if(!M){this.dequeue()}return this}});u.each({slideDown:B("show",1),slideUp:B("hide",1),slideToggle:B("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(M,N){u.fn[M]=function(O,P){return this.animate(N,O,P)}});u.extend({speed:function(O,P,N){var M=typeof O==="object"?O:{complete:N||!N&&P||u.isFunction(O)&&O,duration:O,easing:N&&P||P&&!u.isFunction(P)&&P};M.duration=u.fx.off?0:typeof M.duration==="number"?M.duration:u.fx.speeds[M.duration]||u.fx.speeds._default;M.old=M.complete;M.complete=function(){if(M.queue!==false){u(this).dequeue()}if(u.isFunction(M.old)){M.old.call(this)}};return M},easing:{linear:function(O,P,M,N){return M+N*O},swing:function(O,P,M,N){return((-Math.cos(O*Math.PI)/2)+0.5)*N+M}},timers:[],fx:function(N,M,O){this.options=M;this.elem=N;this.prop=O;if(!M.orig){M.orig={}}}});u.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(u.fx.step[this.prop]||u.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(N){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var M=parseFloat(u.css(this.elem,this.prop,N));return M&&M>-10000?M:parseFloat(u.curCSS(this.elem,this.prop))||0},custom:function(Q,P,O){this.startTime=g();this.start=Q;this.end=P;this.unit=O||this.unit||"px";this.now=this.start;this.pos=this.state=0;var M=this;function N(R){return M.step(R)}N.elem=this.elem;if(N()&&u.timers.push(N)&&!r){r=setInterval(function(){var S=u.timers;for(var R=0;R<S.length;R++){if(!S[R]()){S.splice(R--,1)}}if(!S.length){clearInterval(r);r=k}},13)}},show:function(){this.options.orig[this.prop]=u.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());u(this.elem).show()},hide:function(){this.options.orig[this.prop]=u.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(P){var O=g();if(P||O>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var M=true;for(var N in this.options.curAnim){if(this.options.curAnim[N]!==true){M=false}}if(M){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(u.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){u(this.elem).hide()}if(this.options.hide||this.options.show){for(var Q in this.options.curAnim){u.attr(this.elem.style,Q,this.options.orig[Q])}}this.options.complete.call(this.elem)}return false}else{var R=O-this.startTime;this.state=R/this.options.duration;this.pos=u.easing[this.options.easing||(u.easing.swing?"swing":"linear")](this.state,R,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};u.extend(u.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(M){u.attr(M.elem.style,"opacity",M.now)},_default:function(M){if(M.elem.style&&M.elem.style[M.prop]!=null){M.elem.style[M.prop]=M.now+M.unit}else{M.elem[M.prop]=M.now}}}});if(document.documentElement.getBoundingClientRect){u.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return u.offset.bodyOffset(this[0])}var O=this[0].getBoundingClientRect(),R=this[0].ownerDocument,N=R.body,M=R.documentElement,T=M.clientTop||N.clientTop||0,S=M.clientLeft||N.clientLeft||0,Q=O.top+(self.pageYOffset||u.boxModel&&M.scrollTop||N.scrollTop)-T,P=O.left+(self.pageXOffset||u.boxModel&&M.scrollLeft||N.scrollLeft)-S;return{top:Q,left:P}}}else{u.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return u.offset.bodyOffset(this[0])}u.offset.initialized||u.offset.initialize();var R=this[0],O=R.offsetParent,N=R,W=R.ownerDocument,U,P=W.documentElement,S=W.body,T=W.defaultView,M=T.getComputedStyle(R,null),V=R.offsetTop,Q=R.offsetLeft;while((R=R.parentNode)&&R!==S&&R!==P){U=T.getComputedStyle(R,null);V-=R.scrollTop,Q-=R.scrollLeft;if(R===O){V+=R.offsetTop,Q+=R.offsetLeft;if(u.offset.doesNotAddBorder&&!(u.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(R.tagName))){V+=parseInt(U.borderTopWidth,10)||0,Q+=parseInt(U.borderLeftWidth,10)||0}N=O,O=R.offsetParent}if(u.offset.subtractsBorderForOverflowNotVisible&&U.overflow!=="visible"){V+=parseInt(U.borderTopWidth,10)||0,Q+=parseInt(U.borderLeftWidth,10)||0}M=U}if(M.position==="relative"||M.position==="static"){V+=S.offsetTop,Q+=S.offsetLeft}if(M.position==="fixed"){V+=Math.max(P.scrollTop,S.scrollTop),Q+=Math.max(P.scrollLeft,S.scrollLeft)}return{top:V,left:Q}}}u.offset={initialize:function(){if(this.initialized){return}var T=document.body,N=document.createElement("div"),P,O,V,Q,U,M,R=T.style.marginTop,S='<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>';U={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(M in U){N.style[M]=U[M]}N.innerHTML=S;T.insertBefore(N,T.firstChild);P=N.firstChild,O=P.firstChild,Q=P.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(O.offsetTop!==5);this.doesAddBorderForTableAndCells=(Q.offsetTop===5);P.style.overflow="hidden",P.style.position="relative";this.subtractsBorderForOverflowNotVisible=(O.offsetTop===-5);T.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(T.offsetTop===0);T.style.marginTop=R;T.removeChild(N);this.initialized=true},bodyOffset:function(M){u.offset.initialized||u.offset.initialize();var O=M.offsetTop,N=M.offsetLeft;if(u.offset.doesNotIncludeMarginInBodyOffset){O+=parseInt(u.curCSS(M,"marginTop",true),10)||0,N+=parseInt(u.curCSS(M,"marginLeft",true),10)||0}return{top:O,left:N}}};u.fn.extend({position:function(){var Q=0,P=0,N;if(this[0]){var O=this.offsetParent(),R=this.offset(),M=/^body|html$/i.test(O[0].tagName)?{top:0,left:0}:O.offset();R.top-=n(this,"marginTop");R.left-=n(this,"marginLeft");M.top+=n(O,"borderTopWidth");M.left+=n(O,"borderLeftWidth");N={top:R.top-M.top,left:R.left-M.left}}return N},offsetParent:function(){var M=this[0].offsetParent||document.body;while(M&&(!/^body|html$/i.test(M.tagName)&&u.css(M,"position")=="static")){M=M.offsetParent}return u(M)}});u.each(["Left","Top"],function(N,M){var O="scroll"+M;u.fn[O]=function(P){if(!this[0]){return null}return P!==k?this.each(function(){this==p||this==document?p.scrollTo(!N?P:u(p).scrollLeft(),N?P:u(p).scrollTop()):this[O]=P}):this[0]==p||this[0]==document?self[N?"pageYOffset":"pageXOffset"]||u.boxModel&&document.documentElement[O]||document.body[O]:this[0][O]}});u.each(["Height","Width"],function(Q,O){var M=Q?"Left":"Top",P=Q?"Right":"Bottom",N=O.toLowerCase();u.fn["inner"+O]=function(){return this[0]?u.css(this[0],N,false,"padding"):null};u.fn["outer"+O]=function(S){return this[0]?u.css(this[0],N,false,S?"margin":"border"):null};var R=O.toLowerCase();u.fn[R]=function(S){return this[0]==p?document.compatMode=="CSS1Compat"&&document.documentElement["client"+O]||document.body["client"+O]:this[0]==document?Math.max(document.documentElement["client"+O],document.body["scroll"+O],document.documentElement["scroll"+O],document.body["offset"+O],document.documentElement["offset"+O]):S===k?(this.length?u.css(this[0],R):null):this.css(R,typeof S==="string"?S:S+"px")}})})();jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(f,g,e,k,i){return jQuery.easing[jQuery.easing.def](f,g,e,k,i)},easeInQuad:function(f,g,e,k,i){return k*(g/=i)*g+e},easeOutQuad:function(f,g,e,k,i){return -k*(g/=i)*(g-2)+e},easeInOutQuad:function(f,g,e,k,i){if((g/=i/2)<1){return k/2*g*g+e}return -k/2*((--g)*(g-2)-1)+e},easeInCubic:function(f,g,e,k,i){return k*(g/=i)*g*g+e},easeOutCubic:function(f,g,e,k,i){return k*((g=g/i-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,k,i){if((g/=i/2)<1){return k/2*g*g*g+e}return k/2*((g-=2)*g*g+2)+e},easeInQuart:function(f,g,e,k,i){return k*(g/=i)*g*g*g+e},easeOutQuart:function(f,g,e,k,i){return -k*((g=g/i-1)*g*g*g-1)+e},easeInOutQuart:function(f,g,e,k,i){if((g/=i/2)<1){return k/2*g*g*g*g+e}return -k/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(f,g,e,k,i){return k*(g/=i)*g*g*g*g+e},easeOutQuint:function(f,g,e,k,i){return k*((g=g/i-1)*g*g*g*g+1)+e},easeInOutQuint:function(f,g,e,k,i){if((g/=i/2)<1){return k/2*g*g*g*g*g+e}return k/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(f,g,e,k,i){return -k*Math.cos(g/i*(Math.PI/2))+k+e},easeOutSine:function(f,g,e,k,i){return k*Math.sin(g/i*(Math.PI/2))+e},easeInOutSine:function(f,g,e,k,i){return -k/2*(Math.cos(Math.PI*g/i)-1)+e},easeInExpo:function(f,g,e,k,i){return(g==0)?e:k*Math.pow(2,10*(g/i-1))+e},easeOutExpo:function(f,g,e,k,i){return(g==i)?e+k:k*(-Math.pow(2,-10*g/i)+1)+e},easeInOutExpo:function(f,g,e,k,i){if(g==0){return e}if(g==i){return e+k}if((g/=i/2)<1){return k/2*Math.pow(2,10*(g-1))+e}return k/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(f,g,e,k,i){return -k*(Math.sqrt(1-(g/=i)*g)-1)+e},easeOutCirc:function(f,g,e,k,i){return k*Math.sqrt(1-(g=g/i-1)*g)+e},easeInOutCirc:function(f,g,e,k,i){if((g/=i/2)<1){return -k/2*(Math.sqrt(1-g*g)-1)+e}return k/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(f,i,e,n,m){var k=1.70158;var l=0;var g=n;if(i==0){return e}if((i/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(i-=1))*Math.sin((i*m-k)*(2*Math.PI)/l))+e},easeOutElastic:function(f,i,e,n,m){var k=1.70158;var l=0;var g=n;if(i==0){return e}if((i/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*i)*Math.sin((i*m-k)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,i,e,n,m){var k=1.70158;var l=0;var g=n;if(i==0){return e}if((i/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}if(i<1){return -0.5*(g*Math.pow(2,10*(i-=1))*Math.sin((i*m-k)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(i-=1))*Math.sin((i*m-k)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(f,g,e,l,k,i){if(i==undefined){i=1.70158}return l*(g/=k)*g*((i+1)*g-i)+e},easeOutBack:function(f,g,e,l,k,i){if(i==undefined){i=1.70158}return l*((g=g/k-1)*g*((i+1)*g+i)+1)+e},easeInOutBack:function(f,g,e,l,k,i){if(i==undefined){i=1.70158}if((g/=k/2)<1){return l/2*(g*g*(((i*=(1.525))+1)*g-i))+e}return l/2*((g-=2)*g*(((i*=(1.525))+1)*g+i)+2)+e},easeInBounce:function(f,g,e,k,i){return k-jQuery.easing.easeOutBounce(f,i-g,0,k,i)+e},easeOutBounce:function(f,g,e,k,i){if((g/=i)<(1/2.75)){return k*(7.5625*g*g)+e}else{if(g<(2/2.75)){return k*(7.5625*(g-=(1.5/2.75))*g+0.75)+e}else{if(g<(2.5/2.75)){return k*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e}else{return k*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e}}}},easeInOutBounce:function(f,g,e,k,i){if(g<i/2){return jQuery.easing.easeInBounce(f,g*2,0,k,i)*0.5+e}return jQuery.easing.easeOutBounce(f,g*2-i,0,k,i)*0.5+k*0.5+e}});jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyInit:function(g,f){jQuery.historyCallback=g;if(f){jQuery.historyIframeSrc=f}if(location.hash==""){if(location.search==""){location.hash="#p=p/front.php"}else{location.hash="#"+location.search.substr(1)}}var e=location.hash;jQuery.historyCurrentHash=e;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#"}jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+(jQuery.historyIframeSrc?' src="'+jQuery.historyIframeSrc+'"':"")+"></iframe>");var c=jQuery("#jQuery_history")[0];var d=c.contentWindow.document;d.open();d.close();d.location.hash=e}if(e){jQuery.historyCallback(e.replace(/^#/,""))}setInterval(jQuery.historyCheck,100)},historyAddHistory:function(c){jQuery.historyBackStack.push(c);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var c=jQuery("#jQuery_history")[0];var d=c.contentDocument||c.contentWindow.document;var e=d.location.hash;if(e!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=e;location.hash=e;jQuery.historyCallback(e.replace(/^#/,""))}}else{if(/chrome/.test(navigator.userAgent.toLowerCase())){var e=location.hash;if(e!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=e;jQuery.historyCallback(e.replace(/^#/,""))}}else{var e=location.hash;if(e!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=e;jQuery.historyCallback(e.replace(/^#/,""))}}}},historyLoad:function(e){var f;e=decodeURIComponent(e);if(/chrome/.test(navigator.userAgent.toLowerCase())){f="#"+e;location.hash=f}else{f="#"+e;location.hash=f}jQuery.historyCurrentHash=f;if(jQuery.browser.msie){var c=jQuery("#jQuery_history")[0];var d=c.contentWindow.document;d.open();d.close();d.location.hash=f;jQuery.lastHistoryLength=history.length;jQuery.historyCallback(e)}else{if(/chrome/.test(navigator.userAgent.toLowerCase())){jQuery.historyCallback(e)}else{jQuery.historyCallback(e)}}}});if(!document.createElement("canvas").getContext){(function(){var C=Math;var D=C.round;var z=C.sin;var L=C.cos;var q=C.abs;var K=C.sqrt;var c=10;var r=c/2;this.context_=false;function n(){return this.context_||(this.context_=new v(this))}var B=Array.prototype.slice;function M(m,N,O){var i=B.call(arguments,2);return function(){return m.apply(N,i.concat(B.call(arguments)))}}var o={init:function(i){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var m=i||document;m.createElement("canvas");if(m.readyState!=="complete"){m.attachEvent("onreadystatechange",M(this.init_,this,m))}else{this.init_(m)}}},init_:function(P){if(!P.namespaces.g_vml_){P.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!P.namespaces.g_o_){P.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!P.styleSheets.ex_canvas_){var O=P.createStyleSheet();O.owningElement.id="ex_canvas_";O.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}"}var N=P.getElementsByTagName("canvas");for(var m=0;m<N.length;m++){this.initElement(N[m])}},initElement:function(m){if(!m.getContext){m.getContext=n;m.innerHTML="";m.attachEvent("onpropertychange",J);m.attachEvent("onresize",d);var i=m.attributes;if(i.width&&i.width.specified){m.style.width=i.width.nodeValue+"px"}else{m.width=m.clientWidth}if(i.height&&i.height.specified){m.style.height=i.height.nodeValue+"px"}else{m.height=m.clientHeight}}return m}};function J(m){var i=m.srcElement;switch(m.propertyName){case"width":i.style.width=i.attributes.width.nodeValue+"px";i.getContext().clearRect();break;case"height":i.style.height=i.attributes.height.nodeValue+"px";i.getContext().clearRect();break}}function d(m){var i=m.srcElement;if(i.firstChild){i.firstChild.style.width=i.clientWidth+"px";i.firstChild.style.height=i.clientHeight+"px"}}o.init();var g=[];for(var G=0;G<16;G++){for(var F=0;F<16;F++){g[G*16+F]=G.toString(16)+F.toString(16)}}function y(){return[[1,0,0],[0,1,0],[0,0,1]]}function f(O,N){var m=y();for(var i=0;i<3;i++){for(var R=0;R<3;R++){var P=0;for(var Q=0;Q<3;Q++){P+=O[i][Q]*N[Q][R]}m[i][R]=P}}return m}function E(m,i){i.fillStyle=m.fillStyle;i.lineCap=m.lineCap;i.lineJoin=m.lineJoin;i.lineWidth=m.lineWidth;i.miterLimit=m.miterLimit;i.shadowBlur=m.shadowBlur;i.shadowColor=m.shadowColor;i.shadowOffsetX=m.shadowOffsetX;i.shadowOffsetY=m.shadowOffsetY;i.strokeStyle=m.strokeStyle;i.globalAlpha=m.globalAlpha;i.arcScaleX_=m.arcScaleX_;i.arcScaleY_=m.arcScaleY_;i.lineScale_=m.lineScale_}function e(N){var Q,P=1;N=String(N);if(N.substring(0,3)=="rgb"){var S=N.indexOf("(",3);var m=N.indexOf(")",S+1);var R=N.substring(S+1,m).split(",");Q="#";for(var O=0;O<3;O++){Q+=g[Number(R[O])]}if(R.length==4&&N.substr(3,1)=="a"){P=R[3]}}else{Q=N}return{color:Q,alpha:P}}function A(i){switch(i){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function v(m){this.m_=y();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=c*1;this.globalAlpha=1;this.canvas=m;var i=m.ownerDocument.createElement("div");i.style.width=m.clientWidth+"px";i.style.height=m.clientHeight+"px";i.style.position="absolute";m.appendChild(i);this.element_=i;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var p=v.prototype;p.clearRect=function(){this.element_.innerHTML=""};p.beginPath=function(){this.currentPath_=[]};p.moveTo=function(m,i){var N=this.getCoords_(m,i);this.currentPath_.push({type:"moveTo",x:N.x,y:N.y});this.currentX_=N.x;this.currentY_=N.y};p.lineTo=function(m,i){var N=this.getCoords_(m,i);this.currentPath_.push({type:"lineTo",x:N.x,y:N.y});this.currentX_=N.x;this.currentY_=N.y};p.bezierCurveTo=function(N,m,T,S,R,P){var i=this.getCoords_(R,P);var Q=this.getCoords_(N,m);var O=this.getCoords_(T,S);u(this,Q,O,i)};function u(i,O,N,m){i.currentPath_.push({type:"bezierCurveTo",cp1x:O.x,cp1y:O.y,cp2x:N.x,cp2y:N.y,x:m.x,y:m.y});i.currentX_=m.x;i.currentY_=m.y}p.quadraticCurveTo=function(R,N,m,i){var Q=this.getCoords_(R,N);var P=this.getCoords_(m,i);var S={x:this.currentX_+2/3*(Q.x-this.currentX_),y:this.currentY_+2/3*(Q.y-this.currentY_)};var O={x:S.x+(P.x-this.currentX_)/3,y:S.y+(P.y-this.currentY_)/3};u(this,S,O,P)};p.arc=function(U,S,T,P,m,N){T*=c;var Y=N?"at":"wa";var V=U+L(P)*T-r;var X=S+z(P)*T-r;var i=U+L(m)*T-r;var W=S+z(m)*T-r;if(V==i&&!N){V+=0.125}var O=this.getCoords_(U,S);var R=this.getCoords_(V,X);var Q=this.getCoords_(i,W);this.currentPath_.push({type:Y,x:O.x,y:O.y,radius:T,xStart:R.x,yStart:R.y,xEnd:Q.x,yEnd:Q.y})};p.rect=function(N,m,i,O){this.moveTo(N,m);this.lineTo(N+i,m);this.lineTo(N+i,m+O);this.lineTo(N,m+O);this.closePath()};p.strokeRect=function(N,m,i,O){var P=this.currentPath_;this.beginPath();this.moveTo(N,m);this.lineTo(N+i,m);this.lineTo(N+i,m+O);this.lineTo(N,m+O);this.closePath();this.stroke();this.currentPath_=P};p.fillRect=function(N,m,i,O){var P=this.currentPath_;this.beginPath();this.moveTo(N,m);this.lineTo(N+i,m);this.lineTo(N+i,m+O);this.lineTo(N,m+O);this.closePath();this.fill();this.currentPath_=P};p.createLinearGradient=function(m,O,i,N){var P=new H("gradient");P.x0_=m;P.y0_=O;P.x1_=i;P.y1_=N;return P};p.createRadialGradient=function(O,Q,N,m,P,i){var R=new H("gradientradial");R.x0_=O;R.y0_=Q;R.r0_=N;R.x1_=m;R.y1_=P;R.r1_=i;return R};p.drawImage=function(ab,N){var T,R,V,ai,Z,X,ad,ak;var U=ab.runtimeStyle.width;var aa=ab.runtimeStyle.height;ab.runtimeStyle.width="auto";ab.runtimeStyle.height="auto";var S=ab.width;var ag=ab.height;ab.runtimeStyle.width=U;ab.runtimeStyle.height=aa;if(arguments.length==3){T=arguments[1];R=arguments[2];Z=X=0;ad=V=S;ak=ai=ag}else{if(arguments.length==5){T=arguments[1];R=arguments[2];V=arguments[3];ai=arguments[4];Z=X=0;ad=S;ak=ag}else{if(arguments.length==9){Z=arguments[1];X=arguments[2];ad=arguments[3];ak=arguments[4];T=arguments[5];R=arguments[6];V=arguments[7];ai=arguments[8]}else{throw Error("Invalid number of arguments")}}}var aj=this.getCoords_(T,R);var O=ad/2;var m=ak/2;var ah=[];var i=10;var Q=10;ah.push(" <g_vml_:group",' coordsize="',c*i,",",c*Q,'"',' coordorigin="0,0"',' style="width:',i,"px;height:",Q,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]){var P=[];P.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",D(aj.x/c),",","Dy=",D(aj.y/c),"");var af=aj;var ae=this.getCoords_(T+V,R);var ac=this.getCoords_(T,R+ai);var Y=this.getCoords_(T+V,R+ai);af.x=C.max(af.x,ae.x,ac.x,Y.x);af.y=C.max(af.y,ae.y,ac.y,Y.y);ah.push("padding:0 ",D(af.x/c),"px ",D(af.y/c),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",P.join(""),", sizingmethod='clip');")}else{ah.push("top:",D(aj.y/c),"px;left:",D(aj.x/c),"px;")}ah.push(' ">','<g_vml_:image src="',ab.src,'"',' style="width:',c*V,"px;"," height:",c*ai,'px;"',' cropleft="',Z/S,'"',' croptop="',X/ag,'"',' cropright="',(S-Z-ad)/S,'"',' cropbottom="',(ag-X-ak)/ag,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",ah.join(""))};p.stroke=function(an){var S=[];var T=false;var az=e(an?this.fillStyle:this.strokeStyle);var aj=az.color;var au=az.alpha*this.globalAlpha;var P=10;var V=10;S.push("<g_vml_:shape",' filled="',!!an,'"',' style="position:absolute;width:',P,"px;height:",V,'px;"',' coordorigin="0 0" coordsize="',c*P," ",c*V,'"',' stroked="',!an,'"',' path="');var U=false;var ay={x:null,y:null};var af={x:null,y:null};for(var at=0;at<this.currentPath_.length;at++){var ar=this.currentPath_[at];var ax;switch(ar.type){case"moveTo":ax=ar;S.push(" m ",D(ar.x),",",D(ar.y));break;case"lineTo":S.push(" l ",D(ar.x),",",D(ar.y));break;case"close":S.push(" x ");ar=null;break;case"bezierCurveTo":S.push(" c ",D(ar.cp1x),",",D(ar.cp1y),",",D(ar.cp2x),",",D(ar.cp2y),",",D(ar.x),",",D(ar.y));break;case"at":case"wa":S.push(" ",ar.type," ",D(ar.x-this.arcScaleX_*ar.radius),",",D(ar.y-this.arcScaleY_*ar.radius)," ",D(ar.x+this.arcScaleX_*ar.radius),",",D(ar.y+this.arcScaleY_*ar.radius)," ",D(ar.xStart),",",D(ar.yStart)," ",D(ar.xEnd),",",D(ar.yEnd));break}if(ar){if(ay.x==null||ar.x<ay.x){ay.x=ar.x}if(af.x==null||ar.x>af.x){af.x=ar.x}if(ay.y==null||ar.y<ay.y){ay.y=ar.y}if(af.y==null||ar.y>af.y){af.y=ar.y}}}S.push(' ">');if(!an){var ae=this.lineScale_*this.lineWidth;if(ae<1){au*=ae}S.push("<g_vml_:stroke",' opacity="',au,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',A(this.lineCap),'"',' weight="',ae,'px"',' color="',aj,'" />')}else{if(typeof this.fillStyle=="object"){var X=this.fillStyle;var ac=0;var aq={x:0,y:0};var ak=0;var aa=1;if(X.type_=="gradient"){var Z=X.x0_/this.arcScaleX_;var N=X.y0_/this.arcScaleY_;var Y=X.x1_/this.arcScaleX_;var aA=X.y1_/this.arcScaleY_;var aw=this.getCoords_(Z,N);var av=this.getCoords_(Y,aA);var R=av.x-aw.x;var Q=av.y-aw.y;ac=Math.atan2(R,Q)*180/Math.PI;if(ac<0){ac+=360}if(ac<0.000001){ac=0}}else{var aw=this.getCoords_(X.x0_,X.y0_);var m=af.x-ay.x;var O=af.y-ay.y;aq={x:(aw.x-ay.x)/m,y:(aw.y-ay.y)/O};m/=this.arcScaleX_*c;O/=this.arcScaleY_*c;var ap=C.max(m,O);ak=2*X.r0_/ap;aa=2*X.r1_/ap-ak}var ai=X.colors_;ai.sort(function(W,i){return W.offset-i.offset});var ad=ai.length;var ah=ai[0].color;var ag=ai[ad-1].color;var am=ai[0].alpha*this.globalAlpha;var al=ai[ad-1].alpha*this.globalAlpha;var ao=[];for(var at=0;at<ad;at++){var ab=ai[at];ao.push(ab.offset*aa+ak+" "+ab.color)}S.push('<g_vml_:fill type="',X.type_,'"',' method="none" focus="100%"',' color="',ah,'"',' color2="',ag,'"',' colors="',ao.join(","),'"',' opacity="',al,'"',' g_o_:opacity2="',am,'"',' angle="',ac,'"',' focusposition="',aq.x,",",aq.y,'" />')}else{S.push('<g_vml_:fill color="',aj,'" opacity="',au,'" />')}}S.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",S.join(""))};p.fill=function(){this.stroke(true)};p.closePath=function(){this.currentPath_.push({type:"close"})};p.getCoords_=function(O,N){var i=this.m_;return{x:c*(O*i[0][0]+N*i[1][0]+i[2][0])-r,y:c*(O*i[0][1]+N*i[1][1]+i[2][1])-r}};p.save=function(){var i={};E(this,i);this.aStack_.push(i);this.mStack_.push(this.m_);this.m_=f(y(),this.m_)};p.restore=function(){E(this.aStack_.pop(),this);this.m_=this.mStack_.pop()};function l(i){for(var O=0;O<3;O++){for(var N=0;N<2;N++){if(!isFinite(i[O][N])||isNaN(i[O][N])){return false}}}return true}function I(N,i,O){if(!l(i)){return}N.m_=i;if(O){var P=i[0][0]*i[1][1]-i[0][1]*i[1][0];N.lineScale_=K(q(P))}}p.translate=function(N,m){var i=[[1,0,0],[0,1,0],[N,m,1]];I(this,f(i,this.m_),false)};p.rotate=function(m){var O=L(m);var N=z(m);var i=[[O,N,0],[-N,O,0],[0,0,1]];I(this,f(i,this.m_),false)};p.scale=function(N,m){this.arcScaleX_*=N;this.arcScaleY_*=m;var i=[[N,0,0],[0,m,0],[0,0,1]];I(this,f(i,this.m_),true)};p.transform=function(P,O,R,Q,m,i){var N=[[P,O,0],[R,Q,0],[m,i,1]];I(this,f(N,this.m_),true)};p.setTransform=function(Q,P,S,R,O,N){var i=[[Q,P,0],[S,R,0],[O,N,1]];I(this,i,true)};p.clip=function(){};p.arcTo=function(){};p.createPattern=function(){return new k};function H(i){this.type_=i;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}H.prototype.addColorStop=function(m,i){i=e(i);this.colors_.push({offset:m,color:i.color,alpha:i.alpha})};function k(){}G_vmlCanvasManager=o;CanvasRenderingContext2D=v;CanvasGradient=H;CanvasPattern=k})()}(function(c){c.fn.minimiser=function(d){return this.each(function(e){var f=c(this).height();c(this).data("staticheight",f);if(d){c(this).css("height","1")}})};c.fn.minimise=function(d,e){return this.each(function(f){c(this).stop().animate({height:"1"},d,e)})};c.fn.sneakpeek=function(){return this.each(function(d){c(this).animate({height:12},345,function(){c(this).animate({height:1},234)})})};c.fn.maximise=function(d){return this.each(function(e){c("html,body").animate({scrollTop:c(this).parent().offset().top-23},d*3/4);var f=c(this).data("staticheight");c(this).stop().animate({height:f},d)})}})(jQuery);
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.09 (11-MAR-2010)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(e){var c=document.createElement("div").style;var l=c.MozBorderRadius!==undefined;var n=c.WebkitBorderRadius!==undefined;var g=c.borderRadius!==undefined||c.BorderRadius!==undefined;var f=document.documentMode||0;var p=e.browser.msie&&((e.browser.version<8&&!f)||f<8);var m=e.browser.msie&&(function(){var r=document.createElement("div");try{r.style.setExpression("width","0+0");r.style.removeExpression("width")}catch(q){return false}return true})();function k(q,r){return parseInt(e.css(q,r))||0}function o(q){var q=parseInt(q).toString(16);return(q.length<2)?"0"+q:q}function d(u){while(u){var q=e.css(u,"backgroundColor");if(q&&q!="transparent"&&q!="rgba(0, 0, 0, 0)"){if(q.indexOf("rgb")>=0){var r=q.match(/\d+/g);return"#"+o(r[0])+o(r[1])+o(r[2])}return q}u=u.parentNode}return"NaC";return"ffffff"}function i(u,q,r){switch(u){case"round":return Math.round(r*(1-Math.cos(Math.asin(q/r))));case"cool":return Math.round(r*(1+Math.cos(Math.asin(q/r))));case"sharp":return Math.round(r*(1-Math.cos(Math.acos(q/r))));case"bite":return Math.round(r*(Math.cos(Math.asin((r-q-1)/r))));case"slide":return Math.round(r*(Math.atan2(q,r/q)));case"jut":return Math.round(r*(Math.atan2(r,(r-q-1))));case"curl":return Math.round(r*(Math.atan(q)));case"tear":return Math.round(r*(Math.cos(q)));case"wicked":return Math.round(r*(Math.tan(q)));case"long":return Math.round(r*(Math.sqrt(q)));case"sculpt":return Math.round(r*(Math.log((r-q-1),r)));case"dogfold":case"dog":return(q&1)?(q+1):r;case"dog2":return(q&2)?(q+1):r;case"dog3":return(q&3)?(q+1):r;case"fray":return(q%2)*r;case"notch":return r;case"bevelfold":case"bevel":return q+1}}e.fn.corner=function(q){if(this.length==0){if(!e.isReady&&this.selector){var r=this.selector,u=this.context;e(function(){e(r,u).corner(q)})}return this}return this.each(function(D){var C=e(this);var K=[C.attr(e.fn.corner.defaults.metaAttr)||"",q||""].join(" ").toLowerCase();var R=/keep/.test(K);var J=((K.match(/cc:(#[0-9a-f]+)/)||[])[1]);var v=((K.match(/sc:(#[0-9a-f]+)/)||[])[1]);var N=parseInt((K.match(/(\d+)px/)||[])[1])||10;var L=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;var z=((K.match(L)||["round"])[0]);var A=/dogfold|bevelfold/.test(K);var y={T:0,B:1};var G={TL:/top|tl|left/.test(K),TR:/top|tr|right/.test(K),BL:/bottom|bl|left/.test(K),BR:/bottom|br|right/.test(K)};if(!G.TL&&!G.TR&&!G.BL&&!G.BR){G={TL:1,TR:1,BL:1,BR:1}}if(e.fn.corner.defaults.useNative&&z=="round"&&(g||l||n)&&!J&&!v){if(G.TL){C.css(g?"border-top-left-radius":l?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",N+"px")}if(G.TR){C.css(g?"border-top-right-radius":l?"-moz-border-radius-topright":"-webkit-border-top-right-radius",N+"px")}if(G.BL){C.css(g?"border-bottom-left-radius":l?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",N+"px")}if(G.BR){C.css(g?"border-bottom-right-radius":l?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",N+"px")}return}gc=d(this.parentNode);if(gc=="NaC"){return}var O=document.createElement("div");e(O).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:v||"transparent",borderStyle:"solid"});var U={T:parseInt(e.css(this,"paddingTop"))||0,R:parseInt(e.css(this,"paddingRight"))||0,B:parseInt(e.css(this,"paddingBottom"))||0,L:parseInt(e.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!R){this.style.border="none"}O.style.borderColor=J||gc;var M=e(this).outerHeight();for(var P in y){var F=y[P];if((F&&(G.BL||G.BR))||(!F&&(G.TL||G.TR))){O.style.borderStyle="none "+(G[P+"R"]?"solid":"none")+" none "+(G[P+"L"]?"solid":"none");var V=document.createElement("div");e(V).addClass("jquery-corner");var I=V.style;F?this.appendChild(V):this.insertBefore(V,this.firstChild);if(F){if(e.css(this,"position")=="static"){this.style.position="relative"}I.position="absolute";I.bottom=I.left=I.padding=I.margin="0";if(m){I.setExpression("width","this.parentNode.offsetWidth")}else{I.width="100%"}}else{if(!F&&e.browser.msie){if(e.css(this,"position")=="static"){this.style.position="relative"}I.position="absolute";I.top=I.left=I.right=I.padding=I.margin="0";if(m){var S=k(this,"borderLeftWidth")+k(this,"borderRightWidth");I.setExpression("width","this.parentNode.offsetWidth - "+S+'+ "px"')}else{I.width="100%"}}else{I.position="relative";I.margin=!F?"-"+U.T+"px -"+U.R+"px "+(U.T-N)+"px -"+U.L+"px":(U.B-N)+"px -"+U.R+"px -"+U.B+"px -"+U.L+"px"}}for(var Q=0;Q<N;Q++){var E=Math.max(0,i(z,Q,N));var T=O.cloneNode(false);T.style.borderWidth="0 "+(G[P+"R"]?E:0)+"px 0 "+(G[P+"L"]?E:0)+"px";F?V.appendChild(T):V.insertBefore(T,V.firstChild)}if(A&&e.support.boxModel){if(F&&p){continue}for(var W in G){if(!G[W]){continue}if(F&&(W=="TL"||W=="TR")){continue}if(!F&&(W=="BL"||W=="BR")){continue}var H={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:O.style.borderColor};var B=e("<div/>").css(H).css({width:N+"px",height:"1px"});switch(W){case"TL":B.css({bottom:0,left:0});break;case"TR":B.css({bottom:0,right:0});break;case"BL":B.css({top:0,left:0});break;case"BR":B.css({top:0,right:0});break}V.appendChild(B[0]);var X=e("<div/>").css(H).css({top:0,bottom:0,width:"1px",height:N+"px"});switch(W){case"TL":X.css({left:N});break;case"TR":X.css({right:N});break;case"BL":X.css({left:N});break;case"BR":X.css({right:N});break}V.appendChild(X[0])}}}}})};e.fn.uncorner=function(){if(g||l||n){this.css(g?"border-radius":l?"-moz-border-radius":"-webkit-border-radius",0)}e("div.jquery-corner",this).remove();return this};e.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);jQuery.ui||(function(e){var m=e.fn.remove,f=e.browser.mozilla&&(parseFloat(e.browser.version)<1.9);e.ui={version:"1.7.1",plugin:{add:function(o,p,r){var q=e.ui[o].prototype;for(var n in r){q.plugins[n]=q.plugins[n]||[];q.plugins[n].push([p,r[n]])}},call:function(n,p,o){var r=n.plugins[p];if(!r||!n.element[0].parentNode){return}for(var q=0;q<r.length;q++){if(n.options[r[q][0]]){r[q][1].apply(n.element,o)}}}},contains:function(o,n){return document.compareDocumentPosition?o.compareDocumentPosition(n)&16:o!==n&&o.contains(n)},hasScroll:function(q,o){if(e(q).css("overflow")=="hidden"){return false}var n=(o&&o=="left")?"scrollLeft":"scrollTop",p=false;if(q[n]>0){return true}q[n]=1;p=(q[n]>0);q[n]=0;return p},isOverAxis:function(o,n,p){return(o>n)&&(o<(n+p))},isOver:function(u,o,r,q,n,p){return e.ui.isOverAxis(u,r,n)&&e.ui.isOverAxis(o,q,p)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(f){var i=e.attr,g=e.fn.removeAttr,l="http://www.w3.org/2005/07/aaa",c=/^aria-/,d=/^wairole:/;e.attr=function(o,n,p){var q=p!==undefined;return(n=="role"?(q?i.call(this,o,n,"wairole:"+p):(i.apply(this,arguments)||"").replace(d,"")):(c.test(n)?(q?o.setAttributeNS(l,n.replace(c,"aaa:"),p):i.call(this,o,n.replace(c,"aaa:"))):i.apply(this,arguments)))};e.fn.removeAttr=function(n){return(c.test(n)?this.each(function(){this.removeAttributeNS(l,n.replace(c,""))}):g.call(this,n))}}e.fn.extend({remove:function(){e("*",this).add(this).each(function(){e(this).triggerHandler("remove")});return m.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var n;if((e.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){n=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(e.curCSS(this,"position",1))&&(/(auto|scroll)/).test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0)}else{n=this.parents().filter(function(){return(/(auto|scroll)/).test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!n.length?e(document):n}});e.extend(e.expr[":"],{data:function(p,o,n){return !!e.data(p,n[3])},focusable:function(o){var p=o.nodeName.toLowerCase(),n=e.attr(o,"tabindex");return(/input|select|textarea|button|object/.test(p)?!o.disabled:"a"==p||"area"==p?o.href||!isNaN(n):!isNaN(n))&&!e(o)["area"==p?"parents":"closest"](":hidden").length},tabbable:function(o){var n=e.attr(o,"tabindex");return(isNaN(n)||n>=0)&&e(o).is(":focusable")}});function k(q,r,u,p){function o(y){var v=e[q][r][y]||[];return(typeof v=="string"?v.split(/,?\s+/):v)}var n=o("getter");if(p.length==1&&typeof p[0]=="string"){n=n.concat(o("getterSetter"))}return(e.inArray(u,n)!=-1)}e.widget=function(o,n){var p=o.split(".")[0];o=o.split(".")[1];e.fn[o]=function(v){var r=(typeof v=="string"),u=Array.prototype.slice.call(arguments,1);if(r&&v.substring(0,1)=="_"){return this}if(r&&k(p,o,v,u)){var q=e.data(this[0],o);return(q?q[v].apply(q,u):undefined)}return this.each(function(){var y=e.data(this,o);(!y&&!r&&e.data(this,o,new e[p][o](this,v))._init());(y&&r&&e.isFunction(y[v])&&y[v].apply(y,u))})};e[p]=e[p]||{};e[p][o]=function(u,r){var q=this;this.namespace=p;this.widgetName=o;this.widgetEventPrefix=e[p][o].eventPrefix||o;this.widgetBaseClass=p+"-"+o;this.options=e.extend({},e.widget.defaults,e[p][o].defaults,e.metadata&&e.metadata.get(u)[o],r);this.element=e(u).bind("setData."+o,function(y,v,z){if(y.target==u){return q._setData(v,z)}}).bind("getData."+o,function(y,v){if(y.target==u){return q._getData(v)}}).bind("remove",function(){return q.destroy()})};e[p][o].prototype=e.extend({},e.widget.prototype,n);e[p][o].getterSetter="option"};e.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(p,q){var o=p,n=this;if(typeof p=="string"){if(q===undefined){return this._getData(p)}o={};o[p]=q}e.each(o,function(r,u){n._setData(r,u)})},_getData:function(n){return this.options[n]},_setData:function(n,o){this.options[n]=o;if(n=="disabled"){this.element[o?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",o)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(p,q,r){var v=this.options[p],n=(p==this.widgetEventPrefix?p:this.widgetEventPrefix+p);q=e.Event(q);q.type=n;if(q.originalEvent){for(var o=e.event.props.length,u;o;){u=e.event.props[--o];q[u]=q.originalEvent[u]}}this.element.trigger(q,r);return !(e.isFunction(v)&&v.call(this.element[0],q,r)===false||q.isDefaultPrevented())}};e.widget.defaults={disabled:false};e.ui.mouse={_mouseInit:function(){var n=this;this.element.bind("mousedown."+this.widgetName,function(o){return n._mouseDown(o)}).bind("click."+this.widgetName,function(o){if(n._preventClickEvent){n._preventClickEvent=false;o.stopImmediatePropagation();return false}});if(e.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(e.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(p){p.originalEvent=p.originalEvent||{};if(p.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(p));this._mouseDownEvent=p;var o=this,q=(p.which==1),n=(typeof this.options.cancel=="string"?e(p.target).parents().add(p.target).filter(this.options.cancel).length:false);if(!q||n||!this._mouseCapture(p)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){o.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(p)&&this._mouseDelayMet(p)){this._mouseStarted=(this._mouseStart(p)!==false);if(!this._mouseStarted){p.preventDefault();return true}}this._mouseMoveDelegate=function(r){return o._mouseMove(r)};this._mouseUpDelegate=function(r){return o._mouseUp(r)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(e.browser.safari||p.preventDefault());p.originalEvent.mouseHandled=true;return true},_mouseMove:function(n){if(e.browser.msie&&!n.button){return this._mouseUp(n)}if(this._mouseStarted){this._mouseDrag(n);return n.preventDefault()}if(this._mouseDistanceMet(n)&&this._mouseDelayMet(n)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,n)!==false);(this._mouseStarted?this._mouseDrag(n):this._mouseUp(n))}return !this._mouseStarted},_mouseUp:function(n){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(n.target==this._mouseDownEvent.target);this._mouseStop(n)}return false},_mouseDistanceMet:function(n){return(Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance)},_mouseDelayMet:function(n){return this.mouseDelayMet},_mouseStart:function(n){},_mouseDrag:function(n){},_mouseStop:function(n){},_mouseCapture:function(n){return true}};e.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);function getRGB(d){var c;if(d&&d.constructor==Array&&d.length==3){return d}if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(d)){return[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]}if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(d)){return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]}if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d)){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(d)){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}if(c=/rgba\(0, 0, 0, 0\)/.exec(d)){return colors.transparent}return colors[$.trim(d).toLowerCase()]}jQuery.effects||(function(e){e.effects={version:"1.7.1",save:function(k,l){for(var g=0;g<l.length;g++){if(l[g]!==null){k.data("ec.storage."+l[g],k[0].style[l[g]])}}},restore:function(k,l){for(var g=0;g<l.length;g++){if(l[g]!==null){k.css(l[g],k.data("ec.storage."+l[g]))}}},setMode:function(g,i){if(i=="toggle"){i=g.is(":hidden")?"show":"hide"}return i},getBaseline:function(i,k){var l,g;switch(i[0]){case"top":l=0;break;case"middle":l=0.5;break;case"bottom":l=1;break;default:l=i[0]/k.height}switch(i[1]){case"left":g=0;break;case"center":g=0.5;break;case"right":g=1;break;default:g=i[1]/k.width}return{x:g,y:l}},createWrapper:function(g){if(g.parent().is(".ui-effects-wrapper")){return g.parent()}var i={width:g.outerWidth(true),height:g.outerHeight(true),"float":g.css("float")};g.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var m=g.parent();if(g.css("position")=="static"){m.css({position:"relative"});g.css({position:"relative"})}else{var l=g.css("top");if(isNaN(parseInt(l,10))){l="auto"}var k=g.css("left");if(isNaN(parseInt(k,10))){k="auto"}m.css({position:g.css("position"),top:l,left:k,zIndex:g.css("z-index")}).show();g.css({position:"relative",top:0,left:0})}m.css(i);return m},removeWrapper:function(g){if(g.parent().is(".ui-effects-wrapper")){return g.parent().replaceWith(g)}return g},setTransition:function(i,l,g,k){k=k||{};e.each(l,function(n,m){unit=i.cssUnit(m);if(unit[0]>0){k[m]=unit[0]*g+unit[1]}});return k},animateClass:function(k,l,n,m){var g=(typeof n=="function"?n:(m?m:null));var i=(typeof n=="string"?n:null);return this.each(function(){var u={};var q=e(this);var r=q.attr("style")||"";if(typeof r=="object"){r=r.cssText}if(k.toggle){q.hasClass(k.toggle)?k.remove=k.toggle:k.add=k.toggle}var o=e.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(k.add){q.addClass(k.add)}if(k.remove){q.removeClass(k.remove)}var p=e.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(k.add){q.removeClass(k.add)}if(k.remove){q.addClass(k.remove)}for(var v in p){if(typeof p[v]!="function"&&p[v]&&v.indexOf("Moz")==-1&&v.indexOf("length")==-1&&p[v]!=o[v]&&(v.match(/color/i)||(!v.match(/color/i)&&!isNaN(parseInt(p[v],10))))&&(o.position!="static"||(o.position=="static"&&!v.match(/left|top|bottom|right/)))){u[v]=p[v]}}q.animate(u,l,i,function(){if(typeof e(this).attr("style")=="object"){e(this).attr("style")["cssText"]="";e(this).attr("style")["cssText"]=r}else{e(this).attr("style",r)}if(k.add){e(this).addClass(k.add)}if(k.remove){e(this).removeClass(k.remove)}if(g){g.apply(this,arguments)}})})}};function d(i,g){var l=i[1]&&i[1].constructor==Object?i[1]:{};if(g){l.mode=g}var k=i[1]&&i[1].constructor!=Object?i[1]:(l.duration?l.duration:i[2]);k=e.fx.off?0:typeof k==="number"?k:e.fx.speeds[k]||e.fx.speeds._default;var n=l.callback||(e.isFunction(i[1])&&i[1])||(e.isFunction(i[2])&&i[2])||(e.isFunction(i[3])&&i[3]);return[i[0],l,k,n]}e.fn.extend({_show:e.fn.show,_hide:e.fn.hide,__toggle:e.fn.toggle,_addClass:e.fn.addClass,_removeClass:e.fn.removeClass,_toggleClass:e.fn.toggleClass,effect:function(i,g,k,l){return e.effects[i]?e.effects[i].call(this,{method:i,options:g||{},duration:k,callback:l}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,d(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,d(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,d(arguments,"toggle"))}},addClass:function(i,g,l,k){return g?e.effects.animateClass.apply(this,[{add:i},g,l,k]):this._addClass(i)},removeClass:function(i,g,l,k){return g?e.effects.animateClass.apply(this,[{remove:i},g,l,k]):this._removeClass(i)},toggleClass:function(i,g,l,k){return((typeof g!=="boolean")&&g)?e.effects.animateClass.apply(this,[{toggle:i},g,l,k]):this._toggleClass(i,g)},morph:function(g,k,i,m,l){return e.effects.animateClass.apply(this,[{add:k,remove:g},i,m,l])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(g){var i=this.css(g),k=[];e.each(["em","px","%","pt"],function(l,m){if(i.indexOf(m)>0){k=[parseFloat(i),m]}});return k}});e.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(k,g){e.fx.step[g]=function(i){if(i.state==0){i.start=f(i.elem,g);i.end=getRGB(i.end)}try{i.elem.style[g]="rgb("+[Math.max(Math.min(parseInt((i.pos*(i.end[0]-i.start[0]))+i.start[0],10),255),0),Math.max(Math.min(parseInt((i.pos*(i.end[1]-i.start[1]))+i.start[1],10),255),0),Math.max(Math.min(parseInt((i.pos*(i.end[2]-i.start[2]))+i.start[2],10),255),0)].join(",")+")"}catch(l){}}});function f(k,g){var i;do{i=e.curCSS(k,g);if(i!=""&&i!="transparent"&&i!="rgba(0, 0, 0, 0)"||e.nodeName(k,"body")){break}g="backgroundColor"}while(k=k.parentNode);return getRGB(i)}var c={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};e.easing.jswing=e.easing.swing;e.extend(e.easing,{def:"easeOutQuad",swing:function(i,k,g,m,l){return e.easing[e.easing.def](i,k,g,m,l)},easeInQuad:function(i,k,g,m,l){return m*(k/=l)*k+g},easeOutQuad:function(i,k,g,m,l){return -m*(k/=l)*(k-2)+g},easeInOutQuad:function(i,k,g,m,l){if((k/=l/2)<1){return m/2*k*k+g}return -m/2*((--k)*(k-2)-1)+g},easeInCubic:function(i,k,g,m,l){return m*(k/=l)*k*k+g},easeOutCubic:function(i,k,g,m,l){return m*((k=k/l-1)*k*k+1)+g},easeInOutCubic:function(i,k,g,m,l){if((k/=l/2)<1){return m/2*k*k*k+g}return m/2*((k-=2)*k*k+2)+g},easeInQuart:function(i,k,g,m,l){return m*(k/=l)*k*k*k+g},easeOutQuart:function(i,k,g,m,l){return -m*((k=k/l-1)*k*k*k-1)+g},easeInOutQuart:function(i,k,g,m,l){if((k/=l/2)<1){return m/2*k*k*k*k+g}return -m/2*((k-=2)*k*k*k-2)+g},easeInQuint:function(i,k,g,m,l){return m*(k/=l)*k*k*k*k+g},easeOutQuint:function(i,k,g,m,l){return m*((k=k/l-1)*k*k*k*k+1)+g},easeInOutQuint:function(i,k,g,m,l){if((k/=l/2)<1){return m/2*k*k*k*k*k+g}return m/2*((k-=2)*k*k*k*k+2)+g},easeInSine:function(i,k,g,m,l){return -m*Math.cos(k/l*(Math.PI/2))+m+g},easeOutSine:function(i,k,g,m,l){return m*Math.sin(k/l*(Math.PI/2))+g},easeInOutSine:function(i,k,g,m,l){return -m/2*(Math.cos(Math.PI*k/l)-1)+g},easeInExpo:function(i,k,g,m,l){return(k==0)?g:m*Math.pow(2,10*(k/l-1))+g},easeOutExpo:function(i,k,g,m,l){return(k==l)?g+m:m*(-Math.pow(2,-10*k/l)+1)+g},easeInOutExpo:function(i,k,g,m,l){if(k==0){return g}if(k==l){return g+m}if((k/=l/2)<1){return m/2*Math.pow(2,10*(k-1))+g}return m/2*(-Math.pow(2,-10*--k)+2)+g},easeInCirc:function(i,k,g,m,l){return -m*(Math.sqrt(1-(k/=l)*k)-1)+g},easeOutCirc:function(i,k,g,m,l){return m*Math.sqrt(1-(k=k/l-1)*k)+g},easeInOutCirc:function(i,k,g,m,l){if((k/=l/2)<1){return -m/2*(Math.sqrt(1-k*k)-1)+g}return m/2*(Math.sqrt(1-(k-=2)*k)+1)+g},easeInElastic:function(i,l,g,q,o){var m=1.70158;var n=0;var k=q;if(l==0){return g}if((l/=o)==1){return g+q}if(!n){n=o*0.3}if(k<Math.abs(q)){k=q;var m=n/4}else{var m=n/(2*Math.PI)*Math.asin(q/k)}return -(k*Math.pow(2,10*(l-=1))*Math.sin((l*o-m)*(2*Math.PI)/n))+g},easeOutElastic:function(i,l,g,q,o){var m=1.70158;var n=0;var k=q;if(l==0){return g}if((l/=o)==1){return g+q}if(!n){n=o*0.3}if(k<Math.abs(q)){k=q;var m=n/4}else{var m=n/(2*Math.PI)*Math.asin(q/k)}return k*Math.pow(2,-10*l)*Math.sin((l*o-m)*(2*Math.PI)/n)+q+g},easeInOutElastic:function(i,l,g,q,o){var m=1.70158;var n=0;var k=q;if(l==0){return g}if((l/=o/2)==2){return g+q}if(!n){n=o*(0.3*1.5)}if(k<Math.abs(q)){k=q;var m=n/4}else{var m=n/(2*Math.PI)*Math.asin(q/k)}if(l<1){return -0.5*(k*Math.pow(2,10*(l-=1))*Math.sin((l*o-m)*(2*Math.PI)/n))+g}return k*Math.pow(2,-10*(l-=1))*Math.sin((l*o-m)*(2*Math.PI)/n)*0.5+q+g},easeInBack:function(i,k,g,n,m,l){if(l==undefined){l=1.70158}return n*(k/=m)*k*((l+1)*k-l)+g},easeOutBack:function(i,k,g,n,m,l){if(l==undefined){l=1.70158}return n*((k=k/m-1)*k*((l+1)*k+l)+1)+g},easeInOutBack:function(i,k,g,n,m,l){if(l==undefined){l=1.70158}if((k/=m/2)<1){return n/2*(k*k*(((l*=(1.525))+1)*k-l))+g}return n/2*((k-=2)*k*(((l*=(1.525))+1)*k+l)+2)+g},easeInBounce:function(i,k,g,m,l){return m-e.easing.easeOutBounce(i,l-k,0,m,l)+g},easeOutBounce:function(i,k,g,m,l){if((k/=l)<(1/2.75)){return m*(7.5625*k*k)+g}else{if(k<(2/2.75)){return m*(7.5625*(k-=(1.5/2.75))*k+0.75)+g}else{if(k<(2.5/2.75)){return m*(7.5625*(k-=(2.25/2.75))*k+0.9375)+g}else{return m*(7.5625*(k-=(2.625/2.75))*k+0.984375)+g}}}},easeInOutBounce:function(i,k,g,m,l){if(k<l/2){return e.easing.easeInBounce(i,k*2,0,m,l)*0.5+g}return e.easing.easeOutBounce(i,k*2-l,0,m,l)*0.5+m*0.5+g}})})(jQuery);(function(c){c.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(d,e){if(d=="selected"){if(this.options.collapsible&&e==this.options.selected){return}this.select(e)}else{this.options[d]=e;if(d=="deselectable"){this.options.collapsible=e}this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+c.data(d)},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+c.data(this.list[0]));return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(e,d){return{tab:e,panel:d,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=c(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(u){this.list=this.element.children("ul:first");this.lis=c("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return c("a",this)[0]});this.panels=c([]);var v=this,f=this.options;var e=/^#.+/;this.anchors.each(function(z,o){var y=c(o).attr("href");var A=y.split("#")[0],B;if(A&&(A===location.toString().split("#")[0]||(B=c("base")[0])&&A===B.href)){y=o.hash;o.href=y}if(e.test(y)){v.panels=v.panels.add(v._sanitizeSelector(y))}else{if(y!="#"){c.data(o,"href.tabs",y);c.data(o,"load.tabs",y.replace(/#.*$/,""));var D=v._tabId(o);o.href="#"+D;var C=c("#"+D);if(!C.length){C=c(f.panelTemplate).attr("id",D).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(v.panels[z-1]||v.list);C.data("destroy.tabs",true)}v.panels=v.panels.add(C)}else{f.disabled.push(z)}}});if(u){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(f.selected===undefined){if(location.hash){this.anchors.each(function(y,o){if(o.hash==location.hash){f.selected=y;return false}})}if(typeof f.selected!="number"&&f.cookie){f.selected=parseInt(v._cookie(),10)}if(typeof f.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){f.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}f.selected=f.selected||0}else{if(f.selected===null){f.selected=-1}}f.selected=((f.selected>=0&&this.anchors[f.selected])||f.selected<0)?f.selected:0;f.disabled=c.unique(f.disabled.concat(c.map(this.lis.filter(".ui-state-disabled"),function(y,o){return v.lis.index(y)}))).sort();if(c.inArray(f.selected,f.disabled)!=-1){f.disabled.splice(c.inArray(f.selected,f.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(f.selected>=0&&this.anchors.length){this.panels.eq(f.selected).removeClass("ui-tabs-hide");this.lis.eq(f.selected).addClass("ui-tabs-selected ui-state-active");v.element.queue("tabs",function(){v._trigger("show",null,v._ui(v.anchors[f.selected],v.panels[f.selected]))});this.load(f.selected)}c(window).bind("unload",function(){v.lis.add(v.anchors).unbind(".tabs");v.lis=v.anchors=v.panels=null})}else{f.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[f.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(f.cookie){this._cookie(f.selected,f.cookie)}for(var l=0,r;(r=this.lis[l]);l++){c(r)[c.inArray(l,f.disabled)!=-1&&!c(r).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(f.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(f.event!="mouseover"){var k=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var n=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){k("hover",c(this))});this.lis.bind("mouseout.tabs",function(){n("hover",c(this))});this.anchors.bind("focus.tabs",function(){k("focus",c(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",c(this).closest("li"))})}var d,m;if(f.fx){if(c.isArray(f.fx)){d=f.fx[0];m=f.fx[1]}else{d=m=f.fx}}function g(i,o){i.css({display:""});if(c.browser.msie&&o.opacity){i[0].style.removeAttribute("filter")}}var p=m?function(i,o){c(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(m,m.duration||"normal",function(){g(o,m);v._trigger("show",null,v._ui(i,o[0]))})}:function(i,o){c(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");v._trigger("show",null,v._ui(i,o[0]))};var q=d?function(o,i){i.animate(d,d.duration||"normal",function(){v.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");g(i,d);v.element.dequeue("tabs")})}:function(o,i,y){v.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");v.element.dequeue("tabs")};this.anchors.bind(f.event+".tabs",function(){var o=this,z=c(this).closest("li"),i=v.panels.filter(":not(.ui-tabs-hide)"),y=c(v._sanitizeSelector(this.hash));if((z.hasClass("ui-tabs-selected")&&!f.collapsible)||z.hasClass("ui-state-disabled")||z.hasClass("ui-state-processing")||v._trigger("select",null,v._ui(this,y[0]))===false){this.blur();return false}f.selected=v.anchors.index(this);v.abort();if(f.collapsible){if(z.hasClass("ui-tabs-selected")){f.selected=-1;if(f.cookie){v._cookie(f.selected,f.cookie)}v.element.queue("tabs",function(){q(o,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(f.cookie){v._cookie(f.selected,f.cookie)}v.element.queue("tabs",function(){p(o,y)});v.load(v.anchors.index(this));this.blur();return false}}}if(f.cookie){v._cookie(f.selected,f.cookie)}if(y.length){if(i.length){v.element.queue("tabs",function(){q(o,i)})}v.element.queue("tabs",function(){p(o,y)});v.load(v.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(c.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=c.data(this,"href.tabs");if(e){this.href=e}var f=c(this).unbind(".tabs");c.each(["href","load","cache"],function(g,k){f.removeData(k+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(c.data(this,"destroy.tabs")){c(this).remove()}else{c(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(d.cookie){this._cookie(null,d.cookie)}},add:function(g,f,e){if(e===undefined){e=this.anchors.length}var d=this,k=this.options,m=c(k.tabTemplate.replace(/#\{href\}/g,g).replace(/#\{label\}/g,f)),l=!g.indexOf("#")?g.replace("#",""):this._tabId(c("a",m)[0]);m.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var i=c("#"+l);if(!i.length){i=c(k.panelTemplate).attr("id",l).data("destroy.tabs",true)}i.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(e>=this.lis.length){m.appendTo(this.list);i.appendTo(this.list[0].parentNode)}else{m.insertBefore(this.lis[e]);i.insertBefore(this.panels[e])}k.disabled=c.map(k.disabled,function(p,o){return p>=e?++p:p});this._tabify();if(this.anchors.length==1){m.addClass("ui-tabs-selected ui-state-active");i.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[e],this.panels[e]))},remove:function(d){var f=this.options,g=this.lis.eq(d).remove(),e=this.panels.eq(d).remove();if(g.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(d+(d+1<this.anchors.length?1:-1))}f.disabled=c.map(c.grep(f.disabled,function(l,k){return l!=d}),function(l,k){return l>=d?--l:l});this._tabify();this._trigger("remove",null,this._ui(g.find("a")[0],e[0]))},enable:function(d){var e=this.options;if(c.inArray(d,e.disabled)==-1){return}this.lis.eq(d).removeClass("ui-state-disabled");e.disabled=c.grep(e.disabled,function(g,f){return g!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]))},disable:function(e){var d=this,f=this.options;if(e!=f.selected){this.lis.eq(e).addClass("ui-state-disabled");f.disabled.push(e);f.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}},select:function(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))}else{if(d===null){d=-1}}if(d==-1&&this.options.collapsible){d=this.options.selected}this.anchors.eq(d).trigger(this.options.event+".tabs")},load:function(g){var e=this,k=this.options,d=this.anchors.eq(g)[0],f=c.data(d,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&c.data(d,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(g).addClass("ui-state-processing");if(k.spinner){var i=c("span",d);i.data("label.tabs",i.html()).html(k.spinner)}this.xhr=c.ajax(c.extend({},k.ajaxOptions,{url:f,success:function(m,l){c(e._sanitizeSelector(d.hash)).html(m);e._cleanup();if(k.cache){c.data(d,"cache.tabs",true)}e._trigger("load",null,e._ui(e.anchors[g],e.panels[g]));try{k.ajaxOptions.success(m,l)}catch(n){}e.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(e,d){this.anchors.eq(e).removeData("cache.tabs").data("load.tabs",d)},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:"1.7.1",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(f,i){var d=this,k=this.options;var e=d._rotate||(d._rotate=function(l){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var m=k.selected;d.select(++m<d.anchors.length?m:0)},f);if(l){l.stopPropagation()}});var g=d._unrotate||(d._unrotate=!i?function(l){if(l.clientX){d.rotate(null)}}:function(l){t=k.selected;e()});if(f){this.element.bind("tabsshow",e);this.anchors.bind(k.event+".tabs",g);e()}else{clearTimeout(d.rotation);this.element.unbind("tabsshow",e);this.anchors.unbind(k.event+".tabs",g);delete this._rotate;delete this._unrotate}}})})(jQuery);(function(c){c.widget("ui.accordion",{_init:function(){var f=this.options,d=this;this.running=0;if(f.collapsible==c.ui.accordion.defaults.collapsible&&f.alwaysOpen!=c.ui.accordion.defaults.alwaysOpen){f.collapsible=!f.alwaysOpen}if(f.navigation){var e=this.element.find("a").filter(f.navigationFilter);if(e.length){if(e.filter(f.header).length){this.active=e}else{this.active=e.parent().parent().prev();e.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(f.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||f.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");c("<span/>").addClass("ui-icon "+f.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(f.icons.header).toggleClass(f.icons.headerSelected);if(c.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(g){return d._keydown(g)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!c.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(f.event){this.headers.bind((f.event)+".accordion",function(g){return d._clickHandler.call(d,g,this)})}},destroy:function(){var e=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(e.autoHeight||e.fillHeight){d.css("height","")}},_setData:function(d,e){if(d=="alwaysOpen"){d="collapsible";e=!e}c.widget.prototype._setData.apply(this,arguments)},_keydown:function(g){var k=this.options,i=c.ui.keyCode;if(k.disabled||g.altKey||g.ctrlKey){return}var f=this.headers.length;var d=this.headers.index(g.target);var e=false;switch(g.keyCode){case i.RIGHT:case i.DOWN:e=this.headers[(d+1)%f];break;case i.LEFT:case i.UP:e=this.headers[(d-1+f)%f];break;case i.SPACE:case i.ENTER:return this._clickHandler({target:g.target},g.target)}if(e){c(g.target).attr("tabIndex","-1");c(e).attr("tabIndex","0");e.focus();return false}return true},resize:function(){var g=this.options,f;if(g.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}f=this.element.parent().height();if(c.browser.msie){this.element.parent().css("overflow",d)}this.headers.each(function(){f-=c(this).outerHeight()});var e=0;this.headers.next().each(function(){e=Math.max(e,c(this).innerHeight()-c(this).height())}).height(Math.max(0,f-e)).css("overflow","auto")}else{if(g.autoHeight){f=0;this.headers.next().each(function(){f=Math.max(f,c(this).outerHeight())}).height(f)}}},activate:function(d){var e=this._findActive(d)[0];this._clickHandler({target:e},e)},_findActive:function(d){return d?typeof d=="number"?this.headers.filter(":eq("+d+")"):this.headers.not(this.headers.not(d)):d===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(d,i){var f=this.options;if(f.disabled){return false}if(!d.target&&f.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);this.active.next().removeClass("ui-accordion-content-active");var l=this.active.next(),g={options:f,newHeader:c([]),oldHeader:f.active,newContent:c([]),oldContent:l},e=(this.active=c([]));this._toggle(e,l,g);return false}var k=c(d.currentTarget||i);var m=k[0]==this.active[0];if(this.running||(!f.collapsible&&m)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(f.icons.headerSelected).addClass(f.icons.header);this.active.next().removeClass("ui-accordion-content-active");if(!m){k.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(f.icons.header).addClass(f.icons.headerSelected);k.next().addClass("ui-accordion-content-active")}var e=k.next(),l=this.active.next(),g={options:f,newHeader:m&&f.collapsible?c([]):k,oldHeader:this.active,newContent:m&&f.collapsible?c([]):e.find("> *"),oldContent:l.find("> *")},n=this.headers.index(this.active[0])>this.headers.index(k[0]);this.active=m?c([]):k;this._toggle(e,l,g,m,n);return false},_toggle:function(d,m,k,n,p){var f=this.options,r=this;this.toShow=d;this.toHide=m;this.data=k;var e=function(){if(!r){return}return r._completed.apply(r,arguments)};this._trigger("changestart",null,this.data);this.running=m.size()===0?d.size():m.size();if(f.animated){var i={};if(f.collapsible&&n){i={toShow:c([]),toHide:m,complete:e,down:p,autoHeight:f.autoHeight||f.fillSpace}}else{i={toShow:d,toHide:m,complete:e,down:p,autoHeight:f.autoHeight||f.fillSpace}}if(!f.proxied){f.proxied=f.animated}if(!f.proxiedDuration){f.proxiedDuration=f.duration}f.animated=c.isFunction(f.proxied)?f.proxied(i):f.proxied;f.duration=c.isFunction(f.proxiedDuration)?f.proxiedDuration(i):f.proxiedDuration;var q=c.ui.accordion.animations,g=f.duration,l=f.animated;if(!q[l]){q[l]=function(o){this.slide(o,{easing:l,duration:g||700})}}q[l](i)}else{if(f.collapsible&&n){d.toggle()}else{m.hide();d.show()}e(true)}m.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();d.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(d){var e=this.options;this.running=d?0:--this.running;if(this.running){return}if(e.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});c.extend(c.ui.accordion,{version:"1.7.1",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(n,l){n=c.extend({easing:"swing",duration:300},n,l);if(!n.toHide.size()){n.toShow.animate({height:"show"},n);return}if(!n.toShow.size()){n.toHide.animate({height:"hide"},n);return}var e=n.toShow.css("overflow"),k,f={},i={},g=["height","paddingTop","paddingBottom"],d;var m=n.toShow;d=m[0].style.width;m.width(parseInt(m.parent().width(),10)-parseInt(m.css("paddingLeft"),10)-parseInt(m.css("paddingRight"),10)-(parseInt(m.css("borderLeftWidth"),10)||0)-(parseInt(m.css("borderRightWidth"),10)||0));c.each(g,function(o,q){i[q]="hide";var p=(""+c.css(n.toShow[0],q)).match(/^([\d+-.]+)(.*)$/);f[q]={value:p[1],unit:p[2]||"px"}});n.toShow.css({height:0,overflow:"hidden"}).show();n.toHide.filter(":hidden").each(n.complete).end().filter(":visible").animate(i,{step:function(o,p){if(p.prop=="height"){k=(p.now-p.start)/(p.end-p.start)}n.toShow[0].style[p.prop]=(k*f[p.prop].value)+f[p.prop].unit},duration:n.duration,easing:n.easing,complete:function(){if(!n.autoHeight){n.toShow.css("height","")}n.toShow.css("width",parent().width());n.toShow.css({overflow:e});n.complete()}})},bounceslide:function(d){this.slide(d,{easing:d.down?"easeOutBounce":"swing",duration:d.down?1000:200})},easeslide:function(d){this.slide(d,{easing:"easeinout",duration:700})}}})})(jQuery);(function(c){c.widget("ui.slider",c.extend({},c.ui.mouse,{_init:function(){var d=this,e=this.options;this._keySliding=false;this._handleIndex=null;this.orientation=e.orientation=="auto"?(this.element[0].offsetWidth/this.element[0].offsetHeight>1?"horizontal":"vertical"):e.orientation;this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=c([]);if(e.range){if(e.range===true){this.range=c("<div></div>");if(!e.values){e.values=[this._valueMin(),this._valueMin()]}if(e.values.length&&e.values.length!=2){e.values=[e.values[0],e.values[0]]}}else{this.range=c("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range ui-widget-header");(e.range=="min")&&(this.orientation=="horizontal")&&this.range.css({left:0});(e.range=="max")&&(this.orientation=="horizontal")&&this.range.css({right:0});(e.range=="min")&&(this.orientation=="vertical")&&this.range.css({bottom:0});(e.range=="max")&&(this.orientation=="vertical")&&this.range.css({top:0})}if(c(".ui-slider-handle",this.element).length==0){c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(e.values&&e.values.length){while(c(".ui-slider-handle",this.element).length<e.values.length){c('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=c(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(f){f.preventDefault()}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){d.handles.removeClass("ui-state-focus");c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")});this.handles.each(function(f){c(this).data("index.ui-slider-handle",f)});this.handles.keydown(function(l){var g=c(this).data("index.ui-slider-handle");if(d.options.disabled){return}switch(l.keyCode){case c.ui.keyCode.HOME:case c.ui.keyCode.END:case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:if(!d._keySliding){d._keySliding=true;c(this).addClass("ui-state-active");d._start(l)}break}var i,f,k=d._step();if(d.options.values&&d.options.values.length){i=f=d.values(g)}else{i=f=d.value()}switch(l.keyCode){case c.ui.keyCode.HOME:f=d._valueMin();break;case c.ui.keyCode.END:f=d._valueMax();break;case c.ui.keyCode.UP:case c.ui.keyCode.RIGHT:f=i+k;break;case c.ui.keyCode.DOWN:case c.ui.keyCode.LEFT:f=i-k;break}d._slide(l,g,f)}).keyup(function(f){if(d._keySliding){d._stop(f);d._change(f);d._keySliding=false;c(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(k){var l=this.options;if(l.disabled){return false}this._start(k);this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var d={x:k.pageX,y:k.pageY};var g=this._normValueFromMouse(d);var m=this._valueMax(),e;var f=this,i;this.handles.each(function(n){var o=Math.abs(g-f.values(n));if(m>o){m=o;e=c(this);i=n}});f._handleIndex=i;e.addClass("ui-state-active").focus();this._slide(k,i,g);return true},_mouseStart:function(d){return true},_mouseDrag:function(f){var d={x:f.pageX,y:f.pageY};var e=this._normValueFromMouse(d);this._slide(f,this._handleIndex,e);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._stop(d);this._change(d);this._handleIndex=null;return false},_normValueFromMouse:function(f){var e,l;if("horizontal"==this.orientation){e=this.elementSize.width;l=f.x-this.elementOffset.left}else{e=this.elementSize.height;l=f.y-this.elementOffset.top}var i=(l/e);if(i>1){i=1}if(i<0){i=0}if("vertical"==this.orientation){i=1-i}var g=this._valueMax()-this._valueMin(),m=i*g,d=m%this.options.step,k=this._valueMin()+m-d;if(d>(this.options.step/2)){k+=this.options.step}return k},_start:function(d){this._trigger("start",d,{value:this.value()})},_slide:function(i,g,f){if(this.options.values&&this.options.values.length){var k=this.handles[g];var d=this.values(g?0:1);if((g==0&&f>=d)||(g==1&&f<=d)){f=d}if(f!=this.values(g)){var e=this.values();e[g]=f;var l=this._trigger("slide",i,{handle:k,value:f,values:e});var d=this.values(g?0:1);if(l!==false){this.values(g,f)}}}else{if(f!=this.value()){var l=this._trigger("slide",i,{value:f});if(l!==false){this._setData("value",f)}}}},_stop:function(d){this._trigger("stop",d,{value:this.value()})},_change:function(d){this._trigger("change",d,{value:this.value()})},value:function(d){if(arguments.length){this._setData("value",d);this._change()}return this._value()},values:function(d,e){if(arguments.length>1){this.options.values[d]=e;this._refreshValue();this._change()}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(d)}else{return this.value()}}else{return this._values()}},_setData:function(d,e){c.widget.prototype._setData.apply(this,arguments);switch(d){case"orientation":this.orientation=this.options.orientation=="auto"?(this.element[0].offsetWidth/this.element[0].offsetHeight>1?"horizontal":"vertical"):this.options.orientation;this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this._orientation());this._refreshValue();break;case"value":this._refreshValue();break}},_step:function(){var d=this.options.step;return d},_value:function(){var d=this.options.value;if(d<this._valueMin()){d=this._valueMin()}if(d>this._valueMax()){d=this._valueMax()}return d},_values:function(d){if(arguments.length){var e=this.options.values[d];if(e<this._valueMin()){e=this._valueMin()}if(e>this._valueMax()){e=this._valueMax()}return e}else{return this.options.values}},_valueMin:function(){var d=this.options.min;return d},_valueMax:function(){var d=this.options.max;return d},_refreshValue:function(){var g=this.options.range;if(this.options.values&&this.options.values.length){var e=this,d,i;this.handles.each(function(m,k){var l=(e.values(m)-e._valueMin())/(e._valueMax()-e._valueMin())*100;valPerPx=l*(e.parent().width()-c(this).width())/100;c(this).css(e.orientation=="horizontal"?"left":"bottom",valPerPx+"px");if(e.options.range===true){if(e.orientation=="horizontal"){(m==0)&&e.range.css("left",l+"%");(m==1)&&e.range.css("width",(l-lastValPercent)+"%")}else{(m==0)&&e.range.css("bottom",(l)+"%");(m==1)&&e.range.css("height",(l-lastValPercent)+"%")}}lastValPercent=l})}else{var f=(this.value()-this._valueMin())/(this._valueMax()-this._valueMin())*100;valPerPx=f*(this.handle.parent().width()-this.handle.width())/100;this.handle.css(this.orientation=="horizontal"?"left":"bottom",valPerPx+"px");(g=="min")&&(this.orientation=="horizontal")&&this.range.css({left:0,width:f+"%"});(g=="max")&&(this.orientation=="horizontal")&&this.range.css({left:f+"%",width:(100-f)+"%"});(g=="min")&&(this.orientation=="vertical")&&this.range.css({top:(100-f)+"%",height:f+"%"});(g=="max")&&(this.orientation=="vertical")&&this.range.css({bottom:f+"%",height:(100-f)+"%"})}}}));c.extend(c.ui.slider,{getter:"value values",version:"1.6rc5",eventPrefix:"slide",defaults:{delay:0,distance:0,max:100,min:0,orientation:"auto",range:false,step:1,value:0,values:null}})})(jQuery);(function(c){c.effects.puff=function(d){return this.queue(function(){var i=c(this);var e=c.extend(true,{},d.options);var l=c.effects.setMode(i,d.options.mode||"hide");var k=parseInt(d.options.percent,10)||150;e.fade=true;var g={height:i.height(),width:i.width()};var f=k/100;i.from=(l=="hide")?g:{height:g.height*f,width:g.width*f};e.from=i.from;e.percent=(l=="hide")?k:100;e.mode=l;i.effect("scale",e,d.duration,d.callback);i.dequeue()})};c.effects.scale=function(d){return this.queue(function(){var k=c(this);var f=c.extend(true,{},d.options);var n=c.effects.setMode(k,d.options.mode||"effect");var l=parseInt(d.options.percent,10)||(parseInt(d.options.percent,10)==0?0:(n=="hide"?0:100));var m=d.options.direction||"both";var e=d.options.origin;if(n!="effect"){f.origin=e||["middle","center"];f.restore=true}var i={height:k.height(),width:k.width()};k.from=d.options.from||(n=="show"?{height:0,width:0}:i);var g={y:m!="horizontal"?(l/100):1,x:m!="vertical"?(l/100):1};k.to={height:i.height*g.y,width:i.width*g.x};if(d.options.fade){if(n=="show"){k.from.opacity=0;k.to.opacity=1}if(n=="hide"){k.from.opacity=1;k.to.opacity=0}}f.from=k.from;f.to=k.to;f.mode=n;k.effect("size",f,d.duration,d.callback);k.dequeue()})};c.effects.size=function(d){return this.queue(function(){var e=c(this),r=["position","top","left","width","height","overflow","opacity"];var q=["position","top","left","overflow","opacity"];var n=["width","height","overflow"];var v=["fontSize"];var o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var k=c.effects.setMode(e,d.options.mode||"effect");var m=d.options.restore||false;var g=d.options.scale||"both";var u=d.options.origin;var f={height:e.height(),width:e.width()};e.from=d.options.from||f;e.to=d.options.to||f;if(u){var l=c.effects.getBaseline(u,f);e.from.top=(f.height-e.from.height)*l.y;e.from.left=(f.width-e.from.width)*l.x;e.to.top=(f.height-e.to.height)*l.y;e.to.left=(f.width-e.to.width)*l.x}var p={from:{y:e.from.height/f.height,x:e.from.width/f.width},to:{y:e.to.height/f.height,x:e.to.width/f.width}};if(g=="box"||g=="both"){if(p.from.y!=p.to.y){r=r.concat(o);e.from=c.effects.setTransition(e,o,p.from.y,e.from);e.to=c.effects.setTransition(e,o,p.to.y,e.to)}if(p.from.x!=p.to.x){r=r.concat(i);e.from=c.effects.setTransition(e,i,p.from.x,e.from);e.to=c.effects.setTransition(e,i,p.to.x,e.to)}}if(g=="content"||g=="both"){if(p.from.y!=p.to.y){r=r.concat(v);e.from=c.effects.setTransition(e,v,p.from.y,e.from);e.to=c.effects.setTransition(e,v,p.to.y,e.to)}}c.effects.save(e,m?r:q);e.show();c.effects.createWrapper(e);e.css("overflow","hidden").css(e.from);if(g=="content"||g=="both"){o=o.concat(["marginTop","marginBottom"]).concat(v);i=i.concat(["marginLeft","marginRight"]);n=r.concat(o).concat(i);e.find("*[width]").each(function(){child=c(this);if(m){c.effects.save(child,n)}var y={height:child.height(),width:child.width()};child.from={height:y.height*p.from.y,width:y.width*p.from.x};child.to={height:y.height*p.to.y,width:y.width*p.to.x};if(p.from.y!=p.to.y){child.from=c.effects.setTransition(child,o,p.from.y,child.from);child.to=c.effects.setTransition(child,o,p.to.y,child.to)}if(p.from.x!=p.to.x){child.from=c.effects.setTransition(child,i,p.from.x,child.from);child.to=c.effects.setTransition(child,i,p.to.x,child.to)}child.css(child.from);child.animate(child.to,d.duration,d.options.easing,function(){if(m){c.effects.restore(child,n)}})})}e.animate(e.to,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){if(k=="hide"){e.hide()}c.effects.restore(e,m?r:q);c.effects.removeWrapper(e);if(d.callback){d.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);(function(d){function c(f){f=f.replace(/left|top/g,"0px");f=f.replace(/right|bottom/g,"100%");f=f.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var e=f.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(e[1],10),e[2],parseFloat(e[3],10),e[4]]}d.extend(d.fx.step,{backgroundPosition:function(f){if(!f.bgPosReady){var i=d.curCSS(f.elem,"backgroundPosition");if(!i){i=d.curCSS(f.elem,"backgroundPositionX")+" "+d.curCSS(f.elem,"backgroundPositionY")}if(!i){return}i=c(i);f.start=[i[0],i[2]];var e=c(f.end);f.end=[e[0],e[2]];f.unit=[e[1],e[3]];f.bgPosReady=true}var g=[];g[0]=((f.end[0]-f.start[0])*f.pos)+f.start[0]+f.unit[0];g[1]=((f.end[1]-f.start[1])*f.pos)+f.start[1]+f.unit[1];f.elem.style.backgroundPosition=g[0]+" "+g[1]}})})(jQuery);(function(c){c.fn.batchImageLoad=function(f){var d=c(this);var e=d.size();var g=e;var k=0;c.fn.batchImageLoad.defaults={loadingCompleteCallback:null,imageLoadedCallback:null};var i=c.extend({},c.fn.batchImageLoad.defaults,f);d.each(function(){if(c(this)[0].complete){g--;if(i.imageLoadedCallback){i.imageLoadedCallback(k,e)}}else{c(this).load(function(){c(this).unbind("load");k++;if(i.imageLoadedCallback){i.imageLoadedCallback(k,e)}if(k>=g){if(i.loadingCompleteCallback){i.loadingCompleteCallback()}}});c(this).error(function(){k++;if(i.imageLoadedCallback){i.imageLoadedCallback(k,e)}if(k>=g){if(i.loadingCompleteCallback){i.loadingCompleteCallback()}}})}});if(g<=0){if(i.loadingCompleteCallback){i.loadingCompleteCallback()}}}})(jQuery);function jTNTgetScript(c,d){if($("body").hasClass(c)){d()}else{$.getScript("/scripts/"+c+".js",function(){$("body").addClass(c);d()})}}function cycleFrontPageImages(){$p=whichMainPage();if($p.data("tid")){window.clearTimeout($p.data("tid"))}$p.data("tid",window.setTimeout(function(){DOcycleFrontPageImages()},6666))}function DOcycleFrontPageImages(){$p=whichMainPage();$d=$p.find("div#bufuback");if(!$d.length){return}$i=$d.find("img.showthisonenow");if($i.next().length){$n=$i.next()}else{$n=$d.find("img").eq(0)}$n.addClass("showthisonenext");$n.fadeIn(1234);$i.fadeOut(1234,function(){$i.removeClass("showthisonenow");$n.addClass("showthisonenow");$n.removeClass("showthisonenext");cycleFrontPageImages()})}function redrawHack(c){c.css("display","none").css("display","block")}function passHidEvent(c){$(this).hide();$targ=$(document.elementFromPoint(c.pageX,c.pageY));$(this).show();$targ.trigger(c)}jQuery.fn.wobble=function(c,d){return this.each(function(){$(this).stop().animate({color:c},321,function(){$(this).animate({color:d},2345)})})};jQuery.fn.enwobble=function(c){return this.each(function(){$(this).animate({color:c},321).hover(function(){$(this).wobble("#066",c)},function(){$(this).stop().animate({color:c},321)})})};jQuery.fn.hoverSprite=function(c){$(this).hover(function(){x=$(this).css("backgroundPosition");if(!x){x=$(this).css("backgroundPositionX")+" "}xi=x.indexOf(" ");x=x.substring(0,xi)+" "+(c-($(this).height()))+"px";$(this).css("backgroundPosition",x)},function(){x=$(this).css("backgroundPosition");if(!x){x=$(this).css("backgroundPositionX")+" "}xi=x.indexOf(" ");x=x.substring(0,xi)+" 0px";$(this).css("backgroundPosition",x)});return this};function off(c){$(".page:visible").find("#"+c).each(function(){s=this.src;if(s.indexOf("_on.gif")>=0){this.src=s.substr(0,s.indexOf("_on.gif"))+".gif"}})}function on(c){$(".page:visible").find("#"+c).each(function(){s=this.src;if(s.indexOf("_on.gif")<0){this.src=s.substr(0,s.indexOf(".gif"))+"_on.gif"}})}function initArea(){$("textarea.ckeditor-mod").ckeditor()}function pollchoiceclicked(){$(this).addClass("pollchosen");$(this).parent().find("div.choicebutt").unbind().not("div.pollchosen").addClass("pollunchosen");$.post("/includes/postpoll.php",{nid:$(this).parent().find("div.polltext span.pollnid").text(),choice:$(this).find("span.choiceorder").text()})}function addComment(d,c){title=d.find("input#title").attr("value");name=d.find("input#nama").attr("value");body=d.find("textarea#body").attr("value");if(title==""||title=="Title"){d.find("p.commentcomment").html("Please enter a title for your comment ...");return}else{if(body==""||body=="Comment"){d.find("p.commentcomment").html("Please write your comment before clicking OK  ...");return}else{if(name==""||name=="Name"){d.find("p.commentcomment").html("Please enter your name ...");return}}}d.find("p.commentcomment").html("Your comment has been referred for moderation");d.find("button.cancel").css("visibility","hidden");d.find("button.ok").css("visibility","hidden");d.parent().find("a.addcomment").css("visibility","hidden");$.post("doaddcomm.php",{title:title,body:body,name:name,node:c})}function updateAddCommLinks(c){c.find("button.ok").click(function(){addComment(c,$(this).attr("value"));return false});c.find("button.cancel").click(function(){c.remove();return false});c.find("input#title").focus(function(){if($(this).attr("value")=="Title"){$(this).attr("value","")}});c.find("input#nama").focus(function(){if($(this).attr("value")=="Name"){$(this).attr("value","")}});c.find("textarea#body").focus(function(){if($(this).attr("value")=="Comment"){$(this).attr("value","")}});$("html,body").animate({scrollTop:c.offset().top})}function updateCommentLinks(c){c.find("div.comment-list").css("visibility","visible");c.find("a.showcomments").click(function(){$("html,body").animate({scrollTop:c.offset().top-53});$(this).parent().load($(this).attr("href"),null,function(){updateCommentLinks($(this))});return false});c.find("a.addcomment").click(function(){if($(this).parent().find("div.addcomments").length==0){$(this).parent().append("<div class='addcomments'></div>");$(this).parent().find("div.addcomments").load($(this).attr("href"),null,function(){updateAddCommLinks($(this))})}return false});c.find("div.comment").corner("11px")}function whichMainPage(){$p=$("div#mainpage");if($p.hasClass("onitswayout")){$p=$("div#othermainpage")}return $p}function otherMainPage(c){answer="mainpage";if(c.attr("id")==answer){answer="other"+answer}return $("div#"+answer)}function updatePage(d,c){$p=d;$op=c;$p.animate({top:0},666);updatePageOnlyElements($p);updatelements($p);activ8sprites($p);$("html,body").animate({scrollTop:0},666);$p.find("img").batchImageLoad({loadingCompleteCallback:function(){window.setTimeout(function(){$op.stop().fadeOut("fast",function(){$p.show().css("opacity","");$("div#backhand img").animate({opacity:"0.99"},"fast",function(){$(this).css("opacity","")});updateElementsDrawn($p);$p.css("z-index","2");$op.css("z-index","1").empty()})},23)}});$p.find("div.thisisatest").corner("circular 105px keep");if($p.find("a.flowplaythis").length){jTNTgetScript("flowplayer-3.2.4.min",function(){$p.find("a.flowplaythis").each(function(){$(this).flowplayer("/video/flowplayer-3.2.5.swf",{clip:{scaling:"orig"}})})})}}function updateElementsDrawn(c){$p=c;$p.find("div.paginate").each(function(){$p.find("div.backgroundimagediv").each(function(){$(this).corner("round 23px keep")})});redrawpaginated($p);if($.browser.msie&&$.browser.version=="6.0"){$p.find("img.png").each(function(){(this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.runtimeStyle.backgroundImage="none",this.runtimeStyle.height=this.height+"px",this.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.src+"', sizingMethod='scale')"),this.pngSet=true);this.src="/images/layout/transparent.gif";$(this).css("visibility","visible")});$p.find(".sprite,.actionsprite,.doddpng").each(function(){DD_belatedPNG.fixPng(this)});$p.find("img#bufubacki").each(function(){w=$(this).parent().width();h=$(this).parent().parent().find("div#bufubox").height()*80/100;$(this).width(w+"px");$(this).height(h+"px");$(this).css("visibility","visible")});redrawHack($p.find("div#bufubox"))}$p.find("div.eachnode").each(function(){h=$(this).height();if($.browser.msie){if($.browser.version==6){h=h*66/100}}else{$(this).css("top","8%")}$(this).find("img").height(h)});$p.find("div.magnifyme").coverflow();$p.find("div.noteachothernode").each(function(){$(this).height($(this).prev().height()+"px")});if($.browser.msie&&$.browser.version=="6.0"){$p.find("div.scrollemres").children("div").each(function(){$(this).height(($(this).parent().children("img").height()*0.95)+"px")})}$p.find("div.comment-links:first").css("visibility","visible").load($p.find("div.comment-links>a:first").attr("href"),null,function(){updateCommentLinks($(this))});redrawHack($p.find("div#cciety"));if($("div#bufuback").length){$.get("/includes/loadallcycleimages.php",function(d){$("div#bufuback").append($(d));cycleFrontPageImages()})}}function updatePageOnlyElements(c){$p=c;$p.find("div.tabs>ul>li>a").each(function(){link=$(this).attr("href");link=link.substr(link.indexOf("=")+1)+"&title=hide";ind=link.indexOf("&");link=link.substr(0,ind)+"?"+link.substr(ind+1)});$p.find("div.tabs").tabs({show:function(f,d){$(d.tab).parent().blur()},select:function(f,d){$p.find("li.selectnothover").removeClass("selectnothover");$(d.tab).parent().trigger("mouseout").addClass("selectnothover");return true},cache:true,fx:{opacity:"toggle"},load:function(f,d){$(d.panel).corner("round tr br 37");updatelements($(d.panel))}});$p.find("div.tabs>ul>li").corner("round top 15px").each(function(d){$thestr="tab_color_"+d%2;$(this).addClass($thestr).click(function(){$(this).find("a").click();return false});$(this).hover(function(){otherstr="tab_color_"+d%2;$(this).not("li.selectnothover").removeClass(otherstr).addClass("hover_"+otherstr)},function(){otherstr="tab_color_"+d%2;$(this).not("li.selectnothover").removeClass("hover_"+otherstr).addClass(otherstr)})});$p.find("div.tabs>div").each(function(d){$thestr="tab_color_"+d%2;$(this).addClass($thestr)});$p.find("div.zones>a").addClass("zone");$p.find("div.paginate,ul.overviewlist").find("a").each(function(){if(!this.className.length){$(this).css("color","").addClass("greatlink").enwobble("#fca")}});$p.find("div.boxinate").find("a").each(function(){if(!this.className.length){$(this).css("color","").addClass("greatlink").enwobble("#840")}});if($p.find("div.addgb").length){}else{$p.find("textarea.ckeditor-mod").ckeditor(initArea,{toolbar:[["Cut","Copy","Paste","PasteText","PasteFromWord","-","Scayt"],["Undo","Redo","-","Find","Replace","-","SelectAll","RemoveFormat"],["Bold","Italic","Underline","Strike","-","Subscript","Superscript"],["NumberedList","BulletedList","-","Outdent","Indent","Blockquote","CreateDiv"],["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],["Link","Unlink","Anchor"],["Styles","Format","Font","FontSize"],["TextColor","BGColor"],]})}$p.find("div.addgb").find("div#edit-body-wrapper").find("textarea").each(function(){$(this).attr("rows",7).attr("cols",40).css("background-color","transparent").css("border-width","0px").css("font-size","20px").wrap("<div class='wrapgbtb'><div class='boxinate'><div class='wrappedin'>").parent().parent().parent().prepend(" <div class='whitebox'> <img class='png' src='/images/layout/whitepicframe.png' style='width:100%'> </div> ")});$p.find("div.addgb").find("div.whitebox, div.boxinate").click(function(){$(this).parent().find("textarea").focus()});$p.find("div.hidden-node-ref").each(function(){var d=$(this).html();$p.find("form").submit(function(){$p.find("div.addgb").find("textarea#edit-body").each(function(){str=$(this).val();str=str.replace(/\n/g,"<br />\n");$(this).val(str)});load4form(d);return false})})}function hashifyLinks(c){c.find('a[href*="/?p="]').each(function(){$(this).attr("href","#"+this.href.substr(this.href.indexOf("/?p=")+2));$(this).click(function(){load2main(this.href.substr(this.href.indexOf("#")+1));this.returnValue=false;return false})});c.find('a[href*="/includes/"]').each(function(){$(this).attr("href",this.href.substr(this.href.indexOf("/includes/")))})}function updatelements(c){$o=c;hashifyLinks($o);$o.find('a[href^="http://"]').each(function(){lochost=location.host;if(lochost.substring(0,4)=="www."){lochost=lochost.substring(4)}hrefhost=this.href.substring(7);len=hrefhost.length;if(len>4){if(hrefhost.substring(len-4)==".pdf"){return}if(hrefhost.substring(len-4)==".wmv"){return}}if(hrefhost.substring(0,4)=="www."){hrefhost=hrefhost.substring(4)}hrefhost=hrefhost.substring(0,lochost.length);if(lochost!=hrefhost){$(this).click(function(){window.open(this.href);return false})}});$o.find('a[href$=".pdf"]').each(function(){$(this).click(function(){window.open(this.href);return false})});$o.find('a[href$=".wmv"]').each(function(){$(this).click(function(){window.open(this.href);return false})});$o.find("a.postit").click(function(){$(this).siblings().find("div.postit").css("z-index","1");$(this).find("div.postit").css("z-index","2");$(this).parent().parent().find("div.resourcestoscroll").html("").load(this.href,function(){updatelements($(this).parent().parent())});return false});$o.find("div.paginate").each(function(){if($("div#twopages").hasClass("scrollme")){$(this).parent().append($("<div class='sliderv ROUNDED'> <div class='ui-slider-handle'></div> </div>"));$(this).wrap('<div class="wrappagetoscroll"></div>')}});$o.find("ul.overviewlist").accordion({header:"a.accordiananchor",autoHeight:false,animated:false,change:function(){$p=whichMainPage();$("html,body").animate({scrollTop:$p.find(".ui-accordion-content-active").offset().top-123},1234);redrawpaginated($p)}});$o.find("ul.overviewlist").find("a.ui-accordion-header").hover(function(){$(this).addClass("overviewlisthighlight")},function(){$(this).removeClass("overviewlisthighlight")}).corner("round 8px");$o.find("div.links").find("ul.overviewlist>li>a").each(function(){$(this).append('<span class="linkcount">('+$(this).next().find("li").length+")</span>")});if($o.find("div.articleitem > div.jquery-corner").length==0){$o.find("div.articleitem").corner("round 20px").hover(function(){$(this).stop().animate({backgroundColor:"#fffedd"})},function(){$(this).stop().animate({backgroundColor:$(this).parent().css("background-color")})}).click(function(){$(this).find("a:first").each(function(){load2main(this.href.substr(this.href.indexOf("#")))});return false})}$o.find(".stripe:even").addClass("striped");if($o.find("div.mritem > div.jquery-corner").length==0){$o.find("div.mritem").corner("round 10px").hover(function(){$(this).stop().animate({backgroundColor:"#450515"})},function(){if($(this).hasClass(".striped")){$(this).stop().animate({backgroundColor:"#444"},666)}else{$(this).stop().animate({backgroundColor:$(this).parent().css("background-color")},666)}}).click(function(){$(this).find("a:first").each(function(){if(this.href.indexOf("#")<0){$(this).click()}else{load2main(this.href.substr(this.href.indexOf("#")+1))}});return false})}$o.find("div.stripelinks>div.stripe").corner("round 8px").hover(function(){if(!$(this).hasClass(".striped")){$(this).css("background-color",$(this).parent().css("background-color"))}$(this).stop().animate({backgroundColor:"#450515"})},function(){if($(this).hasClass(".striped")){$(this).stop().animate({backgroundColor:"#444"})}else{$(this).stop().animate({backgroundColor:"#000"})}}).click(function(){$(this).find("a:first").click();return false});$o.find("div.ROUNDtop").corner("round top 23px");$o.find("div.ROUNDbot").corner("round bottom 23px");$o.find("div.ROUNDED").corner("round 23px");$o.find("div.makebutt").corner("round 13px").hover(function(){$(this).stop().animate({backgroundColor:"#efefbe"},321)},function(){$(this).stop().animate({backgroundColor:"#ddad80"},666)}).click(function(){$(this).stop();$(this).find("a:first").click();$(this).animate({backgroundColor:"#ffff9e"},321,function(){$(this).animate({backgroundColor:"#ddad80"},666)});return false});$o.find("div.choicebutt").hoverSprite(0).click(pollchoiceclicked);$o.find("div.pollresults table").each(function(){$(this).visualize({type:"pie",colors:["#076","#88886d","#42444f"]},$(this).parent())});$rts=$o.find("div.resourcestoscroll");if($rts.length){$allresources=$rts.find("div.eachres");if($allresources.length){$rts.css("margin-top","0px");$o.find("div.sliderv").slider({orientation:"vertical",min:0,max:100,value:100,animate:true,noKeyboard:true,slide:function(f,d){cnt=$(this).parent().parent().find("div.eachres").length;$ho=$(this).find("div.ui-slider-handle");$ho.css("top",(($(this).height()-$ho.height())*(100-d.value)/100)+"px");$so=$o.find("div.resourcestoscroll");$so.css("margin-top",($so.height()*(cnt-1)*(d.value-100)/(100*cnt))+"px")}})}else{$rts.html("").load("/includes/loadres.php",function(){updatelements($(this).parent().parent())})}}else{if($o.find("div.paginate")){$o.find("div.sliderv").slider({orientation:"vertical",min:0,max:100,value:100,animate:true,noKeyboard:true,slide:function(f,d){$ho=$(this).find("div.ui-slider-handle");$ho.css("top",(($(this).height()-$ho.height())*(100-d.value)/100)+"px");$so=$o.find("div.paginate");$so.css("margin-top",(($so.height()-$(this).height()/2)*(d.value-100)/100)+"px")}});$o.find("div.paginate").css("margin-top","0px")}}$o.find("div.sliderv").slider("disable").css("visibility","hidden");$o.find("div.ui-slider-handle").css("top","0px");$o.find("div.sliderv").slider("option",{max:100,value:100,disabled:false}).css("visibility","visible");$o.find("img.resourcespoppy").click(passHidEvent);$o.find("img.resourcespoppy").mouseover(passHidEvent)}function activ8sprites(c){hashifyLinks(c);c.find("div.actionsprite").hoverSprite(-1);c.find("img.stretchysprite").each(function(){$(this).parent().parent().hover(function(){$(this).find("img.stretchysprite").hide();$(this).find("img.stretchyspritehover").show()},function(){$(this).find("img.stretchyspritehover").hide();$(this).find("img.stretchysprite").show()})})}function load4form(c){pagestr=c;$loadfrom=whichMainPage();$loadto=otherMainPage($loadfrom);$loadfrom.fadeTo(4444,0.5,"easeOutExpo");datastr=$loadfrom.find("form").serialize();$.post(pagestr,datastr,function(d){$bit=$(d).find("div#console");if($bit.find("div.error").length>0){$loadfrom.stop().fadeTo("fast",0.5);$bit.dialog({height:"auto",width:"50%",title:"Form errors:",modal:"true"}).bind("dialogclose",function(){$loadfrom.fadeTo("normal",1)})}else{$loadto.removeClass("onitswayout").empty();$bit.appendTo($loadto);$loadfrom.addClass("onitswayout").fadeOut("normal","easeOutExpo");updatePage($loadto,$loadfrom)}return false})}function justloadit(c){$loadfrom=whichMainPage();$loadto=otherMainPage($loadfrom);$loadfrom.addClass("onitswayout").fadeOut(4444,"easeOutExpo");$loadto.removeClass("onitswayout");if(c.charAt(0)=="#"){c=c.substr(1)}if(c.substring(0,4)=="p=p/"){c=c.substring(2);c=c.replace(/\&/,"?")}else{c="getnode.php?"+c}$loadto.load(c,null,function(){updatePage($loadto,$loadfrom);return false});return false}function load2main(c){$("div.comment-links").remove();$.historyLoad(c);return false}function whywaitforwindoload(){vpw=$(window).width();vph=$(window).height();handiw=464;bgiw=1680;bgih=1054;if(vph/bgih<vpw/bgiw){calculatedheight=vph;calculatedwidth=calculatedheight*bgiw/bgih;calculatedleft=(vpw-calculatedwidth)/2}else{calculatedleft=0;calculatedwidth=vpw;calculatedheight=calculatedwidth*bgih/bgiw}imgwidth=handiw*calculatedheight/bgih;handpad=-31*calculatedheight/bgih;whichw=(calculatedwidth-1000-calculatedwidth%100)/100;if(whichw<0){whichw=0}if(whichw>2){whichw=2}$("body").addClass("width"+whichw);$("div#workingarea").css("left",calculatedleft);$("div#workingarea").css("width",calculatedwidth);$("div#twopages").css("left",imgwidth);$("div#twopages").css("width",calculatedwidth-imgwidth);handpad+=calculatedleft;if(typeof backhand==="undefined"&&$.browser.msie){}else{$("div#backhand img").css("width",imgwidth);$("div#backhand").css("left",handpad)}}function redrawpaginated(c){$p=c;$p.height("auto");$p.find("div.paginate").each(function(){if($p.parent().hasClass("scrollme")){h=$(window).height()-$(this).offset().top-$("div#footer").height()-37;$(this).parent().parent().find("div.backgroundimagediv").each(function(){$(this).height(h+"px")});$(this).parent().height(h+"px");$(this).parent().parent().height(h+"px");$(this).addClass("scrollingem")}else{h=$(this).height();$(this).parent().find("div.backgroundimagediv").each(function(){$(this).height(h+"px")});$(this).parent().height(h+"px")}});$p.find("div.boxinate").each(function(){h=$(this).find("div.wrappedin").height();if(!h){h=$(this).find("div.wrappedin div").height()}h2=$(this).parent().height();if(h+105>h2){h=h+105;$(this).parent().find("div.backgroundimagediv").find("img").each(function(){$(this).height(h+53);if($.browser.msie&&$.browser.version=="6.0"){this.runtimeStyle.height=(h+69)+"px";redrawHack($("div#footer"))}})}});$tp=$("div#twopages");$bh=$("div#backhand img");pagebord=$tp.position().left;if($p.find("div.makeitbigger").length){if(pagebord){$tp.animate({left:"0px",width:"100%"},"fast",function(){redrawpaginated($p)});$bh.animate({opacity:"0.01"},"fast")}else{$p.find("div.mainresources").each(function(){h=$(this).children().eq(0).height()+23;$(this).parent().height(h+"px")});$p.find("div.postitboard").each(function(){h=$(this).height();$(this).parent().parent().height(h+53+"px");$(this).parent().find("div.scrollemres").height((h-53)+"px")});if($.browser.msie&&$.browser.version=="6.0"){reference_height=$("div.scrollemres").height()*0.94+"px";$p.find("div.scrollrescontent").each(function(){$(this).height(reference_height)});$p.find("div.sliderv").each(function(){$(this).height(reference_height)});$p.find("div.postit").each(function(){h=$(this).height();$(this).find("img.postitnote").each(function(){this.runtimeStyle.height=h+"px"})})}redrawHack($("div#footer"))}}else{if(!pagebord){$tp.animate({left:$bh.width(),width:$tp.width()-$bh.width()},"fast",function(){redrawHack($("div#footer"))});$bh.animate({opacity:"0.99"},"fast")}else{redrawHack($("div#footer"))}}}$(function(){$("body").css("cursor","text");whywaitforwindoload();activ8sprites($("div#menu"));activ8sprites($("div#footer"));if($.browser.msie&&$.browser.version=="6.0"){$("body").addClass("ie6");$.getScript("scripts/DD_belatedPNG_0.0.8a.js",function(){$("div#menu,div#footer").find(".doddpng").each(function(){DD_belatedPNG.fixPng(this)});$("div#menu,div#footer").find(".png").each(function(){this.runtimeStyle.behavior="none";this.runtimeStyle.backgroundImage="none";this.runtimeStyle.height=$(this).height()+"px";this.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.src+"', sizingMethod='scale')";this.pngSet=true;this.src="/images/layout/transparent.gif";$(this).css("visibility","visible")});$("div.page").find(".sprite,.actionsprite,.doddpng").each(function(){DD_belatedPNG.fixPng(this)});$.historyInit(justloadit)})}else{$.historyInit(justloadit)}$(window).resize($.throttle(149,false,function(){window.setTimeout(function(){whywaitforwindoload();if($("div#mainpage").css("display")=="none"){$p=$("div#othermainpage")}else{$p=$("div#mainpage")}redrawpaginated($p)},149)},true));$(window).scroll(function(){h=$(window).height();pos=h-$(window).scrollTop();$p=whichMainPage();if(!$p.find("div.makeitbigger").length){$("div#backhand img").css("opacity",pos/h)}$p.find("a.infinitescrollflag").each(function(){anchor=this;ph=$p.height()+$p.offset().top;if((ph>$(window).height()+69)&&($(window).scrollTop()>ph-$(window).height()-69)){$.get(anchor.href,function(c){$(anchor).after(c).remove();updatelements($o);updateElementsDrawn($o)},"html")}})})});var Sylvester={version:"0.1.3",precision:0.000001};function Vector(){}Vector.prototype={e:function(c){return(c<1||c>this.elements.length)?null:this.elements[c-1]},dimensions:function(){return this.elements.length},modulus:function(){return Math.sqrt(this.dot(this))},eql:function(d){var e=this.elements.length;var c=d.elements||d;if(e!=c.length){return false}do{if(Math.abs(this.elements[e-1]-c[e-1])>Sylvester.precision){return false}}while(--e);return true},dup:function(){return Vector.create(this.elements)},map:function(c){var d=[];this.each(function(e,f){d.push(c(e,f))});return Vector.create(d)},each:function(e){var f=this.elements.length,c=f,d;do{d=c-f;e(this.elements[d],d+1)}while(--f)},toUnitVector:function(){var c=this.modulus();if(c===0){return this.dup()}return this.map(function(d){return d/c})},angleFrom:function(f){var g=f.elements||f;var e=this.elements.length,l=e,m;if(e!=g.length){return null}var c=0,p=0,o=0;this.each(function(k,n){c+=k*g[n-1];p+=k*k;o+=g[n-1]*g[n-1]});p=Math.sqrt(p);o=Math.sqrt(o);if(p*o===0){return null}var d=c/(p*o);if(d<-1){d=-1}if(d>1){d=1}return Math.acos(d)},isParallelTo:function(c){var d=this.angleFrom(c);return(d===null)?null:(d<=Sylvester.precision)},isAntiparallelTo:function(c){var d=this.angleFrom(c);return(d===null)?null:(Math.abs(d-Math.PI)<=Sylvester.precision)},isPerpendicularTo:function(c){var d=this.dot(c);return(d===null)?null:(Math.abs(d)<=Sylvester.precision)},add:function(d){var c=d.elements||d;if(this.elements.length!=c.length){return null}return this.map(function(e,f){return e+c[f-1]})},subtract:function(d){var c=d.elements||d;if(this.elements.length!=c.length){return null}return this.map(function(e,f){return e-c[f-1]})},multiply:function(c){return this.map(function(d){return d*c})},x:function(c){return this.multiply(c)},dot:function(d){var c=d.elements||d;var e,f=0,g=this.elements.length;if(g!=c.length){return null}do{f+=this.elements[g-1]*c[g-1]}while(--g);return f},cross:function(d){var e=d.elements||d;if(this.elements.length!=3||e.length!=3){return null}var c=this.elements;return Vector.create([(c[1]*e[2])-(c[2]*e[1]),(c[2]*e[0])-(c[0]*e[2]),(c[0]*e[1])-(c[1]*e[0])])},max:function(){var c=0,f=this.elements.length,d=f,e;do{e=d-f;if(Math.abs(this.elements[e])>Math.abs(c)){c=this.elements[e]}}while(--f);return c},indexOf:function(c){var e=null,g=this.elements.length,d=g,f;do{f=d-g;if(e===null&&this.elements[f]==c){e=f+1}}while(--g);return e},toDiagonalMatrix:function(){return Matrix.Diagonal(this.elements)},round:function(){return this.map(function(c){return Math.round(c)})},snapTo:function(c){return this.map(function(d){return(Math.abs(d-c)<=Sylvester.precision)?c:d})},distanceFrom:function(f){if(f.anchor){return f.distanceFrom(this)}var c=f.elements||f;if(c.length!=this.elements.length){return null}var e=0,d;this.each(function(g,k){d=g-c[k-1];e+=d*d});return Math.sqrt(e)},liesOn:function(c){return c.contains(this)},liesIn:function(c){return c.contains(this)},rotate:function(e,g){var d,f,c,l,k;switch(this.elements.length){case 2:d=g.elements||g;if(d.length!=2){return null}f=Matrix.Rotation(e).elements;c=this.elements[0]-d[0];l=this.elements[1]-d[1];return Vector.create([d[0]+f[0][0]*c+f[0][1]*l,d[1]+f[1][0]*c+f[1][1]*l]);break;case 3:if(!g.direction){return null}var i=g.pointClosestTo(this).elements;f=Matrix.Rotation(e,g.direction).elements;c=this.elements[0]-i[0];l=this.elements[1]-i[1];k=this.elements[2]-i[2];return Vector.create([i[0]+f[0][0]*c+f[0][1]*l+f[0][2]*k,i[1]+f[1][0]*c+f[1][1]*l+f[1][2]*k,i[2]+f[2][0]*c+f[2][1]*l+f[2][2]*k]);break;default:return null}},reflectionIn:function(e){if(e.anchor){var d=this.elements.slice();var f=e.pointClosestTo(d).elements;return Vector.create([f[0]+(f[0]-d[0]),f[1]+(f[1]-d[1]),f[2]+(f[2]-(d[2]||0))])}else{var c=e.elements||e;if(this.elements.length!=c.length){return null}return this.map(function(g,k){return c[k-1]+(c[k-1]-g)})}},to3D:function(){var c=this.dup();switch(c.elements.length){case 3:break;case 2:c.elements.push(0);break;default:return null}return c},inspect:function(){return"["+this.elements.join(", ")+"]"},setElements:function(c){this.elements=(c.elements||c).slice();return this}};Vector.create=function(d){var c=new Vector();return c.setElements(d)};Vector.i=Vector.create([1,0,0]);Vector.j=Vector.create([0,1,0]);Vector.k=Vector.create([0,0,1]);Vector.Random=function(d){var c=[];do{c.push(Math.random())}while(--d);return Vector.create(c)};Vector.Zero=function(d){var c=[];do{c.push(0)}while(--d);return Vector.create(c)};function Matrix(){}Matrix.prototype={e:function(d,c){if(d<1||d>this.elements.length||c<1||c>this.elements[0].length){return null}return this.elements[d-1][c-1]},row:function(c){if(c>this.elements.length){return null}return Vector.create(this.elements[c-1])},col:function(e){if(e>this.elements[0].length){return null}var d=[],g=this.elements.length,c=g,f;do{f=c-g;d.push(this.elements[f][e-1])}while(--g);return Vector.create(d)},dimensions:function(){return{rows:this.elements.length,cols:this.elements[0].length}},rows:function(){return this.elements.length},cols:function(){return this.elements[0].length},eql:function(c){var m=c.elements||c;if(typeof(m[0][0])=="undefined"){m=Matrix.create(m).elements}if(this.elements.length!=m.length||this.elements[0].length!=m[0].length){return false}var g=this.elements.length,l=g,f,e,k=this.elements[0].length,d;do{f=l-g;e=k;do{d=k-e;if(Math.abs(this.elements[f][d]-m[f][d])>Sylvester.precision){return false}}while(--e)}while(--g);return true},dup:function(){return Matrix.create(this.elements)},map:function(k){var g=[],f=this.elements.length,m=f,e,d,l=this.elements[0].length,c;do{e=m-f;d=l;g[e]=[];do{c=l-d;g[e][c]=k(this.elements[e][c],e+1,c+1)}while(--d)}while(--f);return Matrix.create(g)},isSameSizeAs:function(c){var d=c.elements||c;if(typeof(d[0][0])=="undefined"){d=Matrix.create(d).elements}return(this.elements.length==d.length&&this.elements[0].length==d[0].length)},add:function(c){var d=c.elements||c;if(typeof(d[0][0])=="undefined"){d=Matrix.create(d).elements}if(!this.isSameSizeAs(d)){return null}return this.map(function(e,g,f){return e+d[g-1][f-1]})},subtract:function(c){var d=c.elements||c;if(typeof(d[0][0])=="undefined"){d=Matrix.create(d).elements}if(!this.isSameSizeAs(d)){return null}return this.map(function(e,g,f){return e-d[g-1][f-1]})},canMultiplyFromLeft:function(c){var d=c.elements||c;if(typeof(d[0][0])=="undefined"){d=Matrix.create(d).elements}return(this.elements[0].length==d.length)},multiply:function(v){if(!v.elements){return this.map(function(c){return c*v})}var m=v.modulus?true:false;var q=v.elements||v;if(typeof(q[0][0])=="undefined"){q=Matrix.create(q).elements}if(!this.canMultiplyFromLeft(q)){return null}var g=this.elements.length,k=g,o,e,f=q[0].length,l;var u=this.elements[0].length,d=[],p,n,r;do{o=k-g;d[o]=[];e=f;do{l=f-e;p=0;n=u;do{r=u-n;p+=this.elements[o][r]*q[r][l]}while(--n);d[o][l]=p}while(--e)}while(--g);var q=Matrix.create(d);return m?q.col(1):q},x:function(c){return this.multiply(c)},minor:function(q,p,n,m){var e=[],g=n,l,f,k;var r=this.elements.length,o=this.elements[0].length;do{l=n-g;e[l]=[];f=m;do{k=m-f;e[l][k]=this.elements[(q+l-1)%r][(p+k-1)%o]}while(--f)}while(--g);return Matrix.create(e)},transpose:function(){var k=this.elements.length,l=this.elements[0].length;var g=[],f=l,e,d,c;do{e=l-f;g[e]=[];d=k;do{c=k-d;g[e][c]=this.elements[c][e]}while(--d)}while(--f);return Matrix.create(g)},isSquare:function(){return(this.elements.length==this.elements[0].length)},max:function(){var c=0,g=this.elements.length,l=g,f,e,k=this.elements[0].length,d;do{f=l-g;e=k;do{d=k-e;if(Math.abs(this.elements[f][d])>Math.abs(c)){c=this.elements[f][d]}}while(--e)}while(--g);return c},indexOf:function(c){var f=null,k=this.elements.length,m=k,g,e,l=this.elements[0].length,d;do{g=m-k;e=l;do{d=l-e;if(this.elements[g][d]==c){return{i:g+1,j:d+1}}}while(--e)}while(--k);return null},diagonal:function(){if(!this.isSquare){return null}var e=[],f=this.elements.length,c=f,d;do{d=c-f;e.push(this.elements[d][d])}while(--f);return Vector.create(e)},toRightTriangular:function(){var l=this.dup(),f;var d=this.elements.length,e=d,g,m,o=this.elements[0].length,c;do{g=e-d;if(l.elements[g][g]==0){for(j=g+1;j<e;j++){if(l.elements[j][g]!=0){f=[];m=o;do{c=o-m;f.push(l.elements[g][c]+l.elements[j][c])}while(--m);l.elements[g]=f;break}}}if(l.elements[g][g]!=0){for(j=g+1;j<e;j++){var q=l.elements[j][g]/l.elements[g][g];f=[];m=o;do{c=o-m;f.push(c<=g?0:l.elements[j][c]-l.elements[g][c]*q)}while(--m);l.elements[j]=f}}}while(--d);return l},toUpperTriangular:function(){return this.toRightTriangular()},determinant:function(){if(!this.isSquare()){return null}var g=this.toRightTriangular();var e=g.elements[0][0],f=g.elements.length-1,c=f,d;do{d=c-f+1;e=e*g.elements[d][d]}while(--f);return e},det:function(){return this.determinant()},isSingular:function(){return(this.isSquare()&&this.determinant()===0)},trace:function(){if(!this.isSquare()){return null}var e=this.elements[0][0],f=this.elements.length-1,c=f,d;do{d=c-f+1;e+=this.elements[d][d]}while(--f);return e},tr:function(){return this.trace()},rank:function(){var m=this.toRightTriangular(),l=0;var f=this.elements.length,k=f,e,d,g=this.elements[0].length,c;do{e=k-f;d=g;do{c=g-d;if(Math.abs(m.elements[e][c])>Sylvester.precision){l++;break}}while(--d)}while(--f);return l},rk:function(){return this.rank()},augment:function(o){var m=o.elements||o;if(typeof(m[0][0])=="undefined"){m=Matrix.create(m).elements}var g=this.dup(),n=g.elements[0].length;var e=g.elements.length,f=e,l,c,d=m[0].length,k;if(e!=m.length){return null}do{l=f-e;c=d;do{k=d-c;g.elements[l][n+k]=m[l][k]}while(--c)}while(--e);return g},inverse:function(){if(!this.isSquare()||this.isSingular()){return null}var e=this.elements.length,f=e,m,l;var n=this.augment(Matrix.I(e)).toRightTriangular();var o,q=n.elements[0].length,c,k,d;var r=[],g;do{m=e-1;k=[];o=q;r[m]=[];d=n.elements[m][m];do{c=q-o;g=n.elements[m][c]/d;k.push(g);if(c>=f){r[m].push(g)}}while(--o);n.elements[m]=k;for(l=0;l<m;l++){k=[];o=q;do{c=q-o;k.push(n.elements[l][c]-n.elements[m][c]*n.elements[l][m])}while(--o);n.elements[l]=k}}while(--e);return Matrix.create(r)},inv:function(){return this.inverse()},round:function(){return this.map(function(c){return Math.round(c)})},snapTo:function(c){return this.map(function(d){return(Math.abs(d-c)<=Sylvester.precision)?c:d})},inspect:function(){var e=[];var f=this.elements.length,c=f,d;do{d=c-f;e.push(Vector.create(this.elements[d]).inspect())}while(--f);return e.join("\n")},setElements:function(o){var q,c=o.elements||o;if(typeof(c[0][0])!="undefined"){var f=c.length,l=f,d,e,p;this.elements=[];do{q=l-f;d=c[q].length;e=d;this.elements[q]=[];do{p=e-d;this.elements[q][p]=c[q][p]}while(--d)}while(--f);return this}var g=c.length,m=g;this.elements=[];do{q=m-g;this.elements.push([c[q]])}while(--g);return this}};Matrix.create=function(c){var d=new Matrix();return d.setElements(c)};Matrix.I=function(l){var g=[],c=l,f,e,d;do{f=c-l;g[f]=[];e=c;do{d=c-e;g[f][d]=(f==d)?1:0}while(--e)}while(--l);return Matrix.create(g)};Matrix.Diagonal=function(e){var g=e.length,c=g,d;var f=Matrix.I(g);do{d=c-g;f.elements[d][d]=e[d]}while(--g);return f};Matrix.Rotation=function(d,l){if(!l){return Matrix.create([[Math.cos(d),-Math.sin(d)],[Math.sin(d),Math.cos(d)]])}var e=l.dup();if(e.elements.length!=3){return null}var k=e.modulus();var m=e.elements[0]/k,i=e.elements[1]/k,g=e.elements[2]/k;var o=Math.sin(d),f=Math.cos(d),n=1-f;return Matrix.create([[n*m*m+f,n*m*i-o*g,n*m*g+o*i],[n*m*i+o*g,n*i*i+f,n*i*g-o*m],[n*m*g-o*i,n*i*g+o*m,n*g*g+f]])};Matrix.RotationX=function(d){var f=Math.cos(d),e=Math.sin(d);return Matrix.create([[1,0,0],[0,f,-e],[0,e,f]])};Matrix.RotationY=function(d){var f=Math.cos(d),e=Math.sin(d);return Matrix.create([[f,0,e],[0,1,0],[-e,0,f]])};Matrix.RotationZ=function(d){var f=Math.cos(d),e=Math.sin(d);return Matrix.create([[f,-e,0],[e,f,0],[0,0,1]])};Matrix.Random=function(d,c){return Matrix.Zero(d,c).map(function(){return Math.random()})};Matrix.Zero=function(l,c){var k=[],g=l,f,e,d;do{f=l-g;k[f]=[];e=c;do{d=c-e;k[f][d]=0}while(--e)}while(--g);return Matrix.create(k)};function Line(){}Line.prototype={eql:function(c){return(this.isParallelTo(c)&&this.contains(c.anchor))},dup:function(){return Line.create(this.anchor,this.direction)},translate:function(d){var c=d.elements||d;return Line.create([this.anchor.elements[0]+c[0],this.anchor.elements[1]+c[1],this.anchor.elements[2]+(c[2]||0)],this.direction)},isParallelTo:function(d){if(d.normal){return d.isParallelTo(this)}var c=this.direction.angleFrom(d.direction);return(Math.abs(c)<=Sylvester.precision||Math.abs(c-Math.PI)<=Sylvester.precision)},distanceFrom:function(g){if(g.normal){return g.distanceFrom(this)}if(g.direction){if(this.isParallelTo(g)){return this.distanceFrom(g.anchor)}var m=this.direction.cross(g.direction).toUnitVector().elements;var e=this.anchor.elements,d=g.anchor.elements;return Math.abs((e[0]-d[0])*m[0]+(e[1]-d[1])*m[1]+(e[2]-d[2])*m[2])}else{var i=g.elements||g;var e=this.anchor.elements,c=this.direction.elements;var p=i[0]-e[0],n=i[1]-e[1],k=(i[2]||0)-e[2];var o=Math.sqrt(p*p+n*n+k*k);if(o===0){return 0}var l=(p*c[0]+n*c[1]+k*c[2])/o;var f=1-l*l;return Math.abs(o*Math.sqrt(f<0?0:f))}},contains:function(c){var d=this.distanceFrom(c);return(d!==null&&d<=Sylvester.precision)},liesIn:function(c){return c.contains(this)},intersects:function(c){if(c.normal){return c.intersects(this)}return(!this.isParallelTo(c)&&this.distanceFrom(c)<=Sylvester.precision)},intersectionWith:function(q){if(q.normal){return q.intersectionWith(this)}if(!this.intersects(q)){return null}var o=this.anchor.elements,d=this.direction.elements,n=q.anchor.elements,c=q.direction.elements;var C=d[0],B=d[1],A=d[2],m=c[0],l=c[1],g=c[2];var y=o[0]-n[0],v=o[1]-n[1],u=o[2]-n[2];var p=-C*y-B*v-A*u;var f=m*y+l*v+g*u;var i=C*C+B*B+A*A;var z=m*m+l*l+g*g;var e=C*m+B*l+A*g;var r=(p*z/i+e*f)/(z-e*e);return Vector.create([o[0]+r*C,o[1]+r*B,o[2]+r*A])},pointClosestTo:function(B){if(B.direction){if(this.intersects(B)){return this.intersectionWith(B)}if(this.isParallelTo(B)){return null}var F=this.direction.elements,C=B.direction.elements;var i=F[0],g=F[1],e=F[2],u=C[0],q=C[1],o=C[2];var v=(e*u-i*o),r=(i*q-g*u),p=(g*o-e*q);var n=Vector.create([v*o-r*q,r*u-p*o,p*q-v*u]);var m=Plane.create(B.anchor,n);return m.intersectionWith(this)}else{var m=B.elements||B;if(this.contains(m)){return Vector.create(m)}var G=this.anchor.elements,F=this.direction.elements;var i=F[0],g=F[1],e=F[2],f=G[0],d=G[1],c=G[2];var v=i*(m[1]-d)-g*(m[0]-f),r=g*((m[2]||0)-c)-e*(m[1]-d),p=e*(m[0]-f)-i*((m[2]||0)-c);var l=Vector.create([g*v-e*p,e*r-i*v,i*p-g*r]);var H=this.distanceFrom(m)/l.modulus();return Vector.create([m[0]+l.elements[0]*H,m[1]+l.elements[1]*H,(m[2]||0)+l.elements[2]*H])}},rotate:function(r,u){if(typeof(u.direction)=="undefined"){u=Line.create(u.to3D(),Vector.k)}var k=Matrix.Rotation(r,u.direction).elements;var d=u.pointClosestTo(this.anchor).elements;var f=this.anchor.elements,c=this.direction.elements;var n=d[0],m=d[1],l=d[2],i=f[0],g=f[1],e=f[2];var q=i-n,p=g-m,o=e-l;return Line.create([n+k[0][0]*q+k[0][1]*p+k[0][2]*o,m+k[1][0]*q+k[1][1]*p+k[1][2]*o,l+k[2][0]*q+k[2][1]*p+k[2][2]*o],[k[0][0]*c[0]+k[0][1]*c[1]+k[0][2]*c[2],k[1][0]*c[0]+k[1][1]*c[1]+k[1][2]*c[2],k[2][0]*c[0]+k[2][1]*c[1]+k[2][2]*c[2]])},reflectionIn:function(q){if(q.normal){var i=this.anchor.elements,d=this.direction.elements;var n=i[0],l=i[1],g=i[2],k=d[0],f=d[1],e=d[2];var c=this.anchor.reflectionIn(q).elements;var p=n+k,o=l+f,m=g+e;var r=q.pointClosestTo([p,o,m]).elements;var v=[r[0]+(r[0]-p)-c[0],r[1]+(r[1]-o)-c[1],r[2]+(r[2]-m)-c[2]];return Line.create(c,v)}else{if(q.direction){return this.rotate(Math.PI,q)}else{var u=q.elements||q;return Line.create(this.anchor.reflectionIn([u[0],u[1],(u[2]||0)]),this.direction)}}},setVectors:function(c,e){c=Vector.create(c);e=Vector.create(e);if(c.elements.length==2){c.elements.push(0)}if(e.elements.length==2){e.elements.push(0)}if(c.elements.length>3||e.elements.length>3){return null}var d=e.modulus();if(d===0){return null}this.anchor=c;this.direction=Vector.create([e.elements[0]/d,e.elements[1]/d,e.elements[2]/d]);return this}};Line.create=function(d,e){var c=new Line();return c.setVectors(d,e)};Line.X=Line.create(Vector.Zero(3),Vector.i);Line.Y=Line.create(Vector.Zero(3),Vector.j);Line.Z=Line.create(Vector.Zero(3),Vector.k);function Plane(){}Plane.prototype={eql:function(c){return(this.contains(c.anchor)&&this.isParallelTo(c))},dup:function(){return Plane.create(this.anchor,this.normal)},translate:function(d){var c=d.elements||d;return Plane.create([this.anchor.elements[0]+c[0],this.anchor.elements[1]+c[1],this.anchor.elements[2]+(c[2]||0)],this.normal)},isParallelTo:function(d){var c;if(d.normal){c=this.normal.angleFrom(d.normal);return(Math.abs(c)<=Sylvester.precision||Math.abs(Math.PI-c)<=Sylvester.precision)}else{if(d.direction){return this.normal.isPerpendicularTo(d.direction)}}return null},isPerpendicularTo:function(c){var d=this.normal.angleFrom(c.normal);return(Math.abs(Math.PI/2-d)<=Sylvester.precision)},distanceFrom:function(e){if(this.intersects(e)||this.contains(e)){return 0}if(e.anchor){var c=this.anchor.elements,g=e.anchor.elements,f=this.normal.elements;return Math.abs((c[0]-g[0])*f[0]+(c[1]-g[1])*f[1]+(c[2]-g[2])*f[2])}else{var d=e.elements||e;var c=this.anchor.elements,f=this.normal.elements;return Math.abs((c[0]-d[0])*f[0]+(c[1]-d[1])*f[1]+(c[2]-(d[2]||0))*f[2])}},contains:function(f){if(f.normal){return null}if(f.direction){return(this.contains(f.anchor)&&this.contains(f.anchor.add(f.direction)))}else{var d=f.elements||f;var c=this.anchor.elements,g=this.normal.elements;var e=Math.abs(g[0]*(c[0]-d[0])+g[1]*(c[1]-d[1])+g[2]*(c[2]-(d[2]||0)));return(e<=Sylvester.precision)}},intersects:function(c){if(typeof(c.direction)=="undefined"&&typeof(c.normal)=="undefined"){return null}return !this.isParallelTo(c)},intersectionWith:function(n){if(!this.intersects(n)){return null}if(n.direction){var f=n.anchor.elements,c=n.direction.elements,o=this.anchor.elements,q=this.normal.elements;var z=(q[0]*(o[0]-f[0])+q[1]*(o[1]-f[1])+q[2]*(o[2]-f[2]))/(q[0]*c[0]+q[1]*c[1]+q[2]*c[2]);return Vector.create([f[0]+c[0]*z,f[1]+c[1]*z,f[2]+c[2]*z])}else{if(n.normal){var v=this.normal.cross(n.normal).toUnitVector();var q=this.normal.elements,f=this.anchor.elements,p=n.normal.elements,e=n.anchor.elements;var C=Matrix.Zero(2,2),m=0;while(C.isSingular()){m++;C=Matrix.create([[q[m%3],q[(m+1)%3]],[p[m%3],p[(m+1)%3]]])}var k=C.inverse().elements;var u=q[0]*f[0]+q[1]*f[1]+q[2]*f[2];var r=p[0]*e[0]+p[1]*e[1]+p[2]*e[2];var d=[k[0][0]*u+k[0][1]*r,k[1][0]*u+k[1][1]*r];var l=[];for(var g=1;g<=3;g++){l.push((m==g)?0:d[(g+(5-m)%3)%3])}return Line.create(l,v)}}},pointClosestTo:function(d){var f=d.elements||d;var c=this.anchor.elements,g=this.normal.elements;var e=(c[0]-f[0])*g[0]+(c[1]-f[1])*g[1]+(c[2]-(f[2]||0))*g[2];return Vector.create([f[0]+g[0]*e,f[1]+g[1]*e,(f[2]||0)+g[2]*e])},rotate:function(r,u){var i=Matrix.Rotation(r,u.direction).elements;var c=u.pointClosestTo(this.anchor).elements;var e=this.anchor.elements,n=this.normal.elements;var m=c[0],l=c[1],k=c[2],g=e[0],f=e[1],d=e[2];var q=g-m,p=f-l,o=d-k;return Plane.create([m+i[0][0]*q+i[0][1]*p+i[0][2]*o,l+i[1][0]*q+i[1][1]*p+i[1][2]*o,k+i[2][0]*q+i[2][1]*p+i[2][2]*o],[i[0][0]*n[0]+i[0][1]*n[1]+i[0][2]*n[2],i[1][0]*n[0]+i[1][1]*n[1]+i[1][2]*n[2],i[2][0]*n[0]+i[2][1]*n[1]+i[2][2]*n[2]])},reflectionIn:function(i){if(i.normal){var e=this.anchor.elements,n=this.normal.elements;var g=e[0],f=e[1],d=e[2],q=n[0],p=n[1],o=n[2];var c=this.anchor.reflectionIn(i).elements;var v=g+q,u=f+p,r=d+o;var l=i.pointClosestTo([v,u,r]).elements;var k=[l[0]+(l[0]-v)-c[0],l[1]+(l[1]-u)-c[1],l[2]+(l[2]-r)-c[2]];return Plane.create(c,k)}else{if(i.direction){return this.rotate(Math.PI,i)}else{var m=i.elements||i;return Plane.create(this.anchor.reflectionIn([m[0],m[1],(m[2]||0)]),this.normal)}}},setVectors:function(m,r,q){m=Vector.create(m);m=m.to3D();if(m===null){return null}r=Vector.create(r);r=r.to3D();if(r===null){return null}if(typeof(q)=="undefined"){q=null}else{q=Vector.create(q);q=q.to3D();if(q===null){return null}}var i=m.elements[0],g=m.elements[1],f=m.elements[2];var n=r.elements[0],l=r.elements[1],k=r.elements[2];var o,p;if(q!==null){var e=q.elements[0],d=q.elements[1],c=q.elements[2];o=Vector.create([(l-g)*(c-f)-(k-f)*(d-g),(k-f)*(e-i)-(n-i)*(c-f),(n-i)*(d-g)-(l-g)*(e-i)]);p=o.modulus();if(p===0){return null}o=Vector.create([o.elements[0]/p,o.elements[1]/p,o.elements[2]/p])}else{p=Math.sqrt(n*n+l*l+k*k);if(p===0){return null}o=Vector.create([r.elements[0]/p,r.elements[1]/p,r.elements[2]/p])}this.anchor=m;this.normal=o;return this}};Plane.create=function(c,f,e){var d=new Plane();return d.setVectors(c,f,e)};Plane.XY=Plane.create(Vector.Zero(3),Vector.k);Plane.YZ=Plane.create(Vector.Zero(3),Vector.i);Plane.ZX=Plane.create(Vector.Zero(3),Vector.j);Plane.YX=Plane.XY;Plane.ZY=Plane.YZ;Plane.XZ=Plane.ZX;var $V=Vector.create;var $M=Matrix.create;var $L=Line.create;var $P=Plane.create;var Transformie={toRadian:function(c){if(c.indexOf("deg")!=-1){return parseInt(c,10)*(Math.PI*2/360)}else{if(c.indexOf("grad")!=-1){return parseInt(c,10)*(Math.PI/200)}else{return parseInt(c,10)}}},resolveCSSKey:function(c){return c["-webkit-transform"]||c["webkit-transform"]||c.transform||c.webkitTransform},refreshMatrix:function(d,g){var f=g.match(/[A-z]+\([^\)]+/g)||[];var n=[];for(var e=0;e<f.length;e++){var c=f[e].split("(")[0],m=f[e].split("(")[1];switch(c){case"matrix":var o=m.split(",");n.push($M([[o[0],o[2],0],[o[1],o[3],0],[0,0,1]]));break;case"rotate":var l=Transformie.toRadian(m);n.push($M([[Math.cos(l),-Math.sin(l),0],[Math.sin(l),Math.cos(l),0],[0,0,1]]));break;case"scale":n.push($M([[m,0,0],[0,m,0],[0,0,1]]));break;case"scaleX":n.push($M([[m,0,0],[0,1,0],[0,0,1]]));break;case"scaleY":n.push($M([[1,0,0],[0,m,0],[0,0,1]]));break;case"skew":var l=Transformie.toRadian(m);n.push($M([[1,0,0],[Math.tan(l),1,0],[0,0,1]]));case"skewX":var l=Transformie.toRadian(m);n.push($M([[1,Math.tan(l),0],[0,1,0],[0,0,1]]));break;case"skewY":var l=Transformie.toRadian(m);n.push($M([[1,0,0],[Math.tan(l),1,0],[0,0,1]]));break}}if(!n.length){return}var i=n[0];for(var e=0;e<n.length;e++){if(n[e+1]){i=n[e].x(n[e+1])}}jQuery(d).each(function(){if(!this.filters["DXImageTransform.Microsoft.Matrix"]){this.style.filter=(this.style.filter?"":" ")+"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')"}jQuery.extend(this.filters["DXImageTransform.Microsoft.Matrix"],{M11:i.elements[0][0],M12:i.elements[0][1],M21:i.elements[1][0],M22:i.elements[1][1]})})}};(function(c){c.widget("ui.coverflow",{_init:function(){var d=this;this.items=this.element.find(this.options.items).bind("click",function(){if(d.items.index(this)==d.current){window.open("/database/sites/default/files/"+c(d.items[d.current]).attr("id"))}else{d.moveTo(this)}});this.itemWidth=this.items.outerWidth();c("div.slider").slider({orientation:"horizontal",min:0,max:this.items.length-1,value:this.items.length-1,noKeyboard:true,slide:function(g,f){d.moveTo(f.value)}});this.current=0;d.moveTo(this.items.length-1)},moveTo:function(e){h_off=c.browser.msie?(c.browser.version==6?69:37):0;this.previous=this.current;this.current=!isNaN(parseInt(e))?parseInt(e):this.items.index(e);if(this.previous==this.current){return false}c("div.slider").slider("value",this.current);var d=this,f=Math.abs(d.previous-d.current)<=1?d.previous:d.current+(d.previous<d.current?-1:1);c.fx.step.coverflow=function(g){d.refresh(g.now,f,d.current)};this.element.parent().parent().find("h1").text("JunkMail");this.element.stop().animate({coverflow:1,left:((-this.current*this.itemWidth/2)+(this.current-this.items.length+1)*2*this.itemWidth/(this.items.length)+(this.element.parent()[0].offsetWidth/2+this.itemWidth)-this.current*h_off)},1000,"easeOutQuint");this.element.parent().parent().find("h1").text("JunkMail - "+c(this.items[this.current]).find("img").attr("alt"))},next:function(){if(this.items.length>this.current+1){this.moveTo(this.current+1)}},prev:function(){if(this.current-1>=0){this.moveTo(this.current-1)}},refresh:function(e,i,g){var d=this,f=null;this.items.each(function(n){var m=(n==g&&i-g<0)||n-g>0?"left":"right";var l=n==g?(1-e):(n==i?e:1);var k=1+((1-l)*0.5);var o=l*(m=="right"?(g-n)/12:(i-n)/12);c(this).css({webkitTransform:"matrix("+k+","+o*k+","+(o*0.5*k)+","+k+",0,0)",MozTransform:"matrix("+k+","+o*k+","+(o*0.5*k)+","+k+",0,0)",left:((-n*(d.itemWidth/2))+(m=="right"?-d.itemWidth/2:d.itemWidth/2)*l),zIndex:d.items.length+(m=="left"?g-n:n-g)});if(c.browser.msie){Transformie.refreshMatrix(this,Transformie.resolveCSSKey(this.style))}c(this).css("opacity",1-Math.abs(g-n)/6)})}});c.extend(c.ui.coverflow,{defaults:{items:"> *"}})})(jQuery);(function(c){c.fn.visualize=function(e,d){return c(this).each(function(){var A=c.extend({type:"bar",pieDirection:-1,width:300,height:300,appendTitle:true,title:null,appendKey:true,colors:["#be1e2d","#666699","#92d5ea","#ee8310","#8d10ee","#5a3b16","#26a4ed","#f45a90","#e9e744"],textColors:[],parseDirection:"x",pieMargin:20,pieLabelPos:"inside",lineWeight:4,barGroupMargin:10,barMargin:1,yLabelInterval:30},e);A.width=parseFloat(A.width);A.height=parseFloat(A.height);var z=c(this);function I(){var o=A.colors;var K=A.textColors;var J={dataGroups:function(){var L=[];if(A.parseDirection=="x"){z.find("tr:gt(0)").each(function(O){L[O]={};L[O].points=[];L[O].color=o[O];if(K[O]){L[O].textColor=K[O]}c(this).find("td").each(function(){L[O].points.push(parseFloat(c(this).text()))})})}else{var N=z.find("tr:eq(1) td").size();for(var M=0;M<N;M++){L[M]={};L[M].points=[];L[M].color=o[M];if(K[M]){L[M].textColor=K[M]}z.find("tr:gt(0)").each(function(){L[M].points.push(c(this).find("td").eq(M).text()*1)})}}return L},allData:function(){var L=[];c(this.dataGroups()).each(function(){L.push(this.points)});return L},dataSum:function(){var M=0;var L=this.allData().join(",").split(",");c(L).each(function(){M+=parseFloat(this)});return M},topValue:function(){var M=0;var L=this.allData().join(",").split(",");c(L).each(function(){if(parseFloat(this,10)>M){M=parseFloat(this)}});return M},bottomValue:function(){var M=0;var L=this.allData().join(",").split(",");c(L).each(function(){if(this<M){M=parseFloat(this)}});return M},memberTotals:function(){var M=[];var L=this.dataGroups();c(L).each(function(N){var O=0;c(L[N].points).each(function(P){O+=L[N].points[P]});M.push(O)});return M},yTotals:function(){var O=[];var M=this.dataGroups();var P=this.xLabels().length;for(var N=0;N<P;N++){O[N]=[];var L=0;c(M).each(function(Q){O[N].push(this.points[N])});O[N].join(",").split(",");c(O[N]).each(function(){L+=parseFloat(this)});O[N]=L}return O},topYtotal:function(){var L=0;var M=this.yTotals().join(",").split(",");c(M).each(function(){if(parseFloat(this,10)>L){L=parseFloat(this)}});return L},totalYRange:function(){return this.topValue()-this.bottomValue()},xLabels:function(){var L=[];if(A.parseDirection=="x"){z.find("tr:eq(0) th").each(function(){L.push(c(this).html())})}else{z.find("tr:gt(0) th").each(function(){L.push(c(this).html())})}return L},yLabels:function(){var N=[];N.push(n);var M=Math.round(A.height/A.yLabelInterval);var L=Math.ceil(f/M)||1;while(N[N.length-1]<v-L){N.push(N[N.length-1]+L)}N.push(v);return N}};return J}var F={pie:function(){q.addClass("visualize-pie");if(A.pieLabelPos=="outside"){q.addClass("visualize-pie-outside")}var M=Math.round(l.attr("width")/2);var L=Math.round(l.attr("height")/2);var o=L-A.pieMargin;var J=0;var K=function(O){return(Math.PI/180)*O};var N=c('<ul class="visualize-labels"></ul>').insertAfter(l);c.each(u,function(T){var X=(this<=0||isNaN(this))?0:(this/r)*A.pieDirection;B.beginPath();B.moveTo(M,L);a=J*Math.PI*2-Math.PI*0.5;b=(J+X)*Math.PI*2-Math.PI*0.5;if(a!=b){B.arc(M,L,o,a,b,(A.pieDirection<0))}B.lineTo(M,L);B.closePath();B.fillStyle=g[T].color;B.fill();var V=(J+X/2);var O=A.pieLabelPos=="inside"?o/1.5:o+o/5;var S=Math.round(M+Math.sin(V*Math.PI*2)*(O));var R=Math.round(L-Math.cos(V*Math.PI*2)*(O));var P=(S<M)?"left":"right";var Q=(R>L)?"bottom":"top";var Y=Math.round(X*100*A.pieDirection);if(Y){var W=c('<span class="visualize-label">'+Y+"%</span>").css(P,0).css(Q,0);if(W){var U=c('<li class="visualize-label-pos"></li>').appendTo(N).css({left:S,top:R}).append(W)}W.css("font-size",o/4).css("margin-"+P,-W.width()/4).css("margin-"+Q,-W.outerHeight()/4);if(g[T].textColor){W.css("color",g[T].textColor)}}J+=X})},line:function(M){if(M){q.addClass("visualize-area")}else{q.addClass("visualize-line")}var N=l.width()/(y.length-1);var K=c('<ul class="visualize-labels-x"></ul>').width(l.width()).height(l.height()).insertBefore(l);c.each(y,function(Q){var O=c("<li><span>"+this+"</span></li>").prepend('<span class="line" />').css("left",N*Q).appendTo(K);var P=O.find("span:not(.line)");var R=P.width()/-2;if(Q==0){R=0}else{if(Q==y.length-1){R=-P.width()}}P.css("margin-left",R).addClass("label")});var L=l.height()/f;var o=l.height()/(G.length-1);var J=c('<ul class="visualize-labels-y"></ul>').width(l.width()).height(l.height()).insertBefore(l);c.each(G,function(R){var O=c("<li><span>"+this+"</span></li>").prepend('<span class="line"  />').css("bottom",o*R).prependTo(J);var P=O.find("span:not(.line)");var Q=P.height()/-2;if(R==0){Q=-P.height()}else{if(R==G.length-1){Q=0}}P.css("margin-top",Q).addClass("label")});B.translate(0,i);c.each(g,function(Q){B.beginPath();B.lineWidth=A.lineWeight;B.lineJoin="round";var P=this.points;var O=0;B.moveTo(0,-(P[0]*L));c.each(P,function(){B.lineTo(O,-(this*L));O+=N});B.strokeStyle=this.color;B.stroke();if(M){B.lineTo(O,0);B.lineTo(0,0);B.closePath();B.fillStyle=this.color;B.globalAlpha=0.3;B.fill();B.globalAlpha=1}else{B.closePath()}})},area:function(){F.line(true)},bar:function(){q.addClass("visualize-bar");var Q=l.width()/(y.length);var M=c('<ul class="visualize-labels-x"></ul>').width(l.width()).height(l.height()).insertBefore(l);c.each(y,function(W){var U=c('<li><span class="label">'+this+"</span></li>").prepend('<span class="line" />').css("left",Q*W).width(Q).appendTo(M);var V=U.find("span.label");V.addClass("label")});var o=l.height()/f;var N=l.height()/(G.length-1);var S=c('<ul class="visualize-labels-y"></ul>').width(l.width()).height(l.height()).insertBefore(l);c.each(G,function(X){var U=c("<li><span>"+this+"</span></li>").prepend('<span class="line"  />').css("bottom",N*X).prependTo(S);var V=U.find("span:not(.line)");var W=V.height()/-2;if(X==0){W=-V.height()}else{if(X==G.length-1){W=0}}V.css("margin-top",W).addClass("label")});B.translate(0,i);for(var L=0;L<g.length;L++){B.beginPath();var O=(Q-A.barGroupMargin*2)/g.length;var P=O-(A.barMargin*2);B.lineWidth=P;var R=g[L].points;var K=0;for(var J=0;J<R.length;J++){var T=(K-A.barGroupMargin)+(L*O)+O/2;T+=A.barGroupMargin*2;B.moveTo(T,0);B.lineTo(T,Math.round(-R[J]*o));K+=Q}B.strokeStyle=g[L].color;B.stroke();B.closePath()}}};var p=document.createElement("canvas");p.setAttribute("height",A.height);p.setAttribute("width",A.width);var l=c(p);var H=A.title||z.find("caption").text();var q=(d||c('<div class="visualize" role="img" aria-label="Chart representing data from the table: '+H+'" />')).height(A.height).width(A.width).append(l);var k=I();var g=k.dataGroups();var E=k.allData();var r=k.dataSum();var v=k.topValue();var n=k.bottomValue();var u=k.memberTotals();var f=k.totalYRange();var i=A.height*(v/f);var y=k.xLabels();var G=k.yLabels();if(A.appendTitle||A.appendKey){var m=c('<div class="visualize-info"></div>').appendTo(q)}if(A.appendTitle){c('<div class="visualize-title">'+H+"</div>").appendTo(m)}if(A.appendKey){var D=c('<ul class="visualize-key"></ul>');var C=(A.parseDirection=="x")?"tr:gt(0) th":"tr:eq(0) th";z.find(C).each(function(o){c('<li><span class="visualize-key-color" style="background: '+g[o].color+'"></span><span class="visualize-key-label">'+c(this).text()+"</span></li>").appendTo(D)});D.appendTo(m)}if(!d){q.insertAfter(this)}if(typeof(G_vmlCanvasManager)!="undefined"){G_vmlCanvasManager.init();p=G_vmlCanvasManager.initElement(p)}var B=p.getContext("2d");F[A.type]();c(".visualize-line li:first-child span.line, .visualize-line li:last-child span.line, .visualize-area li:first-child span.line, .visualize-area li:last-child span.line, .visualize-bar li:first-child span.line,.visualize-bar .visualize-labels-y li:last-child span.line").css("border","none");if(!d){q.bind("visualizeRefresh",function(){z.visualize(A,c(this).empty())})}}).next()}})(jQuery);(function(d){d.ui=d.ui||{};d.fn.extend({dialog:function(f,g){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof f=="string"){var i=d.data(this,"ui-dialog")||d.data(d(this).parents(".ui-dialog:first").find(".ui-dialog-content")[0],"ui-dialog");i[f].apply(i,e)}else{if(!d(this).is(".ui-dialog-content")){new d.ui.dialog(this,f)}}})}});d.ui.dialog=function(g,r){this.options=r=d.extend({},d.ui.dialog.defaults,r&&r.modal?{resizable:false}:{},r);this.element=g;var q=this;d.data(this.element,"ui-dialog",this);d(g).bind("setData.dialog",function(u,l,v){r[l]=v}).bind("getData.dialog",function(u,l){return r[l]});var i=d(g).addClass("ui-dialog-content");if(!i.parent().length){i.appendTo("body")}i.wrap(document.createElement("div")).wrap(document.createElement("div"));var n=i.parent().addClass("ui-dialog-container").css({position:"relative"});var p=this.uiDialog=n.parent().hide().addClass("ui-dialog").css({position:"absolute",width:r.width,height:r.height,overflow:"hidden"});var e=i.attr("className").split(" ");d.each(e,function(l,u){if(u!="ui-dialog-content"){p.addClass(u)}});if(r.resizable&&d.fn.resizable){p.append('<div class="ui-resizable-n ui-resizable-handle"></div>').append('<div class="ui-resizable-s ui-resizable-handle"></div>').append('<div class="ui-resizable-e ui-resizable-handle"></div>').append('<div class="ui-resizable-w ui-resizable-handle"></div>').append('<div class="ui-resizable-ne ui-resizable-handle"></div>').append('<div class="ui-resizable-se ui-resizable-handle"></div>').append('<div class="ui-resizable-sw ui-resizable-handle"></div>').append('<div class="ui-resizable-nw ui-resizable-handle"></div>');p.resizable({maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:r.minHeight})}n.prepend('<div class="ui-dialog-titlebar"></div>');var f=d(".ui-dialog-titlebar",n);var o=(r.title)?r.title:(i.attr("title"))?i.attr("title"):"";f.append('<span class="ui-dialog-title">'+o+"</span>");f.append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>');this.uiDialogTitlebarClose=d(".ui-dialog-titlebar-close",f).hover(function(){d(this).addClass("ui-dialog-titlebar-close-hover")},function(){d(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(l){l.stopPropagation()}).click(function(){q.close();return false}).keydown(function(l){var u=27;l.keyCode&&l.keyCode==u&&q.close()});var k=0;d.each(r.buttons,function(){k=1;return false});if(k==1){p.append('<div class="ui-dialog-buttonpane"></div>');var m=d(".ui-dialog-buttonpane",p);d.each(r.buttons,function(l,v){var u=d(document.createElement("button")).text(l).click(v);m.append(u)})}if(r.draggable&&d.fn.draggable){p.draggable({handle:".ui-dialog-titlebar",start:function(){q.activate()}})}p.mousedown(function(){q.activate()});f.click(function(){q.activate()});r.bgiframe&&d.fn.bgiframe&&p.bgiframe();this.open=function(){r.modal&&c.show(q,r.overlay);p.appendTo("body");var v=d(window),A=d(document),z=A.scrollTop(),y=A.scrollLeft();if(r.position.constructor==Array){z+=r.position[1];y+=r.position[0]}else{switch(r.position){case"center":z+=(v.height()/2)-(p.height()/2);y+=(v.width()/2)-(p.width()/2);break;case"top":z+=0;y+=(v.width()/2)-(p.width()/2);break;case"right":z+=(v.height()/2)-(p.height()/2);y+=(v.width())-(p.width());break;case"bottom":z+=(v.height())-(p.height());y+=(v.width()/2)-(p.width()/2);break;case"left":z+=(v.height()/2)-(p.height()/2);y+=0;break;default:z+=(v.height()/2)-(p.height()/2);y+=(v.width()/2)-(p.width()/2)}}z=z<A.scrollTop()?A.scrollTop():z;p.css({top:z,left:y});p.show();q.activate();var l=null;var u={options:r};this.uiDialogTitlebarClose.focus();d(this.element).triggerHandler("dialogopen",[l,u],r.open)};this.activate=function(){var l=0;d(".ui-dialog:visible").each(function(){l=Math.max(l,parseInt(d(this).css("z-index"),10))});c.$el&&c.$el.css("z-index",++l);p.css("z-index",++l)};this.close=function(){r.modal&&c.hide();p.hide();var u=null;var l={options:r};d(this.element).triggerHandler("dialogclose",[u,l],r.close)};if(r.autoOpen){this.open()}};d.extend(d.ui.dialog,{defaults:{autoOpen:true,bgiframe:false,buttons:[],draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,width:300}});var c={$el:null,events:d.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".ui-dialog-overlay"}).join(" "),show:function(i,g){if(this.$el){return}this.dialog=i;this.selects=this.ie6&&d("select:visible").css("visibility","hidden");var k=this.width();var e=this.height();this.$el=d("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(d.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:k,height:e},g));d("a, :input").bind(this.events,function(){if(d(this).parents(".ui-dialog").length==0){i.uiDialogTitlebarClose.focus();return false}});d(document).bind("keydown.ui-dialog-overlay",function(l){var m=27;l.keyCode&&l.keyCode==m&&i.close()});$overlay=this.$el;function f(){$overlay.css({width:k,height:e}).css({width:c.width(),height:c.height()})}d(window).bind("resize.ui-dialog-overlay",f);i.uiDialog.is(".ui-draggable")&&i.uiDialog.data("stop.draggable",f);i.uiDialog.is(".ui-resizable")&&i.uiDialog.data("stop.resizable",f)},hide:function(){d("a, :input").add([document,window]).unbind(".ui-dialog-overlay");this.ie6&&this.selects.css("visibility","visible");this.$el=null;d(".ui-dialog-overlay").remove()},height:function(){var e;if(this.ie6&&(d(document.body).height()<d(window).height())&&!(document.documentElement.scrollTop||(this.dialog.uiDialog.offset().top+this.dialog.uiDialog.height())>d(window).height())){e=d(window).height()}else{e=d(document).height()}return e+"px"},width:function(){var e;if(this.ie6&&(d(document.body).width()<d(window).width())&&!(document.documentElement.scrollLeft||(this.dialog.uiDialog.offset().left+this.dialog.uiDialog.width())>d(window).width())){e=d(window).width()}else{e=d(document).width()}return e+"px"},ie6:d.browser.msie&&d.browser.version<7,selects:null}})(jQuery);
/*
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(d,e){var $=d.jQuery||d.Cowboy||(d.Cowboy={}),c;$.throttle=c=function(g,i,n,m){var l,f=0;if(typeof i!=="boolean"){m=n;n=i;i=e}function k(){var u=this,q=+new Date()-f,r=arguments;function p(){f=+new Date();n.apply(u,r)}function o(){l=e}if(m&&!l){p()}l&&clearTimeout(l);if(m===e&&q>g){p()}else{if(i!==true){l=setTimeout(m?o:p,m===e?g-q:g)}}}if($.guid){k.guid=n.guid=n.guid||$.guid++}return k};$.debounce=function(f,g,i){return i===e?c(f,g,false):c(f,i,g!==false)}})(this);

